igniteui-cli 8.2.0-alpha.0 → 8.2.2

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
@@ -45,6 +45,9 @@ command = {
45
45
  cd14: config.project.theme
46
46
  });
47
47
  yield cli_core_1.PackageManager.installPackages();
48
+ if (config.project.projectType === "es6") {
49
+ return;
50
+ }
48
51
  if (config.project.theme.includes(".less") || config.project.theme.includes(".sass")) {
49
52
  fs.mkdirSync("./themes");
50
53
  const source = path.join(config.project.igniteuiSource, "/css/themes/", config.project.theme.split(".")[0]);
@@ -70,8 +70,11 @@ command = {
70
70
  browserSync.init(bsConfig);
71
71
  break;
72
72
  case "react":
73
- if (projectType === "igr-es6" && port) {
73
+ if (port) {
74
74
  // https://facebook.github.io/create-react-app/docs/advanced-configuration
75
+ // react-scripts start "--port=dafaultPort" is not a valid command for all environments.
76
+ // .env file is included and used by both igr-es6 and es6 now,
77
+ // to specify the port for all environments (Windows, Mac, etc)
75
78
  process.env.PORT = `${port}`;
76
79
  port = null;
77
80
  }
@@ -15,8 +15,8 @@ export declare class ReactTemplate implements Template {
15
15
  packages: any[];
16
16
  delimiters: import("@igniteui/cli-core").TemplateDelimiters;
17
17
  protected widget: string;
18
- private configFile;
19
- private replacePattern;
18
+ private appRoutsPath;
19
+ private igniteResources;
20
20
  /**
21
21
  * Base ReactTemplate constructor
22
22
  * @param rootPath The template folder path. Pass in `__dirname`
@@ -29,8 +29,8 @@ export declare class ReactTemplate implements Template {
29
29
  registerInProject(projectPath: string, name: string, options?: AddTemplateArgs): void;
30
30
  getExtraConfiguration(): ControlExtraConfiguration[];
31
31
  setExtraConfiguration(extraConfigKeys: {}): void;
32
- protected getImports(): string;
33
32
  protected folderName(pathName: string): string;
34
33
  protected getViewLink(name: string): string;
35
- protected getToolbarLink(name: string): string;
34
+ protected registerSourceFiles(projectPath: string): void;
35
+ protected getNavText(name: string): string;
36
36
  }
@@ -18,8 +18,8 @@ class ReactTemplate {
18
18
  this.hasExtraConfiguration = false;
19
19
  this.packages = [];
20
20
  this.delimiters = cli_core_1.defaultDelimiters;
21
- this.configFile = "./client/pages/routesTemplate.js";
22
- this.replacePattern = /\[[\s\S]*\](?=;)/;
21
+ this.appRoutsPath = "./src/routes.json";
22
+ this.igniteResources = "src/igniteuiResources.js";
23
23
  }
24
24
  get templatePaths() {
25
25
  return [path.join(this.rootPath, "files")];
@@ -37,7 +37,6 @@ class ReactTemplate {
37
37
  config["widget"] = this.widget;
38
38
  config["Control"] = cli_core_1.Util.className(this.widget);
39
39
  }
40
- config["igniteImports"] = this.getImports();
41
40
  if (this.description) {
42
41
  config["description"] = this.description;
43
42
  }
@@ -47,15 +46,17 @@ class ReactTemplate {
47
46
  if (options && options.skipRoute) {
48
47
  return;
49
48
  }
50
- let configFile = fs.readFileSync(path.join(projectPath, this.configFile), "utf8");
51
- const viewsArr = JSON.parse(this.replacePattern.exec(configFile)[0]);
49
+ // add Routing config for each added component
50
+ const appRoutsFile = fs.readFileSync(path.join(projectPath, this.appRoutsPath), "utf8");
51
+ const viewsArr = JSON.parse(appRoutsFile);
52
52
  viewsArr.push({
53
- folder: this.getViewLink(name),
53
+ // tslint:disable:object-literal-sort-keys
54
54
  path: "/" + this.folderName(cli_core_1.Util.nameFromPath(name)),
55
- text: this.getToolbarLink(name)
55
+ componentPath: this.getViewLink(name),
56
+ text: this.getNavText(name)
56
57
  });
57
- configFile = configFile.replace(this.replacePattern, JSON.stringify(viewsArr, null, 4));
58
- fs.writeFileSync(path.join(projectPath, this.configFile), configFile);
58
+ fs.writeFileSync(path.join(projectPath, this.appRoutsPath), JSON.stringify(viewsArr, null, 4));
59
+ this.registerSourceFiles(projectPath);
59
60
  }
60
61
  getExtraConfiguration() {
61
62
  throw new Error("Method not implemented.");
@@ -63,19 +64,6 @@ class ReactTemplate {
63
64
  setExtraConfiguration(extraConfigKeys) {
64
65
  throw new Error("Method not implemented.");
65
66
  }
66
- getImports() {
67
- // tslint:disable-next-line:no-submodule-imports
68
- const config = require("@igniteui/cli-core/packages/components");
69
- let builder = "";
70
- builder += "\r\n";
71
- builder += "// Ignite UI Required Combined JavaScript Files\r\n";
72
- builder += `import "ignite-ui/js/infragistics.core.js";\r\n`;
73
- builder += `import "ignite-ui/js/infragistics.lob.js";\r\n`;
74
- if (this.dependencies.filter(x => config.dv.indexOf(x) !== -1).length) {
75
- builder += `import "ignite-ui/js/infragistics.dv.js";\r\n`;
76
- }
77
- return builder;
78
- }
79
67
  folderName(pathName) {
80
68
  //TODO: should remove the spaces
81
69
  const parts = path.parse(pathName);
@@ -84,11 +72,11 @@ class ReactTemplate {
84
72
  folderName = path.join(parts.dir, parts.name);
85
73
  folderName = folderName.replace(/\\/g, "/");
86
74
  // TODO: config-based "src/app"?
87
- const relative = path.join(process.cwd(), "client/components", folderName);
75
+ const relative = path.join(process.cwd(), "components", folderName);
88
76
  // path.join will also resolve any '..' segments
89
77
  // so if relative result doesn't start with CWD it's out of project root
90
78
  if (!relative.startsWith(process.cwd())) {
91
- cli_core_1.Util.error(`Path ${"client/components/" + folderName} is not valid!`, "red");
79
+ cli_core_1.Util.error(`Path ${"components/" + folderName} is not valid!`, "red");
92
80
  process.exit(1);
93
81
  }
94
82
  //clean up potential leading spaces in folder names (`path/ name`):
@@ -97,13 +85,38 @@ class ReactTemplate {
97
85
  return cli_core_1.Util.lowerDashed(folderName);
98
86
  }
99
87
  getViewLink(name) {
100
- const filePath = this.folderName(name) + "/index.js";
101
- return filePath;
88
+ return "./components/" + this.folderName(name);
89
+ }
90
+ registerSourceFiles(projectPath) {
91
+ // tslint:disable:no-submodule-imports
92
+ const components = require("@igniteui/cli-core/packages/components");
93
+ const igResPath = path.join(projectPath, this.igniteResources);
94
+ if (fs.existsSync(igResPath)) {
95
+ let igniteuiResFile = fs.readFileSync(igResPath, "utf8");
96
+ const freeVersionPath = "ignite-ui/";
97
+ const fullVersionPath = "@infragistics/ignite-ui-full/en/";
98
+ const dvPath = "@infragistics/ignite-ui-full/en/js/infragistics.dv.js";
99
+ const dvDep = this.dependencies.filter(x => components.dv.indexOf(x) !== -1).length !== 0;
100
+ const fullDep = this.dependencies.filter(x => components.full.indexOf(x) !== -1).length !== 0;
101
+ if (fullDep) {
102
+ while (igniteuiResFile.includes(freeVersionPath)) {
103
+ igniteuiResFile = igniteuiResFile.replace(freeVersionPath, fullVersionPath);
104
+ igniteuiResFile = igniteuiResFile.replace("-lite", "");
105
+ }
106
+ fs.writeFileSync(igResPath, igniteuiResFile);
107
+ }
108
+ if (dvDep && !igniteuiResFile.includes(dvPath)) {
109
+ fs.appendFileSync(igResPath, `${'\r\n// Ignite UI Charts Required JavaScript File\r\nimport "'
110
+ + dvPath + '";\r\n'}`);
111
+ }
112
+ }
113
+ else {
114
+ cli_core_1.Util.log(`igniteuiResources.js file NOT found!`);
115
+ }
102
116
  }
103
- getToolbarLink(name) {
117
+ getNavText(name) {
104
118
  name = cli_core_1.Util.nameFromPath(name);
105
- const toolbarLink = name.replace(/\w\S*/g, txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
106
- return toolbarLink;
119
+ return name.replace(/\w\S*/g, txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
107
120
  }
108
121
  }
109
122
  exports.ReactTemplate = ReactTemplate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "8.2.0-alpha.0",
3
+ "version": "8.2.2",
4
4
  "description": "CLI tool for creating Ignite UI projects",
5
5
  "keywords": [
6
6
  "CLI",
@@ -71,8 +71,8 @@
71
71
  "all": true
72
72
  },
73
73
  "dependencies": {
74
- "@igniteui/angular-templates": "~12.2.820-alpha.0",
75
- "@igniteui/cli-core": "~8.2.0-alpha.0",
74
+ "@igniteui/angular-templates": "~12.2.822",
75
+ "@igniteui/cli-core": "~8.2.2",
76
76
  "chalk": "^2.3.2",
77
77
  "fs-extra": "^3.0.1",
78
78
  "glob": "^7.1.2",
@@ -80,7 +80,7 @@
80
80
  "opn": "^5.3.0",
81
81
  "resolve": "^1.6.0",
82
82
  "through2": "^2.0.3",
83
- "typescript": "^4.3.2",
83
+ "typescript": "~4.3.2",
84
84
  "yargs": "^8.0.2"
85
85
  },
86
86
  "devDependencies": {
@@ -1,7 +1,5 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
2
+
5
3
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
4
 
7
5
  import { data } from "../../data/world-energy-production.js";
@@ -2,7 +2,7 @@
2
2
  Data from U.S. Energy Information Administration (2012)
3
3
  */
4
4
  var data = {
5
- lastFiveYears: [
5
+ lastFiveYears: [
6
6
  {
7
7
  "Year": 2005,
8
8
  "Canada": 18.8932,
@@ -52,4 +52,4 @@ var data = {
52
52
  "China": 90.3918,
53
53
  }
54
54
  ]};
55
- export { data };
55
+ export { data };
@@ -1,9 +1,5 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
5
2
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
-
7
3
  import { data } from "../../data/world-energy-production.js";
8
4
 
9
5
  export default class $(ClassName) extends Component {
@@ -22,7 +18,7 @@ export default class $(ClassName) extends Component {
22
18
  id="columnchart"
23
19
  width="65vw"
24
20
  height="350px"
25
- dataSource={this.state.view}
21
+ dataSource={this.state.view}
26
22
  responseDataKey="lastFiveYears"
27
23
  legend={{ element: "columnLegend" }}
28
24
  title="Energy Production Per Country"
@@ -1,7 +1,5 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
2
+
5
3
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
4
 
7
5
  export default class $(ClassName) extends Component {
@@ -1,7 +1,4 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
5
2
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
3
 
7
4
  export default class $(ClassName) extends Component {
@@ -1,7 +1,4 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
5
2
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
3
 
7
4
  export default class $(ClassName) extends Component {
@@ -1,9 +1,5 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
5
2
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
-
7
3
  import { dataObj } from "../../data/financial-data.js";
8
4
 
9
5
  export default class $(ClassName) extends Component {
@@ -1,6 +1,6 @@
1
1
  var dataObj = {
2
2
 
3
- randomOldData : [{ "Index": 0, "Open": 1000, "High": 1026, "Low": 977, "Close": 1014, "Volume": 1995.25, "Date": "\/Date(1262383200000)\/", "DateString": "1/2/2010", "Category": null, "Change": 14, "ChangePerCent": 1.4000000000000001 }, { "Index": 1, "Open": 1014, "High": 1033.5, "Low": 984.75, "Close": 989, "Volume": 2003, "Date": "\/Date(1262469600000)\/", "DateString": "1/3/2010", "Category": null, "Change": -25, "ChangePerCent": -2.4654832347140041 }, { "Index": 2, "Open": 989, "High": 1004, "Low": 960.5, "Close": 1000, "Volume": 1993, "Date": "\/Date(1262556000000)\/", "DateString": "1/4/2010", "Category": null, "Change": 11, "ChangePerCent": 1.1122345803842264 }, { "Index": 3, "Open": 1000, "High": 1020.25, "Low": 980.75, "Close": 995, "Volume": 1982.25, "Date": "\/Date(1262642400000)\/", "DateString": "1/5/2010", "Category": null, "Change": -5, "ChangePerCent": -0.5 }, { "Index": 4, "Open": 995, "High": 1030.5, "Low": 964, "Close": 1015, "Volume": 1971, "Date": "\/Date(1262728800000)\/", "DateString": "1/6/2010", "Category": null, "Change": 20, "ChangePerCent": 2.0100502512562812 }, { "Index": 5, "Open": 1015, "High": 1026.5, "Low": 998.75, "Close": 1009, "Volume": 1982.5, "Date": "\/Date(1262815200000)\/", "DateString": "1/7/2010", "Category": null, "Change": -6, "ChangePerCent": -0.59113300492610843 }, { "Index": 6, "Open": 1009, "High": 1039, "Low": 984.5, "Close": 1033, "Volume": 1969.25, "Date": "\/Date(1262901600000)\/", "DateString": "1/8/2010", "Category": null, "Change": 24, "ChangePerCent": 2.3785926660059467 }, { "Index": 7, "Open": 1033, "High": 1064.25, "Low": 1005.75, "Close": 1035, "Volume": 1966.25, "Date": "\/Date(1262988000000)\/", "DateString": "1/9/2010", "Category": null, "Change": 2, "ChangePerCent": 0.1936108422071636 }, { "Index": 8, "Open": 1035, "High": 1059.25, "Low": 1021.5, "Close": 1026, "Volume": 1951, "Date": "\/Date(1263074400000)\/", "DateString": "1/10/2010", "Category": null, "Change": -9, "ChangePerCent": -0.86956521739130432 }, { "Index": 9, "Open": 1026, "High": 1047, "Low": 1001, "Close": 1017, "Volume": 1941.25, "Date": "\/Date(1263160800000)\/", "DateString": "1/11/2010", "Category": null, "Change": -9, "ChangePerCent": -0.8771929824561403 }, { "Index": 10, "Open": 1017, "High": 1044, "Low": 982.75, "Close": 1012, "Volume": 1932.25, "Date": "\/Date(1263247200000)\/", "DateString": "1/12/2010", "Category": null, "Change": -5, "ChangePerCent": -0.49164208456243852 }, { "Index": 11, "Open": 1012, "High": 1019.75, "Low": 989.75, "Close": 993, "Volume": 1909.75, "Date": "\/Date(1263333600000)\/", "DateString": "1/13/2010", "Category": null, "Change": -19, "ChangePerCent": -1.8774703557312251 }, { "Index": 12, "Open": 993, "High": 1021.25, "Low": 966.25, "Close": 1019, "Volume": 1908.5, "Date": "\/Date(1263420000000)\/", "DateString": "1/14/2010", "Category": null, "Change": 26, "ChangePerCent": 2.6183282980866065 }, { "Index": 13, "Open": 1019, "High": 1034, "Low": 1002, "Close": 1024, "Volume": 1893.25, "Date": "\/Date(1263506400000)\/", "DateString": "1/15/2010", "Category": null, "Change": 5, "ChangePerCent": 0.49067713444553485 }, { "Index": 14, "Open": 1024, "High": 1047.75, "Low": 1001.5, "Close": 1029, "Volume": 1893.5, "Date": "\/Date(1263592800000)\/", "DateString": "1/16/2010", "Category": null, "Change": 5, "ChangePerCent": 0.48828125 }, { "Index": 15, "Open": 1029, "High": 1050.75, "Low": 1012.5, "Close": 1035, "Volume": 1920, "Date": "\/Date(1263679200000)\/", "DateString": "1/17/2010", "Category": null, "Change": 6, "ChangePerCent": 0.58309037900874638 }, { "Index": 16, "Open": 1035, "High": 1065.75, "Low": 1011, "Close": 1019, "Volume": 1896.5, "Date": "\/Date(1263765600000)\/", "DateString": "1/18/2010", "Category": null, "Change": -16, "ChangePerCent": -1.5458937198067633 }, { "Index": 17, "Open": 1019, "High": 1055.75, "Low": 993.25, "Close": 1041, "Volume": 1916.25, "Date": "\/Date(1263852000000)\/", "DateString": "1/19/2010", "Category": null, "Change": 22, "ChangePerCent": 2.1589793915603535 }, { "Index": 18, "Open": 1041, "High": 1058.75, "Low": 1017.75, "Close": 1043, "Volume": 1919.25, "Date": "\/Date(1263938400000)\/", "DateString": "1/20/2010", "Category": null, "Change": 2, "ChangePerCent": 0.19212295869356388 }, { "Index": 19, "Open": 1043, "High": 1060.25, "Low": 998.75, "Close": 1045, "Volume": 1902.75, "Date": "\/Date(1264024800000)\/", "DateString": "1/21/2010", "Category": null, "Change": 2, "ChangePerCent": 0.19175455417066153 }, { "Index": 20, "Open": 1045, "High": 1080.75, "Low": 1026.5, "Close": 1029, "Volume": 1892.75, "Date": "\/Date(1264111200000)\/", "DateString": "1/22/2010", "Category": null, "Change": -16, "ChangePerCent": -1.5311004784688995 }, { "Index": 21, "Open": 1029, "High": 1051.25, "Low": 1009.25, "Close": 1051, "Volume": 1878.75, "Date": "\/Date(1264197600000)\/", "DateString": "1/23/2010", "Category": null, "Change": 22, "ChangePerCent": 2.1379980563654035 }, { "Index": 22, "Open": 1051, "High": 1076.5, "Low": 1018.25, "Close": 1064, "Volume": 1883.25, "Date": "\/Date(1264284000000)\/", "DateString": "1/24/2010", "Category": null, "Change": 13, "ChangePerCent": 1.2369172216936251 }, { "Index": 23, "Open": 1064, "High": 1074.25, "Low": 1035.5, "Close": 1048, "Volume": 1862.5, "Date": "\/Date(1264370400000)\/", "DateString": "1/25/2010", "Category": null, "Change": -16, "ChangePerCent": -1.5037593984962405 }, { "Index": 24, "Open": 1048, "High": 1081.5, "Low": 1022.5, "Close": 1037, "Volume": 1851.75, "Date": "\/Date(1264456800000)\/", "DateString": "1/26/2010", "Category": null, "Change": -11, "ChangePerCent": -1.0496183206106871 }, { "Index": 25, "Open": 1037, "High": 1042.5, "Low": 1016.75, "Close": 1038, "Volume": 1856, "Date": "\/Date(1264543200000)\/", "DateString": "1/27/2010", "Category": null, "Change": 1, "ChangePerCent": 0.09643201542912247 }, { "Index": 26, "Open": 1038, "High": 1059.25, "Low": 996.75, "Close": 1015, "Volume": 1850.75, "Date": "\/Date(1264629600000)\/", "DateString": "1/28/2010", "Category": null, "Change": -23, "ChangePerCent": -2.2157996146435455 }, { "Index": 27, "Open": 1015, "High": 1032, "Low": 988.5, "Close": 1027, "Volume": 1850, "Date": "\/Date(1264716000000)\/", "DateString": "1/29/2010", "Category": null, "Change": 12, "ChangePerCent": 1.1822660098522169 }, { "Index": 28, "Open": 1027, "High": 1043, "Low": 1002, "Close": 1012, "Volume": 1842.75, "Date": "\/Date(1264802400000)\/", "DateString": "1/30/2010", "Category": null, "Change": -15, "ChangePerCent": -1.4605647517039921 }, { "Index": 29, "Open": 1012, "High": 1048, "Low": 974.5, "Close": 974, "Volume": 1838.25, "Date": "\/Date(1264888800000)\/", "DateString": "1/31/2010", "Category": null, "Change": -38, "ChangePerCent": -3.7549407114624502 }, { "Index": 30, "Open": 974, "High": 995.25, "Low": 962, "Close": 985, "Volume": 1810.25, "Date": "\/Date(1264975200000)\/", "DateString": "2/1/2010", "Category": null, "Change": 11, "ChangePerCent": 1.1293634496919918 }, { "Index": 31, "Open": 985, "High": 1027.5, "Low": 953.25, "Close": 974, "Volume": 1839, "Date": "\/Date(1265061600000)\/", "DateString": "2/2/2010", "Category": null, "Change": -11, "ChangePerCent": -1.116751269035533 }, { "Index": 32, "Open": 974, "High": 1009, "Low": 934, "Close": 998, "Volume": 1822.75, "Date": "\/Date(1265148000000)\/", "DateString": "2/3/2010", "Category": null, "Change": 24, "ChangePerCent": 2.4640657084188913 }, { "Index": 33, "Open": 998, "High": 1003, "Low": 975.75, "Close": 980, "Volume": 1817.5, "Date": "\/Date(1265234400000)\/", "DateString": "2/4/2010", "Category": null, "Change": -18, "ChangePerCent": -1.8036072144288577 }, { "Index": 34, "Open": 980, "High": 1013, "Low": 942.25, "Close": 944, "Volume": 1826, "Date": "\/Date(1265320800000)\/", "DateString": "2/5/2010", "Category": null, "Change": -36, "ChangePerCent": -3.6734693877551026 }, { "Index": 35, "Open": 944, "High": 979.25, "Low": 920.5, "Close": 928, "Volume": 1801.5, "Date": "\/Date(1265407200000)\/", "DateString": "2/6/2010", "Category": null, "Change": -16, "ChangePerCent": -1.6949152542372881 }, { "Index": 36, "Open": 928, "High": 946, "Low": 898, "Close": 912, "Volume": 1835, "Date": "\/Date(1265493600000)\/", "DateString": "2/7/2010", "Category": null, "Change": -16, "ChangePerCent": -1.7241379310344827 }, { "Index": 37, "Open": 912, "High": 919.25, "Low": 887.5, "Close": 906, "Volume": 1831.75, "Date": "\/Date(1265580000000)\/", "DateString": "2/8/2010", "Category": null, "Change": -6, "ChangePerCent": -0.6578947368421052 }, { "Index": 38, "Open": 906, "High": 921.75, "Low": 886.5, "Close": 887, "Volume": 1838.5, "Date": "\/Date(1265666400000)\/", "DateString": "2/9/2010", "Category": null, "Change": -19, "ChangePerCent": -2.0971302428256071 }, { "Index": 39, "Open": 887, "High": 923.5, "Low": 860.75, "Close": 896, "Volume": 1806, "Date": "\/Date(1265752800000)\/", "DateString": "2/10/2010", "Category": null, "Change": 9, "ChangePerCent": 1.0146561443066515 }, { "Index": 40, "Open": 896, "High": 914, "Low": 870, "Close": 875, "Volume": 1817.75, "Date": "\/Date(1265839200000)\/", "DateString": "2/11/2010", "Category": null, "Change": -21, "ChangePerCent": -2.34375 }, { "Index": 41, "Open": 875, "High": 903.5, "Low": 854, "Close": 871, "Volume": 1816, "Date": "\/Date(1265925600000)\/", "DateString": "2/12/2010", "Category": null, "Change": -4, "ChangePerCent": -0.45714285714285718 }, { "Index": 42, "Open": 871, "High": 892.75, "Low": 855.75, "Close": 866, "Volume": 1799.75, "Date": "\/Date(1266012000000)\/", "DateString": "2/13/2010", "Category": null, "Change": -5, "ChangePerCent": -0.57405281285878307 }, { "Index": 43, "Open": 866, "High": 902.25, "Low": 824.75, "Close": 894, "Volume": 1781.5, "Date": "\/Date(1266098400000)\/", "DateString": "2/14/2010", "Category": null, "Change": 28, "ChangePerCent": 3.2332563510392611 }, { "Index": 44, "Open": 894, "High": 919.25, "Low": 870.25, "Close": 870, "Volume": 1795.5, "Date": "\/Date(1266184800000)\/", "DateString": "2/15/2010", "Category": null, "Change": -24, "ChangePerCent": -2.6845637583892619 }, { "Index": 45, "Open": 870, "High": 891.75, "Low": 845.5, "Close": 849, "Volume": 1823.5, "Date": "\/Date(1266271200000)\/", "DateString": "2/16/2010", "Category": null, "Change": -21, "ChangePerCent": -2.4137931034482758 }, { "Index": 46, "Open": 849, "High": 874, "Low": 832.5, "Close": 859, "Volume": 1853.5, "Date": "\/Date(1266357600000)\/", "DateString": "2/17/2010", "Category": null, "Change": 10, "ChangePerCent": 1.1778563015312131 }, { "Index": 47, "Open": 859, "High": 886.75, "Low": 829, "Close": 871, "Volume": 1847.25, "Date": "\/Date(1266444000000)\/", "DateString": "2/18/2010", "Category": null, "Change": 12, "ChangePerCent": 1.3969732246798603 }, { "Index": 48, "Open": 871, "High": 892.25, "Low": 841.25, "Close": 864, "Volume": 1858, "Date": "\/Date(1266530400000)\/", "DateString": "2/19/2010", "Category": null, "Change": -7, "ChangePerCent": -0.80367393800229625 }, { "Index": 49, "Open": 864, "High": 886.75, "Low": 830.25, "Close": 843, "Volume": 1866, "Date": "\/Date(1266616800000)\/", "DateString": "2/20/2010", "Category": null, "Change": -21, "ChangePerCent": -2.4305555555555558 }],
3
+ randomOldData : [{ "Index": 0, "Open": 1000, "High": 1026, "Low": 977, "Close": 1014, "Volume": 1995.25, "Date": "Date(1262383200000)", "DateString": "1/2/2010", "Category": null, "Change": 14, "ChangePerCent": 1.4000000000000001 }, { "Index": 1, "Open": 1014, "High": 1033.5, "Low": 984.75, "Close": 989, "Volume": 2003, "Date": "Date(1262469600000)", "DateString": "1/3/2010", "Category": null, "Change": -25, "ChangePerCent": -2.4654832347140041 }, { "Index": 2, "Open": 989, "High": 1004, "Low": 960.5, "Close": 1000, "Volume": 1993, "Date": "Date(1262556000000)", "DateString": "1/4/2010", "Category": null, "Change": 11, "ChangePerCent": 1.1122345803842264 }, { "Index": 3, "Open": 1000, "High": 1020.25, "Low": 980.75, "Close": 995, "Volume": 1982.25, "Date": "Date(1262642400000)", "DateString": "1/5/2010", "Category": null, "Change": -5, "ChangePerCent": -0.5 }, { "Index": 4, "Open": 995, "High": 1030.5, "Low": 964, "Close": 1015, "Volume": 1971, "Date": "Date(1262728800000)", "DateString": "1/6/2010", "Category": null, "Change": 20, "ChangePerCent": 2.0100502512562812 }, { "Index": 5, "Open": 1015, "High": 1026.5, "Low": 998.75, "Close": 1009, "Volume": 1982.5, "Date": "Date(1262815200000)", "DateString": "1/7/2010", "Category": null, "Change": -6, "ChangePerCent": -0.59113300492610843 }, { "Index": 6, "Open": 1009, "High": 1039, "Low": 984.5, "Close": 1033, "Volume": 1969.25, "Date": "Date(1262901600000)", "DateString": "1/8/2010", "Category": null, "Change": 24, "ChangePerCent": 2.3785926660059467 }, { "Index": 7, "Open": 1033, "High": 1064.25, "Low": 1005.75, "Close": 1035, "Volume": 1966.25, "Date": "Date(1262988000000)", "DateString": "1/9/2010", "Category": null, "Change": 2, "ChangePerCent": 0.1936108422071636 }, { "Index": 8, "Open": 1035, "High": 1059.25, "Low": 1021.5, "Close": 1026, "Volume": 1951, "Date": "Date(1263074400000)", "DateString": "1/10/2010", "Category": null, "Change": -9, "ChangePerCent": -0.86956521739130432 }, { "Index": 9, "Open": 1026, "High": 1047, "Low": 1001, "Close": 1017, "Volume": 1941.25, "Date": "Date(1263160800000)", "DateString": "1/11/2010", "Category": null, "Change": -9, "ChangePerCent": -0.8771929824561403 }, { "Index": 10, "Open": 1017, "High": 1044, "Low": 982.75, "Close": 1012, "Volume": 1932.25, "Date": "Date(1263247200000)", "DateString": "1/12/2010", "Category": null, "Change": -5, "ChangePerCent": -0.49164208456243852 }, { "Index": 11, "Open": 1012, "High": 1019.75, "Low": 989.75, "Close": 993, "Volume": 1909.75, "Date": "Date(1263333600000)", "DateString": "1/13/2010", "Category": null, "Change": -19, "ChangePerCent": -1.8774703557312251 }, { "Index": 12, "Open": 993, "High": 1021.25, "Low": 966.25, "Close": 1019, "Volume": 1908.5, "Date": "Date(1263420000000)", "DateString": "1/14/2010", "Category": null, "Change": 26, "ChangePerCent": 2.6183282980866065 }, { "Index": 13, "Open": 1019, "High": 1034, "Low": 1002, "Close": 1024, "Volume": 1893.25, "Date": "Date(1263506400000)", "DateString": "1/15/2010", "Category": null, "Change": 5, "ChangePerCent": 0.49067713444553485 }, { "Index": 14, "Open": 1024, "High": 1047.75, "Low": 1001.5, "Close": 1029, "Volume": 1893.5, "Date": "Date(1263592800000)", "DateString": "1/16/2010", "Category": null, "Change": 5, "ChangePerCent": 0.48828125 }, { "Index": 15, "Open": 1029, "High": 1050.75, "Low": 1012.5, "Close": 1035, "Volume": 1920, "Date": "Date(1263679200000)", "DateString": "1/17/2010", "Category": null, "Change": 6, "ChangePerCent": 0.58309037900874638 }, { "Index": 16, "Open": 1035, "High": 1065.75, "Low": 1011, "Close": 1019, "Volume": 1896.5, "Date": "Date(1263765600000)", "DateString": "1/18/2010", "Category": null, "Change": -16, "ChangePerCent": -1.5458937198067633 }, { "Index": 17, "Open": 1019, "High": 1055.75, "Low": 993.25, "Close": 1041, "Volume": 1916.25, "Date": "Date(1263852000000)", "DateString": "1/19/2010", "Category": null, "Change": 22, "ChangePerCent": 2.1589793915603535 }, { "Index": 18, "Open": 1041, "High": 1058.75, "Low": 1017.75, "Close": 1043, "Volume": 1919.25, "Date": "Date(1263938400000)", "DateString": "1/20/2010", "Category": null, "Change": 2, "ChangePerCent": 0.19212295869356388 }, { "Index": 19, "Open": 1043, "High": 1060.25, "Low": 998.75, "Close": 1045, "Volume": 1902.75, "Date": "Date(1264024800000)", "DateString": "1/21/2010", "Category": null, "Change": 2, "ChangePerCent": 0.19175455417066153 }, { "Index": 20, "Open": 1045, "High": 1080.75, "Low": 1026.5, "Close": 1029, "Volume": 1892.75, "Date": "Date(1264111200000)", "DateString": "1/22/2010", "Category": null, "Change": -16, "ChangePerCent": -1.5311004784688995 }, { "Index": 21, "Open": 1029, "High": 1051.25, "Low": 1009.25, "Close": 1051, "Volume": 1878.75, "Date": "Date(1264197600000)", "DateString": "1/23/2010", "Category": null, "Change": 22, "ChangePerCent": 2.1379980563654035 }, { "Index": 22, "Open": 1051, "High": 1076.5, "Low": 1018.25, "Close": 1064, "Volume": 1883.25, "Date": "Date(1264284000000)", "DateString": "1/24/2010", "Category": null, "Change": 13, "ChangePerCent": 1.2369172216936251 }, { "Index": 23, "Open": 1064, "High": 1074.25, "Low": 1035.5, "Close": 1048, "Volume": 1862.5, "Date": "Date(1264370400000)", "DateString": "1/25/2010", "Category": null, "Change": -16, "ChangePerCent": -1.5037593984962405 }, { "Index": 24, "Open": 1048, "High": 1081.5, "Low": 1022.5, "Close": 1037, "Volume": 1851.75, "Date": "Date(1264456800000)", "DateString": "1/26/2010", "Category": null, "Change": -11, "ChangePerCent": -1.0496183206106871 }, { "Index": 25, "Open": 1037, "High": 1042.5, "Low": 1016.75, "Close": 1038, "Volume": 1856, "Date": "Date(1264543200000)", "DateString": "1/27/2010", "Category": null, "Change": 1, "ChangePerCent": 0.09643201542912247 }, { "Index": 26, "Open": 1038, "High": 1059.25, "Low": 996.75, "Close": 1015, "Volume": 1850.75, "Date": "Date(1264629600000)", "DateString": "1/28/2010", "Category": null, "Change": -23, "ChangePerCent": -2.2157996146435455 }, { "Index": 27, "Open": 1015, "High": 1032, "Low": 988.5, "Close": 1027, "Volume": 1850, "Date": "Date(1264716000000)", "DateString": "1/29/2010", "Category": null, "Change": 12, "ChangePerCent": 1.1822660098522169 }, { "Index": 28, "Open": 1027, "High": 1043, "Low": 1002, "Close": 1012, "Volume": 1842.75, "Date": "Date(1264802400000)", "DateString": "1/30/2010", "Category": null, "Change": -15, "ChangePerCent": -1.4605647517039921 }, { "Index": 29, "Open": 1012, "High": 1048, "Low": 974.5, "Close": 974, "Volume": 1838.25, "Date": "Date(1264888800000)", "DateString": "1/31/2010", "Category": null, "Change": -38, "ChangePerCent": -3.7549407114624502 }, { "Index": 30, "Open": 974, "High": 995.25, "Low": 962, "Close": 985, "Volume": 1810.25, "Date": "Date(1264975200000)", "DateString": "2/1/2010", "Category": null, "Change": 11, "ChangePerCent": 1.1293634496919918 }, { "Index": 31, "Open": 985, "High": 1027.5, "Low": 953.25, "Close": 974, "Volume": 1839, "Date": "Date(1265061600000)", "DateString": "2/2/2010", "Category": null, "Change": -11, "ChangePerCent": -1.116751269035533 }, { "Index": 32, "Open": 974, "High": 1009, "Low": 934, "Close": 998, "Volume": 1822.75, "Date": "Date(1265148000000)", "DateString": "2/3/2010", "Category": null, "Change": 24, "ChangePerCent": 2.4640657084188913 }, { "Index": 33, "Open": 998, "High": 1003, "Low": 975.75, "Close": 980, "Volume": 1817.5, "Date": "Date(1265234400000)", "DateString": "2/4/2010", "Category": null, "Change": -18, "ChangePerCent": -1.8036072144288577 }, { "Index": 34, "Open": 980, "High": 1013, "Low": 942.25, "Close": 944, "Volume": 1826, "Date": "Date(1265320800000)", "DateString": "2/5/2010", "Category": null, "Change": -36, "ChangePerCent": -3.6734693877551026 }, { "Index": 35, "Open": 944, "High": 979.25, "Low": 920.5, "Close": 928, "Volume": 1801.5, "Date": "Date(1265407200000)", "DateString": "2/6/2010", "Category": null, "Change": -16, "ChangePerCent": -1.6949152542372881 }, { "Index": 36, "Open": 928, "High": 946, "Low": 898, "Close": 912, "Volume": 1835, "Date": "Date(1265493600000)", "DateString": "2/7/2010", "Category": null, "Change": -16, "ChangePerCent": -1.7241379310344827 }, { "Index": 37, "Open": 912, "High": 919.25, "Low": 887.5, "Close": 906, "Volume": 1831.75, "Date": "Date(1265580000000)", "DateString": "2/8/2010", "Category": null, "Change": -6, "ChangePerCent": -0.6578947368421052 }, { "Index": 38, "Open": 906, "High": 921.75, "Low": 886.5, "Close": 887, "Volume": 1838.5, "Date": "Date(1265666400000)", "DateString": "2/9/2010", "Category": null, "Change": -19, "ChangePerCent": -2.0971302428256071 }, { "Index": 39, "Open": 887, "High": 923.5, "Low": 860.75, "Close": 896, "Volume": 1806, "Date": "Date(1265752800000)", "DateString": "2/10/2010", "Category": null, "Change": 9, "ChangePerCent": 1.0146561443066515 }, { "Index": 40, "Open": 896, "High": 914, "Low": 870, "Close": 875, "Volume": 1817.75, "Date": "Date(1265839200000)", "DateString": "2/11/2010", "Category": null, "Change": -21, "ChangePerCent": -2.34375 }, { "Index": 41, "Open": 875, "High": 903.5, "Low": 854, "Close": 871, "Volume": 1816, "Date": "Date(1265925600000)", "DateString": "2/12/2010", "Category": null, "Change": -4, "ChangePerCent": -0.45714285714285718 }, { "Index": 42, "Open": 871, "High": 892.75, "Low": 855.75, "Close": 866, "Volume": 1799.75, "Date": "Date(1266012000000)", "DateString": "2/13/2010", "Category": null, "Change": -5, "ChangePerCent": -0.57405281285878307 }, { "Index": 43, "Open": 866, "High": 902.25, "Low": 824.75, "Close": 894, "Volume": 1781.5, "Date": "Date(1266098400000)", "DateString": "2/14/2010", "Category": null, "Change": 28, "ChangePerCent": 3.2332563510392611 }, { "Index": 44, "Open": 894, "High": 919.25, "Low": 870.25, "Close": 870, "Volume": 1795.5, "Date": "Date(1266184800000)", "DateString": "2/15/2010", "Category": null, "Change": -24, "ChangePerCent": -2.6845637583892619 }, { "Index": 45, "Open": 870, "High": 891.75, "Low": 845.5, "Close": 849, "Volume": 1823.5, "Date": "Date(1266271200000)", "DateString": "2/16/2010", "Category": null, "Change": -21, "ChangePerCent": -2.4137931034482758 }, { "Index": 46, "Open": 849, "High": 874, "Low": 832.5, "Close": 859, "Volume": 1853.5, "Date": "Date(1266357600000)", "DateString": "2/17/2010", "Category": null, "Change": 10, "ChangePerCent": 1.1778563015312131 }, { "Index": 47, "Open": 859, "High": 886.75, "Low": 829, "Close": 871, "Volume": 1847.25, "Date": "Date(1266444000000)", "DateString": "2/18/2010", "Category": null, "Change": 12, "ChangePerCent": 1.3969732246798603 }, { "Index": 48, "Open": 871, "High": 892.25, "Low": 841.25, "Close": 864, "Volume": 1858, "Date": "Date(1266530400000)", "DateString": "2/19/2010", "Category": null, "Change": -7, "ChangePerCent": -0.80367393800229625 }, { "Index": 49, "Open": 864, "High": 886.75, "Low": 830.25, "Close": 843, "Volume": 1866, "Date": "Date(1266616800000)", "DateString": "2/20/2010", "Category": null, "Change": -21, "ChangePerCent": -2.4305555555555558 }],
4
4
  /*
5
5
  ADBE stock data
6
6
  */
@@ -1,7 +1,4 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
5
2
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
3
 
7
4
  export default class $(ClassName) extends Component {
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
 
3
3
  export default class $(ClassName) extends Component {
4
4
  constructor(props) {
@@ -1,7 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
2
+
5
3
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
4
 
7
5
  export default class App extends Component {
@@ -9,15 +7,15 @@ export default class App extends Component {
9
7
  super(props);
10
8
  this.state = {
11
9
  products: [
12
- { "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "\/Date(1059660800000)\/" } },
13
- { "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1159660800000)\/" } },
14
- { "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1259660800000)\/" } },
15
- { "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1359660800000)\/" } },
16
- { "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1459660800000)\/" } },
17
- { "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1559660800000)\/" } },
18
- { "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1659660800000)\/" } },
19
- { "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1759660800000)\/" } },
20
- { "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1859660800000)\/" } }
10
+ { "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "Date(1059660800000)" } },
11
+ { "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1159660800000)" } },
12
+ { "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1259660800000)" } },
13
+ { "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1359660800000)" } },
14
+ { "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1459660800000)" } },
15
+ { "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1559660800000)" } },
16
+ { "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1659660800000)" } },
17
+ { "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "Date(1759660800000)" } },
18
+ { "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "Date(1859660800000)" } }
21
19
  ]
22
20
  };
23
21
  }
@@ -1,7 +1,4 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
4
- $(igniteImports)
1
+ import { Component } from 'react';
5
2
  import $(Control) from "igniteui-react/ui/$(widget).js";
6
3
 
7
4
  export default class $(ClassName) extends Component {
@@ -9,15 +6,15 @@ export default class $(ClassName) extends Component {
9
6
  super(props);
10
7
  this.state = {
11
8
  products: [
12
- { "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "\/Date(1059660800000)\/" } },
13
- { "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1159660800000)\/" } },
14
- { "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1259660800000)\/" } },
15
- { "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1359660800000)\/" } },
16
- { "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1459660800000)\/" } },
17
- { "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1559660800000)\/" } },
18
- { "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1659660800000)\/" } },
19
- { "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1759660800000)\/" } },
20
- { "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1859660800000)\/" } }
9
+ { "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "Date(1059660800000)" } },
10
+ { "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1159660800000)" } },
11
+ { "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1259660800000)" } },
12
+ { "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1359660800000)" } },
13
+ { "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1459660800000)" } },
14
+ { "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1559660800000)" } },
15
+ { "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1659660800000)" } },
16
+ { "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "Date(1759660800000)" } },
17
+ { "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "Date(1859660800000)" } }
21
18
  ]
22
19
  };
