igniteui-angular 13.1.15 → 13.1.16

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.
@@ -283,7 +283,6 @@ export declare class IgxHierarchicalGridComponent extends IgxHierarchicalGridBas
283
283
  * @hidden
284
284
  */
285
285
  ngOnInit(): void;
286
- ngDoCheck(): void;
287
286
  /**
288
287
  * @hidden
289
288
  */
@@ -430,10 +429,6 @@ export declare class IgxHierarchicalGridComponent extends IgxHierarchicalGridBas
430
429
  * @hidden
431
430
  */
432
431
  viewMovedHandler(args: any): void;
433
- /**
434
- * @hidden
435
- */
436
- updateScrollPosition(): void;
437
432
  onContainerScroll(): void;
438
433
  /**
439
434
  * @hidden
@@ -442,6 +437,7 @@ export declare class IgxHierarchicalGridComponent extends IgxHierarchicalGridBas
442
437
  /** @hidden @internal */
443
438
  getChildGrids(inDeph?: boolean): any[];
444
439
  protected generateDataFields(data: any[]): string[];
440
+ protected resizeNotifyHandler(): void;
445
441
  /**
446
442
  * @hidden
447
443
  */
@@ -449,7 +445,6 @@ export declare class IgxHierarchicalGridComponent extends IgxHierarchicalGridBas
449
445
  protected setupColumns(): void;
450
446
  protected onColumnsChanged(change: QueryList<IgxColumnComponent>): void;
451
447
  protected _shouldAutoSize(renderedHeight: any): boolean;
452
- private updateSizes;
453
448
  private updateColumnList;
454
449
  private _clearSeletionHighlights;
455
450
  private hg_verticalScrollHandler;
@@ -66,7 +66,6 @@ export declare class UpdateChanges {
66
66
  protected updateSassVariables(entryPath: string): void;
67
67
  protected updateSassFunctionsAndMixins(entryPath: string): void;
68
68
  protected getAliases(entryPath: string): any[];
69
- protected formatAliases(urls: string[], fileContent: string): any[];
70
69
  protected updateImports(entryPath: string): void;
71
70
  protected updateClassMembers(entryPath: string, memberChanges: MemberChanges): void;
72
71
  private tryReplaceScssFunctionWithAlias;
@@ -413,18 +413,15 @@ class UpdateChanges {
413
413
  }
414
414
  let occurrences = [];
415
415
  if (aliases.length > 0 && !aliases.includes('*')) {
416
- for (const alias of aliases) {
417
- occurrences = occurrences.concat((0, tsUtils_1.findMatches)(fileContent, alias + '.' + change.name));
418
- }
416
+ aliases.forEach(a => occurrences = occurrences.concat((0, tsUtils_1.findMatches)(fileContent, a + '.' + change.name)));
419
417
  if (occurrences.length > 0) {
420
418
  ({ overwrite, fileContent } = this.tryReplaceScssFunctionWithAlias(occurrences, aliases, fileContent, change, overwrite));
419
+ continue;
421
420
  }
422
421
  }
423
- else {
424
- occurrences = (0, tsUtils_1.findMatches)(fileContent, change.name);
425
- if (occurrences.length > 0) {
426
- ({ overwrite, fileContent } = this.tryReplaceScssFunction(occurrences, fileContent, change, overwrite));
427
- }
422
+ occurrences = (0, tsUtils_1.findMatches)(fileContent, change.name);
423
+ if (occurrences.length > 0) {
424
+ ({ overwrite, fileContent } = this.tryReplaceScssFunction(occurrences, fileContent, change, overwrite));
428
425
  }
429
426
  }
430
427
  if (overwrite) {
@@ -432,29 +429,20 @@ class UpdateChanges {
432
429
  }
433
430
  }
434
431
  getAliases(entryPath) {
435
- let fileContent = this.host.read(entryPath).toString();
436
- const allUses = [
437
- `@use 'igniteui-angular/theming' as `,
438
- `@use 'igniteui-angular/theme' as `,
439
- `@use 'igniteui-angular/lib/core/styles/themes/index' as `
432
+ const fileContent = this.host.read(entryPath).toString();
433
+ // B.P. 18/05/22 #11577 - Use RegEx to distinguish themed imports.
434
+ const matchers = [
435
+ /@use(\s+)('|")igniteui-angular\/theming\2\1as\1(\w+)/g,
436
+ /@use(\s+)('|")igniteui-angular\/theme\2\1as\1(\w+)/g,
437
+ /@use(\s+)('|")igniteui-angular\/lib\/core\/styles\/themes\/index\2\1as\1(\w+)/g
440
438
  ];
441
- let urls = [];
442
- for (let i = 0; i < allUses.length; i++) {
443
- if (fileContent.includes(allUses[i])) {
444
- urls.push(allUses[i].substring(5, allUses[i].length - 4));
445
- }
446
- }
447
- return this.formatAliases(urls, fileContent);
448
- }
449
- formatAliases(urls, fileContent) {
450
- let aliases = [];
451
- for (const url of urls) {
452
- const matcher = new RegExp(String.raw `@use\s+${(0, util_1.escapeRegExp)(url)}\s+as\s+(\w+)`, 'g');
453
- const match = matcher.exec(fileContent);
439
+ var aliases = [];
440
+ matchers.forEach(m => {
441
+ const match = m.exec(fileContent);
454
442
  if (match) {
455
- aliases.push(match[1]); // access the first captured match
443
+ aliases.push(match[3]); // access the captured alias
456
444
  }
457
- }
445
+ });
458
446
  return aliases;
459
447
  }
460
448
  updateImports(entryPath) {
@@ -78,8 +78,12 @@ exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, fun
78
78
  const _import = new RegExp(`@import ('|")~igniteui-angular\/lib\/core\/styles\/themes\/index('|");`, 'g');
79
79
  for (const path of update.sassFiles) {
80
80
  const fileContent = host.read(path).toString();
81
- const replacedString = fileContent.replace(_import, `@use "igniteui-angular/theming" as igniteui;`);
82
- host.overwrite(path, replacedString);
81
+ const replacedString = `/* Line added via automated migrations. */
82
+ @use "igniteui-angular/theming" as *;
83
+ ` + fileContent.replace(_import, '');
84
+ if (_import.test(fileContent)) {
85
+ host.overwrite(path, replacedString);
86
+ }
83
87
  }
84
88
  applyChanges();
85
89
  update.applyChanges();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "13.1.15",
3
+ "version": "13.1.16",
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",