igniteui-cli 13.0.2 → 13.1.0-beta.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.
- package/lib/commands/add.js +17 -5
- package/lib/commands/new.js +4 -1
- package/lib/commands/start.js +11 -6
- package/lib/templates/IgniteUIForReactTemplate.d.ts +2 -2
- package/lib/templates/IgniteUIForReactTemplate.js +36 -12
- package/package.json +3 -3
- package/templates/angular/index.js +1 -1
- package/templates/react/ReactTypeScriptFileUpdate.d.ts +50 -0
- package/templates/react/ReactTypeScriptFileUpdate.js +333 -0
- package/templates/react/igr-es6/index.js +1 -1
- package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/__filePrefix__.tsx +56 -0
- package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/style.module.css +12 -0
- package/templates/react/igr-ts/bullet-graph/default/index.d.ts +1 -0
- package/templates/react/igr-ts/bullet-graph/default/index.js +18 -0
- package/templates/react/igr-ts/bullet-graph/index.d.ts +1 -0
- package/templates/react/igr-ts/bullet-graph/index.js +15 -0
- package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/__filePrefix__.tsx +41 -0
- package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/category-chart/default/index.d.ts +1 -0
- package/templates/react/igr-ts/category-chart/default/index.js +19 -0
- package/templates/react/igr-ts/category-chart/index.d.ts +1 -0
- package/templates/react/igr-ts/category-chart/index.js +16 -0
- package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/__filePrefix__.tsx +63 -0
- package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/doughnut-chart/default/index.d.ts +1 -0
- package/templates/react/igr-ts/doughnut-chart/default/index.js +18 -0
- package/templates/react/igr-ts/doughnut-chart/index.d.ts +1 -0
- package/templates/react/igr-ts/doughnut-chart/index.js +15 -0
- package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.tsx +49 -0
- package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/style.module.css +10 -0
- package/templates/react/igr-ts/financial-chart/default/index.d.ts +1 -0
- package/templates/react/igr-ts/financial-chart/default/index.js +20 -0
- package/templates/react/igr-ts/financial-chart/index.d.ts +1 -0
- package/templates/react/igr-ts/financial-chart/index.js +16 -0
- package/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.tsx +58 -0
- package/templates/react/igr-ts/grid/basic/files/src/app/__path__/data.tsx +46 -0
- package/templates/react/igr-ts/grid/basic/files/src/app/__path__/style.module.css +17 -0
- package/templates/react/igr-ts/grid/basic/index.d.ts +1 -0
- package/templates/react/igr-ts/grid/basic/index.js +23 -0
- package/templates/react/igr-ts/grid/index.d.ts +1 -0
- package/templates/react/igr-ts/grid/index.js +15 -0
- package/templates/react/igr-ts/groups.json +5 -0
- package/templates/react/igr-ts/index.d.ts +1 -0
- package/templates/react/igr-ts/index.js +17 -0
- package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.tsx +59 -0
- package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/style.module.css +12 -0
- package/templates/react/igr-ts/linear-gauge/default/index.d.ts +1 -0
- package/templates/react/igr-ts/linear-gauge/default/index.js +18 -0
- package/templates/react/igr-ts/linear-gauge/index.d.ts +1 -0
- package/templates/react/igr-ts/linear-gauge/index.js +15 -0
- package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.tsx +57 -0
- package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/pie-chart/default/index.d.ts +1 -0
- package/templates/react/igr-ts/pie-chart/default/index.js +18 -0
- package/templates/react/igr-ts/pie-chart/index.d.ts +1 -0
- package/templates/react/igr-ts/pie-chart/index.js +15 -0
- package/templates/react/igr-ts/projects/_base/files/README.md +48 -0
- package/templates/react/igr-ts/projects/_base/files/__dot__eslintrc.cjs +18 -0
- package/templates/react/igr-ts/projects/_base/files/__dot__gitignore +23 -0
- package/templates/react/igr-ts/projects/_base/files/ignite-ui-cli.json +16 -0
- package/templates/react/igr-ts/projects/_base/files/index.html +28 -0
- package/templates/react/igr-ts/projects/_base/files/package.json +51 -0
- package/templates/react/igr-ts/projects/_base/files/public/favicon.ico +0 -0
- package/templates/react/igr-ts/projects/_base/files/src/app/app-routes.tsx +3 -0
- package/templates/react/igr-ts/projects/_base/files/src/app/app.test.tsx +8 -0
- package/templates/react/igr-ts/projects/_base/files/src/app/app.tsx +12 -0
- package/templates/react/igr-ts/projects/_base/files/src/index.css +18 -0
- package/templates/react/igr-ts/projects/_base/files/src/main.tsx +25 -0
- package/templates/react/igr-ts/projects/_base/files/src/setupTests.ts +5 -0
- package/templates/react/igr-ts/projects/_base/files/tsconfig.json +26 -0
- package/templates/react/igr-ts/projects/_base/files/vite.config.ts +23 -0
- package/templates/react/igr-ts/projects/_base/index.d.ts +29 -0
- package/templates/react/igr-ts/projects/_base/index.js +58 -0
- package/templates/react/igr-ts/projects/_base_with_home/files/public/logo.svg +7 -0
- package/templates/react/igr-ts/projects/_base_with_home/files/src/app/app-routes.tsx +5 -0
- package/templates/react/igr-ts/projects/_base_with_home/files/src/app/home/home.tsx +24 -0
- package/templates/react/igr-ts/projects/_base_with_home/files/src/app/home/style.module.css +36 -0
- package/templates/react/igr-ts/projects/_base_with_home/index.d.ts +14 -0
- package/templates/react/igr-ts/projects/_base_with_home/index.js +22 -0
- package/templates/react/igr-ts/projects/base/index.d.ts +14 -0
- package/templates/react/igr-ts/projects/base/index.js +22 -0
- package/templates/react/igr-ts/projects/empty/index.d.ts +14 -0
- package/templates/react/igr-ts/projects/empty/index.js +22 -0
- package/templates/react/igr-ts/projects/top-nav/files/src/app/app.css +62 -0
- package/templates/react/igr-ts/projects/top-nav/files/src/app/app.tsx +18 -0
- package/templates/react/igr-ts/projects/top-nav/files/src/components/navigation-header/index.tsx +29 -0
- package/templates/react/igr-ts/projects/top-nav/index.d.ts +14 -0
- package/templates/react/igr-ts/projects/top-nav/index.js +22 -0
- package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx +8 -0
- package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.tsx +60 -0
- package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/style.module.css +12 -0
- package/templates/react/igr-ts/radial-gauge/default/index.d.ts +1 -0
- package/templates/react/igr-ts/radial-gauge/default/index.js +19 -0
- package/templates/react/igr-ts/radial-gauge/index.d.ts +1 -0
- package/templates/react/igr-ts/radial-gauge/index.js +16 -0
- package/templates/react/index.js +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import logo from "/logo.svg";
|
|
2
|
+
import styles from "./style.module.css";
|
|
3
|
+
|
|
4
|
+
export default function App() {
|
|
5
|
+
const name = '$(name)';
|
|
6
|
+
|
|
7
|
+
return (
|
|
8
|
+
<div className="app">
|
|
9
|
+
<div className={styles.app__name}>{name}</div>
|
|
10
|
+
<header className={styles.header}>
|
|
11
|
+
<img src={logo} className={styles.logo} alt="logo" />
|
|
12
|
+
<p>Welcome to Ignite UI for React!</p>
|
|
13
|
+
<a
|
|
14
|
+
className={styles.link}
|
|
15
|
+
href="https://www.infragistics.com/products/ignite-ui-react"
|
|
16
|
+
target="_blank"
|
|
17
|
+
rel="noopener noreferrer"
|
|
18
|
+
>
|
|
19
|
+
Learn More
|
|
20
|
+
</a>
|
|
21
|
+
</header>
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:local(.logo) {
|
|
2
|
+
animation: App-logo-spin infinite 20s linear;
|
|
3
|
+
height: 40vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:local(.header) {
|
|
7
|
+
padding-top: 5em;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
font-size: calc(10px + 2vmin);
|
|
13
|
+
color: #333;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:local(.link) {
|
|
17
|
+
color: #61dafb;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:local(.app__name) {
|
|
21
|
+
padding-top: 1em;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
font-size: calc(10px + 2vmin);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes App-logo-spin {
|
|
30
|
+
from {
|
|
31
|
+
transform: rotate(0deg);
|
|
32
|
+
}
|
|
33
|
+
to {
|
|
34
|
+
transform: rotate(360deg);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
+
import { BaseIgrTsProject } from "../_base";
|
|
3
|
+
export declare class BaseWithHomeIgrTsProject extends BaseIgrTsProject implements ProjectTemplate {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
dependencies: string[];
|
|
8
|
+
framework: string;
|
|
9
|
+
projectType: string;
|
|
10
|
+
hasExtraConfiguration: boolean;
|
|
11
|
+
get templatePaths(): string[];
|
|
12
|
+
}
|
|
13
|
+
declare const _default: BaseWithHomeIgrTsProject;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseWithHomeIgrTsProject = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const _base_1 = require("../_base");
|
|
6
|
+
class BaseWithHomeIgrTsProject extends _base_1.BaseIgrTsProject {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.id = "base-with-home";
|
|
10
|
+
this.name = "Base with home";
|
|
11
|
+
this.description = "React project structure with home view";
|
|
12
|
+
this.dependencies = [];
|
|
13
|
+
this.framework = "react";
|
|
14
|
+
this.projectType = "igr-ts";
|
|
15
|
+
this.hasExtraConfiguration = false;
|
|
16
|
+
}
|
|
17
|
+
get templatePaths() {
|
|
18
|
+
return [...super.templatePaths, path.join(__dirname, "files")];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.BaseWithHomeIgrTsProject = BaseWithHomeIgrTsProject;
|
|
22
|
+
exports.default = new BaseWithHomeIgrTsProject();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
+
import { BaseIgrTsProject } from "../_base";
|
|
3
|
+
export declare class BasePageIgrTsProject extends BaseIgrTsProject implements ProjectTemplate {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
dependencies: string[];
|
|
8
|
+
framework: string;
|
|
9
|
+
projectType: string;
|
|
10
|
+
hasExtraConfiguration: boolean;
|
|
11
|
+
get templatePaths(): string[];
|
|
12
|
+
}
|
|
13
|
+
declare const _default: BasePageIgrTsProject;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BasePageIgrTsProject = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const _base_1 = require("../_base");
|
|
6
|
+
class BasePageIgrTsProject extends _base_1.BaseIgrTsProject {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.id = "base";
|
|
10
|
+
this.name = "Base project";
|
|
11
|
+
this.description = "Empty project structure with routing";
|
|
12
|
+
this.dependencies = [];
|
|
13
|
+
this.framework = "react";
|
|
14
|
+
this.projectType = "igr-ts";
|
|
15
|
+
this.hasExtraConfiguration = false;
|
|
16
|
+
}
|
|
17
|
+
get templatePaths() {
|
|
18
|
+
return [...super.templatePaths, path.join(__dirname, "files")];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.BasePageIgrTsProject = BasePageIgrTsProject;
|
|
22
|
+
exports.default = new BasePageIgrTsProject();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
+
import { BaseWithHomeIgrTsProject } from "../_base_with_home";
|
|
3
|
+
export declare class EmptyIgrTsProject extends BaseWithHomeIgrTsProject implements ProjectTemplate {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
dependencies: string[];
|
|
8
|
+
framework: string;
|
|
9
|
+
projectType: string;
|
|
10
|
+
hasExtraConfiguration: boolean;
|
|
11
|
+
get templatePaths(): string[];
|
|
12
|
+
}
|
|
13
|
+
declare const _default: EmptyIgrTsProject;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmptyIgrTsProject = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const _base_with_home_1 = require("../_base_with_home");
|
|
6
|
+
class EmptyIgrTsProject extends _base_with_home_1.BaseWithHomeIgrTsProject {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.id = "empty";
|
|
10
|
+
this.name = "Empty project";
|
|
11
|
+
this.description = "Empty project structure with home page and routing";
|
|
12
|
+
this.dependencies = [];
|
|
13
|
+
this.framework = "react";
|
|
14
|
+
this.projectType = "igr-ts";
|
|
15
|
+
this.hasExtraConfiguration = false;
|
|
16
|
+
}
|
|
17
|
+
get templatePaths() {
|
|
18
|
+
return [...super.templatePaths, path.join(__dirname, "files")];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.EmptyIgrTsProject = EmptyIgrTsProject;
|
|
22
|
+
exports.default = new EmptyIgrTsProject();
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.app {
|
|
2
|
+
text-align: center;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-flow: column;
|
|
5
|
+
min-height: 100vh;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.content {
|
|
9
|
+
flex: 1 0 auto;
|
|
10
|
+
padding: 1em;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* quick nav menubar */
|
|
14
|
+
nav,
|
|
15
|
+
.app__name {
|
|
16
|
+
background-color: rgb(0, 153, 255);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
.app__name {
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
font-size: 24px;
|
|
22
|
+
line-height: 32px;
|
|
23
|
+
padding-left: 24px;
|
|
24
|
+
text-align: left;
|
|
25
|
+
color: #fff;
|
|
26
|
+
padding-bottom: 8px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
nav ul {
|
|
30
|
+
list-style: none;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
nav ul a {
|
|
39
|
+
color: #fff;
|
|
40
|
+
line-height: 2;
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
margin: 0 5px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
nav ul a.active {
|
|
46
|
+
color: #fff;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
nav ul li {
|
|
51
|
+
margin: 0px 16px;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
border-bottom: 1px solid transparent;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
nav ul li.active {
|
|
57
|
+
border-bottom: 2px solid #fff;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
nav ul li:not(.active):hover {
|
|
61
|
+
border-bottom: 1px solid #fff;
|
|
62
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Outlet } from "react-router-dom";
|
|
2
|
+
import { routes } from './app-routes';
|
|
3
|
+
import NavigationHeader from "../components/navigation-header";
|
|
4
|
+
import "./app.css";
|
|
5
|
+
|
|
6
|
+
export default function App() {
|
|
7
|
+
const name = "$(name)";
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<div className="app">
|
|
11
|
+
<div className="app__name">{name}</div>
|
|
12
|
+
<NavigationHeader routes={routes}></NavigationHeader>
|
|
13
|
+
<div className="content">
|
|
14
|
+
<Outlet />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
}
|
package/templates/react/igr-ts/projects/top-nav/files/src/components/navigation-header/index.tsx
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { Link } from 'react-router-dom';
|
|
3
|
+
|
|
4
|
+
export default function NavigationHeader({ routes }) {
|
|
5
|
+
const [state, setState] = useState({ activeItem: null });
|
|
6
|
+
|
|
7
|
+
function handleClick(index) {
|
|
8
|
+
setState({ activeItem: index });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
let currentRoute = window.location.href.split(window.location.origin)[1];
|
|
13
|
+
if (!currentRoute) {
|
|
14
|
+
currentRoute = '/'
|
|
15
|
+
}
|
|
16
|
+
const activeItem = routes.findIndex((route) => route.path === currentRoute);
|
|
17
|
+
setState({ activeItem });
|
|
18
|
+
}, [routes]);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<nav>
|
|
22
|
+
<ul>
|
|
23
|
+
{routes.map(
|
|
24
|
+
(route, i) => <li key={i} className={state.activeItem === i ? 'active' : ''}><Link onClick={() => handleClick(i)} to={route.path}>{route.text}</Link></li>
|
|
25
|
+
)}
|
|
26
|
+
</ul>
|
|
27
|
+
</nav>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
+
import { BaseWithHomeIgrTsProject } from "../_base_with_home";
|
|
3
|
+
export declare class TopNavIgrTsProject extends BaseWithHomeIgrTsProject implements ProjectTemplate {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
dependencies: string[];
|
|
8
|
+
framework: string;
|
|
9
|
+
projectType: string;
|
|
10
|
+
hasExtraConfiguration: boolean;
|
|
11
|
+
get templatePaths(): string[];
|
|
12
|
+
}
|
|
13
|
+
declare const _default: TopNavIgrTsProject;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TopNavIgrTsProject = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const _base_with_home_1 = require("../_base_with_home");
|
|
6
|
+
class TopNavIgrTsProject extends _base_with_home_1.BaseWithHomeIgrTsProject {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.id = "top-nav";
|
|
10
|
+
this.name = "Default top navigation";
|
|
11
|
+
this.description = "Project structure with top navigation menu";
|
|
12
|
+
this.dependencies = [];
|
|
13
|
+
this.framework = "react";
|
|
14
|
+
this.projectType = "igr-ts";
|
|
15
|
+
this.hasExtraConfiguration = false;
|
|
16
|
+
}
|
|
17
|
+
get templatePaths() {
|
|
18
|
+
return [...super.templatePaths, path.join(__dirname, "files")];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.TopNavIgrTsProject = TopNavIgrTsProject;
|
|
22
|
+
exports.default = new TopNavIgrTsProject();
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IgrRadialGaugeModule } from 'igniteui-react-gauges';
|
|
2
|
+
import { IgrRadialGauge } from 'igniteui-react-gauges';
|
|
3
|
+
import style from './style.module.css';
|
|
4
|
+
|
|
5
|
+
IgrRadialGaugeModule.register();
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export default function $(ClassName)() {
|
|
9
|
+
const title = 'Radial Gauge';
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<div>
|
|
13
|
+
<h1 className={style.title}>{title}</h1>
|
|
14
|
+
<div>
|
|
15
|
+
Read more on the
|
|
16
|
+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/radialgauge.html">
|
|
17
|
+
official documentation page
|
|
18
|
+
</a>
|
|
19
|
+
</div>
|
|
20
|
+
<div className={style.container}>
|
|
21
|
+
<div className={style.gauge}>
|
|
22
|
+
<IgrRadialGauge
|
|
23
|
+
backingShape="Fitted"
|
|
24
|
+
backingBrush="#fcfcfc"
|
|
25
|
+
backingOutline="DodgerBlue"
|
|
26
|
+
backingOversweep={5}
|
|
27
|
+
backingCornerRadius={10}
|
|
28
|
+
backingStrokeThickness={5}
|
|
29
|
+
backingOuterExtent={0.8}
|
|
30
|
+
backingInnerExtent={0.15}
|
|
31
|
+
scaleStartAngle={135} scaleEndAngle={45}
|
|
32
|
+
height="300px" width="50%"
|
|
33
|
+
minimumValue={0} value={50}
|
|
34
|
+
maximumValue={80} interval={10}>
|
|
35
|
+
</IgrRadialGauge>
|
|
36
|
+
</div>
|
|
37
|
+
<div className={style.gauge}>
|
|
38
|
+
<IgrRadialGauge
|
|
39
|
+
value={50}
|
|
40
|
+
isNeedleDraggingEnabled={true}
|
|
41
|
+
isNeedleDraggingConstrained={true}
|
|
42
|
+
needleShape="NeedleWithBulb"
|
|
43
|
+
needleBrush="DodgerBlue"
|
|
44
|
+
needleOutline="DodgerBlue"
|
|
45
|
+
needleEndExtent={0.475}
|
|
46
|
+
needleStrokeThickness={1}
|
|
47
|
+
needlePivotShape="CircleOverlay"
|
|
48
|
+
needlePivotBrush="#9f9fa0"
|
|
49
|
+
needlePivotOutline="#9f9fa0"
|
|
50
|
+
needlePivotWidthRatio={0.2}
|
|
51
|
+
needlePivotStrokeThickness={1}
|
|
52
|
+
height="300px" width="50%"
|
|
53
|
+
minimumValue={0}
|
|
54
|
+
maximumValue={80} interval={10}>
|
|
55
|
+
</IgrRadialGauge>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
)
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
|
|
4
|
+
class IgrTsRadialGaugeTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Radial Gauge"];
|
|
8
|
+
this.controlGroup = "Gauges";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "radial-gauge";
|
|
11
|
+
this.projectType = "igr-ts";
|
|
12
|
+
this.name = "Radial Gauge";
|
|
13
|
+
this.description = `provides a number of visual elements, like a needle, tick marks, ranges
|
|
14
|
+
and labels, in order to create a predefined shape and scale.`;
|
|
15
|
+
// TODO: read version from igniteui-react-core in package.json
|
|
16
|
+
this.packages = ["igniteui-react-gauges@18.3.0"];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgrTsRadialGaugeTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgrTsRadialGaugeComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Radial Gauge";
|
|
11
|
+
this.group = "Gauges";
|
|
12
|
+
this.description = `provides a number of visual elements, like a needle, tick marks, ranges
|
|
13
|
+
and labels, in order to create a predefined shape and scale.`;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
module.exports = new IgrTsRadialGaugeComponent();
|
package/templates/react/index.js
CHANGED