@igniteui/angular-templates 18.0.1400-beta.0 → 18.1.1340
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/IgniteUIForAngularTemplate.d.ts +2 -2
- package/IgniteUIForAngularTemplate.js +24 -40
- package/igx-ts/bullet-graph/default/index.js +1 -1
- package/igx-ts/category-chart/default/index.js +1 -1
- package/igx-ts/custom-templates/awesome-grid/index.js +1 -1
- package/igx-ts/custom-templates/crm-grid/index.js +1 -1
- package/igx-ts/custom-templates/fintech-grid/index.js +1 -1
- package/igx-ts/dock-manager/default/index.js +3 -0
- package/igx-ts/financial-chart/default/index.js +1 -1
- package/igx-ts/grid/grid-custom/index.js +2 -2
- package/igx-ts/hierarchical-grid/hierarchical-grid-custom/index.js +1 -1
- package/igx-ts/linear-gauge/default/index.js +1 -1
- package/igx-ts/map/default/index.js +1 -1
- package/igx-ts/projects/_base/files/package.json +1 -1
- package/igx-ts/projects/_base/files/src/app/app.config.ts +16 -8
- package/igx-ts/projects/_base_with_home/files/src/app/app.config.ts +5 -7
- package/igx-ts/projects/empty/files/src/app/app.config.ts +5 -7
- package/igx-ts/projects/side-nav/files/src/app/app.config.ts +19 -19
- package/igx-ts/projects/side-nav-auth/files/package.json +18 -18
- package/igx-ts/projects/side-nav-auth/files/src/app/app.config.ts +21 -21
- package/igx-ts/radial-gauge/default/index.js +1 -1
- package/igx-ts-legacy/bullet-graph/default/index.js +1 -1
- package/igx-ts-legacy/category-chart/default/index.js +1 -1
- package/igx-ts-legacy/custom-templates/awesome-grid/index.js +1 -1
- package/igx-ts-legacy/custom-templates/crm-grid/index.js +1 -1
- package/igx-ts-legacy/custom-templates/fintech-grid/index.js +1 -1
- package/igx-ts-legacy/dock-manager/default/index.js +3 -1
- package/igx-ts-legacy/financial-chart/default/index.js +1 -1
- package/igx-ts-legacy/linear-gauge/default/index.js +1 -1
- package/igx-ts-legacy/map/default/index.js +1 -1
- package/igx-ts-legacy/projects/_base/files/package.json +1 -1
- package/igx-ts-legacy/projects/_base/files/src/app/app-routing.module.ts +1 -1
- package/igx-ts-legacy/projects/_base_with_home/files/src/app/app-routing.module.ts +1 -1
- package/igx-ts-legacy/projects/empty/files/src/app/app-routing.module.ts +1 -1
- package/igx-ts-legacy/projects/side-nav-auth/files/package.json +18 -18
- package/igx-ts-legacy/radial-gauge/default/index.js +1 -1
- package/index.d.ts +2 -4
- package/index.js +0 -2
- package/package.json +2 -2
- package/AngularTypeScriptFileUpdate.d.ts +0 -69
- package/AngularTypeScriptFileUpdate.js +0 -285
- package/types/AngularRouteEntry.d.ts +0 -6
- package/types/AngularRouteEntry.js +0 -2
- package/types/AngularRouteLike.d.ts +0 -10
- package/types/AngularRouteLike.js +0 -2
- package/types/enumerations/AngularDecoratorMetaTarget.d.ts +0 -8
- package/types/enumerations/AngularDecoratorMetaTarget.js +0 -12
- package/types/enumerations/AngularRouteTarget.d.ts +0 -10
- package/types/enumerations/AngularRouteTarget.js +0 -14
- package/types/index.d.ts +0 -4
- package/types/index.js +0 -20
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { AddTemplateArgs, ControlExtraConfiguration, Template, TemplateDependency } from "@igniteui/cli-core";
|
|
1
|
+
import { AddTemplateArgs, ControlExtraConfiguration, Template, TemplateDependency, TypeScriptFileUpdate } from "@igniteui/cli-core";
|
|
2
2
|
export declare class IgniteUIForAngularTemplate implements Template {
|
|
3
3
|
private rootPath;
|
|
4
4
|
components: string[];
|
|
5
5
|
controlGroup: string;
|
|
6
6
|
listInComponentTemplates: boolean;
|
|
7
|
-
addAsNgModelDeclaration: boolean;
|
|
8
7
|
listInCustomTemplates: boolean;
|
|
9
8
|
id: string;
|
|
10
9
|
name: string;
|
|
@@ -33,6 +32,7 @@ export declare class IgniteUIForAngularTemplate implements Template {
|
|
|
33
32
|
getExtraConfiguration(): ControlExtraConfiguration[];
|
|
34
33
|
setExtraConfiguration(extraConfigKeys: {}): void;
|
|
35
34
|
fileExists(filePath: string): boolean;
|
|
35
|
+
protected addClassDeclaration(mainModule: TypeScriptFileUpdate, projPath: string, name: string, modulePath: string): void;
|
|
36
36
|
protected getBaseVariables(name: string): {
|
|
37
37
|
[key: string]: string;
|
|
38
38
|
};
|
|
@@ -10,7 +10,6 @@ class IgniteUIForAngularTemplate {
|
|
|
10
10
|
constructor(rootPath) {
|
|
11
11
|
this.rootPath = rootPath;
|
|
12
12
|
this.listInComponentTemplates = true;
|
|
13
|
-
this.addAsNgModelDeclaration = true;
|
|
14
13
|
this.listInCustomTemplates = false;
|
|
15
14
|
this.framework = "angular";
|
|
16
15
|
this.projectType = "igx-ts";
|
|
@@ -47,36 +46,30 @@ class IgniteUIForAngularTemplate {
|
|
|
47
46
|
// tslint:disable-next-line:variable-name
|
|
48
47
|
const TsUpdate =
|
|
49
48
|
// tslint:disable-next-line:no-submodule-imports
|
|
50
|
-
require("@igniteui/
|
|
51
|
-
const mainModulePath = path.join(projectPath, `src/app/${modulePath}`);
|
|
52
|
-
const folderName = this.folderName(name);
|
|
53
|
-
const fileName = this.fileName(name);
|
|
54
|
-
const componentFilePath = path.join(projectPath, `src/app/${folderName}/${fileName}.component.ts`);
|
|
55
|
-
const className = `${cli_core_1.Util.className(cli_core_1.Util.nameFromPath(name))}Component`;
|
|
49
|
+
require("@igniteui/cli-core/typescript").TypeScriptFileUpdate;
|
|
56
50
|
// standalone components
|
|
51
|
+
const mainModulePath = path.join(projectPath, `src/app/${modulePath}`);
|
|
57
52
|
if (!this.fileExists(mainModulePath)) {
|
|
58
53
|
const appRoutesPath = "src/app/app.routes.ts";
|
|
54
|
+
const folderName = this.folderName(name);
|
|
55
|
+
const fileName = this.fileName(name);
|
|
59
56
|
if (!(options && options.skipRoute) && this.fileExists(appRoutesPath)) {
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
path: this.fileName(name),
|
|
65
|
-
data: { text: cli_core_1.Util.nameFromPath(name) },
|
|
66
|
-
identifierName: className
|
|
67
|
-
});
|
|
68
|
-
rountesConfig.finalize();
|
|
57
|
+
const rountesConfig = new TsUpdate(path.join(projectPath, appRoutesPath));
|
|
58
|
+
rountesConfig.addRoute(path.join(projectPath, `src/app/${folderName}/${fileName}.component.ts`), this.fileName(name), //path
|
|
59
|
+
cli_core_1.Util.nameFromPath(name) //text
|
|
60
|
+
);
|
|
69
61
|
}
|
|
70
|
-
const componentFile = new TsUpdate(
|
|
62
|
+
const componentFile = new TsUpdate(path.join(projectPath, `src/app/${folderName}/${fileName}.component.ts`));
|
|
71
63
|
for (const dep of this.dependencies) {
|
|
72
64
|
if (dep.from && dep.from.startsWith(".")) {
|
|
73
65
|
// relative file dependency
|
|
74
66
|
const copy = Object.assign({}, dep);
|
|
75
|
-
copy.from = cli_core_1.Util.relativePath(
|
|
76
|
-
|
|
67
|
+
copy.from = cli_core_1.Util.relativePath(path.join(projectPath, `src/app/${folderName}/${fileName}.component.ts`), path.join(projectPath, copy.from), true, true);
|
|
68
|
+
// can use addNgModuleMeta here instead?
|
|
69
|
+
componentFile.addStandaloneImport(copy, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content));
|
|
77
70
|
continue;
|
|
78
71
|
}
|
|
79
|
-
componentFile.
|
|
72
|
+
componentFile.addStandaloneImport(dep, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content));
|
|
80
73
|
}
|
|
81
74
|
componentFile.finalize();
|
|
82
75
|
return;
|
|
@@ -86,37 +79,25 @@ class IgniteUIForAngularTemplate {
|
|
|
86
79
|
//1) import the component class name,
|
|
87
80
|
//2) and populate the Routes array with the path and component
|
|
88
81
|
//for example: { path: 'combo', component: ComboComponent }
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
path: this.fileName(name),
|
|
94
|
-
data: { text: cli_core_1.Util.nameFromPath(name) },
|
|
95
|
-
identifierName: className
|
|
96
|
-
});
|
|
97
|
-
routingModule.finalize();
|
|
82
|
+
const routingModule = new TsUpdate(path.join(projectPath, "src/app/app-routing.module.ts"));
|
|
83
|
+
routingModule.addRoute(path.join(projectPath, `src/app/${this.folderName(name)}/${this.fileName(name)}.component.ts`), this.fileName(name), //path
|
|
84
|
+
cli_core_1.Util.nameFromPath(name) //text
|
|
85
|
+
);
|
|
98
86
|
}
|
|
99
87
|
//3) add an import of the component class from its file location.
|
|
100
88
|
//4) populate the declarations portion of the @NgModule with the component class name.
|
|
101
|
-
const mainModule = new TsUpdate(mainModulePath
|
|
102
|
-
|
|
103
|
-
declare: this.addAsNgModelDeclaration ? [className] : [],
|
|
104
|
-
from: cli_core_1.Util.relativePath(mainModulePath, componentFilePath, true, true),
|
|
105
|
-
export: modulePath !== "app.module.ts" ? [className] : []
|
|
106
|
-
}, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content), true // multiline
|
|
107
|
-
);
|
|
89
|
+
const mainModule = new TsUpdate(mainModulePath);
|
|
90
|
+
this.addClassDeclaration(mainModule, projectPath, name, modulePath);
|
|
108
91
|
// import IgxModules and other dependencies
|
|
109
92
|
for (const dep of this.dependencies) {
|
|
110
93
|
if (dep.from && dep.from.startsWith(".")) {
|
|
111
94
|
// relative file dependency
|
|
112
95
|
const copy = Object.assign({}, dep);
|
|
113
96
|
copy.from = cli_core_1.Util.relativePath(mainModulePath, path.join(projectPath, copy.from), true, true);
|
|
114
|
-
mainModule.addNgModuleMeta(copy, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content)
|
|
115
|
-
);
|
|
97
|
+
mainModule.addNgModuleMeta(copy, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content));
|
|
116
98
|
}
|
|
117
99
|
else {
|
|
118
|
-
mainModule.addNgModuleMeta(dep, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content)
|
|
119
|
-
);
|
|
100
|
+
mainModule.addNgModuleMeta(dep, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content));
|
|
120
101
|
}
|
|
121
102
|
}
|
|
122
103
|
mainModule.finalize();
|
|
@@ -128,6 +109,9 @@ class IgniteUIForAngularTemplate {
|
|
|
128
109
|
fileExists(filePath) {
|
|
129
110
|
return cli_core_1.App.container.get(cli_core_1.FS_TOKEN).fileExists(filePath);
|
|
130
111
|
}
|
|
112
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
113
|
+
mainModule.addDeclaration(path.join(projPath, `src/app/${this.folderName(name)}/${this.fileName(name)}.component.ts`), modulePath !== "app.module.ts");
|
|
114
|
+
}
|
|
131
115
|
getBaseVariables(name) {
|
|
132
116
|
const config = {};
|
|
133
117
|
config["name"] = cli_core_1.Util.nameFromPath(name);
|
|
@@ -12,7 +12,7 @@ class IgxBulletGraphTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
12
12
|
this.projectType = "igx-ts";
|
|
13
13
|
this.name = "Bullet Graph";
|
|
14
14
|
this.description = "IgxBulletGraph with different animations.";
|
|
15
|
-
this.packages = ["igniteui-angular-core@~
|
|
15
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-gauges@~18.0.0", constants_1.IGNITEUI_ANGULAR_PACKAGE];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
module.exports = new IgxBulletGraphTemplate();
|
|
@@ -11,7 +11,7 @@ class IgxCategoryChartTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForA
|
|
|
11
11
|
this.projectType = "igx-ts";
|
|
12
12
|
this.name = "Category Chart";
|
|
13
13
|
this.description = "basic category chart with chart type selector.";
|
|
14
|
-
this.packages = ["igniteui-angular-core@~
|
|
14
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
module.exports = new IgxCategoryChartTemplate();
|
|
@@ -10,7 +10,7 @@ class IgxGridAwesomeTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
10
10
|
this.listInCustomTemplates = true;
|
|
11
11
|
this.name = "Awesome Grid";
|
|
12
12
|
this.description = "Awesome IgxGrid";
|
|
13
|
-
this.packages = ["igniteui-angular-core@~
|
|
13
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
module.exports = new IgxGridAwesomeTemplate();
|
|
@@ -10,7 +10,7 @@ class IgxGridCRMTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAngular
|
|
|
10
10
|
this.listInCustomTemplates = true;
|
|
11
11
|
this.name = "CRM Grid";
|
|
12
12
|
this.description = "CRM IgxGrid";
|
|
13
|
-
this.packages = ["igniteui-angular-core@~
|
|
13
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
module.exports = new IgxGridCRMTemplate();
|
|
@@ -10,7 +10,7 @@ class IgxFinTechGridTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
10
10
|
this.listInCustomTemplates = true;
|
|
11
11
|
this.name = "FinTech Grid";
|
|
12
12
|
this.description = "Grid with simulated high-frequency data feed";
|
|
13
|
-
this.packages = ["igniteui-angular-core@~
|
|
13
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
module.exports = new IgxFinTechGridTemplate();
|
|
@@ -15,5 +15,8 @@ class IgcDockManagerTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
15
15
|
// "igniteui-dockmanager@~1.0.0":
|
|
16
16
|
this.packages = [`${(0, cli_core_1.resolvePackage)(cli_core_1.NPM_DOCK_MANAGER)}@~1.8.0`];
|
|
17
17
|
}
|
|
18
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
19
|
+
// not applicable with custom module
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
module.exports = new IgcDockManagerTemplate();
|
|
@@ -10,7 +10,7 @@ class IgxFinancialChartTemplate extends IgniteUIForAngularTemplate_1.IgniteUIFor
|
|
|
10
10
|
this.id = "financial-chart";
|
|
11
11
|
this.projectType = "igx-ts";
|
|
12
12
|
this.name = "Financial Chart";
|
|
13
|
-
this.packages = ["igniteui-angular-core@~
|
|
13
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
module.exports = new IgxFinancialChartTemplate();
|
|
@@ -95,7 +95,7 @@ class IgxCustomGridTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAngu
|
|
|
95
95
|
checkBoxBind = `[ngModel]="cell.value" (ngModelChange)="cell.update($event)"`;
|
|
96
96
|
// enable Date Picker, ngModel
|
|
97
97
|
// this.dependencies.push({ import: "IgxDatePickerModule", from: "<%=igxPackage%>" });
|
|
98
|
-
this.dependencies.push({ import: "FormsModule", from: "@angular/forms"
|
|
98
|
+
this.dependencies.push({ import: "FormsModule", from: "@angular/forms" });
|
|
99
99
|
// datePickerEditor = EOL +
|
|
100
100
|
// `<ng-template igxCellEditor let-cell="cell">` + EOL +
|
|
101
101
|
// ` <igx-date-picker cancelButtonLabel="cancel" todayButtonLabel="today" [(ngModel)]="cell.value"` +
|
|
@@ -107,7 +107,7 @@ class IgxCustomGridTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAngu
|
|
|
107
107
|
break;
|
|
108
108
|
case "Row Editing":
|
|
109
109
|
gridFeatures.push(`[rowEditable]="true"`);
|
|
110
|
-
this.dependencies.push({ import: "IgxDatePickerComponent", from: "<%=igxPackage%>"
|
|
110
|
+
this.dependencies.push({ import: "IgxDatePickerComponent", from: "<%=igxPackage%>" });
|
|
111
111
|
break;
|
|
112
112
|
case "Row Selection":
|
|
113
113
|
const gridFeatureText = `rowSelection="multiple"`;
|
|
@@ -111,7 +111,7 @@ class IgxHierarchicalGridTemplate extends IgniteUIForAngularTemplate_1.IgniteUIF
|
|
|
111
111
|
break;
|
|
112
112
|
case "Cell Editing":
|
|
113
113
|
columnFeatures.push(`[editable]="true"`);
|
|
114
|
-
this.dependencies.push({ import: "FormsModule", from: "@angular/forms"
|
|
114
|
+
this.dependencies.push({ import: "FormsModule", from: "@angular/forms" });
|
|
115
115
|
break;
|
|
116
116
|
case "Row Selection":
|
|
117
117
|
const gridFeatureText = `rowSelection="multiple"`;
|
|
@@ -12,7 +12,7 @@ class IgxLinearGaugeTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
12
12
|
this.projectType = "igx-ts";
|
|
13
13
|
this.name = "Linear Gauge";
|
|
14
14
|
this.description = "IgxLinearGauge with different animations.";
|
|
15
|
-
this.packages = ["igniteui-angular-core@~
|
|
15
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-gauges@~18.0.0", constants_1.IGNITEUI_ANGULAR_PACKAGE];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
module.exports = new IgxLinearGaugeTemplate();
|
|
@@ -11,7 +11,7 @@ class IgxGeographicMapTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForA
|
|
|
11
11
|
this.projectType = "igx-ts";
|
|
12
12
|
this.name = "Geographic Map";
|
|
13
13
|
this.description = "Basic IgxGeographicMap.";
|
|
14
|
-
this.packages = ["igniteui-angular-core@~
|
|
14
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0", "igniteui-angular-maps@~18.0.0"];
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
module.exports = new IgxGeographicMapTemplate();
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { ApplicationConfig, ErrorHandler, Provider, importProvidersFrom } from '@angular/core';
|
|
2
|
-
import { provideRouter } from '@angular/router';
|
|
2
|
+
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
3
3
|
import { BrowserModule, HammerModule } from '@angular/platform-browser';
|
|
4
4
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
5
|
+
import {
|
|
6
|
+
IgxNavigationDrawerModule,
|
|
7
|
+
IgxNavbarModule,
|
|
8
|
+
IgxLayoutModule,
|
|
9
|
+
IgxRippleModule,
|
|
10
|
+
} from 'igniteui-angular';
|
|
5
11
|
|
|
6
12
|
import { routes } from './app.routes';
|
|
7
13
|
import { GlobalErrorHandlerService } from './error-routing/error/global-error-handler.service';
|
|
8
14
|
import { environment } from '../environments/environment';
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
const providers: Provider[] = [
|
|
17
|
+
[
|
|
18
|
+
provideRouter(routes, withComponentInputBinding()),
|
|
19
|
+
importProvidersFrom(BrowserModule),
|
|
20
|
+
provideAnimations()
|
|
21
|
+
// provide the HAMMER_GESTURE_CONFIG token
|
|
22
|
+
// to override the default settings of the HammerModule
|
|
23
|
+
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
|
|
24
|
+
]
|
|
17
25
|
];
|
|
18
26
|
|
|
19
27
|
if (environment.production) {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ApplicationConfig
|
|
2
|
-
import { provideRouter } from '@angular/router';
|
|
1
|
+
import { ApplicationConfig } from '@angular/core';
|
|
2
|
+
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
3
3
|
|
|
4
4
|
import { routes } from './app.routes';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
provideRouter(routes)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export const appConfig: ApplicationConfig = { providers };
|
|
6
|
+
export const appConfig: ApplicationConfig = {
|
|
7
|
+
providers: [provideRouter(routes, withComponentInputBinding())]
|
|
8
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ApplicationConfig
|
|
2
|
-
import { provideRouter } from '@angular/router';
|
|
1
|
+
import { ApplicationConfig } from '@angular/core';
|
|
2
|
+
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
3
3
|
|
|
4
4
|
import { routes } from './app.routes';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
provideRouter(routes)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export const appConfig: ApplicationConfig = { providers };
|
|
6
|
+
export const appConfig: ApplicationConfig = {
|
|
7
|
+
providers: [provideRouter(routes, withComponentInputBinding())]
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApplicationConfig,
|
|
2
|
-
import { provideRouter } from '@angular/router';
|
|
1
|
+
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
2
|
+
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
3
3
|
import { BrowserModule, HammerModule } from '@angular/platform-browser';
|
|
4
4
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
5
5
|
import {
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
|
|
12
12
|
import { routes } from './app.routes';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
export const appConfig: ApplicationConfig = {
|
|
15
|
+
providers: [
|
|
16
|
+
provideRouter(routes, withComponentInputBinding()),
|
|
17
|
+
importProvidersFrom(
|
|
18
|
+
BrowserModule,
|
|
19
|
+
HammerModule,
|
|
20
|
+
IgxLayoutModule,
|
|
21
|
+
IgxNavbarModule,
|
|
22
|
+
IgxNavigationDrawerModule,
|
|
23
|
+
IgxRippleModule
|
|
24
|
+
),
|
|
25
|
+
provideAnimations()
|
|
26
|
+
// provide the HAMMER_GESTURE_CONFIG token
|
|
27
|
+
// to override the default settings of the HammerModule
|
|
28
|
+
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
|
|
29
|
+
]
|
|
30
|
+
};
|
|
@@ -11,32 +11,32 @@
|
|
|
11
11
|
},
|
|
12
12
|
"private": true,
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@angular/animations": "~
|
|
15
|
-
"@angular/common": "~
|
|
16
|
-
"@angular/compiler": "~
|
|
17
|
-
"@angular/core": "~
|
|
18
|
-
"@angular/forms": "~
|
|
19
|
-
"@angular/platform-browser": "~
|
|
20
|
-
"@angular/platform-browser-dynamic": "~
|
|
21
|
-
"@angular/router": "~
|
|
14
|
+
"@angular/animations": "~18.0.0",
|
|
15
|
+
"@angular/common": "~18.0.0",
|
|
16
|
+
"@angular/compiler": "~18.0.0",
|
|
17
|
+
"@angular/core": "~18.0.0",
|
|
18
|
+
"@angular/forms": "~18.0.0",
|
|
19
|
+
"@angular/platform-browser": "~18.0.0",
|
|
20
|
+
"@angular/platform-browser-dynamic": "~18.0.0",
|
|
21
|
+
"@angular/router": "~18.0.0",
|
|
22
22
|
"angular-auth-oidc-client": "~15.0.4",
|
|
23
23
|
"hammerjs": "~2.0.8",
|
|
24
|
-
"igniteui-angular": "~
|
|
24
|
+
"igniteui-angular": "~18.0.0",
|
|
25
25
|
"minireset.css": "~0.0.7",
|
|
26
26
|
"rxjs": "~7.8.0",
|
|
27
27
|
"tslib": "~2.3.0",
|
|
28
28
|
"zone.js": "~0.14.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@angular-devkit/build-angular": "~
|
|
32
|
-
"@angular-eslint/builder": "~
|
|
33
|
-
"@angular-eslint/eslint-plugin": "~
|
|
34
|
-
"@angular-eslint/eslint-plugin-template": "~
|
|
35
|
-
"@angular-eslint/schematics": "~
|
|
36
|
-
"@angular-eslint/template-parser": "~
|
|
37
|
-
"@angular/cli": "~
|
|
38
|
-
"@angular/compiler-cli": "~
|
|
39
|
-
"@angular/language-service": "~
|
|
31
|
+
"@angular-devkit/build-angular": "~18.0.0",
|
|
32
|
+
"@angular-eslint/builder": "~18.0.0",
|
|
33
|
+
"@angular-eslint/eslint-plugin": "~18.0.0",
|
|
34
|
+
"@angular-eslint/eslint-plugin-template": "~18.0.0",
|
|
35
|
+
"@angular-eslint/schematics": "~18.0.0",
|
|
36
|
+
"@angular-eslint/template-parser": "~18.0.0",
|
|
37
|
+
"@angular/cli": "~18.0.0",
|
|
38
|
+
"@angular/compiler-cli": "~18.0.0",
|
|
39
|
+
"@angular/language-service": "~18.0.0",
|
|
40
40
|
"@types/facebook-js-sdk": "~3.3.6",
|
|
41
41
|
"@types/hammerjs": "~2.0.41",
|
|
42
42
|
"@types/jasmine": "~5.1.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApplicationConfig,
|
|
2
|
-
import { provideRouter } from '@angular/router';
|
|
1
|
+
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
2
|
+
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
3
3
|
import { BrowserModule, HammerModule } from '@angular/platform-browser';
|
|
4
4
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
5
5
|
import {
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
import { AuthenticationModule, ExternalAuthService } from './authentication';
|
|
13
13
|
import { routes } from './app.routes';
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export const appConfig: ApplicationConfig = {
|
|
16
|
+
providers: [
|
|
17
|
+
provideRouter(routes, withComponentInputBinding()),
|
|
18
|
+
importProvidersFrom(
|
|
19
|
+
BrowserModule,
|
|
20
|
+
HammerModule,
|
|
21
|
+
IgxLayoutModule,
|
|
22
|
+
IgxNavbarModule,
|
|
23
|
+
IgxNavigationDrawerModule,
|
|
24
|
+
IgxRippleModule,
|
|
25
|
+
AuthenticationModule
|
|
26
|
+
),
|
|
27
|
+
provideAnimations(),
|
|
28
|
+
ExternalAuthService
|
|
29
|
+
// provide the HAMMER_GESTURE_CONFIG token
|
|
30
|
+
// to override the default settings of the HammerModule
|
|
31
|
+
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
|
|
32
|
+
]
|
|
33
|
+
};
|
|
@@ -12,7 +12,7 @@ class IgxRadialGaugeTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
12
12
|
this.projectType = "igx-ts";
|
|
13
13
|
this.name = "Radial Gauge";
|
|
14
14
|
this.description = "IgxRadialGauge with different animations";
|
|
15
|
-
this.packages = ["igniteui-angular-core@~
|
|
15
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-gauges@~18.0.0", constants_1.IGNITEUI_ANGULAR_PACKAGE];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
module.exports = new IgxRadialGaugeTemplate();
|
|
@@ -15,7 +15,7 @@ class IgxBulletGraphTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
15
15
|
import: ["IgxBulletGraphModule"],
|
|
16
16
|
from: "igniteui-angular-gauges"
|
|
17
17
|
}];
|
|
18
|
-
this.packages = ["igniteui-angular-core@~
|
|
18
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-gauges@~18.0.0"];
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
module.exports = new IgxBulletGraphTemplate();
|
|
@@ -15,7 +15,7 @@ class IgxCategoryChartTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForA
|
|
|
15
15
|
{ import: "IgxCategoryChartModule", from: "igniteui-angular-charts" },
|
|
16
16
|
{ import: "FormsModule", from: "@angular/forms" }
|
|
17
17
|
];
|
|
18
|
-
this.packages = ["igniteui-angular-core@~
|
|
18
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
module.exports = new IgxCategoryChartTemplate();
|
|
@@ -33,7 +33,7 @@ class IgxGridAwesomeTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
33
33
|
},
|
|
34
34
|
{ import: "FormsModule", from: "@angular/forms" }
|
|
35
35
|
];
|
|
36
|
-
this.packages = ["igniteui-angular-core@~
|
|
36
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
module.exports = new IgxGridAwesomeTemplate();
|
|
@@ -43,7 +43,7 @@ class IgxGridCRMTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAngular
|
|
|
43
43
|
},
|
|
44
44
|
{ import: "FormsModule", from: "@angular/forms" }
|
|
45
45
|
];
|
|
46
|
-
this.packages = ["igniteui-angular-core@~
|
|
46
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
module.exports = new IgxGridCRMTemplate();
|
|
@@ -30,7 +30,7 @@ class IgxFinTechGridTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
30
30
|
},
|
|
31
31
|
{ import: "FormsModule", from: "@angular/forms" }
|
|
32
32
|
];
|
|
33
|
-
this.packages = ["igniteui-angular-core@~
|
|
33
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
module.exports = new IgxFinTechGridTemplate();
|
|
@@ -8,7 +8,6 @@ class IgcDockManagerTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
8
8
|
this.components = ["Dock Manager"];
|
|
9
9
|
this.controlGroup = "Layouts";
|
|
10
10
|
this.listInComponentTemplates = true;
|
|
11
|
-
this.addAsNgModelDeclaration = false;
|
|
12
11
|
this.id = "dock-manager";
|
|
13
12
|
this.projectType = "igx-ts";
|
|
14
13
|
this.name = "Dock Manager";
|
|
@@ -19,5 +18,8 @@ class IgcDockManagerTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
19
18
|
// "igniteui-dockmanager@~1.0.0":
|
|
20
19
|
this.packages = [`${(0, cli_core_1.resolvePackage)(cli_core_1.NPM_DOCK_MANAGER)}@~1.8.0`];
|
|
21
20
|
}
|
|
21
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
22
|
+
// not applicable with custom module
|
|
23
|
+
}
|
|
22
24
|
}
|
|
23
25
|
module.exports = new IgcDockManagerTemplate();
|
|
@@ -13,7 +13,7 @@ class IgxFinancialChartTemplate extends IgniteUIForAngularTemplate_1.IgniteUIFor
|
|
|
13
13
|
this.dependencies = [
|
|
14
14
|
{ import: "IgxFinancialChartModule", from: "igniteui-angular-charts" }
|
|
15
15
|
];
|
|
16
|
-
this.packages = ["igniteui-angular-core@~
|
|
16
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
module.exports = new IgxFinancialChartTemplate();
|
|
@@ -17,7 +17,7 @@ class IgxLinearGaugeTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForAng
|
|
|
17
17
|
from: "igniteui-angular-gauges"
|
|
18
18
|
}
|
|
19
19
|
];
|
|
20
|
-
this.packages = ["igniteui-angular-core@~
|
|
20
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-gauges@~18.0.0"];
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
module.exports = new IgxLinearGaugeTemplate();
|
|
@@ -21,7 +21,7 @@ class IgxGeographicMapTemplate extends IgniteUIForAngularTemplate_1.IgniteUIForA
|
|
|
21
21
|
from: "igniteui-angular-charts"
|
|
22
22
|
}
|
|
23
23
|
];
|
|
24
|
-
this.packages = ["igniteui-angular-core@~
|
|
24
|
+
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0", "igniteui-angular-maps@~18.0.0"];
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
module.exports = new IgxGeographicMapTemplate();
|
|
@@ -11,7 +11,7 @@ export const routes: Routes = [
|
|
|
11
11
|
];
|
|
12
12
|
|
|
13
13
|
@NgModule({
|
|
14
|
-
imports: [RouterModule.forRoot(routes), ErrorRoutingModule],
|
|
14
|
+
imports: [RouterModule.forRoot(routes, { bindToComponentInputs: true }), ErrorRoutingModule],
|
|
15
15
|
exports: [RouterModule, ErrorRoutingModule]
|
|
16
16
|
})
|
|
17
17
|
export class AppRoutingModule { }
|