Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dv packages with v19; standalone false for legacy components #1365

Merged
merged 6 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
"@types/jasmine": "^5.1.4",
"@types/minimatch": "^5.1.2",
"@types/node": "^22.5.5",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"coveralls-next": "^4.2.1",
"browser-sync": "^3.0.3",
"eslint": "^8.57.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.46.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"jsdom": "^22.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@open-wc/testing": "^4.0.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.0.1",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"@web/dev-server": "^0.4.6",
"@web/rollup-plugin-html": "^2.3.0",
"@web/rollup-plugin-import-meta-assets": "^1.0.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@open-wc/testing": "^4.0.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.0.1",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"@web/dev-server": "^0.4.6",
"@web/rollup-plugin-html": "^2.3.0",
"@web/rollup-plugin-import-meta-assets": "^1.0.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {
public singleBranchExpand = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Towns } from './towns-data';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {
public towns: string[];
Expand All @@ -15,7 +16,7 @@ export class <%=ClassName%>Component {
}
}

@Pipe({ name: '<%=camelCaseName%>StartsWith' })
@Pipe({ name: '<%=camelCaseName%>StartsWith', standalone: false })
export class <%=ClassName%>PipeStartsWith implements PipeTransform {
public transform(collection: string[], term = '') {
return collection.filter(item => item.toLowerCase().startsWith(term.trim().toLowerCase()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Region, Town, townsExtended } from './towns-data-extended';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {
public regions!: Region[];
Expand Down Expand Up @@ -35,14 +36,14 @@ export class <%=ClassName%>Component {
}
}

@Pipe({ name: '<%=camelCaseName%>StartsWith' })
@Pipe({ name: '<%=camelCaseName%>StartsWith', standalone: false })
export class <%=ClassName%>PipeStartsWith implements PipeTransform {
public transform(collection: Town[], term = '') {
return collection.filter(item => item.name.toLowerCase().startsWith(term.trim().toLowerCase()));
}
}

@Pipe({ name: '<%=camelCaseName%>RegionContains' })
@Pipe({ name: '<%=camelCaseName%>RegionContains', standalone: false })
export class <%=ClassName%>RegionContains implements PipeTransform {
transform(regions: Region[], term = '') {
return this.filterRegions(regions, term);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { IgxBulletGraphComponent, IgxLinearGraphRangeComponent } from 'igniteui-
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
encapsulation: ViewEncapsulation.None
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class <%=ClassName%>Component implements AfterViewInit {
@ViewChild('bulletGraph', { static: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IgxBulletGraphTemplate extends IgniteUIForAngularTemplate {
import: ["IgxBulletGraphModule"],
from: "igniteui-angular-gauges"
}];
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-gauges@~18.0.0"];
this.packages = ["igniteui-angular-core@~19.0.0", "igniteui-angular-gauges@~19.0.0"];
}
}
module.exports = new IgxBulletGraphTemplate();
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Component, ViewEncapsulation } from '@angular/core';
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
encapsulation: ViewEncapsulation.None
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class <%=ClassName%>Component { }
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { CategoryChartType } from 'igniteui-angular-charts';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {
public chartType = CategoryChartType.Auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IgxCategoryChartTemplate extends IgniteUIForAngularTemplate {
{ import: "IgxCategoryChartModule", from: "igniteui-angular-charts" },
{ import: "FormsModule", from: "@angular/forms" }
];
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
this.packages = ["igniteui-angular-core@~19.0.0", "igniteui-angular-charts@~19.0.0"];
}
}
module.exports = new IgxCategoryChartTemplate();
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ interface NamedEntry {
@Component({
selector: 'app-<%=filePrefix%>',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.component.html'
templateUrl: './<%=filePrefix%>.component.html',
standalone: false
})

export class <%=ClassName%>Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { localData, State } from './local-data';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})

export class <%=ClassName%>Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import { Athlete, AthletesData, SpeedEntry } from './services/data';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit, OnDestroy, AfterViewInit {
@ViewChild('grid1', { read: IgxGridComponent, static: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IgxGridAwesomeTemplate extends IgniteUIForAngularTemplate {
},
{ import: "FormsModule", from: "@angular/forms" }
];
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
this.packages = ["igniteui-angular-core@~19.0.0", "igniteui-angular-charts@~19.0.0"];
}
}
module.exports = new IgxGridAwesomeTemplate();
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import { DATA, DealsDescriptor, Employee } from './data';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit, AfterViewInit {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IgxGridCRMTemplate extends IgniteUIForAngularTemplate {
},
{ import: "FormsModule", from: "@angular/forms" }
];
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
this.packages = ["igniteui-angular-core@~19.0.0", "igniteui-angular-charts@~19.0.0"];
}
}
module.exports = new IgxGridCRMTemplate();
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import { Contract, REGIONS } from './localData/financialData';
providers: [LocalDataService],
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy {
@ViewChild('grid1', { static: true }) public grid1!: IgxGridComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class IgxFinTechGridTemplate extends IgniteUIForAngularTemplate {
},
{ import: "FormsModule", from: "@angular/forms" }
];
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
this.packages = ["igniteui-angular-core@~19.0.0", "igniteui-angular-charts@~19.0.0"];
}
}
module.exports = new IgxFinTechGridTemplate();
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import { ITreeGridAggregation } from './tree-grid-grouping.pipe';
providers: [LocalDataService],
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy {
@ViewChild('grid1', { static: true }) public grid1!: IgxTreeGridComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export class ITreeGridAggregation {

@Pipe({
name: 'treeGridGrouping',
pure: true
pure: true,
standalone: false
})
export class <%=ClassName%>TreeGridGroupingPipe implements PipeTransform {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { FormBuilder, Validators, FormGroup } from '@angular/forms';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})

export class <%=ClassName%>Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { data as weatherData } from './weather-data';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Component, ViewEncapsulation } from '@angular/core';
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
encapsulation: ViewEncapsulation.Emulated,
standalone: false
})
export class <%=ClassName%>Component {
public today: Date = new Date(Date.now());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { IDialogEventArgs } from '<%=igxPackage%>';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})

