@igniteui/angular-templates 18.1.1400-beta.4 → 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.
@@ -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.astTransformer.createObjectLiteralExpression(structure, multiline);
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.astTransformer.createObjectLiteralExpression([{ bindToComponentInputs: cli_core_1.TRUE_CLAUSE }], false, // multiline
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, route.root);
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.astTransformer.createObjectLiteralExpression([route.data], multiline, (value) => {
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.astTransformer.createArrayLiteralExpression(value, multiline), multiline);
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.
@@ -324,14 +324,14 @@ class AngularTypeScriptFileUpdate extends cli_core_1.TypeScriptFileUpdate {
324
324
  if (dep.root && copy.imports.length > 0) {
325
325
  // add forRoot to the module
326
326
  let forRootArgs = [
327
- this.astTransformer.createArrayLiteralExpression([]),
327
+ this.factory.createArrayLiteralExpression([]),
328
328
  ];
329
329
  if (args) {
330
330
  forRootArgs = Array.isArray(args)
331
331
  ? args
332
- : [this.astTransformer.createArrayLiteralExpression([args])];
332
+ : [this.factory.createArrayLiteralExpression([args])];
333
333
  }
334
- copy.imports = copy.imports.map((i) => this.astTransformer.printer.printNode(ts.EmitHint.Unspecified, this.astTransformer.createCallExpression(i, cli_core_1.NG_FOR_ROOT_IDENTIFIER_NAME, undefined, // type args
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
335
335
  forRootArgs), this.astTransformer.sourceFile));
336
336
  }
337
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": "6.9.1",
39
- "@typescript-eslint/parser": "6.9.1",
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",
@@ -7,7 +7,7 @@ import {
7
7
  IgxNavbarModule,
8
8
  IgxLayoutModule,
9
9
  IgxRippleModule,
10
- } from 'igniteui-angular';
10
+ } from '<%=igxPackage%>';
11
11
 
12
12
  import { routes } from './app.routes';
13
13
 
@@ -7,7 +7,7 @@ import {
7
7
  IgxNavbarModule,
8
8
  IgxLayoutModule,
9
9
  IgxRippleModule,
10
- } from 'igniteui-angular';
10
+ } from '<%=igxPackage%>';
11
11
 
12
12
  import { AuthenticationModule, ExternalAuthService } from './authentication';
13
13
  import { routes } from './app.routes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igniteui/angular-templates",
3
- "version": "18.1.1400-beta.4",
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-beta.4",
15
+ "@igniteui/cli-core": "~14.0.0",
16
16
  "typescript": "~5.4.3"
17
17
  }
18
18
  }