igniteui-cli 12.0.4 → 12.0.6-alpha.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 (104) hide show
  1. package/lib/templates/IgniteUIForReactTemplate.js +1 -1
  2. package/package.json +3 -3
  3. package/templates/react/igr-ts-es6/bullet-graph/default/files/src/views/__path__/index.test.tsx +8 -0
  4. package/templates/react/igr-ts-es6/bullet-graph/default/files/src/views/__path__/index.tsx +57 -0
  5. package/templates/react/igr-ts-es6/bullet-graph/default/files/src/views/__path__/style.module.css +12 -0
  6. package/templates/react/igr-ts-es6/bullet-graph/default/index.d.ts +1 -0
  7. package/templates/react/igr-ts-es6/bullet-graph/default/index.js +17 -0
  8. package/templates/react/igr-ts-es6/bullet-graph/index.d.ts +1 -0
  9. package/templates/react/igr-ts-es6/bullet-graph/index.js +15 -0
  10. package/templates/react/igr-ts-es6/category-chart/default/files/src/views/__path__/index.test.tsx +8 -0
  11. package/templates/react/igr-ts-es6/category-chart/default/files/src/views/__path__/index.tsx +41 -0
  12. package/templates/react/igr-ts-es6/category-chart/default/files/src/views/__path__/style.module.css +9 -0
  13. package/templates/react/igr-ts-es6/category-chart/default/index.d.ts +1 -0
  14. package/templates/react/igr-ts-es6/category-chart/default/index.js +18 -0
  15. package/templates/react/igr-ts-es6/category-chart/index.d.ts +1 -0
  16. package/templates/react/igr-ts-es6/category-chart/index.js +16 -0
  17. package/templates/react/igr-ts-es6/doughnut-chart/default/files/src/views/__path__/index.test.tsx +8 -0
  18. package/templates/react/igr-ts-es6/doughnut-chart/default/files/src/views/__path__/index.tsx +63 -0
  19. package/templates/react/igr-ts-es6/doughnut-chart/default/files/src/views/__path__/style.module.css +9 -0
  20. package/templates/react/igr-ts-es6/doughnut-chart/default/index.d.ts +1 -0
  21. package/templates/react/igr-ts-es6/doughnut-chart/default/index.js +17 -0
  22. package/templates/react/igr-ts-es6/doughnut-chart/index.d.ts +1 -0
  23. package/templates/react/igr-ts-es6/doughnut-chart/index.js +15 -0
  24. package/templates/react/igr-ts-es6/financial-chart/default/files/src/views/__path__/index.test.tsx +8 -0
  25. package/templates/react/igr-ts-es6/financial-chart/default/files/src/views/__path__/index.tsx +49 -0
  26. package/templates/react/igr-ts-es6/financial-chart/default/files/src/views/__path__/style.module.css +10 -0
  27. package/templates/react/igr-ts-es6/financial-chart/default/index.d.ts +1 -0
  28. package/templates/react/igr-ts-es6/financial-chart/default/index.js +19 -0
  29. package/templates/react/igr-ts-es6/financial-chart/index.d.ts +1 -0
  30. package/templates/react/igr-ts-es6/financial-chart/index.js +16 -0
  31. package/templates/react/igr-ts-es6/grid/basic/files/src/views/__path__/data.tsx +46 -0
  32. package/templates/react/igr-ts-es6/grid/basic/files/src/views/__path__/index.test.tsx +8 -0
  33. package/templates/react/igr-ts-es6/grid/basic/files/src/views/__path__/index.tsx +48 -0
  34. package/templates/react/igr-ts-es6/grid/basic/files/src/views/__path__/style.module.css +17 -0
  35. package/templates/react/igr-ts-es6/grid/basic/index.d.ts +1 -0
  36. package/templates/react/igr-ts-es6/grid/basic/index.js +23 -0
  37. package/templates/react/igr-ts-es6/grid/index.d.ts +1 -0
  38. package/templates/react/igr-ts-es6/grid/index.js +15 -0
  39. package/templates/react/igr-ts-es6/groups.json +5 -0
  40. package/templates/react/igr-ts-es6/index.d.ts +1 -0
  41. package/templates/react/igr-ts-es6/index.js +17 -0
  42. package/templates/react/igr-ts-es6/linear-gauge/default/files/src/views/__path__/index.test.tsx +8 -0
  43. package/templates/react/igr-ts-es6/linear-gauge/default/files/src/views/__path__/index.tsx +60 -0
  44. package/templates/react/igr-ts-es6/linear-gauge/default/files/src/views/__path__/style.module.css +12 -0
  45. package/templates/react/igr-ts-es6/linear-gauge/default/index.d.ts +1 -0
  46. package/templates/react/igr-ts-es6/linear-gauge/default/index.js +17 -0
  47. package/templates/react/igr-ts-es6/linear-gauge/index.d.ts +1 -0
  48. package/templates/react/igr-ts-es6/linear-gauge/index.js +15 -0
  49. package/templates/react/igr-ts-es6/pie-chart/default/files/src/views/__path__/index.test.tsx +8 -0
  50. package/templates/react/igr-ts-es6/pie-chart/default/files/src/views/__path__/index.tsx +57 -0
  51. package/templates/react/igr-ts-es6/pie-chart/default/files/src/views/__path__/style.module.css +9 -0
  52. package/templates/react/igr-ts-es6/pie-chart/default/index.d.ts +1 -0
  53. package/templates/react/igr-ts-es6/pie-chart/default/index.js +17 -0
  54. package/templates/react/igr-ts-es6/pie-chart/index.d.ts +1 -0
  55. package/templates/react/igr-ts-es6/pie-chart/index.js +15 -0
  56. package/templates/react/igr-ts-es6/projects/_base/files/README.md +48 -0
  57. package/templates/react/igr-ts-es6/projects/_base/files/__dot__editorconfig +3 -0
  58. package/templates/react/igr-ts-es6/projects/_base/files/__dot__env +1 -0
  59. package/templates/react/igr-ts-es6/projects/_base/files/__dot__eslintrc.cjs +18 -0
  60. package/templates/react/igr-ts-es6/projects/_base/files/__dot__gitignore +23 -0
  61. package/templates/react/igr-ts-es6/projects/_base/files/ignite-ui-cli.json +16 -0
  62. package/templates/react/igr-ts-es6/projects/_base/files/index.html +33 -0
  63. package/templates/react/igr-ts-es6/projects/_base/files/package.json +50 -0
  64. package/templates/react/igr-ts-es6/projects/_base/files/public/favicon.ico +0 -0
  65. package/templates/react/igr-ts-es6/projects/_base/files/public/manifest.json +15 -0
  66. package/templates/react/igr-ts-es6/projects/_base/files/src/App.test.tsx +8 -0
  67. package/templates/react/igr-ts-es6/projects/_base/files/src/hoc/asyncComponent.tsx +50 -0
  68. package/templates/react/igr-ts-es6/projects/_base/files/src/index.css +14 -0
  69. package/templates/react/igr-ts-es6/projects/_base/files/src/main.tsx +23 -0
  70. package/templates/react/igr-ts-es6/projects/_base/files/src/routes.json +3 -0
  71. package/templates/react/igr-ts-es6/projects/_base/files/src/serviceWorker.tsx +135 -0
  72. package/templates/react/igr-ts-es6/projects/_base/files/src/vite-env.d.ts +1 -0
  73. package/templates/react/igr-ts-es6/projects/_base/files/tsconfig.json +25 -0
  74. package/templates/react/igr-ts-es6/projects/_base/files/tsconfig.node.json +10 -0
  75. package/templates/react/igr-ts-es6/projects/_base/files/vite.config.ts +20 -0
  76. package/templates/react/igr-ts-es6/projects/_base/index.d.ts +29 -0
  77. package/templates/react/igr-ts-es6/projects/_base/index.js +58 -0
  78. package/templates/react/igr-ts-es6/projects/_base_with_home/files/public/logo.svg +7 -0
  79. package/templates/react/igr-ts-es6/projects/_base_with_home/files/src/App.module.css +36 -0
  80. package/templates/react/igr-ts-es6/projects/_base_with_home/files/src/App.tsx +26 -0
  81. package/templates/react/igr-ts-es6/projects/_base_with_home/files/src/setupTests.ts +5 -0
  82. package/templates/react/igr-ts-es6/projects/_base_with_home/index.d.ts +14 -0
  83. package/templates/react/igr-ts-es6/projects/_base_with_home/index.js +22 -0
  84. package/templates/react/igr-ts-es6/projects/empty/index.d.ts +14 -0
  85. package/templates/react/igr-ts-es6/projects/empty/index.js +22 -0
  86. package/templates/react/igr-ts-es6/projects/top-nav/files/src/App.css +59 -0
  87. package/templates/react/igr-ts-es6/projects/top-nav/files/src/App.tsx +32 -0
  88. package/templates/react/igr-ts-es6/projects/top-nav/files/src/components/navigation-header/index.tsx +29 -0
  89. package/templates/react/igr-ts-es6/projects/top-nav/files/src/routes.json +7 -0
  90. package/templates/react/igr-ts-es6/projects/top-nav/files/src/setupTests.ts +5 -0
  91. package/templates/react/igr-ts-es6/projects/top-nav/files/src/views/home/index.tsx +22 -0
  92. package/templates/react/igr-ts-es6/projects/top-nav/files/src/views/home/logo.svg +7 -0
  93. package/templates/react/igr-ts-es6/projects/top-nav/files/src/views/home/style.module.css +27 -0
  94. package/templates/react/igr-ts-es6/projects/top-nav/index.d.ts +14 -0
  95. package/templates/react/igr-ts-es6/projects/top-nav/index.js +22 -0
  96. package/templates/react/igr-ts-es6/radial-gauge/default/files/src/views/__path__/index.test.tsx +8 -0
  97. package/templates/react/igr-ts-es6/radial-gauge/default/files/src/views/__path__/index.tsx +61 -0
  98. package/templates/react/igr-ts-es6/radial-gauge/default/files/src/views/__path__/style.module.css +12 -0
  99. package/templates/react/igr-ts-es6/radial-gauge/default/index.d.ts +1 -0
  100. package/templates/react/igr-ts-es6/radial-gauge/default/index.js +18 -0
  101. package/templates/react/igr-ts-es6/radial-gauge/index.d.ts +1 -0
  102. package/templates/react/igr-ts-es6/radial-gauge/index.js +16 -0
  103. package/templates/react/index.js +1 -0
  104. package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
