igniteui-cli 9.1.0 → 9.1.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 (27) hide show
  1. package/package.json +3 -3
  2. package/templates/angular/ig-ts/projects/empty/files/package.json +15 -15
  3. package/templates/webcomponents/igc-ts/chip/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
  4. package/templates/webcomponents/igc-ts/chip/default/files/src/app/__path__/__filePrefix__.ts +34 -0
  5. package/templates/webcomponents/igc-ts/chip/default/index.d.ts +1 -0
  6. package/templates/webcomponents/igc-ts/chip/default/index.js +19 -0
  7. package/templates/webcomponents/igc-ts/chip/index.d.ts +1 -0
  8. package/templates/webcomponents/igc-ts/chip/index.js +15 -0
  9. package/templates/webcomponents/igc-ts/circular-progress/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
  10. package/templates/webcomponents/igc-ts/circular-progress/default/files/src/app/__path__/__filePrefix__.ts +35 -0
  11. package/templates/webcomponents/igc-ts/circular-progress/default/index.d.ts +1 -0
  12. package/templates/webcomponents/igc-ts/circular-progress/default/index.js +19 -0
  13. package/templates/webcomponents/igc-ts/circular-progress/index.d.ts +1 -0
  14. package/templates/webcomponents/igc-ts/circular-progress/index.js +15 -0
  15. package/templates/webcomponents/igc-ts/linear-progress/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
  16. package/templates/webcomponents/igc-ts/linear-progress/default/files/src/app/__path__/__filePrefix__.ts +24 -0
  17. package/templates/webcomponents/igc-ts/linear-progress/default/index.d.ts +1 -0
  18. package/templates/webcomponents/igc-ts/linear-progress/default/index.js +19 -0
  19. package/templates/webcomponents/igc-ts/linear-progress/index.d.ts +1 -0
  20. package/templates/webcomponents/igc-ts/linear-progress/index.js +15 -0
  21. package/templates/webcomponents/igc-ts/projects/_base/files/package.json +2 -1
  22. package/templates/webcomponents/igc-ts/rating/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
  23. package/templates/webcomponents/igc-ts/rating/default/files/src/app/__path__/__filePrefix__.ts +17 -0
  24. package/templates/webcomponents/igc-ts/rating/default/index.d.ts +1 -0
  25. package/templates/webcomponents/igc-ts/rating/default/index.js +19 -0
  26. package/templates/webcomponents/igc-ts/rating/index.d.ts +1 -0
  27. package/templates/webcomponents/igc-ts/rating/index.js +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "9.1.0",
3
+ "version": "9.1.2",
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": "~13.1.910",
76
- "@igniteui/cli-core": "~9.1.0",
75
+ "@igniteui/angular-templates": "~13.1.912",
76
+ "@igniteui/cli-core": "~9.1.2",
77
77
  "chalk": "^2.3.2",
78
78
  "fs-extra": "^3.0.1",
79
79
  "glob": "^7.1.2",
@@ -10,33 +10,33 @@
10
10
  },
11
11
  "private": true,
12
12
  "dependencies": {
13
- "@angular/animations": "~13.1.1",
14
- "@angular/common": "~13.1.1",
15
- "@angular/compiler": "~13.1.1",
16
- "@angular/core": "~13.1.1",
17
- "@angular/forms": "~13.1.1",
18
- "@angular/platform-browser": "~13.1.1",
19
- "@angular/platform-browser-dynamic": "~13.1.1",
20
- "@angular/router": "~13.1.1",
13
+ "@angular/animations": "~13.3.0",
14
+ "@angular/common": "~13.3.0",
15
+ "@angular/compiler": "~13.3.0",
16
+ "@angular/core": "~13.3.0",
17
+ "@angular/forms": "~13.3.0",
18
+ "@angular/platform-browser": "~13.3.0",
19
+ "@angular/platform-browser-dynamic": "~13.3.0",
20
+ "@angular/router": "~13.3.0",
21
21
  "jquery": ">=1.9.1",
22
22
  "jquery-ui": ">=1.10.5",
23
23
  "igniteui-angular-wrappers": "^13.1.0",
24
24
  "ignite-ui": "~21.2",
25
- "rxjs": "~6.6.0",
25
+ "rxjs": "~7.5.0",
26
26
  "tslib": "^2.2.0",
27
27
  "zone.js": "~0.11.4"
28
28
  },
