ngx-json-render 0.7.4 → 0.7.6
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 +9 -1
- package/fesm2022/ngx-json-render.mjs +132 -29
- package/fesm2022/ngx-json-render.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-json-render.d.ts +14 -2
package/package.json
CHANGED
|
@@ -42,6 +42,12 @@ declare class JsonRenderActionsService {
|
|
|
42
42
|
confirm(): void;
|
|
43
43
|
/** Cancel the pending confirmation dialog. */
|
|
44
44
|
cancel(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Close `pending` and run `settle`, but only while it is still the open
|
|
47
|
+
* question: a late answer to one that was replaced must not close its
|
|
48
|
+
* successor.
|
|
49
|
+
*/
|
|
50
|
+
private answer;
|
|
45
51
|
/**
|
|
46
52
|
* Validate every registered field and write `{ valid, errors }` to the
|
|
47
53
|
* action's `statePath` (default `/formValidation`). Returns null when there
|
|
@@ -375,6 +381,10 @@ declare class JsonRenderStateService {
|
|
|
375
381
|
private readonly root;
|
|
376
382
|
private readonly internalStore;
|
|
377
383
|
private readonly changeListeners;
|
|
384
|
+
/** The snapshot the change listeners last heard about. */
|
|
385
|
+
private lastSnapshot;
|
|
386
|
+
/** True while this service writes, so the store's echo is not reported. */
|
|
387
|
+
private writing;
|
|
378
388
|
private readonly _state;
|
|
379
389
|
/** The current state model as a signal. */
|
|
380
390
|
readonly state: Signal<StateModel>;
|
|
@@ -390,10 +400,12 @@ declare class JsonRenderStateService {
|
|
|
390
400
|
getSnapshot(): StateModel;
|
|
391
401
|
/**
|
|
392
402
|
* Register a listener called with the list of changed paths whenever state
|
|
393
|
-
* is written through this service
|
|
394
|
-
*
|
|
403
|
+
* is written through this service, or, in controlled mode, whenever the
|
|
404
|
+
* external store changes (element `watch` fields rely on this). Returns an
|
|
405
|
+
* unsubscribe function.
|
|
395
406
|
*/
|
|
396
407
|
subscribeChanges(listener: (changes: StateChange[]) => void): () => void;
|
|
408
|
+
private write;
|
|
397
409
|
private notifyChanges;
|
|
398
410
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<JsonRenderStateService, never>;
|
|
399
411
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<JsonRenderStateService>;
|