igniteui-cli 8.2.0 → 8.2.3

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 (133) hide show
  1. package/lib/commands/build.js +3 -0
  2. package/lib/commands/start.js +4 -1
  3. package/lib/templates/ReactTemplate.d.ts +4 -4
  4. package/lib/templates/ReactTemplate.js +42 -29
  5. package/package.json +4 -4
  6. package/templates/react/es6/bar-chart/default/files/{client → src}/components/__path__/index.js +2 -4
  7. package/templates/react/es6/{column-chart/default/files/client → bar-chart/default/files/src}/data/world-energy-production.js +2 -2
  8. package/templates/react/es6/column-chart/default/files/{client → src}/components/__path__/index.js +2 -6
  9. package/templates/react/es6/{bar-chart/default/files/client → column-chart/default/files/src}/data/world-energy-production.js +0 -0
  10. package/templates/react/es6/combo/combo/files/{client → src}/components/__path__/index.js +2 -4
  11. package/templates/react/es6/doughnut-chart/doughnut-chart/files/{client → src}/components/__path__/index.js +1 -4
  12. package/templates/react/es6/editors/editors/files/{client → src}/components/__path__/index.js +1 -4
  13. package/templates/react/es6/financial-chart/financial-chart/files/{client → src}/components/__path__/index.js +1 -5
  14. package/templates/react/es6/financial-chart/financial-chart/files/{client → src}/data/financial-data.js +1 -1
  15. package/templates/react/es6/funnel-chart/funnel-chart/files/{client → src}/components/__path__/index.js +1 -4
  16. package/templates/react/es6/generate/files/{client → src}/components/__path__/index.js +1 -1
  17. package/templates/react/es6/grid/basic/files/{client → src}/components/__path__/index.js +10 -12
  18. package/templates/react/es6/grid/grid-custom/files/{client → src}/components/__path__/index.js +10 -13
  19. package/templates/react/es6/grid/grid-editing/files/{client → src}/components/__path__/index.js +10 -13
  20. package/templates/react/es6/grid/grid-export/files/src/components/__path__/index.js +124 -0
  21. package/templates/react/es6/grid/grid-export/files/{client/components/__path__/styles.scss → src/components/__path__/styles.css} +0 -0
  22. package/templates/react/es6/grid/grid-export/index.js +2 -1
  23. package/templates/react/es6/grid/grid-templating/files/{client → src}/components/__path__/index.js +1 -5
  24. package/templates/react/es6/grid/grid-templating/files/{client → src}/components/__path__/northwind.js +0 -0
  25. package/templates/react/es6/hierarchical-grid/hierarchical-grid/files/{client → src}/components/__path__/index.js +1 -5
  26. package/templates/react/es6/hierarchical-grid/{hierarchical-grid-export/files/client → hierarchical-grid/files/src}/components/__path__/northwind.js +0 -0
  27. package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/src/components/__path__/index.js +82 -0
  28. package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/{client → src}/components/__path__/northwind.js +0 -0
  29. package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/src/components/__path__/index.js +81 -0
  30. package/templates/react/es6/hierarchical-grid/{hierarchical-grid/files/client → hierarchical-grid-editing/files/src}/components/__path__/northwind.js +5587 -5587
  31. package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/src/components/__path__/index.js +112 -0
  32. package/templates/react/es6/hierarchical-grid/{hierarchical-grid-editing/files/client → hierarchical-grid-export/files/src}/components/__path__/northwind.js +0 -0
  33. package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/src/components/__path__/styles.css +13 -0
  34. package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.js +2 -1
  35. package/templates/react/es6/index.js +1 -1
  36. package/templates/react/es6/line-chart/default/files/src/components/__path__/index.js +76 -0
  37. package/templates/react/es6/pie-chart/pie-chart/files/src/components/__path__/index.js +38 -0
  38. package/templates/react/es6/projects/empty/files/README.md +2 -5
  39. package/templates/react/es6/projects/empty/files/__dot__editorconfig +2 -2
  40. package/templates/react/es6/projects/empty/files/__dot__env +1 -0
  41. package/templates/react/es6/projects/empty/files/__dot__gitignore +18 -8
  42. package/templates/react/es6/projects/empty/files/ignite-ui-cli.json +20 -21
  43. package/templates/react/es6/projects/empty/files/package.json +33 -43
  44. package/templates/react/es6/projects/empty/files/public/favicon.ico +0 -0
  45. package/templates/react/es6/projects/empty/files/public/index.html +42 -0
  46. package/templates/react/es6/projects/empty/files/public/manifest.json +15 -0
  47. package/templates/react/es6/projects/empty/files/public/robots.txt +3 -0
  48. package/templates/react/es6/projects/empty/files/src/App.css +52 -0
  49. package/templates/react/es6/projects/empty/files/src/App.js +39 -0
  50. package/templates/react/es6/projects/empty/files/src/components/home/index.js +25 -0
  51. package/templates/react/es6/projects/empty/files/src/components/navigation-header/index.js +47 -0
  52. package/templates/react/es6/projects/empty/files/src/hoc/asyncComponent.js +50 -0
  53. package/templates/react/es6/projects/empty/files/src/igniteuiResources.js +7 -0
  54. package/templates/react/es6/projects/empty/files/src/index.css +13 -0
  55. package/templates/react/es6/projects/empty/files/src/index.js +23 -0
  56. package/templates/react/es6/projects/empty/files/src/reportWebVitals.js +13 -0
  57. package/templates/react/es6/projects/empty/files/src/routes.json +7 -0
  58. package/templates/react/es6/projects/empty/index.js +1 -8
  59. package/templates/react/es6/radial-chart/radial-chart/files/src/components/__path__/index.js +68 -0
  60. package/templates/react/es6/radial-chart/radial-chart/files/{client → src}/data/temperature.js +2 -2
  61. package/templates/react/es6/scatter-chart/scatter-chart/files/src/components/__path__/index.js +59 -0
  62. package/templates/react/es6/scatter-chart/scatter-chart/files/src/data/temperature.js +58 -0
  63. package/templates/react/es6/tree-grid/tree-grid/files/src/components/__path__/index.js +61 -0
  64. package/templates/react/es6/tree-grid/tree-grid-custom/files/src/components/__path__/index.js +62 -0
  65. package/templates/react/es6/tree-grid/tree-grid-editing/files/src/components/__path__/index.js +62 -0
  66. package/templates/react/es6/tree-grid/tree-grid-export/files/{client → src}/components/__path__/index.js +101 -103
  67. package/templates/react/es6/tree-grid/tree-grid-export/index.js +2 -1
  68. package/templates/react/igr-es6/projects/_base/files/README.md +1 -1
  69. package/templates/react/igr-es6/projects/_base/files/__dot__editorconfig +2 -2
  70. package/templates/react/igr-es6/projects/_base/files/__dot__env +1 -0
  71. package/templates/react/igr-es6/projects/top-nav/files/src/App.js +24 -21
  72. package/templates/react/es6/bar-chart/default/files/client/pages/__path__/index.js +0 -10
  73. package/templates/react/es6/column-chart/default/files/client/pages/__path__/index.js +0 -10
  74. package/templates/react/es6/combo/combo/files/client/pages/__path__/index.js +0 -10
  75. package/templates/react/es6/doughnut-chart/doughnut-chart/files/client/pages/__path__/index.js +0 -10
  76. package/templates/react/es6/editors/editors/files/client/pages/__path__/index.js +0 -10
  77. package/templates/react/es6/financial-chart/financial-chart/files/client/pages/__path__/index.js +0 -10
  78. package/templates/react/es6/funnel-chart/funnel-chart/files/client/pages/__path__/index.js +0 -10
  79. package/templates/react/es6/generate/files/client/pages/__path__/index.js +0 -11
  80. package/templates/react/es6/grid/basic/files/client/pages/__path__/index.js +0 -10
  81. package/templates/react/es6/grid/grid-custom/files/client/pages/__path__/index.js +0 -10
  82. package/templates/react/es6/grid/grid-editing/files/client/pages/__path__/index.js +0 -10
  83. package/templates/react/es6/grid/grid-export/files/client/components/__path__/index.js +0 -124
  84. package/templates/react/es6/grid/grid-export/files/client/pages/__path__/index.js +0 -10
  85. package/templates/react/es6/grid/grid-templating/files/client/pages/__path__/index.js +0 -10
  86. package/templates/react/es6/hierarchical-grid/hierarchical-grid/files/client/pages/__path__/index.js +0 -10
  87. package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/client/components/__path__/index.js +0 -85
  88. package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/client/pages/__path__/index.js +0 -10
  89. package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/client/components/__path__/index.js +0 -85
  90. package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/client/pages/__path__/index.js +0 -10
  91. package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/client/components/__path__/index.js +0 -112
  92. package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/client/components/__path__/styles.scss +0 -13
  93. package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/client/pages/__path__/index.js +0 -10
  94. package/templates/react/es6/line-chart/default/files/client/components/__path__/index.js +0 -79
  95. package/templates/react/es6/line-chart/default/files/client/pages/__path__/index.js +0 -10
  96. package/templates/react/es6/pie-chart/pie-chart/files/client/components/__path__/index.js +0 -41
  97. package/templates/react/es6/pie-chart/pie-chart/files/client/pages/__path__/index.js +0 -10
  98. package/templates/react/es6/projects/empty/files/__dot__babelrc +0 -10
  99. package/templates/react/es6/projects/empty/files/__dot__eslintrc +0 -28
  100. package/templates/react/es6/projects/empty/files/__tests__/App.js +0 -19
  101. package/templates/react/es6/projects/empty/files/__tests__/App.spec.js +0 -11
  102. package/templates/react/es6/projects/empty/files/__tests__/CheckboxWithLabel.js +0 -31
  103. package/templates/react/es6/projects/empty/files/__tests__/CheckboxWithLabel.spec.js +0 -19
  104. package/templates/react/es6/projects/empty/files/__tests__/Sum.js +0 -6
  105. package/templates/react/es6/projects/empty/files/__tests__/Sum.spec.js +0 -6
  106. package/templates/react/es6/projects/empty/files/build.js +0 -25
  107. package/templates/react/es6/projects/empty/files/client/_variables.scss +0 -7
  108. package/templates/react/es6/projects/empty/files/client/components/Header/header.scss +0 -21
  109. package/templates/react/es6/projects/empty/files/client/components/Header/index.js +0 -21
  110. package/templates/react/es6/projects/empty/files/client/components/Toolbar/index.js +0 -20
  111. package/templates/react/es6/projects/empty/files/client/components/Toolbar/toolbar.scss +0 -49
  112. package/templates/react/es6/projects/empty/files/client/containers/App/index.js +0 -16
  113. package/templates/react/es6/projects/empty/files/client/containers/App/style.scss +0 -4
  114. package/templates/react/es6/projects/empty/files/client/general.scss +0 -24
  115. package/templates/react/es6/projects/empty/files/client/index.ejs +0 -13
  116. package/templates/react/es6/projects/empty/files/client/index.js +0 -20
  117. package/templates/react/es6/projects/empty/files/client/lines-bottom-right.svg +0 -56
  118. package/templates/react/es6/projects/empty/files/client/pages/Home/index.js +0 -9
  119. package/templates/react/es6/projects/empty/files/client/pages/routes.js +0 -49
  120. package/templates/react/es6/projects/empty/files/client/pages/routesTemplate.js +0 -9
  121. package/templates/react/es6/projects/empty/files/webpack.config.js +0 -163
  122. package/templates/react/es6/radial-chart/radial-chart/files/client/components/__path__/index.js +0 -71
  123. package/templates/react/es6/radial-chart/radial-chart/files/client/pages/__path__/index.js +0 -10
  124. package/templates/react/es6/scatter-chart/scatter-chart/files/client/components/__path__/index.js +0 -63
  125. package/templates/react/es6/scatter-chart/scatter-chart/files/client/data/temperature.js +0 -58
  126. package/templates/react/es6/scatter-chart/scatter-chart/files/client/pages/__path__/index.js +0 -10
  127. package/templates/react/es6/tree-grid/tree-grid/files/client/components/__path__/index.js +0 -64
  128. package/templates/react/es6/tree-grid/tree-grid/files/client/pages/__path__/index.js +0 -10
  129. package/templates/react/es6/tree-grid/tree-grid-custom/files/client/components/__path__/index.js +0 -65
  130. package/templates/react/es6/tree-grid/tree-grid-custom/files/client/pages/__path__/index.js +0 -10
  131. package/templates/react/es6/tree-grid/tree-grid-editing/files/client/components/__path__/index.js +0 -65
  132. package/templates/react/es6/tree-grid/tree-grid-editing/files/client/pages/__path__/index.js +0 -10
  133. package/templates/react/es6/tree-grid/tree-grid-export/files/client/pages/__path__/index.js +0 -10
