igniteui-cli 10.0.1 → 10.0.2-beta.1
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/package.json +6 -6
- package/templates/webcomponents/igc-ts/dropdown/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
- package/templates/webcomponents/igc-ts/dropdown/default/files/src/app/__path__/__filePrefix__.ts +58 -0
- package/templates/webcomponents/igc-ts/dropdown/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/dropdown/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/dropdown/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/dropdown/index.js +15 -0
- package/templates/webcomponents/igc-ts/expansion-panel/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
- package/templates/webcomponents/igc-ts/expansion-panel/default/files/src/app/__path__/__filePrefix__.ts +44 -0
- package/templates/webcomponents/igc-ts/expansion-panel/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/expansion-panel/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/expansion-panel/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/expansion-panel/index.js +15 -0
- package/templates/webcomponents/igc-ts/icon/default/files/src/app/__path__/__filePrefix__.ts +1 -3
- package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.ts +5 -5
- package/templates/webcomponents/igc-ts/projects/_base/files/README.md +39 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +9 -9
- package/templates/webcomponents/igc-ts/projects/_base/files/src/app/app.ts +0 -1
- package/templates/webcomponents/igc-ts/projects/side-nav/files/src/app/app.ts +5 -2
- package/templates/webcomponents/igc-ts/tree/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
- package/templates/webcomponents/igc-ts/tree/default/files/src/app/__path__/__filePrefix__.ts +33 -0
- package/templates/webcomponents/igc-ts/tree/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/tree/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/tree/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/tree/index.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "10.0.1",
|
|
3
|
+
"version": "10.0.2-beta.1",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"all": true
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@igniteui/angular-templates": "~14.0.
|
|
76
|
-
"@igniteui/cli-core": "~10.0.1",
|
|
75
|
+
"@igniteui/angular-templates": "~14.0.1002-beta.1",
|
|
76
|
+
"@igniteui/cli-core": "~10.0.2-beta.1",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"yargs": "^8.0.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@angular-devkit/core": "~
|
|
89
|
-
"@angular-devkit/schematics": "~
|
|
90
|
-
"@schematics/angular": "~
|
|
88
|
+
"@angular-devkit/core": "~14.0.0",
|
|
89
|
+
"@angular-devkit/schematics": "~14.0.0",
|
|
90
|
+
"@schematics/angular": "~14.0.0",
|
|
91
91
|
"@types/fs-extra": "^3.0.3",
|
|
92
92
|
"@types/inquirer": "0.0.35",
|
|
93
93
|
"@types/jasmine": "~3.5.0",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('IgcDropdownComponent', () => {
|
|
5
|
+
it('<app-$(path)> is an instance of $(ClassName)', async () => {
|
|
6
|
+
const element = document.createElement('app-$(path)');
|
|
7
|
+
expect(element).to.be.instanceOf($(ClassName));
|
|
8
|
+
});
|
|
9
|
+
});
|
package/templates/webcomponents/igc-ts/dropdown/default/files/src/app/__path__/__filePrefix__.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcButtonComponent,
|
|
6
|
+
IgcDropdownComponent,
|
|
7
|
+
IgcDropdownItemComponent,
|
|
8
|
+
IgcDropdownGroupComponent,
|
|
9
|
+
} from 'igniteui-webcomponents';
|
|
10
|
+
|
|
11
|
+
defineComponents(
|
|
12
|
+
IgcButtonComponent,
|
|
13
|
+
IgcDropdownComponent,
|
|
14
|
+
IgcDropdownItemComponent,
|
|
15
|
+
IgcDropdownGroupComponent,
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
@customElement('app-$(path)')
|
|
19
|
+
export default class $(ClassName) extends LitElement {
|
|
20
|
+
render() {
|
|
21
|
+
return html`
|
|
22
|
+
<igc-dropdown>
|
|
23
|
+
<igc-button slot="target">Countries</igc-button>
|
|
24
|
+
<igc-dropdown-group>
|
|
25
|
+
<span slot="label">Europe</span>
|
|
26
|
+
<igc-dropdown-item>
|
|
27
|
+
Germany
|
|
28
|
+
<span slot="suffix">DE</span>
|
|
29
|
+
</igc-dropdown-item>
|
|
30
|
+
<igc-dropdown-item>
|
|
31
|
+
France
|
|
32
|
+
<span slot="suffix">FR</span>
|
|
33
|
+
</igc-dropdown-item>
|
|
34
|
+
<igc-dropdown-item>
|
|
35
|
+
Spain
|
|
36
|
+
<span slot="suffix">ES</span>
|
|
37
|
+
</igc-dropdown-item>
|
|
38
|
+
</igc-dropdown-group>
|
|
39
|
+
|
|
40
|
+
<igc-dropdown-group>
|
|
41
|
+
<span slot="label">North America</span>
|
|
42
|
+
<igc-dropdown-item>
|
|
43
|
+
USA
|
|
44
|
+
<span slot="suffix">US</span>
|
|
45
|
+
</igc-dropdown-item>
|
|
46
|
+
<igc-dropdown-item disabled>
|
|
47
|
+
Canada
|
|
48
|
+
<span slot="suffix">CA</span>
|
|
49
|
+
</igc-dropdown-item>
|
|
50
|
+
<igc-dropdown-item>
|
|
51
|
+
Mexico
|
|
52
|
+
<span slot="suffix">MX</span>
|
|
53
|
+
</igc-dropdown-item>
|
|
54
|
+
</igc-dropdown-group>
|
|
55
|
+
</igc-dropdown>
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
|
|
4
|
+
class IgcDropdownTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Dropdown"];
|
|
8
|
+
this.controlGroup = "Data Entry & Display";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "dropdown";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Dropdown";
|
|
13
|
+
this.description = "IgcDropdown with groups and disabled items";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcDropdownTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgcDropdownComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Dropdown";
|
|
11
|
+
this.group = "Data Entry & Display";
|
|
12
|
+
this.description = `Displays a toggleable list of predefined values`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcDropdownComponent();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('IgcExpansionPanelComponent', () => {
|
|
5
|
+
it('<app-$(path)> is an instance of $(ClassName)', async () => {
|
|
6
|
+
const element = document.createElement('app-$(path)');
|
|
7
|
+
expect(element).to.be.instanceOf($(ClassName));
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcExpansionPanelComponent,
|
|
6
|
+
} from 'igniteui-webcomponents';
|
|
7
|
+
|
|
8
|
+
defineComponents(
|
|
9
|
+
IgcExpansionPanelComponent,
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
@customElement('app-$(path)')
|
|
13
|
+
export default class $(ClassName) extends LitElement {
|
|
14
|
+
static styles = css`
|
|
15
|
+
:host, igc-expansion-panel{
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
render() {
|
|
21
|
+
return html`
|
|
22
|
+
<igc-expansion-panel>
|
|
23
|
+
<h1 slot="title">Golden Retriever</h1>
|
|
24
|
+
<h3 slot="subtitle">Medium-large gun dog</h3>
|
|
25
|
+
<span>
|
|
26
|
+
The Golden Retriever is a medium-large gun dog that retrieves shot waterfowl, such as ducks
|
|
27
|
+
and upland game birds, during hunting and shooting parties.[3] The name "retriever" refers to the breed's ability
|
|
28
|
+
to retrieve shot game undamaged due to their soft mouth. Golden retrievers have an instinctive love of water, and
|
|
29
|
+
are easy to train to basic or advanced obedience standards.
|
|
30
|
+
</span>
|
|
31
|
+
</igc-expansion-panel>
|
|
32
|
+
<igc-expansion-panel>
|
|
33
|
+
<h1 slot="title">Dobermann</h1>
|
|
34
|
+
<h3 slot="subtitle">Medium-large domestic dog</h3>
|
|
35
|
+
<span>
|
|
36
|
+
Dobermanns are known to be intelligent, alert, and tenaciously loyal companions and guard dogs.
|
|
37
|
+
Personality varies a great deal between each individual but, if taken care of and properly trained, they are generally
|
|
38
|
+
considered to be loving and devoted companions. The Dobermann is driven, strong, and sometimes stubborn.
|
|
39
|
+
With a consistent approach, they can be easy to train and will learn very quickly.
|
|
40
|
+
</span>
|
|
41
|
+
</igc-expansion-panel>
|
|
42
|
+
`;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
|
|
4
|
+
class IgcDropdownTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Expansion Panel"];
|
|
8
|
+
this.controlGroup = "Layouts";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "expansion-panel";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Expansion Panel";
|
|
13
|
+
this.description = "A lightweight accordion component";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcDropdownTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgcExpansionPanelComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Expansion Panel";
|
|
11
|
+
this.group = "Layouts";
|
|
12
|
+
this.description = `Lightweight accordion component`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcExpansionPanelComponent();
|
package/templates/webcomponents/igc-ts/icon/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -3,11 +3,9 @@ import { customElement } from 'lit/decorators.js';
|
|
|
3
3
|
import {
|
|
4
4
|
defineComponents,
|
|
5
5
|
IgcIconComponent,
|
|
6
|
-
} from 'igniteui-webcomponents';
|
|
7
|
-
import {
|
|
8
6
|
registerIcon,
|
|
9
7
|
registerIconFromText,
|
|
10
|
-
} from 'igniteui-webcomponents
|
|
8
|
+
} from 'igniteui-webcomponents';
|
|
11
9
|
|
|
12
10
|
defineComponents(IgcIconComponent);
|
|
13
11
|
|
package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -3,16 +3,16 @@ import { customElement } from 'lit/decorators.js';
|
|
|
3
3
|
import {
|
|
4
4
|
defineComponents,
|
|
5
5
|
IgcIconButtonComponent,
|
|
6
|
+
registerIconFromText,
|
|
6
7
|
} from 'igniteui-webcomponents';
|
|
7
|
-
import {
|
|
8
|
-
registerIcon,
|
|
9
|
-
} from 'igniteui-webcomponents/components/icon/icon.registry';
|
|
10
8
|
|
|
11
9
|
defineComponents(IgcIconButtonComponent);
|
|
10
|
+
const buildIcon =
|
|
11
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"/></svg>';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
registerIconFromText(
|
|
14
14
|
'build',
|
|
15
|
-
|
|
15
|
+
buildIcon,
|
|
16
16
|
'material',
|
|
17
17
|
);
|
|
18
18
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# $(dashName)
|
|
2
|
+
|
|
3
|
+
This project was generated with [Ignite UI CLI](https://github.com/IgniteUI/igniteui-cli) version $(cliVersion).
|
|
4
|
+
|
|
5
|
+
## Development server
|
|
6
|
+
|
|
7
|
+
Run `ig start` to build the application, start a web server and open the application in the default browser. Then navigate to `http://localhost:8000/`. Default serving port can be configured in `ignite-ui-cli.json` via `defaultPort` property.
|
|
8
|
+
|
|
9
|
+
## Build
|
|
10
|
+
|
|
11
|
+
Run `ig build` to build the application into an output directory.
|
|
12
|
+
|
|
13
|
+
## Step by step mode
|
|
14
|
+
|
|
15
|
+
If you want to get a guided experience through the available options, you can initialize the step by step mode that will help you to create and setup your new application, as well as update project previously created with the Ignite UI CLI. To start the guide, simply run the `ig` command.
|
|
16
|
+
|
|
17
|
+
## List templates
|
|
18
|
+
|
|
19
|
+
The `ig list` lists all available templates. When you run the command within a project folder it will list all available templates, even if you have provided different ones.
|
|
20
|
+
|
|
21
|
+
## Adding components
|
|
22
|
+
|
|
23
|
+
Add a new component or template to the project passing component ID and choosing a name.
|
|
24
|
+
|
|
25
|
+
`ig add <component/template> <component_name>`
|
|
26
|
+
|
|
27
|
+
The ID matches either a component ("grid", "dropdown", etc) or a predefined template. Predefined templates can provide either multiple components or fulfilling a specific use case like "subscription-form".
|
|
28
|
+
|
|
29
|
+
## Running unit tests
|
|
30
|
+
|
|
31
|
+
Run `ig test` to execute the unit tests via [@web/test-runner](https://modern-web.dev/docs/test-runner/overview). Runs all `.test.ts` files.
|
|
32
|
+
|
|
33
|
+
## Help
|
|
34
|
+
|
|
35
|
+
`ig help` lists the available commands and provides a brief description of what they do.
|
|
36
|
+
|
|
37
|
+
### Further help
|
|
38
|
+
|
|
39
|
+
To get more help on the IgniteUI CLI go check out the [IgniteUI CLI Wiki](https://github.com/IgniteUI/igniteui-cli/wiki).
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@vaadin/router": "^1.7.4",
|
|
24
|
-
"igniteui-webcomponents": "2.
|
|
25
|
-
"igniteui-webcomponents-grids": "~
|
|
26
|
-
"igniteui-webcomponents-core": "~
|
|
27
|
-
"igniteui-webcomponents-layouts": "~
|
|
28
|
-
"igniteui-webcomponents-inputs": "~
|
|
29
|
-
"igniteui-webcomponents-charts": "~
|
|
30
|
-
"igniteui-webcomponents-gauges": "~
|
|
31
|
-
"igniteui-dockmanager": "~1.
|
|
32
|
-
"@igniteui/material-icons-extended": "^2.
|
|
24
|
+
"igniteui-webcomponents": "~3.2.0",
|
|
25
|
+
"igniteui-webcomponents-grids": "~3.2.1",
|
|
26
|
+
"igniteui-webcomponents-core": "~3.2.1",
|
|
27
|
+
"igniteui-webcomponents-layouts": "~3.2.1",
|
|
28
|
+
"igniteui-webcomponents-inputs": "~3.2.1",
|
|
29
|
+
"igniteui-webcomponents-charts": "~3.2.1",
|
|
30
|
+
"igniteui-webcomponents-gauges": "~3.2.1",
|
|
31
|
+
"igniteui-dockmanager": "~1.8.0",
|
|
32
|
+
"@igniteui/material-icons-extended": "^2.11.0",
|
|
33
33
|
"lit": "^2.0.2",
|
|
34
34
|
"typescript": "^4.5.2"
|
|
35
35
|
},
|
|
@@ -22,7 +22,6 @@ defineComponents(
|
|
|
22
22
|
export class App extends LitElement {
|
|
23
23
|
static styles = css`
|
|
24
24
|
router-outlet {
|
|
25
|
-
width: 100%;
|
|
26
25
|
height: 100%;
|
|
27
26
|
display: flex;
|
|
28
27
|
text-align: center;
|
|
@@ -31,11 +30,15 @@ export class App extends LitElement {
|
|
|
31
30
|
align-items: center;
|
|
32
31
|
overflow: inherit;
|
|
33
32
|
}
|
|
33
|
+
|
|
34
|
+
igc-nav-drawer {
|
|
35
|
+
float: left;
|
|
36
|
+
}
|
|
34
37
|
`;
|
|
35
38
|
|
|
36
39
|
render() {
|
|
37
40
|
return html`
|
|
38
|
-
<igc-nav-drawer open=true>
|
|
41
|
+
<igc-nav-drawer open="true" position="relative">
|
|
39
42
|
<igc-nav-drawer-header-item>Ignite UI CLI</igc-nav-drawer-header-item>
|
|
40
43
|
${routes.filter((element, index) => index < routes.length - 1).map(i => html`
|
|
41
44
|
<igc-nav-drawer-item>
|
package/templates/webcomponents/igc-ts/tree/default/files/src/app/__path__/__filePrefix__.test.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('IgcTreeComponent', () => {
|
|
5
|
+
it('<app-$(path)> is an instance of $(ClassName)', async () => {
|
|
6
|
+
const element = document.createElement('app-$(path)');
|
|
7
|
+
expect(element).to.be.instanceOf($(ClassName));
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcTreeComponent,
|
|
6
|
+
IgcTreeItemComponent,
|
|
7
|
+
} from 'igniteui-webcomponents';
|
|
8
|
+
|
|
9
|
+
defineComponents(IgcTreeComponent, IgcTreeItemComponent);
|
|
10
|
+
|
|
11
|
+
@customElement('app-$(path)')
|
|
12
|
+
export default class $(ClassName) extends LitElement {
|
|
13
|
+
render() {
|
|
14
|
+
return html`
|
|
15
|
+
<igc-tree>
|
|
16
|
+
<igc-tree-item label="North America">
|
|
17
|
+
<igc-tree-item label="United States"></igc-tree-item>
|
|
18
|
+
<igc-tree-item label="Canada"></igc-tree-item>
|
|
19
|
+
<igc-tree-item label="Mexico"></igc-tree-item>
|
|
20
|
+
</igc-tree-item>
|
|
21
|
+
<igc-tree-item label="South America">
|
|
22
|
+
<igc-tree-item label="Brazil"></igc-tree-item>
|
|
23
|
+
<igc-tree-item label="Uruguay"></igc-tree-item>
|
|
24
|
+
</igc-tree-item>
|
|
25
|
+
<igc-tree-item label="Europe">
|
|
26
|
+
<igc-tree-item label="United Kingdom"></igc-tree-item>
|
|
27
|
+
<igc-tree-item label="Germany"></igc-tree-item>
|
|
28
|
+
<igc-tree-item label="Bulgaria"></igc-tree-item>
|
|
29
|
+
</igc-tree-item>
|
|
30
|
+
</igc-tree>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
|
|
4
|
+
class IgcTreeTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Tree"];
|
|
8
|
+
this.controlGroup = "Grids & Lists";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "tree";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Tree";
|
|
13
|
+
this.description = "basic IgcTree";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcTreeTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgcTreeComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Tree";
|
|
11
|
+
this.group = "Grids & Lists";
|
|
12
|
+
this.description = `Basic tree component`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcTreeComponent();
|