@igniteui/angular-templates 18.0.1330-beta.0 → 18.0.1330-beta.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/igx-ts/hierarchical-grid/hierarchical-grid-batch-editing/files/src/app/__path__/__filePrefix__.component.ts +1 -1
- package/igx-ts-legacy/projects/_base/files/src/app/app-routing.module.ts +2 -3
- package/package.json +2 -2
- package/igx-ts/projects/_base/files/src/app/error-routing/error/global-error-handler.service.ts +0 -23
- package/igx-ts-legacy/projects/_base/files/src/app/error-routing/error/global-error-handler.service.ts +0 -23
- package/igx-ts-legacy/projects/_base/files/src/app/error-routing/error-routing.module.ts +0 -21
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
IgxLabelDirective,
|
|
15
15
|
IgxInputDirective,
|
|
16
16
|
IgxCheckboxComponent,
|
|
17
|
+
GridType
|
|
17
18
|
} from '<%=igxPackage%>';
|
|
18
|
-
import { GridType } from '<%=igxPackage%>/lib/grids/common/grid.interface';
|
|
19
19
|
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
20
20
|
import { SINGERS } from './data';
|
|
21
21
|
import { Singer } from './singer';
|
|
@@ -3,7 +3,6 @@ import { RouterModule, Routes } from '@angular/router';
|
|
|
3
3
|
|
|
4
4
|
import { PageNotFoundComponent } from './error-routing/not-found/not-found.component';
|
|
5
5
|
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';
|
|
6
|
-
import { ErrorRoutingModule } from './error-routing/error-routing.module';
|
|
7
6
|
|
|
8
7
|
export const routes: Routes = [
|
|
9
8
|
{ path: 'error', component: UncaughtErrorComponent },
|
|
@@ -11,7 +10,7 @@ export const routes: Routes = [
|
|
|
11
10
|
];
|
|
12
11
|
|
|
13
12
|
@NgModule({
|
|
14
|
-
imports: [RouterModule.forRoot(routes, { bindToComponentInputs: true })
|
|
15
|
-
exports: [RouterModule
|
|
13
|
+
imports: [RouterModule.forRoot(routes, { bindToComponentInputs: true })],
|
|
14
|
+
exports: [RouterModule]
|
|
16
15
|
})
|
|
17
16
|
export class AppRoutingModule { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igniteui/angular-templates",
|
|
3
|
-
"version": "18.0.1330-beta.
|
|
3
|
+
"version": "18.0.1330-beta.1",
|
|
4
4
|
"description": "Templates for Ignite UI for Angular projects and components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"author": "Infragistics",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@igniteui/cli-core": "~13.3.0-beta.
|
|
15
|
+
"@igniteui/cli-core": "~13.3.0-beta.1",
|
|
16
16
|
"typescript": "~5.4.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
package/igx-ts/projects/_base/files/src/app/error-routing/error/global-error-handler.service.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ErrorHandler, Injectable, Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
@Injectable()
|
|
5
|
-
export class GlobalErrorHandlerService implements ErrorHandler {
|
|
6
|
-
|
|
7
|
-
constructor(private injector: Injector, private zone: NgZone) { }
|
|
8
|
-
|
|
9
|
-
handleError(error: any) {
|
|
10
|
-
// handle and/or log error, for example:
|
|
11
|
-
console.error(error);
|
|
12
|
-
|
|
13
|
-
// show error page
|
|
14
|
-
const router = this.injector.get(Router);
|
|
15
|
-
if (router) {
|
|
16
|
-
this.zone.run(() => {
|
|
17
|
-
router
|
|
18
|
-
.navigate(['error'])
|
|
19
|
-
.catch((err: any) => console.error(err));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ErrorHandler, Injectable, Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
@Injectable()
|
|
5
|
-
export class GlobalErrorHandlerService implements ErrorHandler {
|
|
6
|
-
|
|
7
|
-
constructor(private injector: Injector, private zone: NgZone) { }
|
|
8
|
-
|
|
9
|
-
handleError(error: any) {
|
|
10
|
-
// handle and/or log error, for example:
|
|
11
|
-
console.error(error);
|
|
12
|
-
|
|
13
|
-
// show error page
|
|
14
|
-
const router = this.injector.get(Router);
|
|
15
|
-
if (router) {
|
|
16
|
-
this.zone.run(() => {
|
|
17
|
-
router
|
|
18
|
-
.navigate(['error'])
|
|
19
|
-
.catch((err: any) => console.error(err));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ErrorHandler, NgModule, Provider } from '@angular/core';
|
|
2
|
-
import { environment } from '../../environments/environment';
|
|
3
|
-
import { GlobalErrorHandlerService } from './error/global-error-handler.service';
|
|
4
|
-
import { UncaughtErrorComponent } from './error/uncaught-error.component';
|
|
5
|
-
import { PageNotFoundComponent } from './not-found/not-found.component';
|
|
6
|
-
|
|
7
|
-
const providers: Provider[] = [];
|
|
8
|
-
|
|
9
|
-
if (environment.production) {
|
|
10
|
-
// register prod error handler
|
|
11
|
-
providers.push({ provide: ErrorHandler, useClass: GlobalErrorHandlerService });
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@NgModule({
|
|
15
|
-
declarations: [
|
|
16
|
-
PageNotFoundComponent,
|
|
17
|
-
UncaughtErrorComponent
|
|
18
|
-
],
|
|
19
|
-
providers
|
|
20
|
-
})
|
|
21
|
-
export class ErrorRoutingModule { }
|