@procore/data-table 14.4.2 → 14.5.0

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.
@@ -436,7 +436,7 @@ var require_checkPropTypes = __commonJS({
436
436
  if (process.env.NODE_ENV !== "production") {
437
437
  for (var typeSpecName in typeSpecs) {
438
438
  if (has(typeSpecs, typeSpecName)) {
439
- var error;
439
+ var error2;
440
440
  try {
441
441
  if (typeof typeSpecs[typeSpecName] !== "function") {
442
442
  var err = Error(
@@ -445,20 +445,20 @@ var require_checkPropTypes = __commonJS({
445
445
  err.name = "Invariant Violation";
446
446
  throw err;
447
447
  }
448
- error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
448
+ error2 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
449
449
  } catch (ex) {
450
- error = ex;
450
+ error2 = ex;
451
451
  }
452
- if (error && !(error instanceof Error)) {
452
+ if (error2 && !(error2 instanceof Error)) {
453
453
  printWarning(
454
- (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
454
+ (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error2 + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
455
455
  );
456
456
  }
457
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
458
- loggedTypeFailures[error.message] = true;
457
+ if (error2 instanceof Error && !(error2.message in loggedTypeFailures)) {
458
+ loggedTypeFailures[error2.message] = true;
459
459
  var stack = getStack ? getStack() : "";
460
460
  printWarning(
461
- "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
461
+ "Failed " + location + " type: " + error2.message + (stack != null ? stack : "")
462
462
  );
463
463
  }
464
464
  }
@@ -615,9 +615,9 @@ var require_factoryWithTypeCheckers = __commonJS({
615
615
  return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
616
616
  }
617
617
  for (var i = 0; i < propValue.length; i++) {
618
- var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
619
- if (error instanceof Error) {
620
- return error;
618
+ var error2 = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
619
+ if (error2 instanceof Error) {
620
+ return error2;
621
621
  }
622
622
  }
623
623
  return null;
@@ -700,9 +700,9 @@ var require_factoryWithTypeCheckers = __commonJS({
700
700
  }
701
701
  for (var key in propValue) {
702
702
  if (has(propValue, key)) {
703
- var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
704
- if (error instanceof Error) {
705
- return error;
703
+ var error2 = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
704
+ if (error2 instanceof Error) {
705
+ return error2;
706
706
  }
707
707
  }
708
708
  }
@@ -767,9 +767,9 @@ var require_factoryWithTypeCheckers = __commonJS({
767
767
  if (typeof checker !== "function") {
768
768
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
769
769
  }
770
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
771
- if (error) {
772
- return error;
770
+ var error2 = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
771
+ if (error2) {
772
+ return error2;
773
773
  }
774
774
  }
775
775
  return null;
@@ -794,9 +794,9 @@ var require_factoryWithTypeCheckers = __commonJS({
794
794
  "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
795
795
  );
796
796
  }
797
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
798
- if (error) {
799
- return error;
797
+ var error2 = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
798
+ if (error2) {
799
+ return error2;
800
800
  }
801
801
  }
802
802
  return null;
@@ -8232,6 +8232,28 @@ var Editor = React83.forwardRef(
8232
8232
  }
8233
8233
  );
8234
8234
  var CurrencyCellEditor = withDataTableEditor(Editor, "input");
8235
+
8236
+ // src/utils/logger.ts
8237
+ var log = (...args) => {
8238
+ if (process.env.NODE_ENV === "development") {
8239
+ console.log(...args);
8240
+ }
8241
+ };
8242
+ var warn = (...args) => {
8243
+ if (process.env.NODE_ENV === "development") {
8244
+ console.warn(...args);
8245
+ }
8246
+ };
8247
+ var error = (...args) => {
8248
+ if (process.env.NODE_ENV === "development") {
8249
+ console.error(...args);
8250
+ }
8251
+ };
8252
+ var logger = {
8253
+ log,
8254
+ warn,
8255
+ error
8256
+ };
8235
8257
  function getLabel(func, option) {
8236
8258
  return (func == null ? void 0 : func(option)) ?? (option == null ? void 0 : option.label) ?? (option == null ? void 0 : option.name) ?? option;
8237
8259
  }
@@ -8564,7 +8586,7 @@ var DateFilterRenderer = (props) => {
8564
8586
  if (onServerSideDataRequest) {
8565
8587
  return /* @__PURE__ */ React83.createElement(ServerSideDateSelectFilterRenderer, { ...props });
8566
8588
  }
8567
- console.error(
8589
+ logger.error(
8568
8590
  "Warning: Date Filters are currently only implemented for the serverside row model"
8569
8591
  );
8570
8592
  return null;
@@ -9399,14 +9421,14 @@ ModuleRegistry.areGridScopedModules = false;
9399
9421
 
9400
9422
  // ../../node_modules/@ag-grid-community/core/dist/esm/es6/context/context.mjs
9401
9423
  var Context = class {
9402
- constructor(params, logger) {
9424
+ constructor(params, logger2) {
9403
9425
  this.beanWrappers = {};
9404
9426
  this.destroyed = false;
9405
9427
  if (!params || !params.beanClasses) {
9406
9428
  return;
9407
9429
  }
9408
9430
  this.contextParams = params;
9409
- this.logger = logger;
9431
+ this.logger = logger2;
9410
9432
  this.logger.log(">> creating ag-Application Context");
9411
9433
  this.createBeans();
9412
9434
  const beanInstances = this.getBeanInstances();
@@ -52637,7 +52659,7 @@ var GridCoreCreator = class {
52637
52659
  debug: debug2,
52638
52660
  gridId
52639
52661
  };
52640
- const logger = new Logger("AG Grid", () => gridOptions.debug);
52662
+ const logger2 = new Logger("AG Grid", () => gridOptions.debug);
52641
52663
  const contextLogger = new Logger("Context", () => contextParams.debug);
52642
52664
  const context = new Context(contextParams, contextLogger);
52643
52665
  const beans = context.getBean("beans");
@@ -52649,7 +52671,7 @@ var GridCoreCreator = class {
52649
52671
  this.setColumnsAndData(beans);
52650
52672
  this.dispatchGridReadyEvent(beans);
52651
52673
  const isEnterprise = ModuleRegistry.__isRegistered(ModuleNames.EnterpriseCoreModule, gridId);
52652
- logger.log(`initialised successfully, enterprise = ${isEnterprise}`);
52674
+ logger2.log(`initialised successfully, enterprise = ${isEnterprise}`);
52653
52675
  });
52654
52676
  if (acceptChanges) {
52655
52677
  acceptChanges(context);
@@ -53999,7 +54021,7 @@ var LocationFilterRenderer = (props) => {
53999
54021
  if (onServerSideDataRequest) {
54000
54022
  return /* @__PURE__ */ React83.createElement(ServerSideLocationFilterRenderer, { ...props });
54001
54023
  }
54002
- console.error(
54024
+ logger.error(
54003
54025
  "Warning: Location Filters are currently only implemented for the serverside row model"
54004
54026
  );
54005
54027
  return null;
@@ -54196,7 +54218,7 @@ var MultiSelectFilterRenderer = (props) => {
54196
54218
  const { onServerSideDataRequest } = useInternalTableContext();
54197
54219
  const Renderer13 = onServerSideDataRequest ? ServerSideMultiSelectFilterRenderer : ClientSideMultiSelectFilterRenderer;
54198
54220
  if (isNumberFilterModel(value)) {
54199
- console.warn(
54221
+ logger.warn(
54200
54222
  "a value was set that is not compatible with this MultiSelectFilterRenderer"
54201
54223
  );
54202
54224
  return null;
@@ -54550,7 +54572,7 @@ var ServerSideFilter = ({
54550
54572
  value
54551
54573
  } = useServerSideFilter({ columnDefinition });
54552
54574
  if (columnDefinition === void 0 || columnDefinition === null) {
54553
- console.warn(
54575
+ logger.warn(
54554
54576
  `Unable to find the columnDefinition (${columnDefinition}) for fieldName: ${fieldName}`
54555
54577
  );
54556
54578
  return null;
@@ -56272,7 +56294,12 @@ var GenericHeaderRenderer = (props) => {
56272
56294
  const colDef = props.column.getColDef();
56273
56295
  const HeaderNode = (_a = colDef.headerComponentParams) == null ? void 0 : _a.headerNode;
56274
56296
  const I18n = useI18nContext();
56275
- const { columnApi, tableRef, onServerSideDataRequest } = useInternalTableContext();
56297
+ const {
56298
+ columnApi,
56299
+ tableRef,
56300
+ onServerSideDataRequest,
56301
+ showExpandCollapseAllToggle
56302
+ } = useInternalTableContext();
56276
56303
  const onSSDR = Boolean(onServerSideDataRequest);
56277
56304
  const [sortOrder, setSortOrder] = React83.useState(props.column.getSort());
56278
56305
  const [isFirstColumn2, setIsFirstColumn] = React83.useState(false);
@@ -56363,11 +56390,11 @@ var GenericHeaderRenderer = (props) => {
56363
56390
  }, [props.column]);
56364
56391
  const [isExpandable, setIsExpandable] = React83.useState(false);
56365
56392
  React83.useEffect(() => {
56366
- if (onSSDR) {
56393
+ if (showExpandCollapseAllToggle === false) {
56367
56394
  return;
56368
56395
  }
56369
56396
  const hasExpandableNodes = !!findNode(
56370
- (node) => node.isExpandable(),
56397
+ (node) => !!(node.group && !node.footer),
56371
56398
  props.api
56372
56399
  );
56373
56400
  setIsExpandable(
@@ -56915,7 +56942,7 @@ var emptyArray2 = [];
56915
56942
  var emptyObj = {};
56916
56943
  function logNoOp(text, returns) {
56917
56944
  return function() {
56918
- console.log("No-op", text);
56945
+ logger.log("No-op", text);
56919
56946
  return returns;
56920
56947
  };
56921
56948
  }
@@ -57249,6 +57276,7 @@ var InternalTableContext = React83.createContext({
57249
57276
  },
57250
57277
  setRowHeight: () => {
57251
57278
  },
57279
+ showExpandCollapseAllToggle: false,
57252
57280
  tableRef: null,
57253
57281
  getColumnDefinition: () => void 0,
57254
57282
  setSelectedGroupIndex: () => {
@@ -57295,8 +57323,7 @@ var Analytics = class {
57295
57323
  };
57296
57324
 
57297
57325
  // src/Analytics/Analytics.tsx
57298
- var defaultTrackEvent = (e, params) => {
57299
- console.log("analytics::trackEvent", e, params);
57326
+ var noop3 = () => {
57300
57327
  };
57301
57328
  var AnalyticsContext = React83.createContext({});
57302
57329
  function AnalyticsProvider({
@@ -57306,7 +57333,7 @@ function AnalyticsProvider({
57306
57333
  return /* @__PURE__ */ React83.createElement(
57307
57334
  AnalyticsContext.Provider,
57308
57335
  {
57309
- value: { trackEvent: (analytics == null ? void 0 : analytics.trackEvent) || defaultTrackEvent }
57336
+ value: { trackEvent: (analytics == null ? void 0 : analytics.trackEvent) || noop3 }
57310
57337
  },
57311
57338
  children
57312
57339
  );
@@ -76564,7 +76591,7 @@ function RadioList({
76564
76591
  }
76565
76592
 
76566
76593
  // src/Panels/BulkEdit.tsx
76567
- function noop3() {
76594
+ function noop4() {
76568
76595
  }
76569
76596
  function parseValues(columns, values2) {
76570
76597
  return columns.reduce((updatedValues, column2) => {
@@ -76858,7 +76885,7 @@ var BulkEditInput = (props) => {
76858
76885
  }
76859
76886
  );
76860
76887
  } else {
76861
- console.warn(
76888
+ logger.warn(
76862
76889
  `@procore/data-table: Unable to find the field for ${props.editor}. Will fallback to a Form.Text.`
76863
76890
  );
76864
76891
  return defaultField;
@@ -76866,7 +76893,7 @@ var BulkEditInput = (props) => {
76866
76893
  }
76867
76894
  };
76868
76895
  var BulkEdit = React83.forwardRef(
76869
- ({ onReset = noop3 }, ref) => {
76896
+ ({ onReset = noop4 }, ref) => {
76870
76897
  var _a;
76871
76898
  const {
76872
76899
  analytics,
@@ -76989,7 +77016,7 @@ var BulkEdit = React83.forwardRef(
76989
77016
  showToast.success(I18n.t("dataTable.bulkActions.success"));
76990
77017
  resetForm({});
76991
77018
  onReset();
76992
- } catch (error) {
77019
+ } catch (error2) {
76993
77020
  showToast.error(I18n.t("dataTable.bulkActions.error"));
76994
77021
  }
76995
77022
  }
@@ -77515,7 +77542,7 @@ function groupFiltersByGroupName(props) {
77515
77542
  const groupName = filterProps == null ? void 0 : filterProps.groupName;
77516
77543
  filterIndex++;
77517
77544
  if (groupName && !(filterGroupNames == null ? void 0 : filterGroupNames.includes(groupName))) {
77518
- console.warn(
77545
+ logger.warn(
77519
77546
  'filter "%s" is being associated with a filter group "%s" that does not exist',
77520
77547
  filterRecord.field,
77521
77548
  groupName
@@ -77582,7 +77609,7 @@ var StyledPanelSection = styled4(Panel.Section)`
77582
77609
  `;
77583
77610
 
77584
77611
  // src/Panels/Filters.tsx
77585
- function noop4() {
77612
+ function noop5() {
77586
77613
  }
77587
77614
  var cx19 = classnames.bind(styles_default);
77588
77615
  function isServerSideFilterGroups(_FiltersInGroup, isServerSideRowModel) {
@@ -77635,7 +77662,6 @@ function FilterListItems(props) {
77635
77662
  "data-qa": "data-table-possible-filters-list"
77636
77663
  },
77637
77664
  filtersInGroup.map((filterRecord) => {
77638
- console.log("filterRecord ", filterRecord);
77639
77665
  const { columnDefinition } = filterRecord;
77640
77666
  if (!columnDefinition) {
77641
77667
  return null;
@@ -77695,7 +77721,7 @@ function FiltersList(props) {
77695
77721
  },
77696
77722
  filterGroups == null ? void 0 : filterGroups.map((group) => {
77697
77723
  if (!filterGroupsMap[group.name]) {
77698
- console.warn(
77724
+ logger.warn(
77699
77725
  'filters group "%s" is not associated with any filter',
77700
77726
  group.name
77701
77727
  );
@@ -77721,7 +77747,7 @@ function FiltersList(props) {
77721
77747
  var BaseFiltersPanel = ({
77722
77748
  children,
77723
77749
  className,
77724
- onClearAllFilters = noop4,
77750
+ onClearAllFilters = noop5,
77725
77751
  ...props
77726
77752
  }) => {
77727
77753
  const { contextPanel } = useInternalTableContext();
@@ -78438,7 +78464,7 @@ var buildDetailRowsConfig = ({
78438
78464
  return {};
78439
78465
  }
78440
78466
  if (detailRowConfigs.length > 1) {
78441
- console.warn(`
78467
+ logger.warn(`
78442
78468
  DataTable: "detailRowConfigs" of length ${detailRowConfigs.length} was provided, while it only supports an array of length 1.
78443
78469
  Please use "detailRowConfig", as "detailRowConfigs" is deprecated.
78444
78470
  `);
@@ -81496,6 +81522,7 @@ var DataTable = ({
81496
81522
  onBulkEditUpdate,
81497
81523
  onServerSideDataRequest,
81498
81524
  onTableConfigChange,
81525
+ showExpandCollapseAllToggle,
81499
81526
  translations: translations2 = {},
81500
81527
  enableCellTextSelection
81501
81528
  }) => {
@@ -81525,7 +81552,7 @@ var DataTable = ({
81525
81552
  const missingTranslation = internalI18n.missingTranslation.bind(internalI18n);
81526
81553
  internalI18n.missingTranslation = (scope2, options) => {
81527
81554
  if (scope2.match(/core\.dataTable/)) {
81528
- console.warn(`[DataTable] Missing Translation: ${scope2}`);
81555
+ logger.warn(`[DataTable] Missing Translation: ${scope2}`);
81529
81556
  return "";
81530
81557
  }
81531
81558
  if (dataTableTranslationKeys.includes(scope2)) {
@@ -81713,6 +81740,7 @@ var DataTable = ({
81713
81740
  setGridApi,
81714
81741
  setRowHeight: internalSetRowHeight,
81715
81742
  setSelectedGroupIndex,
81743
+ showExpandCollapseAllToggle: showExpandCollapseAllToggle ?? false,
81716
81744
  tableRef,
81717
81745
  totalRowCount,
81718
81746
  setTotalRowCount,
@@ -81992,7 +82020,7 @@ var Table = (props) => {
81992
82020
  ]);
81993
82021
  React83.useEffect(() => {
81994
82022
  if (frameworkComponentsInitialized.current === true) {
81995
- console.warn("Don't update custom cells after the initial render.");
82023
+ logger.warn("Don't update custom cells after the initial render.");
81996
82024
  setFrameworkComponents(
81997
82025
  getFrameworkComponents(
81998
82026
  headerMenuConfig,
@@ -82737,6 +82765,7 @@ var ClientSideDataTable = ({
82737
82765
  initialTableConfig: _initialTableConfig,
82738
82766
  onTableConfigChange,
82739
82767
  onBulkEditUpdate,
82768
+ showExpandCollapseAllToggle: true,
82740
82769
  translations: translations2,
82741
82770
  customBulkEditorFields,
82742
82771
  enableCellTextSelection
@@ -83008,7 +83037,7 @@ var QuickDateFilterRenderer = (props) => {
83008
83037
  if (onServerSideDataRequest) {
83009
83038
  return /* @__PURE__ */ React83.createElement(ServerSideQuickDateFilterRenderer, { ...props });
83010
83039
  }
83011
- console.error(
83040
+ logger.error(
83012
83041
  "Warning: Date Filters are currently only implemented for the serverside row model"
83013
83042
  );
83014
83043
  return null;
@@ -83107,7 +83136,7 @@ var LocationQuickFilterOverlay = React83.forwardRef(
83107
83136
  value
83108
83137
  }, ref) => {
83109
83138
  if (value && !Array.isArray(value)) {
83110
- console.warn(
83139
+ logger.warn(
83111
83140
  "a value was set that is not compatible with this LocationQuickFilterRenderer"
83112
83141
  );
83113
83142
  return null;
@@ -88153,6 +88182,7 @@ var ServerSideDataTable = ({
88153
88182
  onServerSideDataRequest,
88154
88183
  onTableConfigChange,
88155
88184
  enableCellTextSelection,
88185
+ showExpandCollapseAllToggle,
88156
88186
  translations: translations2 = {}
88157
88187
  }) => {
88158
88188
  return /* @__PURE__ */ React83.createElement(
@@ -88168,6 +88198,7 @@ var ServerSideDataTable = ({
88168
88198
  onTableConfigChange,
88169
88199
  onServerSideDataRequest,
88170
88200
  onBulkEditUpdate,
88201
+ showExpandCollapseAllToggle,
88171
88202
  translations: translations2,
88172
88203
  customBulkEditorFields,
88173
88204
  enableCellTextSelection
@@ -1067,6 +1067,7 @@ interface DataTableTranslations {
1067
1067
  interface DataTableProps {
1068
1068
  analytics?: AnalyticsConfig;
1069
1069
  columnDefinitions: (ColumnDefinition | NestedColumnDefinition)[];
1070
+ customBulkEditorFields?: CustomBulkEditorFields;
1070
1071
  enableGroupEditAndValidation?: boolean;
1071
1072
  enableDynamicRowHeight?: boolean;
1072
1073
  filterGroups?: FilterGroup[];
@@ -1081,11 +1082,11 @@ interface DataTableProps {
1081
1082
  * the updated values
1082
1083
  */
1083
1084
  onBulkEditUpdate?: (rows: BulkEditResult[]) => Promise<void>;
1085
+ showExpandCollapseAllToggle?: boolean;
1084
1086
  translations?: DataTableTranslations;
1085
- customBulkEditorFields?: CustomBulkEditorFields;
1086
1087
  enableCellTextSelection?: boolean;
1087
1088
  }
1088
- interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest'> {
1089
+ interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
1089
1090
  }
1090
1091
  interface FilterGroup {
1091
1092
  name: string;
@@ -1264,6 +1265,7 @@ interface InternalTableContext {
1264
1265
  setColumnApi: (columnApi: ColumnApi) => void;
1265
1266
  setGridApi: (gridApi: GridApi) => void;
1266
1267
  setRowHeight: (rowHeight: RowSize, createTrackEvent?: boolean, triggerTableConfigChange?: boolean) => void;
1268
+ showExpandCollapseAllToggle: boolean;
1267
1269
  tableRef: React__default.RefObject<TableApi> | null;
1268
1270
  getColumnDefinition: (field: string) => ColumnDefinition | undefined;
1269
1271
  totalRowCount: number;
@@ -1361,7 +1363,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
1361
1363
 
1362
1364
  declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
1363
1365
 
1364
- declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, translations, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
1366
+ declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
1365
1367
  BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
1366
1368
  BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
1367
1369
  ConfigPanelButton: React__default.FC<{}>;
@@ -1067,6 +1067,7 @@ interface DataTableTranslations {
1067
1067
  interface DataTableProps {
1068
1068
  analytics?: AnalyticsConfig;
1069
1069
  columnDefinitions: (ColumnDefinition | NestedColumnDefinition)[];
1070
+ customBulkEditorFields?: CustomBulkEditorFields;
1070
1071
  enableGroupEditAndValidation?: boolean;
1071
1072
  enableDynamicRowHeight?: boolean;
1072
1073
  filterGroups?: FilterGroup[];
@@ -1081,11 +1082,11 @@ interface DataTableProps {
1081
1082
  * the updated values
1082
1083
  */
1083
1084
  onBulkEditUpdate?: (rows: BulkEditResult[]) => Promise<void>;
1085
+ showExpandCollapseAllToggle?: boolean;
1084
1086
  translations?: DataTableTranslations;
1085
- customBulkEditorFields?: CustomBulkEditorFields;
1086
1087
  enableCellTextSelection?: boolean;
1087
1088
  }
1088
- interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest'> {
1089
+ interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
1089
1090
  }
1090
1091
  interface FilterGroup {
1091
1092
  name: string;
@@ -1264,6 +1265,7 @@ interface InternalTableContext {
1264
1265
  setColumnApi: (columnApi: ColumnApi) => void;
1265
1266
  setGridApi: (gridApi: GridApi) => void;
1266
1267
  setRowHeight: (rowHeight: RowSize, createTrackEvent?: boolean, triggerTableConfigChange?: boolean) => void;
1268
+ showExpandCollapseAllToggle: boolean;
1267
1269
  tableRef: React__default.RefObject<TableApi> | null;
1268
1270
  getColumnDefinition: (field: string) => ColumnDefinition | undefined;
1269
1271
  totalRowCount: number;
@@ -1361,7 +1363,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
1361
1363
 
1362
1364
  declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
1363
1365
 
1364
- declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, translations, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
1366
+ declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
1365
1367
  BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
1366
1368
  BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
1367
1369
  ConfigPanelButton: React__default.FC<{}>;