@praxisui/list 4.0.0-beta.0 → 6.0.0-beta.0
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 +8 -2
- package/fesm2022/praxisui-list.mjs +895 -312
- package/index.d.ts +49 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -54,6 +54,12 @@ last_updated: "2026-03-07"
|
|
|
54
54
|
|
|
55
55
|
Angular list/cards component for enterprise apps. Supports local or remote data, multiple layout variants, templating slots, actions, grouping and selection.
|
|
56
56
|
|
|
57
|
+
## Rich Content Convergence
|
|
58
|
+
|
|
59
|
+
- `mapListTemplateToRichContentP0(...)` exposes the canonical bridge from the current list templating vocabulary to the shared rich-content P0 contract in `@praxisui/core`.
|
|
60
|
+
- The bridge is intentionally narrow in `1.0`: `text`, `icon`, `image`, `chip -> badge`, `metric`, and `compose`.
|
|
61
|
+
- Legacy/runtime-only list templates such as `component`, `slot`, `html`, `rating`, `currency`, and `date` remain outside the shared rich-content `1.0` contract until their semantic normalization is closed.
|
|
62
|
+
|
|
57
63
|
## Customization Mode Contract
|
|
58
64
|
|
|
59
65
|
- `enableCustomization` is the canonical public input for runtime customization mode.
|
|
@@ -273,13 +279,13 @@ Configure contextual item actions via `config.actions`:
|
|
|
273
279
|
```ts
|
|
274
280
|
actions: [
|
|
275
281
|
{ id: 'edit', icon: 'edit', label: 'Edit' },
|
|
276
|
-
{ id: 'delete', icon: 'delete', color: 'warn', showIf: "
|
|
282
|
+
{ id: 'delete', icon: 'delete', color: 'warn', showIf: { "==": [{ "var": "row.status" }, "active"] } },
|
|
277
283
|
{ id: 'details', kind: 'button', buttonVariant: 'raised', label: 'Details' },
|
|
278
284
|
]
|
|
279
285
|
```
|
|
280
286
|
|
|
281
287
|
- `kind`: 'icon' (default) or 'button'.
|
|
282
|
-
- `showIf`:
|
|
288
|
+
- `showIf`: use Json Logic. Example: `{ "==": [{ "var": "row.status" }, "active"] }`.
|
|
283
289
|
- `emitPayload`: authoring field in the config/editor; current runtime `actionClick` emission does not change shape based on this field.
|
|
284
290
|
|
|
285
291
|
### Global actions (command)
|