@jielga/tmdatagrid 2.0.0-beta.15 → 2.0.0-beta.17

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 CHANGED
@@ -642,15 +642,17 @@ type TMDataGridEditApi<TData extends RowData = TMDataGridRowData> = {
642
642
  */
643
643
  addRow: (values?: Partial<TData>) => string;
644
644
  /**
645
- * Opens entry rows for a list of records at once - one state write for the
645
+ * Opens entry rows for a list of records at once - one publish for the
646
646
  * batch, where a loop over `addRow` is one per row. Each row is seeded over
647
647
  * `newRowDefaults` exactly as `addRow` does.
648
648
  *
649
- * `commit: true` submits each row as it lands, which is what an import
650
- * wants: rows that validate commit (parked in the draft store under
651
- * `editing.draft`, added through `onRowAdd` without it - once per row),
652
- * and rows that fail stay open in the entry block carrying their errors,
653
- * for the user to fix. The result says which went which way.
649
+ * `commit: true` submits the rows too, which is what an import wants: rows
650
+ * that validate commit, and rows that fail stay open in the entry block
651
+ * carrying their errors, for the user to fix. The result says which went
652
+ * which way. Under `editing.draft` the rows validate together and land in
653
+ * the draft store in the same publish as the add - the grid renders once,
654
+ * whatever the count. Without it each valid row goes out through
655
+ * `onRowAdd`, one at a time and in order.
654
656
  */
655
657
  addRows: (rows: ReadonlyArray<Partial<TData>>, options?: TMDataGridAddRowsOptions) => Promise<TMDataGridAddRowsResult>;
656
658
  /**