@procore/data-table 13.2.2 → 13.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 13.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f02789227a: Fix: Add 'ja-JP' to translations file
8
+
9
+ ## 13.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - c26355a12a: Allow selecting items across pages in SSRM
14
+
3
15
  ## 13.2.2
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import * as _ag_grid_community_core from '@ag-grid-community/core';
2
- import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
2
+ import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
3
3
  import * as React$1 from 'react';
4
4
  import React__default from 'react';
5
5
  import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
@@ -588,13 +588,13 @@ interface TableApi {
588
588
  * The row node ID is the one you provide from the callback `getRowId(data)`,
589
589
  * otherwise the ID is a number auto-generated by the grid when the row data is set.
590
590
  */
591
- selectRows: (rowIds: (string | number)[]) => void;
591
+ selectRows: (rowIds: (string | number)[], source?: SelectionEventSourceType) => void;
592
592
  /**
593
593
  * Deselects row nodes by their respective row node IDs.
594
594
  * The row node ID is the one you provide from the callback `getRowId(data)`,
595
595
  * otherwise the ID is a number auto-generated by the grid when the row data is set.
596
596
  */
597
- deselectRows: (rowIds: (string | number)[]) => void;
597
+ deselectRows: (rowIds: (string | number)[], source?: SelectionEventSourceType) => void;
598
598
  /**
599
599
  * Set a function determining if selection is enabled for each row as it's loaded into the table.
600
600
  * Note: Changing this will not affect existing rows that have already been loaded. Additionally,
@@ -1,5 +1,5 @@
1
1
  import * as _ag_grid_community_core from '@ag-grid-community/core';
2
- import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
2
+ import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
3
3
  import * as React$1 from 'react';
4
4
  import React__default from 'react';
5
5
  import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
@@ -588,13 +588,13 @@ interface TableApi {
588
588
  * The row node ID is the one you provide from the callback `getRowId(data)`,
589
589
  * otherwise the ID is a number auto-generated by the grid when the row data is set.
590
590
  */
591
- selectRows: (rowIds: (string | number)[]) => void;
591
+ selectRows: (rowIds: (string | number)[], source?: SelectionEventSourceType) => void;
592
592
  /**
593
593
  * Deselects row nodes by their respective row node IDs.
594
594
  * The row node ID is the one you provide from the callback `getRowId(data)`,
595
595
  * otherwise the ID is a number auto-generated by the grid when the row data is set.
596
596
  */
597
- deselectRows: (rowIds: (string | number)[]) => void;
597
+ deselectRows: (rowIds: (string | number)[], source?: SelectionEventSourceType) => void;
598
598
  /**
599
599
  * Set a function determining if selection is enabled for each row as it's loaded into the table.
600
600
  * Note: Changing this will not affect existing rows that have already been loaded. Additionally,
@@ -55306,7 +55306,7 @@ function ClientSideRowCheckbox(props) {
55306
55306
  "data-qa": "rowCheckbox",
55307
55307
  onClick: noop2,
55308
55308
  onChange: () => {
55309
- props.node.setSelected(!selected);
55309
+ props.node.setSelected(!selected, void 0, "checkboxSelected");
55310
55310
  }
55311
55311
  }
55312
55312
  ));
@@ -55346,7 +55346,13 @@ function ServerSideRowCheckbox(props) {
55346
55346
  onClick: noop2,
55347
55347
  onChange: () => {
55348
55348
  var _a2, _b2;
55349
- props.node.isSelected() ? (_a2 = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a2.deselectRows([props.node.id]) : (_b2 = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _b2.selectRows([props.node.id]);
55349
+ props.node.isSelected() ? (_a2 = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a2.deselectRows(
55350
+ [props.node.id],
55351
+ "checkboxSelected"
55352
+ ) : (_b2 = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _b2.selectRows(
55353
+ [props.node.id],
55354
+ "checkboxSelected"
55355
+ );
55350
55356
  }
55351
55357
  }
55352
55358
  ));
@@ -56482,8 +56488,12 @@ var GenericHeaderRenderer = (props) => {
56482
56488
  if (!onSSDR || !isFirstColumn2 || !props.selectionSSREnabled) {
56483
56489
  return;
56484
56490
  }
56485
- function updateSelectAllCheckbox() {
56486
- const currentRows = getCurrentRows(props.api);
56491
+ function updateSelectAllCheckbox(e) {
56492
+ if (e.source === "uiSelectAll") {
56493
+ return;
56494
+ }
56495
+ const isPagination = Boolean(props.api.paginationGetRowCount());
56496
+ const currentRows = getCurrentRows(props.api, isPagination);
56487
56497
  const isAllSelected = currentRows.length && currentRows.every(isRowSelected);
56488
56498
  const isPartialSelected = !isAllSelected && currentRows.some(isRowSelected);
56489
56499
  if (isAllSelected) {
@@ -56500,19 +56510,36 @@ var GenericHeaderRenderer = (props) => {
56500
56510
  props.api.removeEventListener(selectionChanged, updateSelectAllCheckbox);
56501
56511
  props.api.removeEventListener(paginationChanged, updateSelectAllCheckbox);
56502
56512
  };
56503
- }, [isFirstColumn2, selectAll, props.selectionSSREnabled]);
56504
- const toggleSelectAll = () => {
56513
+ }, [isFirstColumn2, props.selectionSSREnabled, props.api, onSSDR]);
56514
+ const toggleSelectAll = React82__default.default.useCallback(() => {
56505
56515
  var _a2, _b, _c;
56506
56516
  const nextSelectedState = selectAll === "all" /* All */ ? "none" /* None */ : "all" /* All */;
56507
56517
  setSelectAll(nextSelectedState);
56508
56518
  (_a2 = props.onSelectAll) == null ? void 0 : _a2.call(props, nextSelectedState);
56509
56519
  const isSelectAll = nextSelectedState == "all" /* All */;
56510
56520
  if (props.selectionSSREnabled) {
56511
- isSelectAll ? (_b = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _b.selectAll() : (_c = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _c.deselectAll();
56521
+ const isPagination = Boolean(props.api.paginationGetRowCount());
56522
+ const rowsIdsToSelectOrDeselect = getCurrentRows(
56523
+ props.api,
56524
+ isPagination
56525
+ ).map((node) => node.id);
56526
+ isSelectAll ? (_b = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _b.selectRows(
56527
+ rowsIdsToSelectOrDeselect,
56528
+ "uiSelectAll"
56529
+ ) : (_c = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _c.deselectRows(
56530
+ rowsIdsToSelectOrDeselect,
56531
+ "uiSelectAll"
56532
+ );
56512
56533
  } else {
56513
56534
  isSelectAll ? props.api.selectAllFiltered() : props.api.deselectAllFiltered();
56514
56535
  }
56515
- };
56536
+ }, [
56537
+ setSelectAll,
56538
+ selectAll,
56539
+ props.onSelectAll,
56540
+ props.selectionSSREnabled,
56541
+ props.api
56542
+ ]);
56516
56543
  return /* @__PURE__ */ React82__default.default.createElement(
56517
56544
  coreReact.Flex,
56518
56545
  {
@@ -56548,9 +56575,7 @@ var GenericHeaderRenderer = (props) => {
56548
56575
  checked: selectAll === "all" /* All */,
56549
56576
  indeterminate: selectAll === "partial",
56550
56577
  onClick: (e) => e.stopPropagation(),
56551
- onChange: () => {
56552
- toggleSelectAll();
56553
- }
56578
+ onChange: toggleSelectAll
56554
56579
  }
56555
56580
  ),
56556
56581
  /* @__PURE__ */ React82__default.default.createElement("div", { className: "ag-header-cell-label" }, /* @__PURE__ */ React82__default.default.createElement(
@@ -56622,6 +56647,20 @@ function GenericColumnGroupHeader(props) {
56622
56647
  ));
56623
56648
  }
56624
56649
 
56650
+ // src/utils/pagination.ts
56651
+ var getPaginationPageStartEnd = ({
56652
+ activePage,
56653
+ items: totalItems,
56654
+ perPage
56655
+ }) => {
56656
+ const numPages = Math.ceil(totalItems / perPage);
56657
+ const actualActivePage = numPages === 0 ? 0 : activePage + 1;
56658
+ return {
56659
+ end: Math.min(actualActivePage * perPage, totalItems),
56660
+ start: Math.max((actualActivePage - 1) * perPage, 0)
56661
+ };
56662
+ };
56663
+
56625
56664
  // src/utils/cellHelpers.tsx
56626
56665
  function withDataTableEditor(Component4, editorType) {
56627
56666
  return React82__default.default.forwardRef(
@@ -56703,7 +56742,7 @@ function getFrameworkComponents(headerMenuConfig, onSelectAll, selectionSSREnabl
56703
56742
  DefaultFrameworkComponents["autoGroupCellRenderer"] = AutoGroupCellRenderer;
56704
56743
  return { ...DefaultFrameworkComponents, ...customFrameworkComponents };
56705
56744
  }
56706
- function getCurrentRows(gridApi) {
56745
+ function getCurrentRows(gridApi, useCurrentPageOnly) {
56707
56746
  var _a;
56708
56747
  let currentRows = [];
56709
56748
  if (((_a = gridApi == null ? void 0 : gridApi.getModel()) == null ? void 0 : _a.getType()) === "clientSide") {
@@ -56714,6 +56753,16 @@ function getCurrentRows(gridApi) {
56714
56753
  gridApi == null ? void 0 : gridApi.forEachNode((rowNode) => {
56715
56754
  currentRows.push(rowNode);
56716
56755
  });
56756
+ if (useCurrentPageOnly) {
56757
+ const { start, end } = getPaginationPageStartEnd({
56758
+ items: (gridApi == null ? void 0 : gridApi.paginationGetRowCount()) || 0,
56759
+ perPage: (gridApi == null ? void 0 : gridApi.paginationGetPageSize()) || 0,
56760
+ activePage: (gridApi == null ? void 0 : gridApi.paginationGetCurrentPage()) || 0
56761
+ });
56762
+ return currentRows.filter(
56763
+ (row2) => row2.rowIndex >= start && row2.rowIndex < end
56764
+ );
56765
+ }
56717
56766
  }
56718
56767
  return currentRows;
56719
56768
  }
@@ -58831,10 +58880,8 @@ var useRowSelectionState = () => {
58831
58880
  }
58832
58881
  selectionEventFunction();
58833
58882
  gridApi == null ? void 0 : gridApi.addEventListener("selectionChanged", selectionEventFunction);
58834
- gridApi == null ? void 0 : gridApi.addEventListener("paginationChanged", selectionEventFunction);
58835
58883
  return () => {
58836
58884
  gridApi == null ? void 0 : gridApi.removeEventListener("selectionChanged", selectionEventFunction);
58837
- gridApi == null ? void 0 : gridApi.removeEventListener("paginationChanged", selectionEventFunction);
58838
58885
  };
58839
58886
  }, [gridApi]);
58840
58887
  return selectedRows;
@@ -79818,6 +79865,150 @@ var is_IS_default = {
79818
79865
  }
79819
79866
  };
79820
79867
 
79868
+ // src/locales/ja-JP.json
79869
+ var ja_JP_default = {
79870
+ dataTable: {
79871
+ emptyState: {
79872
+ noFilteredResults: {
79873
+ description: "\u30B9\u30DA\u30EB\u3068\u30D5\u30A3\u30EB\u30BF\u30FC\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u78BA\u8A8D\u3059\u308B\u304B\u3001\u5225\u306E\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u691C\u7D22\u3057\u307E\u3059\u3002",
79874
+ title: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B\u9805\u76EE\u306F\u3042\u308A\u307E\u305B\u3093",
79875
+ itemsTitle: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B%{itemsLabel}\u306F\u3042\u308A\u307E\u305B\u3093"
79876
+ },
79877
+ noResults: {
79878
+ description: "\u30C1\u30FC\u30E0\u304C\u3053\u308C\u3089\u306E\u9805\u76EE\u3092\u4F5C\u6210\u3057\u305F\u3089\u3001\u3053\u3061\u3089\u3067\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3059\u3002 ",
79879
+ title: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B\u9805\u76EE\u304C\u3042\u308A\u307E\u305B\u3093",
79880
+ itemsTitle: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B%{itemsLabel}\u304C\u3042\u308A\u307E\u305B\u3093",
79881
+ tooltip: "\u60C5\u5831\u3092%{tableName}\u306B\u8FFD\u52A0\u3059\u308B\u3068\u3001[%{featureName}]\u30DC\u30BF\u30F3\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
79882
+ featureFilter: "\u30D5\u30A3\u30EB\u30BF\u30FC",
79883
+ featureSearch: "\u691C\u7D22",
79884
+ featureGroupBy: "\u30B0\u30EB\u30FC\u30D7\u5316",
79885
+ featureConfigure: "\u69CB\u6210",
79886
+ tableNameFallback: "\u8868"
79887
+ }
79888
+ },
79889
+ bulkActions: {
79890
+ apply: "\u9069\u7528\u3059\u308B",
79891
+ bulkEdit: "\u4E00\u62EC\u7DE8\u96C6",
79892
+ cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
79893
+ editValues: "\u5024\u3092\u7DE8\u96C6\u3059\u308B",
79894
+ error: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u304C\u3001\u9805\u76EE\u3092\u66F4\u65B0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
79895
+ placeholderForField: "%{fieldName}\u3092\u5165\u529B\u3059\u308B",
79896
+ selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
79897
+ success: "\u9805\u76EE\u306F\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F\u3002",
79898
+ one: "\u9805\u76EE",
79899
+ many: "\u9805\u76EE"
79900
+ },
79901
+ exporting: "\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u4E2D...",
79902
+ filters: {
79903
+ filters: "\u30D5\u30A3\u30EB\u30BF\u30FC",
79904
+ moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",
79905
+ clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u30AF\u30EA\u30A2",
79906
+ close: "\u9589\u3058\u308B",
79907
+ locationFilter: {
79908
+ selectAll: "\u3059\u3079\u3066\u3092\u9078\u629E\u3059\u308B",
79909
+ includeSublocations: "\u30B5\u30D6\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u542B\u3081\u308B",
79910
+ searchLocations: "\u5834\u6240\u3092\u691C\u7D22",
79911
+ locations: "\u5834\u6240"
79912
+ },
79913
+ numberFilter: {
79914
+ labels: {
79915
+ and: "\u305D\u3057\u3066",
79916
+ input_placeholder: "\u5024\u3092\u5165\u529B",
79917
+ placeholder: "\u9805\u76EE\u3092\u9078\u629E\u3059\u308B"
79918
+ },
79919
+ options: {
79920
+ any_value: "\u4EFB\u610F\u306E\u5024",
79921
+ is_between: "\u9593\u306B\u3042\u308B",
79922
+ greater_than: "\u3088\u308A\u5927\u304D\u3044",
79923
+ greater_than_equal_to: "\u4EE5\u4E0A\u3067\u3042\u308B",
79924
+ less_than: "\u672A\u6E80\u3067\u3042\u308B",
79925
+ less_than_equal_to: "\u4EE5\u4E0B\u3067\u3059",
79926
+ no_value: "\u5024\u304C\u3042\u308A\u307E\u305B\u3093"
79927
+ }
79928
+ }
79929
+ },
79930
+ loading: {
79931
+ initial: "\u60C5\u5831\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u3002",
79932
+ secondary: "\u60C5\u5831\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u3002\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002"
79933
+ },
79934
+ menuOptions: {
79935
+ sortMenuItem: {
79936
+ label: "\u3053\u306E\u5217\u3067\u4E26\u3079\u66FF\u3048\u308B",
79937
+ sortAscItem: "\u5217\u3092\u6607\u9806\u306B\u4E26\u3079\u66FF\u3048\u308B",
79938
+ sortDescItem: "\u5217\u3092\u964D\u9806\u306B\u4E26\u3079\u66FF\u3048\u308B",
79939
+ sortResetItem: "\u5217\u306F\u4E26\u3079\u66FF\u3048\u3089\u308C\u3066\u3044\u307E\u305B\u3093"
79940
+ },
79941
+ expandAllGroups: "\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u5C55\u958B\u3059\u308B",
79942
+ collapseAllGroups: "\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u6298\u308A\u305F\u305F\u3080",
79943
+ pinColumn: "\u5217\u3092\u30D4\u30F3\u7559\u3081\u3059\u308B",
79944
+ pinLeft: "\u5DE6\u5074\u3092\u30D4\u30F3\u7559\u3081\u3059\u308B",
79945
+ pinRight: "\u53F3\u5074\u3092\u30D4\u30F3\u7559\u3081\u3059\u308B",
79946
+ noPin: "\u30D4\u30F3\u7559\u3081\u306F\u3042\u308A\u307E\u305B\u3093",
79947
+ autoSizeThisColumn: "\u3053\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
79948
+ autoSizeAllColumns: "\u3059\u3079\u3066\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
79949
+ resetColumns: "\u5217\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B",
79950
+ unGroupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3092\u89E3\u9664\u3059\u308B",
79951
+ groupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B"
79952
+ },
79953
+ grandTotals: "\u5358\u7D14\u96C6\u8A08",
79954
+ search: "\u691C\u7D22",
79955
+ subtotals: "\u5C0F\u8A08",
79956
+ tableSettings: {
79957
+ configureColumns: "\u5217\u3092\u69CB\u6210",
79958
+ resetToDefault: "\u3059\u3079\u3066\u3092\u8868\u793A\u3059\u308B",
79959
+ rowHeight: "\u5217\u306E\u9AD8\u3055",
79960
+ small: "\u5C0F",
79961
+ medium: "\u4E2D",
79962
+ large: "\u5927",
79963
+ tableSettings: "\u8868\u306E\u8A2D\u5B9A",
79964
+ groupBy: "\u30B0\u30EB\u30FC\u30D7\u5316:",
79965
+ reset: "\u30EA\u30BB\u30C3\u30C8",
79966
+ selectColumnGroup: "\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B\u5217\u3092\u9078\u629E"
79967
+ },
79968
+ rowGroupToggle: {
79969
+ expandTierOne: "\u8868\u306E\u6700\u521D\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u958B\u304D\u307E\u3059\u3002",
79970
+ expandAll: "\u8868\u306E\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u958B\u304D\u307E\u3059\u3002",
79971
+ collapseAll: "\u8868\u306E\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u9589\u3058\u307E\u3059\u3002"
79972
+ },
79973
+ columnGroupToggle: {
79974
+ collapse: "\u5217\u30B0\u30EB\u30FC\u30D7\u3092\u6298\u308A\u7573\u3080",
79975
+ expand: "\u5217\u30B0\u30EB\u30FC\u30D7\u3092\u5C55\u958B\u3059\u308B"
79976
+ },
79977
+ cells: {
79978
+ textCell: {
79979
+ placeholder: "\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3059\u308B"
79980
+ },
79981
+ currencyCell: {
79982
+ placeholder: "\u901A\u8CA8\u3092\u5165\u529B\u3059\u308B"
79983
+ },
79984
+ numberCell: {
79985
+ placeholder: "\u756A\u53F7\u3092\u5165\u529B\u3059\u308B"
79986
+ },
79987
+ percentCell: {
79988
+ placeholder: "%\u3092\u5165\u529B"
79989
+ },
79990
+ pillCell: {
79991
+ placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
79992
+ },
79993
+ selectCell: {
79994
+ placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
79995
+ },
79996
+ booleanCell: {
79997
+ options: {
79998
+ yes: "\u306F\u3044",
79999
+ no: "\u3044\u3044\u3048"
80000
+ }
80001
+ }
80002
+ },
80003
+ filterRenders: {
80004
+ dateFilter: {
80005
+ single: "\u5358\u72EC",
80006
+ range: "\u7BC4\u56F2"
80007
+ }
80008
+ }
80009
+ }
80010
+ };
80011
+
79821
80012
  // src/locales/pt-BR.json
79822
80013
  var pt_BR_default = {
79823
80014
  dataTable: {
@@ -80262,6 +80453,7 @@ var translations = {
80262
80453
  "fr-CA": fr_CA_default,
80263
80454
  "fr-FR": fr_FR_default,
80264
80455
  "is-IS": is_IS_default,
80456
+ "ja-JP": ja_JP_default,
80265
80457
  "pt-BR": pt_BR_default,
80266
80458
  "th-TH": th_TH_default,
80267
80459
  "zh-SG": zh_SG_default
@@ -80871,24 +81063,24 @@ var useTableApi = ({
80871
81063
  });
80872
81064
  };
80873
81065
  const selectRows = React82__default.default.useCallback(
80874
- (rowIds) => {
81066
+ (rowIds, source) => {
80875
81067
  rowIds == null ? void 0 : rowIds.forEach((id) => {
80876
81068
  const rowNode = gridApi == null ? void 0 : gridApi.getRowNode(id.toString());
80877
81069
  if (!rowNode)
80878
81070
  return;
80879
- rowNode.setSelected(true);
81071
+ rowNode.setSelected(true, void 0, source);
80880
81072
  onSelectionChanged(rowNode);
80881
81073
  });
80882
81074
  },
80883
81075
  [gridApi]
80884
81076
  );
80885
81077
  const deselectRows = React82__default.default.useCallback(
80886
- (rowIds) => {
81078
+ (rowIds, source) => {
80887
81079
  rowIds == null ? void 0 : rowIds.forEach((id) => {
80888
81080
  const rowNode = gridApi == null ? void 0 : gridApi.getRowNode(id.toString());
80889
81081
  if (!rowNode)
80890
81082
  return;
80891
- rowNode.setSelected(false);
81083
+ rowNode.setSelected(false, void 0, source);
80892
81084
  onSelectionChanged(rowNode);
80893
81085
  });
80894
81086
  },
@@ -82271,19 +82463,13 @@ var TablePagination = ({
82271
82463
  page: 0,
82272
82464
  items: 0
82273
82465
  });
82274
- const { rowSelectionRef } = useInternalTableContext();
82275
82466
  React82__default.default.useEffect(() => {
82276
82467
  function onPaginationChanged(params) {
82277
- var _a;
82278
82468
  if (gridApi && params.api.paginationGetCurrentPage() !== pagination.page || pagination.items !== params.api.paginationGetRowCount()) {
82279
82469
  setPagination({
82280
82470
  page: params.api.paginationGetCurrentPage(),
82281
82471
  items: params.api.paginationGetRowCount()
82282
82472
  });
82283
- if (params.api.getModel().getType() === "serverSide") {
82284
- ((_a = rowSelectionRef == null ? void 0 : rowSelectionRef.current) == null ? void 0 : _a.affectedRows) && (rowSelectionRef.current.affectedRows = {});
82285
- gridApi == null ? void 0 : gridApi.deselectAll();
82286
- }
82287
82473
  }
82288
82474
  }
82289
82475
  gridApi == null ? void 0 : gridApi.addEventListener("paginationChanged", onPaginationChanged);