igniteui-cli 13.1.11 → 13.1.13-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/lib/commands/upgrade.js +4 -5
  2. package/lib/templates/IgniteUIForWebComponentsTemplate.js +1 -2
  3. package/package.json +3 -3
  4. package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  5. package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/__filePrefix__.tsx +46 -46
  6. package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/style.module.css +6 -6
  7. package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  8. package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/__filePrefix__.tsx +27 -27
  9. package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/style.module.css +5 -5
  10. package/templates/react/igr-ts/category-chart/index.js +1 -1
  11. package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  12. package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/__filePrefix__.tsx +41 -41
  13. package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/style.module.css +5 -5
  14. package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  15. package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.tsx +34 -34
  16. package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/style.module.css +7 -6
  17. package/templates/react/igr-ts/financial-chart/index.js +1 -1
  18. package/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  19. package/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.tsx +45 -45
  20. package/templates/react/igr-ts/grid/basic/files/src/app/__path__/data.tsx +40 -40
  21. package/templates/react/igr-ts/grid/basic/files/src/app/__path__/style.module.css +9 -9
  22. package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  23. package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.tsx +52 -51
  24. package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/style.module.css +6 -6
  25. package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  26. package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.tsx +39 -40
  27. package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/style.module.css +5 -5
  28. package/templates/react/igr-ts/projects/_base/files/package.json +3 -2
  29. package/templates/react/igr-ts/projects/_base/files/src/app/app.test.tsx +1 -0
  30. package/templates/react/igr-ts/projects/_base/files/src/app/style-utils.ts +1 -1
  31. package/templates/react/igr-ts/projects/_base/files/src/main.tsx +1 -1
  32. package/templates/react/igr-ts/projects/_base/index.js +1 -1
  33. package/templates/react/igr-ts/projects/_base_with_home/files/src/app/home/home.tsx +18 -18
  34. package/templates/react/igr-ts/projects/top-nav/files/src/app/app.tsx +11 -11
  35. package/templates/react/igr-ts/projects/top-nav/files/src/components/navigation-header/index.tsx +21 -21
  36. package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx +3 -3
  37. package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.tsx +50 -50
  38. package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/style.module.css +5 -5
  39. package/templates/react/igr-ts/radial-gauge/index.js +1 -1
  40. package/templates/webcomponents/igc-ts/projects/_base/index.js +1 -1
  41. package/templates/webcomponents/package-resolve.d.ts +0 -12
  42. package/templates/webcomponents/package-resolve.js +0 -42
