Repository navigation
Description
Component / Area
Other (skills: igniteui-blazor-components, igniteui-blazor-grids, AGENTS.md)
Is your feature request related to a problem?
IgniteUI.Blazor 26.2 changes how the full package is set up, but the skills on master still describe 26.1. I checked each point at runtime on IgniteUI.Blazor.Trial 26.2.16-beta.0, side by side with 26.1.98:
- Blazor WebAssembly and a Blazor Web App (Interactive Server);
- .NET 10 (SDK 10.0.401);
- headless Chrome, with every console message captured.
1. The full package now depends on IgniteUI.Blazor.Lite, so "do not mix" is no longer true.
- The 26.2.16-beta.0 nuspec declares
IgniteUI.Blazor.Lite1.0.1. - The general components (
IgbTabs,IgbChip,IgbTextarea,IgbCard, …) andAddIgniteUIBlazoritself are types fromIgniteUI.Blazor.Lite.dll. Grids, charts, gauges and Dock Manager stay inIgniteUI.Blazor.dll. - No public type name exists in both assemblies. A project that references the full package and Lite explicitly builds with 0 warnings and runs.
- There are no static-asset conflicts. Both packages serve under
_content/IgniteUI.Blazor/: the base themes come from Lite, andthemes/grid/...comes from the full package. - On 26.1.98, adding Lite still fails with
RZ9985: Multiple components use the tag 'IgbTab'andCS0433: The type 'TabsAlignment' exists in both ….
Affected text:
skills/AGENTS.mdL60 (Packages).skills/igniteui-blazor-components/SKILL.mdL40: "Do not mixIgniteUI.BlazorwithIgniteUI.Blazor.Lite— duplicate types in the same namespace".references/setup.mdL21.
2. app.bundle.js is no longer required.
- In 26.2 it is a 531-byte shim that only queues
igRegisterScript/igRemoveScriptcalls. Two JS initializers load the components:IgniteUI.Blazor.Lite.*.lib.module.jsandIgniteUI.Blazor.Trial.*.lib.module.js. - In a Blazor Web App (Interactive Server) without the tag, a grid, a category chart, a chip, tabs and a combo all render with no errors. With
@Assets["_content/IgniteUI.Blazor/app.bundle.js"]the page still renders, so Ignite UI for Blazor stops working with .NET 9 Assets helper (no error but components not registered) #233 no longer applies. - Standalone WebAssembly also works without the tag.
- On 26.1.98, a Web App without the tag defines no
igc-*element.
Affected text:
skills/AGENTS.mdL61 (Setup).skills/igniteui-blazor-components/SKILL.mdL45 (Runtime script).references/setup.md§4: L78, and L82 "never wrap that tag in@Assets[...]".skills/igniteui-blazor-grids/SKILL.mdL64 (Script row).
3. api.js now works for the full product, and igRegisterScript is deprecated.
- 26.2 serves
_content/IgniteUI.Blazor/api.js(from Lite); on 26.1.98 it returns 404. registerScript/htmlfromapi.jswork for full-product templates. Tested:IgbGridBodyTemplateScript, chartSeriesAddedScripttooltip templates, the gridToolbarExportingScript. They need noapp.bundle.js.- Every
igRegisterScriptcall logs:igRegisterScript is deprecated — import { registerScript } from './_content/IgniteUI.Blazor/api.js' instead.igTemplating.htmllogs the same kind of warning. - A classic script that calls
igRegisterScriptbefore startup without theapp.bundle.jstag fails withReferenceError: igRegisterScript is not defined. - A grid
*Scriptmust be registered before the grid renders. Registering after render logs[Ignite UI] script '…' is not registered - call registerScript('…', ...) … before the component renders, and the script is never applied. A Lite component queues the name instead.
Affected text:
skills/igniteui-blazor-components/references/client-scripts.mdL10: "The full product … does not shipapi.jsyet: register there through theigRegisterScript(…)window global, which itsapp.bundle.jsscript tag installs".skills/igniteui-blazor-components/SKILL.mdL52 ("… or theigRegisterScriptwindow global (full product)").- Full-product examples that use
igRegisterScript, e.g. theToolbarExportingScriptexample inskills/igniteui-blazor-grids/references/features.md.
4. Registration: feature modules are not included by a no-argument AddIgniteUIBlazor().
- The existing rule that feature modules "must be listed" is correct, but "with no arguments every module is available" reads as if it covered them.
- Test: an
IgbDataChartwithShowDefaultTooltip="true", hovered at 63 points.- Tooltips appear at 0 points with no-argument
AddIgniteUIBlazor(), and at 0 with the core and category modules. - They appear at 33 points only once
IgbDataChartInteractivityModuleis listed. - The same holds on 26.1.98.
- Tooltips appear at 0 points with no-argument
- Minor:
IgbToggleButtonModuleis obsolete in 26.2 (CS0618, "no longer required").
Affected text: skills/igniteui-blazor-components/SKILL.md L44 (Registration) and references/setup.md L28 / L38.
Describe the solution you'd like
Update the skills for 26.2, the version master targets:
- Packages: in 26.2,
IgniteUI.Blazordepends onIgniteUI.Blazor.Lite, and the general components are Lite's types. Don't add Lite yourself, because it is already there, but a reference no longer breaks the build. The "duplicate types" warning applies only to 26.1.x and earlier. - Script tag:
app.bundle.jsis not needed. The JS initializers load everything in WebAssembly and in Blazor Web Apps, and@Assets[...]is safe. Remove the tag from setup steps, or keep it only as the optionaligRegisterScriptshim. - Client scripts: register through
import { registerScript, html } from './_content/IgniteUI.Blazor/api.js'for all components, from a module script loaded before the components render. MarkigRegisterScript/igTemplatingas deprecated, and update the full-product examples that use them. - Registration: say that feature modules (
IgbDataChartInteractivityModule,IgbDataChartAnnotationModule, the tooltip-layer modules, …) must be listed even whenAddIgniteUIBlazor()is otherwise called with no arguments. DropIgbToggleButtonModulefrom examples.
Proposed API or Usage
@* Program.cs — feature modules must be listed explicitly *@
builder.Services.AddIgniteUIBlazor(typeof(IgbDataChartInteractivityModule));<!-- host page: no app.bundle.js needed in 26.2 -->
<script type="module" src="my-scripts.js"></script>// wwwroot/my-scripts.js — works for Lite and full-product components in 26.2
import { registerScript, html } from './_content/IgniteUI.Blazor/api.js';
registerScript('NameCell', (ctx) => html`<b>${ctx.implicit}</b>`); // IgbColumn BodyTemplateScript="NameCell"Describe alternatives you've considered
Scoping every statement to both 26.1.x and 26.2.x. Since master targets 26.2, the 26.1 behaviour could instead be one short note per point.
How important is this feature to you?
Important — affects my workflow
Additional context
- Related: Ignite UI for Blazor stops working with .NET 9 Assets helper (no error but components not registered) #233 (
@Assetsfingerprinting), feat: vite/ESM build, zero-hook initializer, publicapi.jsmodule #404 (vite/ESM build,api.js), refactor!: remove deprecated client script globals and legacy bundle and update documentation accordingly #471 (removed client-script globals in Lite), docs(skills): correct toolbar, chart tooltip, tabs, paging and event-render guidance #567 and docs(skills): fix textarea, chip, card, action strip, exporter and token-lookup guidance #571 (skills already updated for 26.2). - The same skills are copied into igniteui-cli (
packages/cli/templates/blazor/igb/projects/ai-config/files/skills/), so that copy needs the same update.
Activity
docs(skills): keep script-registration changes out of #567