@@ -0,0 +1,112 @@
1
+ import { Component } from 'react';
2
+ import * as $ from 'jquery';
3
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_core.js";
4
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_collections.js";
5
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_text.js";
6
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_io.js";
7
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_ui.js";
8
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.documents.core_core.js";
9
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_collectionsextended.js";
10
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.excel_core.js";
11
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_threading.js";
12
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_web.js";
13
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.xml.js";
14
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.documents.core_openxml.js";
15
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.excel_serialization_openxml.js";
16
+ import "@infragistics/ignite-ui-full/en/js/modules/infragistics.gridexcelexporter.js";
17
+ import "file-saver";
18
+ import $(Control) from "igniteui-react/ui/$(widget).js";
19
+ import IgCombo from "igniteui-react/ui/igCombo.js";
20
+ import IgButton from "igniteui-react/ui/igButton.js";
21
+ import { northwind } from './northwind.js';
22
+ import "./styles.css";
23
+
24
+ export default class $(ClassName) extends Component {
25
+ constructor(props) {
26
+ super(props);
27
+ this.state = {
28
+ northwind,
29
+ exportOptions:[{"text": "All Rows", "value": "allRows"}, {"text":"Expanded Rows", "value":"expandedRows"}],
30
+ exportOption: []
31
+ };
32
+
33
+ this.export = () => {
34
+ // export
35
+ $.ig.GridExcelExporter.exportGrid($("#hierarchicalGrid"), {
36
+ fileName: "igHierarchicalGrid",
37
+ worksheetName: 'Sheet1',
38
+ exportOption: this.state.exportOption
39
+ });
40
+ }
41
+ this.selectionChanged = (ev, ui) => {
42
+ this.setState({exportOption: ui.items[0]?.data.value || "allRows"}); //Export allRows as combo value can be cleared
43
+ }
44
+ }
45
+ render() {
46
+ return (
47
+ <div className="App">
48
+ <div className="App-header">
49
+ <h2 style={{textAlign: "center"}}>$(description)</h2>
50
+ </div>
51
+ <div style={{textAlign: "center"}}>
52
+ <IgCombo
53
+ id="combo"
54
+ width="200px"
55
+ mode="dropdown"
56
+ responseDataKey="exportOptions"
57
+ dataSource={this.state}
58
+ selectionChanged={this.selectionChanged}
59
+ />
60
+
61
+ <IgButton
62
+ click={this.export}
63
+ onClick={this.export}
64
+ labelText="Export"
65
+ />
66
+ </div>
67
+
68
+ <$(Control)
69
+ id="hierarchicalGrid"
70
+ features={$(gridfeatures)}
71
+ width="100%"
72
+ autoCommit={true}
73
+ autoGenerateColumns={false}
74
+ autofitLastColumn={false}
75
+ dataSource={this.state.northwind}
76
+ responseDataKey="results"
77
+ dataSourceType="json"
78
+ columns={[
79
+ { key: "EmployeeID", headerText: "Employee ID", dataType: "number", width: "0%", hidden: true },
80
+ { key: "LastName", headerText: "Last Name", dataType: "string", width: "20%" },
81
+ { key: "FirstName", headerText: "First Name", dataType: "string", width: "20%" },
82
+ { key: "Title", headerText: "Title", dataType: "string", width: "20%" },
83
+ { key: "City", headerText: "City", dataType: "string", width: "15%" },
84
+ { key: "Region", headerText: "Region", dataType: "string", width: "10%" },
85
+ { key: "Country", headerText: "Country", dataType: "string", width: "0%", hidden: true }
86
+ ]}
87
+ childrenDataProperty="Orders"
88
+ autoGenerateLayouts={false}
89
+ columnLayouts={[
90
+ {
91
+ key: "Orders",
92
+ autoCommit: true,
93
+ autoGenerateColumns: false,
94
+ autofitLastColumn: false,
95
+ primaryKey: "OrderID",
96
+ width: "100%",
97
+ columns: [
98
+ { key: "OrderID", headerText: "Order ID", dataType: "number", width: "10%", hidden: true },
99
+ { key: "Freight", headerText: "Freight", dataType: "string", width: "15%" },
100
+ { key: "ShipName", headerText: "Ship Name", dataType: "string", width: "20%" },
101
+ { key: "ShipAddress", headerText: "Ship Address", dataType: "string", width: "25%" },
102
+ { key: "ShipCity", headerText: "Ship City", dataType: "string", width: "20%" },
103
+ { key: "ShipCountry", headerText: "Ship Country", dataType: "string", width: "20%" }
104
+ ],
105
+ }
106
+ ]}
107
+ />
108
+
109
+ </div>
110
+ );
111
+ }
112
+ }
@@ -0,0 +1,13 @@
1
+ .ui-igcombo-wrapper {
2
+ margin: 1px;
3
+ }
4
+
5
+ .ui-igbutton {
6
+ height: 30px;
7
+ vertical-align: top;
8
+ margin: 1px;
9
+ }
10
+
11
+ span#_lbl {
12
+ padding: 4px 16px
13
+ }
@@ -15,11 +15,12 @@ class HierarchicalGridExportTemplate extends ReactTemplate_1.ReactTemplate {
15
15
  this.components = ["Hierarchical Grid"];
16
16
  this.controlGroup = "Data Grids";
17
17
  this.dependencies = ["igHierarchicalGrid"];
18
+ this.packages = ["file-saver@^2.0.5"];
18
19
  this.gridHelper = new GridHelper_1.GridHelper();
19
20
  this.gridHelper.hierarchical = true;
20
21
  this.hasExtraConfiguration = true;
21
22
  this.extraConfigurations.push({
22
- choices: ["Summaries", "Hiding"],
23
+ choices: ["Paging", "Hiding"],
23
24
  default: "",
24
25
  key: "features",
25
26
  message: "Select features for the igHierarchicalGrid",
@@ -9,7 +9,7 @@ class ReactProjectLibrary extends cli_core_1.BaseProjectLibrary {
9
9
  super(__dirname);
10
10
  this.name = "Ignite UI for jQuery React Wrappers";
11
11
  this.projectType = "es6";
12
- this.themes = ["infragistics", "infragistics.less", "infragistics.sass", "metro"];
12
+ this.themes = ["default"];
13
13
  const groups = require("../../jquery/js/groups.json");
14
14
  // tslint:disable-next-line:forin
15
15
  for (const key in groups) {
@@ -0,0 +1,76 @@
1
+ import { Component } from 'react';
2
+ import $(Control) from "igniteui-react/ui/$(widget).js";
3
+
4
+ export default class $(ClassName) extends Component {
5
+ constructor(props) {
6
+ super(props);
7
+ this.state = {
8
+ population: [
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
+ }
17
+ render() {
18
+ return (
19
+ <div className="$(ClassName)">
20
+ <div className="$(ClassName)-header">
21
+ <h2 style={{textAlign: "center"}}>$(description)</h2>
22
+ </div>
23
+ <div style={{float: "left", marginLeft: "13vw"}}>
24
+ <$(Control)
25
+ id="linechart"
26
+ width="60vw"
27
+ height="400px"
28
+ legend={{ element: "lineLegend" }}
29
+ title="Population per Country"
30
+ subtitle="A comparison of population in 1995 and 2005"
31
+ dataSource={ this.state }
32
+ responseDataKey="population"
33
+ axes={[
34
+ {
35
+ name: "NameAxis",
36
+ type: "categoryX",
37
+ label: "CountryName"
38
+ },
39
+ {
40
+ name: "PopulationAxis",
41
+ type: "numericY",
42
+ minimumValue: 0,
43
+ title: "Millions of People",
44
+ }
45
+ ]}
46
+ series={[
47
+ {
48
+ name: "2005Population",
49
+ type: "line",
50
+ title: "2005",
51
+ xAxis: "NameAxis",
52
+ yAxis: "PopulationAxis",
53
+ valueMemberPath: "Pop2005",
54
+ isTransitionInEnabled: true,
55
+ isHighlightingEnabled: true,
56
+ thickness: 5
57
+ },
58
+ {
59
+ name: "1995Population",
60
+ type: "line",
61
+ title: "1995",
62
+ xAxis: "NameAxis",
63
+ yAxis: "PopulationAxis",
64
+ valueMemberPath: "Pop1995",
65
+ isTransitionInEnabled: true,
66
+ isHighlightingEnabled: true,
67
+ thickness: 5
68
+ }
69
+ ]}
70
+ />
71
+ </div>
72
+ <div id="lineLegend" style={{float: "left"}}></div>
73
+ </div>
74
+ );
75
+ }
76
+ }
@@ -0,0 +1,38 @@
1
+ import { Component } from 'react';
2
+ import $(Control) from "igniteui-react/ui/$(widget).js";
3
+
4
+ export default class $(ClassName) extends Component {
5
+ constructor(props) {
6
+ super(props);
7
+ this.state = {
8
+ population: [
9
+ { "CountryName": "China", "Pop1990": 1141, "Pop2008": 1333, "Pop2025": 1458 },
10
+ { "CountryName": "India", "Pop1990": 849, "Pop2008": 1140, "Pop2025": 1398 },
11
+ { "CountryName": "United States", "Pop1990": 250, "Pop2008": 304, "Pop2025": 352 },
12
+ { "CountryName": "Indonesia", "Pop1990": 178, "Pop2008": 228, "Pop2025": 273 },
13
+ { "CountryName": "Brazil", "Pop1990": 150, "Pop2008": 192, "Pop2025": 223 }
14
+ ]
15
+ };
16
+ }
17
+ render() {
18
+ return (
19
+ <div className="$(ClassName)">
20
+ <div className="$(ClassName)-header">
21
+ <h2 style={{textAlign: "center"}}>$(description)</h2>
22
+ </div>
23
+ <div style={{display: "flex", flexFlow: "column", alignItems: "center"}}>
24
+ <$(Control)
25
+ id="piechart"
26
+ width="435px"
27
+ height="435px"
28
+ dataSource={this.state.population}
29
+ dataValue="Pop2008"
30
+ dataLabel="CountryName"
31
+ labelsPosition="bestFit"
32
+
33
+ />
34
+ </div>
35
+ </div>
36
+ );
37
+ }
38
+ }
@@ -1,10 +1,11 @@
1
1
  # $(name)
2
2
 
3
3
  This project was generated with [IgniteUI CLI](https://github.com/IgniteUI/igniteui-cli) version $(cliVersion).
4
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
5
 
5
6
  ## Development server
6
7
 
7
- Run `ig start` to build the application, start a web server and open the application in the default browser. Then navigate to `http://localhost:3002/`. Default serving port can be configured in `ignite-ui-cli.json` via `defaultPort` property.
8
+ Run `ig start` to build the application, start a web server and open the application in the default browser. Then navigate to `http://localhost:3002/`. Default serving port can be configured in `.env` via `PORT` property.
8
9
 
9
10
  ## Build
10
11
 
@@ -26,10 +27,6 @@ Add a new component or template to the project passing component ID and choosing
26
27
 
27
28
  The ID matches either a component ("grid", "combo", etc) or a predefined template. Predefined templates can provide either multiple components or fulfilling a specific use case like "form-validation", "master-detail" and so on.
28
29
 
29
- ## Running unit tests
30
-
31
- Run `ig test` to execute the illustrative tests via [Jest](https://jestjs.io/) and [Enzyme](https://github.com/airbnb/enzyme) test setup. Runs all `.spec.js/jsx` and `.test.js/jsx` files under `__tests__` folder.
32
-
33
30
  ## Help
34
31
 
35
32
  `ig help` lists the available commands and provides a brief description of what they do.
@@ -1,3 +1,3 @@
1
1
  [*.js]
2
- indent_style=space
3
- indent_size=2
2
+ indent_style = space
3
+ indent_size = 2
@@ -1,13 +1,23 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
-
3
- # compiled output
4
- /dist
5
- /tmp
6
- /out-tsc
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
7
2
 
8
3
  # dependencies
9
4
  /node_modules
5
+ /.pnp
6
+ .pnp.js
7
+
8
+ # testing
9
+ /coverage
10
10
 
11
- # System Files
11
+ # production
12
+ /build
13
+
14
+ # misc
12
15
  .DS_Store
13
- Thumbs.db
16
+ .env.local
17
+ .env.development.local
18
+ .env.test.local
19
+ .env.production.local
20
+
21
+ npm-debug.log*
22
+ yarn-debug.log*
23
+ yarn-error.log*
@@ -1,22 +1,21 @@
1
1
  {
2
- "version" : "$(cliVersion)",
3
- "project": {
4
- "defaultPort": 3002,
5
- "framework" : "react",
6
- "projectType": "es6",
7
- "projectTemplate": "empty",
8
- "theme": "$(theme)",
9
- "themePath": "$(themePath)",
10
- "cssPath": "$(cssPath)",
11
- "jsPath": "$(jsPath)",
12
- "isBundle": false,
13
- "bundleFilePath": "/igniteui/dist/ignite.js",
14
- "igniteuiSource": "./node_modules/ignite-ui",
15
- "components": [],
16
- "isShowcase": false,
17
- "version": "",
18
- "sourceRoot": "./client"
19
- },
20
- "build" : {
21
- }
22
- }
2
+ "version": "$(cliVersion)",
3
+ "project": {
4
+ "defaultPort": 3002,
5
+ "framework": "react",
6
+ "projectType": "es6",
7
+ "projectTemplate": "empty",
8
+ "theme": "$(theme)",
9
+ "themePath": "$(themePath)",
10
+ "cssPath": "$(cssPath)",
11
+ "jsPath": "$(jsPath)",
12
+ "isBundle": false,
13
+ "bundleFilePath": "",
14
+ "igniteuiSource": "./node_modules/ignite-ui",
15
+ "components": [],
16
+ "isShowcase": false,
17
+ "version": "",
18
+ "sourceRoot": "./"
19
+ },
20
+ "build": {}
21
+ }
@@ -2,51 +2,41 @@
2
2
  "name": "$(dash-name)",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
- "description": "React project for Ignite UI CLI",
6
- "author": "PwnJS",
7
- "main": "index.js",
8
- "scripts": {
9
- "start": "webpack-dev-server --config webpack.config.js",
10
- "prod": "node build.js production server",
11
- "build": "node build.js production filesystem",
12
- "test": "jest"
13
- },
14
- "jest": {
15
- "testMatch": [
16
- "<rootDir>/__tests__/**/?(*.)(spec|test).{js,jsx}"
17
- ],
18
- "testURL": "http://localhost/"
5
+ "dependencies": {
6
+ "ignite-ui": "21.1.13",
7
+ "igniteui-react": "^1.3.2",
8
+ "jquery": "^3.6.0",
9
+ "jquery-ui": "^1.12.1",
10
+ "react": "^17.0.2",
11
+ "react-dom": "^17.0.2",
12
+ "react-router-dom": "^4.3.1",
13
+ "react-scripts": "4.0.3",
14
+ "web-vitals": "^1.0.1"
19
15
  },
20
- "license": "MIT",
21
16
  "devDependencies": {
22
- "babel-core": "6.16.0",
23
- "babel-loader": "6.2.7",
24
- "babel-plugin-transform-runtime": "6.15.0",
25
- "babel-preset-es2015": "6.18.0",
26
- "babel-preset-react": "6.22.0",
27
- "css-loader": "0.14.5",
28
- "enzyme": "^3.3.0",
29
- "enzyme-adapter-react-15": "^1.0.5",
30
- "extract-text-webpack-plugin": "2.0.0-beta.5",
31
- "file-loader": "0.8.5",
32
- "html-webpack-plugin": "2.26.0",
33
- "igniteui-cli": "^$(cliVersion)",
34
- "jest": "^22.4.2",
35
- "node-sass": "^4.9.0",
36
- "react-test-renderer": "^15.6.2",
37
- "sass-loader": "3.2.3",
38
- "style-loader": "0.13.1",
39
- "webpack": "2.2.0",
40
- "webpack-dev-server": "3.10.3"
17
+ "igniteui-cli": "^$(cliVersion)"
41
18
  },
42
- "dependencies": {
43
- "babel-runtime": "6.22.0",
44
- "react": "15.6.2",
45
- "react-dom": "15.6.2",
46
- "react-router": "2.8.0",
47
- "ignite-ui": "~20.1",
48
- "jquery": ">=1.9.1",
49
- "jquery-ui": ">=1.10.5",
50
- "igniteui-react": "^1.3.0"
19
+ "scripts": {
20
+ "start": "react-scripts start",
21
+ "build": "react-scripts build",
22
+ "eject": "react-scripts eject"
23
+ },
24
+ "eslintConfig": {
25
+ "extends": [
26
+ "react-app",
27
+ "react-app/jest"
28
+ ]
29
+ },
30
+ "browserslist": {
31
+ "production": [
32
+ ">0.2%",
33
+ "not dead",
34
+ "not op_mini all"
35
+ ],
36
+ "development": [
37
+ "last 1 chrome version",
38
+ "last 1 firefox version",
39
+ "last 1 safari version"
40
+ ]
51
41
  }
52
42
  }
@@ -0,0 +1,42 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <meta name="theme-color" content="#000000" />
9
+ <meta name="description" content="Web site created using create-react-app" />
10
+ <!--
11
+ manifest.json provides metadata used when your web app is installed on a
12
+ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
13
+ -->
14
+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
15
+ <!--
16
+ Notice the use of %PUBLIC_URL% in the tags above.
17
+ It will be replaced with the URL of the `public` folder during the build.
18
+ Only files inside the `public` folder can be referenced from the HTML.
19
+
20
+ Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
21
+ work correctly both with client-side routing and a non-root public URL.
22
+ Learn how to configure a non-root public URL by running `npm run build`.
23
+ -->
24
+ <title>Ignite UI CLI React Wrappers</title>
25
+ </head>
26
+
27
+ <body>
28
+ <noscript>You need to enable JavaScript to run this app.</noscript>
29
+ <div id="root"></div>
30
+ <!--
31
+ This HTML file is a template.
32
+ If you open it directly in the browser, you will see an empty page.
33
+
34
+ You can add webfonts, meta tags, or analytics to this file.
35
+ The build step will place the bundled scripts into the <body> tag.
36
+
37
+ To begin the development, run `npm start` or `yarn start`.
38
+ To create a production bundle, use `npm run build` or `yarn build`.
39
+ -->
40
+ </body>
41
+
42
+ </html>
@@ -0,0 +1,15 @@
1
+ {
2
+ "short_name": "React App",
3
+ "name": "Create React App Sample",
4
+ "icons": [
5
+ {
6
+ "src": "favicon.ico",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon"
9
+ }
10
+ ],
11
+ "start_url": ".",
12
+ "display": "standalone",
13
+ "theme_color": "#000000",
14
+ "background_color": "#ffffff"
15
+ }
@@ -0,0 +1,3 @@
1
+ # https://www.robotstxt.org/robotstxt.html
2
+ User-agent: *
3
+ Disallow:
@@ -0,0 +1,52 @@
1
+ .content {
2
+ display: flex;
3
+ justify-content: center;
4
+ }
5
+
6
+ /* quick nav menubar */
7
+ nav,
8
+ .app__name {
9
+ background-color: rgb(0, 153, 255);
10
+ box-sizing: border-box;
11
+ }
12
+ .app__name {
13
+ font-weight: 600;
14
+ font-size: 24px;
15
+ line-height: 32px;
16
+ padding-left: 24px;
17
+ text-align: left;
18
+ color: #fff;
19
+ padding-bottom: 8px;
20
+ }
21
+
22
+ nav ul {
23
+ list-style: none;
24
+ display: flex;
25
+ justify-content: flex-start;
26
+ flex-wrap: wrap;
27
+ margin: 0;
28
+ padding: 0;
29
+ }
30
+
31
+ nav ul a {
32
+ color: #fff;
33
+ line-height: 2;
34
+ text-decoration: none;
35
+ margin: 0 5px;
36
+ }
37
+
38
+ nav ul a.active {
39
+ color: #fff;
40
+ font-weight: 600;
41
+ }
42
+ nav ul li {
43
+ margin: 0px 16px;
44
+ box-sizing: border-box;
45
+ border-bottom: 1px solid transparent;
46
+ }
47
+ nav ul li.active {
48
+ border-bottom: 2px solid #fff;
49
+ }
50
+ nav ul li:not(.active):hover {
51
+ border-bottom: 1px solid #fff;
52
+ }
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import { Route, BrowserRouter as Router, Switch } from "react-router-dom";
3
+ import asyncComponent from "./hoc/asyncComponent";
4
+ import NavigationHeader from "./components/navigation-header/index";
5
+ import routes from "./routes.json";
6
+ import "./App.css";
7
+
8
+ import "jquery";
9
+ import "jquery-ui";
10
+ import "./igniteuiResources.js";
11
+
12
+ const name = "$(name)";
13
+
14
+ function App() {
15
+ return (
16
+ <Router>
17
+ <div className="app">
18
+ <div className="app__name">{name}</div>
19
+ <NavigationHeader routes={routes}></NavigationHeader>
20
+ <div className="content">
21
+ <Switch>
22
+ {routes.map((route, i) => (
23
+ <Route
24
+ exact
25
+ key={i}
26
+ path={route.path}
27
+ component={asyncComponent(() =>
28
+ import("" + route.componentPath)
29
+ )}
30
+ />
31
+ ))}
32
+ </Switch>
33
+ </div>
34
+ </div>
35
+ </Router>
36
+ );
37
+ }
38
+
39
+ export default App;
@@ -0,0 +1,25 @@
1
+ import React, { Component } from "react";
2
+
3
+ export default class Home extends Component {
4
+ state = {};
5
+
6
+ render() {
7
+ return (
8
+ <article>
9
+ <h1>Welcome to Ignite UI for React Wrappers!</h1>
10
+ <a
11
+ href="https://github.com/IgniteUI/igniteui-react-wrappers"
12
+ target="_blank"
13
+ rel="noopener noreferrer"
14
+ >
15
+ <img
16
+ src="https://static.infragistics.com/marketing/Website/products/ignite/Ignite-header-apps-960.png"
17
+ alt="Ignite UI"
18
+ height="550"
19
+ width="550"
20
+ />
21
+ </a>
22
+ </article>
23
+ );
24
+ }
25
+ }