Skip to content

Commit

Permalink
refactor(grid/tGrid/hGrid): update paths to header image
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofdiamond5 committed Sep 13, 2019
1 parent 032a990 commit 44d018c
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 42 deletions.
16 changes: 7 additions & 9 deletions live-editing/configs/GridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ import { GridCustomFilteringComponent } from "../../src/app/grid/grid-custom-fil
import {
GridCustomKBNavigationComponent
} from "../../src/app/grid/grid-custom-kb-navigation/grid-custom-kb-navigation-sample.component";
import { GridCustomSummariesSelection } from "../../src/app/grid/grid-custom-summaries-selection/grid-custom-summaries-selection.component";
import { SummariesData } from "../../src/app/grid/grid-custom-summaries-selection/summaries-data/summaries-data.component";
import {
GridCustomSummariesSelection
} from "../../src/app/grid/grid-custom-summaries-selection/grid-custom-summaries-selection.component";
Expand All @@ -79,6 +77,10 @@ import { GridEditingSampleComponent } from "../../src/app/grid/grid-editing-samp
import {
GridEditingStyleSample
} from "../../src/app/grid/grid-editing-style-sample/grid-editing-style-sample.component";
import {
GridExcelStyleFilteringLoadOnDemandComponent
} from "../../src/app/grid/grid-excel-style-filtering-load-on-demand/grid-excel-style-filtering-load-on-demand.component";
import { RemoteValuesService } from "../../src/app/grid/grid-excel-style-filtering-load-on-demand/remoteValues.service";
import {
ExcelStyleFilteringSample1Component
} from "../../src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component";
Expand All @@ -91,9 +93,6 @@ import {
import {
ExcelStyleFilteringStyleComponent
} from "../../src/app/grid/grid-excel-style-filtering-style/grid-excel-style-filtering-style.component";
import {
GridExcelStyleFilteringLoadOnDemandComponent
} from "../../src/app/grid/grid-excel-style-filtering-load-on-demand/grid-excel-style-filtering-load-on-demand.component";
import { FilteringSampleComponent } from "../../src/app/grid/grid-filtering-sample/grid-filtering-sample.component";
import { GridFilteringStyleComponent } from "../../src/app/grid/grid-filtering-style/grid-filtering-style.component";
import {
Expand Down Expand Up @@ -186,7 +185,6 @@ import { DataService } from "../../src/app/grid/services/data.service";
import { RemoteFilteringService } from "../../src/app/grid/services/remoteFilteringService";
import { RemotePagingService } from "../../src/app/grid/services/remotePagingService";
import { RemoteServiceVirt } from "../../src/app/grid/services/remoteService";
import { RemoteValuesService } from "../../src/app/grid/grid-excel-style-filtering-load-on-demand/remoteValues.service";
import { AppModuleConfig } from "./core/AppModuleConfig";
import { Config } from "./core/Config";
import { IConfigGenerator } from "./core/IConfigGenerator";
Expand Down Expand Up @@ -364,11 +362,11 @@ export class GridConfigGenerator implements IConfigGenerator {
configs.push(new Config({
component: GridSelectionTemplateNumbersComponent,
additionalFiles: [
"/src/app/data/customers.ts",
"src/assets/images/card/avatars/igLogo.png"
"/src/app/data/customers.ts"
],
appModuleConfig: new AppModuleConfig({
imports: [IgxCheckboxModule, IgxGridModule, GridSelectionTemplateNumbersComponent],
imports: [IgxCheckboxModule, IgxGridModule,
GridSelectionTemplateNumbersComponent],
ngDeclarations: [GridSelectionTemplateNumbersComponent],
ngImports: [IgxCheckboxModule, IgxGridModule],
ngProviders: []
Expand Down
9 changes: 4 additions & 5 deletions live-editing/configs/HierarchicalGridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { HGridEditingEventsComponent } from "../../src/app/hierarchical-grid/hie
import { HGridEditingStyleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-editing-style/hierarchical-grid-editing-style.component";
import { HGridEditingSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-editing/hierarchical-grid-editing.component";
import { HierarchicalGridExcelStyleFilteringLoadOnDemandComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component";
import { RemoteValuesService } from "../../src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/remoteValues.service";
import {
HGridExcelStyleFilteringSample1Component
} from "../../src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component";
Expand Down Expand Up @@ -66,23 +67,22 @@ import { HGridDragSampleComponent } from "../../src/app/hierarchical-grid/hierar
import { HGridRowEditStyleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-row-edit-style/hierarchical-grid-row-edit-style.component";
import { HGridRowEditingSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-row-editing/hierarchical-grid-row-editing.component";
import { HGridRowReorderComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-row-reorder/hierarchical-grid-row-reorder.component";
import { HGridSelectionTemplateNumbersSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-selection-template-numbers/hierarchical-grid-selection-template-numbers.component"
import { HGridSelectionSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-selection/hierarchical-grid-selection.component";
import { HGridSortingStylingComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-sorting-styling/hierarchical-grid-sorting-styling.component";
import { HGridContextmenuComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-sorting/hgrid-contextmenu/hgrid-contextmenu.component";
import { HGridSortingSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-sorting/hierarchical-grid-sorting.component";
import { HGridStylingComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-styling/hierarchical-grid-styling.component";
import { HGridSummaryStylingComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-summary-styling/hierarchical-grid-summary-styling.component";
import { HGridSummarySampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-summary/hierarchical-grid-summary.component";
import { HierarchicalGridToolbarStyleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar-style/hierarchical-grid-toolbar-style.component";
import { HGridToolbarCustomSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-custom.component";
import { HGridToolbarOptionsSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-options.component";
import { HGridToolbarTitleSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-title.component";
import { HGridSelectionTemplateNumbersSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-selection-template-numbers/hierarchical-grid-selection-template-numbers.component"
import { RemoteLoDService } from "../../src/app/hierarchical-grid/services/remote-lod.service";
import { RemoteValuesService } from "../../src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/remoteValues.service";
import { AppModuleConfig } from "./core/AppModuleConfig";
import { Config } from "./core/Config";
import { IConfigGenerator } from "./core/IConfigGenerator";
import { HGridStylingComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-styling/hierarchical-grid-styling.component";

export class HierarchicalGridConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
Expand Down Expand Up @@ -581,8 +581,7 @@ export class HierarchicalGridConfigGenerator implements IConfigGenerator {

configs.push(new Config({
additionalFiles: [
"/src/app/hierarchical-grid/data.ts",
"src/assets/images/card/avatars/igLogo.png"
"/src/app/hierarchical-grid/data.ts"
],
appModuleConfig: new AppModuleConfig({
imports: [IgxCheckboxModule, IgxHierarchicalGridModule, HGridSelectionTemplateNumbersSampleComponent],
Expand Down
9 changes: 4 additions & 5 deletions live-editing/configs/TreeGridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ import { TreeGridDisplaydensitySampleComponent } from "../../src/app/tree-grid/t
import { TreeGridEditingEventsComponent } from "../../src/app/tree-grid/tree-grid-editing-events/tree-grid-editing-events.component";
import { TreeGridEditingSampleComponent } from "../../src/app/tree-grid/tree-grid-editing-sample/tree-grid-editing-sample.component";
import { TreeGridEditingStyleComponent } from "../../src/app/tree-grid/tree-grid-editing-style/tree-grid-editing-sample.component";
import { TreeGridExcelStyleFilteringLoadOnDemandComponent } from '../../src/app/tree-grid/tree-grid-excel-style-filtering-load-on-demand/tree-grid-excel-style-filtering-load-on-demand.component';
import { RemoteValuesService } from "../../src/app/tree-grid/tree-grid-excel-style-filtering-load-on-demand/remoteValues.service";
import { TreeGridExcelStyleFilteringLoadOnDemandComponent } from "../../src/app/tree-grid/tree-grid-excel-style-filtering-load-on-demand/tree-grid-excel-style-filtering-load-on-demand.component";
import {
TreeGridExcelStyleFilteringSample1Component
} from "../../src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component";
Expand Down Expand Up @@ -78,6 +79,7 @@ import { TreeGridRowEditSampleComponent } from "../../src/app/tree-grid/tree-gri
import { TreeGridRowReorderComponent } from "../../src/app/tree-grid/tree-grid-row-reorder/tree-grid-row-reorder.component";
import { TreeGridSearchSampleComponent } from "../../src/app/tree-grid/tree-grid-search-sample/tree-grid-search-sample.component";
import { TreeGridSelectionSampleComponent } from "../../src/app/tree-grid/tree-grid-selection-sample/tree-grid-selection-sample.component";
import { TreeGridSelectionTemplateNumbersSampleComponent } from "../../src/app/tree-grid/tree-grid-selection-template-numbers/tree-grid-selection-template-numbers.component";
import { TreeGridContextmenuComponent } from "../../src/app/tree-grid/tree-grid-sorting-sample/tree-grid-contextmenu/tree-grid-contextmenu.component";
import { TreeGridSortingSampleComponent } from "../../src/app/tree-grid/tree-grid-sorting-sample/tree-grid-sorting-sample.component";
import { TreeGridSortingStylingComponent } from "../../src/app/tree-grid/tree-grid-sorting-styling/tree-grid-sorting-styling.component";
Expand All @@ -90,8 +92,6 @@ import { TreeGridToolbarSample3Component } from "../../src/app/tree-grid/tree-gr
import { TreeGridToolbarSample4Component } from "../../src/app/tree-grid/tree-grid-toolbar-sample-4/tree-grid-toolbar-sample-4.component";
import { TreeGridToolbarStyleComponent } from "../../src/app/tree-grid/tree-grid-toolbar-style/tree-grid-toolbar-style.component";
import { TreeGridVirtualizationSampleComponent } from "../../src/app/tree-grid/tree-grid-virtualization-sample/tree-grid-virtualization-sample.component";
import { TreeGridSelectionTemplateNumbersSampleComponent } from "../../src/app/tree-grid/tree-grid-selection-template-numbers/tree-grid-selection-template-numbers.component";
import { RemoteValuesService } from '../../src/app/tree-grid/tree-grid-excel-style-filtering-load-on-demand/remoteValues.service';
import { AppModuleConfig } from "./core/AppModuleConfig";
import { Config } from "./core/Config";
import { IConfigGenerator } from "./core/IConfigGenerator";
Expand Down Expand Up @@ -794,8 +794,7 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
// TreeGrid Row Selectors Template - Numbers
configs.push(new Config({
additionalFiles: [
"/src/app/tree-grid/data/employees-flat.ts",
"src/assets/images/card/avatars/igLogo.png"
"/src/app/tree-grid/data/employees-flat.ts"
],
appModuleConfig: new AppModuleConfig({
imports: [IgxCheckboxModule, IgxTreeGridModule, TreeGridSelectionTemplateNumbersSampleComponent],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ng-template igxHeadSelector>
<div class="header-selector">
<img src="..\..\..\assets\images\card\avatars\igLogo.png" class="header-image">
<img src="assets\images\card\avatars\igLogo.png" class="header-image">
</div>
</ng-template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,5 @@ export class GridSelectionTemplateNumbersComponent {

constructor() {
this.data = [...DATA];
// add more rows to data
for (let i = 0; i < 1000; i += 1) {
this.data.push(this.generateDataItem(i));
}
}

private generateDataItem(i: number) {
return {
ID: ("0000" + this.data.length).slice(-5),
CompanyName: `Company ${i}`,
ContactName: `Contact ${i}`,
ContactTitle: "Owner",
Address: `Address ${i}`,
City: `City ${i}`,
Region: null,
PostalCode: ("0000" + i).slice(-5),
Country: "Spain",
Phone: "-",
Fax: "-"
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<ng-template igxHeadSelector>
<div class="header-selector">
<img src="..\..\..\assets\images\card\avatars\igLogo.png" class="header-image">
<img src="assets\images\card\avatars\igLogo.png" class="header-image">
</div>
</ng-template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ng-template igxHeadSelector>
<div class="header-selector">
<img src="..\..\..\assets\images\card\avatars\igLogo.png" class="header-image">
<img src="assets\images\card\avatars\igLogo.png" class="header-image">
</div>
</ng-template>

Expand Down

0 comments on commit 44d018c

Please sign in to comment.