23
20
  }
@@ -1,8 +1,5 @@
1
- import React, { Component } from 'react';
2
- import 'jquery';
3
- import 'jquery-ui';
1
+ import { Component } from 'react';
4
2
  import 'jquery-ui/ui/effects/effect-blind';
5
- $(igniteImports)
6
3
  import $(Control) from "igniteui-react/ui/$(widget).js";
7
4
 
8
5
  export default class $(ClassName) extends Component {
@@ -10,15 +7,15 @@ export default class $(ClassName) extends Component {
10
7
  super(props);
11
8
  this.state = {
12
9
  products: [
13
- { "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "\/Date(1059660800000)\/" } },
14
- { "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1159660800000)\/" } },
15
- { "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1259660800000)\/" } },
16
- { "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1359660800000)\/" } },
17
- { "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1459660800000)\/" } },
18
- { "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1559660800000)\/" } },
19
- { "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1659660800000)\/" } },
20
- { "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1759660800000)\/" } },
21
- { "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1859660800000)\/" } }
10
+ { "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "Date(1059660800000)" } },
11
+ { "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1159660800000)" } },
12
+ { "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1259660800000)" } },
13
+ { "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "Date(1359660800000)" } },
14
+ { "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1459660800000)" } },
15
+ { "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1559660800000)" } },
16
+ { "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "Date(1659660800000)" } },
17
+ { "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "Date(1759660800000)" } },
18
+ { "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "Date(1859660800000)" } }
22
19
  ]
23
20
  };
24
21
  }