igniteui-angular 13.0.0-alpha.5 → 13.0.0-alpha.6
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/import-helper.js +14 -0
- package/migrations/common/util.d.ts +4 -4
- package/migrations/common/util.js +16 -5
- package/migrations/package.json +3 -0
- package/migrations/update-10_1_0/index.js +11 -2
- package/migrations/update-10_2_0/index.js +11 -2
- package/migrations/update-11_0_0/index.js +18 -7
- package/migrations/update-11_1_0/index.js +11 -2
- package/migrations/update-12_0_0/index.js +24 -13
- package/migrations/update-12_1_0/index.js +19 -8
- package/migrations/update-13_0_0/index.js +14 -3
- package/migrations/update-6/index.js +11 -2
- package/migrations/update-6_01/index.js +11 -2
- package/migrations/update-6_02/index.js +11 -2
- package/migrations/update-6_1/index.js +11 -2
- package/migrations/update-6_2/index.js +11 -2
- package/migrations/update-6_2_1/index.js +11 -2
- package/migrations/update-7_0_2/index.js +11 -2
- package/migrations/update-7_3_4/index.js +11 -2
- package/migrations/update-8_2_0/index.js +11 -2
- package/migrations/update-8_2_3/index.js +11 -2
- package/migrations/update-8_2_6/index.js +11 -2
- package/migrations/update-9_0_0/index.js +11 -2
- package/migrations/update-9_0_1/index.js +11 -2
- package/migrations/update-9_1_0/index.js +11 -2
- package/package.json +20 -14
- package/schematics/package.json +3 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
// eslint-disable
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Native Node dynamic import helper
|
|
8
|
+
* Only needed until TypeScript 4.5 release and `node12` options is available, see:
|
|
9
|
+
* https://github.com/microsoft/TypeScript/issues/43329
|
|
10
|
+
*/
|
|
11
|
+
const nativeImport = async (name) => {
|
|
12
|
+
return import(name);
|
|
13
|
+
};
|
|
14
|
+
exports.nativeImport = nativeImport;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
2
|
import { WorkspaceSchema, WorkspaceProject } from '@schematics/angular/utility/workspace-models';
|
|
3
|
-
import { Attribute, Element, Node } from '@angular/compiler';
|
|
3
|
+
import { Attribute, Element, HtmlParser, HtmlTagDefinition, Node } from '@angular/compiler';
|
|
4
4
|
export declare const getProjectPaths: (config: WorkspaceSchema) => string[];
|
|
5
5
|
export declare const getWorkspacePath: (host: Tree) => string;
|
|
6
6
|
export declare const getWorkspace: (host: Tree) => WorkspaceSchema;
|
|
@@ -35,12 +35,12 @@ export declare class FileChange {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Parses an Angular template file/content and returns an array of the root nodes of the file.
|
|
38
|
-
*
|
|
38
|
+
* TODO: Maybe make async and dynamically import the HtmlParser
|
|
39
39
|
* @param host
|
|
40
40
|
* @param filePath
|
|
41
41
|
* @param encoding
|
|
42
42
|
*/
|
|
43
|
-
export declare const parseFile: (host: Tree, filePath: string, encoding?: string) => Node[];
|
|
43
|
+
export declare const parseFile: (parser: HtmlParser, host: Tree, filePath: string, encoding?: string) => Node[];
|
|
44
44
|
export declare const findElementNodes: (root: Node[], tag: string | string[]) => Node[];
|
|
45
45
|
export declare const hasAttribute: (root: Element, attribute: string | string[]) => boolean;
|
|
46
46
|
export declare const getAttribute: (root: Element, attribute: string | string[]) => Attribute[];
|
|
@@ -52,7 +52,7 @@ export declare const getSourceOffset: (element: Element) => SourceOffset;
|
|
|
52
52
|
* @param list
|
|
53
53
|
*/
|
|
54
54
|
export declare const flatten: (list: Node[]) => Node[];
|
|
55
|
-
export declare const serializeNodes: (nodes: Node[]) => string[];
|
|
55
|
+
export declare const serializeNodes: (nodes: Node[], getHtmlTagDefinition: (tagName: string) => HtmlTagDefinition) => string[];
|
|
56
56
|
export declare const makeNgIf: (name: string, value: string) => boolean;
|
|
57
57
|
export declare const stringifyAttriutes: (attributes: Attribute[]) => string;
|
|
58
58
|
export {};
|
|
@@ -4,7 +4,6 @@ exports.stringifyAttriutes = exports.makeNgIf = exports.serializeNodes = exports
|
|
|
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 compiler_1 = require("@angular/compiler");
|
|
8
7
|
const tsUtils_1 = require("./tsUtils");
|
|
9
8
|
const configPaths = ['/.angular.json', '/angular.json'];
|
|
10
9
|
const getProjectPaths = (config) => {
|
|
@@ -138,13 +137,17 @@ class FileChange {
|
|
|
138
137
|
exports.FileChange = FileChange;
|
|
139
138
|
/**
|
|
140
139
|
* Parses an Angular template file/content and returns an array of the root nodes of the file.
|
|
141
|
-
*
|
|
140
|
+
* TODO: Maybe make async and dynamically import the HtmlParser
|
|
142
141
|
* @param host
|
|
143
142
|
* @param filePath
|
|
144
143
|
* @param encoding
|
|
145
144
|
*/
|
|
146
|
-
const parseFile = (host, filePath, encoding = 'utf8') =>
|
|
145
|
+
const parseFile = (parser, host, filePath, encoding = 'utf8') => parser.parse(host.read(filePath).toString(encoding), filePath).rootNodes;
|
|
147
146
|
exports.parseFile = parseFile;
|
|
147
|
+
// export const parseFile = async (host: Tree, filePath: string, encoding = 'utf8') => {
|
|
148
|
+
// const { HtmlParser } = await import('@angular/compiler')
|
|
149
|
+
// return new HtmlParser().parse(host.read(filePath).toString(encoding), filePath).rootNodes;
|
|
150
|
+
// }
|
|
148
151
|
const findElementNodes = (root, tag) => {
|
|
149
152
|
const tags = new Set(Array.isArray(tag) ? tag : [tag]);
|
|
150
153
|
return (0, exports.flatten)(Array.isArray(root) ? root : [root])
|
|
@@ -199,8 +202,14 @@ exports.flatten = flatten;
|
|
|
199
202
|
* May be useful for validating the output of our own migrations,
|
|
200
203
|
*/
|
|
201
204
|
class SerializerVisitor {
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
constructor(getHtmlTagDefinition) {
|
|
209
|
+
this.getHtmlTagDefinition = getHtmlTagDefinition;
|
|
210
|
+
}
|
|
202
211
|
visitElement(element, _context) {
|
|
203
|
-
if (
|
|
212
|
+
if (this.getHtmlTagDefinition(element.name).isVoid) {
|
|
204
213
|
return `<${element.name}${this._visitAll(element.attrs, ' ')}/>`;
|
|
205
214
|
}
|
|
206
215
|
return `<${element.name}${this._visitAll(element.attrs, ' ')}>${this._visitAll(element.children)}</${element.name}>`;
|
|
@@ -227,7 +236,9 @@ class SerializerVisitor {
|
|
|
227
236
|
return join + nodes.map(a => a.visit(this, null)).join(join);
|
|
228
237
|
}
|
|
229
238
|
}
|
|
230
|
-
const serializeNodes = (nodes) =>
|
|
239
|
+
const serializeNodes = (nodes, getHtmlTagDefinition) => {
|
|
240
|
+
return nodes.map(node => node.visit(new SerializerVisitor(getHtmlTagDefinition), null));
|
|
241
|
+
};
|
|
231
242
|
exports.serializeNodes = serializeNodes;
|
|
232
243
|
const makeNgIf = (name, value) => name.startsWith('[') && value !== 'true';
|
|
233
244
|
exports.makeNgIf = makeNgIf;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const tsUtils_1 = require("../common/tsUtils");
|
|
5
14
|
const version = '10.1.0';
|
|
6
|
-
exports.default = () => (host, context) => {
|
|
15
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
16
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
8
17
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
9
18
|
update.applyChanges();
|
|
@@ -22,4 +31,4 @@ exports.default = () => (host, context) => {
|
|
|
22
31
|
host.overwrite(entryPath, content);
|
|
23
32
|
}
|
|
24
33
|
}
|
|
25
|
-
};
|
|
34
|
+
});
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '10.2.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.addCondition('type_is_invalid', (matchedOwner) => {
|
|
@@ -19,4 +28,4 @@ exports.default = () => (host, context) => {
|
|
|
19
28
|
return true;
|
|
20
29
|
});
|
|
21
30
|
update.applyChanges();
|
|
22
|
-
};
|
|
31
|
+
});
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const util_1 = require("../common/util");
|
|
14
|
+
const import_helper_js_1 = require("../common/import-helper.js");
|
|
5
15
|
const version = '11.0.0';
|
|
6
|
-
exports.default = () => (host, context) => {
|
|
16
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
17
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
18
|
+
const { HtmlParser, getHtmlTagDefinition } = yield (0, import_helper_js_1.nativeImport)('@angular/compiler');
|
|
8
19
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
9
20
|
const TAGS = ['igx-grid', 'igx-tree-grid', 'igx-hierarchical-grid'];
|
|
10
21
|
const prop = ['[showToolbar]', 'showToolbar'];
|
|
@@ -42,13 +53,13 @@ exports.default = () => (host, context) => {
|
|
|
42
53
|
const ngTemplates = (0, util_1.findElementNodes)([grid], ['ng-template']);
|
|
43
54
|
const toolbarTemplate = ngTemplates.filter(template => (0, util_1.hasAttribute)(template, 'igxToolbarCustomContent'))[0];
|
|
44
55
|
if (toolbarTemplate) {
|
|
45
|
-
return `${warnMsg}\n${(0, util_1.serializeNodes)(toolbarTemplate.children).join('')}\n`;
|
|
56
|
+
return `${warnMsg}\n${(0, util_1.serializeNodes)(toolbarTemplate.children, getHtmlTagDefinition).join('')}\n`;
|
|
46
57
|
}
|
|
47
58
|
return '';
|
|
48
59
|
};
|
|
49
60
|
// Row island migration
|
|
50
61
|
for (const path of update.templateFiles) {
|
|
51
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), 'igx-row-island')
|
|
62
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), 'igx-row-island')
|
|
52
63
|
.filter(island => (0, util_1.hasAttribute)(island, prop))
|
|
53
64
|
.map(island => (0, util_1.getSourceOffset)(island))
|
|
54
65
|
.forEach(offset => {
|
|
@@ -64,7 +75,7 @@ exports.default = () => (host, context) => {
|
|
|
64
75
|
changes.clear();
|
|
65
76
|
// Clear row island templates
|
|
66
77
|
for (const path of update.templateFiles) {
|
|
67
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), 'igx-row-island')
|
|
78
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), 'igx-row-island')
|
|
68
79
|
.filter(grid => (0, util_1.hasAttribute)(grid, prop))
|
|
69
80
|
.map(grid => (0, util_1.findElementNodes)([grid], ['ng-template']))
|
|
70
81
|
.reduce((prev, curr) => prev.concat(curr), [])
|
|
@@ -80,7 +91,7 @@ exports.default = () => (host, context) => {
|
|
|
80
91
|
// General migration
|
|
81
92
|
// Prepare the file changes
|
|
82
93
|
for (const path of update.templateFiles) {
|
|
83
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), TAGS)
|
|
94
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), TAGS)
|
|
84
95
|
.filter(grid => (0, util_1.hasAttribute)(grid, prop))
|
|
85
96
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
86
97
|
.forEach(offset => {
|
|
@@ -95,7 +106,7 @@ exports.default = () => (host, context) => {
|
|
|
95
106
|
changes.clear();
|
|
96
107
|
// Remove toolbar templates after migration
|
|
97
108
|
for (const path of update.templateFiles) {
|
|
98
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), TAGS)
|
|
109
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), TAGS)
|
|
99
110
|
.filter(grid => (0, util_1.hasAttribute)(grid, prop))
|
|
100
111
|
.map(grid => (0, util_1.findElementNodes)([grid], ['ng-template']))
|
|
101
112
|
.reduce((prev, curr) => prev.concat(curr), [])
|
|
@@ -109,4 +120,4 @@ exports.default = () => (host, context) => {
|
|
|
109
120
|
applyChanges();
|
|
110
121
|
// Remove the input properties
|
|
111
122
|
update.applyChanges();
|
|
112
|
-
};
|
|
123
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '11.1.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const util_1 = require("../common/util");
|
|
14
|
+
const import_helper_js_1 = require("../common/import-helper.js");
|
|
5
15
|
const version = '12.0.0';
|
|
6
|
-
exports.default = () => (host, context) => {
|
|
16
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
17
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
18
|
+
const { HtmlParser } = yield (0, import_helper_js_1.nativeImport)('@angular/compiler');
|
|
8
19
|
// eslint-disable-next-line max-len
|
|
9
20
|
const UPDATE_NOTE = `<!--NOTE: This component has been updated by Infragistics migration: v${version}\nPlease check your template whether all bindings/event handlers are correct.-->\n`;
|
|
10
21
|
const COMPONENTS = [
|
|
@@ -70,7 +81,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
70
81
|
const isEmptyOrSpaces = (str) => str === null || str === '' || str === '\n' || str === '\r\n' || str.match(/^[\r\n\t]* *$/) !== null;
|
|
71
82
|
// Replace the tabsType input with tabsAligment
|
|
72
83
|
for (const path of htmlFiles) {
|
|
73
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), 'igx-tabs')
|
|
84
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), 'igx-tabs')
|
|
74
85
|
.forEach(node => {
|
|
75
86
|
if ((0, util_1.hasAttribute)(node, 'type')) {
|
|
76
87
|
const { startTag, file } = (0, util_1.getSourceOffset)(node);
|
|
@@ -92,7 +103,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
92
103
|
for (const comp of COMPONENTS) {
|
|
93
104
|
for (const path of htmlFiles) {
|
|
94
105
|
// Replace the <ng-template igxTab> if any with <igx-tab-item>
|
|
95
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.tags)
|
|
106
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.tags)
|
|
96
107
|
.map(tab => (0, util_1.findElementNodes)([tab], 'ng-template'))
|
|
97
108
|
.reduce((prev, curr) => prev.concat(curr), [])
|
|
98
109
|
.filter(template => (0, util_1.hasAttribute)(template, 'igxTab'))
|
|
@@ -107,7 +118,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
107
118
|
changes.clear();
|
|
108
119
|
// Convert label and icon to igx-tab-header children ->
|
|
109
120
|
// <igx-icon igxTabHeaderIcon> and <span igxTabHeaderLabel>
|
|
110
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.tags).
|
|
121
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.tags).
|
|
111
122
|
map(node => (0, util_1.getSourceOffset)(node)).
|
|
112
123
|
forEach(offset => {
|
|
113
124
|
const { startTag, file, node } = offset;
|
|
@@ -152,7 +163,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
152
163
|
changes.clear();
|
|
153
164
|
// Grab the content between <igx-tabs-group> and create a <igx-tab-content>
|
|
154
165
|
// Also migrate class from igx-tabs-group to igx-tab-content, if any
|
|
155
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.tags)
|
|
166
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.tags)
|
|
156
167
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
157
168
|
.forEach(offset => {
|
|
158
169
|
const tabHeader = offset.node.children.find(c => c.name === comp.headerItem);
|
|
@@ -177,7 +188,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
177
188
|
changes.clear();
|
|
178
189
|
// Insert a comment indicating the change/replacement
|
|
179
190
|
if (applyComment) {
|
|
180
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.component).
|
|
191
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.component).
|
|
181
192
|
map(node => (0, util_1.getSourceOffset)(node)).
|
|
182
193
|
forEach(offset => {
|
|
183
194
|
const { startTag, file } = offset;
|
|
@@ -226,7 +237,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
226
237
|
for (const path of htmlFiles) {
|
|
227
238
|
// DatePicker and TimePicker don't support templates anymore.
|
|
228
239
|
// That is why migrations inserts a comment to notify the developer to remove the templates.
|
|
229
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.COMPONENT)
|
|
240
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.COMPONENT)
|
|
230
241
|
.map(editor => (0, util_1.findElementNodes)([editor], 'ng-template'))
|
|
231
242
|
.reduce((prev, curr) => prev.concat(curr), [])
|
|
232
243
|
.filter(template => (0, util_1.hasAttribute)(template, comp.TEMPLATE_DIRECTIVE))
|
|
@@ -239,7 +250,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
239
250
|
// 1. That is why any occurrence of drop down mode is removed and
|
|
240
251
|
// 2. dialog mode is added for those that didn't explicitly set the mode prop.
|
|
241
252
|
// 1. Remove dropdown mode
|
|
242
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.COMPONENT)
|
|
253
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.COMPONENT)
|
|
243
254
|
.filter(template => (0, util_1.hasAttribute)(template, EDITORS_MODE))
|
|
244
255
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
245
256
|
.forEach(offset => {
|
|
@@ -253,7 +264,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
253
264
|
});
|
|
254
265
|
});
|
|
255
266
|
// 2. Insert dialog mode
|
|
256
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.COMPONENT)
|
|
267
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.COMPONENT)
|
|
257
268
|
.filter(template => !(0, util_1.hasAttribute)(template, EDITORS_MODE))
|
|
258
269
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
259
270
|
.forEach(offset => {
|
|
@@ -262,7 +273,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
262
273
|
});
|
|
263
274
|
// Remove label property and project it as <label igxLabel></label>
|
|
264
275
|
// Check also labelVisibility value.
|
|
265
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.COMPONENT)
|
|
276
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.COMPONENT)
|
|
266
277
|
.filter(template => (0, util_1.hasAttribute)(template, EDITORS_LABEL))
|
|
267
278
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
268
279
|
.forEach(offset => {
|
|
@@ -288,7 +299,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
288
299
|
});
|
|
289
300
|
});
|
|
290
301
|
// If label and labelVisibility are not set this means that we should project default labels: "Date" & "Time"
|
|
291
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), comp.COMPONENT)
|
|
302
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), comp.COMPONENT)
|
|
292
303
|
.filter(template => !(0, util_1.hasAttribute)(template, EDITORS_LABEL) &&
|
|
293
304
|
!(0, util_1.hasAttribute)(template, EDITORS_LABEL_VISIBILITY))
|
|
294
305
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
@@ -310,7 +321,7 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
310
321
|
DIRECTIVE: 'igxInput'
|
|
311
322
|
};
|
|
312
323
|
for (const path of htmlFiles) {
|
|
313
|
-
const inputGroups = (0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), INPUT_GROUP_CHANGES.GROUP_TAG);
|
|
324
|
+
const inputGroups = (0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), INPUT_GROUP_CHANGES.GROUP_TAG);
|
|
314
325
|
inputGroups.forEach((el) => {
|
|
315
326
|
const parentEl = el;
|
|
316
327
|
if ((0, util_1.hasAttribute)(parentEl, INPUT_GROUP_CHANGES.ATTRIBUTES)) {
|
|
@@ -345,4 +356,4 @@ See https://www.infragistics.com/products/ignite-ui-angular/angular/components/t
|
|
|
345
356
|
}
|
|
346
357
|
// Apply all selector and input changes
|
|
347
358
|
update.applyChanges();
|
|
348
|
-
};
|
|
359
|
+
});
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const util_1 = require("../common/util");
|
|
14
|
+
const import_helper_js_1 = require("../common/import-helper.js");
|
|
5
15
|
const version = '12.1.0';
|
|
6
|
-
exports.default = () => (host, context) => {
|
|
16
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
17
|
var _a;
|
|
8
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
19
|
+
const { HtmlParser, getHtmlTagDefinition } = yield (0, import_helper_js_1.nativeImport)('@angular/compiler');
|
|
9
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
10
21
|
const TAGS = ['igx-grid', 'igx-tree-grid', 'igx-hierarchical-grid'];
|
|
11
22
|
const prop = ['[paging]', 'paging'];
|
|
@@ -33,21 +44,21 @@ exports.default = () => (host, context) => {
|
|
|
33
44
|
}
|
|
34
45
|
};
|
|
35
46
|
const checkForPaginatorInTemplate = (path, name) => {
|
|
36
|
-
const ngTemplates = (0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), 'ng-template');
|
|
47
|
+
const ngTemplates = (0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), 'ng-template');
|
|
37
48
|
const paginatorTemplate = ngTemplates.filter(template => (0, util_1.hasAttribute)(template, `#${name}`))[0];
|
|
38
49
|
return paginatorTemplate ? !!(0, util_1.findElementNodes)(paginatorTemplate.children, 'igx-paginator').length : false;
|
|
39
50
|
};
|
|
40
51
|
const moveTemplate = (paginatorTemplate) => {
|
|
41
52
|
if (paginatorTemplate) {
|
|
42
53
|
return `${warnMsg}\n<igx-paginator-content>
|
|
43
|
-
${(0, util_1.serializeNodes)(paginatorTemplate.children).join('')}
|
|
54
|
+
${(0, util_1.serializeNodes)(paginatorTemplate.children, getHtmlTagDefinition).join('')}
|
|
44
55
|
</igx-paginator-content>\n`;
|
|
45
56
|
}
|
|
46
57
|
return '';
|
|
47
58
|
};
|
|
48
59
|
const buildPaginator = (node, path, propName, value, isChildGrid = false) => {
|
|
49
60
|
const paginationTemplateName = (0, util_1.getAttribute)(node, '[paginationTemplate]')[0];
|
|
50
|
-
const ngTemplates = (0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), 'ng-template');
|
|
61
|
+
const ngTemplates = (0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), 'ng-template');
|
|
51
62
|
templateNames.push('#' + (paginationTemplateName === null || paginationTemplateName === void 0 ? void 0 : paginationTemplateName.value));
|
|
52
63
|
const paginatorTemplate = ngTemplates.filter(template => (0, util_1.hasAttribute)(template, `#${paginationTemplateName === null || paginationTemplateName === void 0 ? void 0 : paginationTemplateName.value}`))[0];
|
|
53
64
|
if (paginatorTemplate && checkForPaginatorInTemplate(path, paginationTemplateName === null || paginationTemplateName === void 0 ? void 0 : paginationTemplateName.value)) {
|
|
@@ -61,7 +72,7 @@ exports.default = () => (host, context) => {
|
|
|
61
72
|
};
|
|
62
73
|
// migrate paging and pagination template for grid, tree grid and hierarchical grid
|
|
63
74
|
for (const path of update.templateFiles) {
|
|
64
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), TAGS)
|
|
75
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), TAGS)
|
|
65
76
|
.filter(grid => (0, util_1.hasAttribute)(grid, prop))
|
|
66
77
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
67
78
|
.forEach(offset => {
|
|
@@ -75,7 +86,7 @@ exports.default = () => (host, context) => {
|
|
|
75
86
|
changes.clear();
|
|
76
87
|
// apply the migrations to the rowIsland
|
|
77
88
|
for (const path of update.templateFiles) {
|
|
78
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), 'igx-row-island')
|
|
89
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), 'igx-row-island')
|
|
79
90
|
.filter(island => (0, util_1.hasAttribute)(island, prop))
|
|
80
91
|
.map(island => (0, util_1.getSourceOffset)(island))
|
|
81
92
|
.forEach(offset => {
|
|
@@ -89,7 +100,7 @@ exports.default = () => (host, context) => {
|
|
|
89
100
|
changes.clear();
|
|
90
101
|
// clear paginationTemplate definitions
|
|
91
102
|
for (const path of update.templateFiles) {
|
|
92
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), 'ng-template')
|
|
103
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), 'ng-template')
|
|
93
104
|
.filter(template => (0, util_1.hasAttribute)(template, templateNames))
|
|
94
105
|
.forEach(node => {
|
|
95
106
|
const { startTag, endTag, file } = (0, util_1.getSourceOffset)(node);
|
|
@@ -110,4 +121,4 @@ exports.default = () => (host, context) => {
|
|
|
110
121
|
host.overwrite(path, content);
|
|
111
122
|
}
|
|
112
123
|
update.applyChanges();
|
|
113
|
-
};
|
|
124
|
+
});
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const util_1 = require("../common/util");
|
|
14
|
+
const import_helper_js_1 = require("../common/import-helper.js");
|
|
5
15
|
const version = '13.0.0';
|
|
6
|
-
exports.default = () => (host, context) => {
|
|
16
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
17
|
var _a;
|
|
8
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
19
|
+
const { HtmlParser } = yield (0, import_helper_js_1.nativeImport)('@angular/compiler');
|
|
9
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
10
21
|
const GRIDS = ['IgxGridComponent', 'IgxTreeGridComponent', 'IgxHierarchicalGridComponent'];
|
|
11
22
|
const TAGS = ['igx-grid', 'igx-tree-grid', 'igx-hierarchical-grid'];
|
|
12
23
|
const tsFiles = update.tsFiles;
|
|
13
24
|
for (const path of update.templateFiles) {
|
|
14
|
-
(0, util_1.findElementNodes)((0, util_1.parseFile)(host, path), TAGS)
|
|
25
|
+
(0, util_1.findElementNodes)((0, util_1.parseFile)(new HtmlParser(), host, path), TAGS)
|
|
15
26
|
.map(node => (0, util_1.getSourceOffset)(node))
|
|
16
27
|
.forEach(offset => {
|
|
17
28
|
const { file, node } = offset;
|
|
@@ -53,4 +64,4 @@ exports.default = () => (host, context) => {
|
|
|
53
64
|
});
|
|
54
65
|
}
|
|
55
66
|
update.applyChanges();
|
|
56
|
-
};
|
|
67
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '6.0.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const tsUtils_1 = require("../common/tsUtils");
|
|
4
13
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
5
14
|
const version = '6.0.1';
|
|
6
|
-
exports.default = () => (host, context) => {
|
|
15
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
16
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
8
17
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
9
18
|
// update.applyChanges();
|
|
@@ -18,4 +27,4 @@ exports.default = () => (host, context) => {
|
|
|
18
27
|
host.overwrite(entryPath, content);
|
|
19
28
|
}
|
|
20
29
|
}
|
|
21
|
-
};
|
|
30
|
+
});
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const util_1 = require("../common/util");
|
|
4
13
|
const version = '6.0.2';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
const themeImport = '~igniteui-angular/core/styles/themes';
|
|
7
16
|
const newThemeImport = '~igniteui-angular/lib/core/styles/themes';
|
|
8
17
|
const config = (0, util_1.getWorkspace)(host);
|
|
@@ -20,4 +29,4 @@ exports.default = () => (host, context) => {
|
|
|
20
29
|
}
|
|
21
30
|
});
|
|
22
31
|
}
|
|
23
|
-
};
|
|
32
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '6.1.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '6.2.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.addCondition('igxIcon_is_material_name', (matchedOwner) => {
|
|
@@ -17,4 +26,4 @@ exports.default = () => (host, context) => {
|
|
|
17
26
|
return true;
|
|
18
27
|
});
|
|
19
28
|
update.applyChanges();
|
|
20
|
-
};
|
|
29
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '6.2.1';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '7.0.2';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '7.3.4';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '8.2.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '8.2.3';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const util_1 = require("../common/util");
|
|
4
13
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
5
14
|
const version = '8.2.6';
|
|
6
|
-
exports.default = () => (host, context) => {
|
|
15
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
16
|
const themes = ['$_base-dark-grid-pagination',
|
|
8
17
|
'$_dark-grid-pagination',
|
|
9
18
|
'$_dark-fluent-grid-pagination',
|
|
@@ -54,4 +63,4 @@ exports.default = () => (host, context) => {
|
|
|
54
63
|
});
|
|
55
64
|
}
|
|
56
65
|
update.applyChanges();
|
|
57
|
-
};
|
|
66
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '9.0.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '9.0.1';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.applyChanges();
|
|
9
|
-
};
|
|
18
|
+
});
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
4
13
|
const version = '9.1.0';
|
|
5
|
-
exports.default = () => (host, context) => {
|
|
14
|
+
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
7
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
8
17
|
update.addValueTransform('rowSelectable_is_deprecated', (args) => {
|
|
@@ -25,4 +34,4 @@ exports.default = () => (host, context) => {
|
|
|
25
34
|
}
|
|
26
35
|
});
|
|
27
36
|
update.applyChanges();
|
|
28
|
-
};
|
|
37
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-angular",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.6",
|
|
4
4
|
"description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
|
|
5
5
|
"author": "Infragistics",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -75,6 +75,25 @@
|
|
|
75
75
|
"uuid": "^8.3.0",
|
|
76
76
|
"@igniteui/material-icons-extended": "^2.10.0"
|
|
77
77
|
},
|
|
78
|
+
"exports": {
|
|
79
|
+
"./schematics/*": {
|
|
80
|
+
"default": "./schematics/*"
|
|
81
|
+
},
|
|
82
|
+
"./migrations/*": {
|
|
83
|
+
"default": "./migrations/*"
|
|
84
|
+
},
|
|
85
|
+
"./package.json": {
|
|
86
|
+
"default": "./package.json"
|
|
87
|
+
},
|
|
88
|
+
".": {
|
|
89
|
+
"types": "./igniteui-angular.d.ts",
|
|
90
|
+
"esm2020": "./esm2020/igniteui-angular.mjs",
|
|
91
|
+
"es2020": "./fesm2020/igniteui-angular.mjs",
|
|
92
|
+
"es2015": "./fesm2015/igniteui-angular.mjs",
|
|
93
|
+
"node": "./fesm2015/igniteui-angular.mjs",
|
|
94
|
+
"default": "./fesm2020/igniteui-angular.mjs"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
78
97
|
"peerDependencies": {
|
|
79
98
|
"@angular/common": "^13.0.0",
|
|
80
99
|
"@angular/core": "^13.0.0",
|
|
@@ -94,18 +113,5 @@
|
|
|
94
113
|
"fesm2020": "fesm2020/igniteui-angular.mjs",
|
|
95
114
|
"fesm2015": "fesm2015/igniteui-angular.mjs",
|
|
96
115
|
"typings": "igniteui-angular.d.ts",
|
|
97
|
-
"exports": {
|
|
98
|
-
"./package.json": {
|
|
99
|
-
"default": "./package.json"
|
|
100
|
-
},
|
|
101
|
-
".": {
|
|
102
|
-
"types": "./igniteui-angular.d.ts",
|
|
103
|
-
"esm2020": "./esm2020/igniteui-angular.mjs",
|
|
104
|
-
"es2020": "./fesm2020/igniteui-angular.mjs",
|
|
105
|
-
"es2015": "./fesm2015/igniteui-angular.mjs",
|
|
106
|
-
"node": "./fesm2015/igniteui-angular.mjs",
|
|
107
|
-
"default": "./fesm2020/igniteui-angular.mjs"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
116
|
"sideEffects": false
|
|
111
117
|
}
|