igniteui-angular 18.0.0 → 18.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.
@@ -404,6 +404,11 @@ export declare class IgxForOfDirective<T, U extends T[] = T[]> extends IgxForOfT
404
404
  * Function that is called when scrolling vertically
405
405
  */
406
406
  protected onScroll(event: any): void;
407
+ /**
408
+ * @hidden
409
+ * @internal
410
+ */
411
+ updateScroll(): void;
407
412
  protected updateSizes(): void;
408
413
  /**
409
414
  * @hidden
@@ -80,14 +80,22 @@ exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, fun
80
80
  });
81
81
  const updateMainCSSFile = (host, context) => {
82
82
  var _a, _b, _c, _d;
83
- const angularConfigBuffer = host.read('angular.json');
84
- if (!angularConfigBuffer) {
83
+ const workspace = (0, util_1.getWorkspace)(host);
84
+ if (!workspace) {
85
85
  throw new schematics_1.SchematicsException('Could not find angular.json');
86
86
  }
87
- const angularConfig = JSON.parse(angularConfigBuffer.toString('utf-8'));
88
- for (const project of Object.values(angularConfig.projects)) {
87
+ const projects = (0, util_1.getProjects)(workspace);
88
+ for (const project of projects) {
89
89
  const srcRoot = project.sourceRoot || project.root || '';
90
- const stylesPath = ((_d = (_c = (_b = (_a = project.architect) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.styles) === null || _d === void 0 ? void 0 : _d.filter(s => s.startsWith(srcRoot))[0]);
90
+ const stylesPath = (_d = (_c = (_b = (_a = project.architect) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.styles) === null || _d === void 0 ? void 0 : _d.map((s) => {
91
+ if (typeof s === 'string') {
92
+ return s;
93
+ }
94
+ // ref - https://angular.dev/reference/configs/workspace-config#styles-and-scripts-configuration
95
+ if (s instanceof Object && 'input' in s) {
96
+ return s.input;
97
+ }
98
+ }).filter((s) => s === null || s === void 0 ? void 0 : s.startsWith(srcRoot))[0];
91
99
  if (!stylesPath) {
92
100
  context.logger.error(`No styles file found in angular.json for project: ${project}`);
93
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "18.0.0",
3
+ "version": "18.0.1",
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",