29
29
  "devDependencies": {
30
- "@angular-devkit/build-angular": "~13.1.2",
31
- "@angular/cli": "~13.1.2",
32
- "@angular/compiler-cli": "~13.1.1",
33
- "@types/jasmine": "~3.8.0",
30
+ "@angular-devkit/build-angular": "~13.3.0",
31
+ "@angular/cli": "~13.3.0",
32
+ "@angular/compiler-cli": "~13.3.0",
33
+ "@types/jasmine": "~3.10.0",
34
34
  "@types/node": "^12.11.1",
35
35
  "igniteui-cli": "^$(cliVersion)",
36
- "jasmine-core": "~3.8.0",
36
+ "jasmine-core": "~4.0.0",
37
37
  "karma": "~6.3.0",
38
38
  "karma-chrome-launcher": "~3.1.0",
39
- "karma-coverage": "~2.0.3",
39
+ "karma-coverage": "~2.1.0",
40
40
  "karma-jasmine": "~4.0.0",
41
41
  "karma-jasmine-html-reporter": "~1.7.0",
42
42
  "typescript": "~4.5.2"
@@ -0,0 +1,9 @@
1
+ import { expect } from '@open-wc/testing';
2
+ import $(ClassName) from './$(path).js';
3
+
4
+ describe('IgcChipComponent', () => {
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,34 @@
1
+ import { html, LitElement } from 'lit';
2
+ import { customElement } from 'lit/decorators.js';
3
+ import {
4
+ defineComponents,
5
+ IgcChipComponent,
6
+ registerIconFromText,
7
+ } from 'igniteui-webcomponents';
8
+
9
+ defineComponents(IgcChipComponent);
10
+
11
+ registerIconFromText(
12
+ 'select',
13
+ '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>',
14
+ );
15
+
16
+ registerIconFromText(
17
+ 'cancel',
18
+ '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',
19
+ );
20
+
21
+ @customElement('app-$(path)')
22
+ export default class $(ClassName) extends LitElement {
23
+ render() {
24
+ return html`
25
+ <div style="width: 200px; padding: 20px;">
26
+ <igc-chip selectable removable>
27
+ <span slot="select"><igc-icon name="select"></igc-icon></span>
28
+ Custom Icons
29
+ <span slot="remove"><igc-icon name="cancel"></igc-icon></span>
30
+ </igc-chip>
31
+ </div>
32
+ `;
33
+ }
34
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
+ class IgcChipTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Chip"];
8
+ this.controlGroup = "Data Entry & Display";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "chip";
11
+ this.projectType = "igc-ts";
12
+ this.name = "Chip";
13
+ this.description = "Basic IgcChip";
14
+ }
15
+ addClassDeclaration(mainModule, projPath, name, modulePath) {
16
+ // not applicable with custom module
17
+ }
18
+ }
19
+ module.exports = new IgcChipTemplate();
@@ -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 IgcChipComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Chip";
11
+ this.group = "Data Entry & Display";
12
+ this.description = `Customizable chip component`;
13
+ }
14
+ }
15
+ module.exports = new IgcChipComponent();
@@ -0,0 +1,9 @@
1
+ import { expect } from '@open-wc/testing';
2
+ import $(ClassName) from './$(path).js';
3
+
4
+ describe('IgcCircularProgressComponent', () => {
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,35 @@
1
+ import { html, LitElement } from 'lit';
2
+ import { customElement } from 'lit/decorators.js';
3
+ import {
4
+ defineComponents,
5
+ IgcCircularProgressComponent,
6
+ } from 'igniteui-webcomponents';
7
+
8
+ defineComponents(IgcCircularProgressComponent);
9
+
10
+ @customElement('app-$(path)')
11
+ export default class $(ClassName) extends LitElement {
12
+ render() {
13
+ return html`
14
+ <div style="display: flex; align-items: center; gap: 16px">
15
+ <igc-circular-progress
16
+ style="--diameter: 96px; --stroke-thickness: 12px;"
17
+ animation-duration="1000"
18
+ indeterminate="true"
19
+ variant="danger">
20
+ </igc-circular-progress>
21
+ <igc-circular-progress
22
+ style="--diameter: 96px; --stroke-thickness: 12px;"
23
+ value="92"
24
+ animation-duration="500">
25
+ </igc-circular-progress>
26
+ <igc-circular-progress
27
+ style="--diameter: 96px; --stroke-thickness: 12px;"
28
+ value="92"
29
+ animation-duration="1500"
30
+ variant="success">
31
+ </igc-circular-progress>
32
+ </div>
33
+ `;
34
+ }
35
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
+ class IgcCircularProgressTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Circular Progress"];
8
+ this.controlGroup = "Data Entry & Display";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "circular-progress";
11
+ this.projectType = "igc-ts";
12
+ this.name = "Circular Progress";
13
+ this.description = "Basic Circular Progress";
14
+ }
15
+ addClassDeclaration(mainModule, projPath, name, modulePath) {
16
+ // not applicable with custom module
17
+ }
18
+ }
19
+ module.exports = new IgcCircularProgressTemplate();
@@ -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 IgcCircularProgressComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Circular Progress";
11
+ this.group = "Data Entry & Display";
12
+ this.description = `Customizable Circular Progress component`;
13
+ }
14
+ }
15
+ module.exports = new IgcCircularProgressComponent();
@@ -0,0 +1,9 @@
1
+ import { expect } from '@open-wc/testing';
2
+ import $(ClassName) from './$(path).js';
3
+
4
+ describe('IgcLinearProgressComponent', () => {
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,24 @@
1
+ import { html, LitElement } from 'lit';
2
+ import { customElement } from 'lit/decorators.js';
3
+ import {
4
+ defineComponents,
5
+ IgcLinearProgressComponent,
6
+ } from 'igniteui-webcomponents';
7
+
8
+ defineComponents(IgcLinearProgressComponent);
9
+
10
+ @customElement('app-$(path)')
11
+ export default class $(ClassName) extends LitElement {
12
+ render() {
13
+ return html`
14
+ <div style="width: 200px; padding: 20px;">
15
+ <igc-linear-progress
16
+ value="92"
17
+ animation-duration="1000"
18
+ label-align="top-end"
19
+ variant="success">
20
+ </igc-linear-progress>
21
+ </div>
22
+ `;
23
+ }
24
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
+ class IgcLinearProgressComponent extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Linear Progress"];
8
+ this.controlGroup = "Data Entry & Display";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "linear-progress";
11
+ this.projectType = "igc-ts";
12
+ this.name = "Linear Progress";
13
+ this.description = "Basic Linear Progress";
14
+ }
15
+ addClassDeclaration(mainModule, projPath, name, modulePath) {
16
+ // not applicable with custom module
17
+ }
18
+ }
19
+ module.exports = new IgcLinearProgressComponent();
@@ -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 IgcLinearProgressComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Linear Progress";
11
+ this.group = "Data Entry & Display";
12
+ this.description = `Customizable Linear Progress component`;
13
+ }
14
+ }
15
+ module.exports = new IgcLinearProgressComponent();
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@vaadin/router": "^1.7.4",
24
- "igniteui-webcomponents": "2.0.0",
24
+ "igniteui-webcomponents": "2.1.0",
25
25
  "igniteui-webcomponents-grids": "~1.4.1",
