igniteui-cli 8.3.0-beta.1 → 8.3.0-beta.7

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 (33) hide show
  1. package/lib/templates/IgniteUIForWebComponentsTemplate.js +1 -1
  2. package/package.json +3 -3
  3. package/templates/webcomponents/igc-ts/avatar/default/files/src/app/__path__/__filePrefix__.ts +6 -4
  4. package/templates/webcomponents/igc-ts/badge/default/files/src/app/__path__/__filePrefix__.ts +6 -4
  5. package/templates/webcomponents/igc-ts/button/default/files/src/app/__path__/__filePrefix__.ts +6 -4
  6. package/templates/webcomponents/igc-ts/calendar/default/files/src/app/__path__/__filePrefix__.ts +7 -4
  7. package/templates/webcomponents/igc-ts/card/default/files/src/app/__path__/__filePrefix__.ts +21 -4
  8. package/templates/webcomponents/igc-ts/checkbox/default/files/src/app/__path__/__filePrefix__.ts +6 -4
  9. package/templates/webcomponents/igc-ts/form/default/files/src/app/__path__/__filePrefix__.ts +8 -4
  10. package/templates/webcomponents/igc-ts/groups.json +1 -1
  11. package/templates/webcomponents/igc-ts/icon/default/files/src/app/__path__/__filePrefix__.ts +7 -5
  12. package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.ts +7 -5
  13. package/templates/webcomponents/igc-ts/input/default/files/src/app/__path__/__filePrefix__.ts +6 -4
  14. package/templates/webcomponents/igc-ts/list/default/files/src/app/__path__/__filePrefix__.ts +16 -4
  15. package/templates/webcomponents/igc-ts/list/index.js +3 -3
  16. package/templates/webcomponents/igc-ts/navbar/default/files/src/app/__path__/__filePrefix__.ts +7 -5
  17. package/templates/webcomponents/igc-ts/projects/empty/files/index.html +1 -1
  18. package/templates/webcomponents/igc-ts/projects/empty/files/package.json +1 -1
  19. package/templates/webcomponents/igc-ts/projects/empty/files/src/app.ts +16 -2
  20. package/templates/webcomponents/igc-ts/radio-group/default/files/src/app/__path__/__filePrefix__.ts +7 -4
  21. package/templates/webcomponents/igc-ts/ripple/default/files/src/app/__path__/__filePrefix__.ts +6 -4
  22. package/templates/webcomponents/igc-ts/switch/default/files/src/app/__path__/__filePrefix__.ts +6 -1
  23. package/templates/webcomponents/igc-ts/link-button/default/files/src/app/__path__/__filePrefix__.ts +0 -16
  24. package/templates/webcomponents/igc-ts/link-button/default/index.d.ts +0 -1
  25. package/templates/webcomponents/igc-ts/link-button/default/index.js +0 -19
  26. package/templates/webcomponents/igc-ts/link-button/index.d.ts +0 -1
  27. package/templates/webcomponents/igc-ts/link-button/index.js +0 -15
  28. package/templates/webcomponents/igc-ts/list/default/files/src/assests/avatar1.jpg +0 -0
  29. package/templates/webcomponents/igc-ts/radio/default/files/src/app/__path__/__filePrefix__.ts +0 -16
  30. package/templates/webcomponents/igc-ts/radio/default/index.d.ts +0 -1
  31. package/templates/webcomponents/igc-ts/radio/default/index.js +0 -19
  32. package/templates/webcomponents/igc-ts/radio/index.d.ts +0 -1
  33. package/templates/webcomponents/igc-ts/radio/index.js +0 -15
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IgniteUIForWebComponentsTemplate = void 0;
4
4
  const cli_core_1 = require("@igniteui/cli-core");
5
5
  const path = require("path");
6
- const TypeScriptFileUpdate_1 = require("../../../cli/templates/webcomponents/TypeScriptFileUpdate");
7
6
  const package_resolve_1 = require("../../templates/webcomponents/package-resolve");
