@ihk-gfi/lux-components-update 15.0.2 → 15.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/update-dependencies/index.js +1 -1
- package/updates/15.0.0/index.js +1 -1
- package/add-lux-components/files/app/app-routing.module.ts +0 -21
- package/add-lux-components/files/app/app.component.html +0 -34
- package/add-lux-components/files/app/app.component.spec.ts +0 -21
- package/add-lux-components/files/app/app.component.ts +0 -24
- package/add-lux-components/files/app/app.module.ts +0 -61
- package/add-lux-components/files/environments/environment.prod.ts +0 -4
- package/add-lux-components/files/environments/environment.ts +0 -17
- package/add-lux-components/files/locale/messages.en.xlf +0 -1373
- package/add-lux-components/files/locale/messages.xlf +0 -1220
- package/add-lux-components/files/src/index.html +0 -31
- package/add-lux-components/files/src/main.ts +0 -17
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ihk-gfi/lux-components-update",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3",
|
|
4
4
|
"description": "Schematics für die Aktualisierung von LUX-Applikationen",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run clean && tsc -p tsconfig.json",
|
|
7
7
|
"clean": "del-cli --force dist/",
|
|
8
8
|
"husky-init": "husky install",
|
|
9
9
|
"pack-copy-base-files": "copyfiles package.json README.md LICENSE ./dist",
|
|
10
|
-
"pack-copy-template-dirs": "copyfiles -u 1
|
|
10
|
+
"pack-copy-template-dirs": "copyfiles -u 1 src/**/files/** dist",
|
|
11
11
|
"pack-update-colletion-path": "replace --silent './collection.json' './collection.json' dist/package.json",
|
|
12
12
|
"pack": "npm run build && npm run pack-copy-base-files && npm run pack-copy-template-dirs && npm run pack-update-colletion-path",
|
|
13
13
|
"security": "npm audit --registry=https://registry.npmjs.org --audit-level high",
|
|
14
14
|
"smoketest": "npm run test && npm run pack",
|
|
15
|
-
"test": "npm run build && tsc -p tsconfig.spec.json && jasmine dist/**/*.spec.js"
|
|
15
|
+
"test": "npm run build && tsc -p tsconfig.spec.json && npm run pack-copy-template-dirs && jasmine dist/**/*.spec.js"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"schematics",
|
|
@@ -38,7 +38,7 @@ function updateDependencies() {
|
|
|
38
38
|
updateDep('pdfjs-dist', '2.13.216', addOrUpdate),
|
|
39
39
|
updateDep('ngx-cookie-service', '15.0.0', addOrUpdate),
|
|
40
40
|
updateDep('ngx-build-plus', '15.0.0', addOrUpdate),
|
|
41
|
-
updateDevDep('@ihk-gfi/lux-components-update', '15.0.0', addOrUpdate),
|
|
41
|
+
updateDevDep('@ihk-gfi/lux-components-update', '^15.0.0', addOrUpdate),
|
|
42
42
|
updateDevDep('@angular-eslint/builder', '15.2.1', updateIfExists),
|
|
43
43
|
updateDevDep('@angular-eslint/eslint-plugin', '15.2.1', updateIfExists),
|
|
44
44
|
updateDevDep('@angular-eslint/eslint-plugin-template', '15.2.1', updateIfExists),
|
package/updates/15.0.0/index.js
CHANGED
|
@@ -107,7 +107,7 @@ function removeLuxMasterDetailMobileHelperService(options) {
|
|
|
107
107
|
function copyAppFiles(options) {
|
|
108
108
|
return (0, schematics_1.chain)([
|
|
109
109
|
(0, util_1.messageInfoRule)(`Dateien werden kopiert...`),
|
|
110
|
-
(0, files_1.moveFilesToDirectory)(options, 'files/src', '/src'),
|
|
110
|
+
(0, files_1.moveFilesToDirectory)(options, '/files/src', '/src'),
|
|
111
111
|
(0, util_1.messageSuccessRule)(`Dateien wurden kopiert.`)
|
|
112
112
|
]);
|
|
113
113
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { LuxLayoutModule } from '@ihk-gfi/lux-components';
|
|
4
|
-
import { LicenseHintComponent } from './base/license-hint/license-hint.component';
|
|
5
|
-
import { ErrorComponent } from './error/error.component';
|
|
6
|
-
import { HomeComponent } from './home/home.component';
|
|
7
|
-
import { ProfilComponent } from './profil/profil.component';
|
|
8
|
-
|
|
9
|
-
const routes: Routes = [
|
|
10
|
-
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
|
11
|
-
{ path: 'home', component: HomeComponent },
|
|
12
|
-
{ path: 'profil', component: ProfilComponent },
|
|
13
|
-
{ path: 'license-hint', component: LicenseHintComponent },
|
|
14
|
-
{ path: '**', component: ErrorComponent } // Immer als letzte Route !! -> 404!
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
@NgModule({
|
|
18
|
-
imports: [LuxLayoutModule, RouterModule.forRoot(routes)],
|
|
19
|
-
exports: [RouterModule]
|
|
20
|
-
})
|
|
21
|
-
export class AppRoutingModule {}
|
|
@@ -1,34 +0,0 @@
|
|
|
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,21 +0,0 @@
|
|
|
1
|
-
import { TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
3
|
-
import { BrowserTestingModule } from '@angular/platform-browser/testing';
|
|
4
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
5
|
-
import { LuxActionModule, LuxLayoutModule } from '@ihk-gfi/lux-components';
|
|
6
|
-
import { AppComponent } from './app.component';
|
|
7
|
-
|
|
8
|
-
describe('AppComponent', () => {
|
|
9
|
-
beforeEach(waitForAsync(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
imports: [RouterTestingModule, LuxLayoutModule, LuxActionModule, BrowserAnimationsModule, BrowserTestingModule],
|
|
12
|
-
declarations: [AppComponent]
|
|
13
|
-
}).compileComponents();
|
|
14
|
-
}));
|
|
15
|
-
|
|
16
|
-
it('should create the app', () => {
|
|
17
|
-
const fixture = TestBed.createComponent(AppComponent);
|
|
18
|
-
const app = fixture.debugElement.componentInstance;
|
|
19
|
-
expect(app).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component, ViewChild } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { LuxThemeService } from '@ihk-gfi/lux-components';
|
|
4
|
-
import { LuxSideNavComponent } from '@ihk-gfi/lux-components';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'app-root',
|
|
8
|
-
templateUrl: './app.component.html',
|
|
9
|
-
styleUrls: ['./app.component.scss']
|
|
10
|
-
})
|
|
11
|
-
export class AppComponent {
|
|
12
|
-
@ViewChild(LuxSideNavComponent) sideNavComp!: LuxSideNavComponent;
|
|
13
|
-
|
|
14
|
-
constructor(public router: Router, themeService: LuxThemeService) {
|
|
15
|
-
themeService.setTheme('authentic');
|
|
16
|
-
themeService.loadTheme();
|
|
17
|
-
router.initialNavigation();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
goToLicenseHint() {
|
|
21
|
-
this.sideNavComp.close();
|
|
22
|
-
this.router.navigate(['license-hint']);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { registerLocaleData } from '@angular/common';
|
|
2
|
-
import localeDE from '@angular/common/locales/de';
|
|
3
|
-
import localeDeExtra from '@angular/common/locales/extra/de';
|
|
4
|
-
import { NgModule } from '@angular/core';
|
|
5
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
6
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
7
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
8
|
-
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
9
|
-
import {
|
|
10
|
-
LuxActionModule,
|
|
11
|
-
LuxMarkdownModule,
|
|
12
|
-
LuxCommonModule,
|
|
13
|
-
LuxComponentsConfigModule,
|
|
14
|
-
LuxComponentsConfigParameters,
|
|
15
|
-
LuxDirectivesModule,
|
|
16
|
-
LuxErrorModule,
|
|
17
|
-
LuxFormModule,
|
|
18
|
-
LuxIconModule,
|
|
19
|
-
LuxLayoutModule,
|
|
20
|
-
LuxPipesModule,
|
|
21
|
-
LuxPopupsModule
|
|
22
|
-
} from '@ihk-gfi/lux-components';
|
|
23
|
-
import { environment } from '../environments/environment';
|
|
24
|
-
|
|
25
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
26
|
-
import { AppComponent } from './app.component';
|
|
27
|
-
import { ErrorComponent } from './error/error.component';
|
|
28
|
-
import { HomeComponent } from './home/home.component';
|
|
29
|
-
import { ProfilComponent } from './profil/profil.component';
|
|
30
|
-
import { LicenseHintComponent } from './base/license-hint/license-hint.component';
|
|
31
|
-
|
|
32
|
-
registerLocaleData(localeDE, localeDeExtra);
|
|
33
|
-
|
|
34
|
-
const luxComponentsConfig: LuxComponentsConfigParameters = {
|
|
35
|
-
generateLuxTagIds: environment.generateLuxTagIds,
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
@NgModule({
|
|
39
|
-
declarations: [AppComponent, HomeComponent, ErrorComponent, ProfilComponent, LicenseHintComponent],
|
|
40
|
-
imports: [
|
|
41
|
-
BrowserModule,
|
|
42
|
-
BrowserAnimationsModule,
|
|
43
|
-
AppRoutingModule,
|
|
44
|
-
HttpClientModule,
|
|
45
|
-
LuxDirectivesModule,
|
|
46
|
-
LuxIconModule,
|
|
47
|
-
LuxLayoutModule,
|
|
48
|
-
LuxActionModule,
|
|
49
|
-
LuxFormModule,
|
|
50
|
-
LuxCommonModule,
|
|
51
|
-
LuxPipesModule,
|
|
52
|
-
LuxPopupsModule,
|
|
53
|
-
LuxErrorModule,
|
|
54
|
-
LuxMarkdownModule,
|
|
55
|
-
FlexLayoutModule,
|
|
56
|
-
LuxComponentsConfigModule.forRoot(luxComponentsConfig)
|
|
57
|
-
],
|
|
58
|
-
providers: [],
|
|
59
|
-
bootstrap: [AppComponent]
|
|
60
|
-
})
|
|
61
|
-
export class AppModule {}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
-
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
-
// The list of file replacements can be found in `angular.json`.
|
|
4
|
-
|
|
5
|
-
export const environment = {
|
|
6
|
-
production: false,
|
|
7
|
-
generateLuxTagIds: true
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/*
|
|
11
|
-
* For easier debugging in development mode, you can import the following file
|
|
12
|
-
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
13
|
-
*
|
|
14
|
-
* This import should be commented out in production mode because it will have a negative impact
|
|
15
|
-
* on performance if an error is thrown.
|
|
16
|
-
*/
|
|
17
|
-
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
|