@jielga/tmdatagrid 2.0.0-beta.16 → 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 +8 -6
- package/dist/index.js +2123 -2139
- package/dist/index.js.map +1 -1
- package/docs/editing.md +14 -8
- package/package.json +1 -1
- package/skills/appearance/SKILL.md +1 -1
- package/skills/cell-selection/SKILL.md +1 -1
- package/skills/columns/SKILL.md +1 -1
- package/skills/data/SKILL.md +1 -1
- package/skills/editing/SKILL.md +1 -1
- package/skills/filtering/SKILL.md +1 -1
- package/skills/getting-started/SKILL.md +1 -1
- package/skills/grouping/SKILL.md +1 -1
- package/skills/options/SKILL.md +1 -1
- package/skills/rows/SKILL.md +1 -1
- package/skills/server-side/SKILL.md +1 -1
- package/skills/testing/SKILL.md +1 -1
- package/src/components/TMDataGridEntryRows.tsx +18 -14
- package/src/components/TMDataGridTable.tsx +25 -15
- package/src/core/editEngine.ts +321 -244
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
|
|
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
|
|
650
|
-
*
|
|
651
|
-
*
|
|
652
|
-
*
|
|
653
|
-
*
|
|
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
|
/**
|