igniteui-cli 10.0.4 → 10.0.5
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 +3 -3
- package/templates/angular/ig-ts/projects/empty/files/package.json +12 -12
- package/templates/webcomponents/igc-ts/accordion/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
- package/templates/webcomponents/igc-ts/accordion/default/files/src/app/__path__/__filePrefix__.ts +30 -0
- package/templates/webcomponents/igc-ts/accordion/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/accordion/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/accordion/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/accordion/index.js +15 -0
- package/templates/webcomponents/igc-ts/card/default/files/src/app/__path__/__filePrefix__.ts +1 -11
- package/templates/webcomponents/igc-ts/custom-templates/subscription-form/files/src/app/__path__/__filePrefix__.ts +6 -1
- package/templates/webcomponents/igc-ts/date-time-input/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
- package/templates/webcomponents/igc-ts/date-time-input/default/files/src/app/__path__/__filePrefix__.ts +38 -0
- package/templates/webcomponents/igc-ts/date-time-input/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/date-time-input/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/date-time-input/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/date-time-input/index.js +15 -0
- package/templates/webcomponents/igc-ts/dropdown/default/files/src/app/__path__/__filePrefix__.ts +0 -4
- package/templates/webcomponents/igc-ts/expansion-panel/default/files/src/app/__path__/__filePrefix__.ts +1 -3
- package/templates/webcomponents/igc-ts/form/default/files/src/app/__path__/__filePrefix__.ts +4 -2
- package/templates/webcomponents/igc-ts/list/default/files/src/app/__path__/__filePrefix__.ts +0 -4
- package/templates/webcomponents/igc-ts/navbar/default/files/src/app/__path__/__filePrefix__.ts +4 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
- package/templates/webcomponents/igc-ts/projects/side-nav/files/src/app/app.ts +0 -4
- package/templates/webcomponents/igc-ts/radio-group/default/files/src/app/__path__/__filePrefix__.ts +1 -2
- package/templates/webcomponents/igc-ts/tabs/default/files/src/app/__path__/__filePrefix__.test +9 -0
- package/templates/webcomponents/igc-ts/tabs/default/files/src/app/__path__/__filePrefix__.ts +56 -0
- package/templates/webcomponents/igc-ts/tabs/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/tabs/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/tabs/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/tabs/index.js +15 -0
- package/templates/webcomponents/igc-ts/tree/default/files/src/app/__path__/__filePrefix__.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.5",
|
|
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.
|
|
76
|
-
"@igniteui/cli-core": "~10.0.
|
|
75
|
+
"@igniteui/angular-templates": "~14.1.1005",
|
|
76
|
+
"@igniteui/cli-core": "~10.0.5",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -10,26 +10,26 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": true,
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@angular/animations": "~14.
|
|
14
|
-
"@angular/common": "~14.
|
|
15
|
-
"@angular/compiler": "~14.
|
|
16
|
-
"@angular/core": "~14.
|
|
17
|
-
"@angular/forms": "~14.
|
|
18
|
-
"@angular/platform-browser": "~14.
|
|
19
|
-
"@angular/platform-browser-dynamic": "~14.
|
|
20
|
-
"@angular/router": "~14.
|
|
13
|
+
"@angular/animations": "~14.1.0",
|
|
14
|
+
"@angular/common": "~14.1.0",
|
|
15
|
+
"@angular/compiler": "~14.1.0",
|
|
16
|
+
"@angular/core": "~14.1.0",
|
|
17
|
+
"@angular/forms": "~14.1.0",
|
|
18
|
+
"@angular/platform-browser": "~14.1.0",
|
|
19
|
+
"@angular/platform-browser-dynamic": "~14.1.0",
|
|
20
|
+
"@angular/router": "~14.1.0",
|
|
21
21
|
"jquery": ">=1.9.1",
|
|
22
22
|
"jquery-ui": ">=1.10.5",
|
|
23
|
-
"igniteui-angular-wrappers": "~14.
|
|
23
|
+
"igniteui-angular-wrappers": "~14.1.0",
|
|
24
24
|
"ignite-ui": "~21.2",
|
|
25
25
|
"rxjs": "~7.5.0",
|
|
26
26
|
"tslib": "^2.3.0",
|
|
27
27
|
"zone.js": "~0.11.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@angular-devkit/build-angular": "~14.
|
|
31
|
-
"@angular/cli": "~14.
|
|
32
|
-
"@angular/compiler-cli": "~14.
|
|
30
|
+
"@angular-devkit/build-angular": "~14.1.0",
|
|
31
|
+
"@angular/cli": "~14.1.0",
|
|
32
|
+
"@angular/compiler-cli": "~14.1.0",
|
|
33
33
|
"@types/jasmine": "~4.0.0",
|
|
34
34
|
"@types/node": "^12.11.1",
|
|
35
35
|
"igniteui-cli": "^$(cliVersion)",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('IgcAccordionComponent', () => {
|
|
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/accordion/default/files/src/app/__path__/__filePrefix__.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcAccordionComponent,
|
|
6
|
+
} from 'igniteui-webcomponents';
|
|
7
|
+
|
|
8
|
+
defineComponents(IgcAccordionComponent);
|
|
9
|
+
|
|
10
|
+
@customElement('app-$(path)')
|
|
11
|
+
export default class $(ClassName) extends LitElement {
|
|
12
|
+
render() {
|
|
13
|
+
return html`
|
|
14
|
+
<igc-accordion singleExpand="false" alignment="justify">
|
|
15
|
+
<igc-expansion-panel>
|
|
16
|
+
<div slot="title">Ignite UI for Web Components</div>
|
|
17
|
+
<p>Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.</p>
|
|
18
|
+
</igc-expansion-panel>
|
|
19
|
+
<igc-expansion-panel>
|
|
20
|
+
<div slot="title">Ignite UI for Angular</div>
|
|
21
|
+
<p>Ignite UI for Angular is a complete set of Material-based UI Widgets, Components & Sketch, Adobe XD and Figma UI kits by Infragistics. Ignite UI for Angular is designed to enable developers to build enterprise-ready, high-performance HTML5 & JavaScript apps for modern desktop browsers.</p>
|
|
22
|
+
</igc-expansion-panel>
|
|
23
|
+
<igc-expansion-panel>
|
|
24
|
+
<div slot="title">Ignite UI for jQuery</div>
|
|
25
|
+
<p>Ignite UI for jQuery helps you build powerful, high-performance web-based applications. Inside Ignite UI for jQuery you'll find user experience controls and components for creating engaging line-of-business web applications which target the browsers for both mobile & desktop environments.</p>
|
|
26
|
+
</igc-expansion-panel>
|
|
27
|
+
</igc-accordion>
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -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 IgcAccordionTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Accordion"];
|
|
8
|
+
this.controlGroup = "Layouts";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "accordion";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Accordion";
|
|
13
|
+
this.description = "basic IgcAccordion";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcAccordionTemplate();
|
|
@@ -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 IgcAccordionComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Accordion";
|
|
11
|
+
this.group = "Layouts";
|
|
12
|
+
this.description = `Basic accordion component`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcAccordionComponent();
|
package/templates/webcomponents/igc-ts/card/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -2,20 +2,10 @@ import { html, css, LitElement } from 'lit';
|
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import {
|
|
4
4
|
defineComponents,
|
|
5
|
-
IgcCardActionsComponent,
|
|
6
|
-
IgcCardContentComponent,
|
|
7
|
-
IgcCardHeaderComponent,
|
|
8
|
-
IgcCardMediaComponent,
|
|
9
5
|
IgcCardComponent,
|
|
10
6
|
} from 'igniteui-webcomponents';
|
|
11
7
|
|
|
12
|
-
defineComponents(
|
|
13
|
-
IgcCardComponent,
|
|
14
|
-
IgcCardActionsComponent,
|
|
15
|
-
IgcCardContentComponent,
|
|
16
|
-
IgcCardHeaderComponent,
|
|
17
|
-
IgcCardMediaComponent,
|
|
18
|
-
);
|
|
8
|
+
defineComponents(IgcCardComponent);
|
|
19
9
|
|
|
20
10
|
@customElement('app-$(path)')
|
|
21
11
|
export default class $(ClassName) extends LitElement {
|
|
@@ -8,7 +8,12 @@ import {
|
|
|
8
8
|
IgcButtonComponent,
|
|
9
9
|
} from 'igniteui-webcomponents';
|
|
10
10
|
|
|
11
|
-
defineComponents(
|
|
11
|
+
defineComponents(
|
|
12
|
+
IgcFormComponent,
|
|
13
|
+
IgcInputComponent,
|
|
14
|
+
IgcCheckboxComponent,
|
|
15
|
+
IgcButtonComponent,
|
|
16
|
+
);
|
|
12
17
|
|
|
13
18
|
@customElement('app-$(path)')
|
|
14
19
|
export default class $(ClassName) extends LitElement {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('gcDateTimeInputComponent', () => {
|
|
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,38 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { customElement, query } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcDateTimeInputComponent,
|
|
6
|
+
registerIconFromText
|
|
7
|
+
} from 'igniteui-webcomponents';
|
|
8
|
+
|
|
9
|
+
defineComponents(IgcDateTimeInputComponent);
|
|
10
|
+
const clearIcon =
|
|
11
|
+
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>';
|
|
12
|
+
registerIconFromText('clear', clearIcon, 'material');
|
|
13
|
+
|
|
14
|
+
@customElement('app-$(path)')
|
|
15
|
+
export default class $(ClassName) extends LitElement {
|
|
16
|
+
@query('igc-date-time-input')
|
|
17
|
+
_input!: Element
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
return html`
|
|
21
|
+
<igc-date-time-input
|
|
22
|
+
label="Choose Date"
|
|
23
|
+
.value=${new Date(2022, 6, 12, 7, 30, 0)}
|
|
24
|
+
.inputFormat="dd/MM/yyyy"
|
|
25
|
+
.displayFormat="dd/MM/yyyy"
|
|
26
|
+
.minValue=${new Date(2022, 6, 2, 7, 30, 0)}
|
|
27
|
+
.maxValue=${new Date(2022, 6, 27, 7, 30, 0)}
|
|
28
|
+
.spinDelta={date: 2, year: 10,}>
|
|
29
|
+
<igc-icon name="clear" collection='material' size='large' slot="suffix" @click=${this.handleClear}></igc-icon>
|
|
30
|
+
<span slot="helper-text">This is some helper text</span>
|
|
31
|
+
</igc-date-time-input>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
handleClear() {
|
|
36
|
+
(this._input as IgcDateTimeInputComponent)!.clear();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -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 IgcDateTimeInputTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["DateTime Input"];
|
|
8
|
+
this.controlGroup = "Data Entry & Display";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "date-time-input";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "DateTime Input";
|
|
13
|
+
this.description = "basic IgcDateTimeInput";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcDateTimeInputTemplate();
|
|
@@ -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 IgcDateTimeInputComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "DateTimeInput";
|
|
11
|
+
this.group = "Data Entry & Display";
|
|
12
|
+
this.description = `Basic date time input component`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcDateTimeInputComponent();
|
package/templates/webcomponents/igc-ts/dropdown/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -4,15 +4,11 @@ import {
|
|
|
4
4
|
defineComponents,
|
|
5
5
|
IgcButtonComponent,
|
|
6
6
|
IgcDropdownComponent,
|
|
7
|
-
IgcDropdownItemComponent,
|
|
8
|
-
IgcDropdownGroupComponent,
|
|
9
7
|
} from 'igniteui-webcomponents';
|
|
10
8
|
|
|
11
9
|
defineComponents(
|
|
12
10
|
IgcButtonComponent,
|
|
13
11
|
IgcDropdownComponent,
|
|
14
|
-
IgcDropdownItemComponent,
|
|
15
|
-
IgcDropdownGroupComponent,
|
|
16
12
|
);
|
|
17
13
|
|
|
18
14
|
@customElement('app-$(path)')
|
|
@@ -5,9 +5,7 @@ import {
|
|
|
5
5
|
IgcExpansionPanelComponent,
|
|
6
6
|
} from 'igniteui-webcomponents';
|
|
7
7
|
|
|
8
|
-
defineComponents(
|
|
9
|
-
IgcExpansionPanelComponent,
|
|
10
|
-
);
|
|
8
|
+
defineComponents(IgcExpansionPanelComponent);
|
|
11
9
|
|
|
12
10
|
@customElement('app-$(path)')
|
|
13
11
|
export default class $(ClassName) extends LitElement {
|
package/templates/webcomponents/igc-ts/form/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -3,11 +3,13 @@ import { customElement } from 'lit/decorators.js';
|
|
|
3
3
|
import {
|
|
4
4
|
defineComponents,
|
|
5
5
|
IgcFormComponent,
|
|
6
|
-
IgcRadioComponent,
|
|
7
6
|
IgcRadioGroupComponent,
|
|
8
7
|
} from 'igniteui-webcomponents';
|
|
9
8
|
|
|
10
|
-
defineComponents(
|
|
9
|
+
defineComponents(
|
|
10
|
+
IgcFormComponent,
|
|
11
|
+
IgcRadioGroupComponent,
|
|
12
|
+
);
|
|
11
13
|
|
|
12
14
|
@customElement('app-$(path)')
|
|
13
15
|
export default class $(ClassName) extends LitElement {
|
package/templates/webcomponents/igc-ts/list/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -5,16 +5,12 @@ import {
|
|
|
5
5
|
IgcAvatarComponent,
|
|
6
6
|
IgcButtonComponent,
|
|
7
7
|
IgcListComponent,
|
|
8
|
-
IgcListHeaderComponent,
|
|
9
|
-
IgcListItemComponent,
|
|
10
8
|
} from 'igniteui-webcomponents';
|
|
11
9
|
|
|
12
10
|
defineComponents(
|
|
13
11
|
IgcAvatarComponent,
|
|
14
12
|
IgcButtonComponent,
|
|
15
13
|
IgcListComponent,
|
|
16
|
-
IgcListHeaderComponent,
|
|
17
|
-
IgcListItemComponent,
|
|
18
14
|
);
|
|
19
15
|
|
|
20
16
|
@customElement('app-$(path)')
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@vaadin/router": "^1.7.4",
|
|
24
|
-
"igniteui-webcomponents": "~3.
|
|
24
|
+
"igniteui-webcomponents": "~3.4.0",
|
|
25
25
|
"igniteui-webcomponents-grids": "~3.2.1",
|
|
26
26
|
"igniteui-webcomponents-core": "~3.2.1",
|
|
27
27
|
"igniteui-webcomponents-layouts": "~3.2.1",
|
|
@@ -4,8 +4,6 @@ import { customElement } from 'lit/decorators.js';
|
|
|
4
4
|
import {
|
|
5
5
|
defineComponents,
|
|
6
6
|
IgcNavDrawerComponent,
|
|
7
|
-
IgcNavDrawerItemComponent,
|
|
8
|
-
IgcNavDrawerHeaderItemComponent,
|
|
9
7
|
IgcRippleComponent,
|
|
10
8
|
} from 'igniteui-webcomponents';
|
|
11
9
|
import { Router } from '@vaadin/router';
|
|
@@ -13,8 +11,6 @@ import { routes } from './app-routing.js';
|
|
|
13
11
|
|
|
14
12
|
defineComponents(
|
|
15
13
|
IgcNavDrawerComponent,
|
|
16
|
-
IgcNavDrawerItemComponent,
|
|
17
|
-
IgcNavDrawerHeaderItemComponent,
|
|
18
14
|
IgcRippleComponent,
|
|
19
15
|
);
|
|
20
16
|
|
package/templates/webcomponents/igc-ts/radio-group/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -2,11 +2,10 @@ import { html, LitElement } from 'lit';
|
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import {
|
|
4
4
|
defineComponents,
|
|
5
|
-
IgcRadioComponent,
|
|
6
5
|
IgcRadioGroupComponent,
|
|
7
6
|
} from 'igniteui-webcomponents';
|
|
8
7
|
|
|
9
|
-
defineComponents(
|
|
8
|
+
defineComponents(IgcRadioGroupComponent);
|
|
10
9
|
|
|
11
10
|
@customElement('app-$(path)')
|
|
12
11
|
export default class $(ClassName) extends LitElement {
|
package/templates/webcomponents/igc-ts/tabs/default/files/src/app/__path__/__filePrefix__.test
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('IgcTabsComponent', () => {
|
|
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,56 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcTabsComponent,
|
|
6
|
+
registerIconFromText
|
|
7
|
+
} from 'igniteui-webcomponents';
|
|
8
|
+
|
|
9
|
+
defineComponents(IgcTabsComponent);
|
|
10
|
+
|
|
11
|
+
const libraryIcon =
|
|
12
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4v14"/><path d="M19 7.674v-.657a4 4 0 0 0-2.901-3.846l-2.824-.807A1 1 0 0 0 12 3.326V7l5.725 1.636A1 1 0 0 0 19 7.674Z"/><path stroke-linecap="round" stroke-linejoin="round" d="M12 18a3 3 0 1 1-6 0c0-1.657 1.343-2 3-2s3 .343 3 2Z"/></g></svg>';
|
|
13
|
+
registerIconFromText('library', libraryIcon, 'material');
|
|
14
|
+
|
|
15
|
+
const favoriteIcon =
|
|
16
|
+
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>';
|
|
17
|
+
registerIconFromText('favorite', favoriteIcon, 'material');
|
|
18
|
+
|
|
19
|
+
const infoIcon =
|
|
20
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="0.38em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 192 512"><path fill="currentColor" d="M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72s72-32.235 72-72S135.764 0 96 0z"/></svg>';
|
|
21
|
+
registerIconFromText('info', infoIcon, 'material');
|
|
22
|
+
|
|
23
|
+
@customElement('app-tabs')
|
|
24
|
+
export default class Tabs extends LitElement {
|
|
25
|
+
render() {
|
|
26
|
+
return html`
|
|
27
|
+
<igc-tabs alignment="start" >
|
|
28
|
+
<igc-tab panel="first">
|
|
29
|
+
<igc-icon name="library" collection='material' size='large'></igc-icon> Albums
|
|
30
|
+
</igc-tab>
|
|
31
|
+
<igc-tab panel="second">
|
|
32
|
+
<igc-icon name="favorite" collection='material' size='large'></igc-icon> Favourites
|
|
33
|
+
</igc-tab>
|
|
34
|
+
<igc-tab panel="third" disabled>
|
|
35
|
+
<igc-icon name="info" collection='material' size='large'></igc-icon> Info
|
|
36
|
+
</igc-tab>
|
|
37
|
+
<igc-tab-panel id="first">
|
|
38
|
+
<br /><br /><b>
|
|
39
|
+
Sgt. Peppers Lonely Hearts Club Band <br /><br />
|
|
40
|
+
The Dark Side of the Moon <br /><br />
|
|
41
|
+
My Beautiful Dark Twisted Fantasy <br /><br />
|
|
42
|
+
Led Zeppelin IV <br /><br />
|
|
43
|
+
It Takes a Nation of Millions to Hold Us Back <br /><br />
|
|
44
|
+
Thriller <br /><br /></b>
|
|
45
|
+
</igc-tab-panel>
|
|
46
|
+
<igc-tab-panel id="second">
|
|
47
|
+
<br /><br /><b>
|
|
48
|
+
The Dark Side of the Moon <br /><br />
|
|
49
|
+
Led Zeppelin IV <br /><br />
|
|
50
|
+
It Takes a Nation of Millions to Hold Us Back <br /><br />
|
|
51
|
+
Thriller <br /><br /></b>
|
|
52
|
+
</igc-tab-panel>
|
|
53
|
+
</igc-tabs>
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -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 IgcTabsTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Tabs"];
|
|
8
|
+
this.controlGroup = "Layouts";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "tabs";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Tabs";
|
|
13
|
+
this.description = "basic IgcTabs";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcTabsTemplate();
|
|
@@ -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 IgcTabsComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Tabs";
|
|
11
|
+
this.group = "Layouts";
|
|
12
|
+
this.description = `Basic tabs component`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcTabsComponent();
|
package/templates/webcomponents/igc-ts/tree/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -3,10 +3,9 @@ import { customElement } from 'lit/decorators.js';
|
|
|
3
3
|
import {
|
|
4
4
|
defineComponents,
|
|
5
5
|
IgcTreeComponent,
|
|
6
|
-
IgcTreeItemComponent,
|
|
7
6
|
} from 'igniteui-webcomponents';
|
|
8
7
|
|
|
9
|
-
defineComponents(IgcTreeComponent
|
|
8
|
+
defineComponents(IgcTreeComponent);
|
|
10
9
|
|
|
11
10
|
@customElement('app-$(path)')
|
|
12
11
|
export default class $(ClassName) extends LitElement {
|