igniteui-angular 22.0.0 → 22.0.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/fesm2022/igniteui-angular-directives.mjs +0 -1
- package/fesm2022/igniteui-angular-directives.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs +42 -2
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs.map +1 -1
- package/migrations/common/import-helper.cjs +14 -0
- package/migrations/common/import-helper.d.cts +13 -0
- package/migrations/update-11_0_0/index.js +3 -2
- package/migrations/update-12_0_0/index.js +3 -2
- package/migrations/update-12_1_0/index.js +3 -2
- package/migrations/update-13_0_0/index.js +3 -2
- package/migrations/update-13_1_0/index.js +3 -2
- package/migrations/update-15_1_0/index.js +3 -2
- package/migrations/update-16_1_0/index.js +3 -2
- package/migrations/update-17_0_0/index.js +3 -2
- package/migrations/update-17_1_0/index.js +3 -2
- package/migrations/update-18_0_0/index.js +3 -2
- package/migrations/update-20_0_6/index.js +3 -2
- package/migrations/update-22_0_0/index.js +3 -1
- package/package.json +1 -1
- package/skills/igniteui-angular-components/references/directives.md +8 -1
- package/skills/igniteui-angular-components/references/setup.md +11 -1
- package/types/igniteui-angular-grids-hierarchical-grid.d.ts +2 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nativeImport = nativeImport;
|
|
4
|
+
/**
|
|
5
|
+
* Native Node dynamic import helper
|
|
6
|
+
* @remarks
|
|
7
|
+
* NB: Import this via a bare specifier (igniteui-angular/migrations/common/import-helper.cjs)
|
|
8
|
+
* to escape the schematics encapsulation for this file and thus the dynamic import inside.
|
|
9
|
+
* This allows to dynamically import ESM modules from outside the schematics host context.
|
|
10
|
+
*/
|
|
11
|
+
function nativeImport(name) {
|
|
12
|
+
return import(name);
|
|
13
|
+
}
|
|
14
|
+
;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Explicit module map, as generic T can't be resolved to a direct string literal via inference */
|
|
2
|
+
type ModuleMap = {
|
|
3
|
+
'@angular/compiler': typeof import('@angular/compiler', { with: { "resolution-mode": "import" } });
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Native Node dynamic import helper
|
|
7
|
+
* @remarks
|
|
8
|
+
* NB: Import this via a bare specifier (igniteui-angular/migrations/common/import-helper.cjs)
|
|
9
|
+
* to escape the schematics encapsulation for this file and thus the dynamic import inside.
|
|
10
|
+
* This allows to dynamically import ESM modules from outside the schematics host context.
|
|
11
|
+
*/
|
|
12
|
+
export declare function nativeImport<T extends keyof ModuleMap>(name: T): Promise<ModuleMap[T]>;
|
|
13
|
+
export {};
|
|
@@ -11,11 +11,12 @@ 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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '11.0.0';
|
|
15
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
|
|
18
|
-
const { HtmlParser, getHtmlTagDefinition } = yield import('@angular/compiler');
|
|
19
|
+
const { HtmlParser, getHtmlTagDefinition } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
19
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
20
21
|
const TAGS = ['igx-grid', 'igx-tree-grid', 'igx-hierarchical-grid'];
|
|
21
22
|
const prop = ['[showToolbar]', 'showToolbar'];
|
|
@@ -11,11 +11,12 @@ 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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '12.0.0';
|
|
15
17
|
exports.default = (options) => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
|
|
18
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
19
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
19
20
|
// eslint-disable-next-line max-len
|
|
20
21
|
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`;
|
|
21
22
|
const COMPONENTS = [
|
|
@@ -11,12 +11,13 @@ 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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '12.1.0';
|
|
15
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
var _a;
|
|
17
19
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
18
|
-
|
|
19
|
-
const { HtmlParser, getHtmlTagDefinition } = yield import('@angular/compiler');
|
|
20
|
+
const { HtmlParser, getHtmlTagDefinition } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
20
21
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
21
22
|
const TAGS = ['igx-grid', 'igx-tree-grid', 'igx-hierarchical-grid'];
|
|
22
23
|
const prop = ['[paging]', 'paging'];
|
|
@@ -11,6 +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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '13.0.0';
|
|
15
17
|
exports.default = (options) => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
var _a;
|
|
@@ -26,8 +28,7 @@ exports.default = (options) => (host, context) => __awaiter(void 0, void 0, void
|
|
|
26
28
|
'[exportExcel]', 'exportExcel', '[exportExcelText]', 'exportExcelText',
|
|
27
29
|
'[exportCsv]', 'exportCsv', '[exportCsvText]', 'exportCsvText', '[exportText]', 'exportText'];
|
|
28
30
|
const actionsLeft = ['igx-grid-toolbar-advanced-filtering'];
|
|
29
|
-
|
|
30
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
31
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
31
32
|
const moduleTsFiles = tsFiles.filter(x => x.endsWith('.module.ts'));
|
|
32
33
|
for (const path of moduleTsFiles) {
|
|
33
34
|
let content = (_a = host.read(path)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
@@ -9,13 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
13
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
12
14
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
15
|
const util_1 = require("../common/util");
|
|
14
16
|
const version = '13.1.0';
|
|
15
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
|
|
18
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
19
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
19
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
20
21
|
const GRID_TAGS = ['igx-grid', 'igx-tree-grid', 'igx-hierarchical-grid', 'igx-row-island'];
|
|
21
22
|
const prop = ['[movable]'];
|
|
@@ -9,13 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
13
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
12
14
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
15
|
const util_1 = require("../common/util");
|
|
14
16
|
const version = '15.1.0';
|
|
15
17
|
exports.default = (options) => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
|
|
18
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
19
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
19
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
20
21
|
const cardsToMigrate = new Set();
|
|
21
22
|
const CARD_ACTIONS = ['igx-card-actions'];
|
|
@@ -11,11 +11,12 @@ 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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '16.1.0';
|
|
15
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
|
|
18
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
19
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
19
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
20
21
|
update.applyChanges();
|
|
21
22
|
const prop = ['[multiSelection]'];
|
|
@@ -44,13 +44,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
const ts = __importStar(require("typescript"));
|
|
46
46
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
47
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
48
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
47
49
|
const tsUtils_1 = require("../common/tsUtils");
|
|
48
50
|
const util_1 = require("../common/util");
|
|
49
51
|
const version = '17.0.0';
|
|
50
52
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
53
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
52
|
-
|
|
53
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
54
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
54
55
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
55
56
|
const changes = new Map();
|
|
56
57
|
const prop = ['type'];
|
|
@@ -11,11 +11,12 @@ 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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '17.1.0';
|
|
15
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
|
|
18
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
19
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
19
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
20
21
|
const changes = new Map();
|
|
21
22
|
const tags = ['button', 'span', 'a', 'div', 'igx-prefix', 'igx-suffix'];
|
|
@@ -11,12 +11,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
13
|
const util_1 = require("../common/util");
|
|
14
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
15
17
|
const version = "18.0.0";
|
|
16
18
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
19
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
18
|
-
|
|
19
|
-
const { HtmlParser } = yield import('@angular/compiler');
|
|
20
|
+
const { HtmlParser } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
20
21
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
21
22
|
const changes = new Map();
|
|
22
23
|
const prop = ["displayDensity", "[displayDensity]"];
|
|
@@ -11,11 +11,12 @@ 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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '20.0.6';
|
|
15
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
|
|
18
|
-
const { HtmlParser, Element } = yield import('@angular/compiler');
|
|
19
|
+
const { HtmlParser, Element } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
19
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
20
21
|
const changes = new Map();
|
|
21
22
|
const parser = new HtmlParser();
|
|
@@ -11,10 +11,12 @@ 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
|
+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
|
|
15
|
+
const import_helper_cjs_1 = require("igniteui-angular/migrations/common/import-helper.cjs");
|
|
14
16
|
const version = '22.0.0';
|
|
15
17
|
exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
17
|
-
const { HtmlParser, Element } = yield
|
|
19
|
+
const { HtmlParser, Element } = yield (0, import_helper_cjs_1.nativeImport)('@angular/compiler');
|
|
18
20
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
19
21
|
const changes = new Map();
|
|
20
22
|
const parser = new HtmlParser();
|
package/package.json
CHANGED
|
@@ -254,7 +254,14 @@ onDrop(event: IDropDroppedEventArgs) {
|
|
|
254
254
|
Key drag events: `(dragStart)`, `(dragMove)`, `(dragEnd)`, `(dragClick)`, `(ghostCreate)`, `(ghostDestroy)`, `(transitioned)`.
|
|
255
255
|
Key drop events: `(enter)`, `(leave)`, `(over)`, `(dropped)`.
|
|
256
256
|
|
|
257
|
-
> **NOTE:** For touch-based drag,
|
|
257
|
+
> **NOTE (optional):** For touch-based drag, install `hammerjs` and add it to the `scripts` array in `angular.json`.
|
|
258
|
+
> ```bash
|
|
259
|
+
> npm install hammerjs
|
|
260
|
+
> ```
|
|
261
|
+
> ```json
|
|
262
|
+
> // angular.json — inside your project's architect.build.options
|
|
263
|
+
> "scripts": ["./node_modules/hammerjs/hammer.min.js"]
|
|
264
|
+
> ```
|
|
258
265
|
|
|
259
266
|
## See Also
|
|
260
267
|
|
|
@@ -43,7 +43,17 @@ export const appConfig: ApplicationConfig = {
|
|
|
43
43
|
| Provider | Package | Required for |
|
|
44
44
|
|---|---|---|
|
|
45
45
|
| `provideAnimations()` | `@angular/platform-browser/animations` | **All overlay and animated components** — Dialog, Combo, Select, Dropdown, Date/Time Picker, Snackbar, Toast, Banner, Navigation Drawer, Carousel, Overlay service |
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
> **Touch gestures** (Optional) (Slider, Drag & Drop, swipe) - To enable touch gesture support, install the `hammerjs` package and add it to the `scripts` array in your `angular.json`:
|
|
48
|
+
>
|
|
49
|
+
> ```bash
|
|
50
|
+
> npm install hammerjs
|
|
51
|
+
> ```
|
|
52
|
+
>
|
|
53
|
+
> ```json
|
|
54
|
+
> // angular.json — inside your project's architect.build.options
|
|
55
|
+
> "scripts": ["./node_modules/hammerjs/hammer.min.js"]
|
|
56
|
+
> ```
|
|
47
57
|
|
|
48
58
|
> **`provideAnimationsAsync()`** lazy-loads the animations module — prefer it for SSR or when optimizing initial bundle size:
|
|
49
59
|
> ```typescript
|
|
@@ -710,6 +710,8 @@ declare class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirect
|
|
|
710
710
|
* @hidden
|
|
711
711
|
*/
|
|
712
712
|
ngOnInit(): void;
|
|
713
|
+
protected onLifecyclePlaceholderConnected(): void;
|
|
714
|
+
protected onLifecyclePlaceholderDisconnected(): void;
|
|
713
715
|
/**
|
|
714
716
|
* @hidden
|
|
715
717
|
*/
|