@ni/nimble-components 20.14.6 → 20.14.8

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.
@@ -16298,7 +16298,7 @@
16298
16298
 
16299
16299
  /**
16300
16300
  * Do not edit directly
16301
- * Generated on Fri, 17 Nov 2023 15:47:59 GMT
16301
+ * Generated on Tue, 21 Nov 2023 19:01:43 GMT
16302
16302
  */
16303
16303
 
16304
16304
  const Information100DarkUi = "#a46eff";
@@ -24911,6 +24911,7 @@
24911
24911
  appearance="ghost"
24912
24912
  content-hidden
24913
24913
  tabindex="-1"
24914
+ aria-hidden="true"
24914
24915
  >
24915
24916
  ${x => numericDecrementLabel.getValueFor(x)}
24916
24917
  <${iconMinusWideTag}
@@ -24925,6 +24926,7 @@
24925
24926
  appearance="ghost"
24926
24927
  content-hidden
24927
24928
  tabindex="-1"
24929
+ aria-hidden="true"
24928
24930
  >
24929
24931
  ${x => numericIncrementLabel.getValueFor(x)}
24930
24932
  <${iconAddTag}
@@ -64048,11 +64050,11 @@ img.ProseMirror-separator {
64048
64050
  return true;
64049
64051
  }
64050
64052
  for (const record of data) {
64051
- if (!Object.prototype.hasOwnProperty.call(record, idFieldName)) {
64053
+ if (!Object.prototype.hasOwnProperty.call(record.clientRecord, idFieldName)) {
64052
64054
  this.missingRecordId = true;
64053
64055
  continue;
64054
64056
  }
64055
- const id = record[idFieldName];
64057
+ const id = record.clientRecord[idFieldName];
64056
64058
  if (typeof id !== 'string') {
64057
64059
  this.invalidRecordId = true;
64058
64060
  continue;
@@ -66869,7 +66871,7 @@ img.ProseMirror-separator {
66869
66871
  async setData(newData) {
66870
66872
  await this.processPendingUpdates();
66871
66873
  const data = newData.map(record => {
66872
- return { ...record };
66874
+ return { clientRecord: { ...record } };
66873
66875
  });
66874
66876
  const tanStackUpdates = {
66875
66877
  data
@@ -67285,7 +67287,7 @@ img.ProseMirror-separator {
67285
67287
  const rows = this.table.getRowModel().rows;
67286
67288
  this.tableData = rows.map(row => {
67287
67289
  const rowState = {
67288
- record: row.original,
67290
+ record: row.original.clientRecord,
67289
67291
  id: row.id,
67290
67292
  selectionState: this.getRowSelectionState(row),
67291
67293
  isGrouped: row.getIsGrouped(),
@@ -67402,18 +67404,18 @@ img.ProseMirror-separator {
67402
67404
  calculateTanStackRowIdFunction() {
67403
67405
  return this.idFieldName === null || this.idFieldName === undefined
67404
67406
  ? undefined
67405
- : (record) => record[this.idFieldName];
67407
+ : (record) => record.clientRecord[this.idFieldName];
67406
67408
  }
67407
67409
  calculateTanStackColumns() {
67408
67410
  return this.columns.map(column => {
67409
67411
  return {
67410
67412
  id: column.columnInternals.uniqueId,
67411
- accessorFn: (data) => {
67413
+ accessorFn: (record) => {
67412
67414
  const fieldName = column.columnInternals.operandDataRecordFieldName;
67413
67415
  if (typeof fieldName !== 'string') {
67414
67416
  return undefined;
67415
67417
  }
67416
- return data[fieldName];
67418
+ return record.clientRecord[fieldName];
67417
67419
  },
67418
67420
  sortingFn: getTanStackSortingFunction(column.columnInternals.sortOperation),
67419
67421
  sortUndefined: false