@ihk-gfi/lux-components-update 15.5.0 → 16.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 +3 -4
- package/add-lux-components/files/app/app.component.scss +4 -0
- package/add-lux-components/files/app/app.module.ts +4 -2
- package/add-lux-components/files/app/base/license-hint/license-hint.component.html +11 -8
- package/add-lux-components/files/app/home/home.component.html +3 -4
- package/add-lux-components/files/app/home/home.component.scss +0 -4
- package/add-lux-components/index.js +1 -9
- package/collection.json +4 -29
- package/package.json +22 -22
- package/update-dependencies/index.js +42 -45
- package/updates/16.0.0/index.d.ts +9 -0
- package/updates/16.0.0/index.js +66 -0
- package/utility/dependencies.js +1 -1
- package/theme/change-theme-to-authentic/index.d.ts +0 -4
- package/theme/change-theme-to-authentic/index.js +0 -128
- package/theme/change-theme-to-authentic/schema.json +0 -23
- package/theme/change-to-lux-icons/index.d.ts +0 -2
- package/theme/change-to-lux-icons/index.js +0 -382
- package/theme/change-to-lux-icons/schema.json +0 -23
- package/updates/15.0.0/files/src/main.ts +0 -17
- package/updates/15.0.0/files/src/test.ts +0 -4
- package/updates/15.0.0/index.d.ts +0 -8
- package/updates/15.0.0/index.js +0 -113
- package/updates/15.1.0/index.d.ts +0 -2
- package/updates/15.1.0/index.js +0 -20
- package/updates/15.1.0/schema.json +0 -23
- package/updates/15.2.0/index.d.ts +0 -2
- package/updates/15.2.0/index.js +0 -21
- package/updates/15.2.0/schema.json +0 -23
- package/updates/15.3.0/index.d.ts +0 -2
- package/updates/15.3.0/index.js +0 -20
- package/updates/15.3.0/schema.json +0 -23
- package/updates/15.4.0/index.d.ts +0 -2
- package/updates/15.4.0/index.js +0 -19
- package/updates/15.4.0/schema.json +0 -23
- package/updates/15.5.0/index.d.ts +0 -2
- package/updates/15.5.0/index.js +0 -20
- package/updates/15.5.0/schema.json +0 -23
- /package/updates/{15.0.0 → 16.0.0}/schema.json +0 -0
package/README.md
CHANGED
|
@@ -4,8 +4,7 @@ Dieses Projekt enthält alle Updateskripte (umgesetzt mit Angular Schematics) f
|
|
|
4
4
|
|
|
5
5
|
Updateskripte:
|
|
6
6
|
|
|
7
|
-
- `update` (aktualisiert das Projekt auf die Version
|
|
8
|
-
- `update-15.x.x` (aktualisiert das Projekt auf die Version 15.x.x)
|
|
7
|
+
- `update-16.x.x` (aktualisiert das Projekt auf die Version 16.x.x)
|
|
9
8
|
- `add-lux-components` (fügt die LUX-Components zu einem Angular-Projekt hinzu)
|
|
10
9
|
|
|
11
10
|
## Voraussetzungen
|
|
@@ -21,14 +20,14 @@ npm install -g @angular-devkit/schematics-cli
|
|
|
21
20
|
Um ein Updateskript zu starten, kann der folgende Befehl verwendet werden:
|
|
22
21
|
|
|
23
22
|
```bash
|
|
24
|
-
ng generate @ihk-gfi/lux-components-update:update
|
|
23
|
+
ng generate @ihk-gfi/lux-components-update:update-16.x.x
|
|
25
24
|
```
|
|
26
25
|
|
|
27
26
|
Falls erst einmal ein Testdurchlauf ohne persistente Änderungen gewünscht ist,
|
|
28
27
|
ist es möglich den Aufruf mit dem Flag "--dry-run" zu versehen:
|
|
29
28
|
|
|
30
29
|
```bash
|
|
31
|
-
ng generate @ihk-gfi/lux-components-update:update --dry-run
|
|
30
|
+
ng generate @ihk-gfi/lux-components-update:update-16.x.x --dry-run
|
|
32
31
|
```
|
|
33
32
|
|
|
34
33
|
## LUX-Components im Projekt einrichten
|
|
@@ -3,7 +3,6 @@ import localeDE from '@angular/common/locales/de';
|
|
|
3
3
|
import localeDeExtra from '@angular/common/locales/extra/de';
|
|
4
4
|
import { NgModule } from '@angular/core';
|
|
5
5
|
import { HttpClientModule } from '@angular/common/http';
|
|
6
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
7
6
|
import { BrowserModule } from '@angular/platform-browser';
|
|
8
7
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
9
8
|
import {
|
|
@@ -33,6 +32,10 @@ registerLocaleData(localeDE, localeDeExtra);
|
|
|
33
32
|
|
|
34
33
|
const luxComponentsConfig: LuxComponentsConfigParameters = {
|
|
35
34
|
generateLuxTagIds: environment.generateLuxTagIds,
|
|
35
|
+
viewConfiguration: {
|
|
36
|
+
centeredView: true,
|
|
37
|
+
centeredWidth: '1024px'
|
|
38
|
+
},
|
|
36
39
|
};
|
|
37
40
|
|
|
38
41
|
@NgModule({
|
|
@@ -52,7 +55,6 @@ const luxComponentsConfig: LuxComponentsConfigParameters = {
|
|
|
52
55
|
LuxPopupsModule,
|
|
53
56
|
LuxErrorModule,
|
|
54
57
|
LuxMarkdownModule,
|
|
55
|
-
FlexLayoutModule,
|
|
56
58
|
LuxComponentsConfigModule.forRoot(luxComponentsConfig)
|
|
57
59
|
],
|
|
58
60
|
providers: [],
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
<lux-
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
</
|
|
1
|
+
<div class="lux-flex lux-m-3">
|
|
2
|
+
<div class="gt-xs:lux-flex-basis-2/10"></div>
|
|
3
|
+
|
|
4
|
+
<div class="gt-xs:lux-flex-basis-8/10 xs:lux-flex-auto">
|
|
5
|
+
<h1>Lizenzhinweise</h1>
|
|
6
|
+
<lux-markdown [luxData]="licenceHintIcons"></lux-markdown>
|
|
7
|
+
<lux-markdown [luxData]="licenceHintFonts"></lux-markdown>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div class="gt-xs:lux-flex-basis-2/10"></div>
|
|
11
|
+
</div>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<div fxFlex="auto" fxLayout="row wrap" fxLayoutAlign="center start" fxLayoutGap="grid">
|
|
1
|
+
<div class="lt-lg:lux-m-4">
|
|
3
2
|
<lux-tile-ac
|
|
4
3
|
luxLabel="Profil"
|
|
5
4
|
luxSubTitle="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."
|
|
@@ -7,5 +6,5 @@
|
|
|
7
6
|
>
|
|
8
7
|
<lux-icon luxIconName="lux-cog"></lux-icon>
|
|
9
8
|
</lux-tile-ac>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
9
|
+
</div>
|
|
10
|
+
|
|
@@ -5,16 +5,12 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
5
5
|
const chalk = require("chalk");
|
|
6
6
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
7
7
|
const index_1 = require("../update-dependencies/index");
|
|
8
|
-
const index_2 = require("../updates/
|
|
8
|
+
const index_2 = require("../updates/16.0.0/index");
|
|
9
9
|
const files_1 = require("../utility/files");
|
|
10
10
|
const json_1 = require("../utility/json");
|
|
11
11
|
const logging_1 = require("../utility/logging");
|
|
12
12
|
const util_1 = require("../utility/util");
|
|
13
13
|
const validation_1 = require("../utility/validation");
|
|
14
|
-
const _15_1_0_1 = require("../updates/15.1.0");
|
|
15
|
-
const _15_2_0_1 = require("../updates/15.2.0");
|
|
16
|
-
const _15_3_0_1 = require("../updates/15.3.0");
|
|
17
|
-
const _15_4_0_1 = require("../updates/15.4.0");
|
|
18
14
|
function addLuxComponents(options) {
|
|
19
15
|
return (_tree, _context) => {
|
|
20
16
|
var _a;
|
|
@@ -79,10 +75,6 @@ function addLuxComponents(options) {
|
|
|
79
75
|
(0, json_1.updateJsonArray)('/angular.json', jsonPathAllowedCommonJS, 'pdfjs-dist'),
|
|
80
76
|
(0, json_1.updateJsonArray)('/angular.json', jsonPathAllowedCommonJS, 'dompurify'),
|
|
81
77
|
(0, files_1.deleteFile)(options, ((_a = options.path) !== null && _a !== void 0 ? _a : '') + '/package-lock.json'),
|
|
82
|
-
(0, _15_1_0_1.update150100)(options, false),
|
|
83
|
-
(0, _15_2_0_1.update150200)(options, false),
|
|
84
|
-
(0, _15_3_0_1.update150300)(options, false),
|
|
85
|
-
(0, _15_4_0_1.update150400)(options, false),
|
|
86
78
|
(0, util_1.finish)(true, `Die LUX-Components ${index_2.updateMajorVersion} wurden erfolgreich eingerichtet.`, `${chalk.yellowBright('Fertig!')}`)
|
|
87
79
|
]);
|
|
88
80
|
};
|
package/collection.json
CHANGED
|
@@ -1,35 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
3
|
"schematics": {
|
|
4
|
-
"update-
|
|
5
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version
|
|
6
|
-
"factory": "./updates/
|
|
7
|
-
"schema": "./updates/
|
|
8
|
-
},
|
|
9
|
-
"update-15.4.0": {
|
|
10
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 15.4.0",
|
|
11
|
-
"factory": "./updates/15.4.0/index#update150400",
|
|
12
|
-
"schema": "./updates/15.4.0/schema.json"
|
|
13
|
-
},
|
|
14
|
-
"update-15.3.0": {
|
|
15
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 15.3.0",
|
|
16
|
-
"factory": "./updates/15.3.0/index#update150300",
|
|
17
|
-
"schema": "./updates/15.3.0/schema.json"
|
|
18
|
-
},
|
|
19
|
-
"update-15.2.0": {
|
|
20
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 15.2.0",
|
|
21
|
-
"factory": "./updates/15.2.0/index#update150200",
|
|
22
|
-
"schema": "./updates/15.2.0/schema.json"
|
|
23
|
-
},
|
|
24
|
-
"update-15.1.0": {
|
|
25
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 15.1.0",
|
|
26
|
-
"factory": "./updates/15.1.0/index#update150100",
|
|
27
|
-
"schema": "./updates/15.1.0/schema.json"
|
|
28
|
-
},
|
|
29
|
-
"update": {
|
|
30
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 15.0.0",
|
|
31
|
-
"factory": "./updates/15.0.0/index#update",
|
|
32
|
-
"schema": "./updates/15.0.0/schema.json"
|
|
4
|
+
"update-16.0.0": {
|
|
5
|
+
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 16.0.0",
|
|
6
|
+
"factory": "./updates/16.0.0/index#update",
|
|
7
|
+
"schema": "./updates/16.0.0/schema.json"
|
|
33
8
|
},
|
|
34
9
|
"update-dependencies": {
|
|
35
10
|
"description": "Aktualisiert die Abhängigkeiten im LUX-Componentsprojekt",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ihk-gfi/lux-components-update",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Schematics für die Aktualisierung von LUX-Applikationen",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run clean && tsc -p tsconfig.json",
|
|
@@ -30,29 +30,29 @@
|
|
|
30
30
|
},
|
|
31
31
|
"schematics": "./collection.json",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@angular-devkit/core": "
|
|
34
|
-
"@angular-devkit/schematics": "
|
|
35
|
-
"@angular-devkit/schematics-cli": "
|
|
36
|
-
"@angular/cli": "
|
|
37
|
-
"@types/jasmine": "
|
|
38
|
-
"@types/node": "
|
|
39
|
-
"@types/semver": "7.
|
|
40
|
-
"@types/jsdom": "21.1.
|
|
41
|
-
"chalk": "4.1.2",
|
|
42
|
-
"cheerio": "1.0.0-rc.
|
|
43
|
-
"htmlparser2": "
|
|
33
|
+
"@angular-devkit/core": "^16.2.12",
|
|
34
|
+
"@angular-devkit/schematics": "^16.2.12",
|
|
35
|
+
"@angular-devkit/schematics-cli": "^16.2.12",
|
|
36
|
+
"@angular/cli": "^16.2.12",
|
|
37
|
+
"@types/jasmine": "^5.1.4",
|
|
38
|
+
"@types/node": "^18.11.9",
|
|
39
|
+
"@types/semver": "^7.5.8",
|
|
40
|
+
"@types/jsdom": "^21.1.6",
|
|
41
|
+
"chalk": "^4.1.2",
|
|
42
|
+
"cheerio": "^1.0.0-rc.12",
|
|
43
|
+
"htmlparser2": "^9.1.0",
|
|
44
44
|
"jasmine": "4.6.0",
|
|
45
|
-
"jsdom": "
|
|
46
|
-
"jsonc-parser": "3.
|
|
47
|
-
"semver": "7.
|
|
48
|
-
"typescript": "
|
|
45
|
+
"jsdom": "^24.0.0",
|
|
46
|
+
"jsonc-parser": "^3.2.1",
|
|
47
|
+
"semver": "^7.6.0",
|
|
48
|
+
"typescript": "^5.3.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"copyfiles": "2.4.1",
|
|
52
|
-
"del-cli": "5.
|
|
53
|
-
"prettier": "2.
|
|
54
|
-
"husky": "
|
|
55
|
-
"pretty-quick": "
|
|
56
|
-
"replace": "1.2.2"
|
|
51
|
+
"copyfiles": "^2.4.1",
|
|
52
|
+
"del-cli": "^5.1.0",
|
|
53
|
+
"prettier": "^3.2.5",
|
|
54
|
+
"husky": "^9.0.11",
|
|
55
|
+
"pretty-quick": "^4.0.0",
|
|
56
|
+
"replace": "^1.2.2"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -10,65 +10,62 @@ const updateIfExists = true;
|
|
|
10
10
|
function updateDependencies() {
|
|
11
11
|
return (0, schematics_1.chain)([
|
|
12
12
|
(0, util_1.messageInfoRule)(`Abhängigkeiten in der Datei "package.json" werden aktualisiert...`),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
updateDep('@ihk-gfi/lux-components
|
|
17
|
-
|
|
18
|
-
updateDep('@
|
|
19
|
-
updateDep('@angular/
|
|
20
|
-
updateDep('@angular/
|
|
21
|
-
updateDep('@angular/
|
|
22
|
-
updateDep('@angular/
|
|
23
|
-
updateDep('@angular/
|
|
24
|
-
updateDep('@angular/
|
|
25
|
-
updateDep('@angular/platform-browser
|
|
26
|
-
updateDep('@angular/
|
|
27
|
-
updateDep('@angular/
|
|
28
|
-
updateDep('@angular/
|
|
29
|
-
updateDep('@angular/
|
|
30
|
-
updateDep('rxjs', '7.8.
|
|
13
|
+
deleteDep('@ihk-gfi/lux-stammdaten'),
|
|
14
|
+
deleteDep('@angular/flex-layout'),
|
|
15
|
+
deleteDevDep('node-sass'),
|
|
16
|
+
updateDep('@ihk-gfi/lux-components', '16.0.0', addOrUpdate),
|
|
17
|
+
updateDep('@ihk-gfi/lux-components-theme', '16.0.0', addOrUpdate),
|
|
18
|
+
updateDep('@ihk-gfi/lux-components-icons-and-fonts', '1.8.0', addOrUpdate),
|
|
19
|
+
updateDep('@angular/animations', '16.2.12', addOrUpdate),
|
|
20
|
+
updateDep('@angular/common', '16.2.12', addOrUpdate),
|
|
21
|
+
updateDep('@angular/core', '16.2.12', addOrUpdate),
|
|
22
|
+
updateDep('@angular/compiler', '16.2.12', addOrUpdate),
|
|
23
|
+
updateDep('@angular/localize', '16.2.12', addOrUpdate),
|
|
24
|
+
updateDep('@angular/forms', '16.2.12', addOrUpdate),
|
|
25
|
+
updateDep('@angular/platform-browser', '16.2.12', addOrUpdate),
|
|
26
|
+
updateDep('@angular/platform-browser-dynamic', '16.2.12', addOrUpdate),
|
|
27
|
+
updateDep('@angular/router', '16.2.12', addOrUpdate),
|
|
28
|
+
updateDep('@angular/cdk', '16.2.14', addOrUpdate),
|
|
29
|
+
updateDep('@angular/material', '16.2.14', addOrUpdate),
|
|
30
|
+
updateDep('rxjs', '7.8.1', addOrUpdate),
|
|
31
31
|
updateDep('dompurify', '2.3.7', addOrUpdate),
|
|
32
32
|
updateDep('marked', '4.0.15', addOrUpdate),
|
|
33
|
-
|
|
34
|
-
updateDep('
|
|
35
|
-
updateDep('tslib', '2.5.0', updateIfExists),
|
|
33
|
+
updateDep('zone.js', '0.13.3', addOrUpdate),
|
|
34
|
+
updateDep('tslib', '2.6.2', updateIfExists),
|
|
36
35
|
updateDep('hammerjs', '2.0.8', addOrUpdate),
|
|
37
36
|
updateDep('ng2-pdf-viewer', '8.0.1', addOrUpdate),
|
|
38
37
|
updateDep('pdfjs-dist', '2.13.216', addOrUpdate),
|
|
39
|
-
updateDep('ngx-cookie-service', '
|
|
40
|
-
updateDep('ngx-build-plus', '
|
|
41
|
-
updateDevDep('@ihk-gfi/lux-components-update', '^
|
|
42
|
-
updateDevDep('@angular-eslint/builder', '
|
|
43
|
-
updateDevDep('@angular-eslint/eslint-plugin', '
|
|
44
|
-
updateDevDep('@angular-eslint/eslint-plugin-template', '
|
|
45
|
-
updateDevDep('@angular-eslint/schematics', '
|
|
46
|
-
updateDevDep('@angular-eslint/template-parser', '
|
|
47
|
-
updateDevDep('@typescript-eslint/eslint-plugin', '5.
|
|
48
|
-
updateDevDep('@typescript-eslint/parser', '5.
|
|
49
|
-
updateDevDep('eslint', '8.
|
|
50
|
-
updateDevDep('eslint-plugin-import', '2.
|
|
51
|
-
updateDevDep('eslint-plugin-jsdoc', '
|
|
38
|
+
updateDep('ngx-cookie-service', '16.0.0', addOrUpdate),
|
|
39
|
+
updateDep('ngx-build-plus', '16.0.0', addOrUpdate),
|
|
40
|
+
updateDevDep('@ihk-gfi/lux-components-update', '^16.0.0', addOrUpdate),
|
|
41
|
+
updateDevDep('@angular-eslint/builder', '16.3.1', updateIfExists),
|
|
42
|
+
updateDevDep('@angular-eslint/eslint-plugin', '16.3.1', updateIfExists),
|
|
43
|
+
updateDevDep('@angular-eslint/eslint-plugin-template', '16.3.1', updateIfExists),
|
|
44
|
+
updateDevDep('@angular-eslint/schematics', '16.3.1', updateIfExists),
|
|
45
|
+
updateDevDep('@angular-eslint/template-parser', '16.3.1', updateIfExists),
|
|
46
|
+
updateDevDep('@typescript-eslint/eslint-plugin', '7.5.0', updateIfExists),
|
|
47
|
+
updateDevDep('@typescript-eslint/parser', '7.5.0', updateIfExists),
|
|
48
|
+
updateDevDep('eslint', '8.57.0', updateIfExists),
|
|
49
|
+
updateDevDep('eslint-plugin-import', '2.29.1', updateIfExists),
|
|
50
|
+
updateDevDep('eslint-plugin-jsdoc', '48.2.2', updateIfExists),
|
|
52
51
|
updateDevDep('eslint-plugin-prefer-arrow', '1.2.3', updateIfExists),
|
|
53
|
-
updateDevDep('@angular-devkit/build-angular', '
|
|
54
|
-
updateDevDep('@angular/compiler-cli', '
|
|
55
|
-
updateDevDep('@angular/cli', '
|
|
56
|
-
updateDevDep('@angular/language-service', '
|
|
57
|
-
updateDevDep('@angular/elements', '
|
|
52
|
+
updateDevDep('@angular-devkit/build-angular', '16.2.13', addOrUpdate),
|
|
53
|
+
updateDevDep('@angular/compiler-cli', '16.2.12', addOrUpdate),
|
|
54
|
+
updateDevDep('@angular/cli', '16.2.13', addOrUpdate),
|
|
55
|
+
updateDevDep('@angular/language-service', '16.2.12', addOrUpdate),
|
|
56
|
+
updateDevDep('@angular/elements', '16.2.12', addOrUpdate),
|
|
58
57
|
updateDevDep('@compodoc/compodoc', '1.1.19', updateIfExists),
|
|
59
58
|
updateDevDep('@types/jasmine', '4.3.1', addOrUpdate),
|
|
60
59
|
updateDevDep('@types/marked', '4.0.3', addOrUpdate),
|
|
61
|
-
deleteDevDep('@types/node'),
|
|
62
|
-
deleteDevDep('tslint-angular'),
|
|
63
60
|
updateDevDep('jasmine-core', '4.6.0', addOrUpdate),
|
|
64
61
|
updateDevDep('karma', '6.4.1', addOrUpdate),
|
|
65
|
-
updateDevDep('karma-coverage', '2.2.
|
|
66
|
-
updateDevDep('karma-chrome-launcher', '3.
|
|
62
|
+
updateDevDep('karma-coverage', '2.2.1', addOrUpdate),
|
|
63
|
+
updateDevDep('karma-chrome-launcher', '3.2.0', addOrUpdate),
|
|
67
64
|
updateDevDep('karma-firefox-launcher', '2.1.2', updateIfExists),
|
|
68
65
|
updateDevDep('karma-jasmine', '5.1.0', addOrUpdate),
|
|
69
|
-
updateDevDep('karma-jasmine-html-reporter', '2.
|
|
66
|
+
updateDevDep('karma-jasmine-html-reporter', '2.1.0', addOrUpdate),
|
|
70
67
|
updateDevDep('karma-safari-launcher', '1.0.0', updateIfExists),
|
|
71
|
-
updateDevDep('typescript', '
|
|
68
|
+
updateDevDep('typescript', '5.1.3', addOrUpdate),
|
|
72
69
|
updateDevDep('fs-extra', '10.1.0', updateIfExists),
|
|
73
70
|
updateDevDep('del', '6.0.0', updateIfExists),
|
|
74
71
|
(0, util_1.messageSuccessRule)(`Abhängigkeiten in der Datei "package.json" wurden aktualisiert.`)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
export declare const updateMajorVersion = "16";
|
|
3
|
+
export declare const updateMinVersion = "15.5.1";
|
|
4
|
+
export declare const updateNodeMinVersion = "18.0.0";
|
|
5
|
+
export declare function update(options: any): Rule;
|
|
6
|
+
export declare function updateProject(_options: any): Rule;
|
|
7
|
+
export declare function updateI18NFiles(): Rule;
|
|
8
|
+
export declare const i18nDe = "<trans-unit id=\"luxc.dialog.btn.close.arialabel\" datatype=\"html\">\n <source>Dialog schlie\u00DFen</source>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-popups/lux-dialog/lux-dialog-structure/lux-dialog-structure.component.html</context>\n <context context-type=\"linenumber\">16</context>\n </context-group>\n </trans-unit>";
|
|
9
|
+
export declare const i18nEn = "<trans-unit id=\"luxc.dialog.btn.close.arialabel\" datatype=\"html\">\n <source>Dialog schlie\u00DFen</source>\n <target>Dialog close</target>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-popups/lux-dialog/lux-dialog-structure/lux-dialog-structure.component.html</context>\n <context context-type=\"linenumber\">16</context>\n </context-group>\n </trans-unit>";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.i18nEn = exports.i18nDe = exports.updateI18NFiles = exports.updateProject = exports.update = exports.updateNodeMinVersion = exports.updateMinVersion = exports.updateMajorVersion = 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 logging_1 = require("../../utility/logging");
|
|
8
|
+
const util_1 = require("../../utility/util");
|
|
9
|
+
const validation_1 = require("../../utility/validation");
|
|
10
|
+
exports.updateMajorVersion = '16';
|
|
11
|
+
exports.updateMinVersion = '15.5.1';
|
|
12
|
+
exports.updateNodeMinVersion = '18.0.0';
|
|
13
|
+
function update(options) {
|
|
14
|
+
return (_tree, _context) => {
|
|
15
|
+
return (0, schematics_1.chain)([
|
|
16
|
+
check(options),
|
|
17
|
+
(0, util_1.applyRuleIf)(exports.updateMinVersion, updateProject(options)),
|
|
18
|
+
(0, util_1.finish)(false, `${chalk.yellowBright('Wichtig!!!')} Hinweise im Update Guide beachten -> https://github.com/IHK-GfI/lux-components/wiki/update-guide-v${exports.updateMajorVersion}`)
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.update = update;
|
|
23
|
+
function updateProject(_options) {
|
|
24
|
+
return (_tree, _context) => {
|
|
25
|
+
return (0, schematics_1.chain)([
|
|
26
|
+
(0, util_1.messageInfoRule)(`LUX-Components ${exports.updateMajorVersion} werden aktualisiert...`),
|
|
27
|
+
(0, index_1.updateDependencies)(),
|
|
28
|
+
updateI18NFiles(),
|
|
29
|
+
(0, util_1.messageSuccessRule)(`LUX-Components ${exports.updateMajorVersion} wurden aktualisiert.`)
|
|
30
|
+
]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.updateProject = updateProject;
|
|
34
|
+
function check(_options) {
|
|
35
|
+
return (tree, _context) => {
|
|
36
|
+
(0, logging_1.logInfoWithDescriptor)(`Vorbedingungen werden geprüft...`);
|
|
37
|
+
(0, validation_1.validateNodeVersion)(_context, exports.updateNodeMinVersion);
|
|
38
|
+
(0, validation_1.validateLuxComponentsVersion)(tree, `${exports.updateMinVersion} || ^${exports.updateMajorVersion}.0.0`);
|
|
39
|
+
(0, logging_1.logSuccess)(`Vorbedingungen wurden geprüft.`);
|
|
40
|
+
return tree;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function updateI18NFiles() {
|
|
44
|
+
return (tree, _context) => {
|
|
45
|
+
(0, util_1.messageInfoRule)(`I18n-Dateien werden angepasst...`),
|
|
46
|
+
(0, util_1.updateI18nFile)(tree, 'de', 'luxc.paginator.elements_on_page', exports.i18nDe);
|
|
47
|
+
(0, util_1.updateI18nFile)(tree, 'en', 'luxc.paginator.elements_on_page', exports.i18nEn);
|
|
48
|
+
(0, util_1.messageInfoRule)(`I18n-Dateien wurden angepasst.`);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.updateI18NFiles = updateI18NFiles;
|
|
52
|
+
exports.i18nDe = `<trans-unit id="luxc.dialog.btn.close.arialabel" datatype="html">
|
|
53
|
+
<source>Dialog schließen</source>
|
|
54
|
+
<context-group purpose="location">
|
|
55
|
+
<context context-type="sourcefile">src/app/modules/lux-popups/lux-dialog/lux-dialog-structure/lux-dialog-structure.component.html</context>
|
|
56
|
+
<context context-type="linenumber">16</context>
|
|
57
|
+
</context-group>
|
|
58
|
+
</trans-unit>`;
|
|
59
|
+
exports.i18nEn = `<trans-unit id="luxc.dialog.btn.close.arialabel" datatype="html">
|
|
60
|
+
<source>Dialog schließen</source>
|
|
61
|
+
<target>Dialog close</target>
|
|
62
|
+
<context-group purpose="location">
|
|
63
|
+
<context context-type="sourcefile">src/app/modules/lux-popups/lux-dialog/lux-dialog-structure/lux-dialog-structure.component.html</context>
|
|
64
|
+
<context context-type="linenumber">16</context>
|
|
65
|
+
</context-group>
|
|
66
|
+
</trans-unit>`;
|
package/utility/dependencies.js
CHANGED
|
@@ -12,7 +12,7 @@ var NodeDependencyType;
|
|
|
12
12
|
NodeDependencyType["Dev"] = "devDependencies";
|
|
13
13
|
NodeDependencyType["Peer"] = "peerDependencies";
|
|
14
14
|
NodeDependencyType["Optional"] = "optionalDependencies";
|
|
15
|
-
})(NodeDependencyType
|
|
15
|
+
})(NodeDependencyType || (exports.NodeDependencyType = NodeDependencyType = {}));
|
|
16
16
|
/**
|
|
17
17
|
* Liefert die Dependency zurück, wenn es sie gibt, undefined sonst.
|
|
18
18
|
* @param tree
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.changeToAcComponents = exports.setAcThemeToAppComponent = exports.changeToThemeAuthentic = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const files_1 = require("../../utility/files");
|
|
6
|
-
const html_manipulator_1 = require("../../utility/html/html-manipulator");
|
|
7
|
-
const manipulator_functions_1 = require("../../utility/html/manipulator-functions");
|
|
8
|
-
const logging_1 = require("../../utility/logging");
|
|
9
|
-
const util_1 = require("../../utility/util");
|
|
10
|
-
const index_1 = require("../change-to-lux-icons/index");
|
|
11
|
-
function changeToThemeAuthentic(options) {
|
|
12
|
-
return (_tree, _context) => {
|
|
13
|
-
return (0, schematics_1.chain)([
|
|
14
|
-
(0, util_1.messageInfoRule)(`Das Authentic-Theme wird eingerichtet...`),
|
|
15
|
-
setAcThemeToAppComponent(options),
|
|
16
|
-
changeToAcComponents(options),
|
|
17
|
-
(0, index_1.changeToLuxIcons)(options),
|
|
18
|
-
(0, util_1.messageSuccessRule)(`Das Authentic-Theme wurde eingerichtet.`)
|
|
19
|
-
]);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
exports.changeToThemeAuthentic = changeToThemeAuthentic;
|
|
23
|
-
function setAcThemeToAppComponent(options) {
|
|
24
|
-
return (0, schematics_1.chain)([
|
|
25
|
-
(0, util_1.messageInfoRule)(`Das Authentic-Theme wird in der app.component.ts gesetzt...`),
|
|
26
|
-
(tree, _context) => {
|
|
27
|
-
var _a;
|
|
28
|
-
const themeName = 'authentic';
|
|
29
|
-
const filePath = ((_a = options.path) !== null && _a !== void 0 ? _a : '.') + '/src/app/app.component.ts';
|
|
30
|
-
if (tree.exists(filePath)) {
|
|
31
|
-
const content = tree.read(filePath).toString();
|
|
32
|
-
let result = content;
|
|
33
|
-
const setThemeRegEx = new RegExp("(\\w*\\.setTheme\\(['|\"'])(.*?)(['|\"']\\);)");
|
|
34
|
-
const loadThemeRegEx = new RegExp('(\\w*\\.loadTheme\\(.*?\\);)');
|
|
35
|
-
if (setThemeRegEx.test(content)) {
|
|
36
|
-
const groups = setThemeRegEx.exec(content);
|
|
37
|
-
if (groups && groups.length > 0) {
|
|
38
|
-
result = result.replace(setThemeRegEx, `$1${themeName}$3`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
else if (loadThemeRegEx.test(content)) {
|
|
42
|
-
const groups = loadThemeRegEx.exec(content);
|
|
43
|
-
if (groups && groups.length > 0) {
|
|
44
|
-
result = result.replace(loadThemeRegEx, `themeService.setTheme('${themeName}');\n $1`);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (content !== result) {
|
|
48
|
-
(0, logging_1.logInfo)(`Konstruktor angepasst -> themeService.setTheme('${themeName}');`);
|
|
49
|
-
tree.overwrite(filePath, result);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
(0, logging_1.logError)('Das Theme konnte nicht in der app.component.ts gesetzt werden. Bitte manuell setzen.');
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
(0, logging_1.logError)(`Der Dateipfad "${filePath}" existiert nicht.`);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
(0, util_1.messageSuccessRule)(`Das Theme wurde in der app.component.ts gesetzt.`)
|
|
60
|
-
]);
|
|
61
|
-
}
|
|
62
|
-
exports.setAcThemeToAppComponent = setAcThemeToAppComponent;
|
|
63
|
-
function changeToAcComponents(options) {
|
|
64
|
-
return (0, schematics_1.chain)([
|
|
65
|
-
(0, util_1.messageInfoRule)(`Die Standardkomponenten werden durch die AC-Komponenten ersetzt...`),
|
|
66
|
-
(tree, _context) => {
|
|
67
|
-
(0, files_1.iterateFilesAndModifyContent)(tree, options.path, (filePath, content) => {
|
|
68
|
-
let result = content;
|
|
69
|
-
luxComponents.forEach((luxComponent) => {
|
|
70
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, luxComponent.tag, (0, manipulator_functions_1.renameElementFn)(luxComponent.acTag));
|
|
71
|
-
});
|
|
72
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-side-nav-header', manipulator_functions_1.removeElementFn);
|
|
73
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-side-nav-footer', manipulator_functions_1.removeElementFn);
|
|
74
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-app-header-ac-nav-menu', (0, manipulator_functions_1.removeAttrFn)('luxSideNavExpandedChange'));
|
|
75
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-app-header-ac-nav-menu', (0, manipulator_functions_1.removeAttrFn)('luxOpenLinkBlank'));
|
|
76
|
-
if (content !== result) {
|
|
77
|
-
(0, logging_1.logInfo)(filePath + ' wurde angepasst.');
|
|
78
|
-
tree.overwrite(filePath, result);
|
|
79
|
-
}
|
|
80
|
-
}, '.component.html');
|
|
81
|
-
},
|
|
82
|
-
(0, util_1.messageSuccessRule)(`Die Standardkomponenten wurden durch die AC-Komponenten ersetzt.`)
|
|
83
|
-
]);
|
|
84
|
-
}
|
|
85
|
-
exports.changeToAcComponents = changeToAcComponents;
|
|
86
|
-
class LuxComponent {
|
|
87
|
-
constructor(tag, acTag) {
|
|
88
|
-
this.tag = tag;
|
|
89
|
-
this.acTag = acTag;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const luxComponents = [
|
|
93
|
-
new LuxComponent('lux-master-detail', 'lux-master-detail-ac'),
|
|
94
|
-
new LuxComponent('lux-detail-view', 'lux-detail-view-ac'),
|
|
95
|
-
new LuxComponent('lux-detail-wrapper', 'lux-detail-wrapper-ac'),
|
|
96
|
-
new LuxComponent('lux-detail-header', 'lux-detail-header-ac'),
|
|
97
|
-
new LuxComponent('lux-master-header', 'lux-master-header-ac'),
|
|
98
|
-
new LuxComponent('lux-master-header-content', 'lux-master-header-content-ac'),
|
|
99
|
-
new LuxComponent('lux-master-footer', 'lux-master-footer-ac'),
|
|
100
|
-
new LuxComponent('lux-master-simple', 'lux-master-list-ac'),
|
|
101
|
-
new LuxComponent('lux-app-header', 'lux-app-header-ac'),
|
|
102
|
-
new LuxComponent('lux-app-header-action-nav-item', 'lux-app-header-ac-action-nav-item'),
|
|
103
|
-
new LuxComponent('lux-app-header-action-nav-item-custom', 'lux-app-header-ac-action-nav-item-custom'),
|
|
104
|
-
new LuxComponent('lux-app-header-action-nav', 'lux-app-header-ac-action-nav'),
|
|
105
|
-
new LuxComponent('lux-app-header-nav-menu-item', 'lux-app-header-ac-nav-menu-item'),
|
|
106
|
-
new LuxComponent('lux-app-header-right-nav', 'lux-app-header-ac-user-menu'),
|
|
107
|
-
new LuxComponent('lux-side-nav', 'lux-app-header-ac-nav-menu'),
|
|
108
|
-
new LuxComponent('lux-side-nav-item', 'lux-app-header-ac-nav-menu-item'),
|
|
109
|
-
new LuxComponent('lux-tile', 'lux-tile-ac'),
|
|
110
|
-
new LuxComponent('lux-autocomplete', 'lux-autocomplete-ac'),
|
|
111
|
-
new LuxComponent('lux-checkbox', 'lux-checkbox-ac'),
|
|
112
|
-
new LuxComponent('lux-chips', 'lux-chips-ac'),
|
|
113
|
-
new LuxComponent('lux-chip', 'lux-chip-ac'),
|
|
114
|
-
new LuxComponent('lux-chip-group', 'lux-chip-ac-group'),
|
|
115
|
-
new LuxComponent('lux-datepicker', 'lux-datepicker-ac'),
|
|
116
|
-
new LuxComponent('lux-datetimepicker', 'lux-datetimepicker-ac'),
|
|
117
|
-
new LuxComponent('lux-radio', 'lux-radio-ac'),
|
|
118
|
-
new LuxComponent('lux-select', 'lux-select-ac'),
|
|
119
|
-
new LuxComponent('lux-slider', 'lux-slider-ac'),
|
|
120
|
-
new LuxComponent('lux-toggle', 'lux-toggle-ac'),
|
|
121
|
-
new LuxComponent('lux-textarea', 'lux-textarea-ac'),
|
|
122
|
-
new LuxComponent('lux-file-input', 'lux-file-input-ac'),
|
|
123
|
-
new LuxComponent('lux-input', 'lux-input-ac'),
|
|
124
|
-
new LuxComponent('lux-input-prefix', 'lux-input-ac-prefix'),
|
|
125
|
-
new LuxComponent('lux-input-suffix', 'lux-input-ac-suffix'),
|
|
126
|
-
new LuxComponent('lux-lookup-combobox', 'lux-lookup-combobox-ac'),
|
|
127
|
-
new LuxComponent('lux-lookup-autocomplete', 'lux-lookup-autocomplete-ac')
|
|
128
|
-
];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "luxChangeThemeToAuthenticSchema",
|
|
4
|
-
"title": "Das Authentic-Theme wird aktiviert",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"description": "Das LUX-Componentsprojekt wird auf das Authentic-Theme umgestellt.",
|
|
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
|
-
}
|