@ihk-gfi/lux-components-update 14.7.1 → 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 -70
- 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/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
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ 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-14.x.x` (aktualisiert das Projekt auf die Version
|
|
7
|
+
- `update` (aktualisiert das Projekt auf die Version 15.0.0)
|
|
8
|
+
- `update-14.x.x` (aktualisiert das Projekt auf die Version 15.x.x)
|
|
9
9
|
- `add-lux-components` (fügt die LUX-Components zu einem Angular-Projekt hinzu)
|
|
10
10
|
|
|
11
11
|
## Voraussetzungen
|
|
@@ -40,6 +40,7 @@ ng generate @ihk-gfi/lux-components-update:add-lux-components
|
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Migration von TS-Lint nach ES-Lint
|
|
43
|
+
|
|
43
44
|
```bash
|
|
44
45
|
ng generate @ihk-gfi/lux-components-update:migrate-to-eslint
|
|
45
46
|
```
|
|
@@ -47,6 +48,7 @@ ng generate @ihk-gfi/lux-components-update:migrate-to-eslint
|
|
|
47
48
|
WICHTIG! Der Updater schreibt zusätzliche Befehle in die Console. Diese müssen manuell ausgeführt werden.
|
|
48
49
|
|
|
49
50
|
## Migration zur Web Component
|
|
51
|
+
|
|
50
52
|
```bash
|
|
51
53
|
ng generate @ihk-gfi/lux-components-update:migrate-to-webcomponent
|
|
52
54
|
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<div class="lux-app-container">
|
|
2
|
+
<lux-app-header-ac
|
|
3
|
+
luxAppTitle="Change Me"
|
|
4
|
+
luxAppTitleShort="CM"
|
|
5
|
+
luxBrandLogoSrc="assets/svg/box.svg"
|
|
6
|
+
luxAppLogoSrc="assets/svg/demoAppLogo.svg"
|
|
7
|
+
[luxUserName]="'Max Mustermann'"
|
|
8
|
+
(luxAppLogoClicked)="router.navigate(['/'])"
|
|
9
|
+
(luxBrandLogoClicked)="router.navigate(['/'])"
|
|
10
|
+
>
|
|
11
|
+
<lux-app-header-ac-nav-menu [luxNavMenuMaximumExtended]="5">
|
|
12
|
+
<lux-app-header-ac-nav-menu-item luxLabel="Home" luxIconName="lux-home-1" (luxClicked)="router.navigate(['/'])">
|
|
13
|
+
</lux-app-header-ac-nav-menu-item>
|
|
14
|
+
<lux-app-header-ac-nav-menu-item
|
|
15
|
+
luxLabel="Profil"
|
|
16
|
+
luxIconName="lux-interface-user-single"
|
|
17
|
+
(luxClicked)="router.navigate(['/profil'])"
|
|
18
|
+
>
|
|
19
|
+
</lux-app-header-ac-nav-menu-item>
|
|
20
|
+
<lux-app-header-ac-nav-menu-item
|
|
21
|
+
luxLabel="Lizenzhinweise"
|
|
22
|
+
luxIconName="lux-interface-file-text"
|
|
23
|
+
(luxClicked)="router.navigate(['/license-hint'])"
|
|
24
|
+
>
|
|
25
|
+
</lux-app-header-ac-nav-menu-item>
|
|
26
|
+
</lux-app-header-ac-nav-menu>
|
|
27
|
+
|
|
28
|
+
<lux-app-header-ac-user-menu luxTooltip="Usermenü"></lux-app-header-ac-user-menu>
|
|
29
|
+
</lux-app-header-ac>
|
|
30
|
+
|
|
31
|
+
<lux-app-content luxAriaRoleMainLabel=""></lux-app-content>
|
|
32
|
+
|
|
33
|
+
<lux-app-footer luxVersion="0.1"></lux-app-footer>
|
|
34
|
+
</div>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
3
|
+
import { BrowserTestingModule } from '@angular/platform-browser/testing';
|
|
2
4
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
5
|
+
import { LuxActionModule, LuxLayoutModule } from '@ihk-gfi/lux-components';
|
|
3
6
|
import { AppComponent } from './app.component';
|
|
4
7
|
|
|
5
8
|
describe('AppComponent', () => {
|
|
6
9
|
beforeEach(waitForAsync(() => {
|
|
7
10
|
TestBed.configureTestingModule({
|
|
8
|
-
imports: [RouterTestingModule],
|
|
11
|
+
imports: [RouterTestingModule, LuxLayoutModule, LuxActionModule, BrowserAnimationsModule, BrowserTestingModule],
|
|
9
12
|
declarations: [AppComponent]
|
|
10
13
|
}).compileComponents();
|
|
11
14
|
}));
|
|
@@ -15,5 +18,4 @@ describe('AppComponent', () => {
|
|
|
15
18
|
const app = fixture.debugElement.componentInstance;
|
|
16
19
|
expect(app).toBeTruthy();
|
|
17
20
|
});
|
|
18
|
-
|
|
19
21
|
});
|
|
@@ -9,10 +9,10 @@ import { LuxSideNavComponent } from '@ihk-gfi/lux-components';
|
|
|
9
9
|
styleUrls: ['./app.component.scss']
|
|
10
10
|
})
|
|
11
11
|
export class AppComponent {
|
|
12
|
-
|
|
13
12
|
@ViewChild(LuxSideNavComponent) sideNavComp!: LuxSideNavComponent;
|
|
14
13
|
|
|
15
14
|
constructor(public router: Router, themeService: LuxThemeService) {
|
|
15
|
+
themeService.setTheme('authentic');
|
|
16
16
|
themeService.loadTheme();
|
|
17
17
|
router.initialNavigation();
|
|
18
18
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/***************************************************************************************************
|
|
2
|
+
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
|
|
3
|
+
*/
|
|
4
|
+
import '@angular/localize/init';
|
|
5
|
+
|
|
6
|
+
import { enableProdMode } from '@angular/core';
|
|
7
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
8
|
+
import { AppModule } from './app/app.module';
|
|
9
|
+
import { environment } from './environments/environment';
|
|
10
|
+
|
|
11
|
+
if (environment.production) {
|
|
12
|
+
enableProdMode();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
platformBrowserDynamic()
|
|
16
|
+
.bootstrapModule(AppModule)
|
|
17
|
+
.catch((err) => console.log(err));
|
|
@@ -5,7 +5,7 @@ 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/15.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");
|
|
@@ -16,9 +16,9 @@ function addLuxComponents(options) {
|
|
|
16
16
|
const jsonPathAllowedCommonJS = ['projects', options.project, 'architect', 'build', 'options', 'allowedCommonJsDependencies'];
|
|
17
17
|
const jsonPathBudget = ['projects', options.project, 'architect', 'build', 'configurations', 'production', 'budgets'];
|
|
18
18
|
const budgetValue = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
type: 'initial',
|
|
20
|
+
maximumWarning: '1mb',
|
|
21
|
+
maximumError: '2mb'
|
|
22
22
|
};
|
|
23
23
|
const jsonPathAssetsBuild = ['projects', options.project, 'architect', 'build', 'options', 'assets'];
|
|
24
24
|
const jsonPathAssetsTest = ['projects', options.project, 'architect', 'test', 'options', 'assets'];
|
|
@@ -29,48 +29,48 @@ function addLuxComponents(options) {
|
|
|
29
29
|
output: './assets/themes'
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
glob:
|
|
33
|
-
input:
|
|
34
|
-
output:
|
|
32
|
+
glob: 'all.css',
|
|
33
|
+
input: './node_modules/@fortawesome/fontawesome-free/css',
|
|
34
|
+
output: './assets/icons/fontawesome/css'
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
glob:
|
|
38
|
-
input:
|
|
39
|
-
output:
|
|
37
|
+
glob: '*(*.eot|*.ttf|*.woff|*.woff2)',
|
|
38
|
+
input: './node_modules/@fortawesome/fontawesome-free/webfonts',
|
|
39
|
+
output: './assets/icons/fontawesome/webfonts'
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
glob:
|
|
43
|
-
input:
|
|
44
|
-
output:
|
|
42
|
+
glob: 'material-design-icons.css*',
|
|
43
|
+
input: './node_modules/material-design-icons-iconfont/dist',
|
|
44
|
+
output: './assets/icons/material-icons'
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
glob:
|
|
48
|
-
input:
|
|
49
|
-
output:
|
|
47
|
+
glob: '*(*.eot|*.ttf|*.woff|*.woff2)',
|
|
48
|
+
input: './node_modules/material-design-icons-iconfont/dist/fonts',
|
|
49
|
+
output: './assets/icons/material-icons/fonts'
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
glob:
|
|
53
|
-
input:
|
|
54
|
-
output:
|
|
52
|
+
glob: '**/*',
|
|
53
|
+
input: './node_modules/@ihk-gfi/lux-components-icons-and-fonts/assets/icons/',
|
|
54
|
+
output: './assets/icons'
|
|
55
55
|
}
|
|
56
56
|
];
|
|
57
57
|
const jsonPathOptimization = ['projects', options.project, 'architect', 'build', 'configurations', 'production', 'optimization'];
|
|
58
58
|
const jsonValueOptimization = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
scripts: true,
|
|
60
|
+
styles: {
|
|
61
|
+
minify: true,
|
|
62
|
+
inlineCritical: false
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
fonts: true
|
|
65
65
|
};
|
|
66
66
|
const jsonPathLang = ['projects', options.project, 'i18n'];
|
|
67
67
|
const jsonValueLang = {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
sourceLocale: {
|
|
69
|
+
code: 'de',
|
|
70
|
+
baseHref: '/'
|
|
71
71
|
},
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
locales: {
|
|
73
|
+
en: 'src/locale/messages.en.xlf'
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
const findBudgetFn = (node) => (0, json_1.findObjectPropertyInArray)(node, 'type', 'initial');
|
|
@@ -250,4 +250,3 @@ function updateApp(options) {
|
|
|
250
250
|
]);
|
|
251
251
|
}
|
|
252
252
|
exports.updateApp = updateApp;
|
|
253
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "addLuxComponentsSchema",
|
|
4
|
+
"title": "Fügt die LUX-Components zum Projekt hinzu",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Fügt die LUX-Components zum Projekt hinzu",
|
|
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
|
+
}
|
package/collection.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"update": {
|
|
5
|
+
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 15.0.0",
|
|
6
|
+
"factory": "./updates/15.0.0/index#update",
|
|
7
|
+
"schema": "./updates/15.0.0/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"update-dependencies": {
|
|
10
|
+
"description": "Aktualisiert die Abhängigkeiten im LUX-Componentsprojekt",
|
|
11
|
+
"factory": "./update-dependencies/index#updateDependencies",
|
|
12
|
+
"schema": "./update-dependencies/schema.json"
|
|
13
|
+
},
|
|
14
|
+
"update-en-messages": {
|
|
15
|
+
"description": "Aktualisiert die englischen Übersetzungen im Projekt",
|
|
16
|
+
"factory": "./update-en-messages/index#updateEnMessages",
|
|
17
|
+
"schema": "./update-en-messages/schema.json"
|
|
18
|
+
},
|
|
19
|
+
"add-lux-components": {
|
|
20
|
+
"description": "Fügt die LUX-Components zum Projekt hinzu",
|
|
21
|
+
"factory": "./add-lux-components/index#addLuxComponents",
|
|
22
|
+
"schema": "./add-lux-components/schema.json"
|
|
23
|
+
},
|
|
24
|
+
"change-theme-to-authentic": {
|
|
25
|
+
"description": "Wechselt zum Authentic-Theme",
|
|
26
|
+
"factory": "./theme/change-theme-to-authentic/index#changeToThemeAuthentic",
|
|
27
|
+
"schema": "./theme/change-theme-to-authentic/schema.json"
|
|
28
|
+
},
|
|
29
|
+
"change-to-lux-icons": {
|
|
30
|
+
"description": "Die neuen LUX-Icons werden im Projekt eingerichtet",
|
|
31
|
+
"factory": "./theme/change-to-lux-icons/index#changeToLuxIcons",
|
|
32
|
+
"schema": "./theme/change-to-lux-icons/schema.json"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ihk-gfi/lux-components-update",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Schematics für die Aktualisierung von LUX-Applikationen",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "tsc -p tsconfig.json",
|
|
6
|
+
"build": "npm run clean && tsc -p tsconfig.json",
|
|
7
|
+
"clean": "del-cli --force dist/",
|
|
7
8
|
"husky-init": "husky install",
|
|
9
|
+
"pack-copy-base-files": "copyfiles package.json README.md LICENSE ./dist",
|
|
10
|
+
"pack-copy-template-dirs": "copyfiles -u 1 ./src/**/files/**/*.* ./dist",
|
|
11
|
+
"pack-update-colletion-path": "replace --silent './collection.json' './collection.json' dist/package.json",
|
|
12
|
+
"pack": "npm run build && npm run pack-copy-base-files && npm run pack-copy-template-dirs && npm run pack-update-colletion-path",
|
|
8
13
|
"security": "npm audit --registry=https://registry.npmjs.org --audit-level high",
|
|
9
|
-
"smoketest": "npm run
|
|
10
|
-
"test": "jasmine
|
|
14
|
+
"smoketest": "npm run test && npm run pack",
|
|
15
|
+
"test": "npm run build && tsc -p tsconfig.spec.json && jasmine dist/**/*.spec.js"
|
|
11
16
|
},
|
|
12
17
|
"keywords": [
|
|
13
18
|
"schematics",
|
|
14
19
|
"lux-components",
|
|
15
|
-
"
|
|
20
|
+
"jast"
|
|
16
21
|
],
|
|
17
22
|
"license": "IHK-GfI Open-Source-Lizenz",
|
|
18
|
-
"files": [
|
|
19
|
-
"src/**/*",
|
|
20
|
-
"LICENSE",
|
|
21
|
-
"package.json",
|
|
22
|
-
"README.md",
|
|
23
|
-
"tsconfig.json"
|
|
24
|
-
],
|
|
25
23
|
"repository": {
|
|
26
24
|
"type": "git",
|
|
27
25
|
"url": "https://github.com/IHK-GfI/lux-components-update.git"
|
|
@@ -30,28 +28,30 @@
|
|
|
30
28
|
"bugs": {
|
|
31
29
|
"url": "https://github.com/IHK-GfI/lux-components-update/issues"
|
|
32
30
|
},
|
|
33
|
-
"schematics": "./
|
|
31
|
+
"schematics": "./collection.json",
|
|
34
32
|
"dependencies": {
|
|
35
|
-
"@angular-devkit/core": "
|
|
36
|
-
"@angular-devkit/schematics": "
|
|
37
|
-
"@angular-devkit/schematics-cli": "
|
|
38
|
-
"@angular/cli": "
|
|
39
|
-
"@types/jasmine": "4.
|
|
40
|
-
"@types/node": "16.11.
|
|
41
|
-
"@types/semver": "7.
|
|
42
|
-
"@types/jsdom": "
|
|
33
|
+
"@angular-devkit/core": "15.2.5",
|
|
34
|
+
"@angular-devkit/schematics": "15.2.5",
|
|
35
|
+
"@angular-devkit/schematics-cli": "15.2.5",
|
|
36
|
+
"@angular/cli": "15.2.5",
|
|
37
|
+
"@types/jasmine": "4.3.1",
|
|
38
|
+
"@types/node": "16.11.7",
|
|
39
|
+
"@types/semver": "7.3.13",
|
|
40
|
+
"@types/jsdom": "21.1.1",
|
|
43
41
|
"chalk": "4.1.2",
|
|
44
42
|
"cheerio": "1.0.0-rc.9",
|
|
45
43
|
"htmlparser2": "6.1.0",
|
|
46
|
-
"jasmine": "4.
|
|
44
|
+
"jasmine": "4.6.0",
|
|
47
45
|
"jsdom": "20.0.1",
|
|
48
46
|
"jsonc-parser": "3.0.0",
|
|
49
|
-
"semver": "7.
|
|
50
|
-
"typescript": "4.
|
|
47
|
+
"semver": "7.3.7",
|
|
48
|
+
"typescript": "4.9.5"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
51
|
+
"copyfiles": "2.4.1",
|
|
52
|
+
"del-cli": "5.0.0",
|
|
53
|
+
"prettier": "2.8.3",
|
|
54
|
+
"pretty-quick": "3.1.3",
|
|
55
|
+
"replace": "1.2.2"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "ChangeToLuxIconsSchema",
|
|
4
|
+
"title": "Die neuen LUX-Icons werden im Projekt eingerichtet",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Die alten FA- und Material-Icons werden durch die neuen LUX-Icons ersetzt.",
|
|
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
|
+
}
|
|
@@ -3,3 +3,4 @@ export declare function updateDependencies(): Rule;
|
|
|
3
3
|
export declare function updateDep(name: string, version: string, onlyUpdate: boolean): Rule;
|
|
4
4
|
export declare function deleteDep(name: string): Rule;
|
|
5
5
|
export declare function updateDevDep(name: string, version: string | null, onlyUpdate: boolean): Rule;
|
|
6
|
+
export declare function deleteDevDep(name: string): Rule;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteDevDep = exports.updateDevDep = exports.deleteDep = exports.updateDep = exports.updateDependencies = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const dependencies_1 = require("../utility/dependencies");
|
|
6
|
+
const json_1 = require("../utility/json");
|
|
7
|
+
const util_1 = require("../utility/util");
|
|
8
|
+
const addOrUpdate = false;
|
|
9
|
+
const updateIfExists = true;
|
|
10
|
+
function updateDependencies() {
|
|
11
|
+
return (0, schematics_1.chain)([
|
|
12
|
+
(0, util_1.messageInfoRule)(`Abhängigkeiten in der Datei "package.json" werden aktualisiert...`),
|
|
13
|
+
updateDep('@ihk-gfi/lux-stammdaten', '15.0.0', updateIfExists),
|
|
14
|
+
updateDep('@ihk-gfi/lux-components', '15.0.0', addOrUpdate),
|
|
15
|
+
updateDep('@ihk-gfi/lux-components-theme', '15.0.0', addOrUpdate),
|
|
16
|
+
updateDep('@ihk-gfi/lux-components-icons-and-fonts', '1.6.0', addOrUpdate),
|
|
17
|
+
deleteDep('@ihk-gfi/lux-components-update'),
|
|
18
|
+
updateDep('@angular/animations', '15.2.9', addOrUpdate),
|
|
19
|
+
updateDep('@angular/common', '15.2.9', addOrUpdate),
|
|
20
|
+
updateDep('@angular/core', '15.2.9', addOrUpdate),
|
|
21
|
+
updateDep('@angular/compiler', '15.2.9', addOrUpdate),
|
|
22
|
+
updateDep('@angular/localize', '15.2.9', addOrUpdate),
|
|
23
|
+
updateDep('@angular/forms', '15.2.9', addOrUpdate),
|
|
24
|
+
updateDep('@angular/platform-browser', '15.2.9', addOrUpdate),
|
|
25
|
+
updateDep('@angular/platform-browser-dynamic', '15.2.9', addOrUpdate),
|
|
26
|
+
updateDep('@angular/router', '15.2.9', addOrUpdate),
|
|
27
|
+
updateDep('@angular/cdk', '15.2.9', addOrUpdate),
|
|
28
|
+
updateDep('@angular/material', '15.2.9', addOrUpdate),
|
|
29
|
+
updateDep('@angular/flex-layout', '15.0.0-beta.42', addOrUpdate),
|
|
30
|
+
updateDep('rxjs', '7.8.0', addOrUpdate),
|
|
31
|
+
updateDep('dompurify', '2.3.7', addOrUpdate),
|
|
32
|
+
updateDep('marked', '4.0.15', addOrUpdate),
|
|
33
|
+
deleteDep('@types/marked'),
|
|
34
|
+
updateDep('zone.js', '0.12.0', addOrUpdate),
|
|
35
|
+
updateDep('tslib', '2.5.0', updateIfExists),
|
|
36
|
+
updateDep('hammerjs', '2.0.8', addOrUpdate),
|
|
37
|
+
updateDep('ng2-pdf-viewer', '8.0.1', addOrUpdate),
|
|
38
|
+
updateDep('pdfjs-dist', '2.13.216', addOrUpdate),
|
|
39
|
+
updateDep('ngx-cookie-service', '15.0.0', addOrUpdate),
|
|
40
|
+
updateDevDep('@ihk-gfi/lux-components-update', '15.0.0', addOrUpdate),
|
|
41
|
+
updateDevDep('@angular-eslint/builder', '15.2.1', updateIfExists),
|
|
42
|
+
updateDevDep('@angular-eslint/eslint-plugin', '15.2.1', updateIfExists),
|
|
43
|
+
updateDevDep('@angular-eslint/eslint-plugin-template', '15.2.1', updateIfExists),
|
|
44
|
+
updateDevDep('@angular-eslint/schematics', '15.2.1', updateIfExists),
|
|
45
|
+
updateDevDep('@angular-eslint/template-parser', '15.2.1', updateIfExists),
|
|
46
|
+
updateDevDep('@typescript-eslint/eslint-plugin', '5.62.0', updateIfExists),
|
|
47
|
+
updateDevDep('@typescript-eslint/parser', '5.62.0', updateIfExists),
|
|
48
|
+
updateDevDep('eslint', '8.28.0', updateIfExists),
|
|
49
|
+
updateDevDep('eslint-plugin-import', '2.26.0', updateIfExists),
|
|
50
|
+
updateDevDep('eslint-plugin-jsdoc', '39.2.9', updateIfExists),
|
|
51
|
+
updateDevDep('eslint-plugin-prefer-arrow', '1.2.3', updateIfExists),
|
|
52
|
+
updateDevDep('@angular-devkit/build-angular', '15.2.9', addOrUpdate),
|
|
53
|
+
updateDevDep('@angular/compiler-cli', '15.2.9', addOrUpdate),
|
|
54
|
+
updateDevDep('@angular/cli', '15.2.9', addOrUpdate),
|
|
55
|
+
updateDevDep('@angular/language-service', '15.2.9', addOrUpdate),
|
|
56
|
+
updateDevDep('@angular/elements', '15.2.9', addOrUpdate),
|
|
57
|
+
updateDevDep('@compodoc/compodoc', '1.1.19', updateIfExists),
|
|
58
|
+
updateDevDep('@types/jasmine', '4.3.1', addOrUpdate),
|
|
59
|
+
updateDevDep('@types/marked', '4.0.3', addOrUpdate),
|
|
60
|
+
deleteDevDep('@types/node'),
|
|
61
|
+
deleteDevDep('tslint-angular'),
|
|
62
|
+
updateDevDep('jasmine-core', '4.6.0', addOrUpdate),
|
|
63
|
+
updateDevDep('karma', '6.4.1', addOrUpdate),
|
|
64
|
+
updateDevDep('karma-coverage', '2.2.0', addOrUpdate),
|
|
65
|
+
updateDevDep('karma-chrome-launcher', '3.1.1', addOrUpdate),
|
|
66
|
+
updateDevDep('karma-firefox-launcher', '2.1.2', updateIfExists),
|
|
67
|
+
updateDevDep('karma-jasmine', '5.1.0', addOrUpdate),
|
|
68
|
+
updateDevDep('karma-jasmine-html-reporter', '2.0.0', addOrUpdate),
|
|
69
|
+
updateDevDep('karma-safari-launcher', '1.0.0', updateIfExists),
|
|
70
|
+
updateDevDep('typescript', '4.9.5', addOrUpdate),
|
|
71
|
+
updateDevDep('fs-extra', '10.1.0', updateIfExists),
|
|
72
|
+
updateDevDep('del', '6.0.0', updateIfExists),
|
|
73
|
+
(0, util_1.messageSuccessRule)(`Abhängigkeiten in der Datei "package.json" wurden aktualisiert.`)
|
|
74
|
+
]);
|
|
75
|
+
}
|
|
76
|
+
exports.updateDependencies = updateDependencies;
|
|
77
|
+
function updateDep(name, version, onlyUpdate) {
|
|
78
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Default, name], version, onlyUpdate);
|
|
79
|
+
}
|
|
80
|
+
exports.updateDep = updateDep;
|
|
81
|
+
function deleteDep(name) {
|
|
82
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Default, name], void 0, true);
|
|
83
|
+
}
|
|
84
|
+
exports.deleteDep = deleteDep;
|
|
85
|
+
function updateDevDep(name, version, onlyUpdate) {
|
|
86
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Dev, name], version, onlyUpdate);
|
|
87
|
+
}
|
|
88
|
+
exports.updateDevDep = updateDevDep;
|
|
89
|
+
function deleteDevDep(name) {
|
|
90
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Dev, name], void 0, true);
|
|
91
|
+
}
|
|
92
|
+
exports.deleteDevDep = deleteDevDep;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "updateDependenciesSchema",
|
|
4
|
+
"title": "Aktualisiert die Abhängigkeiten im LUX-Componentsprojekt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Aktualisiert die Abhängigkeiten im 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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "updateEnMessagesSchema",
|
|
4
|
+
"title": "Aktualisiert die englischen Übersetzungen im Projekt.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Aktualisiert die englischen Übersetzungen im Projekt.",
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
export declare const updateMajorVersion = "15";
|
|
3
|
+
export declare const updateMinVersion = "14.8.0";
|
|
4
|
+
export declare const updateNodeMinVersion = "16.0.0";
|
|
5
|
+
export declare function update(options: any): Rule;
|
|
6
|
+
export declare function updateProject(options: any): Rule;
|
|
7
|
+
export declare function removeMaAndFaIcons(options: any): Rule;
|
|
8
|
+
export declare function updateProjectStructure(options: any): Rule;
|