@ai-table/grid 0.1.46 → 0.2.1

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.
@@ -9326,7 +9326,7 @@ class AITableFieldStat {
9326
9326
  fontWeight: DEFAULT_FONT_WEIGHT
9327
9327
  });
9328
9328
  return {
9329
- texts: text.split(' '),
9329
+ texts: text.split(/\s+/),
9330
9330
  totalWidth: textWidth,
9331
9331
  statValue: statValue || ''
9332
9332
  };
@@ -11264,7 +11264,7 @@ function toggleSelectRecord(aiTable, recordId) {
11264
11264
  function toggleSelectAllRecords(aiTable, checked) {
11265
11265
  if (checked) {
11266
11266
  setSelection(aiTable, {
11267
- selectedRecords: new Set(aiTable.records().map((item) => item._id))
11267
+ selectedRecords: new Set(aiTable.gridData().records.map((item) => item._id))
11268
11268
  });
11269
11269
  }
11270
11270
  else {