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.
- package/lib/commands/build.js +3 -0
- package/lib/commands/start.js +4 -1
- package/lib/templates/ReactTemplate.d.ts +4 -4
- package/lib/templates/ReactTemplate.js +42 -29
- package/package.json +4 -4
- package/templates/react/es6/bar-chart/default/files/{client → src}/components/__path__/index.js +2 -4
- package/templates/react/es6/{column-chart/default/files/client → bar-chart/default/files/src}/data/world-energy-production.js +2 -2
- package/templates/react/es6/column-chart/default/files/{client → src}/components/__path__/index.js +2 -6
- package/templates/react/es6/{bar-chart/default/files/client → column-chart/default/files/src}/data/world-energy-production.js +0 -0
- package/templates/react/es6/combo/combo/files/{client → src}/components/__path__/index.js +2 -4
- package/templates/react/es6/doughnut-chart/doughnut-chart/files/{client → src}/components/__path__/index.js +1 -4
- package/templates/react/es6/editors/editors/files/{client → src}/components/__path__/index.js +1 -4
- package/templates/react/es6/financial-chart/financial-chart/files/{client → src}/components/__path__/index.js +1 -5
- package/templates/react/es6/financial-chart/financial-chart/files/{client → src}/data/financial-data.js +1 -1
- package/templates/react/es6/funnel-chart/funnel-chart/files/{client → src}/components/__path__/index.js +1 -4
- package/templates/react/es6/generate/files/{client → src}/components/__path__/index.js +1 -1
- package/templates/react/es6/grid/basic/files/{client → src}/components/__path__/index.js +10 -12
- package/templates/react/es6/grid/grid-custom/files/{client → src}/components/__path__/index.js +10 -13
- package/templates/react/es6/grid/grid-editing/files/{client → src}/components/__path__/index.js +10 -13
- package/templates/react/es6/grid/grid-export/files/src/components/__path__/index.js +124 -0
- package/templates/react/es6/grid/grid-export/files/{client/components/__path__/styles.scss → src/components/__path__/styles.css} +0 -0
- package/templates/react/es6/grid/grid-export/index.js +2 -1
- package/templates/react/es6/grid/grid-templating/files/{client → src}/components/__path__/index.js +1 -5
- package/templates/react/es6/grid/grid-templating/files/{client → src}/components/__path__/northwind.js +0 -0
- package/templates/react/es6/hierarchical-grid/hierarchical-grid/files/{client → src}/components/__path__/index.js +1 -5
- package/templates/react/es6/hierarchical-grid/{hierarchical-grid-export/files/client → hierarchical-grid/files/src}/components/__path__/northwind.js +0 -0
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/src/components/__path__/index.js +82 -0
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/{client → src}/components/__path__/northwind.js +0 -0
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/src/components/__path__/index.js +81 -0
- package/templates/react/es6/hierarchical-grid/{hierarchical-grid/files/client → hierarchical-grid-editing/files/src}/components/__path__/northwind.js +5587 -5587
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/src/components/__path__/index.js +112 -0
- package/templates/react/es6/hierarchical-grid/{hierarchical-grid-editing/files/client → hierarchical-grid-export/files/src}/components/__path__/northwind.js +0 -0
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/src/components/__path__/styles.css +13 -0
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.js +2 -1
- package/templates/react/es6/index.js +1 -1
- package/templates/react/es6/line-chart/default/files/src/components/__path__/index.js +76 -0
- package/templates/react/es6/pie-chart/pie-chart/files/src/components/__path__/index.js +38 -0
- package/templates/react/es6/projects/empty/files/README.md +2 -5
- package/templates/react/es6/projects/empty/files/__dot__editorconfig +2 -2
- package/templates/react/es6/projects/empty/files/__dot__env +1 -0
- package/templates/react/es6/projects/empty/files/__dot__gitignore +18 -8
- package/templates/react/es6/projects/empty/files/ignite-ui-cli.json +20 -21
- package/templates/react/es6/projects/empty/files/package.json +33 -43
- package/templates/react/es6/projects/empty/files/public/favicon.ico +0 -0
- package/templates/react/es6/projects/empty/files/public/index.html +42 -0
- package/templates/react/es6/projects/empty/files/public/manifest.json +15 -0
- package/templates/react/es6/projects/empty/files/public/robots.txt +3 -0
- package/templates/react/es6/projects/empty/files/src/App.css +52 -0
- package/templates/react/es6/projects/empty/files/src/App.js +39 -0
- package/templates/react/es6/projects/empty/files/src/components/home/index.js +25 -0
- package/templates/react/es6/projects/empty/files/src/components/navigation-header/index.js +47 -0
- package/templates/react/es6/projects/empty/files/src/hoc/asyncComponent.js +50 -0
- package/templates/react/es6/projects/empty/files/src/igniteuiResources.js +7 -0
- package/templates/react/es6/projects/empty/files/src/index.css +13 -0
- package/templates/react/es6/projects/empty/files/src/index.js +23 -0
- package/templates/react/es6/projects/empty/files/src/reportWebVitals.js +13 -0
- package/templates/react/es6/projects/empty/files/src/routes.json +7 -0
- package/templates/react/es6/projects/empty/index.js +1 -8
- package/templates/react/es6/radial-chart/radial-chart/files/src/components/__path__/index.js +68 -0
- package/templates/react/es6/radial-chart/radial-chart/files/{client → src}/data/temperature.js +2 -2
- package/templates/react/es6/scatter-chart/scatter-chart/files/src/components/__path__/index.js +59 -0
- package/templates/react/es6/scatter-chart/scatter-chart/files/src/data/temperature.js +58 -0
- package/templates/react/es6/tree-grid/tree-grid/files/src/components/__path__/index.js +61 -0
- package/templates/react/es6/tree-grid/tree-grid-custom/files/src/components/__path__/index.js +62 -0
- package/templates/react/es6/tree-grid/tree-grid-editing/files/src/components/__path__/index.js +62 -0
- package/templates/react/es6/tree-grid/tree-grid-export/files/{client → src}/components/__path__/index.js +101 -103
- package/templates/react/es6/tree-grid/tree-grid-export/index.js +2 -1
- package/templates/react/igr-es6/projects/_base/files/README.md +1 -1
- package/templates/react/igr-es6/projects/_base/files/__dot__editorconfig +2 -2
- package/templates/react/igr-es6/projects/_base/files/__dot__env +1 -0
- package/templates/react/igr-es6/projects/top-nav/files/src/App.js +24 -21
- package/templates/react/es6/bar-chart/default/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/column-chart/default/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/combo/combo/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/doughnut-chart/doughnut-chart/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/editors/editors/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/financial-chart/financial-chart/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/funnel-chart/funnel-chart/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/generate/files/client/pages/__path__/index.js +0 -11
- package/templates/react/es6/grid/basic/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/grid/grid-custom/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/grid/grid-editing/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/grid/grid-export/files/client/components/__path__/index.js +0 -124
- package/templates/react/es6/grid/grid-export/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/grid/grid-templating/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/hierarchical-grid/hierarchical-grid/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/client/components/__path__/index.js +0 -85
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/client/components/__path__/index.js +0 -85
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/client/components/__path__/index.js +0 -112
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/client/components/__path__/styles.scss +0 -13
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/line-chart/default/files/client/components/__path__/index.js +0 -79
- package/templates/react/es6/line-chart/default/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/pie-chart/pie-chart/files/client/components/__path__/index.js +0 -41
- package/templates/react/es6/pie-chart/pie-chart/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/projects/empty/files/__dot__babelrc +0 -10
- package/templates/react/es6/projects/empty/files/__dot__eslintrc +0 -28
- package/templates/react/es6/projects/empty/files/__tests__/App.js +0 -19
- package/templates/react/es6/projects/empty/files/__tests__/App.spec.js +0 -11
- package/templates/react/es6/projects/empty/files/__tests__/CheckboxWithLabel.js +0 -31
- package/templates/react/es6/projects/empty/files/__tests__/CheckboxWithLabel.spec.js +0 -19
- package/templates/react/es6/projects/empty/files/__tests__/Sum.js +0 -6
- package/templates/react/es6/projects/empty/files/__tests__/Sum.spec.js +0 -6
- package/templates/react/es6/projects/empty/files/build.js +0 -25
- package/templates/react/es6/projects/empty/files/client/_variables.scss +0 -7
- package/templates/react/es6/projects/empty/files/client/components/Header/header.scss +0 -21
- package/templates/react/es6/projects/empty/files/client/components/Header/index.js +0 -21
- package/templates/react/es6/projects/empty/files/client/components/Toolbar/index.js +0 -20
- package/templates/react/es6/projects/empty/files/client/components/Toolbar/toolbar.scss +0 -49
- package/templates/react/es6/projects/empty/files/client/containers/App/index.js +0 -16
- package/templates/react/es6/projects/empty/files/client/containers/App/style.scss +0 -4
- package/templates/react/es6/projects/empty/files/client/general.scss +0 -24
- package/templates/react/es6/projects/empty/files/client/index.ejs +0 -13
- package/templates/react/es6/projects/empty/files/client/index.js +0 -20
- package/templates/react/es6/projects/empty/files/client/lines-bottom-right.svg +0 -56
- package/templates/react/es6/projects/empty/files/client/pages/Home/index.js +0 -9
- package/templates/react/es6/projects/empty/files/client/pages/routes.js +0 -49
- package/templates/react/es6/projects/empty/files/client/pages/routesTemplate.js +0 -9
- package/templates/react/es6/projects/empty/files/webpack.config.js +0 -163
- package/templates/react/es6/radial-chart/radial-chart/files/client/components/__path__/index.js +0 -71
- package/templates/react/es6/radial-chart/radial-chart/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/scatter-chart/scatter-chart/files/client/components/__path__/index.js +0 -63
- package/templates/react/es6/scatter-chart/scatter-chart/files/client/data/temperature.js +0 -58
- package/templates/react/es6/scatter-chart/scatter-chart/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/tree-grid/tree-grid/files/client/components/__path__/index.js +0 -64
- package/templates/react/es6/tree-grid/tree-grid/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/tree-grid/tree-grid-custom/files/client/components/__path__/index.js +0 -65
- package/templates/react/es6/tree-grid/tree-grid-custom/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/tree-grid/tree-grid-editing/files/client/components/__path__/index.js +0 -65
- package/templates/react/es6/tree-grid/tree-grid-editing/files/client/pages/__path__/index.js +0 -10
- package/templates/react/es6/tree-grid/tree-grid-export/files/client/pages/__path__/index.js +0 -10
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import 'jquery';
|
|
3
|
-
import 'jquery-ui';
|
|
4
|
-
import 'jquery-ui/ui/effects/effect-blind';
|
|
5
|
-
$(igniteImports)
|
|
6
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
7
|
-
|
|
8
|
-
import { northwind } from './northwind.js';
|
|
9
|
-
|
|
10
|
-
export default class $(ClassName) extends Component {
|
|
11
|
-
constructor(props) {
|
|
12
|
-
super(props);
|
|
13
|
-
this.state = northwind;
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (
|
|
17
|
-
<div className="App">
|
|
18
|
-
<div className="App-header">
|
|
19
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
20
|
-
</div>
|
|
21
|
-
<$(Control)
|
|
22
|
-
id="grid"
|
|
23
|
-
ref="grid"
|
|
24
|
-
features={$(gridfeatures)}
|
|
25
|
-
width="100%"
|
|
26
|
-
autoCommit={true}
|
|
27
|
-
dataSource={this.state}
|
|
28
|
-
dataSourceType="json"
|
|
29
|
-
responseDataKey="results"
|
|
30
|
-
autoGenerateColumns={false}
|
|
31
|
-
autofitLastColumn={false}
|
|
32
|
-
primaryKey="EmployeeID"
|
|
33
|
-
columns={[
|
|
34
|
-
{ key: "EmployeeID", headerText: "Employee ID", dataType: "number", width: "0%", hidden: true },
|
|
35
|
-
{ key: "LastName", headerText: "Last Name", dataType: "string", width: "20%" },
|
|
36
|
-
{ key: "FirstName", headerText: "First Name", dataType: "string", width: "20%" },
|
|
37
|
-
{ key: "Title", headerText: "Title", dataType: "string", width: "20%" },
|
|
38
|
-
{ key: "City", headerText: "City", dataType: "string", width: "15%" },
|
|
39
|
-
{ key: "Region", headerText: "Region", dataType: "string", width: "10%" },
|
|
40
|
-
{ key: "Country", headerText: "Country", dataType: "string", width: "0%", hidden: true }
|
|
41
|
-
]}
|
|
42
|
-
autoGenerateLayouts={false}
|
|
43
|
-
|
|
44
|
-
columnLayouts={[
|
|
45
|
-
{
|
|
46
|
-
key: "Orders",
|
|
47
|
-
autoGenerateColumns: false,
|
|
48
|
-
autofitLastColumn: false,
|
|
49
|
-
primaryKey: "OrderID",
|
|
50
|
-
width: "100%",
|
|
51
|
-
columns: [
|
|
52
|
-
{ key: "OrderID", headerText: "Order ID", dataType: "number", width: "0%", hidden: true },
|
|
53
|
-
{ key: "CustomerID", headerText: "Customer ID", dataType: "string", width: "15%" },
|
|
54
|
-
{ key: "Freight", headerText: "Freight", dataType: "number", format:"0.00", width: "15%" },
|
|
55
|
-
{ key: "FreightExpence", headerText: "Freight Expense", unbound: true, dataType: "number", format: "0.00", width: "20%", formula: "CalculateFreightExpence" },
|
|
56
|
-
{ key: "ShipName", headerText: "Ship Name", dataType: "string", width: "25%" },
|
|
57
|
-
{ key: "ShipCity", headerText: "Ship City", dataType: "string", width: "15%" },
|
|
58
|
-
],
|
|
59
|
-
features: [
|
|
60
|
-
{
|
|
61
|
-
name: "Responsive",
|
|
62
|
-
enableVerticalRendering: false,
|
|
63
|
-
columnSettings: [
|
|
64
|
-
{
|
|
65
|
-
columnKey: "Freight",
|
|
66
|
-
classes: "ui-hidden-phone"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
columnKey: "CustomerID",
|
|
70
|
-
classes: "ui-hidden-phone"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
columnKey: "ShipName",
|
|
74
|
-
classes: "ui-hidden-phone"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
]}
|
|
81
|
-
/>
|
|
82
|
-
</div>
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Header from 'components/Header';
|
|
3
|
-
import $(Control) from 'components/$(path)';
|
|
4
|
-
|
|
5
|
-
export default () => (
|
|
6
|
-
<article className="$(ClassName)">
|
|
7
|
-
<Header title="$(name)" className="header-main" />
|
|
8
|
-
<$(Control) />
|
|
9
|
-
</article>
|
|
10
|
-
);
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import 'jquery';
|
|
3
|
-
import 'jquery-ui';
|
|
4
|
-
import 'jquery-ui/ui/effects/effect-blind';
|
|
5
|
-
$(igniteImports)
|
|
6
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
7
|
-
|
|
8
|
-
import { northwind } from './northwind.js';
|
|
9
|
-
|
|
10
|
-
export default class $(ClassName) extends Component {
|
|
11
|
-
constructor(props) {
|
|
12
|
-
super(props);
|
|
13
|
-
this.state = northwind;
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (
|
|
17
|
-
<div className="App">
|
|
18
|
-
<div className="App-header">
|
|
19
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
20
|
-
</div>
|
|
21
|
-
<$(Control)
|
|
22
|
-
id="grid"
|
|
23
|
-
ref="grid"
|
|
24
|
-
features={$(gridfeatures)}
|
|
25
|
-
width="100%"
|
|
26
|
-
autoCommit={true}
|
|
27
|
-
dataSource={this.state}
|
|
28
|
-
dataSourceType="json"
|
|
29
|
-
responseDataKey="results"
|
|
30
|
-
autoGenerateColumns={false}
|
|
31
|
-
autofitLastColumn={false}
|
|
32
|
-
primaryKey="EmployeeID"
|
|
33
|
-
columns={[
|
|
34
|
-
{ key: "EmployeeID", headerText: "Employee ID", dataType: "number", width: "0%", hidden: true },
|
|
35
|
-
{ key: "LastName", headerText: "Last Name", dataType: "string", width: "20%" },
|
|
36
|
-
{ key: "FirstName", headerText: "First Name", dataType: "string", width: "20%" },
|
|
37
|
-
{ key: "Title", headerText: "Title", dataType: "string", width: "20%" },
|
|
38
|
-
{ key: "City", headerText: "City", dataType: "string", width: "15%" },
|
|
39
|
-
{ key: "Region", headerText: "Region", dataType: "string", width: "10%" },
|
|
40
|
-
{ key: "Country", headerText: "Country", dataType: "string", width: "0%", hidden: true }
|
|
41
|
-
]}
|
|
42
|
-
autoGenerateLayouts={false}
|
|
43
|
-
|
|
44
|
-
columnLayouts={[
|
|
45
|
-
{
|
|
46
|
-
key: "Orders",
|
|
47
|
-
autoGenerateColumns: false,
|
|
48
|
-
autofitLastColumn: false,
|
|
49
|
-
primaryKey: "OrderID",
|
|
50
|
-
width: "100%",
|
|
51
|
-
columns: [
|
|
52
|
-
{ key: "OrderID", headerText: "Order ID", dataType: "number", width: "0%", hidden: true },
|
|
53
|
-
{ key: "CustomerID", headerText: "Customer ID", dataType: "string", width: "15%" },
|
|
54
|
-
{ key: "Freight", headerText: "Freight", dataType: "number", format:"0.00", width: "15%" },
|
|
55
|
-
{ key: "FreightExpence", headerText: "Freight Expense", unbound: true, dataType: "number", format: "0.00", width: "20%", formula: "CalculateFreightExpence" },
|
|
56
|
-
{ key: "ShipName", headerText: "Ship Name", dataType: "string", width: "25%" },
|
|
57
|
-
{ key: "ShipCity", headerText: "Ship City", dataType: "string", width: "15%" },
|
|
58
|
-
],
|
|
59
|
-
features: [
|
|
60
|
-
{
|
|
61
|
-
name: "Responsive",
|
|
62
|
-
enableVerticalRendering: false,
|
|
63
|
-
columnSettings: [
|
|
64
|
-
{
|
|
65
|
-
columnKey: "Freight",
|
|
66
|
-
classes: "ui-hidden-phone"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
columnKey: "CustomerID",
|
|
70
|
-
classes: "ui-hidden-phone"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
columnKey: "ShipName",
|
|
74
|
-
classes: "ui-hidden-phone"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
]}
|
|
81
|
-
/>
|
|
82
|
-
</div>
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Header from 'components/Header';
|
|
3
|
-
import $(Control) from 'components/$(path)';
|
|
4
|
-
|
|
5
|
-
export default () => (
|
|
6
|
-
<article className="$(ClassName)">
|
|
7
|
-
<Header title="$(name)" className="header-main" />
|
|
8
|
-
<$(Control) />
|
|
9
|
-
</article>
|
|
10
|
-
);
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import * as $ from 'jquery';
|
|
3
|
-
import 'jquery-ui';
|
|
4
|
-
$(igniteImports)
|
|
5
|
-
import "ignite-ui/js/modules/infragistics.ext_core.js";
|
|
6
|
-
import "ignite-ui/js/modules/infragistics.ext_collections.js";
|
|
7
|
-
import "ignite-ui/js/modules/infragistics.ext_text.js";
|
|
8
|
-
import "ignite-ui/js/modules/infragistics.ext_io.js";
|
|
9
|
-
import "ignite-ui/js/modules/infragistics.ext_ui.js";
|
|
10
|
-
import "ignite-ui/js/modules/infragistics.documents.core_core.js";
|
|
11
|
-
import "ignite-ui/js/modules/infragistics.ext_collectionsextended.js";
|
|
12
|
-
import "ignite-ui/js/modules/infragistics.excel_core.js";
|
|
13
|
-
import "ignite-ui/js/modules/infragistics.ext_threading.js";
|
|
14
|
-
import "ignite-ui/js/modules/infragistics.ext_web.js";
|
|
15
|
-
import "ignite-ui/js/modules/infragistics.xml.js";
|
|
16
|
-
import "ignite-ui/js/modules/infragistics.documents.core_openxml.js";
|
|
17
|
-
import "ignite-ui/js/modules/infragistics.excel_serialization_openxml.js";
|
|
18
|
-
import "ignite-ui/js/modules/infragistics.gridexcelexporter.js";
|
|
19
|
-
|
|
20
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
21
|
-
|
|
22
|
-
import { northwind } from './northwind.js';
|
|
23
|
-
import "./styles.scss";
|
|
24
|
-
|
|
25
|
-
export default class $(ClassName) extends Component {
|
|
26
|
-
constructor(props) {
|
|
27
|
-
super(props);
|
|
28
|
-
this.state = {
|
|
29
|
-
northwind,
|
|
30
|
-
exportOptions:[{"text": "All Rows", "value": "allRows"}, {"text":"Expanded Rows", "value":"expandedRows"}],
|
|
31
|
-
exportOption: []
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
this.export = () => {
|
|
35
|
-
// export
|
|
36
|
-
$.ig.GridExcelExporter.exportGrid($("#hierarchicalGrid"), {
|
|
37
|
-
fileName: "igHierarchicalGrid",
|
|
38
|
-
worksheetName: 'Sheet1',
|
|
39
|
-
exportOption: this.state.exportOption
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
this.selectionChanged = (ev, ui) => {
|
|
43
|
-
this.setState({exportOption: ui.items[0].data.value});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
return (
|
|
48
|
-
<div className="App">
|
|
49
|
-
<div className="App-header">
|
|
50
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
51
|
-
</div>
|
|
52
|
-
<div style={{textAlign: "center"}}>
|
|
53
|
-
<IgCombo
|
|
54
|
-
id="combo"
|
|
55
|
-
width="200px"
|
|
56
|
-
mode="dropdown"
|
|
57
|
-
responseDataKey="exportOptions"
|
|
58
|
-
dataSource={this.state}
|
|
59
|
-
selectionChanged={this.selectionChanged}
|
|
60
|
-
/>
|
|
61
|
-
|
|
62
|
-
<IgButton
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Header from 'components/Header';
|
|
3
|
-
import $(Control) from 'components/$(path)';
|
|
4
|
-
|
|
5
|
-
export default () => (
|
|
6
|
-
<article className="$(ClassName)">
|
|
7
|
-
<Header title="$(name)" className="header-main" />
|
|
8
|
-
<$(Control) />
|
|
9
|
-
</article>
|
|
10
|
-
);
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import 'jquery';
|
|
3
|
-
import 'jquery-ui';
|
|
4
|
-
$(igniteImports)
|
|
5
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
6
|
-
|
|
7
|
-
export default class $(ClassName) extends Component {
|
|
8
|
-
constructor(props) {
|
|
9
|
-
super(props);
|
|
10
|
-
this.state = {
|
|
11
|
-
population: [
|
|
12
|
-
{ "CountryName": "China", "Pop1995": 1216, "Pop2005": 1297, "Pop2015": 1361, "Pop2025": 1394 },
|
|
13
|
-
{ "CountryName": "India", "Pop1995": 920, "Pop2005": 1090, "Pop2015": 1251, "Pop2025": 1396 },
|
|
14
|
-
{ "CountryName": "United States", "Pop1995": 266, "Pop2005": 295, "Pop2015": 322, "Pop2025": 351 },
|
|
15
|
-
{ "CountryName": "Indonesia", "Pop1995": 197, "Pop2005": 229, "Pop2015": 256, "Pop2025": 277 },
|
|
16
|
-
{ "CountryName": "Brazil", "Pop1995": 161, "Pop2005": 186, "Pop2015": 204, "Pop2025": 218 }
|
|
17
|
-
]
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (
|
|
22
|
-
<div className="$(ClassName)">
|
|
23
|
-
<div className="$(ClassName)-header">
|
|
24
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
25
|
-
</div>
|
|
26
|
-
<div style={{float: "left", marginLeft: "13vw"}}>
|
|
27
|
-
<$(Control)
|
|
28
|
-
id="linechart"
|
|
29
|
-
width="60vw"
|
|
30
|
-
height="400px"
|
|
31
|
-
legend={{ element: "lineLegend" }}
|
|
32
|
-
title="Population per Country"
|
|
33
|
-
subtitle="A comparison of population in 1995 and 2005"
|
|
34
|
-
dataSource={ this.state }
|
|
35
|
-
responseDataKey="population"
|
|
36
|
-
axes={[
|
|
37
|
-
{
|
|
38
|
-
name: "NameAxis",
|
|
39
|
-
type: "categoryX",
|
|
40
|
-
label: "CountryName"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "PopulationAxis",
|
|
44
|
-
type: "numericY",
|
|
45
|
-
minimumValue: 0,
|
|
46
|
-
title: "Millions of People",
|
|
47
|
-
}
|
|
48
|
-
]}
|
|
49
|
-
series={[
|
|
50
|
-
{
|
|
51
|
-
name: "2005Population",
|
|
52
|
-
type: "line",
|
|
53
|
-
title: "2005",
|
|
54
|
-
xAxis: "NameAxis",
|
|
55
|
-
yAxis: "PopulationAxis",
|
|
56
|
-
valueMemberPath: "Pop2005",
|
|
57
|
-
isTransitionInEnabled: true,
|
|
58
|
-
isHighlightingEnabled: true,
|
|
59
|
-
thickness: 5
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: "1995Population",
|
|
63
|
-
type: "line",
|
|
64
|
-
title: "1995",
|
|
65
|
-
xAxis: "NameAxis",
|
|
66
|
-
yAxis: "PopulationAxis",
|
|
67
|
-
valueMemberPath: "Pop1995",
|
|
68
|
-
isTransitionInEnabled: true,
|
|
69
|
-
isHighlightingEnabled: true,
|
|
70
|
-
thickness: 5
|
|
71
|
-
}
|
|
72
|
-
]}
|
|
73
|
-
/>
|
|
74
|
-
</div>
|
|
75
|
-
<div id="lineLegend" style={{float: "left"}}></div>
|
|
76
|
-
</div>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Header from 'components/Header';
|
|
3
|
-
import $(ClassName) from 'components/$(path)';
|
|
4
|
-
|
|
5
|
-
export default () => (
|
|
6
|
-
<article className="$(ClassName)">
|
|
7
|
-
<Header title="$(name)" className="header-main" />
|
|
8
|
-
<$(ClassName) />
|
|
9
|
-
</article>
|
|
10
|
-
);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import 'jquery';
|
|
3
|
-
import 'jquery-ui';
|
|
4
|
-
$(igniteImports)
|
|
5
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
6
|
-
|
|
7
|
-
export default class $(ClassName) extends Component {
|
|
8
|
-
constructor(props) {
|
|
9
|
-
super(props);
|
|
10
|
-
this.state = {
|
|
11
|
-
population: [
|
|
12
|
-
{ "CountryName": "China", "Pop1990": 1141, "Pop2008": 1333, "Pop2025": 1458 },
|
|
13
|
-
{ "CountryName": "India", "Pop1990": 849, "Pop2008": 1140, "Pop2025": 1398 },
|
|
14
|
-
{ "CountryName": "United States", "Pop1990": 250, "Pop2008": 304, "Pop2025": 352 },
|
|
15
|
-
{ "CountryName": "Indonesia", "Pop1990": 178, "Pop2008": 228, "Pop2025": 273 },
|
|
16
|
-
{ "CountryName": "Brazil", "Pop1990": 150, "Pop2008": 192, "Pop2025": 223 }
|
|
17
|
-
]
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (
|
|
22
|
-
<div className="$(ClassName)">
|
|
23
|
-
<div className="$(ClassName)-header">
|
|
24
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
25
|
-
</div>
|
|
26
|
-
<div style={{display: "flex", flexFlow: "column", alignItems: "center"}}>
|
|
27
|
-
<$(Control)
|
|
28
|
-
id="piechart"
|
|
29
|
-
width="435px"
|
|
30
|
-
height="435px"
|
|
31
|
-
dataSource={this.state.population}
|
|
32
|
-
dataValue="Pop2008"
|
|
33
|
-
dataLabel="CountryName"
|
|
34
|
-
labelsPosition="bestFit"
|
|
35
|
-
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Header from 'components/Header';
|
|
3
|
-
import $(ClassName) from 'components/$(path)';
|
|
4
|
-
|
|
5
|
-
export default () => (
|
|
6
|
-
<article className="$(ClassName)">
|
|
7
|
-
<Header title="$(name)" className="header-main" />
|
|
8
|
-
<$(ClassName) />
|
|
9
|
-
</article>
|
|
10
|
-
);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
extends:
|
|
2
|
-
eslint-config-airbnb
|
|
3
|
-
|
|
4
|
-
parser:
|
|
5
|
-
babel-eslint
|
|
6
|
-
|
|
7
|
-
settings:
|
|
8
|
-
ecmascript: 6
|
|
9
|
-
|
|
10
|
-
ecmaFeatures:
|
|
11
|
-
jsx: true
|
|
12
|
-
modules: true
|
|
13
|
-
destructuring: true
|
|
14
|
-
classes: true
|
|
15
|
-
forOf: true
|
|
16
|
-
blockBindings: true
|
|
17
|
-
arrowFunctions: true
|
|
18
|
-
|
|
19
|
-
env:
|
|
20
|
-
browser: true
|
|
21
|
-
|
|
22
|
-
rules:
|
|
23
|
-
indent: 2
|
|
24
|
-
func-style: 0
|
|
25
|
-
func-names: 0
|
|
26
|
-
comma-dangle: 0
|
|
27
|
-
no-console: 0
|
|
28
|
-
no-param-reassign: 0
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//This component is used only for testing illustration.
|
|
2
|
-
import React, { Component } from 'react';
|
|
3
|
-
|
|
4
|
-
class App extends Component {
|
|
5
|
-
render() {
|
|
6
|
-
return (
|
|
7
|
-
<div className="App">
|
|
8
|
-
<header className="App-header">
|
|
9
|
-
<h1 className="App-title">Welcome</h1>
|
|
10
|
-
</header>
|
|
11
|
-
<p className="App-intro">
|
|
12
|
-
To get started, edit <code>src/App.js</code> and save to reload.
|
|
13
|
-
</p>
|
|
14
|
-
</div>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default App;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//Illustrative test sample using ReactDOM.
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import ReactDOM from 'react-dom';
|
|
5
|
-
import App from './App';
|
|
6
|
-
|
|
7
|
-
it('renders without crashing', () => {
|
|
8
|
-
const div = document.createElement('div');
|
|
9
|
-
ReactDOM.render(<App />, div);
|
|
10
|
-
ReactDOM.unmountComponentAtNode(div);
|
|
11
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//This component is used only for testing illustration.
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
export default class CheckboxWithLabel extends React.Component {
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super(props);
|
|
8
|
-
this.state = {isChecked: false};
|
|
9
|
-
|
|
10
|
-
// bind manually because React class components don't auto-bind
|
|
11
|
-
// http://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html#autobinding
|
|
12
|
-
this.onChange = this.onChange.bind(this);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
onChange() {
|
|
16
|
-
this.setState({isChecked: !this.state.isChecked});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
render() {
|
|
20
|
-
return (
|
|
21
|
-
<label>
|
|
22
|
-
<input
|
|
23
|
-
type="checkbox"
|
|
24
|
-
checked={this.state.isChecked}
|
|
25
|
-
onChange={this.onChange}
|
|
26
|
-
/>
|
|
27
|
-
{this.state.isChecked ? this.props.labelOn : this.props.labelOff}
|
|
28
|
-
</label>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//Illustrative test sample using enzyme shallow.
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import Enzyme from "enzyme";
|
|
5
|
-
import CheckboxWithLabel from './CheckboxWithLabel';
|
|
6
|
-
|
|
7
|
-
import Adapter from 'enzyme-adapter-react-15';
|
|
8
|
-
Enzyme.configure({ adapter: new Adapter() });
|
|
9
|
-
|
|
10
|
-
test('CheckboxWithLabel changes the text after click', () => {
|
|
11
|
-
// Render a checkbox with label in the document
|
|
12
|
-
const checkbox = Enzyme.shallow(<CheckboxWithLabel labelOn="On" labelOff="Off" />);
|
|
13
|
-
|
|
14
|
-
expect(checkbox.text()).toEqual('Off');
|
|
15
|
-
|
|
16
|
-
checkbox.find('input').simulate('change');
|
|
17
|
-
|
|
18
|
-
expect(checkbox.text()).toEqual('On');
|
|
19
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* eslint no-var: 0 */
|
|
2
|
-
var exec = require('child_process').exec;
|
|
3
|
-
|
|
4
|
-
var executable = (!process.argv[3].indexOf('server')) ? 'webpack-dev-server' : 'webpack';
|
|
5
|
-
var cmdLine = '"./node_modules/.bin/' + executable + '"';
|
|
6
|
-
var environ = (!process.argv[2].indexOf('development')) ? 'development' : 'production';
|
|
7
|
-
var command;
|
|
8
|
-
|
|
9
|
-
if (process.platform === 'win32') {
|
|
10
|
-
cmdLine = 'set NODE_ENV=' + environ + ' && ' + cmdLine;
|
|
11
|
-
} else {
|
|
12
|
-
cmdLine = 'NODE_ENV=' + environ + ' ' + cmdLine;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
command = exec(cmdLine);
|
|
16
|
-
|
|
17
|
-
command.stdout.on('data', function(data) {
|
|
18
|
-
process.stdout.write(data);
|
|
19
|
-
});
|
|
20
|
-
command.stderr.on('data', function(data) {
|
|
21
|
-
process.stderr.write(data);
|
|
22
|
-
});
|
|
23
|
-
command.on('error', function(err) {
|
|
24
|
-
process.stderr.write(err);
|
|
25
|
-
});
|