@@ -42,11 +42,10 @@ command = {
42
42
  case "jquery":
43
43
  cli_core_1.Util.log("Upgrading packages for jQuery projects is currently not supported!");
44
44
  return;
45
- case "react":
46
- cli_core_1.Util.log("Upgrading packages for React projects is currently not supported!");
47
- return;
48
45
  case "angular":
49
- if (projectType === "igx-ts") {
46
+ case "react":
47
+ case "webcomponents":
48
+ if (projectType === "igx-ts" || projectType === "igr-ts" || projectType === "igc-ts") {
50
49
  const projectLibrary = command.templateManager.getProjectLibrary(framework, projectType);
51
50
  let project;
52
51
  if (!config.project.projectTemplate || !projectLibrary.hasProject(config.project.projectTemplate)) {
@@ -69,7 +68,7 @@ command = {
69
68
  }
70
69
  }
71
70
  }
72
- else {
71
+ else if (framework.toLowerCase() === "angular") {
73
72
  cli_core_1.Util.log("Upgrading packages for Angular Wrappers projects is currently not supported!");
74
73
  return;
75
74
  }
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IgniteUIForWebComponentsTemplate = void 0;
4
4
  const cli_core_1 = require("@igniteui/cli-core");
5
5
  const path = require("path");
6
- const package_resolve_1 = require("../../templates/webcomponents/package-resolve");
7
6
  const TypeScriptFileUpdate_1 = require("../../templates/webcomponents/TypeScriptFileUpdate");
8
7
  class IgniteUIForWebComponentsTemplate {
9
8
  constructor(rootPath) {
@@ -59,7 +58,7 @@ class IgniteUIForWebComponentsTemplate {
59
58
  config["description"] = this.description;
60
59
  config["cliVersion"] = cli_core_1.Util.version();
61
60
  config["camelCaseName"] = cli_core_1.Util.camelCase(name);
62
- config["dockManagerPackage"] = (0, package_resolve_1.resolveIgcPackage)(package_resolve_1.NPM_DOCK_MANAGER);
61
+ config["dockManagerPackage"] = (0, cli_core_1.resolvePackage)(cli_core_1.NPM_DOCK_MANAGER);
63
62
  return config;
64
63
  }
65
64
  folderName(pathName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "13.1.11",
3
+ "version": "13.1.13-beta.0",
4
4
  "description": "CLI tool for creating Ignite UI projects",
5
5
  "keywords": [
6
6
  "CLI",
@@ -72,8 +72,8 @@
72
72
  "all": true
73
73
  },
74
74
  "dependencies": {
75
- "@igniteui/angular-templates": "~17.1.13111",
76
- "@igniteui/cli-core": "~13.1.11",
75
+ "@igniteui/angular-templates": "~17.1.13113-beta.0",
76
+ "@igniteui/cli-core": "~13.1.13-beta.0",
77
77
  "chalk": "^2.3.2",
78
78
  "fs-extra": "^3.0.1",
79
79
  "glob": "^7.1.2",
@@ -1,8 +1,8 @@
1
1
  import { expect, test } from 'vitest';
2
2
  import { render } from '@testing-library/react';
3
- import $(ClassName) from './index';
3
+ import $(ClassName) from './$(path)';
4
4
 
5
5
  test('renders $(ClassName) component', () => {
6
- const wrapper = render(<$(ClassName) />);
7
- expect(wrapper).toBeTruthy();
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
8
  });
@@ -6,51 +6,51 @@ IgrBulletGraphModule.register();
6
6
 
7
7
 
8
8
  export default function $(ClassName)() {
9
- const title = 'Bullet Graph';
9
+ const title = 'Bullet Graph';
10
10
 
11
- return (
12
- <div>
13
- <h1 className={style.title}>{title}</h1>
14
- <div>
15
- Read more on the&nbsp;
16
- <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/bulletgraph.html">
17
- official documentation page
18
- </a>
19
- </div>
20
- <div className={style.container}>
21
- <div className={style.graph}>
22
- <IgrBulletGraph
23
- height="80px" width="400px"
24
- minimumValue={0} value={70} interval={10}
25
- maximumValue={100} targetValue={90}
26
- isScaleInverted={false}
27
- scaleBackgroundBrush="DodgerBlue"
28
- scaleBackgroundOutline="DarkViolet"
29
- scaleBackgroundThickness={2}
30
- scaleStartExtent={0.05}
31
- scaleEndExtent={0.95}>
32
- </IgrBulletGraph>
33
- </div>
34
- <div className={style.graph}>
35
- <IgrBulletGraph
36
- value={50}
37
- valueBrush="DodgerBlue"
38
- valueStrokeThickness={1}
39
- valueInnerExtent={0.5}
40
- valueOuterExtent={0.65}
41
- targetValue={80}
42
- targetValueBreadth={10}
43
- targetValueBrush="LimeGreen"
44
- targetValueOutline="LimeGreen"
45
- targetValueStrokeThickness={1}
46
- targetValueInnerExtent={0.3}
47
- targetValueOuterExtent={0.85}
48
- height="80px" width="400px"
49
- minimumValue={0}
50
- maximumValue={100}>
51
- </IgrBulletGraph>
52
- </div>
53
- </div>
54
- </div>
55
- )
11
+ return (
12
+ <div>
13
+ <h1 className={style.title}>{title}</h1>
14
+ <div>
15
+ Read more on the&nbsp;
16
+ <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/bulletgraph.html">
17
+ official documentation page
18
+ </a>
19
+ </div>
20
+ <div className={style.container}>
21
+ <div className={style.graph}>
22
+ <IgrBulletGraph
23
+ height="80px" width="400px"
24
+ minimumValue={0} value={70} interval={10}
25
+ maximumValue={100} targetValue={90}
26
+ isScaleInverted={false}
27
+ scaleBackgroundBrush="DodgerBlue"
28
+ scaleBackgroundOutline="DarkViolet"
29
+ scaleBackgroundThickness={2}
30
+ scaleStartExtent={0.05}
31
+ scaleEndExtent={0.95}>
32
+ </IgrBulletGraph>
33
+ </div>
34
+ <div className={style.graph}>
35
+ <IgrBulletGraph
36
+ value={50}
37
+ valueBrush="DodgerBlue"
38
+ valueStrokeThickness={1}
39
+ valueInnerExtent={0.5}
40
+ valueOuterExtent={0.65}
41
+ targetValue={80}
42
+ targetValueBreadth={10}
43
+ targetValueBrush="LimeGreen"
44
+ targetValueOutline="LimeGreen"
45
+ targetValueStrokeThickness={1}
46
+ targetValueInnerExtent={0.3}
47
+ targetValueOuterExtent={0.85}
48
+ height="80px" width="400px"
49
+ minimumValue={0}
50
+ maximumValue={100}>
51
+ </IgrBulletGraph>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ )
56
56
  }
@@ -1,12 +1,12 @@
1
1
  :local(.container) {
2
- padding-top: 24px;
3
- display: flex;
4
- flex-flow: row;
5
- justify-content: space-around;
2
+ padding-top: 24px;
3
+ display: flex;
4
+ flex-flow: row;
5
+ justify-content: space-around;
6
6
  }
7
7
  :local(.title) {
8
- color: rgb(0, 153, 255);
8
+ color: rgb(0, 153, 255);
9
9
  }
10
10
  :local(.graph) {
11
- width: 50%;
11
+ width: 50%;
12
12
  }
@@ -1,8 +1,8 @@
1
1
  import { expect, test } from 'vitest';
2
2
  import { render } from '@testing-library/react';
3
- import $(ClassName) from './index';
3
+ import $(ClassName) from './$(path)';
4
4
 
5
5
  test('renders $(ClassName) component', () => {
6
- const wrapper = render(<$(ClassName) />);
7
- expect(wrapper).toBeTruthy();
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
8
  });
@@ -6,36 +6,36 @@ import style from './style.module.css';
6
6
  IgrCategoryChartModule.register();
7
7
 
8
8
  const data = [
9
- { 'CountryName': 'China', 'Pop1995': 1216, 'Pop2005': 1297, 'Pop2015': 1361, 'Pop2025': 1394 },
10
- { 'CountryName': 'India', 'Pop1995': 920, 'Pop2005': 1090, 'Pop2015': 1251, 'Pop2025': 1396 },
11
- { 'CountryName': 'United States', 'Pop1995': 266, 'Pop2005': 295, 'Pop2015': 322, 'Pop2025': 351 },
12
- { 'CountryName': 'Indonesia', 'Pop1995': 197, 'Pop2005': 229, 'Pop2015': 256, 'Pop2025': 277 },
13
- { 'CountryName': 'Brazil', 'Pop1995': 161, 'Pop2005': 186, 'Pop2015': 204, 'Pop2025': 218 }
9
+ { 'CountryName': 'China', 'Pop1995': 1216, 'Pop2005': 1297, 'Pop2015': 1361, 'Pop2025': 1394 },
10
+ { 'CountryName': 'India', 'Pop1995': 920, 'Pop2005': 1090, 'Pop2015': 1251, 'Pop2025': 1396 },
11
+ { 'CountryName': 'United States', 'Pop1995': 266, 'Pop2005': 295, 'Pop2015': 322, 'Pop2025': 351 },
12
+ { 'CountryName': 'Indonesia', 'Pop1995': 197, 'Pop2005': 229, 'Pop2015': 256, 'Pop2025': 277 },
13
+ { 'CountryName': 'Brazil', 'Pop1995': 161, 'Pop2005': 186, 'Pop2015': 204, 'Pop2025': 218 }
14
14
  ];
15
15
 
16
16
  export default function $(ClassName)() {
17
- const title = 'Category Chart';
18
- const [chartData, setChartData] = useState([]);
17
+ const title = 'Category Chart';
18
+ const [chartData, setChartData] = useState([]);
19
19
 
20
- useEffect(() => {
21
- setChartData(data);
22
- }, []);
20
+ useEffect(() => {
21
+ setChartData(data);
22
+ }, []);
23
23
 
24
- return (
25
- <div>
26
- <h1 className={style.title}>{title}</h1>
27
- <div>
28
- Read more on the&nbsp;
29
- <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/categorychart.html">
30
- official documentation page
31
- </a>
32
- </div>
33
- <div className={style.container}>
34
- <IgrCategoryChart dataSource={chartData}
35
- width="100%"
36
- height="500px">
37
- </IgrCategoryChart>
38
- </div>
39
- </div>
40
- )
24
+ return (
25
+ <div>
26
+ <h1 className={style.title}>{title}</h1>
27
+ <div>
28
+ Read more on the&nbsp;
29
+ <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/categorychart.html">
30
+ official documentation page
31
+ </a>
32
+ </div>
33
+ <div className={style.container}>
34
+ <IgrCategoryChart dataSource={chartData}
35
+ width="100%"
36
+ height="500px">
37
+ </IgrCategoryChart>
38
+ </div>
39
+ </div>
40
+ )
41
41
  }
@@ -1,9 +1,9 @@
1
1
  :local(.container) {
2
- padding-top: 24px;
3
- display: flex;
4
- flex-flow: row;
5
- justify-content: center;
2
+ padding-top: 24px;
3
+ display: flex;
4
+ flex-flow: row;
5
+ justify-content: center;
6
6
  }
7
7
  :local(.title) {
8
- color: rgb(0, 153, 255);
8
+ color: rgb(0, 153, 255);
9
9
  }
@@ -10,7 +10,7 @@ class IgrTsCategoryChartComponent extends cli_core_1.BaseComponent {
10
10
  this.name = "Category Chart";
11
11
  this.group = "Charts";
12
12
  this.description = `makes visualizing category data easy. Simplifies the complexities
13
- of the data visualization domain into manageable API`;
13
+ of the data visualization domain into manageable API`;
14
14
  }
15
15
  }
16
16
  module.exports = new IgrTsCategoryChartComponent();
@@ -1,8 +1,8 @@
1
1
  import { expect, test } from 'vitest';
2
2
  import { render } from '@testing-library/react';
3
- import $(ClassName) from './index';
3
+ import $(ClassName) from './$(path)';
4
4
 
5
5
  test('renders $(ClassName) component', () => {
6
- const wrapper = render(<$(ClassName) />);
7
- expect(wrapper).toBeTruthy();
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
8
  });
@@ -14,50 +14,50 @@ IgrRingSeriesModule.register();
14
14
 
15
15
 
16
16
  const data = [
17
- { MarketShare: 30, Company: "Google", },
18
- { MarketShare: 15, Company: "Microsoft", },
19
- { MarketShare: 30, Company: "Apple", },
20
- { MarketShare: 15, Company: "Samsung", },
21
- { MarketShare: 10, Company: "Other", },
17
+ { MarketShare: 30, Company: "Google", },
18
+ { MarketShare: 15, Company: "Microsoft", },
19
+ { MarketShare: 30, Company: "Apple", },
20
+ { MarketShare: 15, Company: "Samsung", },
21
+ { MarketShare: 10, Company: "Other", }
22
22
  ];
23
23
 
24
24
  export default function $(ClassName)() {
25
- const title = 'Doughnut Chart';
26
- const [chartData, setChartData] = useState([]);
27
- const legendRef = useRef();
28
- const chartRef = useRef();
25
+ const title = 'Doughnut Chart';
26
+ const [chartData, setChartData] = useState([]);
27
+ const legendRef = useRef();
28
+ const chartRef = useRef();
29
29
 
30
- useEffect(() => {
31
- setChartData(data);
32
- }, []);
30
+ useEffect(() => {
31
+ setChartData(data);
32
+ }, []);
33
33
 
34
- return (
35
- <div>
36
- <h1 className={style.title}>{title}</h1>
37
- <div>
38
- Read more on the&nbsp;
39
- <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/doughnutchart.html">
40
- official documentation page
41
- </a>
42
- </div>
43
- <div className={style.container}>
44
- <div className={style.legend}>
45
- <IgrItemLegend ref={legendRef} />
46
- </div>
47
- <div className={style.chart}>
48
- <IgrDoughnutChart ref={chartRef}
49
- width="300px"
50
- height="300px">
51
- <IgrRingSeries
52
- name="ring1"
53
- dataSource={chartData}
54
- labelMemberPath="Company"
55
- valueMemberPath="MarketShare"
56
- legend={legendRef.current}
57
- />
58
- </IgrDoughnutChart>
59
- </div>
60
- </div>
61
- </div>
62
- )
34
+ return (
35
+ <div>
36
+ <h1 className={style.title}>{title}</h1>
37
+ <div>
38
+ Read more on the&nbsp;
39
+ <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/doughnutchart.html">
40
+ official documentation page
41
+ </a>
42
+ </div>
43
+ <div className={style.container}>
44
+ <div className={style.legend}>
45
+ <IgrItemLegend ref={legendRef} />
46
+ </div>
47
+ <div className={style.chart}>
48
+ <IgrDoughnutChart ref={chartRef}
49
+ width="300px"
50
+ height="300px">
51
+ <IgrRingSeries
52
+ name="ring1"
53
+ dataSource={chartData}
54
+ labelMemberPath="Company"
55
+ valueMemberPath="MarketShare"
56
+ legend={legendRef.current}
57
+ />
58
+ </IgrDoughnutChart>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ )
63
63
  }
@@ -1,9 +1,9 @@
1
1
  :local(.container) {
2
- display: flex;
3
- flex-flow: row;
4
- justify-content: center;
5
- padding-top: 24px;
2
+ display: flex;
3
+ flex-flow: row;
4
+ justify-content: center;
5
+ padding-top: 24px;
6
6
  }
7
7
  :local(.title) {
8
- color: rgb(0, 153, 255);
8
+ color: rgb(0, 153, 255);
9
9
  }
@@ -1,8 +1,8 @@
1
1
  import { expect, test } from 'vitest';
2
2
  import { render } from '@testing-library/react';
3
- import $(ClassName) from './index';
3
+ import $(ClassName) from './$(path)';
4
4
 
5
5
  test('renders $(ClassName) component', () => {
6
- const wrapper = render(<$(ClassName) />);
7
- expect(wrapper).toBeTruthy();
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
8
  });
@@ -6,44 +6,44 @@ import style from './style.module.css';
6
6
  IgrFinancialChartModule.register();
7
7
 
8
8
  const data = [
9
- { time: new Date(2013, 1, 1), open: 268.93, high: 268.93, low: 262.80, close: 265.00, volume: 6118146 },
10
- { time: new Date(2013, 1, 4), open: 262.78, high: 264.68, low: 259.07, close: 259.98, volume: 3723793 },
11
- { time: new Date(2013, 1, 5), open: 262.00, high: 268.03, low: 261.46, close: 266.89, volume: 4013780 },
12
- { time: new Date(2013, 1, 6), open: 265.16, high: 266.89, low: 261.11, close: 262.22, volume: 2772204 },
13
- { time: new Date(2013, 1, 7), open: 264.10, high: 264.10, low: 255.11, close: 260.23, volume: 3977065 },
14
- { time: new Date(2013, 1, 8), open: 261.40, high: 265.25, low: 260.56, close: 261.95, volume: 3879628 },
15
- { time: new Date(2013, 1, 11), open: 263.20, high: 263.25, low: 256.60, close: 257.21, volume: 3407457 },
16
- { time: new Date(2013, 1, 12), open: 259.19, high: 260.16, low: 257.00, close: 258.70, volume: 2944730 },
17
- { time: new Date(2013, 1, 13), open: 261.53, high: 269.96, low: 260.30, close: 269.47, volume: 5295786 },
18
- { time: new Date(2013, 1, 14), open: 267.37, high: 270.65, low: 265.40, close: 269.24, volume: 3464080 },
19
- { time: new Date(2013, 1, 15), open: 267.63, high: 268.92, low: 263.11, close: 265.09, volume: 3981233 }
9
+ { time: new Date(2013, 1, 1), open: 268.93, high: 268.93, low: 262.80, close: 265.00, volume: 6118146 },
10
+ { time: new Date(2013, 1, 4), open: 262.78, high: 264.68, low: 259.07, close: 259.98, volume: 3723793 },
11
+ { time: new Date(2013, 1, 5), open: 262.00, high: 268.03, low: 261.46, close: 266.89, volume: 4013780 },
12
+ { time: new Date(2013, 1, 6), open: 265.16, high: 266.89, low: 261.11, close: 262.22, volume: 2772204 },
13
+ { time: new Date(2013, 1, 7), open: 264.10, high: 264.10, low: 255.11, close: 260.23, volume: 3977065 },
14
+ { time: new Date(2013, 1, 8), open: 261.40, high: 265.25, low: 260.56, close: 261.95, volume: 3879628 },
15
+ { time: new Date(2013, 1, 11), open: 263.20, high: 263.25, low: 256.60, close: 257.21, volume: 3407457 },
16
+ { time: new Date(2013, 1, 12), open: 259.19, high: 260.16, low: 257.00, close: 258.70, volume: 2944730 },
17
+ { time: new Date(2013, 1, 13), open: 261.53, high: 269.96, low: 260.30, close: 269.47, volume: 5295786 },
18
+ { time: new Date(2013, 1, 14), open: 267.37, high: 270.65, low: 265.40, close: 269.24, volume: 3464080 },
19
+ { time: new Date(2013, 1, 15), open: 267.63, high: 268.92, low: 263.11, close: 265.09, volume: 3981233 }
20
20
  ];
21
21
 
22
22
 
23
23
  export default function $(ClassName)() {
24
- const title = 'Financial Chart';
25
- const [chartData, setChartData] = useState([]);
24
+ const title = 'Financial Chart';
25
+ const [chartData, setChartData] = useState([]);
26
26
 
27
- useEffect(() => {
28
- setChartData(data);
29
- }, []);
27
+ useEffect(() => {
28
+ setChartData(data);
29
+ }, []);
30
30
 
31
- return (
32
- <div>
33
- <h1 className={style.title}>{title}</h1>
34
- <div>
35
- Read more on the&nbsp;
36
- <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/financialchart.html">
37
- official documentation page
38
- </a>
39
- </div>
40
- <div className={style.container}>
41
- <IgrFinancialChart
42
- width="700px"
43
- height="500px"
44
- dataSource={chartData}>
45
- </IgrFinancialChart>
46
- </div>
47
- </div>
48
- )
31
+ return (
32
+ <div>
33
+ <h1 className={style.title}>{title}</h1>
34
+ <div>
35
+ Read more on the&nbsp;
36
+ <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/financialchart.html">
37
+ official documentation page
38
+ </a>
39
+ </div>
40
+ <div className={style.container}>
41
+ <IgrFinancialChart
42
+ width="700px"
43
+ height="500px"
44
+ dataSource={chartData}>
45
+ </IgrFinancialChart>
46
+ </div>
47
+ </div>
48
+ )
49
49
  }
@@ -1,10 +1,11 @@
1
1
  :local(.container) {
2
- padding-top: 24px;
3
- display: flex;
4
- flex-flow: row;
5
- justify-content: center;
6
- text-align: left;
2
+ padding-top: 24px;
3
+ display: flex;
4
+ flex-flow: row;
5
+ justify-content: center;
6
+ text-align: left;
7
7
  }
8
+
8
9
  :local(.title) {
9
- color: rgb(0, 153, 255);
10
+ color: rgb(0, 153, 255);
10
11
  }
@@ -10,7 +10,7 @@ class IgrTsFinancialChartComponent extends cli_core_1.BaseComponent {
10
10
  this.name = "Financial Chart";
11
11
  this.group = "Charts";
12
12
  this.description = `charting component that makes it easy to visualize financial data by
13
- using a simple and intuitive API.`;
13
+ using a simple and intuitive API.`;
14
14
  }
15
15
  }
16
16
  module.exports = new IgrTsFinancialChartComponent();
@@ -1,8 +1,8 @@
1
1
  import { expect, test } from 'vitest';
2
2
  import { render } from '@testing-library/react';
3
- import $(ClassName) from './index';
3
+ import $(ClassName) from './$(path)';
4
4
 
5
5
  test('renders $(ClassName) component', () => {
6
- const wrapper = render(<$(ClassName) />);
7
- expect(wrapper).toBeTruthy();
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
8
  });