@praxisui/core 10.0.0-rc.40 → 10.0.0-rc.42
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 +82 -6
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-core-schema.mjs +443 -4
- package/fesm2022/praxisui-core.mjs +2911 -872
- package/package.json +1 -1
- package/theming/_theming.scss +1 -1
- package/types/praxisui-core-schema.d.ts +59 -0
- package/types/praxisui-core.d.ts +507 -34
package/README.md
CHANGED
|
@@ -4,6 +4,18 @@ Shared contracts, tokens, services, metadata models, widget runtime primitives,
|
|
|
4
4
|
|
|
5
5
|
Use this package directly when a host application or library needs Praxis UI types, global actions, metadata registries, schema clients, resource discovery, i18n, theme bridge, dynamic widget contracts, or shared runtime services.
|
|
6
6
|
|
|
7
|
+
## Global dynamic pages defaults (`GlobalConfig.pages`)
|
|
8
|
+
|
|
9
|
+
`GlobalConfigService` supports `pages.defaults` (`GlobalDynamicPagesDefaultsConfig`) through `provideGlobalConfig` and runtime overrides:
|
|
10
|
+
|
|
11
|
+
- `layoutPreset`: Optional default `WidgetPageLayoutPresetId` when a page omits an explicit `layoutPreset`
|
|
12
|
+
- `themePreset`: Default `WidgetPageThemePresetId` (`operational-command`, `executive-clarity`, `editorial-canvas`)
|
|
13
|
+
- `shellPreset`: Default widget shell preset (`default`, `minimal`, `borderless`, `outlined`, `elevated`, `compact`, `spacious`)
|
|
14
|
+
- `columns` (1–24), `gap`, `paddingInline`, and `autoRows` (`fixed` | `content`)
|
|
15
|
+
|
|
16
|
+
`DynamicWidgetPageComponent` resolves page presentation with strict precedence:
|
|
17
|
+
`authored page property > GlobalConfig.pages.defaults > builtin preset/component fallback`, without polluting persisted canonical page documents with global defaults.
|
|
18
|
+
|
|
7
19
|
## Closed page authoring profile
|
|
8
20
|
|
|
9
21
|
The additive page codec validates and preserves the Config-owned publication
|
|
@@ -55,6 +67,11 @@ resolution; `auto` is not a public serialized value.
|
|
|
55
67
|
|
|
56
68
|
## Governed bulk client: basic synchronous slice
|
|
57
69
|
|
|
70
|
+
`requestCancellation(contract, executionId)` follows the published cancel binding.
|
|
71
|
+
Cancellation is cooperative: the returned server state is authoritative, including
|
|
72
|
+
an execution that already completed. It does not undo confirmed items. Use
|
|
73
|
+
`readExecution` and `readResults` to resume observation from a retained execution ID.
|
|
74
|
+
|
|
58
75
|
`BulkOperationClientService` consumes the Metadata published `BulkExecutionContract`
|
|
59
76
|
from an action or CRUD capability. `discoverAction` and `discoverCapability` use the
|
|
60
77
|
existing resource discovery surface; operation paths and filtered schema URLs come
|
|
@@ -203,6 +220,9 @@ across closing/reopening a dialog, reload recovery or operational ASYNC acceptan
|
|
|
203
220
|
through `context.ui.shell.presets`, then widget-specific `appearance`; use CSS
|
|
204
221
|
variables there for corporate theming. The `dark-glass` and `graphite` material palettes remain dark by default;
|
|
205
222
|
adaptive finishes follow the host Material tokens. Do not mutate either exported catalog to configure an application.
|
|
223
|
+
Shell titles use the host Material title-medium weight by default, including
|
|
224
|
+
expanded and fullscreen states; `appearance.typography.titleWeight` remains
|
|
225
|
+
the more specific widget-authored override at desktop and narrow viewports.
|
|
206
226
|
The deliberate `frameless` inset improvement differs from 9.0.67: persist
|
|
207
227
|
`appearance.body.padding: "0"` when the original edge-to-edge layout is required.
|
|
208
228
|
- `WidgetShellConfig.stickyHeader: true` retains the existing composition-derived
|
|
@@ -796,6 +816,31 @@ Core exports schema and metadata infrastructure used by form, table, list, chart
|
|
|
796
816
|
- form layout item models
|
|
797
817
|
- JSON Logic models and runtime service
|
|
798
818
|
|
|
819
|
+
`SchemaNormalizerService` expands `x-ui.customFieldsContainer: true` into child
|
|
820
|
+
fields such as `customFields.numero_calcado`, preserving each child's label,
|
|
821
|
+
control type, group, order, validators and option source. It also recognizes an
|
|
822
|
+
object named `customFields` with inline `properties`. `FieldDefinition` and
|
|
823
|
+
`FieldMetadata` retain `customField`, `customFieldKey` and `customFieldScope`;
|
|
824
|
+
the container itself does not become a control. See [schema flow](https://github.com/codexrodrigues/praxis-ui-angular/blob/feat/custom-fields-runtime/projects/praxis-core/docs/schema-flow.md#custom-fields)
|
|
825
|
+
for the value path and identity defaults.
|
|
826
|
+
|
|
827
|
+
For scalar arrays, `FieldDefinition.items` and `FieldMetadata.items` preserve the
|
|
828
|
+
operation schema's `FieldScalarItemsSchema` (`type`, optional `format` and `enum`).
|
|
829
|
+
This is distinct from `array.itemSchema.fields` for object collections.
|
|
830
|
+
`normalizeScalarArrayValue` is the shared Core projection for UI tokens: it admits
|
|
831
|
+
only declared scalar types and the finite enum after conversion, rejects invalid
|
|
832
|
+
items without partial output, and does not infer types from labels or value shape.
|
|
833
|
+
Consumers must apply it at validation and query/submit boundaries; saved metadata
|
|
834
|
+
cannot widen the server's `items` or `enumValues` constraints.
|
|
835
|
+
|
|
836
|
+
Expansion does not make arbitrary property names safe Angular controls or turn
|
|
837
|
+
read-only into automatic omission. The canonical Metadata key policy rejects
|
|
838
|
+
reserved control names, and its command request projection excludes read-only
|
|
839
|
+
custom fields. Consumers must use that operation schema rather than merge a
|
|
840
|
+
response schema into a command. See the
|
|
841
|
+
[enterprise adoption review](https://github.com/codexrodrigues/praxis-ui-angular/pull/658)
|
|
842
|
+
for contract blockers, context/freshness limits and the exact proof boundary.
|
|
843
|
+
|
|
799
844
|
For governed analytics cross-filtering, `bindings.primaryDimension.keyFilterField` is the public request field that receives the raw `bucket.key`. Consumers must preserve its type, verify the target request schema, and must not infer this field from the dimension name, display label, or backend property paths.
|
|
800
845
|
|
|
801
846
|
`valuePresentation` is the shared display contract for scalar read-only values such as currency, number, date, datetime, time, percentage, and boolean.
|
|
@@ -1292,12 +1337,36 @@ fallbacks remain available. Error consumes `--destructive`. Hosts should use
|
|
|
1292
1337
|
these existing roles rather than overriding private shell selectors. No new
|
|
1293
1338
|
shell input, saved layout field or theme-specific component is required.
|
|
1294
1339
|
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1340
|
+
## Governed Resource Quick View
|
|
1341
|
+
|
|
1342
|
+
`ResourceQuickViewBinding`, `PraxisQuickViewTriggerDirective` (`[praxisQuickView]`),
|
|
1343
|
+
`ResourceQuickViewService` and `PraxisQuickViewOverlayComponent` provide the
|
|
1344
|
+
canonical hover/focus/click contextual dossier across `@praxisui/table`,
|
|
1345
|
+
`@praxisui/list`, `@praxisui/dynamic-fields`, `@praxisui/dynamic-form`,
|
|
1346
|
+
`@praxisui/rich-content`, `@praxisui/charts`, `@praxisui/stepper` and
|
|
1347
|
+
`@praxisui/ai`:
|
|
1348
|
+
|
|
1349
|
+
- **Metadata synthesis (`resolveFieldQuickViewBinding` & `reconcileFieldQuickViewBinding`)**:
|
|
1350
|
+
Synthesizes `ResourceQuickViewBinding` from explicit `field.quickView`,
|
|
1351
|
+
backend `x-ui.resourceReference` (`@ResourceReference`) or
|
|
1352
|
+
`x-ui.optionSource.detail` (`OptionSourceDescriptor.detail`) when
|
|
1353
|
+
`detailHrefTemplate` or `resourcePath` is present. Reconciling a persisted user
|
|
1354
|
+
override preserves server-owned `resourcePath`, `detailHrefTemplate`,
|
|
1355
|
+
`valueField`, `displayField` and `recordOpen` while allowing safe presentation
|
|
1356
|
+
customizations (`previewSurfaceId`, `detailPresentation`, `triggerMode`,
|
|
1357
|
+
`hoverOpenDelayMs`).
|
|
1358
|
+
- **Context resolution (`resolveResourceQuickViewTarget`)**:
|
|
1359
|
+
Resolves `valuePath` and `labelPath` across direct row objects, nested `row`,
|
|
1360
|
+
`record`, `item`, `data`, `values` or `context` envelopes, and extracts
|
|
1361
|
+
scalar IDs (`id`, `value`, `key`) when a form control holds an entity-lookup
|
|
1362
|
+
selection object.
|
|
1363
|
+
- **Enterprise security & cache isolation**:
|
|
1364
|
+
`ResourceQuickViewService` partitions its LRU cache by tenant, user, locale and
|
|
1365
|
+
sorted authority fingerprint from `EnterpriseRuntimeContextService`, clearing
|
|
1366
|
+
active caches and closing any open popover on identity or tenant switches.
|
|
1367
|
+
Fields restricted by `x-ui.fieldAccess` are filtered or masked (`•••`) before
|
|
1368
|
+
rendering, and `recordOpen` actions are validated against the item's
|
|
1369
|
+
authorized `_links` / `surfaces` / `actions` snapshot.
|
|
1301
1370
|
|
|
1302
1371
|
### Optional editing highlight
|
|
1303
1372
|
|
|
@@ -1339,3 +1408,10 @@ does not perform the visual editor's Inherit action, which removes the field fro
|
|
|
1339
1408
|
the complete saved document. Explicit `standard` disables the gradient but remains
|
|
1340
1409
|
an override. Resetting an existing override to inherited styling through this AI
|
|
1341
1410
|
operation remains unsupported; this option does not imply full editor/AI parity.
|
|
1411
|
+
|
|
1412
|
+
<!-- praxis-npm-catalog-links:start -->
|
|
1413
|
+
## Official documentation and examples
|
|
1414
|
+
|
|
1415
|
+
- [Canonical technical overview: Overview](https://praxisui.dev/docs/components/praxis-core)
|
|
1416
|
+
- [Praxis Angular public catalog](https://praxisui.dev/angular)
|
|
1417
|
+
<!-- praxis-npm-catalog-links:end -->
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-11-01T13:59:56.156Z",
|
|
4
4
|
"packageName": "@praxisui/core",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.42",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 4,
|