Skip to content

Commit 2bd7bf3

Browse files
author
Konstantin Dinev
committed
chore(*): package updates and small fixes
1 parent fcbf95e commit 2bd7bf3

6 files changed

Lines changed: 100 additions & 33 deletions

File tree

package-lock.json

Lines changed: 81 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@
7272
"file-saver": "^2.0.2",
7373
"hammerjs": "^2.0.8",
7474
"igniteui-angular": "^19.1.0",
75-
"igniteui-angular-charts": "^19.0.0",
76-
"igniteui-angular-core": "^19.0.0",
75+
"igniteui-angular-charts": "^19.0.1",
76+
"igniteui-angular-core": "^19.0.1",
7777
"igniteui-angular-extras": "^19.1.2",
7878
"igniteui-angular-i18n": "^19.1.0",
7979
"igniteui-dockmanager": "^1.16.0",
8080
"igniteui-live-editing": "^3.0.0",
81-
"igniteui-webcomponents": "^5.2.3",
81+
"igniteui-webcomponents": "^5.2.4",
8282
"minireset.css": "0.0.6",
83-
"rxjs": "^7.8.1",
83+
"rxjs": "^7.8.2",
8484
"tslib": "^2.6.1",
8585
"zone.js": "~0.15.0"
8686
},
@@ -140,4 +140,4 @@
140140
"typescript": "5.6.3",
141141
"webpack-bundle-analyzer": "^4.10.0"
142142
}
143-
}
143+
}

projects/app-crm/src/app/app.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component, Inject, OnInit } from '@angular/core';
22
import { SEOService } from '../../../app-lob/src/app/seo.service';
33
import { RouterOutlet } from '@angular/router';
4+
import { DOCUMENT } from '@angular/common';
45

56
@Component({
67
selector: 'app-root',
@@ -13,10 +14,10 @@ export class AppComponent implements OnInit {
1314
// eslint-disable-next-line max-len
1415
private metaDesc = 'In this angular grid example, you can see how users can customize their data view by leveraging the various features built into the grid.';
1516

16-
constructor(private seoService: SEOService) { }
17+
constructor(private seoService: SEOService, @Inject(DOCUMENT) private document: Document) { }
1718

1819
public ngOnInit() {
19-
this.seoService.updateHeadProperties(this.title, this.metaDesc, window.location.href);
20+
this.seoService.updateHeadProperties(this.title, this.metaDesc, this.document.defaultView.location.href);
2021
}
2122
}
2223

projects/app-lob/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class AppComponent implements OnInit {
3131
)
3232
.subscribe((event) => {
3333
this.seoService.updateHeadProperties(event.snapshot.data['title'] ?? event.parent.snapshot.data['title'],
34-
event.snapshot.data['title'] ?? event.parent.snapshot.data['description'], window.location.href);
34+
event.snapshot.data['title'] ?? event.parent.snapshot.data['description'], this.document.defaultView.location.href);
3535
});
3636
this.createThemeStyle();
3737
}
@@ -42,7 +42,7 @@ export class AppComponent implements OnInit {
4242
if (e.origin === e.data.origin && typeof e.data.themeStyle === 'string') {
4343
this.styleElem.textContent = e.data.themeStyle;
4444

45-
const typeface = window.getComputedStyle(this.document.body).fontFamily.replace(/[\'\"]/g, '');
45+
const typeface = this.document.defaultView.getComputedStyle(this.document.body).fontFamily.replace(/[\'\"]/g, '');
4646
if (!(typeface.match(/,/g) || []).length &&
4747
!this.typefacesLoaded.includes(typeface)) {
4848
this.typefacesLoaded.push(typeface);

projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class DataAnalysisDockManagerComponent implements OnInit, AfterViewInit
103103
chart.indexOf('Bar') === -1 ||
104104
chart !== CHART_TYPE.PIE)
105105
.forEach(chart => this.chartIntegration.setChartComponentOptions(chart, OPTIONS_TYPE.X_AXIS, { labelAngle: 30 }));
106-
106+
107107
this.chartIntegration.onChartTypesDetermined.subscribe((args: IDeterminedChartTypesArgs) => {
108108
if (args.chartsAvailability.size === 0 || args.chartsForCreation.length === 0) {
109109
this.chartIntegration.disableCharts(this.allCharts);
@@ -121,10 +121,16 @@ export class DataAnalysisDockManagerComponent implements OnInit, AfterViewInit
121121
this.cdr.detectChanges();
122122

123123
this.grid.rangeSelected.subscribe(range => {
124+
this.grid.columns.forEach((column) => {
125+
if (column.selected) {
126+
column.selected = false;
127+
}
128+
});
124129
this.createChartCommonLogic();
125130
});
126131

127132
this.grid.columnSelectionChanging.pipe(debounceTime(100)).subscribe((args: IColumnSelectionEventArgs) => {
133+
this.grid.clearCellSelection();
128134
this.createChartCommonLogic();
129135
});
130136
}

projects/app-lob/src/app/index/docs-layout.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class DocsLayoutComponent implements OnInit {
2222
if (e.origin === e.data.origin && typeof e.data.themeStyle === 'string') {
2323
this.styleElem.textContent = e.data.themeStyle;
2424

25-
const typeface = window.getComputedStyle(this.document.body).fontFamily.replace(/\'/g, '');
25+
const typeface = this.document.defaultView.getComputedStyle(this.document.body).fontFamily.replace(/\'/g, '');
2626
if (!(typeface.match(/,/g) || []).length &&
2727
!this.typefacesLoaded.includes(typeface)) {
2828
this.typefacesLoaded.push(typeface);

0 commit comments

Comments
 (0)