@praxisui/table 9.0.5-rc.2 → 9.0.5-rc.20
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 +45 -0
- package/ai/component-registry.json +42 -27
- package/docs/dynamic-filter-architecture-overview.md +22 -1
- package/docs/dynamic-filter-host-integration-guide.md +39 -1
- package/fesm2022/{praxisui-table-praxisui-table-B7FI0Sed.mjs → praxisui-table-praxisui-table-KxTp8ZJd.mjs} +2239 -1224
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-BGIZfDBk.mjs → praxisui-table-table-agentic-authoring-turn-flow-DEyI2Nx5.mjs} +1 -1
- package/fesm2022/{praxisui-table-table-ai.adapter-BiVxxCcf.mjs → praxisui-table-table-ai.adapter-xSCc4Jg6.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/src/lib/praxis-table.json-api.md +8 -3
- package/types/praxisui-table.d.ts +17 -0
package/README.md
CHANGED
|
@@ -216,6 +216,8 @@ Use `behavior.emptyState` for table-owned no-data copy and presentation. `messag
|
|
|
216
216
|
|
|
217
217
|
When the host does not provide `behavior.emptyState` or legacy `messages.states` copy, the table uses localized runtime defaults for the initial empty collection and for the filtered/search no-results state. Context-specific entries in `behavior.emptyState.contexts.initial`, `behavior.emptyState.contexts.filtered`, and `behavior.emptyState.contexts.searched` still override the base empty state for those modes.
|
|
218
218
|
|
|
219
|
+
For related resources, the generated empty state is informational and does not repeat the capability-governed CREATE action already kept stable in the toolbar. Declare `behavior.emptyState.actions` only when the journey intentionally needs a distinct contextual action; explicit host actions are preserved. Empty-state and toolbar actions share the public `--praxis-action-control-*` geometry, while `toolbar.appearance.tokens.actionSize` and `actionRadius` remain the stronger per-table overrides.
|
|
220
|
+
|
|
219
221
|
```ts
|
|
220
222
|
const config: TableConfig = {
|
|
221
223
|
behavior: {
|
|
@@ -244,6 +246,44 @@ const config: TableConfig = {
|
|
|
244
246
|
};
|
|
245
247
|
```
|
|
246
248
|
|
|
249
|
+
### Adaptive toolbar composition
|
|
250
|
+
|
|
251
|
+
`PraxisTableToolbar` materializes the toolbar as semantic regions rather than one wrapping row:
|
|
252
|
+
|
|
253
|
+
- **identity** — title, subtitle and table context;
|
|
254
|
+
- **scope** — a small, mutually exclusive and removable set of governed quick filters;
|
|
255
|
+
- **query** — always-visible dynamic filters and projected query shortcuts;
|
|
256
|
+
- **commands** — collection/business actions, table utilities and authoring entrypoints.
|
|
257
|
+
|
|
258
|
+
The runtime owns the responsive composition through container queries. This is important when a table
|
|
259
|
+
is rendered inside a drawer, split pane or dashboard card: behavior follows the width actually available
|
|
260
|
+
to the table, not only the browser viewport. At wide widths, identity and commands share the first band,
|
|
261
|
+
while scope and query share a stable second band. At compact widths, the regions move as complete units and
|
|
262
|
+
commands are consolidated under one localized `Mais ações` entrypoint without losing export, column or
|
|
263
|
+
density controls. At narrow widths the first band preserves identity and commands before the scope and
|
|
264
|
+
query bands, so keyboard focus follows the same reading order presented visually.
|
|
265
|
+
|
|
266
|
+
Authoring guidance:
|
|
267
|
+
|
|
268
|
+
- use `toolbar.filters.quickFilters` for a small governed scope switch, not as a substitute for every filter;
|
|
269
|
+
one quick filter can be active at a time, and activating the current item again restores the previous criteria;
|
|
270
|
+
- use `advancedFilters.settings.alwaysVisibleFields` for frequent editable criteria;
|
|
271
|
+
- keep one clear collection/business action primary; export, columns and density are utilities;
|
|
272
|
+
- project custom shortcuts through the toolbar slots, but do not target internal layout classes from the host;
|
|
273
|
+
- validate the component container at `1440`, `1024`, `768`, `480` and `320` px, including long localized labels, zoom and keyboard focus.
|
|
274
|
+
|
|
275
|
+
Adding supported filters or actions never requires a host breakpoint. When the command set grows, the compact
|
|
276
|
+
menu preserves capability parity and keyboard order. Projected query shortcuts are grouped by the runtime,
|
|
277
|
+
receive a bounded width budget and wrap as one semantic cluster; projected controls must remain intrinsically
|
|
278
|
+
shrinkable and must not declare a fixed minimum width larger than their slot. Hosts must not rely on internal
|
|
279
|
+
selectors to position them. The query region remains independently scroll-free at the page level.
|
|
280
|
+
|
|
281
|
+
The existing `toolbar.layout` fields are materialized by the same runtime: `alignment` aligns the identity
|
|
282
|
+
and command regions, `padding` and `backgroundColor` project governed chrome, `height` defines the minimum
|
|
283
|
+
toolbar height, and `showSeparator` adds the boundary with the data surface. `toolbar.appearance.tokens.bg`
|
|
284
|
+
remains the most specific background override, followed by `toolbar.layout.backgroundColor` and the legacy
|
|
285
|
+
`actionsBackgroundColor` projection.
|
|
286
|
+
|
|
247
287
|
## Filtering And Row Actions
|
|
248
288
|
|
|
249
289
|
The package exports both the table runtime and `PraxisFilter` integration surfaces.
|
|
@@ -256,6 +296,11 @@ The package exports both the table runtime and `PraxisFilter` integration surfac
|
|
|
256
296
|
availability; transient errors and missing discovered operations fail closed. Actions with an
|
|
257
297
|
explicit `globalAction` or `recordSurface` remain governed by that declared execution contract.
|
|
258
298
|
- `visibleWhen` and `disabledWhen` use canonical JSON Logic.
|
|
299
|
+
- Toolbar actions that are unavailable because of selection cardinality, `disabledWhen`, or an explicit
|
|
300
|
+
disabled state remain visually recognizable and keyboard focusable in the full toolbar. They expose
|
|
301
|
+
`aria-disabled="true"`, keep execution fail-closed, and announce the contextual disabled reason before
|
|
302
|
+
the configured operation tooltip. In the compact overflow menu, the same reason is rendered inline so
|
|
303
|
+
understanding the unavailable command never depends on hovering or focusing a native disabled menu item.
|
|
259
304
|
- Inline and overflow actions preserve their actionable origin. Overflow menus finish closing and restore the trigger before emitting the action, allowing dialogs and drawers with `restoreFocus` to return keyboard focus to the correct table control.
|
|
260
305
|
|
|
261
306
|
The filter field manager follows the compact inline visual language and can be themed by hosts through
|