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.
- package/esm2020/lib/combo/combo.common.mjs +11 -5
- package/esm2020/lib/directives/date-time-editor/date-time-editor.directive.mjs +4 -2
- package/esm2020/lib/directives/for-of/for_of.directive.mjs +8 -2
- package/esm2020/lib/grids/grid/grid.component.mjs +4 -1
- package/esm2020/lib/grids/grid-base.directive.mjs +7 -4
- package/esm2020/lib/grids/hierarchical-grid/hierarchical-grid.component.mjs +13 -39
- package/fesm2015/igniteui-angular.mjs +44 -50
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +41 -47
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/grids/hierarchical-grid/hierarchical-grid.component.d.ts +1 -6
- package/migrations/common/UpdateChanges.d.ts +0 -1
- package/migrations/common/UpdateChanges.js +16 -28
- package/migrations/update-13_1_0/index.js +6 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
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
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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[
|
|
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 =
|
|
82
|
-
|
|
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