igniteui-angular 17.0.4 → 17.0.5-beta.0
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/migrations/common/ServerHost.d.ts +1 -1
- package/migrations/common/UpdateChanges.d.ts +1 -1
- package/migrations/common/UpdateChanges.js +4 -4
- package/migrations/common/filterSourceDirs.d.ts +1 -1
- package/migrations/common/tsUtils.d.ts +2 -3
- package/migrations/common/tsUtils.js +1 -5
- package/migrations/common/util.d.ts +4 -3
- package/migrations/common/util.js +6 -3
- package/migrations/migration-collection.json +1 -0
- package/migrations/update-10_1_0/index.d.ts +1 -1
- package/migrations/update-10_2_0/index.d.ts +1 -1
- package/migrations/update-11_0_0/index.d.ts +1 -1
- package/migrations/update-11_0_0/index.js +2 -1
- package/migrations/update-11_1_0/index.d.ts +2 -2
- package/migrations/update-12_0_0/index.d.ts +1 -1
- package/migrations/update-12_0_0/index.js +2 -1
- package/migrations/update-12_1_0/index.d.ts +1 -1
- package/migrations/update-12_1_0/index.js +2 -1
- package/migrations/update-13_0_0/index.d.ts +2 -2
- package/migrations/update-13_0_0/index.js +2 -1
- package/migrations/update-13_1_0/index.d.ts +1 -1
- package/migrations/update-13_1_0/index.js +2 -1
- package/migrations/update-13_2_0/index.d.ts +1 -1
- package/migrations/update-14_1_0/index.d.ts +1 -1
- package/migrations/update-15_0_0/index.d.ts +1 -1
- package/migrations/update-15_0_11/index.d.ts +1 -1
- package/migrations/update-15_0_4/index.d.ts +1 -1
- package/migrations/update-15_1_0/index.d.ts +2 -2
- package/migrations/update-15_1_0/index.js +2 -1
- package/migrations/update-16_0_0/index.d.ts +1 -1
- package/migrations/update-16_1_0/index.d.ts +1 -1
- package/migrations/update-16_1_0/index.js +2 -1
- package/migrations/update-17_0_0/index.d.ts +1 -1
- package/migrations/update-17_0_0/index.js +2 -1
- package/migrations/update-6/index.d.ts +1 -1
- package/migrations/update-6_01/index.d.ts +1 -1
- package/migrations/update-6_02/index.d.ts +1 -1
- package/migrations/update-6_1/index.d.ts +1 -1
- package/migrations/update-6_2/index.d.ts +1 -1
- package/migrations/update-6_2_1/index.d.ts +1 -1
- package/migrations/update-7_0_2/index.d.ts +1 -1
- package/migrations/update-7_2_0/index.d.ts +1 -1
- package/migrations/update-7_3_4/index.d.ts +1 -1
- package/migrations/update-8_2_0/index.d.ts +1 -1
- package/migrations/update-8_2_3/index.d.ts +1 -1
- package/migrations/update-8_2_6/index.d.ts +1 -1
- package/migrations/update-9_0_0/index.d.ts +1 -1
- package/migrations/update-9_0_1/index.d.ts +1 -1
- package/migrations/update-9_1_0/index.d.ts +1 -1
- package/package.json +1 -1
- package/schematics/collection.json +1 -0
- package/schematics/ng-add/add-normalize.d.ts +1 -1
- package/schematics/ng-add/index.d.ts +2 -2
- package/schematics/tsconfig.tsbuildinfo +1 -1
- package/schematics/utils/dependency-handler.d.ts +2 -2
- package/schematics/utils/package-handler.d.ts +1 -1
- package/schematics/utils/util.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Tree } from '@angular-devkit/schematics';
|
|
2
|
+
import type { Tree } from '@angular-devkit/schematics';
|
|
3
3
|
import * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
4
|
/**
|
|
5
5
|
* Language server host is responsible for **most** of the FS operations / checks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ts from 'typescript';
|
|
2
2
|
import * as tss from 'typescript/lib/tsserverlibrary';
|
|
3
|
-
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
3
|
+
import type { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
4
4
|
import type { WorkspaceSchema } from '@schematics/angular/utility/workspace-models';
|
|
5
5
|
import { ClassChanges, BindingChanges, SelectorChange, SelectorChanges, ThemeChanges, ImportsChanges, MemberChanges, ThemeChange } from './schema';
|
|
6
6
|
import { ServerHost } from './ServerHost';
|
|
@@ -417,7 +417,7 @@ class UpdateChanges {
|
|
|
417
417
|
const allowedStartEnd = fileContent[occurrences[i] - 1].match(allowedStartCharacters)
|
|
418
418
|
|| fileContent[(occurrences[i] + change.name.length)].match(allowedEndCharacters);
|
|
419
419
|
if (allowedStartEnd && !this.isNamedArgument(fileContent, i, occurrences, change)) {
|
|
420
|
-
fileContent = (0,
|
|
420
|
+
fileContent = (0, util_1.replaceMatch)(fileContent, change.name, change.replaceWith, occurrences[i]);
|
|
421
421
|
overwrite = true;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
@@ -517,7 +517,7 @@ class UpdateChanges {
|
|
|
517
517
|
}
|
|
518
518
|
const changesArr = Array.from(changes).sort((c, c1) => c.position - c1.position).reverse();
|
|
519
519
|
for (const fileChange of changesArr) {
|
|
520
|
-
content = (0,
|
|
520
|
+
content = (0, util_1.replaceMatch)(content, fileChange.change.member, fileChange.change.replaceWith, fileChange.position);
|
|
521
521
|
}
|
|
522
522
|
if (changes.size) {
|
|
523
523
|
this.host.overwrite(entryPath, content);
|
|
@@ -530,7 +530,7 @@ class UpdateChanges {
|
|
|
530
530
|
for (let i = occurrences.length - 1; i >= 0; i--) {
|
|
531
531
|
const isOpenParenthesis = fileContent[occurrences[i] + aliasLength + change.name.length] === '(';
|
|
532
532
|
if (isOpenParenthesis) {
|
|
533
|
-
fileContent = (0,
|
|
533
|
+
fileContent = (0, util_1.replaceMatch)(fileContent, change.name, change.replaceWith, occurrences[i] + aliasLength);
|
|
534
534
|
overwrite = true;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
@@ -541,7 +541,7 @@ class UpdateChanges {
|
|
|
541
541
|
for (let i = occurrences.length - 1; i >= 0; i--) {
|
|
542
542
|
const isOpenParenthesis = fileContent[occurrences[i] + change.name.length] === '(';
|
|
543
543
|
if (isOpenParenthesis) {
|
|
544
|
-
fileContent = (0,
|
|
544
|
+
fileContent = (0, util_1.replaceMatch)(fileContent, change.name, change.replaceWith, occurrences[i]);
|
|
545
545
|
overwrite = true;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ts from 'typescript';
|
|
2
2
|
import * as tss from 'typescript/lib/tsserverlibrary';
|
|
3
|
-
import { Tree } from '@angular-devkit/schematics';
|
|
4
|
-
import { MemberChange } from './schema';
|
|
3
|
+
import type { Tree } from '@angular-devkit/schematics';
|
|
4
|
+
import type { MemberChange } from './schema';
|
|
5
5
|
export declare const IG_PACKAGE_NAME = "igniteui-angular";
|
|
6
6
|
export declare const NG_LANG_SERVICE_PACKAGE_NAME = "@angular/language-service";
|
|
7
7
|
export declare const NG_CORE_PACKAGE_NAME = "@angular/core";
|
|
@@ -28,7 +28,6 @@ export declare const getRenamePositions: (sourcePath: string, name: string, serv
|
|
|
28
28
|
end: number;
|
|
29
29
|
}>;
|
|
30
30
|
export declare const findMatches: (content: string, toFind: string) => number[];
|
|
31
|
-
export declare const replaceMatch: (content: string, toReplace: string, replaceWith: string, index: number) => string;
|
|
32
31
|
/**
|
|
33
32
|
* Create a TypeScript language service
|
|
34
33
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMemberIgniteUI = exports.getTypeDefinitionAtPosition = exports.createProjectService = exports.getLanguageService = exports.
|
|
3
|
+
exports.isMemberIgniteUI = exports.getTypeDefinitionAtPosition = exports.createProjectService = exports.getLanguageService = exports.findMatches = exports.getRenamePositions = exports.namedImportFilter = exports.getImportModulePositions = exports.getIdentifierPositions = exports.MemberInfo = exports.CUSTOM_TS_PLUGIN_NAME = exports.CUSTOM_TS_PLUGIN_PATH = exports.NG_CORE_PACKAGE_NAME = exports.NG_LANG_SERVICE_PACKAGE_NAME = exports.IG_PACKAGE_NAME = void 0;
|
|
4
4
|
const ts = require("typescript");
|
|
5
5
|
const tss = require("typescript/lib/tsserverlibrary");
|
|
6
6
|
const util_1 = require("./util");
|
|
@@ -127,10 +127,6 @@ const findMatches = (content, toFind) => {
|
|
|
127
127
|
return matchesPositions;
|
|
128
128
|
};
|
|
129
129
|
exports.findMatches = findMatches;
|
|
130
|
-
const replaceMatch = (content, toReplace, replaceWith, index) => content.substring(0, index) +
|
|
131
|
-
replaceWith +
|
|
132
|
-
content.substring(index + toReplace.length, content.length);
|
|
133
|
-
exports.replaceMatch = replaceMatch;
|
|
134
130
|
//#region Language Service
|
|
135
131
|
/**
|
|
136
132
|
* Create a TypeScript language service
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
3
|
-
import { WorkspaceSchema, WorkspaceProject } from '@schematics/angular/utility/workspace-models';
|
|
4
|
-
import { Attribute, Element, HtmlParser, HtmlTagDefinition, Node } from '@angular/compiler';
|
|
2
|
+
import type { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
3
|
+
import type { WorkspaceSchema, WorkspaceProject } from '@schematics/angular/utility/workspace-models';
|
|
4
|
+
import type { Attribute, Element, HtmlParser, HtmlTagDefinition, Node } from '@angular/compiler';
|
|
5
5
|
export declare const getProjectPaths: (config: WorkspaceSchema) => string[];
|
|
6
6
|
export declare const getWorkspacePath: (host: Tree) => string;
|
|
7
7
|
export declare const getWorkspace: (host: Tree) => WorkspaceSchema;
|
|
8
8
|
export declare const getProjects: (config: WorkspaceSchema) => WorkspaceProject[];
|
|
9
9
|
export declare const escapeRegExp: (string: any) => any;
|
|
10
|
+
export declare const replaceMatch: (content: string, toReplace: string, replaceWith: string, index: number) => string;
|
|
10
11
|
export declare const supports: (name: string) => boolean;
|
|
11
12
|
export declare const getPackageManager: (host: Tree) => "yarn" | "npm";
|
|
12
13
|
export declare const canResolvePackage: (pkg: string) => boolean;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stringifyAttributes = exports.makeNgIf = exports.serializeNodes = exports.flatten = exports.getSourceOffset = exports.getAttribute = exports.hasAttribute = exports.findElementNodes = exports.parseFile = exports.FileChange = exports.tryUninstallPackage = exports.tryInstallPackage = exports.getPackageVersion = exports.canResolvePackage = exports.getPackageManager = exports.supports = exports.escapeRegExp = exports.getProjects = exports.getWorkspace = exports.getWorkspacePath = exports.getProjectPaths = void 0;
|
|
3
|
+
exports.stringifyAttributes = exports.makeNgIf = exports.serializeNodes = exports.flatten = exports.getSourceOffset = exports.getAttribute = exports.hasAttribute = exports.findElementNodes = exports.parseFile = exports.FileChange = exports.tryUninstallPackage = exports.tryInstallPackage = exports.getPackageVersion = exports.canResolvePackage = exports.getPackageManager = exports.supports = exports.replaceMatch = exports.escapeRegExp = exports.getProjects = exports.getWorkspace = exports.getWorkspacePath = exports.getProjectPaths = void 0;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const child_process_1 = require("child_process");
|
|
7
|
-
const tsUtils_1 = require("./tsUtils");
|
|
8
7
|
const configPaths = ['/.angular.json', '/angular.json'];
|
|
9
8
|
const getProjectPaths = (config) => {
|
|
10
9
|
const sourceDirs = [];
|
|
@@ -41,6 +40,10 @@ const getProjects = (config) => {
|
|
|
41
40
|
exports.getProjects = getProjects;
|
|
42
41
|
const escapeRegExp = (string) => string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
|
43
42
|
exports.escapeRegExp = escapeRegExp;
|
|
43
|
+
const replaceMatch = (content, toReplace, replaceWith, index) => content.substring(0, index) +
|
|
44
|
+
replaceWith +
|
|
45
|
+
content.substring(index + toReplace.length, content.length);
|
|
46
|
+
exports.replaceMatch = replaceMatch;
|
|
44
47
|
const supports = (name) => {
|
|
45
48
|
try {
|
|
46
49
|
(0, child_process_1.execSync)(`${name} --version`, { stdio: 'ignore' });
|
|
@@ -133,7 +136,7 @@ class FileChange {
|
|
|
133
136
|
if (this.type === 'insert') {
|
|
134
137
|
return `${content.substring(0, this.position)}${this.text}${content.substring(this.position)}`;
|
|
135
138
|
}
|
|
136
|
-
return (0,
|
|
139
|
+
return (0, exports.replaceMatch)(content, this.replaceText, this.text, this.position);
|
|
137
140
|
}
|
|
138
141
|
}
|
|
139
142
|
exports.FileChange = FileChange;
|
|
@@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
13
|
const util_1 = require("../common/util");
|
|
14
|
-
|
|
14
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
15
16
|
const version = '11.0.0';
|
|
16
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { Options } from '../../schematics/interfaces/options';
|
|
1
|
+
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import type { Options } from '../../schematics/interfaces/options';
|
|
3
3
|
declare const _default: (options: Options) => Rule;
|
|
4
4
|
export default _default;
|
|
@@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
13
|
const util_1 = require("../common/util");
|
|
14
|
-
|
|
14
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
15
16
|
const version = '12.0.0';
|
|
16
17
|
exports.default = (options) => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
@@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
13
|
const util_1 = require("../common/util");
|
|
14
|
-
|
|
14
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
15
16
|
const version = '12.1.0';
|
|
16
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
18
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { Options } from '../../schematics/interfaces/options';
|
|
1
|
+
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import type { Options } from '../../schematics/interfaces/options';
|
|
3
3
|
declare const _default: (options: Options) => Rule;
|
|
4
4
|
export default _default;
|
|
@@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
13
|
const util_1 = require("../common/util");
|
|
14
|
-
|
|
14
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
15
16
|
const version = '13.0.0';
|
|
16
17
|
exports.default = (options) => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
18
|
var _a;
|
|
@@ -9,7 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
12
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
13
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
13
14
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
14
15
|
const util_1 = require("../common/util");
|
|
15
16
|
const version = '13.1.0';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { Options } from '../../schematics/interfaces/options';
|
|
1
|
+
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import type { Options } from '../../schematics/interfaces/options';
|
|
3
3
|
declare const _default: (options: Options) => Rule;
|
|
4
4
|
export default _default;
|
|
@@ -9,7 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
12
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
13
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
13
14
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
14
15
|
const util_1 = require("../common/util");
|
|
15
16
|
const version = '15.1.0';
|
|
@@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
13
|
const util_1 = require("../common/util");
|
|
14
|
-
|
|
14
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
15
16
|
const version = '16.1.0';
|
|
16
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
@@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const ts = require("typescript");
|
|
13
13
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
14
|
-
|
|
14
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_js_1 = require("igniteui-angular/migrations/common/import-helper.js");
|
|
15
16
|
const tsUtils_1 = require("../common/tsUtils");
|
|
16
17
|
const util_1 = require("../common/util");
|
|
17
18
|
const version = '17.0.0';
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tree } from '@angular-devkit/schematics';
|
|
1
|
+
import type { Tree } from '@angular-devkit/schematics';
|
|
2
2
|
import { workspaces } from '@angular-devkit/core';
|
|
3
3
|
export declare const cssImport = "node_modules/minireset.css/minireset.css";
|
|
4
4
|
export declare const scssImport: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { Options } from '../interfaces/options';
|
|
1
|
+
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import type { Options } from '../interfaces/options';
|
|
3
3
|
declare const _default: (options: Options) => Rule;
|
|
4
4
|
export default _default;
|