@igniteui/angular-templates 17.2.1322-beta.1 → 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/IgniteUIForAngularTemplate.d.ts +2 -2
- package/IgniteUIForAngularTemplate.js +24 -53
- package/igx-ts/dock-manager/default/index.js +3 -0
- package/igx-ts/grid/grid-custom/index.js +2 -2
- package/igx-ts/hierarchical-grid/hierarchical-grid-batch-editing/files/src/app/__path__/__filePrefix__.component.ts +1 -1
- package/igx-ts/hierarchical-grid/hierarchical-grid-custom/index.js +1 -1
- package/igx-ts/projects/_base/files/__dot__vscode/extensions.json +4 -0
- package/igx-ts/projects/_base/files/__dot__vscode/launch.json +20 -0
- package/igx-ts/projects/_base/files/__dot__vscode/tasks.json +42 -0
- package/igx-ts/projects/_base/files/package.json +20 -20
- package/igx-ts/projects/_base/files/public/favicon.ico +0 -0
- package/igx-ts/projects/_base/files/src/main.ts +0 -6
- package/igx-ts/projects/_base/files/tsconfig.json +2 -2
- package/igx-ts-legacy/dock-manager/default/index.js +3 -1
- package/igx-ts-legacy/projects/_base/files/__dot__vscode/extensions.json +4 -0
- package/igx-ts-legacy/projects/_base/files/__dot__vscode/launch.json +20 -0
- package/igx-ts-legacy/projects/_base/files/__dot__vscode/tasks.json +42 -0
- package/igx-ts-legacy/projects/_base/files/package.json +20 -20
- package/igx-ts-legacy/projects/_base/files/src/app/app-routing.module.ts +2 -3
- package/igx-ts-legacy/projects/_base/files/src/main.ts +0 -6
- package/index.d.ts +2 -4
- package/index.js +0 -2
- package/package.json +2 -2
- package/AngularTypeScriptFileUpdate.d.ts +0 -93
- package/AngularTypeScriptFileUpdate.js +0 -296
- package/igx-ts/projects/_base/files/karma.conf.js +0 -44
- package/igx-ts/projects/_base/files/src/app/error-routing/error/global-error-handler.service.ts +0 -23
- package/igx-ts/projects/_base/files/src/environments/environment.prod.ts +0 -3
- package/igx-ts/projects/_base/files/src/environments/environment.ts +0 -16
- package/igx-ts-legacy/projects/_base/files/karma.conf.js +0 -44
- 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
- package/igx-ts-legacy/projects/_base/files/src/environments/environment.prod.ts +0 -3
- package/igx-ts-legacy/projects/_base/files/src/environments/environment.ts +0 -16
- package/igx-ts-legacy/projects/_base/files/src/favicon.ico +0 -0
- package/types/AngularRouteEntry.d.ts +0 -6
- package/types/AngularRouteEntry.js +0 -2
- package/types/AngularRouteLike.d.ts +0 -12
- package/types/AngularRouteLike.js +0 -2
- package/types/enumerations/AngularDecoratorMetaTarget.d.ts +0 -7
- package/types/enumerations/AngularDecoratorMetaTarget.js +0 -11
- 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
- /package/{igx-ts/projects/_base/files/src → igx-ts-legacy/projects/_base/files/public}/favicon.ico +0 -0
|
@@ -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,46 +46,32 @@ 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
|
-
const content = rountesConfig.finalize();
|
|
69
|
-
if (content) {
|
|
70
|
-
// add to a finalize override in the NG File Update instead?
|
|
71
|
-
cli_core_1.TypeScriptUtils.saveFile(routesConfigPath, content);
|
|
72
|
-
}
|
|
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
|
+
);
|
|
73
61
|
}
|
|
74
|
-
const componentFile = new TsUpdate(
|
|
62
|
+
const componentFile = new TsUpdate(path.join(projectPath, `src/app/${folderName}/${fileName}.component.ts`));
|
|
75
63
|
for (const dep of this.dependencies) {
|
|
76
64
|
if (dep.from && dep.from.startsWith(".")) {
|
|
77
65
|
// relative file dependency
|
|
78
66
|
const copy = Object.assign({}, dep);
|
|
79
|
-
copy.from = cli_core_1.Util.relativePath(
|
|
80
|
-
|
|
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));
|
|
81
70
|
continue;
|
|
82
71
|
}
|
|
83
|
-
componentFile.
|
|
84
|
-
}
|
|
85
|
-
const content = componentFile.finalize();
|
|
86
|
-
if (content) {
|
|
87
|
-
// add to a finalize override in the NG File Update instead?
|
|
88
|
-
cli_core_1.TypeScriptUtils.saveFile(componentFilePath, content);
|
|
72
|
+
componentFile.addStandaloneImport(dep, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content));
|
|
89
73
|
}
|
|
74
|
+
componentFile.finalize();
|
|
90
75
|
return;
|
|
91
76
|
}
|
|
92
77
|
// ngModule based components
|
|
@@ -94,28 +79,15 @@ class IgniteUIForAngularTemplate {
|
|
|
94
79
|
//1) import the component class name,
|
|
95
80
|
//2) and populate the Routes array with the path and component
|
|
96
81
|
//for example: { path: 'combo', component: ComboComponent }
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
path: this.fileName(name),
|
|
102
|
-
data: { text: cli_core_1.Util.nameFromPath(name) },
|
|
103
|
-
identifierName: className
|
|
104
|
-
});
|
|
105
|
-
const content = routingModule.finalize();
|
|
106
|
-
if (content) {
|
|
107
|
-
// add to a finalize override in the NG File Update instead?
|
|
108
|
-
cli_core_1.TypeScriptUtils.saveFile(routingModulePath, content);
|
|
109
|
-
}
|
|
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
|
+
);
|
|
110
86
|
}
|
|
111
87
|
//3) add an import of the component class from its file location.
|
|
112
88
|
//4) populate the declarations portion of the @NgModule with the component class name.
|
|
113
|
-
const mainModule = new TsUpdate(mainModulePath
|
|
114
|
-
|
|
115
|
-
declare: this.addAsNgModelDeclaration ? [className] : [],
|
|
116
|
-
from: cli_core_1.Util.relativePath(mainModulePath, componentFilePath, true, true),
|
|
117
|
-
export: modulePath !== "app.module.ts" ? [className] : []
|
|
118
|
-
});
|
|
89
|
+
const mainModule = new TsUpdate(mainModulePath);
|
|
90
|
+
this.addClassDeclaration(mainModule, projectPath, name, modulePath);
|
|
119
91
|
// import IgxModules and other dependencies
|
|
120
92
|
for (const dep of this.dependencies) {
|
|
121
93
|
if (dep.from && dep.from.startsWith(".")) {
|
|
@@ -128,11 +100,7 @@ class IgniteUIForAngularTemplate {
|
|
|
128
100
|
mainModule.addNgModuleMeta(dep, cli_core_1.Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content));
|
|
129
101
|
}
|
|
130
102
|
}
|
|
131
|
-
|
|
132
|
-
if (content) {
|
|
133
|
-
// add to a finalize override in the NG File Update instead?
|
|
134
|
-
cli_core_1.TypeScriptUtils.saveFile(mainModulePath, content);
|
|
135
|
-
}
|
|
103
|
+
mainModule.finalize();
|
|
136
104
|
}
|
|
137
105
|
getExtraConfiguration() {
|
|
138
106
|
return [];
|
|
@@ -141,6 +109,9 @@ class IgniteUIForAngularTemplate {
|
|
|
141
109
|
fileExists(filePath) {
|
|
142
110
|
return cli_core_1.App.container.get(cli_core_1.FS_TOKEN).fileExists(filePath);
|
|
143
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
|
+
}
|
|
144
115
|
getBaseVariables(name) {
|
|
145
116
|
const config = {};
|
|
146
117
|
config["name"] = cli_core_1.Util.nameFromPath(name);
|
|
@@ -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();
|
|
@@ -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"`;
|
|
@@ -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';
|
|
@@ -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"`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"configurations": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ng serve",
|
|
7
|
+
"type": "chrome",
|
|
8
|
+
"request": "launch",
|
|
9
|
+
"preLaunchTask": "npm: start",
|
|
10
|
+
"url": "http://localhost:4200/"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "ng test",
|
|
14
|
+
"type": "chrome",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"preLaunchTask": "npm: test",
|
|
17
|
+
"url": "http://localhost:9876/debug.html"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"tasks": [
|
|
5
|
+
{
|
|
6
|
+
"type": "npm",
|
|
7
|
+
"script": "start",
|
|
8
|
+
"isBackground": true,
|
|
9
|
+
"problemMatcher": {
|
|
10
|
+
"owner": "typescript",
|
|
11
|
+
"pattern": "$tsc",
|
|
12
|
+
"background": {
|
|
13
|
+
"activeOnStart": true,
|
|
14
|
+
"beginsPattern": {
|
|
15
|
+
"regexp": "(.*?)"
|
|
16
|
+
},
|
|
17
|
+
"endsPattern": {
|
|
18
|
+
"regexp": "bundle generation complete"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "npm",
|
|
25
|
+
"script": "test",
|
|
26
|
+
"isBackground": true,
|
|
27
|
+
"problemMatcher": {
|
|
28
|
+
"owner": "typescript",
|
|
29
|
+
"pattern": "$tsc",
|
|
30
|
+
"background": {
|
|
31
|
+
"activeOnStart": true,
|
|
32
|
+
"beginsPattern": {
|
|
33
|
+
"regexp": "(.*?)"
|
|
34
|
+
},
|
|
35
|
+
"endsPattern": {
|
|
36
|
+
"regexp": "bundle generation complete"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -10,34 +10,34 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": true,
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@angular/animations": "~
|
|
14
|
-
"@angular/common": "~
|
|
15
|
-
"@angular/compiler": "~
|
|
16
|
-
"@angular/core": "~
|
|
17
|
-
"@angular/forms": "~
|
|
18
|
-
"@angular/platform-browser": "~
|
|
19
|
-
"@angular/platform-browser-dynamic": "~
|
|
20
|
-
"@angular/router": "~
|
|
13
|
+
"@angular/animations": "~18.0.0",
|
|
14
|
+
"@angular/common": "~18.0.0",
|
|
15
|
+
"@angular/compiler": "~18.0.0",
|
|
16
|
+
"@angular/core": "~18.0.0",
|
|
17
|
+
"@angular/forms": "~18.0.0",
|
|
18
|
+
"@angular/platform-browser": "~18.0.0",
|
|
19
|
+
"@angular/platform-browser-dynamic": "~18.0.0",
|
|
20
|
+
"@angular/router": "~18.0.0",
|
|
21
21
|
"hammerjs": "~2.0.8",
|
|
22
|
-
"igniteui-angular": "~
|
|
22
|
+
"igniteui-angular": "~18.0.0-alpha.3",
|
|
23
23
|
"minireset.css": "~0.0.7",
|
|
24
24
|
"rxjs": "~7.8.0",
|
|
25
25
|
"tslib": "~2.3.0",
|
|
26
|
-
"zone.js": "~0.14.
|
|
26
|
+
"zone.js": "~0.14.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@angular-devkit/build-angular": "~
|
|
30
|
-
"@angular-eslint/builder": "~
|
|
31
|
-
"@angular-eslint/eslint-plugin": "~
|
|
32
|
-
"@angular-eslint/eslint-plugin-template": "~
|
|
33
|
-
"@angular-eslint/schematics": "~
|
|
34
|
-
"@angular-eslint/template-parser": "~
|
|
35
|
-
"@angular/cli": "~
|
|
36
|
-
"@angular/compiler-cli": "~
|
|
29
|
+
"@angular-devkit/build-angular": "~18.0.0",
|
|
30
|
+
"@angular-eslint/builder": "~18.0.0-alpha.5",
|
|
31
|
+
"@angular-eslint/eslint-plugin": "~18.0.0-alpha.5",
|
|
32
|
+
"@angular-eslint/eslint-plugin-template": "~18.0.0-alpha.5",
|
|
33
|
+
"@angular-eslint/schematics": "~18.0.0-alpha.5",
|
|
34
|
+
"@angular-eslint/template-parser": "~18.0.0-alpha.5",
|
|
35
|
+
"@angular/cli": "~18.0.0",
|
|
36
|
+
"@angular/compiler-cli": "~18.0.0",
|
|
37
37
|
"@types/jasmine": "~5.1.1",
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "6.9.1",
|
|
39
39
|
"@typescript-eslint/parser": "6.9.1",
|
|
40
|
-
"eslint": "~8.
|
|
40
|
+
"eslint": "~8.57.0",
|
|
41
41
|
"igniteui-cli": "~<%=cliVersion%>",
|
|
42
42
|
"jasmine-core": "~5.1.0",
|
|
43
43
|
"karma": "~6.4.0",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"karma-coverage": "~2.2.0",
|
|
46
46
|
"karma-jasmine": "~5.1.0",
|
|
47
47
|
"karma-jasmine-html-reporter": "~2.1.0",
|
|
48
|
-
"typescript": "~5.
|
|
48
|
+
"typescript": "~5.4.5"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
Binary file
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
1
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
3
2
|
|
|
4
3
|
import { appConfig } from './app/app.config';
|
|
5
4
|
import { AppComponent } from './app/app.component';
|
|
6
|
-
import { environment } from './environments/environment';
|
|
7
|
-
|
|
8
|
-
if (environment.production) {
|
|
9
|
-
enableProdMode();
|
|
10
|
-
}
|
|
11
5
|
|
|
12
6
|
bootstrapApplication(AppComponent, appConfig)
|
|
13
7
|
.catch((err) => console.error(err));
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"compileOnSave": false,
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"outDir": "./dist/out-tsc",
|
|
6
|
-
"forceConsistentCasingInFileNames": true,
|
|
7
6
|
"strict": true,
|
|
8
7
|
"noImplicitOverride": true,
|
|
9
8
|
"noPropertyAccessFromIndexSignature": true,
|
|
10
9
|
"noImplicitReturns": true,
|
|
11
10
|
"noFallthroughCasesInSwitch": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
12
|
"esModuleInterop": true,
|
|
13
13
|
"sourceMap": true,
|
|
14
14
|
"declaration": false,
|
|
15
15
|
"experimentalDecorators": true,
|
|
16
|
-
"moduleResolution": "
|
|
16
|
+
"moduleResolution": "Bundler",
|
|
17
17
|
"importHelpers": true,
|
|
18
18
|
"target": "ES2022",
|
|
19
19
|
"module": "ES2022",
|
|
@@ -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();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"configurations": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ng serve",
|
|
7
|
+
"type": "chrome",
|
|
8
|
+
"request": "launch",
|
|
9
|
+
"preLaunchTask": "npm: start",
|
|
10
|
+
"url": "http://localhost:4200/"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "ng test",
|
|
14
|
+
"type": "chrome",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"preLaunchTask": "npm: test",
|
|
17
|
+
"url": "http://localhost:9876/debug.html"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"tasks": [
|
|
5
|
+
{
|
|
6
|
+
"type": "npm",
|
|
7
|
+
"script": "start",
|
|
8
|
+
"isBackground": true,
|
|
9
|
+
"problemMatcher": {
|
|
10
|
+
"owner": "typescript",
|
|
11
|
+
"pattern": "$tsc",
|
|
12
|
+
"background": {
|
|
13
|
+
"activeOnStart": true,
|
|
14
|
+
"beginsPattern": {
|
|
15
|
+
"regexp": "(.*?)"
|
|
16
|
+
},
|
|
17
|
+
"endsPattern": {
|
|
18
|
+
"regexp": "bundle generation complete"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "npm",
|
|
25
|
+
"script": "test",
|
|
26
|
+
"isBackground": true,
|
|
27
|
+
"problemMatcher": {
|
|
28
|
+
"owner": "typescript",
|
|
29
|
+
"pattern": "$tsc",
|
|
30
|
+
"background": {
|
|
31
|
+
"activeOnStart": true,
|
|
32
|
+
"beginsPattern": {
|
|
33
|
+
"regexp": "(.*?)"
|
|
34
|
+
},
|
|
35
|
+
"endsPattern": {
|
|
36
|
+
"regexp": "bundle generation complete"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -11,34 +11,34 @@
|
|
|
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
|
"hammerjs": "^2.0.8",
|
|
23
|
-
"igniteui-angular": "~
|
|
23
|
+
"igniteui-angular": "~18.0.0-alpha.3",
|
|
24
24
|
"minireset.css": "~0.0.7",
|
|
25
25
|
"rxjs": "~7.8.0",
|
|
26
26
|
"tslib": "~2.3.0",
|
|
27
|
-
"zone.js": "~0.14.
|
|
27
|
+
"zone.js": "~0.14.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@angular-devkit/build-angular": "~
|
|
31
|
-
"@angular-eslint/builder": "~
|
|
32
|
-
"@angular-eslint/eslint-plugin": "~
|
|
33
|
-
"@angular-eslint/eslint-plugin-template": "~
|
|
34
|
-
"@angular-eslint/schematics": "~
|
|
35
|
-
"@angular-eslint/template-parser": "~
|
|
36
|
-
"@angular/cli": "~
|
|
37
|
-
"@angular/compiler-cli": "~
|
|
30
|
+
"@angular-devkit/build-angular": "~18.0.0",
|
|
31
|
+
"@angular-eslint/builder": "~18.0.0-alpha.5",
|
|
32
|
+
"@angular-eslint/eslint-plugin": "~18.0.0-alpha.5",
|
|
33
|
+
"@angular-eslint/eslint-plugin-template": "~18.0.0-alpha.5",
|
|
34
|
+
"@angular-eslint/schematics": "~18.0.0-alpha.5",
|
|
35
|
+
"@angular-eslint/template-parser": "~18.0.0-alpha.5",
|
|
36
|
+
"@angular/cli": "~18.0.0",
|
|
37
|
+
"@angular/compiler-cli": "~18.0.0",
|
|
38
38
|
"@types/jasmine": "~5.1.1",
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "6.9.1",
|
|
40
40
|
"@typescript-eslint/parser": "6.9.1",
|
|
41
|
-
"eslint": "~8.
|
|
41
|
+
"eslint": "~8.57.0",
|
|
42
42
|
"igniteui-cli": "~<%=cliVersion%>",
|
|
43
43
|
"jasmine-core": "~5.1.0",
|
|
44
44
|
"karma": "~6.4.0",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"karma-coverage": "~2.2.0",
|
|
47
47
|
"karma-jasmine": "~5.1.0",
|
|
48
48
|
"karma-jasmine-html-reporter": "~2.1.0",
|
|
49
|
-
"typescript": "~5.
|
|
49
|
+
"typescript": "~5.4.5"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -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 { }
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
1
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
2
|
|
|
4
3
|
import { AppModule } from './app/app.module';
|
|
5
|
-
import { environment } from './environments/environment';
|
|
6
|
-
|
|
7
|
-
if (environment.production) {
|
|
8
|
-
enableProdMode();
|
|
9
|
-
}
|
|
10
4
|
|
|
11
5
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
12
6
|
.catch(err => console.error(err));
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as standalone from
|
|
2
|
-
export * from
|
|
3
|
-
export * from './AngularTypeScriptFileUpdate';
|
|
4
|
-
export * from './types';
|
|
1
|
+
import * as standalone from "./igx-ts";
|
|
2
|
+
export * from "./IgniteUIForAngularTemplate";
|
|
5
3
|
declare const _default: (typeof standalone)[];
|
|
6
4
|
export default _default;
|
package/index.js
CHANGED
|
@@ -17,6 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
const standalone = require("./igx-ts");
|
|
18
18
|
const legacy = require("./igx-ts-legacy");
|
|
19
19
|
__exportStar(require("./IgniteUIForAngularTemplate"), exports);
|
|
20
|
-
__exportStar(require("./AngularTypeScriptFileUpdate"), exports);
|
|
21
|
-
__exportStar(require("./types"), exports);
|
|
22
20
|
exports.default = [standalone, legacy];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igniteui/angular-templates",
|
|
3
|
-
"version": "
|
|
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.
|
|
15
|
+
"@igniteui/cli-core": "~13.3.0-beta.1",
|
|
16
16
|
"typescript": "~5.4.3"
|
|
17
17
|
}
|
|
18
18
|
}
|