7
+ const TypeScriptFileUpdate_1 = require("../../templates/webcomponents/TypeScriptFileUpdate");
8
8
  class IgniteUIForWebComponentsTemplate {
9
9
  constructor(rootPath) {
10
10
  this.rootPath = rootPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "8.3.0-beta.1",
3
+ "version": "8.3.0-beta.7",
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.830-beta.1",
75
- "@igniteui/cli-core": "~8.3.0-beta.1",
74
+ "@igniteui/angular-templates": "~12.2.830-beta.7",
75
+ "@igniteui/cli-core": "~8.3.0-beta.7",
76
76
  "chalk": "^2.3.2",
77
77
  "fs-extra": "^3.0.1",
78
78
  "glob": "^7.1.2",
@@ -1,11 +1,13 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcAvatarComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcAvatarComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-avatar component</p>
8
- </div>
9
11
  <igc-avatar
10
12
  size="large"
11
13
  shape="circle"
@@ -1,11 +1,13 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcBadgeComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcBadgeComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-badge component</p>
8
- </div>
9
11
  <igc-badge> </igc-badge>
10
12
  `;
11
13
  }
@@ -1,11 +1,13 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcButtonComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcButtonComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-button component</p>
8
- </div>
9
11
  <igc-button
10
12
  size='large'>
11
13
  Large button
@@ -1,12 +1,15 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcCalendarComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcCalendarComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-calendar component</p>
8
- </div>
9
11
  <igc-calendar
12
+ style="width:1300px"
10
13
  week-start="monday"
11
14
  >
12
15
  My Calendar
@@ -1,11 +1,28 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcCardActionsComponent,
4
+ IgcCardContentComponent,
5
+ IgcCardHeaderComponent,
6
+ IgcCardMediaComponent,
7
+ IgcCardComponent,
8
+ } from 'igniteui-webcomponents';
9
+
10
+ defineComponents(
11
+ IgcCardComponent,
12
+ IgcCardActionsComponent,
13
+ IgcCardContentComponent,
14
+ IgcCardHeaderComponent,
15
+ IgcCardMediaComponent
16
+ );
2
17
 
3
18
  export default class $(ClassName) extends HTMLElement {
4
19
  connectedCallback() {
5
20
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-card component</p>
8
- </div>
21
+ <style>
22
+ igc-card {
23
+ width: 400px
24
+ }
25
+ </style>
9
26
  <igc-card>
10
27
  <igc-card-media style="max-height: 194px">
11
28
  <img
@@ -1,11 +1,13 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcCheckboxComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcCheckboxComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-checkbox component</p>
8
- </div>
9
11
  <igc-checkbox
10
12
  checked="true"
11
13
  >
@@ -1,11 +1,15 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcFormComponent,
4
+ IgcRadioComponent,
5
+ IgcRadioGroupComponent
6
+ } from 'igniteui-webcomponents';
7
+
8
+ defineComponents(IgcFormComponent, IgcRadioComponent, IgcRadioGroupComponent);
2
9
 
3
10
  export default class $(ClassName) extends HTMLElement {
4
11
  connectedCallback() {
5
12
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-form component</p>
8
- </div>
9
13
  <style>
10
14
  #form {
11
15
  flex-grow: 1;
@@ -2,7 +2,7 @@
2
2
  "Data Entry & Display": "",
3
3
  "Interactions": "",
4
4
  "Menus": "",
5
- "Grids & Lists": "",
5
+ "Lists": "",
6
6
  "Scheduling": "",
7
7
  "Layouts": ""
8
8
  }
@@ -1,8 +1,13 @@
1
- import "igniteui-webcomponents/src/components/icon/icon";
1
+ import {
2
+ defineComponents,
3
+ IgcIconComponent,
4
+ } from 'igniteui-webcomponents';
2
5
  import {
3
6
  registerIcon,
4
7
  registerIconFromText,
5
- } from "igniteui-webcomponents/src/components/icon/icon.registry";
8
+ } from "igniteui-webcomponents/components/icon/icon.registry";
9
+
10
+ defineComponents(IgcIconComponent);
6
11
 
7
12
  const searchIcon =
8
13
  '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>';
@@ -17,9 +22,6 @@ registerIcon(
17
22
  export default class Icon extends HTMLElement {
18
23
  connectedCallback() {
19
24
  this.innerHTML = `
20
- <div class="description">
21
- <p>igc-icon component</p>
22
- </div>
23
25
  <div>
24
26
  <label>Search icon: </label>
25
27
  <igc-icon
@@ -1,7 +1,12 @@
1
- import "igniteui-webcomponents";
1
+ import {
2
+ defineComponents,
3
+ IgcIconButtonComponent,
4
+ } from 'igniteui-webcomponents';
2
5
  import {
3
6
  registerIcon,
4
- } from "igniteui-webcomponents/src/components/icon/icon.registry";
7
+ } from "igniteui-webcomponents/components/icon/icon.registry";
8
+
9
+ defineComponents(IgcIconButtonComponent);
5
10
 
6
11
  registerIcon(
7
12
  "build",
@@ -12,9 +17,6 @@ registerIcon(
12
17
  export default class IconButton extends HTMLElement {
13
18
  connectedCallback() {
14
19
  this.innerHTML = `
15
- <div class="description">
16
- <p>igc-icon-button component</p>
17
- </div>
18
20
  <label>Contact Infragistics support: </label>
19
21
  <igc-icon-button
20
22
  name="build"
@@ -1,11 +1,13 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcInputComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcInputComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-input component</p>
8
- </div>
9
11
  <igc-input>
10
12
  <igc-icon name="github" slot="prefix"></igc-icon>
11
13
  <igc-icon name="github" slot="suffix"></igc-icon>
@@ -1,11 +1,23 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcAvatarComponent,
4
+ IgcButtonComponent,
5
+ IgcListComponent,
6
+ IgcListHeaderComponent,
7
+ IgcListItemComponent,
8
+ } from 'igniteui-webcomponents';
9
+
10
+ defineComponents(
11
+ IgcAvatarComponent,
12
+ IgcButtonComponent,
13
+ IgcListComponent,
14
+ IgcListHeaderComponent,
15
+ IgcListItemComponent
16
+ );
2
17
 
3
18
  export default class $(ClassName) extends HTMLElement {
4
19
  connectedCallback() {
5
20
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-list component</p>
8
- </div>
9
21
  <igc-list>
10
22
  <igc-list-header>
11
23
  <h1>Job Positions</h1>
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const cli_core_1 = require("@igniteui/cli-core");
4
- class IgcButtonComponent extends cli_core_1.BaseComponent {
4
+ class IgcListComponent extends cli_core_1.BaseComponent {
5
5
  /**
6
6
  *
7
7
  */
8
8
  constructor() {
9
9
  super(__dirname);
10
10
  this.name = "List";
11
- this.group = "Grids & Lists";
11
+ this.group = "Lists";
12
12
  this.description = `Customizable list component`;
13
13
  }
14
14
  }
15
- module.exports = new IgcButtonComponent();
15
+ module.exports = new IgcListComponent();
@@ -1,12 +1,14 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcNavbarComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcNavbarComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-navbar component</p>
8
- </div>
9
- <igc-navbar style="height:30px">
11
+ <igc-navbar style="height:30px; width:1300px">
10
12
  <igc-icon slot="start" name="home"></igc-icon>
11
13
  <h2>Title</h2>
12
14
  <igc-icon slot="end" name="search"></igc-icon>
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <base href="/">
7
- <link rel="stylesheet" href="./node_modules/igniteui-webcomponents/src/styles/themes/material.css">
7
+ <link rel="stylesheet" href="./node_modules/igniteui-webcomponents/themes/bootstrap.css">
8
8
  <style>
9
9
  body {
10
10
  background: #fafafa;
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@open-wc/testing": "^2.5.33",
22
22
  "@vaadin/router": "^1.7.4",
23
- "igniteui-webcomponents": "1.0.0-beta",
23
+ "igniteui-webcomponents": "1.0.0-beta.2",
24
24
  "@igniteui/material-icons-extended": "^2.10.0",
25
25
  "lit": "^2.0.2"
26
26
  },
@@ -1,11 +1,25 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcNavDrawerComponent,
4
+ IgcNavDrawerItemComponent,
5
+ IgcNavDrawerHeaderItemComponent,
6
+ IgcRippleComponent,
7
+ } from 'igniteui-webcomponents';
2
8
  import { routes } from './index.js';
3
9
  import './app/home/home.component';
4
10
  import './app/not-found/not-found.component';
5
11
 
12
+ defineComponents(IgcNavDrawerComponent, IgcNavDrawerItemComponent, IgcNavDrawerHeaderItemComponent, IgcRippleComponent);
13
+
6
14
  export class App extends HTMLElement {
7
15
  connectedCallback() {
8
16
  this.innerHTML = `
17
+ <style>
18
+ igc-nav-drawer-header-item {
19
+ text-align: center;
20
+ font-weight: bold;
21
+ }
22
+ </style>
9
23
  <div id="navigation-outlet">
10
24
  <igc-nav-drawer open=true>
11
25
  <igc-nav-drawer-header-item>Ignite UI CLI</igc-nav-drawer-header-item>
@@ -13,7 +27,7 @@ export class App extends HTMLElement {
13
27
  ${routes.filter((element, index) => index < routes.length - 1).map(i => this.innerHTML = `
14
28
  <igc-nav-drawer-item>
15
29
  <span slot="content">
16
- <a href="${i.path}">${i.name}</a>
30
+ <a style="text-decoration: none;" href="${i.path}">${i.name}<igc-ripple></igc-ripple></a>
17
31
  </span>
18
32
  </igc-nav-drawer-item>
19
33
  `)}
@@ -1,11 +1,14 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcRadioComponent,
4
+ IgcRadioGroupComponent,
5
+ } from 'igniteui-webcomponents';
6
+
7
+ defineComponents(IgcRadioComponent, IgcRadioGroupComponent);
2
8
 
3
9
  export default class $(ClassName) extends HTMLElement {
4
10
  connectedCallback() {
5
11
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-radio-group component</p>
8
- </div>
9
12
  <igc-radio-group>
10
13
  <igc-radio name="fruit" value="banana">
11
14
  Banana
@@ -1,11 +1,13 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcRippleComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcRippleComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
5
10
  this.innerHTML = `
6
- <div class="description">
7
- <p>igc-ripple component</p>
8
- </div>
9
11
  <igc-button>
10
12
  <igc-ripple></igc-ripple>
11
13
  Button with ripple
@@ -1,4 +1,9 @@
1
- import 'igniteui-webcomponents';
1
+ import {
2
+ defineComponents,
3
+ IgcSwitchComponent,
4
+ } from 'igniteui-webcomponents';
5
+
6
+ defineComponents(IgcSwitchComponent);
2
7
 
3
8
  export default class $(ClassName) extends HTMLElement {
4
9
  connectedCallback() {
@@ -1,16 +0,0 @@
1
- import 'igniteui-webcomponents';
2
-
3
- export default class $(ClassName) extends HTMLElement {
4
- connectedCallback() {
5
- this.innerHTML = `
6
- <div class="description">
7
- <p>igc-link-button component</p>
8
- </div>
9
- <igc-link-button>
10
- Click me
11
- </igc-link-button>
12
- `;
13
- }
14
- }
15
-
16
- customElements.define('app-$(path)', $(ClassName));
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
- class IgcLinkButtonTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
- constructor() {
6
- super(__dirname);
7
- this.components = ["LinkButton"];
8
- this.controlGroup = "Data Entry & Display";
9
- this.listInComponentTemplates = true;
10
- this.id = "link-button";
11
- this.projectType = "igc-ts";
12
- this.name = "Link button";
13
- this.description = "basic IgcLinkButton";
14
- }
15
- addClassDeclaration(mainModule, projPath, name, modulePath) {
16
- // not applicable with custom module
17
- }
18
- }
19
- module.exports = new IgcLinkButtonTemplate();
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const cli_core_1 = require("@igniteui/cli-core");
4
- class IgcLinkButtonComponent extends cli_core_1.BaseComponent {
5
- /**
6
- *
7
- */
8
- constructor() {
9
- super(__dirname);
10
- this.name = "Link Button";
11
- this.group = "Data Entry & Display";
12
- this.description = `Customizable link button component`;
13
- }
14
- }
15
- module.exports = new IgcLinkButtonComponent();
@@ -1,16 +0,0 @@
1
- import 'igniteui-webcomponents';
2
-
3
- export default class $(ClassName) extends HTMLElement {
4
- connectedCallback() {
5
- this.innerHTML = `
6
- <div class="description">
7
- <p>igc-radio component</p>
8
- </div>
9
- <igc-radio>
10
- Label
11
- </igc-radio>
12
- `;
13
- }
14
- }
15
-
16
- customElements.define('app-$(path)', $(ClassName));
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
- class IgcRadioTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
- constructor() {
6
- super(__dirname);
7
- this.components = ["Radio"];
8
- this.controlGroup = "Data Entry & Display";
9
- this.listInComponentTemplates = true;
10
- this.id = "radio";
11
- this.projectType = "igc-ts";
12
- this.name = "Radio";
13
- this.description = "basic IgcRadio";
14
- }
15
- addClassDeclaration(mainModule, projPath, name, modulePath) {
16
- // not applicable with custom module
17
- }
18
- }
19
- module.exports = new IgcRadioTemplate();
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const cli_core_1 = require("@igniteui/cli-core");
4
- class IgcRadioComponent extends cli_core_1.BaseComponent {
5
- /**
6
- *
7
- */
8
- constructor() {
9
- super(__dirname);
10
- this.name = "Radio";
11
- this.group = "Data Entry & Display";
12
- this.description = `Customizable radio component`;
13
- }
14
- }
15
- module.exports = new IgcRadioComponent();