@praxisui/table 9.0.0-beta.44 → 9.0.0-beta.46
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 +18 -0
- package/ai/component-registry.json +53 -4
- package/fesm2022/{praxisui-table-praxisui-table-B_3nc4X5.mjs → praxisui-table-praxisui-table-D5XtCbRm.mjs} +68 -5
- package/fesm2022/{praxisui-table-table-ai.adapter-BKxvxgsw.mjs → praxisui-table-table-ai.adapter-DKr77wDN.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/types/praxisui-table.d.ts +7 -0
package/README.md
CHANGED
|
@@ -140,6 +140,24 @@ For dense enterprise tables, `radial` table cells render the percent as adjacent
|
|
|
140
140
|
|
|
141
141
|
Use `config.ai.assistant.enabled = false` when a host needs to disable the embedded AI assistant entrypoint for a table instance. The default is enabled, so existing AI-enabled tables keep the current behavior without extra config. When the value changes to `false`, the component closes the assistant and removes the table assistant session from the shared assistant registry.
|
|
142
142
|
|
|
143
|
+
## Empty State
|
|
144
|
+
|
|
145
|
+
Use `behavior.emptyState` for table-owned no-data copy and presentation. `message` remains the required backward-compatible text. When `title` is omitted, `message` is used as the empty-state title. When `title` is provided, `message` is rendered as the description unless `description` is explicitly set.
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
const config: TableConfig = {
|
|
149
|
+
behavior: {
|
|
150
|
+
emptyState: {
|
|
151
|
+
title: 'Sem documentos legais',
|
|
152
|
+
message: 'Inclua um documento legal para registrar a base normativa deste código.',
|
|
153
|
+
icon: 'gavel',
|
|
154
|
+
density: 'compact',
|
|
155
|
+
variant: 'inline',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
```
|
|
160
|
+
|
|
143
161
|
## Toolbar Appearance
|
|
144
162
|
|
|
145
163
|
Use `toolbar.appearance` for governed toolbar chrome instead of host CSS targeting internal classes. The built-in preset `table-integrated` composes toolbar and table as one operational block using public tokens for background, border, radius, shadow, spacing, and density.
|