Skip to content
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
6 changes: 6 additions & 0 deletions packages/cli/templates/webcomponents/igc-ts/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE = "igniteui-webcomponents-core@~7.0.0";
export const IGNITEUI_WEBCOMPONENTS_CHARTS_PACKAGE = "igniteui-webcomponents-charts@~7.0.0";
export const IGNITEUI_WEBCOMPONENTS_GAUGES_PACKAGE = "igniteui-webcomponents-gauges@~7.0.0";
export const IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE = "igniteui-webcomponents-grids@~7.2.1";
export const IGNITEUI_WEBCOMPONENTS_INPUTS_PACKAGE = "igniteui-webcomponents-inputs@~7.0.0";
export const IGNITEUI_WEBCOMPONENTS_LAYOUTS_PACKAGE = "igniteui-webcomponents-layouts@~7.0.0";
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_CHARTS_PACKAGE, IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE } from "../../constants";

class IgcFinancialChartTemplate extends IgniteUIForWebComponentsTemplate {
constructor() {
Expand All @@ -11,8 +12,8 @@ class IgcFinancialChartTemplate extends IgniteUIForWebComponentsTemplate {
this.name = "Financial Chart";
this.description = "IgcFinancialChart";
this.packages = [
"igniteui-webcomponents-core@~7.0.0",
"igniteui-webcomponents-charts@~7.0.0"
IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE,
IGNITEUI_WEBCOMPONENTS_CHARTS_PACKAGE
];
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE } from "../../constants";
import * as path from "path";

const SHARED_DATA_ROOT = path.join(path.dirname(require.resolve("@igniteui/angular-templates/package.json")), "shared-data");
Expand All @@ -13,7 +14,7 @@ class IgcGridTemplate extends IgniteUIForWebComponentsTemplate {
this.projectType = "igc-ts";
this.name = "Grid";
this.description = "IgcGrid with local data";
this.packages = [ "igniteui-webcomponents-grids@~7.2.1" ];
this.packages = [ IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE ];
}

public get templatePaths(): string[] {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE } from "../../constants";

class IgcGridEditingTemplate extends IgniteUIForWebComponentsTemplate {
constructor() {
Expand All @@ -10,7 +11,7 @@ class IgcGridEditingTemplate extends IgniteUIForWebComponentsTemplate {
this.projectType = "igc-ts";
this.name = "Grid Editing";
this.description = "IgcGrid with editing enabled";
this.packages = [ "igniteui-webcomponents-grids@~7.2.1" ];
this.packages = [ IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE ];
}
}
module.exports = new IgcGridEditingTemplate();
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE } from "../../constants";

class IgcGridSummariesTemplate extends IgniteUIForWebComponentsTemplate {
constructor() {
Expand All @@ -10,7 +11,7 @@ class IgcGridSummariesTemplate extends IgniteUIForWebComponentsTemplate {
this.projectType = "igc-ts";
this.name = "Grid Summaries";
this.description = "IgcGrid with column summaries";
this.packages = [ "igniteui-webcomponents-grids@~7.2.1" ];
this.packages = [ IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE ];
}
}
module.exports = new IgcGridSummariesTemplate();
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE } from "../../constants";
import * as path from "path";

const SHARED_DATA_ROOT = path.join(path.dirname(require.resolve("@igniteui/angular-templates/package.json")), "shared-data");
Expand All @@ -13,7 +14,7 @@ class IgcHierarchicalGridTemplate extends IgniteUIForWebComponentsTemplate {
this.projectType = "igc-ts";
this.name = "Hierarchical Grid";
this.description = "IgcHierarchicalGrid with basic configuration";
this.packages = [ "igniteui-webcomponents-grids@~7.2.1" ];
this.packages = [ IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE ];
}

public get templatePaths(): string[] {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE, IGNITEUI_WEBCOMPONENTS_GAUGES_PACKAGE } from "../../constants";

class IgcLinearGaugeTemplate extends IgniteUIForWebComponentsTemplate {
constructor() {
Expand All @@ -11,8 +12,8 @@ class IgcLinearGaugeTemplate extends IgniteUIForWebComponentsTemplate {
this.name = "Linear Gauge";
this.description = "IgcLinearGauge";
this.packages = [
"igniteui-webcomponents-core@~7.0.0",
"igniteui-webcomponents-gauges@~7.0.0"
IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE,
IGNITEUI_WEBCOMPONENTS_GAUGES_PACKAGE
];
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_CHARTS_PACKAGE, IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE } from "../../constants";

class IgcPieChartTemplate extends IgniteUIForWebComponentsTemplate {
constructor() {
Expand All @@ -11,8 +12,8 @@ class IgcPieChartTemplate extends IgniteUIForWebComponentsTemplate {
this.name = "Pie Chart";
this.description = "IgcPieChart with local data";
this.packages = [
"igniteui-webcomponents-core@~7.0.0",
"igniteui-webcomponents-charts@~7.0.0"
IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE,
IGNITEUI_WEBCOMPONENTS_CHARTS_PACKAGE
];
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE } from "../../constants";
import * as path from "path";

const SHARED_DATA_ROOT = path.join(path.dirname(require.resolve("@igniteui/angular-templates/package.json")), "shared-data");
Expand All @@ -13,7 +14,7 @@ class IgcPivotGridTemplate extends IgniteUIForWebComponentsTemplate {
this.projectType = "igc-ts";
this.name = "Pivot Grid";
this.description = "Basic IgcPivotGrid component";
this.packages = [ "igniteui-webcomponents-grids@~7.2.1" ];
this.packages = [ IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE ];
}

public get templatePaths(): string[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"igniteui-webcomponents-charts": "~7.0.0",
"igniteui-webcomponents-core": "~7.0.0",
"igniteui-webcomponents-gauges": "~7.0.0",
"igniteui-webcomponents-grids": "~7.1.0",
"igniteui-webcomponents-grids": "~7.2.1",
"igniteui-webcomponents-inputs": "~7.0.0",
"igniteui-webcomponents-layouts": "~7.0.0",
"lit": "^3.3.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE, IGNITEUI_WEBCOMPONENTS_GAUGES_PACKAGE } from "../../constants";

class IgcradialGaugeTemplate extends IgniteUIForWebComponentsTemplate {
constructor() {
Expand All @@ -11,8 +12,8 @@ class IgcradialGaugeTemplate extends IgniteUIForWebComponentsTemplate {
this.name = "Radial Gauge";
this.description = "IgcRadialGauge";
this.packages = [
"igniteui-webcomponents-core@~7.0.0",
"igniteui-webcomponents-gauges@~7.0.0"
IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE,
IGNITEUI_WEBCOMPONENTS_GAUGES_PACKAGE
];
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import { IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE } from "../../constants";
import * as path from "path";

const SHARED_DATA_ROOT = path.join(path.dirname(require.resolve("@igniteui/angular-templates/package.json")), "shared-data");
Expand All @@ -13,7 +14,7 @@ class IgcTreeGridTemplate extends IgniteUIForWebComponentsTemplate {
this.projectType = "igc-ts";
this.name = "Tree Grid";
this.description = "IgcTreeGrid with hierarchical data";
this.packages = [ "igniteui-webcomponents-grids@~7.2.1" ];
this.packages = [ IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE ];
}

public get templatePaths(): string[] {
Expand Down
14 changes: 10 additions & 4 deletions packages/cli/templates/webcomponents/igc-ts/tree/default/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate";
import {
IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE,
IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE,
IGNITEUI_WEBCOMPONENTS_INPUTS_PACKAGE,
IGNITEUI_WEBCOMPONENTS_LAYOUTS_PACKAGE
} from "../../constants";

class IgcTreeTemplate extends IgniteUIForWebComponentsTemplate {
constructor() {
Expand All @@ -11,10 +17,10 @@ class IgcTreeTemplate extends IgniteUIForWebComponentsTemplate {
this.name = "Tree";
this.description = "basic IgcTree";
this.packages = [
"igniteui-webcomponents-core@~7.0.0",
"igniteui-webcomponents-grids@~7.2.1",
"igniteui-webcomponents-inputs@~7.0.0",
"igniteui-webcomponents-layouts@~7.0.0"
IGNITEUI_WEBCOMPONENTS_CORE_PACKAGE,
IGNITEUI_WEBCOMPONENTS_GRIDS_PACKAGE,
IGNITEUI_WEBCOMPONENTS_INPUTS_PACKAGE,
IGNITEUI_WEBCOMPONENTS_LAYOUTS_PACKAGE
];
}
}
Expand Down