@praxisui/crud 10.0.0-rc.44 → 10.0.0-rc.45
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 +51 -2
- package/ai/component-registry.json +567 -78
- package/fesm2022/{praxisui-crud-crud-route-form.component-CSZ7LYV7.mjs → praxisui-crud-crud-route-form.component-PYATzMcM.mjs} +1 -1
- package/fesm2022/{praxisui-crud-praxisui-crud-BPTvAlyB.mjs → praxisui-crud-praxisui-crud-DQsPPMCL.mjs} +858 -236
- package/fesm2022/praxisui-crud.mjs +1 -1
- package/package.json +7 -7
- package/types/praxisui-crud.d.ts +72 -7
package/README.md
CHANGED
|
@@ -311,8 +311,7 @@ into CRUD metadata or `x-ui`.
|
|
|
311
311
|
boundary for components hosted in a runtime frame. Hosts should not manufacture
|
|
312
312
|
an equivalent local token or pass the drawer reference through form values.
|
|
313
313
|
|
|
314
|
-
|
|
315
|
-
destination component. Routed edit hosts must load the entity through the
|
|
314
|
+
Routed edit/view hosts own their destination component and load the entity through the
|
|
316
315
|
canonical read contract and materialize identity from its response schema. Do
|
|
317
316
|
not serialize `resourceIdentity` into query parameters or treat transient
|
|
318
317
|
navigation state as reload-safe identity evidence.
|
|
@@ -345,6 +344,56 @@ The host does not need to call `HttpClient`, rebuild create schema URLs, or own
|
|
|
345
344
|
a second launcher. Absence of the HATEOAS link or an explicit `allowed: false` availability decision keeps the operation unavailable;
|
|
346
345
|
the runtime does not infer permission from labels, tags, or frontend flags.
|
|
347
346
|
|
|
347
|
+
For a seeded route destination, register the CRUD-owned form host in the host's
|
|
348
|
+
Angular routes and use its URL in the create action:
|
|
349
|
+
|
|
350
|
+
```ts
|
|
351
|
+
import { createCrudFormRoute } from '@praxisui/crud';
|
|
352
|
+
|
|
353
|
+
export const routes = [
|
|
354
|
+
createCrudFormRoute({
|
|
355
|
+
path: 'employees/copy',
|
|
356
|
+
formId: 'employees-create',
|
|
357
|
+
resourcePath: 'employees',
|
|
358
|
+
}),
|
|
359
|
+
];
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
`formId` and `resourcePath` must match the create action and resource. The seed is
|
|
363
|
+
claimed once during that navigation. Reload, back or direct access without a new
|
|
364
|
+
handoff shows an unavailable state; a custom `RouteReuseStrategy` must not cache
|
|
365
|
+
this destination. Ordinary unseeded form routes keep their existing host flow.
|
|
366
|
+
Modal/drawer restore focus to the surviving launch control; route navigation
|
|
367
|
+
destroys that control and focuses the destination heading.
|
|
368
|
+
|
|
369
|
+
Custom drawer adapters receive an optional `AbortSignal` and must honor it to
|
|
370
|
+
cancel their own asynchronous opening. For `surfaceRuntime.push`, CRUD closes an
|
|
371
|
+
obsolete frame as soon as its reference resolves; it cannot cancel an external
|
|
372
|
+
pending push before a reference exists.
|
|
373
|
+
|
|
374
|
+
The backend owns the copied/cleared field policy. CRUD clones the returned DTO,
|
|
375
|
+
uses the CREATE request schema and preserves an explicit create seed over saved
|
|
376
|
+
overrides. An object seed, including `{}`, suppresses omitted schema/config
|
|
377
|
+
defaults in Dynamic Form, including metadata rebuilds; `false` and `null` remain
|
|
378
|
+
values. Compatible edits survive rebuilds. Ordinary create without an object
|
|
379
|
+
seed keeps defaults. Submit remains POST; cancel/discard sends no create request.
|
|
380
|
+
An unavailable link, denial, preparation error or invalid response never opens an
|
|
381
|
+
empty copy or retries through generic workflow discovery. Links and runtime
|
|
382
|
+
denials are checked again after preparation to reject obsolete results.
|
|
383
|
+
|
|
384
|
+
`createCrudFormRoute` is an additive public helper for seeded create; hosts must
|
|
385
|
+
adopt it for that route. The handoff service and marker are private CRUD runtime,
|
|
386
|
+
not a Form/Core global slot or saved authoring document. They bind the transfer
|
|
387
|
+
to navigation, final URL, resource, form and context. After claim, the destination
|
|
388
|
+
owns its context/lifetime; a normal source teardown after successful guards is
|
|
389
|
+
allowed. Redirects, rejection, cancellation and obsolete context release the
|
|
390
|
+
payload. Explicit `enableCustomization=false`/`true` survives the private handoff;
|
|
391
|
+
absence alone selects the form host's global fallback.
|
|
392
|
+
|
|
393
|
+
Copy title, guidance and submit use CRUD i18n. Domain labels stay host-owned.
|
|
394
|
+
This does not imply complete Form localization: its generated section fallback
|
|
395
|
+
“Informações” in `dynamic-form-layout.service.ts` is an existing runtime i18n gap.
|
|
396
|
+
|
|
348
397
|
## Governed Two-Phase Bulk Operations
|
|
349
398
|
|
|
350
399
|
`PraxisCrudComponent` discovers governed two-phase bulk operations published by
|