export class <%=ClassName%>Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Country, data } from './local-data';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})

export class <%=ClassName%>Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { AMZNData, Stock } from './data';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {
public data: Stock[] = AMZNData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class IgxFinancialChartTemplate extends IgniteUIForAngularTemplate {
this.dependencies = [
{ import: "IgxFinancialChartModule", from: "igniteui-angular-charts" }
];
this.packages = ["igniteui-angular-core@~18.0.0", "igniteui-angular-charts@~18.0.0"];
this.packages = ["igniteui-angular-core@~19.0.0", "igniteui-angular-charts@~19.0.0"];
}
}
module.exports = new IgxFinancialChartTemplate();
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Component } from '@angular/core';
selector: "<%=filePrefix%>",
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component {
title = '<%=name%>';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Employee, employeesData } from './localData';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit {
public localData: Employee[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { data, Product } from './data';
@Component({
selector: 'app-<%=filePrefix%>',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.component.html'
templateUrl: './<%=filePrefix%>.component.html',
standalone: false
})
export class <%=ClassName%>Component implements OnInit {
@ViewChild('gridRowEditTransaction', { static: true, read: IgxGridComponent }) public grid!: IgxGridComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Employee, employeesData } from './localData';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit {
public localData: Employee[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { Employee, employeesData } from './localData';
encapsulation: ViewEncapsulation.None,
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit {
@ViewChild('sampleGrid', { static: true, read: IgxGridComponent })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Company, localData } from './localData';
@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss']
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: false
})
export class <%=ClassName%>Component implements OnInit {
public localData: Company[] = [];
Expand Down
Loading
Loading