@ihk-gfi/lux-components-update 11.13.0 → 13.0.1
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 +2 -4
- package/package.json +14 -17
- package/src/add-lux-components/files/app/app.component.html +1 -1
- package/src/add-lux-components/files/app/app.component.ts +4 -1
- package/src/add-lux-components/files/locale/messages.en.xlf +489 -235
- package/src/add-lux-components/files/locale/messages.xlf +451 -218
- package/src/add-lux-components/files/scripts/.browserslistrc +10 -7
- package/src/add-lux-components/files/src/index.html +31 -0
- package/src/add-lux-components/index.js +151 -78
- package/src/add-lux-components/index.js.map +1 -1
- package/src/add-lux-components/index.ts +141 -66
- package/src/add-lux-components/index_spec.js +4 -4
- package/src/add-lux-components/index_spec.js.map +1 -1
- package/src/add-lux-components/index_spec.ts +1 -1
- package/src/add-lux-components/schema.json +1 -1
- package/src/collection.json +8 -88
- package/src/update-dependencies/index.d.ts +1 -1
- package/src/update-dependencies/index.js +82 -65
- package/src/update-dependencies/index.js.map +1 -1
- package/src/update-dependencies/index.ts +112 -95
- package/src/update-dependencies/schema.json +1 -1
- package/src/update-en-messages/index.d.ts +2 -0
- package/src/update-en-messages/index.js +75 -0
- package/src/update-en-messages/index.js.map +1 -0
- package/src/update-en-messages/index.ts +78 -0
- package/src/{update110100 → update-en-messages}/schema.json +3 -3
- package/src/updates/update130000/files/root/.browserslistrc +20 -0
- package/src/updates/update130000/index.d.ts +27 -0
- package/src/updates/update130000/index.js +296 -0
- package/src/updates/update130000/index.js.map +1 -0
- package/src/updates/update130000/index.ts +346 -0
- package/src/{migrate-to-eslint → updates/update130000}/index_spec.d.ts +0 -0
- package/src/updates/update130000/index_spec.js +574 -0
- package/src/updates/update130000/index_spec.js.map +1 -0
- package/src/updates/update130000/index_spec.ts +665 -0
- package/src/{update → updates/update130000}/schema.json +1 -1
- package/src/utility/dependencies.js +16 -14
- package/src/utility/dependencies.js.map +1 -1
- package/src/utility/dependencies.ts +6 -4
- package/src/utility/files.d.ts +5 -1
- package/src/utility/files.js +27 -16
- package/src/utility/files.js.map +1 -1
- package/src/utility/files.ts +16 -3
- package/src/utility/html.js +88 -25
- package/src/utility/html.js.map +1 -1
- package/src/utility/html.ts +105 -29
- package/src/{migrate-to-webcomponent/index_spec.d.ts → utility/html_spec.d.ts} +0 -0
- package/src/utility/html_spec.js +560 -0
- package/src/utility/html_spec.js.map +1 -0
- package/src/utility/html_spec.ts +575 -0
- package/src/utility/json.d.ts +46 -1
- package/src/utility/json.js +174 -4
- package/src/utility/json.js.map +1 -1
- package/src/utility/json.ts +198 -3
- package/src/{update/index_spec.d.ts → utility/json_spec.d.ts} +0 -0
- package/src/utility/json_spec.js +326 -0
- package/src/utility/json_spec.js.map +1 -0
- package/src/utility/json_spec.ts +376 -0
- package/src/utility/typescript.js +16 -16
- package/src/utility/typescript.js.map +1 -1
- package/src/utility/typescript_spec.js +36 -36
- package/src/utility/typescript_spec.js.map +1 -1
- package/src/utility/util.d.ts +2 -2
- package/src/utility/util.js +16 -14
- package/src/utility/util.js.map +1 -1
- package/src/utility/util.ts +7 -5
- package/src/utility/validation.js +11 -11
- package/src/utility/validation.js.map +1 -1
- package/src/migrate-to-eslint/files/.eslintrc.json +0 -68
- package/src/migrate-to-eslint/files/.prettierrc +0 -25
- package/src/migrate-to-eslint/index.d.ts +0 -6
- package/src/migrate-to-eslint/index.js +0 -149
- package/src/migrate-to-eslint/index.js.map +0 -1
- package/src/migrate-to-eslint/index.ts +0 -181
- package/src/migrate-to-eslint/index_spec.js +0 -129
- package/src/migrate-to-eslint/index_spec.js.map +0 -1
- package/src/migrate-to-eslint/index_spec.ts +0 -152
- package/src/migrate-to-eslint/schema.json +0 -23
- package/src/migrate-to-webcomponent/index.d.ts +0 -10
- package/src/migrate-to-webcomponent/index.js +0 -278
- package/src/migrate-to-webcomponent/index.js.map +0 -1
- package/src/migrate-to-webcomponent/index.ts +0 -331
- package/src/migrate-to-webcomponent/index_spec.js +0 -580
- package/src/migrate-to-webcomponent/index_spec.js.map +0 -1
- package/src/migrate-to-webcomponent/index_spec.ts +0 -703
- package/src/migrate-to-webcomponent/schema.json +0 -23
- package/src/update/files/locale/messages.en.xlf +0 -940
- package/src/update/files/locale/messages.xlf +0 -815
- package/src/update/files/scripts/move-de-files.js +0 -15
- package/src/update/index.d.ts +0 -23
- package/src/update/index.js +0 -635
- package/src/update/index.js.map +0 -1
- package/src/update/index.ts +0 -712
- package/src/update/index_spec.js +0 -984
- package/src/update/index_spec.js.map +0 -1
- package/src/update/index_spec.ts +0 -1139
- package/src/update110001/index.d.ts +0 -2
- package/src/update110001/index.js +0 -42
- package/src/update110001/index.js.map +0 -1
- package/src/update110001/index.ts +0 -40
- package/src/update110001/index_spec.d.ts +0 -1
- package/src/update110001/index_spec.js +0 -67
- package/src/update110001/index_spec.js.map +0 -1
- package/src/update110001/index_spec.ts +0 -72
- package/src/update110001/schema.json +0 -23
- package/src/update110100/index.d.ts +0 -2
- package/src/update110100/index.js +0 -27
- package/src/update110100/index.js.map +0 -1
- package/src/update110100/index.ts +0 -24
- package/src/update110100/index_spec.d.ts +0 -1
- package/src/update110100/index_spec.js +0 -69
- package/src/update110100/index_spec.js.map +0 -1
- package/src/update110100/index_spec.ts +0 -73
- package/src/update110101/index.d.ts +0 -2
- package/src/update110101/index.js +0 -24
- package/src/update110101/index.js.map +0 -1
- package/src/update110101/index.ts +0 -21
- package/src/update110101/index_spec.d.ts +0 -1
- package/src/update110101/index_spec.js +0 -65
- package/src/update110101/index_spec.js.map +0 -1
- package/src/update110101/index_spec.ts +0 -69
- package/src/update110101/schema.json +0 -23
- package/src/update110200/index.d.ts +0 -2
- package/src/update110200/index.js +0 -24
- package/src/update110200/index.js.map +0 -1
- package/src/update110200/index.ts +0 -21
- package/src/update110200/index_spec.d.ts +0 -1
- package/src/update110200/index_spec.js +0 -65
- package/src/update110200/index_spec.js.map +0 -1
- package/src/update110200/index_spec.ts +0 -69
- package/src/update110200/schema.json +0 -23
- package/src/update110300/index.d.ts +0 -2
- package/src/update110300/index.js +0 -133
- package/src/update110300/index.js.map +0 -1
- package/src/update110300/index.ts +0 -148
- package/src/update110300/index_spec.d.ts +0 -1
- package/src/update110300/index_spec.js +0 -121
- package/src/update110300/index_spec.js.map +0 -1
- package/src/update110300/index_spec.ts +0 -139
- package/src/update110300/schema.json +0 -23
- package/src/update110400/index.d.ts +0 -2
- package/src/update110400/index.js +0 -28
- package/src/update110400/index.js.map +0 -1
- package/src/update110400/index.ts +0 -28
- package/src/update110400/index_spec.d.ts +0 -1
- package/src/update110400/index_spec.js +0 -66
- package/src/update110400/index_spec.js.map +0 -1
- package/src/update110400/index_spec.ts +0 -70
- package/src/update110400/schema.json +0 -23
- package/src/update110500/index.d.ts +0 -2
- package/src/update110500/index.js +0 -28
- package/src/update110500/index.js.map +0 -1
- package/src/update110500/index.ts +0 -28
- package/src/update110500/index_spec.d.ts +0 -1
- package/src/update110500/index_spec.js +0 -66
- package/src/update110500/index_spec.js.map +0 -1
- package/src/update110500/index_spec.ts +0 -70
- package/src/update110500/schema.json +0 -23
- package/src/update110600/index.d.ts +0 -2
- package/src/update110600/index.js +0 -28
- package/src/update110600/index.js.map +0 -1
- package/src/update110600/index.ts +0 -28
- package/src/update110600/index_spec.d.ts +0 -1
- package/src/update110600/index_spec.js +0 -66
- package/src/update110600/index_spec.js.map +0 -1
- package/src/update110600/index_spec.ts +0 -70
- package/src/update110600/schema.json +0 -23
- package/src/update110700/index.d.ts +0 -2
- package/src/update110700/index.js +0 -45
- package/src/update110700/index.js.map +0 -1
- package/src/update110700/index.ts +0 -47
- package/src/update110700/index_spec.d.ts +0 -1
- package/src/update110700/index_spec.js +0 -108
- package/src/update110700/index_spec.js.map +0 -1
- package/src/update110700/index_spec.ts +0 -122
- package/src/update110700/schema.json +0 -23
- package/src/update110800/index.d.ts +0 -2
- package/src/update110800/index.js +0 -32
- package/src/update110800/index.js.map +0 -1
- package/src/update110800/index.ts +0 -33
- package/src/update110800/index_spec.d.ts +0 -1
- package/src/update110800/index_spec.js +0 -70
- package/src/update110800/index_spec.js.map +0 -1
- package/src/update110800/index_spec.ts +0 -75
- package/src/update110800/schema.json +0 -23
- package/src/update110900/index.d.ts +0 -4
- package/src/update110900/index.js +0 -111
- package/src/update110900/index.js.map +0 -1
- package/src/update110900/index.ts +0 -123
- package/src/update110900/index_spec.d.ts +0 -1
- package/src/update110900/index_spec.js +0 -311
- package/src/update110900/index_spec.js.map +0 -1
- package/src/update110900/index_spec.ts +0 -341
- package/src/update110900/schema.json +0 -23
- package/src/update111000/index.d.ts +0 -2
- package/src/update111000/index.js +0 -27
- package/src/update111000/index.js.map +0 -1
- package/src/update111000/index.ts +0 -27
- package/src/update111000/index_spec.d.ts +0 -1
- package/src/update111000/index_spec.js +0 -65
- package/src/update111000/index_spec.js.map +0 -1
- package/src/update111000/index_spec.ts +0 -70
- package/src/update111000/schema.json +0 -23
- package/src/update111100/index.d.ts +0 -2
- package/src/update111100/index.js +0 -389
- package/src/update111100/index.js.map +0 -1
- package/src/update111100/index.ts +0 -405
- package/src/update111100/index_spec.d.ts +0 -1
- package/src/update111100/index_spec.js +0 -66
- package/src/update111100/index_spec.js.map +0 -1
- package/src/update111100/index_spec.ts +0 -70
- package/src/update111100/schema.json +0 -23
- package/src/update111200/index.d.ts +0 -2
- package/src/update111200/index.js +0 -59
- package/src/update111200/index.js.map +0 -1
- package/src/update111200/index.ts +0 -75
- package/src/update111200/index_spec.d.ts +0 -1
- package/src/update111200/index_spec.js +0 -67
- package/src/update111200/index_spec.js.map +0 -1
- package/src/update111200/index_spec.ts +0 -71
- package/src/update111200/schema.json +0 -23
- package/src/update111300/index.d.ts +0 -2
- package/src/update111300/index.js +0 -27
- package/src/update111300/index.js.map +0 -1
- package/src/update111300/index.ts +0 -27
- package/src/update111300/index_spec.d.ts +0 -1
- package/src/update111300/index_spec.js +0 -65
- package/src/update111300/index_spec.js.map +0 -1
- package/src/update111300/index_spec.ts +0 -69
- package/src/update111300/schema.json +0 -23
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { callRule, SchematicContext } from '@angular-devkit/schematics';
|
|
2
|
-
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
|
|
3
|
-
import * as path from 'path';
|
|
4
|
-
import { of as observableOf } from 'rxjs';
|
|
5
|
-
import { getPackageJsonDependency } from '../utility/dependencies';
|
|
6
|
-
import { appOptions, workspaceOptions } from '../utility/test';
|
|
7
|
-
import { UtilConfig } from '../utility/util';
|
|
8
|
-
import { update110101 } from './index';
|
|
9
|
-
|
|
10
|
-
const collectionPath = path.join(__dirname, '../collection.json');
|
|
11
|
-
|
|
12
|
-
describe('update110101', () => {
|
|
13
|
-
let appTree: UnitTestTree;
|
|
14
|
-
let runner: SchematicTestRunner;
|
|
15
|
-
let context: SchematicContext;
|
|
16
|
-
|
|
17
|
-
const testOptions: any = {};
|
|
18
|
-
|
|
19
|
-
beforeEach(async () => {
|
|
20
|
-
runner = new SchematicTestRunner('schematics', collectionPath);
|
|
21
|
-
|
|
22
|
-
appTree = await runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
23
|
-
appTree = await runner
|
|
24
|
-
.runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree)
|
|
25
|
-
.toPromise();
|
|
26
|
-
|
|
27
|
-
UtilConfig.defaultWaitMS = 0;
|
|
28
|
-
|
|
29
|
-
const collection = runner.engine.createCollection(collectionPath);
|
|
30
|
-
const schematic = runner.engine.createSchematic('update-11.1.1', collection);
|
|
31
|
-
context = runner.engine.createContext(schematic);
|
|
32
|
-
|
|
33
|
-
testOptions.project = appOptions.name;
|
|
34
|
-
testOptions.path = workspaceOptions.newProjectRoot + '/' + appOptions.name;
|
|
35
|
-
testOptions.verbose = true;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
describe('[Rule] update110101', () => {
|
|
39
|
-
it('Sollte die Abhängigkeiten aktualisieren', (done) => {
|
|
40
|
-
appTree.overwrite(
|
|
41
|
-
'/package.json',
|
|
42
|
-
`
|
|
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
|
-
"@ihk-gfi/lux-components": "11.0.0",
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@angular-devkit/build-angular": "0.1102.10",
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
callRule(update110101(testOptions), observableOf(appTree), context).subscribe(
|
|
61
|
-
() => {
|
|
62
|
-
expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.1.1');
|
|
63
|
-
done();
|
|
64
|
-
},
|
|
65
|
-
(reason) => expect(reason).toBeUndefined()
|
|
66
|
-
);
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"id": "luxUpdate110101Schema",
|
|
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,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.update110200 = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const chalk = require("chalk");
|
|
6
|
-
const dependencies_1 = require("../utility/dependencies");
|
|
7
|
-
const util_1 = require("../utility/util");
|
|
8
|
-
function update110200(options) {
|
|
9
|
-
return (tree, context) => {
|
|
10
|
-
return schematics_1.chain([
|
|
11
|
-
util_1.messageInfoRule(`Die LUX-Components werden auf die Version 11.2.0 aktualisiert...`),
|
|
12
|
-
util_1.messageInfoRule(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
-
(tree, _context) => {
|
|
14
|
-
dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components', '11.2.0');
|
|
15
|
-
return tree;
|
|
16
|
-
},
|
|
17
|
-
util_1.messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
|
|
18
|
-
util_1.messageSuccessRule(`Die LUX-Components wurden auf die Version 11.2.0 aktualisiert.`),
|
|
19
|
-
util_1.finish(`${chalk.yellowBright('Fertig!')}`)
|
|
20
|
-
]);
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
exports.update110200 = update110200;
|
|
24
|
-
//# 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,0DAA2D;AAC3D,0CAA8E;AAE9E,SAAgB,YAAY,CAAC,OAAY;IACvC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,kBAAK,CAAC;YACX,sBAAe,CAAC,kEAAkE,CAAC;YACnF,sBAAe,CAAC,4CAA4C,CAAC;YAC7D,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;gBACzC,+BAAgB,CAAC,IAAI,EAAE,yBAAyB,EAAE,QAAQ,CAAC,CAAC;gBAE5D,OAAO,IAAI,CAAC;YACd,CAAC;YACD,yBAAkB,CAAC,2CAA2C,CAAC;YAC/D,yBAAkB,CAAC,gEAAgE,CAAC;YACpF,aAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAfD,oCAeC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
-
import * as chalk from 'chalk';
|
|
3
|
-
import { updateDependency } from '../utility/dependencies';
|
|
4
|
-
import { finish, messageInfoRule, messageSuccessRule } from '../utility/util';
|
|
5
|
-
|
|
6
|
-
export function update110200(options: any): Rule {
|
|
7
|
-
return (tree: Tree, context: SchematicContext) => {
|
|
8
|
-
return chain([
|
|
9
|
-
messageInfoRule(`Die LUX-Components werden auf die Version 11.2.0 aktualisiert...`),
|
|
10
|
-
messageInfoRule(`Die Datei "package.json" wird angepasst...`),
|
|
11
|
-
(tree: Tree, _context: SchematicContext) => {
|
|
12
|
-
updateDependency(tree, '@ihk-gfi/lux-components', '11.2.0');
|
|
13
|
-
|
|
14
|
-
return tree;
|
|
15
|
-
},
|
|
16
|
-
messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
|
|
17
|
-
messageSuccessRule(`Die LUX-Components wurden auf die Version 11.2.0 aktualisiert.`),
|
|
18
|
-
finish(`${chalk.yellowBright('Fertig!')}`)
|
|
19
|
-
]);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,65 +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('update110200', () => {
|
|
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-11.2.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] update110200', () => {
|
|
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
|
-
"@ihk-gfi/lux-components": "11.0.0",
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@angular-devkit/build-angular": "0.1102.10",
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`);
|
|
58
|
-
schematics_1.callRule(index_1.update110200(testOptions), rxjs_1.of(appTree), context).subscribe(() => {
|
|
59
|
-
expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.2.0');
|
|
60
|
-
done();
|
|
61
|
-
}, (reason) => expect(reason).toBeUndefined());
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
//# 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,0DAAmE;AACnE,0CAA+D;AAC/D,0CAA6C;AAC7C,mCAAuC;AAEvC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,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,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;QAC7E,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QAEjD,WAAW,CAAC,OAAO,GAAG,iBAAU,CAAC,IAAI,CAAC;QACtC,WAAW,CAAC,IAAI,GAAG,uBAAgB,CAAC,cAAc,GAAG,GAAG,GAAG,iBAAU,CAAC,IAAI,CAAC;QAC3E,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC;IAC7B,CAAC,CAAA,CAAC,CAAC;IAEH,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;QACnC,EAAE,CAAC,yCAAyC,EAAE,CAAC,IAAI,EAAE,EAAE;YACrD,OAAO,CAAC,SAAS,CACf,eAAe,EACf;;;;;;;;;;;;;;;SAeC,CACF,CAAC;YAEF,qBAAQ,CAAC,oBAAY,CAAC,WAAW,CAAC,EAAE,SAAY,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,SAAS,CAC3E,GAAG,EAAE;gBACH,MAAM,CAAC,uCAAwB,CAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC/F,IAAI,EAAE,CAAC;YACT,CAAC,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAC3C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { callRule, SchematicContext } from '@angular-devkit/schematics';
|
|
2
|
-
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
|
|
3
|
-
import * as path from 'path';
|
|
4
|
-
import { of as observableOf } from 'rxjs';
|
|
5
|
-
import { getPackageJsonDependency } from '../utility/dependencies';
|
|
6
|
-
import { appOptions, workspaceOptions } from '../utility/test';
|
|
7
|
-
import { UtilConfig } from '../utility/util';
|
|
8
|
-
import { update110200 } from './index';
|
|
9
|
-
|
|
10
|
-
const collectionPath = path.join(__dirname, '../collection.json');
|
|
11
|
-
|
|
12
|
-
describe('update110200', () => {
|
|
13
|
-
let appTree: UnitTestTree;
|
|
14
|
-
let runner: SchematicTestRunner;
|
|
15
|
-
let context: SchematicContext;
|
|
16
|
-
|
|
17
|
-
const testOptions: any = {};
|
|
18
|
-
|
|
19
|
-
beforeEach(async () => {
|
|
20
|
-
runner = new SchematicTestRunner('schematics', collectionPath);
|
|
21
|
-
|
|
22
|
-
appTree = await runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
23
|
-
appTree = await runner
|
|
24
|
-
.runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree)
|
|
25
|
-
.toPromise();
|
|
26
|
-
|
|
27
|
-
UtilConfig.defaultWaitMS = 0;
|
|
28
|
-
|
|
29
|
-
const collection = runner.engine.createCollection(collectionPath);
|
|
30
|
-
const schematic = runner.engine.createSchematic('update-11.2.0', collection);
|
|
31
|
-
context = runner.engine.createContext(schematic);
|
|
32
|
-
|
|
33
|
-
testOptions.project = appOptions.name;
|
|
34
|
-
testOptions.path = workspaceOptions.newProjectRoot + '/' + appOptions.name;
|
|
35
|
-
testOptions.verbose = true;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
describe('[Rule] update110200', () => {
|
|
39
|
-
it('Sollte die Abhängigkeiten aktualisieren', (done) => {
|
|
40
|
-
appTree.overwrite(
|
|
41
|
-
'/package.json',
|
|
42
|
-
`
|
|
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
|
-
"@ihk-gfi/lux-components": "11.0.0",
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@angular-devkit/build-angular": "0.1102.10",
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
callRule(update110200(testOptions), observableOf(appTree), context).subscribe(
|
|
61
|
-
() => {
|
|
62
|
-
expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.2.0');
|
|
63
|
-
done();
|
|
64
|
-
},
|
|
65
|
-
(reason) => expect(reason).toBeUndefined()
|
|
66
|
-
);
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"id": "luxUpdate110200Schema",
|
|
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,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.update110300 = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const chalk = require("chalk");
|
|
6
|
-
const dependencies_1 = require("../utility/dependencies");
|
|
7
|
-
const util_1 = require("../utility/util");
|
|
8
|
-
function update110300(options) {
|
|
9
|
-
return (tree, context) => {
|
|
10
|
-
return schematics_1.chain([
|
|
11
|
-
util_1.messageInfoRule(`Die LUX-Components werden auf die Version 11.3.0 aktualisiert...`),
|
|
12
|
-
util_1.messageInfoRule(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
-
updateDependencies(),
|
|
14
|
-
util_1.messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
|
|
15
|
-
util_1.messageInfoRule(`Die Sprachdateien werden angepasst...`),
|
|
16
|
-
updateI18n(),
|
|
17
|
-
util_1.messageSuccessRule(`Die Sprachdateien wurden angepasst.`),
|
|
18
|
-
util_1.messageSuccessRule(`Die LUX-Components wurden auf die Version 11.3.0 aktualisiert.`),
|
|
19
|
-
util_1.finish(`${chalk.yellowBright('Fertig!')}`)
|
|
20
|
-
]);
|
|
21
|
-
};
|
|
22
|
-
function updateDependencies() {
|
|
23
|
-
return (tree, _context) => {
|
|
24
|
-
dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components', '11.3.0');
|
|
25
|
-
dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.5.0');
|
|
26
|
-
return tree;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function updateI18n() {
|
|
30
|
-
return (tree, _context) => {
|
|
31
|
-
addI18nForDateTimePicker(tree);
|
|
32
|
-
return tree;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function addI18nForDateTimePicker(tree) {
|
|
36
|
-
util_1.updateI18nFile(tree, 'de', 'luxc.datepicker.error_message.empty', `
|
|
37
|
-
<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
|
|
38
|
-
<source>Bitte wählen Sie ein Datum aus</source>
|
|
39
|
-
<context-group purpose="location">
|
|
40
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
41
|
-
<context context-type="linenumber">46</context>
|
|
42
|
-
</context-group>
|
|
43
|
-
</trans-unit>
|
|
44
|
-
<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
|
|
45
|
-
<source>Bitte geben Sie eine Zeit ein</source>
|
|
46
|
-
<context-group purpose="location">
|
|
47
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
48
|
-
<context context-type="linenumber">48</context>
|
|
49
|
-
</context-group>
|
|
50
|
-
</trans-unit>
|
|
51
|
-
<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
|
|
52
|
-
<source>Das Datum unterschreitet den Minimalwert</source>
|
|
53
|
-
<context-group purpose="location">
|
|
54
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
55
|
-
<context context-type="linenumber">165</context>
|
|
56
|
-
</context-group>
|
|
57
|
-
</trans-unit>
|
|
58
|
-
<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
|
|
59
|
-
<source>Das Datum überschreitet den Maximalwert</source>
|
|
60
|
-
<context-group purpose="location">
|
|
61
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
62
|
-
<context context-type="linenumber">167</context>
|
|
63
|
-
</context-group>
|
|
64
|
-
</trans-unit>
|
|
65
|
-
<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
|
|
66
|
-
<source>Das Datum ist ungültig</source>
|
|
67
|
-
<context-group purpose="location">
|
|
68
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
69
|
-
<context context-type="linenumber">170</context>
|
|
70
|
-
</context-group>
|
|
71
|
-
</trans-unit>
|
|
72
|
-
<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
|
|
73
|
-
<source>Das Datum darf nicht leer sein</source>
|
|
74
|
-
<context-group purpose="location">
|
|
75
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
76
|
-
<context context-type="linenumber">172</context>
|
|
77
|
-
</context-group>
|
|
78
|
-
</trans-unit>
|
|
79
|
-
`);
|
|
80
|
-
util_1.updateI18nFile(tree, 'en', 'luxc.datepicker.error_message.empty', `
|
|
81
|
-
<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
|
|
82
|
-
<source>Das Datum unterschreitet den Minimalwert</source>
|
|
83
|
-
<target>Below the minimum value</target>
|
|
84
|
-
<context-group purpose="location">
|
|
85
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
86
|
-
<context context-type="linenumber">136</context>
|
|
87
|
-
</context-group>
|
|
88
|
-
</trans-unit>
|
|
89
|
-
<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
|
|
90
|
-
<source>Das Datum überschreitet den Maximalwert</source>
|
|
91
|
-
<target>Above the maximum value</target>
|
|
92
|
-
<context-group purpose="location">
|
|
93
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
94
|
-
<context context-type="linenumber">138</context>
|
|
95
|
-
</context-group>
|
|
96
|
-
</trans-unit>
|
|
97
|
-
<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
|
|
98
|
-
<source>Das Datum ist ungültig</source>
|
|
99
|
-
<target>Invalid date</target>
|
|
100
|
-
<context-group purpose="location">
|
|
101
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
102
|
-
<context context-type="linenumber">141</context>
|
|
103
|
-
</context-group>
|
|
104
|
-
</trans-unit>
|
|
105
|
-
<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
|
|
106
|
-
<source>Das Datum darf nicht leer sein</source>
|
|
107
|
-
<target>The date should not be empty</target>
|
|
108
|
-
<context-group purpose="location">
|
|
109
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
110
|
-
<context context-type="linenumber">143</context>
|
|
111
|
-
</context-group>
|
|
112
|
-
</trans-unit>
|
|
113
|
-
<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
|
|
114
|
-
<source>Bitte wählen Sie ein Datum aus</source>
|
|
115
|
-
<target>Please enter a date</target>
|
|
116
|
-
<context-group purpose="location">
|
|
117
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
118
|
-
<context context-type="linenumber">46</context>
|
|
119
|
-
</context-group>
|
|
120
|
-
</trans-unit>
|
|
121
|
-
<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
|
|
122
|
-
<source>Bitte geben Sie eine Zeit ein</source>
|
|
123
|
-
<target>Please enter a time</target>
|
|
124
|
-
<context-group purpose="location">
|
|
125
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
126
|
-
<context context-type="linenumber">48</context>
|
|
127
|
-
</context-group>
|
|
128
|
-
</trans-unit>
|
|
129
|
-
`);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.update110300 = update110300;
|
|
133
|
-
//# 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,0DAA2D;AAC3D,0CAA8F;AAE9F,SAAgB,YAAY,CAAC,OAAY;IACvC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,kBAAK,CAAC;YACX,sBAAe,CAAC,kEAAkE,CAAC;YAEnF,sBAAe,CAAC,4CAA4C,CAAC;YAC7D,kBAAkB,EAAE;YACpB,yBAAkB,CAAC,2CAA2C,CAAC;YAE/D,sBAAe,CAAC,uCAAuC,CAAC;YACxD,UAAU,EAAE;YACZ,yBAAkB,CAAC,qCAAqC,CAAC;YAEzD,yBAAkB,CAAC,gEAAgE,CAAC;YACpF,aAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,SAAS,kBAAkB;QACzB,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;YAChD,+BAAgB,CAAC,IAAI,EAAE,yBAAyB,EAAE,QAAQ,CAAC,CAAC;YAC5D,+BAAgB,CAAC,IAAI,EAAE,+BAA+B,EAAE,QAAQ,CAAC,CAAC;YAElE,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,UAAU;QACjB,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;YAChD,wBAAwB,CAAC,IAAI,CAAC,CAAC;YAE/B,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,wBAAwB,CAAC,IAAU;QAC1C,qBAAc,CACZ,IAAI,EACJ,IAAI,EACJ,qCAAqC,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA2CG,CACJ,CAAC;QAEF,qBAAc,CACZ,IAAI,EACJ,IAAI,EACJ,qCAAqC,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAiDG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC;AA9ID,oCA8IC"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
-
import * as chalk from 'chalk';
|
|
3
|
-
import { updateDependency } from '../utility/dependencies';
|
|
4
|
-
import { finish, messageInfoRule, messageSuccessRule, updateI18nFile } from '../utility/util';
|
|
5
|
-
|
|
6
|
-
export function update110300(options: any): Rule {
|
|
7
|
-
return (tree: Tree, context: SchematicContext) => {
|
|
8
|
-
return chain([
|
|
9
|
-
messageInfoRule(`Die LUX-Components werden auf die Version 11.3.0 aktualisiert...`),
|
|
10
|
-
|
|
11
|
-
messageInfoRule(`Die Datei "package.json" wird angepasst...`),
|
|
12
|
-
updateDependencies(),
|
|
13
|
-
messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
|
|
14
|
-
|
|
15
|
-
messageInfoRule(`Die Sprachdateien werden angepasst...`),
|
|
16
|
-
updateI18n(),
|
|
17
|
-
messageSuccessRule(`Die Sprachdateien wurden angepasst.`),
|
|
18
|
-
|
|
19
|
-
messageSuccessRule(`Die LUX-Components wurden auf die Version 11.3.0 aktualisiert.`),
|
|
20
|
-
finish(`${chalk.yellowBright('Fertig!')}`)
|
|
21
|
-
]);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function updateDependencies() {
|
|
25
|
-
return (tree: Tree, _context: SchematicContext) => {
|
|
26
|
-
updateDependency(tree, '@ihk-gfi/lux-components', '11.3.0');
|
|
27
|
-
updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.5.0');
|
|
28
|
-
|
|
29
|
-
return tree;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function updateI18n() {
|
|
34
|
-
return (tree: Tree, _context: SchematicContext) => {
|
|
35
|
-
addI18nForDateTimePicker(tree);
|
|
36
|
-
|
|
37
|
-
return tree;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function addI18nForDateTimePicker(tree: Tree) {
|
|
42
|
-
updateI18nFile(
|
|
43
|
-
tree,
|
|
44
|
-
'de',
|
|
45
|
-
'luxc.datepicker.error_message.empty',
|
|
46
|
-
`
|
|
47
|
-
<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
|
|
48
|
-
<source>Bitte wählen Sie ein Datum aus</source>
|
|
49
|
-
<context-group purpose="location">
|
|
50
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
51
|
-
<context context-type="linenumber">46</context>
|
|
52
|
-
</context-group>
|
|
53
|
-
</trans-unit>
|
|
54
|
-
<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
|
|
55
|
-
<source>Bitte geben Sie eine Zeit ein</source>
|
|
56
|
-
<context-group purpose="location">
|
|
57
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
58
|
-
<context context-type="linenumber">48</context>
|
|
59
|
-
</context-group>
|
|
60
|
-
</trans-unit>
|
|
61
|
-
<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
|
|
62
|
-
<source>Das Datum unterschreitet den Minimalwert</source>
|
|
63
|
-
<context-group purpose="location">
|
|
64
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
65
|
-
<context context-type="linenumber">165</context>
|
|
66
|
-
</context-group>
|
|
67
|
-
</trans-unit>
|
|
68
|
-
<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
|
|
69
|
-
<source>Das Datum überschreitet den Maximalwert</source>
|
|
70
|
-
<context-group purpose="location">
|
|
71
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
72
|
-
<context context-type="linenumber">167</context>
|
|
73
|
-
</context-group>
|
|
74
|
-
</trans-unit>
|
|
75
|
-
<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
|
|
76
|
-
<source>Das Datum ist ungültig</source>
|
|
77
|
-
<context-group purpose="location">
|
|
78
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
79
|
-
<context context-type="linenumber">170</context>
|
|
80
|
-
</context-group>
|
|
81
|
-
</trans-unit>
|
|
82
|
-
<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
|
|
83
|
-
<source>Das Datum darf nicht leer sein</source>
|
|
84
|
-
<context-group purpose="location">
|
|
85
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
86
|
-
<context context-type="linenumber">172</context>
|
|
87
|
-
</context-group>
|
|
88
|
-
</trans-unit>
|
|
89
|
-
`
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
updateI18nFile(
|
|
93
|
-
tree,
|
|
94
|
-
'en',
|
|
95
|
-
'luxc.datepicker.error_message.empty',
|
|
96
|
-
`
|
|
97
|
-
<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
|
|
98
|
-
<source>Das Datum unterschreitet den Minimalwert</source>
|
|
99
|
-
<target>Below the minimum value</target>
|
|
100
|
-
<context-group purpose="location">
|
|
101
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
102
|
-
<context context-type="linenumber">136</context>
|
|
103
|
-
</context-group>
|
|
104
|
-
</trans-unit>
|
|
105
|
-
<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
|
|
106
|
-
<source>Das Datum überschreitet den Maximalwert</source>
|
|
107
|
-
<target>Above the maximum value</target>
|
|
108
|
-
<context-group purpose="location">
|
|
109
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
110
|
-
<context context-type="linenumber">138</context>
|
|
111
|
-
</context-group>
|
|
112
|
-
</trans-unit>
|
|
113
|
-
<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
|
|
114
|
-
<source>Das Datum ist ungültig</source>
|
|
115
|
-
<target>Invalid date</target>
|
|
116
|
-
<context-group purpose="location">
|
|
117
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
118
|
-
<context context-type="linenumber">141</context>
|
|
119
|
-
</context-group>
|
|
120
|
-
</trans-unit>
|
|
121
|
-
<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
|
|
122
|
-
<source>Das Datum darf nicht leer sein</source>
|
|
123
|
-
<target>The date should not be empty</target>
|
|
124
|
-
<context-group purpose="location">
|
|
125
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
|
|
126
|
-
<context context-type="linenumber">143</context>
|
|
127
|
-
</context-group>
|
|
128
|
-
</trans-unit>
|
|
129
|
-
<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
|
|
130
|
-
<source>Bitte wählen Sie ein Datum aus</source>
|
|
131
|
-
<target>Please enter a date</target>
|
|
132
|
-
<context-group purpose="location">
|
|
133
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
134
|
-
<context context-type="linenumber">46</context>
|
|
135
|
-
</context-group>
|
|
136
|
-
</trans-unit>
|
|
137
|
-
<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
|
|
138
|
-
<source>Bitte geben Sie eine Zeit ein</source>
|
|
139
|
-
<target>Please enter a time</target>
|
|
140
|
-
<context-group purpose="location">
|
|
141
|
-
<context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
|
|
142
|
-
<context context-type="linenumber">48</context>
|
|
143
|
-
</context-group>
|
|
144
|
-
</trans-unit>
|
|
145
|
-
`
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|