@anzusystems/common-admin 1.47.0-beta.dev-1782072599 → 1.47.0-beta.dev-1782072799

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/labs.d.ts CHANGED
@@ -1220,6 +1220,13 @@ export declare type ListEditorValidationResult = boolean | {
1220
1220
  message?: string;
1221
1221
  };
1222
1222
 
1223
+ /**
1224
+ * A vuelidate `$scope` (the same value the consumer's `useVuelidate({ $scope })` collector uses).
1225
+ * Passed to an editor via `validation-scope` to auto-register the editor's aggregate row validity
1226
+ * into that collector — so a plain `v$.$invalid` save gate blocks even a collapsed invalid row.
1227
+ */
1228
+ declare type ListEditorValidationScope = string | number | symbol;
1229
+
1223
1230
  export declare type ListEditorValidationState = 'valid' | 'invalid' | 'warning' | null;
1224
1231
 
1225
1232
  export declare interface ListViewItem<TItem> {
@@ -1450,6 +1457,13 @@ declare interface Props<TItem extends Record<string, any>> {
1450
1457
  dirtyExclude?: string[];
1451
1458
  /** Per-row validity — `true` (or `{ valid: true }`) = VALID. Drives the red rail + save guard. */
1452
1459
  validate?: (item: TItem) => ListEditorValidationResult;
1460
+ /**
1461
+ * Vuelidate `$scope` (the same one the consumer's row forms / save-gate collector use). When set,
1462
+ * the editor registers its aggregate validity under it, so a plain `v$.$invalid` save gate blocks
1463
+ * AND reveals a collapsed invalid row — no `validateAll()` call needed in the save flow. Omit to
1464
+ * keep legacy behavior (gate the save on the exposed `validateAll()` yourself); `false` opts out.
1465
+ */
1466
+ validationScope?: ListEditorValidationScope | false;
1453
1467
  /**
1454
1468
  * Opt-in lifted controller from `useListEditorController()` — pass it so editor
1455
1469
  * state survives this component's unmount/remount. Omitted: the editor owns one
@@ -1525,6 +1539,13 @@ declare interface Props_2<TItem extends Record<string, any>> {
1525
1539
  dirtyExclude?: string[];
1526
1540
  /** Per-row validity — `true` (or `{ valid: true }`) = VALID. Drives the red rail + save guard. */
1527
1541
  validate?: (item: TItem) => ListEditorValidationResult;
1542
+ /**
1543
+ * Vuelidate `$scope` (the same one the consumer's row forms / save-gate collector use). When set,
1544
+ * the editor registers its aggregate validity under it, so a plain `v$.$invalid` save gate blocks
1545
+ * AND reveals a collapsed invalid row — no `validateAll()` call needed in the save flow. Omit to
1546
+ * keep legacy behavior (gate the save on the exposed `validateAll()` yourself); `false` opts out.
1547
+ */
1548
+ validationScope?: ListEditorValidationScope | false;
1528
1549
  /**
1529
1550
  * Opt-in lifted state controller (from consumer's `useListEditorController()`)
1530
1551
  * so editor state survives this component's unmount/remount (pinned-widget
@@ -1610,6 +1631,13 @@ declare interface Props_3<TItem extends Record<string, any>> {
1610
1631
  dirtyExclude?: string[];
1611
1632
  /** Per-row validity — `true` (or `{ valid: true }`) = VALID. Drives the red rail + save guard. */
1612
1633
  validate?: (item: TItem) => ListEditorValidationResult;
1634
+ /**
1635
+ * Vuelidate `$scope` (the same one the consumer's row forms / save-gate collector use). When set,
1636
+ * the editor registers its aggregate validity under it, so a plain `v$.$invalid` save gate blocks
1637
+ * AND reveals a collapsed invalid row — no `validateAll()` call needed in the save flow. Omit to
1638
+ * keep legacy behavior (gate the save on the exposed `validateAll()` yourself); `false` opts out.
1639
+ */
1640
+ validationScope?: ListEditorValidationScope | false;
1613
1641
  /**
1614
1642
  * Opt-in lifted controller (`useNestedListEditorController()`) so state
1615
1643
  * survives unmount/remount; omitted = internal controller. Same handle