26
26
  "igniteui-webcomponents-core": "~1.4.1",
27
27
  "igniteui-webcomponents-layouts": "~1.4.1",
@@ -73,6 +73,7 @@
73
73
  "@typescript-eslint/no-unused-vars": [
74
74
  "error"
75
75
  ],
76
+ "import/no-extraneous-dependencies": "off",
76
77
  "import/no-unresolved": "off",
77
78
  "import/extensions": [
78
79
  "error",
@@ -0,0 +1,9 @@
1
+ import { expect } from '@open-wc/testing';
2
+ import $(ClassName) from './$(path).js';
3
+
4
+ describe('IgcRatingComponent', () => {
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,17 @@
1
+ import { html, LitElement } from 'lit';
2
+ import { customElement } from 'lit/decorators.js';
3
+ import {
4
+ defineComponents,
5
+ IgcRatingComponent,
6
+ } from 'igniteui-webcomponents';
7
+
8
+ defineComponents(IgcRatingComponent);
9
+
10
+ @customElement('app-$(path)')
11
+ export default class $(ClassName) extends LitElement {
12
+ render() {
13
+ return html`
14
+ <igc-rating></igc-rating>
15
+ `;
16
+ }
17
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
+ class IgcRatingComponent extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["Rating"];
8
+ this.controlGroup = "Data Entry & Display";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "rating";
11
+ this.projectType = "igc-ts";
12
+ this.name = "Rating";
13
+ this.description = "Basic Rating";
14
+ }
15
+ addClassDeclaration(mainModule, projPath, name, modulePath) {
16
+ // not applicable with custom module
17
+ }
18
+ }
19
+ module.exports = new IgcRatingComponent();
@@ -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 IgcRatingComponent extends cli_core_1.BaseComponent {
5
+ /**
6
+ *
7
+ */
8
+ constructor() {
9
+ super(__dirname);
10
+ this.name = "Rating";
11
+ this.group = "Data Entry & Display";
12
+ this.description = `Customizable rating component`;
13
+ }
14
+ }
15
+ module.exports = new IgcRatingComponent();