apexgrid-skill 2.3.0 → 2.3.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.
- package/README.md +0 -1
- package/SKILL.md +7 -5
- package/package.json +1 -1
- package/references/columns-and-templates.md +9 -7
package/README.md
CHANGED
|
@@ -88,7 +88,6 @@ const cols = await readFile(referencePath('columns-and-templates.md'), 'utf8');
|
|
|
88
88
|
- [apex-grid GitHub](https://github.com/apexcharts/apexgrid)
|
|
89
89
|
- [npm: apex-grid](https://www.npmjs.com/package/apex-grid)
|
|
90
90
|
- [Lit framework](https://lit.dev)
|
|
91
|
-
- [igniteui-webcomponents](https://www.npmjs.com/package/igniteui-webcomponents) (transitive dep — installs automatically)
|
|
92
91
|
|
|
93
92
|
## License
|
|
94
93
|
|
package/SKILL.md
CHANGED
|
@@ -13,7 +13,7 @@ description: >
|
|
|
13
13
|
`dataPipelineConfiguration` hooks for server-side data.
|
|
14
14
|
metadata:
|
|
15
15
|
author: ApexCharts
|
|
16
|
-
version: "2.3.
|
|
16
|
+
version: "2.3.1"
|
|
17
17
|
library_version: "3.5.0"
|
|
18
18
|
category: data-visualization
|
|
19
19
|
tags: [grid, data-grid, table, web-component, lit, apex-grid]
|
|
@@ -34,9 +34,11 @@ The grid styles itself out of the box (borders, row separators, sort/filter UI)
|
|
|
34
34
|
npm install apex-grid lit
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
`
|
|
37
|
+
That is the whole install. `apex-grid` brings its own runtime dependencies (`lit`, `@lit/context`, `@lit-labs/virtualizer`) and there is **no theme CSS to import** from anywhere.
|
|
38
38
|
|
|
39
|
-
>
|
|
39
|
+
> **Changed in 3.5.0:** earlier versions also pulled in `igniteui-webcomponents` and `igniteui-theming` transitively. Both are gone. The grid never registered an Ignite UI element, so nothing you wrote against the grid is affected, but code that relied on `igc-*` elements being installed as a side effect must now depend on that package directly.
|
|
40
|
+
|
|
41
|
+
> Confirmed working versions: `apex-grid@3.5.0`, `lit@^3.0.0`.
|
|
40
42
|
|
|
41
43
|
### 1.2 Register the element + size the host — `setup()` does both
|
|
42
44
|
|
|
@@ -73,7 +75,7 @@ apex-grid {
|
|
|
73
75
|
}
|
|
74
76
|
```
|
|
75
77
|
|
|
76
|
-
> The deprecated `
|
|
78
|
+
> The deprecated `setup({ theme })` option does **not** change the grid's appearance. It only ever forwarded to Ignite UI's `configureTheme()`, and since 3.5.0 it is inert and warns once. Omit it; use `--ag-*` variables instead.
|
|
77
79
|
|
|
78
80
|
### 1.4 Minimal example — a styled, sortable, filterable table
|
|
79
81
|
|
|
@@ -422,7 +424,7 @@ Arrow-key navigation, column resize and column reorder all follow inline order r
|
|
|
422
424
|
✅ `setup()` (or `import 'apex-grid/define'`) once at app startup.
|
|
423
425
|
|
|
424
426
|
### 3. Importing a theme CSS that no longer exists
|
|
425
|
-
❌ `import 'igniteui-webcomponents/themes/light/bootstrap.css'` + `
|
|
427
|
+
❌ `import 'igniteui-webcomponents/themes/light/bootstrap.css'` + `setup({ theme: 'bootstrap' })` is obsolete; it never affected the grid, and as of 3.5.0 the option is inert and that package is not even installed.
|
|
426
428
|
✅ Nothing to import — the grid styles itself; retheme via `--ag-*` CSS variables. The only required CSS is a host **height**.
|
|
427
429
|
|
|
428
430
|
### 4. Stringified `columns` attribute
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apexgrid-skill",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "AI coding skill for the apex-grid web component — structured reference docs that help AI assistants (Claude, Cursor, Copilot, etc.) generate correct apex-grid code.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex-grid",
|
|
@@ -124,13 +124,15 @@ const columns: ColumnConfiguration<User>[] = [
|
|
|
124
124
|
<input type="checkbox" .checked=${value} disabled />
|
|
125
125
|
<small>${row.name}</small>` },
|
|
126
126
|
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
// Prefer the built-in type over a template where one exists:
|
|
128
|
+
// `avatar` and `rating` are column types, no template needed.
|
|
129
|
+
{ key: 'avatar', type: 'avatar' },
|
|
130
|
+
{ key: 'satisfaction', type: 'rating' },
|
|
131
|
+
|
|
132
|
+
// Any custom element works, but YOU must install and register it:
|
|
133
|
+
// the grid ships no third-party components (see SKILL.md §1.1).
|
|
134
|
+
{ key: 'status',
|
|
135
|
+
cellTemplate: ({ value }) => html`<my-status-chip .value=${value}></my-status-chip>` },
|
|
134
136
|
];
|
|
135
137
|
```
|
|
136
138
|
|