@nivaro/react 0.1.222 → 0.1.224
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/dist/index.d.ts +27 -0
- package/dist/index.js +13479 -13349
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -333,6 +333,21 @@ export { CascadeFilterRule }
|
|
|
333
333
|
declare type CascadeRule = {
|
|
334
334
|
parent_field: string;
|
|
335
335
|
child_field: string;
|
|
336
|
+
on_unavailable?: CascadeSwapConfig;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
/** A parent→child picker cascade. `on_unavailable` opts a rule into the
|
|
340
|
+
* swap: when the USER changes the parent this session and a row's current
|
|
341
|
+
* value is no longer offered under the new parent, the row is re-pointed to
|
|
342
|
+
* the target row that keeps the `keep` columns of the old value and takes
|
|
343
|
+
* the `replace` columns from the parent's defaults (same entry shape as
|
|
344
|
+
* pinned_options — `when` gates read parent fields only). The swap runs the
|
|
345
|
+
* grid's row rules with the child field as the changed field, so every
|
|
346
|
+
* downstream derivation (category type, oracle category, task…) follows. */
|
|
347
|
+
declare type CascadeSwapConfig = {
|
|
348
|
+
keep?: string[];
|
|
349
|
+
replace: Record<string, PinnedCfg[]>;
|
|
350
|
+
label?: string;
|
|
336
351
|
};
|
|
337
352
|
|
|
338
353
|
/** context = the hosting form's current values (parent draft) — lets the
|
|
@@ -2655,6 +2670,18 @@ declare interface PendingTask {
|
|
|
2655
2670
|
priority?: string;
|
|
2656
2671
|
}
|
|
2657
2672
|
|
|
2673
|
+
declare type PinnedCfg = {
|
|
2674
|
+
when?: {
|
|
2675
|
+
field: string;
|
|
2676
|
+
op?: string;
|
|
2677
|
+
value?: string | string[];
|
|
2678
|
+
};
|
|
2679
|
+
parent_field: string;
|
|
2680
|
+
parent_collection: string;
|
|
2681
|
+
source_field: string;
|
|
2682
|
+
tag?: string;
|
|
2683
|
+
};
|
|
2684
|
+
|
|
2658
2685
|
declare interface PinnedMessage {
|
|
2659
2686
|
pin_id: number;
|
|
2660
2687
|
id: number;
|