@@ -15,7 +15,7 @@ class IgniteUIForReactTemplate {
15
15
  this.listInCustomTemplates = false;
16
16
  this.dependencies = [];
17
17
  this.framework = "react";
18
- this.projectType = "igr-es6";
18
+ this.projectType = "igr-ts-es6"; // temp
19
19
  this.hasExtraConfiguration = false;
20
20
  this.packages = [];
21
21
  this.delimiters = cli_core_1.defaultDelimiters;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "12.0.4",
3
+ "version": "12.0.6-alpha.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": "~16.0.1204",
76
- "@igniteui/cli-core": "~12.0.4",
75
+ "@igniteui/angular-templates": "~16.0.1206-alpha.0",
76
+ "@igniteui/cli-core": "~12.0.6-alpha.0",
77
77
  "chalk": "^2.3.2",
78
78
  "fs-extra": "^3.0.1",
79
79
  "glob": "^7.1.2",
@@ -0,0 +1,8 @@
1
+ import { expect, test } from 'vitest';
2
+ import { render } from '@testing-library/react';
3
+ import $(ClassName) from './index';
4
+
5
+ test('renders $(ClassName) component', () => {
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
+ });
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+ import { IgrBulletGraphModule } from 'igniteui-react-gauges';
3
+ import { IgrBulletGraph } from 'igniteui-react-gauges';
4
+ import style from './style.module.css';
5
+
6
+ IgrBulletGraphModule.register();
7
+
8
+
9
+ export default function $(ClassName)() {
10
+ const title = 'Bullet Graph';
11
+
12
+ return (
13
+ <div>
14
+ <h1 className={style.title}>{title}</h1>
15
+ <div>
16
+ Read more on the&nbsp;
17
+ <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/bulletgraph.html">
18
+ official documentation page
19
+ </a>
20
+ </div>
21
+ <div className={style.container}>
22
+ <div className={style.graph}>
23
+ <IgrBulletGraph
24
+ height="80px" width="400px"
25
+ minimumValue={0} value={70} interval={10}
26
+ maximumValue={100} targetValue={90}
27
+ isScaleInverted={false}
28
+ scaleBackgroundBrush="DodgerBlue"
29
+ scaleBackgroundOutline="DarkViolet"
30
+ scaleBackgroundThickness={2}
31
+ scaleStartExtent={0.05}
32
+ scaleEndExtent={0.95}>
33
+ </IgrBulletGraph>
34
+ </div>
35
+ <div className={style.graph}>
36
+ <IgrBulletGraph
37
+ value={50}
38
+ valueBrush="DodgerBlue"
39
+ valueStrokeThickness={1}
40
+ valueInnerExtent={0.5}
41
+ valueOuterExtent={0.65}
42
+ targetValue={80}
43
+ targetValueBreadth={10}
44
+ targetValueBrush="LimeGreen"
45
+ targetValueOutline="LimeGreen"
46
+ targetValueStrokeThickness={1}
47
+ targetValueInnerExtent={0.3}
48
+ targetValueOuterExtent={0.85}
49
+ height="80px" width="400px"
50
+ minimumValue={0}
51
+ maximumValue={100}>
52
+ </IgrBulletGraph>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ )
57
+ }
@@ -0,0 +1,12 @@
1
+ :local(.container) {
2
+ padding-top: 24px;
3
+ display: flex;
4
+ flex-flow: row;
5
+ justify-content: space-around;
6
+ }
7
+ :local(.title) {
8
+ color: rgb(0, 153, 255);
9
+ }
10
+ :local(.graph) {
11
+ width: 50%;
12
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
4
+ class IgrTsBulletGraphTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Bullet Graph"];
8
+ this.controlGroup = "Gauges";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "bullet-graph";
11
+ this.projectType = "igr-ts-es6";
12
+ this.name = "Bullet Graph";
13
+ this.description = `allows for a linear and concise view of measures compared against a scale.`;
14
+ this.packages = ["igniteui-react-gauges@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
15
+ }
16
+ }
17
+ module.exports = new IgrTsBulletGraphTemplate();
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cli_core_1 = require("@igniteui/cli-core");
4
+ class IgrTsBulletGraphComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Bullet Graph";
11
+ this.group = "Gauges";
12
+ this.description = `allows for a linear and concise view of measures compared against a scale.`;
13
+ }
14
+ }
15
+ module.exports = new IgrTsBulletGraphComponent();
@@ -0,0 +1,8 @@
1
+ import { expect, test } from 'vitest';
2
+ import { render } from '@testing-library/react';
3
+ import $(ClassName) from './index';
4
+
5
+ test('renders $(ClassName) component', () => {
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
+ });
@@ -0,0 +1,41 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { IgrCategoryChartModule } from 'igniteui-react-charts';
3
+ import { IgrCategoryChart } from 'igniteui-react-charts';
4
+ import style from './style.module.css';
5
+
6
+ IgrCategoryChartModule.register();
7
+
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 }
14
+ ];
15
+
16
+ export default function $(ClassName)() {
17
+ const title = 'Category Chart';
18
+ const [chartData, setChartData] = useState([]);
19
+
20
+ useEffect(() => {
21
+ setChartData(data);
22
+ }, []);
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
+ )
41
+ }
@@ -0,0 +1,9 @@
1
+ :local(.container) {
2
+ padding-top: 24px;
3
+ display: flex;
4
+ flex-flow: row;
5
+ justify-content: center;
6
+ }
7
+ :local(.title) {
8
+ color: rgb(0, 153, 255);
9
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
4
+ class IgrTsCategoryChartTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Category Chart"];
8
+ this.controlGroup = "Charts";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "category-chart";
11
+ this.projectType = "igr-ts-es6";
12
+ this.name = "Category Chart";
13
+ this.description = `makes visualizing category data easy. Simplifies the complexities
14
+ of the data visualization domain into manageable API`;
15
+ this.packages = ["igniteui-react-charts@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
16
+ }
17
+ }
18
+ module.exports = new IgrTsCategoryChartTemplate();
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cli_core_1 = require("@igniteui/cli-core");
4
+ class IgrTsCategoryChartComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Category Chart";
11
+ this.group = "Charts";
12
+ this.description = `makes visualizing category data easy. Simplifies the complexities
13
+ of the data visualization domain into manageable API`;
14
+ }
15
+ }
16
+ module.exports = new IgrTsCategoryChartComponent();
@@ -0,0 +1,8 @@
1
+ import { expect, test } from 'vitest';
2
+ import { render } from '@testing-library/react';
3
+ import $(ClassName) from './index';
4
+
5
+ test('renders $(ClassName) component', () => {
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
+ });
@@ -0,0 +1,63 @@
1
+ import React, { useEffect, useRef, useState } from 'react';
2
+ import { IgrDoughnutChartModule } from 'igniteui-react-charts';
3
+ import { IgrDoughnutChart } from 'igniteui-react-charts';
4
+ import { IgrRingSeriesModule } from 'igniteui-react-charts';
5
+ import { IgrRingSeries } from 'igniteui-react-charts';
6
+ import { IgrItemLegendModule } from 'igniteui-react-charts';
7
+ import { IgrItemLegend } from 'igniteui-react-charts';
8
+ import style from './style.module.css';
9
+
10
+ IgrItemLegendModule.register();
11
+
12
+ IgrDoughnutChartModule.register();
13
+ IgrRingSeriesModule.register();
14
+
15
+
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", },
22
+ ];
23
+
24
+ export default function $(ClassName)() {
25
+ const title = 'Doughnut Chart';
26
+ const [chartData, setChartData] = useState([]);
27
+ const legendRef = useRef();
28
+ const chartRef = useRef();
29
+
30
+ useEffect(() => {
31
+ setChartData(data);
32
+ }, []);
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
+ )
63
+ }
@@ -0,0 +1,9 @@
1
+ :local(.container) {
2
+ display: flex;
3
+ flex-flow: row;
4
+ justify-content: center;
5
+ padding-top: 24px;
6
+ }
7
+ :local(.title) {
8
+ color: rgb(0, 153, 255);
9
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
4
+ class IgrTsDoughnutChartTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Doughnut Chart"];
8
+ this.controlGroup = "Charts";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "doughnut-chart";
11
+ this.projectType = "igr-ts-es6";
12
+ this.name = "Doughnut Chart";
13
+ this.description = `proportionally illustrate the occurrences of variables.`;
14
+ this.packages = ["igniteui-react-charts@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
15
+ }
16
+ }
17
+ module.exports = new IgrTsDoughnutChartTemplate();
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cli_core_1 = require("@igniteui/cli-core");
4
+ class IgrTsDoughnutChartComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Doughnut Chart";
11
+ this.group = "Charts";
12
+ this.description = `proportionally illustrate the occurrences of variables.`;
13
+ }
14
+ }
15
+ module.exports = new IgrTsDoughnutChartComponent();
@@ -0,0 +1,8 @@
1
+ import { expect, test } from 'vitest';
2
+ import { render } from '@testing-library/react';
3
+ import $(ClassName) from './index';
4
+
5
+ test('renders $(ClassName) component', () => {
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
+ });
@@ -0,0 +1,49 @@
1
+ import React, { useEffect, useState } from 'react'
2
+ import { IgrFinancialChartModule } from 'igniteui-react-charts';
3
+ import { IgrFinancialChart } from 'igniteui-react-charts';
4
+ import style from './style.module.css';
5
+
6
+ IgrFinancialChartModule.register();
7
+
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 }
20
+ ];
21
+
22
+
23
+ export default function $(ClassName)() {
24
+ const title = 'Financial Chart';
25
+ const [chartData, setChartData] = useState([]);
26
+
27
+ useEffect(() => {
28
+ setChartData(data);
29
+ }, []);
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
+ )
49
+ }
@@ -0,0 +1,10 @@
1
+ :local(.container) {
2
+ padding-top: 24px;
3
+ display: flex;
4
+ flex-flow: row;
5
+ justify-content: center;
6
+ text-align: left;
7
+ }
8
+ :local(.title) {
9
+ color: rgb(0, 153, 255);
10
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
4
+ class IgrTsFinancialChartTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Financial Chart"];
8
+ this.controlGroup = "Charts";
9
+ // set to true once bug with chart destoy is fixed
10
+ this.listInComponentTemplates = false;
11
+ this.id = "financial-chart";
12
+ this.projectType = "igr-ts-es6";
13
+ this.name = "Financial Chart";
14
+ this.description = `charting component that makes it easy to visualize financial data by
15
+ using a simple and intuitive API.`;
16
+ this.packages = ["igniteui-react-charts@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
17
+ }
18
+ }
19
+ module.exports = new IgrTsFinancialChartTemplate();
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cli_core_1 = require("@igniteui/cli-core");
4
+ class IgrTsFinancialChartComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Financial Chart";
11
+ this.group = "Charts";
12
+ this.description = `charting component that makes it easy to visualize financial data by
13
+ using a simple and intuitive API.`;
14
+ }
15
+ }
16
+ module.exports = new IgrTsFinancialChartComponent();
@@ -0,0 +1,46 @@
1
+ export default [{
2
+ Discontinued: false,
3
+ OrderDate: new Date('2012-02-12'),
4
+ ProductID: 1,
5
+ ProductName: 'Chai',
6
+ QuantityPerUnit: '10 boxes x 20 bags',
7
+ ReorderLevel: 10,
8
+ UnitPrice: 18.0000,
9
+ UnitsInStock: 39
10
+ }, {
11
+ Discontinued: false,
12
+ OrderDate: new Date('2003-03-17'),
13
+ ProductID: 2,
14
+ ProductName: 'Chang',
15
+ QuantityPerUnit: '24 - 12 oz bottles',
16
+ ReorderLevel: 25,
17
+ UnitPrice: 19.0000,
18
+ UnitsInStock: 17
19
+ }, {
20
+ Discontinued: false,
21
+ OrderDate: new Date('2006-03-17'),
22
+ ProductID: 3,
23
+ ProductName: 'Aniseed Syrup',
24
+ QuantityPerUnit: '12 - 550 ml bottles',
25
+ ReorderLevel: 25,
26
+ UnitPrice: 10.0000,
27
+ UnitsInStock: 13
28
+ }, {
29
+ Discontinued: false,
30
+ OrderDate: new Date('2016-03-17'),
31
+ ProductID: 4,
32
+ ProductName: 'Chef Antons Cajun Seasoning',
33
+ QuantityPerUnit: '48 - 6 oz jars',
34
+ ReorderLevel: 0,
35
+ UnitPrice: 22.0000,
36
+ UnitsInStock: 53
37
+ }, {
38
+ Discontinued: true,
39
+ OrderDate: new Date('2011-11-11'),
40
+ ProductID: 5,
41
+ ProductName: 'Chef Antons Gumbo Mix',
42
+ QuantityPerUnit: '36 boxes',
43
+ ReorderLevel: 0,
44
+ UnitPrice: 21.3500,
45
+ UnitsInStock: 0
46
+ }];
@@ -0,0 +1,8 @@
1
+ import { expect, test } from 'vitest';
2
+ import { render } from '@testing-library/react';
3
+ import $(ClassName) from './index';
4
+
5
+ test('renders $(ClassName) component', () => {
6
+ const wrapper = render(<$(ClassName) />);
7
+ expect(wrapper).toBeTruthy();
8
+ });
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ import style from './style.module.css';
3
+ import { IgrDataGridModule } from 'igniteui-react-grids';
4
+ import { IgrDataGrid } from 'igniteui-react-grids';
5
+ import { IgrNumericColumn } from 'igniteui-react-grids';
6
+ import { IgrTextColumn } from 'igniteui-react-grids';
7
+ import { IgrDateTimeColumn } from 'igniteui-react-grids';
8
+
9
+ import data from './data';
10
+
11
+ IgrDataGridModule.register();
12
+
13
+ export default function $(ClassName)() {
14
+ const title = 'Grid';
15
+
16
+ return (
17
+ <div>
18
+ <h1 className={style.title}>{title}</h1>
19
+ <div>
20
+ Read more on the&nbsp;
21
+ <a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grid.html">
22
+ official documentation page
23
+ </a>
24
+ </div>
25
+ <div className={style.container}>
26
+ <div className={style.grid}>
27
+ <IgrDataGrid
28
+ height="100%"
29
+ autoGenerateColumns="false"
30
+ dataSource={data}>
31
+ <IgrNumericColumn field="ProductID" headerText="Product ID" />
32
+ <IgrTextColumn field="ProductName" headerText="Product Name" />
33
+ <IgrTextColumn field="QuantityPerUnit" headerText="Quantity Per Unit" />
34
+ <IgrNumericColumn field="UnitsInStock" headerText="Units In Stock" />
35
+ <IgrDateTimeColumn field="OrderDate" headerText="Order Date" />
36
+ </IgrDataGrid>
37
+ </div>
38
+ <div className={style.grid}>
39
+ <IgrDataGrid
40
+ height="100%"
41
+ width="100%"
42
+ autoGenerateColumns="true"
43
+ dataSource={data} />
44
+ </div>
45
+ </div>
46
+ </div>
47
+ )
48
+ }
@@ -0,0 +1,17 @@
1
+ :local(.container) {
2
+ padding-top: 24px;
3
+ display: flex;
4
+ flex-flow: column;
5
+ justify-content: center;
6
+ align-items: center;
7
+ }
8
+
9
+ :local(.title) {
10
+ color: rgb(0, 153, 255);
11
+ }
12
+
13
+ :local(.grid) {
14
+ width: 80%;
15
+ margin-bottom: 24px;
16
+ border: 1px solid rgb(0, 153, 255);
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
4
+ class GridTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.id = "grid";
11
+ this.name = "Grid";
12
+ this.widget = "igGrid";
13
+ this.description = "IgrGrid template for React";
14
+ this.projectType = "igr-ts-es6";
15
+ this.components = ["Grid"];
16
+ this.controlGroup = "Data Grids";
17
+ // TODO: read version from igniteui-react-core in package.json
18
+ this.packages = ["igniteui-react-grids@~16.15.0", "igniteui-react-inputs@~16.15.0",
19
+ "igniteui-react-layouts@~16.15.0"];
20
+ this.hasExtraConfiguration = false;
21
+ }
22
+ }
23
+ module.exports = new GridTemplate();
@@ -0,0 +1 @@
1
+ export {};