igniteui-angular 17.1.0-beta.3 → 17.1.0-rc.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/esm2022/lib/calendar/years-view/years-view.component.mjs +3 -2
- package/esm2022/lib/carousel/carousel.component.mjs +3 -2
- package/esm2022/lib/core/touch-annotations.mjs +5 -0
- package/esm2022/lib/core/touch.mjs +14 -9
- package/esm2022/lib/directives/text-highlight/text-highlight.service.mjs +7 -1
- package/esm2022/lib/grids/cell.component.mjs +1 -1
- package/esm2022/lib/grids/columns/column.component.mjs +2 -2
- package/esm2022/lib/grids/grid-base.directive.mjs +2 -1
- package/esm2022/lib/grids/hierarchical-grid/row-island.component.mjs +2 -2
- package/esm2022/lib/grids/state.directive.mjs +5 -2
- package/esm2022/lib/navigation-drawer/navigation-drawer.component.mjs +1 -1
- package/esm2022/lib/time-picker/time-picker.directives.mjs +2 -2
- package/fesm2022/igniteui-angular.mjs +169 -154
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/calendar/years-view/years-view.component.d.ts +1 -1
- package/lib/carousel/carousel.component.d.ts +1 -1
- package/lib/core/touch-annotations.d.ts +59 -0
- package/lib/core/touch.d.ts +2 -1
- package/lib/directives/text-highlight/text-highlight.service.d.ts +4 -0
- package/lib/grids/state.directive.d.ts +3 -0
- package/package.json +13 -4
- package/schematics/interfaces/options.d.ts +1 -0
- package/schematics/ng-add/index.spec.js +36 -11
- package/schematics/ng-add/schema.json +6 -0
- package/schematics/tsconfig.tsbuildinfo +1 -1
- package/schematics/utils/dependency-handler.js +12 -7
|
@@ -25,20 +25,20 @@ const schematicsPackage = '@igniteui/angular-schematics';
|
|
|
25
25
|
*/
|
|
26
26
|
exports.DEPENDENCIES_MAP = [
|
|
27
27
|
// dependencies
|
|
28
|
-
{ name: 'hammerjs', target: PackageTarget.REGULAR },
|
|
29
28
|
{ name: 'fflate', target: PackageTarget.REGULAR },
|
|
30
29
|
{ name: 'tslib', target: PackageTarget.NONE },
|
|
31
|
-
{ name: '@types/hammerjs', target: PackageTarget.DEV },
|
|
32
30
|
{ name: 'igniteui-trial-watermark', target: PackageTarget.NONE },
|
|
33
31
|
{ name: 'lodash-es', target: PackageTarget.NONE },
|
|
34
32
|
{ name: 'uuid', target: PackageTarget.NONE },
|
|
35
33
|
{ name: '@igniteui/material-icons-extended', target: PackageTarget.REGULAR },
|
|
34
|
+
{ name: 'igniteui-theming', target: PackageTarget.NONE },
|
|
36
35
|
// peerDependencies
|
|
37
36
|
{ name: '@angular/forms', target: PackageTarget.NONE },
|
|
38
37
|
{ name: '@angular/common', target: PackageTarget.NONE },
|
|
39
38
|
{ name: '@angular/core', target: PackageTarget.NONE },
|
|
40
39
|
{ name: '@angular/animations', target: PackageTarget.NONE },
|
|
41
|
-
{ name: '
|
|
40
|
+
{ name: 'hammerjs', target: PackageTarget.REGULAR },
|
|
41
|
+
{ name: '@types/hammerjs', target: PackageTarget.DEV },
|
|
42
42
|
// igxDevDependencies
|
|
43
43
|
{ name: '@igniteui/angular-schematics', target: PackageTarget.DEV }
|
|
44
44
|
];
|
|
@@ -95,7 +95,7 @@ const addDependencies = (options) => (tree, context) => __awaiter(void 0, void 0
|
|
|
95
95
|
const pkgJson = require('../../package.json');
|
|
96
96
|
const workspaceHost = (0, util_1.createHost)(tree);
|
|
97
97
|
const { workspace } = yield core_1.workspaces.readWorkspace(tree.root.path, workspaceHost);
|
|
98
|
-
yield includeDependencies(workspaceHost, workspace, pkgJson, context, tree);
|
|
98
|
+
yield includeDependencies(workspaceHost, workspace, pkgJson, context, tree, options);
|
|
99
99
|
yield (0, exports.includeStylePreprocessorOptions)(workspaceHost, workspace, context, tree);
|
|
100
100
|
(0, exports.addPackageToPkgJson)(tree, schematicsPackage, pkgJson.igxDevDependencies[schematicsPackage], PackageTarget.DEV);
|
|
101
101
|
});
|
|
@@ -185,9 +185,14 @@ const addStylePreprocessorOptions = (project, tree, config, context) => __awaite
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
|
-
const includeDependencies = (workspaceHost, workspace, pkgJson, context, tree) => __awaiter(void 0, void 0, void 0, function* () {
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
const includeDependencies = (workspaceHost, workspace, pkgJson, context, tree, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
189
|
+
const allDeps = Object.keys(pkgJson.dependencies).concat(Object.keys(pkgJson.peerDependencies));
|
|
190
|
+
for (const pkg of allDeps) {
|
|
191
|
+
// In case of hammerjs and user prompted to not add hammer, skip
|
|
192
|
+
if (pkg === 'hammerjs' && !options.addHammer) {
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
const version = pkgJson.dependencies[pkg] || pkgJson.peerDependencies[pkg];
|
|
191
196
|
const entry = exports.DEPENDENCIES_MAP.find(e => e.name === pkg);
|
|
192
197
|
if (!entry || entry.target === PackageTarget.NONE) {
|
|
193
198
|
continue;
|