igniteui-angular 21.2.0-rc.3 → 21.2.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.
@@ -31,9 +31,11 @@ const IgxBadgeType = {
31
31
  *
32
32
  * @example
33
33
  * ```html
34
- * <igx-avatar>
35
- * <igx-badge icon="check" type="success"></igx-badge>
36
- * </igx-avatar>
34
+ * <div class="avatar-badge-container">
35
+ * <igx-avatar icon="person" shape="circle" size="small"></igx-avatar>
36
+ * <igx-badge icon="check" type="success" shape="square"></igx-badge>
37
+ * </div>
38
+ * ```
37
39
  */
38
40
  class IgxBadgeComponent {
39
41
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"igniteui-angular-badge.mjs","sources":["../../../projects/igniteui-angular/badge/src/badge/badge.component.ts","../../../projects/igniteui-angular/badge/src/badge/badge.component.html","../../../projects/igniteui-angular/badge/src/badge/badge.module.ts","../../../projects/igniteui-angular/badge/src/igniteui-angular-badge.ts"],"sourcesContent":["import { booleanAttribute, Component, HostBinding, Input } from '@angular/core';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\n\nlet NEXT_ID = 0;\n\n/**\n * Determines the igxBadge type\n */\nexport const IgxBadgeType = {\n PRIMARY: 'primary',\n INFO: 'info',\n SUCCESS: 'success',\n WARNING: 'warning',\n ERROR: 'error'\n} as const;\nexport type IgxBadgeType = (typeof IgxBadgeType)[keyof typeof IgxBadgeType];\n/**\n * Badge provides visual notifications used to decorate avatars, menus, etc.\n *\n * @igxModule IgxBadgeModule\n *\n * @igxTheme igx-badge-theme\n *\n * @igxKeywords badge, icon, notification\n *\n * @igxGroup Data Entry & Display\n *\n * @remarks\n * The Ignite UI Badge is used to decorate avatars, navigation menus, or other components in the\n * application when visual notification is needed. They are usually designed as icons with a predefined\n * style to communicate information, success, warnings, or errors.\n *\n * @example\n * ```html\n * <igx-avatar>\n * <igx-badge icon=\"check\" type=\"success\"></igx-badge>\n * </igx-avatar>\n */\n@Component({\n selector: 'igx-badge',\n templateUrl: 'badge.component.html',\n imports: [IgxIconComponent]\n})\nexport class IgxBadgeComponent {\n\n /**\n * Sets/gets the `id` of the badge.\n *\n * @remarks\n * If not set, the `id` will have value `\"igx-badge-0\"`.\n *\n * @example\n * ```html\n * <igx-badge id=\"igx-badge-2\"></igx-badge>\n * ```\n */\n @HostBinding('attr.id')\n @Input()\n public id = `igx-badge-${NEXT_ID++}`;\n\n /**\n * Sets/gets the type of the badge.\n *\n * @remarks\n * Allowed values are `primary`, `info`, `success`, `warning`, `error`.\n * Providing an invalid value won't display a badge.\n *\n * @example\n * ```html\n * <igx-badge type=\"success\"></igx-badge>\n * ```\n */\n @Input()\n public type: string | IgxBadgeType = IgxBadgeType.PRIMARY;\n\n /**\n * Sets/gets the value to be displayed inside the badge.\n *\n * @remarks\n * If neither a `value` nor an `icon` is set the content of the badge will be empty.\n *\n * @example\n * ```html\n * <igx-badge value=\"11\"></igx-badge>\n * ```\n */\n @Input()\n public value: string | number = '';\n\n /**\n * Sets/gets an icon for the badge from the material icons set.\n *\n * @remarks\n * If neither a `value` nor an `icon` is set the content of the badge will be empty.\n * Providing an invalid value won't display anything.\n *\n * @example\n * ```html\n * <igx-badge icon=\"check\"></igx-badge>\n * ```\n */\n @Input()\n public icon: string;\n\n /**\n * The name of the icon set. Used in case the icon is from a different icon set.\n */\n @Input()\n public iconSet: string;\n\n /**\n * Sets/gets the role attribute value.\n *\n * @example\n * ```typescript\n * @ViewChild(\"MyBadge\", { read: IgxBadgeComponent })\n * public badge: IgxBadgeComponent;\n *\n * badge.role = 'status';\n * ```\n */\n @HostBinding('attr.role')\n public role = 'status';\n\n /**\n * Sets/gets the css class to use on the badge.\n *\n * @example\n * ```typescript\n * @ViewChild(\"MyBadge\", { read: IgxBadgeComponent })\n * public badge: IgxBadgeComponent;\n *\n * badge.cssClass = 'my-badge-class';\n * ```\n */\n @HostBinding('class.igx-badge')\n public cssClass = 'igx-badge';\n\n /**\n * Sets a square shape to the badge, if `shape` is set to `square`.\n * By default the shape of the badge is rounded.\n *\n * @example\n * ```html\n * <igx-badge shape=\"square\"></igx-badge>\n * ```\n */\n @Input()\n public shape: 'rounded' | 'square' = 'rounded';\n\n /** @hidden @internal */\n @HostBinding('class.igx-badge--square')\n public get _squareShape(): boolean {\n if (!this.dot) {\n return this.shape === 'square';\n }\n }\n\n /**\n * Sets/gets the aria-label attribute value.\n *\n * @example\n * ```typescript\n * @ViewChild(\"MyBadge\", { read: IgxBadgeComponent })\n * public badge: IgxBadgeComponent;\n *\n * badge.label = 'badge';\n * ```\n */\n @HostBinding('attr.aria-label')\n public label = 'badge';\n\n /**\n * Sets/gets whether the badge is outlined.\n * Default value is `false`.\n *\n * @example\n * ```html\n * <igx-badge outlined></igx-badge>\n * ```\n */\n @Input({transform: booleanAttribute})\n @HostBinding('class.igx-badge--outlined')\n public outlined = false;\n\n /**\n * Sets/gets whether the badge is displayed as a dot.\n * When true, the badge will be rendered as a minimal 8px indicator without any content.\n * Default value is `false`.\n *\n * @example\n * ```html\n * <igx-badge dot type=\"success\"></igx-badge>\n * ```\n */\n @Input({transform: booleanAttribute})\n @HostBinding('class.igx-badge--dot')\n public dot = false;\n\n /**\n * Defines a human-readable, accessor, author-localized description for\n * the `type` and the `icon` or `value` of the element.\n *\n * @hidden\n * @internal\n */\n @HostBinding('attr.aria-roledescription')\n public get roleDescription() {\n if (this.icon) {\n return this.type + ' type badge with icon type ' + this.icon;\n } else if (this.value || this.value === 0) {\n return this.type + ' badge type with value ' + this.value;\n }\n return this.type + ' badge type without value';\n }\n\n @HostBinding('class.igx-badge--info')\n public get infoClass() {\n return this.type === IgxBadgeType.INFO;\n }\n\n @HostBinding('class.igx-badge--success')\n public get successClass() {\n return this.type === IgxBadgeType.SUCCESS;\n }\n\n @HostBinding('class.igx-badge--warning')\n public get warningClass() {\n return this.type === IgxBadgeType.WARNING;\n }\n\n @HostBinding('class.igx-badge--error')\n public get errorClass() {\n return this.type === IgxBadgeType.ERROR;\n }\n}\n","@if (value || value === 0 && !icon) {\n <span class=\"igx-badge__value\">{{value}}</span>\n}\n@if (icon && !iconSet) {\n <igx-icon>{{icon}}</igx-icon>\n}\n@if (icon && iconSet) {\n <igx-icon [family]=\"iconSet\" [name]=\"icon\">{{icon}}</igx-icon>\n}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IgxBadgeComponent } from './badge.component';\n\n/**\n * @hidden\n * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components\n */\n@NgModule({\n exports: [IgxBadgeComponent],\n imports: [IgxBadgeComponent]\n})\nexport class IgxBadgeModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAGA,IAAI,OAAO,GAAG,CAAC;AAEf;;AAEG;AACI,MAAM,YAAY,GAAG;AACxB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE;;AAGX;;;;;;;;;;;;;;;;;;;;;AAqBG;MAMU,iBAAiB,CAAA;AAL9B,IAAA,WAAA,GAAA;AAOG;;;;;;;;;;AAUG;AAGK,QAAA,IAAA,CAAA,EAAE,GAAG,CAAA,UAAA,EAAa,OAAO,EAAE,EAAE;AAErC;;;;;;;;;;;AAWG;AAEK,QAAA,IAAA,CAAA,IAAI,GAA0B,YAAY,CAAC,OAAO;AAE1D;;;;;;;;;;AAUG;QAEK,IAAA,CAAA,KAAK,GAAoB,EAAE;AAuBlC;;;;;;;;;;AAUG;QAEI,IAAA,CAAA,IAAI,GAAG,QAAQ;AAEtB;;;;;;;;;;AAUG;QAEI,IAAA,CAAA,QAAQ,GAAG,WAAW;AAE7B;;;;;;;;AAQG;QAEI,IAAA,CAAA,KAAK,GAAyB,SAAS;AAU9C;;;;;;;;;;AAUG;QAEI,IAAA,CAAA,KAAK,GAAG,OAAO;AAEtB;;;;;;;;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uBAAuB;;sBAKnC,WAAW;uBAAC,0BAA0B;;sBAKtC,WAAW;uBAAC,0BAA0B;;sBAKtC,WAAW;uBAAC,wBAAwB;;;AEpOzC;;;AAGG;MAKU,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAd,cAAc,EAAA,OAAA,EAAA,CAFb,iBAAiB,CAAA,EAAA,OAAA,EAAA,CADjB,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAGlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAFb,iBAAiB,CAAA,EAAA,CAAA,CAAA;;2FAElB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,OAAO,EAAE,CAAC,iBAAiB;AAC9B,iBAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"igniteui-angular-badge.mjs","sources":["../../../projects/igniteui-angular/badge/src/badge/badge.component.ts","../../../projects/igniteui-angular/badge/src/badge/badge.component.html","../../../projects/igniteui-angular/badge/src/badge/badge.module.ts","../../../projects/igniteui-angular/badge/src/igniteui-angular-badge.ts"],"sourcesContent":["import { booleanAttribute, Component, HostBinding, Input } from '@angular/core';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\n\nlet NEXT_ID = 0;\n\n/**\n * Determines the igxBadge type\n */\nexport const IgxBadgeType = {\n PRIMARY: 'primary',\n INFO: 'info',\n SUCCESS: 'success',\n WARNING: 'warning',\n ERROR: 'error'\n} as const;\nexport type IgxBadgeType = (typeof IgxBadgeType)[keyof typeof IgxBadgeType];\n/**\n * Badge provides visual notifications used to decorate avatars, menus, etc.\n *\n * @igxModule IgxBadgeModule\n *\n * @igxTheme igx-badge-theme\n *\n * @igxKeywords badge, icon, notification\n *\n * @igxGroup Data Entry & Display\n *\n * @remarks\n * The Ignite UI Badge is used to decorate avatars, navigation menus, or other components in the\n * application when visual notification is needed. They are usually designed as icons with a predefined\n * style to communicate information, success, warnings, or errors.\n *\n * @example\n * ```html\n * <div class=\"avatar-badge-container\">\n * <igx-avatar icon=\"person\" shape=\"circle\" size=\"small\"></igx-avatar>\n * <igx-badge icon=\"check\" type=\"success\" shape=\"square\"></igx-badge>\n * </div>\n * ```\n */\n@Component({\n selector: 'igx-badge',\n templateUrl: 'badge.component.html',\n imports: [IgxIconComponent]\n})\nexport class IgxBadgeComponent {\n\n /**\n * Sets/gets the `id` of the badge.\n *\n * @remarks\n * If not set, the `id` will have value `\"igx-badge-0\"`.\n *\n * @example\n * ```html\n * <igx-badge id=\"igx-badge-2\"></igx-badge>\n * ```\n */\n @HostBinding('attr.id')\n @Input()\n public id = `igx-badge-${NEXT_ID++}`;\n\n /**\n * Sets/gets the type of the badge.\n *\n * @remarks\n * Allowed values are `primary`, `info`, `success`, `warning`, `error`.\n * Providing an invalid value won't display a badge.\n *\n * @example\n * ```html\n * <igx-badge type=\"success\"></igx-badge>\n * ```\n */\n @Input()\n public type: string | IgxBadgeType = IgxBadgeType.PRIMARY;\n\n /**\n * Sets/gets the value to be displayed inside the badge.\n *\n * @remarks\n * If neither a `value` nor an `icon` is set the content of the badge will be empty.\n *\n * @example\n * ```html\n * <igx-badge value=\"11\"></igx-badge>\n * ```\n */\n @Input()\n public value: string | number = '';\n\n /**\n * Sets/gets an icon for the badge from the material icons set.\n *\n * @remarks\n * If neither a `value` nor an `icon` is set the content of the badge will be empty.\n * Providing an invalid value won't display anything.\n *\n * @example\n * ```html\n * <igx-badge icon=\"check\"></igx-badge>\n * ```\n */\n @Input()\n public icon: string;\n\n /**\n * The name of the icon set. Used in case the icon is from a different icon set.\n */\n @Input()\n public iconSet: string;\n\n /**\n * Sets/gets the role attribute value.\n *\n * @example\n * ```typescript\n * @ViewChild(\"MyBadge\", { read: IgxBadgeComponent })\n * public badge: IgxBadgeComponent;\n *\n * badge.role = 'status';\n * ```\n */\n @HostBinding('attr.role')\n public role = 'status';\n\n /**\n * Sets/gets the css class to use on the badge.\n *\n * @example\n * ```typescript\n * @ViewChild(\"MyBadge\", { read: IgxBadgeComponent })\n * public badge: IgxBadgeComponent;\n *\n * badge.cssClass = 'my-badge-class';\n * ```\n */\n @HostBinding('class.igx-badge')\n public cssClass = 'igx-badge';\n\n /**\n * Sets a square shape to the badge, if `shape` is set to `square`.\n * By default the shape of the badge is rounded.\n *\n * @example\n * ```html\n * <igx-badge shape=\"square\"></igx-badge>\n * ```\n */\n @Input()\n public shape: 'rounded' | 'square' = 'rounded';\n\n /** @hidden @internal */\n @HostBinding('class.igx-badge--square')\n public get _squareShape(): boolean {\n if (!this.dot) {\n return this.shape === 'square';\n }\n }\n\n /**\n * Sets/gets the aria-label attribute value.\n *\n * @example\n * ```typescript\n * @ViewChild(\"MyBadge\", { read: IgxBadgeComponent })\n * public badge: IgxBadgeComponent;\n *\n * badge.label = 'badge';\n * ```\n */\n @HostBinding('attr.aria-label')\n public label = 'badge';\n\n /**\n * Sets/gets whether the badge is outlined.\n * Default value is `false`.\n *\n * @example\n * ```html\n * <igx-badge outlined></igx-badge>\n * ```\n */\n @Input({transform: booleanAttribute})\n @HostBinding('class.igx-badge--outlined')\n public outlined = false;\n\n /**\n * Sets/gets whether the badge is displayed as a dot.\n * When true, the badge will be rendered as a minimal 8px indicator without any content.\n * Default value is `false`.\n *\n * @example\n * ```html\n * <igx-badge dot type=\"success\"></igx-badge>\n * ```\n */\n @Input({transform: booleanAttribute})\n @HostBinding('class.igx-badge--dot')\n public dot = false;\n\n /**\n * Defines a human-readable, accessor, author-localized description for\n * the `type` and the `icon` or `value` of the element.\n *\n * @hidden\n * @internal\n */\n @HostBinding('attr.aria-roledescription')\n public get roleDescription() {\n if (this.icon) {\n return this.type + ' type badge with icon type ' + this.icon;\n } else if (this.value || this.value === 0) {\n return this.type + ' badge type with value ' + this.value;\n }\n return this.type + ' badge type without value';\n }\n\n @HostBinding('class.igx-badge--info')\n public get infoClass() {\n return this.type === IgxBadgeType.INFO;\n }\n\n @HostBinding('class.igx-badge--success')\n public get successClass() {\n return this.type === IgxBadgeType.SUCCESS;\n }\n\n @HostBinding('class.igx-badge--warning')\n public get warningClass() {\n return this.type === IgxBadgeType.WARNING;\n }\n\n @HostBinding('class.igx-badge--error')\n public get errorClass() {\n return this.type === IgxBadgeType.ERROR;\n }\n}\n","@if (value || value === 0 && !icon) {\n <span class=\"igx-badge__value\">{{value}}</span>\n}\n@if (icon && !iconSet) {\n <igx-icon>{{icon}}</igx-icon>\n}\n@if (icon && iconSet) {\n <igx-icon [family]=\"iconSet\" [name]=\"icon\">{{icon}}</igx-icon>\n}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IgxBadgeComponent } from './badge.component';\n\n/**\n * @hidden\n * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components\n */\n@NgModule({\n exports: [IgxBadgeComponent],\n imports: [IgxBadgeComponent]\n})\nexport class IgxBadgeModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAGA,IAAI,OAAO,GAAG,CAAC;AAEf;;AAEG;AACI,MAAM,YAAY,GAAG;AACxB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE;;AAGX;;;;;;;;;;;;;;;;;;;;;;;AAuBG;MAMU,iBAAiB,CAAA;AAL9B,IAAA,WAAA,GAAA;AAOG;;;;;;;;;;AAUG;AAGK,QAAA,IAAA,CAAA,EAAE,GAAG,CAAA,UAAA,EAAa,OAAO,EAAE,EAAE;AAEr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
+ "version": "21.2.1",
4
4
  "description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
5
5
  "author": "Infragistics",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -104,7 +104,7 @@
104
104
  }
105
105
  },
106
106
  "igxDevDependencies": {
107
- "@igniteui/angular-schematics": "~21.2.1500-rc.3"
107
+ "@igniteui/angular-schematics": "~21.2.1500"
108
108
  },
109
109
  "ng-update": {
110
110
  "migrations": "./migrations/migration-collection.json",
@@ -6,6 +6,29 @@ user-invocable: true
6
6
 
7
7
  # Ignite UI for Angular — UI Components
8
8
 
9
+ ## Prerequisites
10
+ - Angular 20+ project
11
+ - `@angular/cli` installed
12
+ - `igniteui-angular` or `@infragistics/igniteui-angular` added to the project via `ng add igniteui-angular` (or the `@infragistics` variant) or `npm install` — see [Package Variants](#package-variants) below.
13
+ - A theme applied to the application (see [`igniteui-angular-theming`](../igniteui-angular-theming/SKILL.md)).
14
+ - `provideAnimations()` in `app.config.ts` — **required before using any overlay or animated component**
15
+ - The **Ignite UI CLI MCP server** (`igniteui-cli`) is available as a tool provider
16
+
17
+ > **AGENT INSTRUCTION — MCP Server Setup (REQUIRED)**
18
+ >
19
+ > Before using any Ignite UI CLI MCP tools, you MUST verify the MCP server is available
20
+ > by calling `list_components`. If the tool is not available or the call fails,
21
+ > you MUST automatically configure it by following the setup process steps described below.
22
+ >
23
+ > After writing the file, inform the user that the MCP server has been
24
+ > configured and they may need to reload the editor for the tools to activate.
25
+ > Start the MCP server and wait for that MCP server to start before continuing the component-related work.
26
+ > Do NOT skip this step or ask the user to do it manually.
27
+
28
+ ## Setting Up the Ignite UI CLI MCP Server
29
+
30
+ > **Full setup instructions for VS Code, Cursor, Claude Desktop, and JetBrains IDEs are in [`references/mcp-setup.md`](./references/mcp-setup.md).** Read that file for editor-specific configuration steps and verification.
31
+
9
32
  ## MANDATORY AGENT PROTOCOL — YOU MUST FOLLOW THIS BEFORE PRODUCING ANY OUTPUT
10
33
 
11
34
  **This file is a routing hub only. It contains NO code examples and NO API details.**
@@ -41,15 +64,6 @@ Base your code and explanation exclusively on what you read. If the reference fi
41
64
 
42
65
  ---
43
66
 
44
- ## Prerequisites
45
-
46
- - Angular 20+ project
47
- - `@angular/cli` installed
48
- - `igniteui-angular` or `@infragistics/igniteui-angular` added to the project via `ng add igniteui-angular` (or the `@infragistics` variant) or `npm install` — see [Package Variants](#package-variants) below.
49
- - A theme applied to the application (see [`igniteui-angular-theming`](../igniteui-angular-theming/SKILL.md)).
50
- - `provideAnimations()` in `app.config.ts` — **required before using any overlay or animated component**
51
-
52
-
53
67
  ## Package Variants
54
68
 
55
69
  | Package | Install | Who uses it |
@@ -15,6 +15,7 @@
15
15
  ## Overview
16
16
 
17
17
  Ignite UI for Angular Charts provides 65+ chart types for data visualization. Charts are packaged separately in `igniteui-angular-charts` (or `@infragistics/igniteui-angular-charts` for licensed users).
18
+ This reference gives high-level guidance on when to use each chart type, their key features, and common API members. For detailed documentation, call `get_doc` and `get_api_reference` from `igniteui-cli` with the specific chart component or feature you're interested in.
18
19
 
19
20
  ### Chart Component packages
20
21
  - `igniteui-angular-charts` — Category Chart, Financial Chart, Data Chart, and Pie Chart components (NPM)
@@ -16,6 +16,9 @@
16
16
  - [Progress Indicators](#progress-indicators)
17
17
  - [Chat (AI Chat Component)](#chat-ai-chat-component)
18
18
 
19
+ ## Overview
20
+ This reference gives high-level guidance on when to use each data display component, their key features, and common API members. For detailed documentation, call `get_doc` and `get_api_reference` from `igniteui-cli` with the specific component or feature you're interested in.
21
+
19
22
  ## List
20
23
 
21
24
  > **Docs:** [List Component](https://www.infragistics.com/products/ignite-ui-angular/angular/components/list)
@@ -133,9 +136,10 @@ import { IgxBadgeComponent } from 'igniteui-angular/badge';
133
136
 
134
137
  ```html
135
138
  <!-- Image avatar with badge overlay -->
136
- <igx-avatar [src]="user.photo" shape="circle" size="large">
137
- <igx-badge igxAvatarBadge [type]="'success'" [icon]="'check'"></igx-badge>
138
- </igx-avatar>
139
+ <div class="avatar-badge-container">
140
+ <igx-avatar [src]="user.photo" shape="circle" size="large"></igx-avatar>
141
+ <igx-badge [type]="'success'" [icon]="'check'"></igx-badge>
142
+ </div>
139
143
 
140
144
  <!-- Initials avatar -->
141
145
  <igx-avatar initials="JD" shape="circle"></igx-avatar>
@@ -147,8 +151,23 @@ import { IgxBadgeComponent } from 'igniteui-angular/badge';
147
151
  <igx-badge [type]="'error'" [value]="unreadCount"></igx-badge>
148
152
  ```
149
153
 
154
+ ```scss
155
+ // Required styles to position the badge as an overlay on the avatar
156
+ .avatar-badge-container {
157
+ position: relative;
158
+ display: inline-flex;
159
+
160
+ igx-badge {
161
+ position: absolute;
162
+ bottom: 0;
163
+ right: 0;
164
+ transform: translate(25%, 25%);
165
+ }
166
+ }
167
+ ```
168
+
150
169
  Avatar shapes: `'circle'`, `'rounded'`, `'square'`. Sizes: `'small'`, `'medium'`, `'large'`, or custom CSS.
151
- Badge types: `'default'`, `'info'`, `'success'`, `'warning'`, `'error'`.
170
+ Badge types: `'primary'`, `'info'`, `'success'`, `'warning'`, `'error'`.
152
171
 
153
172
  ## Icon
154
173
 
@@ -11,6 +11,9 @@
11
11
  - [Tooltip](#tooltip)
12
12
  - [Drag and Drop](#drag-and-drop)
13
13
 
14
+ ## Overview
15
+ This reference gives high-level guidance on when to use each directive, their key features, and common API members. For detailed documentation, call `get_doc` and `get_api_reference` from `igniteui-cli` with the specific directive or feature you're interested in.
16
+
14
17
  ## Button & Icon Button
15
18
 
16
19
  > **Docs:** [Button Component](https://www.infragistics.com/products/ignite-ui-angular/angular/components/button)
@@ -13,6 +13,9 @@
13
13
  - [Banner](#banner)
14
14
  - [Key Rules](#key-rules)
15
15
 
16
+ ## Overview
17
+ This reference gives high-level guidance on when to use each feedback and overlay component, their key features, and common API members. For detailed documentation, call `get_doc` and `get_api_reference` from `igniteui-cli` with the specific component or feature you're interested in.
18
+
16
19
  ## Dialog
17
20
 
18
21
  > **Docs:** [Dialog Component](https://www.infragistics.com/products/ignite-ui-angular/angular/components/dialog)
@@ -18,6 +18,9 @@
18
18
  - [Reactive Forms Integration](#reactive-forms-integration)
19
19
  - [Key Rules](#key-rules)
20
20
 
21
+ ## Overview
22
+ This reference gives high-level guidance on when to use each form control component, their key features, and common API members. For detailed documentation, call `get_doc` and `get_api_reference` from `igniteui-cli` with the specific component or feature you're interested in.
23
+
21
24
  ## Input Group
22
25
 
23
26
  > **Docs:** [Input Group](https://www.infragistics.com/products/ignite-ui-angular/angular/components/input-group)
@@ -9,6 +9,9 @@
9
9
  - [Dock Manager](#dock-manager)
10
10
  - [Tile Manager](#tile-manager)
11
11
 
12
+ ## Overview
13
+ This reference gives high-level guidance on when to use each layout manager component, their key features, and common API members. For detailed documentation, call `get_doc` and `get_api_reference` from `igniteui-cli` with the specific component or feature you're interested in.
14
+
12
15
  ---
13
16
 
14
17
  ## Layout Manager Directives
@@ -12,6 +12,9 @@
12
12
  - [Splitter](#splitter)
13
13
  - [Navigation Drawer](#navigation-drawer)
14
14
 
15
+ ## Overview
16
+ This reference gives high-level guidance on when to use each layout component, their key features, and common API members. For detailed documentation, call `get_doc` and `get_api_reference` from `igniteui-cli` with the specific component or feature you're interested in.
17
+
15
18
  ## Tabs
16
19
 
17
20
  > **Docs:** [Tabs Component](https://www.infragistics.com/products/ignite-ui-angular/angular/components/tabs)
@@ -0,0 +1,77 @@
1
+ # Setting Up the Ignite UI CLI MCP Server
2
+
3
+ > **Part of the [`igniteui-angular-components`](../SKILL.md) skill hub.**
4
+
5
+ ## Contents
6
+
7
+ - [VS Code](#vs-code)
8
+ - [Cursor](#cursor)
9
+ - [Claude Desktop](#claude-desktop)
10
+ - [WebStorm / JetBrains IDEs](#webstorm--jetbrains-ides)
11
+ - [Verifying the Setup](#verifying-the-setup)
12
+
13
+ The Ignite UI CLI MCP server enables AI assistants to discover Ignite UI components, access component documentation, and support related Ignite UI workflows. It must be configured in your editor before these tools become available.
14
+
15
+ ## VS Code
16
+
17
+ Create or edit `.vscode/mcp.json` in your project:
18
+
19
+ ```json
20
+ {
21
+ "servers": {
22
+ "igniteui-cli": {
23
+ "command": "npx",
24
+ "args": ["-y", "igniteui-cli@next", "mcp"]
25
+ }
26
+ }
27
+ }
28
+ ```
29
+
30
+ This works whether `igniteui-cli` is installed locally in `node_modules` or needs to be pulled from the npm registry — `npx -y` handles both cases.
31
+
32
+ ## Cursor
33
+
34
+ Create or edit `.cursor/mcp.json`:
35
+
36
+ ```json
37
+ {
38
+ "mcpServers": {
39
+ "igniteui-cli": {
40
+ "command": "npx",
41
+ "args": ["-y", "igniteui-cli@next", "mcp"]
42
+ }
43
+ }
44
+ }
45
+ ```
46
+
47
+ ## Claude Desktop
48
+
49
+ Edit the Claude Desktop config file:
50
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
51
+ - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
52
+
53
+ ```json
54
+ {
55
+ "mcpServers": {
56
+ "igniteui-cli": {
57
+ "command": "npx",
58
+ "args": ["-y", "igniteui-cli@next", "mcp"]
59
+ }
60
+ }
61
+ }
62
+ ```
63
+
64
+ ## WebStorm / JetBrains IDEs
65
+
66
+ 1. Go to **Settings → Tools → AI Assistant → MCP Servers**
67
+ 2. Click **+ Add MCP Server**
68
+ 3. Set Command to `npx` and Arguments to `igniteui-cli@next mcp`
69
+ 4. Click OK and restart the AI Assistant
70
+
71
+ ## Verifying the Setup
72
+
73
+ After configuring the MCP server, ask your AI assistant:
74
+
75
+ > "List all available Ignite UI components"
76
+
77
+ If the MCP server is running, the `list_components` tool will return all available components for the detected framework.
@@ -29,9 +29,11 @@ type IgxBadgeType = (typeof IgxBadgeType)[keyof typeof IgxBadgeType];
29
29
  *
30
30
  * @example
31
31
  * ```html
32
- * <igx-avatar>
33
- * <igx-badge icon="check" type="success"></igx-badge>
34
- * </igx-avatar>
32
+ * <div class="avatar-badge-container">
33
+ * <igx-avatar icon="person" shape="circle" size="small"></igx-avatar>
34
+ * <igx-badge icon="check" type="success" shape="square"></igx-badge>
35
+ * </div>
36
+ * ```
35
37
  */
36
38
  declare class IgxBadgeComponent {
37
39
  /**