Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class <%=ClassName%>Component implements OnInit {
public interval = 3000;
public pause = true;
public loop = true;
constructor() { }

public ngOnInit() {
this.addNewSlide();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export class <%=ClassName%>Component implements OnInit, OnDestroy, AfterViewInit
public overlaySettings!: OverlaySettings;
public winner: Athlete = { Avatar: '', Name: '' } as Athlete;
public top3: Athlete[] = [];
private _live: boolean = true;
private _live = true;
private _timer: any;
private windowWidth: any;
private _overlayId: string = '';
private _overlayId = '';

get live(): boolean {
return this._live;
Expand Down Expand Up @@ -127,7 +127,7 @@ export class <%=ClassName%>Component implements OnInit, OnDestroy, AfterViewInit
this.localData.forEach(rec => this.getSpeed(rec));
this.windowWidth = window.innerWidth;
this._timer = setInterval(() => this.ticker(), 1500);
this.overlayService.closing.subscribe((event: OverlayClosingEventArgs) => {
this.overlayService.closing.subscribe(() => {
this.showOverlay = false;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit {
public soonSummary = SoonSummary;

public cols!: QueryList<ColumnType>;
public hiddenColsLength: number = 0;
public pinnedColsLength: number = 0;
public hiddenColsLength = 0;
public pinnedColsLength = 0;

public searchText = '';
public caseSensitive = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export interface Employee {
tags: string;
}

/* tslint:disable */
export const DATA: Employee[] = [
{ "id": 256286239, "avatar": "assets/images/men/43.jpg", "name": "Gawain Beadnall", "email": "gbeadnall0@etsy.com", "company": "Divanoodle", "position": "Statistician I", "work_phone": "+1-317-866-4381", "mobile_phone": "+1-203-937-3567", "fax": "+1-212-115-1790", "street": "47 Garrison Park", "city": "Indianapolis", "post_code": 46207, "state": "IN", "country": "United States", "referred_by": "Vyky Corwin", "created_on": new Date("12/8/2017"), "birthday": new Date("2/10/2002"), "last_activity": new Date("12/16/2017"), "next_activity": new Date("4/16/2019"), "deals_won": 5, "deals_lost": 13, "deals_pending": 7, "deals_total": 25, "ratio": 28, "estimated_sales": 686210, "actual_sales": 421105, "tags": "warm, engineering" },
{ "id": 863241310, "avatar": "assets/images/women/40.jpg", "name": "Ivy Simkovich", "email": "isimkovich1@clickbank.net", "company": "Linktype", "position": "Research Nurse", "work_phone": "+1-770-283-2050", "mobile_phone": "+1-509-995-2578", "fax": "+1-907-491-2187", "street": "3 Aberg Street", "city": "Marietta", "post_code": 30061, "state": "GA", "country": "United States", "referred_by": "Hew Chung", "created_on": new Date("6/24/2017"), "birthday": new Date("1/1/1997"), "last_activity": new Date("7/15/2017"), "next_activity": new Date("6/15/2019"), "deals_won": 2, "deals_lost": 4, "deals_pending": 29, "deals_total": 35, "ratio": 33, "estimated_sales": 2008801, "actual_sales": 186592, "tags": "demo, medical" },
Expand Down Expand Up @@ -487,4 +486,3 @@ export const DATA: Employee[] = [
{ "id": 75323534, "avatar": "assets/images/women/52.jpg", "name": "Lorena Mousdall", "email": "lmousdallcn@elegantthemes.com", "company": "Aimbo", "position": "Geologist III", "work_phone": "+1-720-341-5046", "mobile_phone": "+1-916-195-7584", "fax": "+1-215-624-1834", "street": "12 Melby Place", "city": "Denver", "post_code": 80241, "state": "CO", "country": "United States", "referred_by": "Carmina Tomaszek", "created_on": new Date("3/13/2017"), "birthday": new Date("9/13/1978"), "last_activity": new Date("3/24/2017"), "next_activity": new Date("10/24/2018"), "deals_won": 14, "deals_lost": 11, "deals_pending": 2, "deals_total": 27, "ratio": 56, "estimated_sales": 300438, "actual_sales": 1338988, "tags": "cool, engineering" },
{ "id": 46063202, "avatar": "assets/images/women/71.jpg", "name": "Gayle St Pierre", "email": "gstco@cargocollective.com", "company": "Trupe", "position": "VP Accounting", "work_phone": "+1-530-168-6924", "mobile_phone": "+1-646-366-5359", "fax": "+1-757-548-1834", "street": "48 Veith Junction", "city": "Chico", "post_code": 95973, "state": "CA", "country": "United States", "referred_by": "Lynda Drinan", "created_on": new Date("3/26/2017"), "birthday": new Date("3/10/1971"), "last_activity": new Date("4/17/2017"), "next_activity": new Date("10/17/2018"), "deals_won": 13, "deals_lost": 14, "deals_pending": 9, "deals_total": 36, "ratio": 48, "estimated_sales": 1716966, "actual_sales": 668928, "tags": "cold, medical" },
{ "id": 743401827, "avatar": "assets/images/women/56.jpg", "name": "Romy Giacomelli", "email": "rgiacomellicp@ezinearticles.com", "company": "Eimbee", "position": "Cost Accountant", "work_phone": "+1-719-646-0552", "mobile_phone": "+1-203-707-2786", "fax": "+1-214-685-1141", "street": "952 Springs Alley", "city": "Colorado Springs", "post_code": 80915, "state": "CO", "country": "United States", "referred_by": "Alanna Begg", "created_on": new Date("11/18/2017"), "birthday": new Date("10/16/1982"), "last_activity": new Date("12/2/2017"), "next_activity": new Date("2/2/2018"), "deals_won": 5, "deals_lost": 13, "deals_pending": 8, "deals_total": 26, "ratio": 28, "estimated_sales": 1423424, "actual_sales": 949815, "tags": "subscriber, construction" }];
/* tslint:enable */
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
@ViewChild('chart1', { static: true }) public chart1!: IgxCategoryChartComponent;
@ViewChild('dialog', { static: true }) public dialog!: IgxDialogComponent;

public showToolbar: boolean = false;
public showToolbar = false;
public properties: string[] = [];
public selectionMode: GridSelectionMode = 'multiple';
public chartType = CategoryChartType;
public theme: boolean = false;
public volume: number = 1000;
public frequency: number = 500;
public theme = false;
public volume = 1000;
public frequency = 500;
public data: any[] = [];
public chartData: any[] = [];
public multiCellSelection: { data: any[] } = { data: [] };
Expand Down Expand Up @@ -133,7 +133,7 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
public contracts = Contract;
public regions = REGIONS;
private subscription: any;
private selectedButton: number = -1;
private selectedButton = -1;
private timer: any;
private volumeChanged: any;
constructor(
Expand Down Expand Up @@ -166,7 +166,7 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
];
this.volumeChanged = this.volumeSlider.valueChange.pipe(debounce(() => timer(200)));
this.volumeChanged.subscribe(
(x: any) => {
() => {
this.localService.getData(this.volume);
},
(err: string) => console.log('Error: ' + err));
Expand Down Expand Up @@ -364,11 +364,10 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
private strongPositive = (rowData: any): boolean => {
return rowData['Change(%)'] >= 1;
}
private strongNegative = (rowData: any, key: string): boolean => {
private strongNegative = (rowData: any): boolean => {
return rowData['Change(%)'] <= -1;
}

// tslint:disable:member-ordering
public trends = {
changeNeg: this.changeNegative,
changePos: this.changePositive,
Expand Down Expand Up @@ -431,8 +430,6 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
}
}

// tslint:enable:member-ordering

private disableOtherButtons(ind: number, disableButtons: boolean): void {
if (this.subscription) {
this.subscription.unsubscribe();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* tslint:disable */
export const REGIONS: any[] = [
{
"Region": "North America",
Expand Down Expand Up @@ -48,7 +47,6 @@ export const MOCKFINANCEDATA: any[] = [
"IndSect": "Consumer, Cyclical",
"IndSubg": "Airlines",
"SecType": "PUBLIC",
// tslint:disable-next-line:object-literal-sort-keys
"CpnTyp": "FIXED",
"IssuerN": "AMERICAN AIRLINES GROUP",
"Moodys": "WR",
Expand Down Expand Up @@ -887,7 +885,6 @@ interface IResponse {
data: any[];
recordsUpdated: number;
}
/* tslint:enable */
export class FinancialData {
public generateData(count: number): any[] {
const currData = [];
Expand All @@ -900,9 +897,6 @@ export class FinancialData {
const region = REGIONS[this.generateRandomNumber(0, 5)];
dataObj.Region = region.Region;
dataObj.Country = this.randomizeCountry(region);
// for (let y = 0; y < 80; y++) {
// dataObj["Text" + y] = "Text";
// }

for (const mockData of MOCKFINANCEDATA) {
for (const prop in mockData) {
Expand Down Expand Up @@ -930,12 +924,10 @@ export class FinancialData {

public updateRandomPrices(data: any[]): any {
const currData = data.slice(0, data.length + 1);
let y = 0;
for (let i = Math.round(Math.random() * 10); i < data.length; i += Math.round(Math.random() * 10)) {
const dataObj = Object.assign({}, data[i]);
this.randomizeObjectData(dataObj);
currData[i] = dataObj;
y++;
}
// return {data: currData, recordsUpdated: y };
return currData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
@ViewChild('slider1', { static: true }) public volumeSlider!: IgxSliderComponent;
@ViewChild('slider2', { static: true }) public intervalSlider!: IgxSliderComponent;

public showToolbar: boolean = true;
public showToolbar = true;
public selectionMode: GridSelectionMode = 'multiple';
public theme: boolean = false;
public volume: number = 1000;
public frequency: number = 500;
public theme = false;
public volume = 1000;
public frequency = 500;
public data: any[] = [];
public controls = [
{
Expand Down Expand Up @@ -111,7 +111,7 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
field: 'Price'
},
{
aggregate: (parent: any, data: any[]) => {
aggregate: (parent: any) => {
return parent.Change / (parent.Price - parent.Change) * 100;
},
field: 'Change(%)'
Expand All @@ -137,7 +137,7 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
};

private subscription: any;
private selectedButton: number = -1;
private selectedButton = -1;
private timer: any;
private volumeChanged: any;

Expand All @@ -150,7 +150,7 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
this.grid1.sortingExpressions = [{ fieldName: this.groupColumnKey, dir: SortingDirection.Desc }];
this.volumeChanged = this.volumeSlider.valueChange.pipe(debounce(() => timer(200)));
this.volumeChanged.subscribe(
(x: any) => {
() => {
this.localService.getData(this.volume);
},
(err: string) => console.log('Error: ' + err));
Expand Down Expand Up @@ -241,11 +241,10 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
private strongPositive = (rowData: any): boolean => {
return rowData['Change(%)'] >= 1;
}
private strongNegative = (rowData: any, key: string): boolean => {
private strongNegative = (rowData: any): boolean => {
return rowData['Change(%)'] <= -1;
}

// tslint:disable:member-ordering
public trends = {
changeNeg: this.changeNegative,
changePos: this.changePositive,
Expand All @@ -261,7 +260,6 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
strongNegative2: this.strongNegative,
strongPositive2: this.strongPositive
};
// tslint:enable:member-ordering

private disableOtherButtons(ind: number, disableButtons: boolean): void {
if (this.subscription) {
Expand Down Expand Up @@ -308,10 +306,8 @@ export class <%=ClassName%>Component implements OnInit, AfterViewInit, OnDestroy
*/
private updateRandomPrices(data: any[]): any {
const newData = data.slice();
let y = 0;
for (let i = Math.round(Math.random() * 10); i < newData.length; i += Math.round(Math.random() * 10)) {
this.randomizeObjectData(newData[i]);
y++;
}
return newData;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* tslint:disable */
export const REGIONS: any[] = [
{
"Region": "North America",
Expand Down Expand Up @@ -48,7 +47,6 @@ export const MOCKFINANCEDATA: any[] = [
"IndSect": "Consumer, Cyclical",
"IndSubg": "Airlines",
"SecType": "PUBLIC",
// tslint:disable-next-line:object-literal-sort-keys
"CpnTyp": "FIXED",
"IssuerN": "AMERICAN AIRLINES GROUP",
"Moodys": "WR",
Expand Down Expand Up @@ -887,7 +885,6 @@ interface IResponse {
data: any[];
recordsUpdated: number;
}
/* tslint:enable */
export class FinancialData {
public generateData(count: number): any[] {
const currData = [];
Expand All @@ -900,9 +897,6 @@ export class FinancialData {
const region = REGIONS[this.generateRandomNumber(0, 5)];
dataObj.Region = region.Region;
dataObj.Country = this.randomizeCountry(region);
// for (let y = 0; y < 80; y++) {
// dataObj["Text" + y] = "Text";
// }

for (const mockData of MOCKFINANCEDATA) {
for (const prop in mockData) {
Expand Down Expand Up @@ -930,12 +924,10 @@ export class FinancialData {

public updateRandomPrices(data: any[]): any {
const currData = data.slice(0, data.length + 1);
let y = 0;
for (let i = Math.round(Math.random() * 10); i < data.length; i += Math.round(Math.random() * 10)) {
const dataObj = Object.assign({}, data[i]);
this.randomizeObjectData(dataObj);
currData[i] = dataObj;
y++;
}
// return {data: currData, recordsUpdated: y };
return currData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class <%=ClassName%>Component {
}

tryLogin() {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const loginInfo = this.loginForm.value;
// use loginInfo
this.showLogin = false;
Expand All @@ -72,6 +73,7 @@ export class <%=ClassName%>Component {
}

tryRegister() {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const registerInfo = this.registrationForm.value;
// use registerInfo
this.showRegister = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// tslint:disable:object-literal-sort-keys
export const data = {
city: 'Sofia',
humidity: '44%',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ import { Component } from '@angular/core';
})
export class <%=ClassName%>Component {
title = '<%=name%>';
constructor() { }
}
1 change: 0 additions & 1 deletion packages/igx-templates/igx-ts/grid/grid-custom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class IgxCustomGridTemplate extends IgniteUIForAngularTemplate {
const featureUrl = "https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/";
const anchorWrapper = {
start: `<a href="`,
// tslint:disable-next-line:object-literal-sort-keys
href: ``,
middle: `" target="_blank">`,
text: ``,
Expand Down
Loading
Loading