@affino/datagrid-vue-app 0.1.47 → 0.1.49

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 CHANGED
@@ -591,6 +591,8 @@ const columnMenu: DataGridColumnMenuProp = {
591
591
  labels: {
592
592
  group: "Toggle grouping",
593
593
  filter: "Quick filters",
594
+ valueSearchPlaceholder: "Search values",
595
+ selectedValuesSummary: "{selected} / {total} selected",
594
596
  },
595
597
  actions: {
596
598
  sortAsc: { label: "Ascending order" },
@@ -1525,6 +1527,19 @@ const rowSelectionState = ref({
1525
1527
 
1526
1528
  The legacy `row-select` event still exists, but `rowSelectionState` is the stable controlled API when the page wants to bind selected row ids without diffing unified-state updates.
1527
1529
 
1530
+ For server-backed row models, the header checkbox selects the full current row projection without materializing every row id:
1531
+
1532
+ ```ts
1533
+ {
1534
+ focusedRow: null,
1535
+ selectedRows: [],
1536
+ mode: "all",
1537
+ excludedRows: [],
1538
+ }
1539
+ ```
1540
+
1541
+ In `mode: "all"`, visible row checkboxes render as selected unless their id is present in `excludedRows`. This keeps header select-all O(1) for large filtered datasets; `selectedRows` remains the explicit-id list for the default `mode: "explicit"`.
1542
+
1528
1543
  function exportSavedView() {
1529
1544
  return gridRef.value?.getSavedView()
1530
1545
  }