@igniteui/angular-templates 18.1.1400-beta.3 → 18.1.1400
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/AngularTypeScriptFileUpdate.js +11 -9
- package/igx-ts/projects/_base/files/angular.json +12 -0
- package/igx-ts/projects/_base/files/package.json +4 -3
- package/igx-ts/projects/side-nav/files/src/app/app.config.ts +1 -1
- package/igx-ts/projects/side-nav-auth/files/src/app/app.config.ts +1 -1
- package/package.json +2 -2
|
@@ -30,7 +30,7 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
|
|
|
30
30
|
this.requestImportForRouteIdentifier(route);
|
|
31
31
|
}
|
|
32
32
|
const structure = this.buildRouteStructure(route, multiline);
|
|
33
|
-
const newRoute = this.
|
|
33
|
+
const newRoute = this.factory.createObjectLiteralExpression(structure, multiline);
|
|
34
34
|
this.astTransformer.requestNewMembersInArrayLiteral((0, cli_core_1.variableAsParentCondition)(this.astTransformer, cli_core_1.ROUTES_VARIABLE_NAME), [newRoute], prepend, anchorElement);
|
|
35
35
|
}
|
|
36
36
|
addChildRoute(parentPath, route, asIdentifier = false, multiline = false) {
|
|
@@ -136,7 +136,7 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
|
|
|
136
136
|
(0, cli_core_1.variableAsParentCondition)(this.astTransformer, cli_core_1.NG_DECORATOR_PROVIDERS)(node), callExpr);
|
|
137
137
|
}
|
|
138
138
|
else {
|
|
139
|
-
const objLiteral = this.
|
|
139
|
+
const objLiteral = this.factory.createObjectLiteralExpression([{ bindToComponentInputs: cli_core_1.TRUE_CLAUSE }], false, // multiline
|
|
140
140
|
() => ts.factory.createTrue());
|
|
141
141
|
this.astTransformer.requestNewArgumentInMethodCallExpression((node) => ts.isPropertyAccessExpression(node.expression) &&
|
|
142
142
|
ts.isIdentifier(node.expression.name) &&
|
|
@@ -168,7 +168,7 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
|
|
|
168
168
|
route.path &&
|
|
169
169
|
route.identifierName &&
|
|
170
170
|
route.modulePath) {
|
|
171
|
-
const lazyLoadedModule = this.createDynamicImport(route.modulePath, route.identifierName
|
|
171
|
+
const lazyLoadedModule = this.factory.createDynamicImport(route.modulePath, route.identifierName);
|
|
172
172
|
const propAssignmentName = route.root
|
|
173
173
|
? types_1.AngularRouteTarget.LoadChildren
|
|
174
174
|
: types_1.AngularRouteTarget.LoadComponent;
|
|
@@ -215,7 +215,7 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
|
|
|
215
215
|
if (route.data) {
|
|
216
216
|
structure.push({
|
|
217
217
|
name: types_1.AngularRouteTarget.Data,
|
|
218
|
-
value: this.
|
|
218
|
+
value: this.factory.createObjectLiteralExpression([route.data], multiline, (value) => {
|
|
219
219
|
var _a;
|
|
220
220
|
return ts.factory.createStringLiteral(value, (_a = this.formatSettings) === null || _a === void 0 ? void 0 : _a.singleQuotes);
|
|
221
221
|
}),
|
|
@@ -277,7 +277,7 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
|
|
|
277
277
|
const value = targetMetaProp && !ts.isArrayLiteralExpression(targetMetaProp.initializer)
|
|
278
278
|
? [targetMetaProp.initializer, ...identifiers]
|
|
279
279
|
: identifiers;
|
|
280
|
-
this.astTransformer.requestNewMemberInObjectLiteral(visitorCondition, target, this.
|
|
280
|
+
this.astTransformer.requestNewMemberInObjectLiteral(visitorCondition, target, this.factory.createArrayLiteralExpression(value, multiline), multiline);
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* Checks if a node has an ancestor with a specific decorator.
|
|
@@ -304,7 +304,9 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
|
|
|
304
304
|
*/
|
|
305
305
|
findNgDecoratorProperty(decoratorName, propName) {
|
|
306
306
|
const ngDecoratorExists = (node) => !!this.astTransformer.findNodeAncestor(node, (_node) => {
|
|
307
|
-
const nodeExpressionToken = ts.isDecorator(_node) &&
|
|
307
|
+
const nodeExpressionToken = ts.isDecorator(_node) &&
|
|
308
|
+
ts.isCallExpression(_node.expression) &&
|
|
309
|
+
_node.expression.expression;
|
|
308
310
|
return (ts.isIdentifier(nodeExpressionToken) &&
|
|
309
311
|
nodeExpressionToken.text === decoratorName);
|
|
310
312
|
});
|
|
@@ -322,14 +324,14 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
|
|
|
322
324
|
if (dep.root && copy.imports.length > 0) {
|
|
323
325
|
// add forRoot to the module
|
|
324
326
|
let forRootArgs = [
|
|
325
|
-
this.
|
|
327
|
+
this.factory.createArrayLiteralExpression([]),
|
|
326
328
|
];
|
|
327
329
|
if (args) {
|
|
328
330
|
forRootArgs = Array.isArray(args)
|
|
329
331
|
? args
|
|
330
|
-
: [this.
|
|
332
|
+
: [this.factory.createArrayLiteralExpression([args])];
|
|
331
333
|
}
|
|
332
|
-
copy.imports = copy.imports.map((i) => this.astTransformer.printer.printNode(ts.EmitHint.Unspecified, this.
|
|
334
|
+
copy.imports = copy.imports.map((i) => this.astTransformer.printer.printNode(ts.EmitHint.Unspecified, this.factory.createCallExpression(i, cli_core_1.NG_FOR_ROOT_IDENTIFIER_NAME, undefined, // type args
|
|
333
335
|
forRootArgs), this.astTransformer.sourceFile));
|
|
334
336
|
}
|
|
335
337
|
}
|
|
@@ -106,8 +106,20 @@
|
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
+
},
|
|
110
|
+
"lint": {
|
|
111
|
+
"builder": "@angular-eslint/builder:lint",
|
|
112
|
+
"options": {
|
|
113
|
+
"lintFilePatterns": [
|
|
114
|
+
"src/**/*.ts",
|
|
115
|
+
"src/**/*.html"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
109
118
|
}
|
|
110
119
|
}
|
|
111
120
|
}
|
|
121
|
+
},
|
|
122
|
+
"cli": {
|
|
123
|
+
"schematicCollections": ["@angular-eslint/schematics"]
|
|
112
124
|
}
|
|
113
125
|
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"start": "ng serve -o",
|
|
7
7
|
"build": "ng build",
|
|
8
8
|
"watch": "ng build --watch --configuration development",
|
|
9
|
-
"test": "ng test"
|
|
9
|
+
"test": "ng test",
|
|
10
|
+
"lint": "ng lint"
|
|
10
11
|
},
|
|
11
12
|
"private": true,
|
|
12
13
|
"dependencies": {
|
|
@@ -35,8 +36,8 @@
|
|
|
35
36
|
"@angular/cli": "~18.1.0",
|
|
36
37
|
"@angular/compiler-cli": "~18.1.0",
|
|
37
38
|
"@types/jasmine": "~5.1.1",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "
|
|
39
|
-
"@typescript-eslint/parser": "
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "~7.11.0",
|
|
40
|
+
"@typescript-eslint/parser": "~7.11.0",
|
|
40
41
|
"eslint": "~8.57.0",
|
|
41
42
|
"igniteui-cli": "~<%=cliVersion%>",
|
|
42
43
|
"jasmine-core": "~5.1.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igniteui/angular-templates",
|
|
3
|
-
"version": "18.1.1400
|
|
3
|
+
"version": "18.1.1400",
|
|
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": "~14.0.0
|
|
15
|
+
"@igniteui/cli-core": "~14.0.0",
|
|
16
16
|
"typescript": "~5.4.3"
|
|
17
17
|
}
|
|
18
18
|
}
|