igniteui-cli 15.6.0 → 15.6.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.
Files changed (21) hide show
  1. package/package.json +4 -4
  2. package/templates/react/igr-ts/avatar/default/files/src/app/__path__/__filePrefix__.tsx +3 -3
  3. package/templates/react/igr-ts/avatar/default/files/src/app/__path__/style.module.css +9 -0
  4. package/templates/react/igr-ts/button/default/files/src/app/__path__/__filePrefix__.tsx +1 -1
  5. package/templates/react/igr-ts/button/default/files/src/app/__path__/style.module.css +3 -0
  6. package/templates/react/igr-ts/icon/default/files/src/app/__path__/__filePrefix__.tsx +2 -2
  7. package/templates/react/igr-ts/icon/default/files/src/app/__path__/style.module.css +3 -0
  8. package/templates/react/igr-ts/icon-button/default/files/src/app/__path__/__filePrefix__.tsx +1 -1
  9. package/templates/react/igr-ts/icon-button/default/files/src/app/__path__/style.module.css +3 -0
  10. package/templates/react/igr-ts/pivot-grid/basic/files/src/app/__path__/__filePrefix__.tsx +3 -4
  11. package/templates/react/igr-ts/projects/_base/files/package.json +1 -0
  12. package/templates/webcomponents/igc-ts/avatar/default/files/src/app/__path__/__filePrefix__.ts +7 -2
  13. package/templates/webcomponents/igc-ts/button/default/files/src/app/__path__/__filePrefix__.ts +8 -3
  14. package/templates/webcomponents/igc-ts/card/default/files/src/app/__path__/__filePrefix__.ts +3 -1
  15. package/templates/webcomponents/igc-ts/date-time-input/default/files/src/app/__path__/__filePrefix__.ts +8 -2
  16. package/templates/webcomponents/igc-ts/icon/default/files/src/app/__path__/__filePrefix__.ts +7 -3
  17. package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.ts +8 -2
  18. package/templates/webcomponents/igc-ts/projects/ai-config/files/skills/README.md +1 -0
  19. package/templates/webcomponents/igc-ts/projects/side-nav-auth/files/src/app/authentication/login-bar/login-bar.ts +1 -1
  20. package/templates/webcomponents/igc-ts/tabs/default/files/src/app/__path__/__filePrefix__.ts +21 -15
  21. /package/templates/webcomponents/igc-ts/tabs/default/files/src/app/__path__/{__filePrefix__.test → __filePrefix__.test.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "15.6.0",
3
+ "version": "15.6.1",
4
4
  "description": "CLI tool for creating Ignite UI projects",
5
5
  "keywords": [
6
6
  "CLI",
@@ -66,9 +66,9 @@
66
66
  "all": true
67
67
  },
68
68
  "dependencies": {
69
- "@igniteui/angular-templates": "~22.1.1560",
70
- "@igniteui/cli-core": "~15.6.0",
71
- "@igniteui/mcp-server": "~15.6.0",
69
+ "@igniteui/angular-templates": "~22.1.1561",
70
+ "@igniteui/cli-core": "~15.6.1",
71
+ "@igniteui/mcp-server": "~15.6.1",
72
72
  "@inquirer/prompts": "^7.9.0",
73
73
  "chalk": "^5.3.0",
74
74
  "glob": "^11.0.0",
@@ -7,9 +7,9 @@ export default function $(ClassName)() {
7
7
  <div>
8
8
  <h1 className={style.title}>Avatar</h1>
9
9
  <div className={style.container}>
10
- <IgrAvatar shape="circle" size="large" initials="JD" />
11
- <IgrAvatar shape="rounded" size="medium" initials="AB" />
12
- <IgrAvatar shape="circle" size="small" initials="CD" />
10
+ <IgrAvatar className={style.large} shape="circle" initials="JD" />
11
+ <IgrAvatar className={style.medium} shape="rounded" initials="AB" />
12
+ <IgrAvatar className={style.small} shape="circle" initials="CD" />
13
13
  </div>
14
14
  </div>
15
15
  );
@@ -7,3 +7,12 @@
7
7
  :local(.title) {
8
8
  color: rgb(0, 153, 255);
9
9
  }
10
+ :local(.large) {
11
+ --ig-size: var(--ig-size-large);
12
+ }
13
+ :local(.medium) {
14
+ --ig-size: var(--ig-size-medium);
15
+ }
16
+ :local(.small) {
17
+ --ig-size: var(--ig-size-small);
18
+ }
@@ -7,7 +7,7 @@ export default function $(ClassName)() {
7
7
  <div>
8
8
  <h1 className={style.title}>Button</h1>
9
9
  <div className={style.container}>
10
- <IgrButton size="large"><span>Large button</span></IgrButton>
10
+ <IgrButton className={style.large}><span>Large button</span></IgrButton>
11
11
  </div>
12
12
  </div>
13
13
  );
@@ -7,3 +7,6 @@
7
7
  :local(.title) {
8
8
  color: rgb(0, 153, 255);
9
9
  }
10
+ :local(.large) {
11
+ --ig-size: var(--ig-size-large);
12
+ }
@@ -9,11 +9,11 @@ export default function $(ClassName)() {
9
9
  <div className={style.container}>
10
10
  <div>
11
11
  <label>Home icon: </label>
12
- <IgrIcon name="home" collection="default" size="large" />
12
+ <IgrIcon className={style.large} name="home" collection="default" />
13
13
  </div>
14
14
  <div>
15
15
  <label>Search icon: </label>
16
- <IgrIcon name="search" collection="default" size="large" />
16
+ <IgrIcon className={style.large} name="search" collection="default" />
17
17
  </div>
18
18
  </div>
19
19
  </div>
@@ -7,3 +7,6 @@
7
7
  :local(.title) {
8
8
  color: rgb(0, 153, 255);
9
9
  }
10
+ :local(.large) {
11
+ --ig-size: var(--ig-size-large);
12
+ }
@@ -7,7 +7,7 @@ export default function $(ClassName)() {
7
7
  <div>
8
8
  <h1 className={style.title}>Icon Button</h1>
9
9
  <div className={style.container}>
10
- <IgrIconButton name="thumb-up" collection="default" variant="contained" size="large" href="https://www.infragistics.com/support" />
10
+ <IgrIconButton className={style.large} name="thumb-up" collection="default" variant="contained" href="https://www.infragistics.com/support" />
11
11
  </div>
12
12
  </div>
13
13
  );
@@ -7,3 +7,6 @@
7
7
  :local(.title) {
8
8
  color: rgb(0, 153, 255);
9
9
  }
10
+ :local(.large) {
11
+ --ig-size: var(--ig-size-large);
12
+ }
@@ -1,5 +1,5 @@
1
1
  import style from './style.module.css';
2
- import { IgrPivotGrid } from 'igniteui-react-grids';
2
+ import { IgrPivotGrid, type IgrPivotConfiguration } from 'igniteui-react-grids';
3
3
  import 'igniteui-react-grids/grids/themes/light/bootstrap.css';
4
4
 
5
5
  import { DATA } from './data';
@@ -7,7 +7,7 @@ import { DATA } from './data';
7
7
  export default function $(ClassName)() {
8
8
  const title = '$(name)';
9
9
 
10
- const pivotConfiguration = {
10
+ const pivotConfiguration: IgrPivotConfiguration = {
11
11
  columns: [
12
12
  {
13
13
  memberName: 'Product',
@@ -32,8 +32,7 @@ export default function $(ClassName)() {
32
32
  },
33
33
  enabled: true
34
34
  }
35
- ],
36
- filters: null
35
+ ]
37
36
  };
38
37
 
39
38
  return (
@@ -11,6 +11,7 @@
11
11
  "test": "vitest"
12
12
  },
13
13
  "dependencies": {
14
+ "@testing-library/dom": "^10.4.1",
14
15
  "@testing-library/jest-dom": "^6.9.1",
15
16
  "@testing-library/react": "^16.3.0",
16
17
  "@igniteui/material-icons-extended": "^3.0.2",
@@ -1,4 +1,4 @@
1
- import { html, LitElement } from 'lit';
1
+ import { css, html, LitElement } from 'lit';
2
2
  import { customElement } from 'lit/decorators.js';
3
3
  import {
4
4
  defineComponents,
@@ -9,10 +9,15 @@ defineComponents(IgcAvatarComponent);
9
9
 
10
10
  @customElement('app-$(path)')
11
11
  export default class $(ClassName) extends LitElement {
12
+ static styles = css`
13
+ :host {
14
+ --ig-size: var(--ig-size-large);
15
+ }
16
+ `;
17
+
12
18
  render() {
13
19
  return html`
14
20
  <igc-avatar
15
- size="large"
16
21
  shape="circle"
17
22
  src="./src/assets/avatar1.jpg"
18
23
  alt="My avatar"
@@ -1,4 +1,4 @@
1
- import { html, LitElement } from 'lit';
1
+ import { css, html, LitElement } from 'lit';
2
2
  import { customElement } from 'lit/decorators.js';
3
3
  import {
4
4
  defineComponents,
@@ -9,10 +9,15 @@ defineComponents(IgcButtonComponent);
9
9
 
10
10
  @customElement('app-$(path)')
11
11
  export default class $(ClassName) extends LitElement {
12
+ static styles = css`
13
+ :host {
14
+ --ig-size: var(--ig-size-large);
15
+ }
16
+ `;
17
+
12
18
  render() {
13
19
  return html`
14
- <igc-button
15
- size='large'>
20
+ <igc-button>
16
21
  Large button
17
22
  </igc-button>
18
23
  `;
@@ -12,6 +12,9 @@ defineComponents(IgcCardComponent, IgcButtonComponent, IgcIconButtonComponent);
12
12
  @customElement('app-$(path)')
13
13
  export default class $(ClassName) extends LitElement {
14
14
  static styles = css`
15
+ igc-avatar {
16
+ --ig-size: var(--ig-size-small);
17
+ }
15
18
  igc-card {
16
19
  width: 400px;
17
20
  }
@@ -28,7 +31,6 @@ export default class $(ClassName) extends LitElement {
28
31
  <igc-card-header>
29
32
  <igc-avatar
30
33
  slot="thumbnail"
31
- size="small"
32
34
  shape="rounded"
33
35
  src="https://www.infragistics.com/angular-demos/assets/images/men/1.jpg"
34
36
  >
@@ -1,4 +1,4 @@
1
- import { html, LitElement } from 'lit';
1
+ import { css, html, LitElement } from 'lit';
2
2
  import { customElement, query } from 'lit/decorators.js';
3
3
  import {
4
4
  defineComponents,
@@ -13,6 +13,12 @@ registerIconFromText('clear', clearIcon, 'material');
13
13
 
14
14
  @customElement('app-$(path)')
15
15
  export default class $(ClassName) extends LitElement {
16
+ static styles = css`
17
+ igc-icon {
18
+ --ig-size: var(--ig-size-large);
19
+ }
20
+ `;
21
+
16
22
  @query('igc-date-time-input')
17
23
  _input!: Element
18
24
 
@@ -26,7 +32,7 @@ export default class $(ClassName) extends LitElement {
26
32
  .minValue=${new Date(2022, 6, 2, 7, 30, 0)}
27
33
  .maxValue=${new Date(2022, 6, 27, 7, 30, 0)}
28
34
  .spinDelta={date: 2, year: 10,}>
29
- <igc-icon name="clear" collection='material' size='large' slot="suffix" @click=${this.handleClear}></igc-icon>
35
+ <igc-icon name="clear" collection='material' slot="suffix" @click=${this.handleClear}></igc-icon>
30
36
  <span slot="helper-text">This is some helper text</span>
31
37
  </igc-date-time-input>
32
38
  `;
@@ -1,4 +1,4 @@
1
- import { html, LitElement } from 'lit';
1
+ import { css, html, LitElement } from 'lit';
2
2
  import { customElement } from 'lit/decorators.js';
3
3
  import {
4
4
  defineComponents,
@@ -21,6 +21,12 @@ registerIcon(
21
21
 
22
22
  @customElement('app-$(path)')
23
23
  export default class Icon extends LitElement {
24
+ static styles = css`
25
+ igc-icon {
26
+ --ig-size: var(--ig-size-large);
27
+ }
28
+ `;
29
+
24
30
  render() {
25
31
  return html`
26
32
  <div>
@@ -28,7 +34,6 @@ export default class Icon extends LitElement {
28
34
  <igc-icon
29
35
  name='search'
30
36
  collection='material'
31
- size='large'
32
37
  mirrored = false
33
38
  >
34
39
  </igc-icon>
@@ -38,7 +43,6 @@ export default class Icon extends LitElement {
38
43
  <igc-icon
39
44
  name='build'
40
45
  collection='material'
41
- size='large'
42
46
  mirrored = false
43
47
  >
44
48
  </igc-icon>
@@ -1,4 +1,4 @@
1
- import { html, LitElement } from 'lit';
1
+ import { css, html, LitElement } from 'lit';
2
2
  import { customElement } from 'lit/decorators.js';
3
3
  import {
4
4
  defineComponents,
@@ -18,9 +18,15 @@ registerIconFromText(
18
18
 
19
19
  @customElement('app-$(path)')
20
20
  export default class IconButton extends LitElement {
21
+ static styles = css`
22
+ igc-icon-button {
23
+ --ig-size: var(--ig-size-large);
24
+ }
25
+ `;
26
+
21
27
  render() {
22
28
  return html`
23
- <igc-icon-button name="thumb-up" collection="material" href="https://www.infragistics.com/support" variant="contained" size="large"></igc-icon-button>
29
+ <igc-icon-button name="thumb-up" collection="material" href="https://www.infragistics.com/support" variant="contained"></igc-icon-button>
24
30
  `;
25
31
  }
26
32
  }
@@ -15,6 +15,7 @@ Skills are structured instructions that help AI agents understand and execute co
15
15
  | [igniteui-wc-customize-component-theme](./igniteui-wc-customize-component-theme/SKILL.md) | Customize styling using CSS custom properties, parts, and theming system | Applying custom brand colors/styles |
16
16
  | [igniteui-wc-generate-from-image-design](./igniteui-wc-generate-from-image-design/SKILL.md) | Implement a view from a screenshot or mockup using Ignite UI Web Components | Converting a design image into UI |
17
17
  | [igniteui-wc-optimize-bundle-size](./igniteui-wc-optimize-bundle-size/SKILL.md) | Reduce bundle size by importing only needed components and lazy loading | Optimizing production performance |
18
+ | [igniteui-wc-migrate-grid-lite-to-premium](./igniteui-wc-migrate-grid-lite-to-premium/SKILL.md) | Migrate from Grid Lite to the premium Data Grid | Adopting enterprise grid features |
18
19
 
19
20
  ## How to Use
20
21
 
@@ -32,6 +32,7 @@ export class LoginBarElement extends LitElement {
32
32
 
33
33
  .profile-avatar {
34
34
  cursor: pointer;
35
+ --ig-size: var(--ig-size-small);
35
36
  color: #0075d2;
36
37
  --ig-avatar-background: #fff;
37
38
  --ig-avatar-color: #0075d2;
@@ -105,7 +106,6 @@ export class LoginBarElement extends LitElement {
105
106
  slot="target"
106
107
  class="profile-avatar"
107
108
  shape="circle"
108
- size="small"
109
109
  src=${this.currentUser.picture ?? ''}
110
110
  tabindex="0"
111
111
  aria-label="Open profile menu"
@@ -1,12 +1,13 @@
1
- import { html, LitElement } from 'lit';
1
+ import { css, html, LitElement } from 'lit';
2
2
  import { customElement } from 'lit/decorators.js';
3
3
  import {
4
4
  defineComponents,
5
+ IgcIconComponent,
5
6
  IgcTabsComponent,
6
7
  registerIconFromText
7
8
  } from 'igniteui-webcomponents';
8
9
 
9
- defineComponents(IgcTabsComponent);
10
+ defineComponents(IgcTabsComponent, IgcIconComponent);
10
11
 
11
12
  const libraryIcon =
12
13
  '<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>';
@@ -22,19 +23,18 @@ registerIconFromText('info', infoIcon, 'material');
22
23
 
23
24
  @customElement('app-tabs')
24
25
  export default class Tabs extends LitElement {
26
+ static styles = css`
27
+ igc-icon {
28
+ --ig-size: var(--ig-size-medium);
29
+ }
30
+ `;
31
+
25
32
  render() {
26
33
  return html`
27
34
  <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">
35
+ <igc-tab>
36
+ <igc-icon slot="prefix" name="library" collection='material'></igc-icon>
37
+ <span slot="label">Albums</span>
38
38
  <br /><br /><b>
39
39
  Sgt. Peppers Lonely Hearts Club Band <br /><br />
40
40
  The Dark Side of the Moon <br /><br />
@@ -42,14 +42,20 @@ export default class Tabs extends LitElement {
42
42
  Led Zeppelin IV <br /><br />
43
43
  It Takes a Nation of Millions to Hold Us Back <br /><br />
44
44
  Thriller <br /><br /></b>
45
- </igc-tab-panel>
46
- <igc-tab-panel id="second">
45
+ </igc-tab>
46
+ <igc-tab>
47
+ <igc-icon slot="prefix" name="favorite" collection='material'></igc-icon>
48
+ <span slot="label">Favourites</span>
47
49
  <br /><br /><b>
48
50
  The Dark Side of the Moon <br /><br />
49
51
  Led Zeppelin IV <br /><br />
50
52
  It Takes a Nation of Millions to Hold Us Back <br /><br />
51
53
  Thriller <br /><br /></b>
52
- </igc-tab-panel>
54
+ </igc-tab>
55
+ <igc-tab disabled>
56
+ <igc-icon slot="prefix" name="info" collection='material'></igc-icon>
57
+ <span slot="label">Info</span>
58
+ </igc-tab>
53
59
  </igc-tabs>
54
60
  `;
55
61
  }