@deephaven/iris-grid 0.50.0 → 0.50.1-beta.2

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/dist/IrisGrid.js CHANGED
@@ -32,7 +32,7 @@ import ToastBottomBar from "./ToastBottomBar.js";
32
32
  import IrisGridMetricCalculator from "./IrisGridMetricCalculator.js";
33
33
  import IrisGridModelUpdater from "./IrisGridModelUpdater.js";
34
34
  import IrisGridRenderer from "./IrisGridRenderer.js";
35
- import IrisGridTheme from "./IrisGridTheme.js";
35
+ import { createDefaultIrisGridTheme } from "./IrisGridTheme.js";
36
36
  import ColumnStatistics from "./ColumnStatistics.js";
37
37
  import "./IrisGrid.css";
38
38
  import AdvancedFilterCreator from "./AdvancedFilterCreator.js";
@@ -294,11 +294,17 @@ export class IrisGrid extends Component {
294
294
  _defineProperty(this, "getCachedFilter", memoize((customFilters, quickFilters, advancedFilters, partitionFilters, searchFilter) => [...(customFilters !== null && customFilters !== void 0 ? customFilters : []), ...(partitionFilters !== null && partitionFilters !== void 0 ? partitionFilters : []), ...IrisGridUtils.getFiltersFromFilterMap(quickFilters), ...IrisGridUtils.getFiltersFromFilterMap(advancedFilters), ...(searchFilter !== undefined ? [searchFilter] : [])], {
295
295
  max: 1
296
296
  }));
297
- _defineProperty(this, "getCachedTheme", memoize((theme, isEditable, floatingRowCount) => _objectSpread(_objectSpread(_objectSpread({}, IrisGridTheme), theme), {}, {
298
- autoSelectRow: !isEditable,
297
+ _defineProperty(this, "getCachedTheme", memoize((theme, isEditable, floatingRowCount) => {
298
+ var _theme$rowFooterWidth;
299
+ var defaultTheme = createDefaultIrisGridTheme();
300
+
299
301
  // We only show the row footers when we have floating rows for aggregations
300
- rowFooterWidth: floatingRowCount > 0 ? theme.rowFooterWidth : 0
301
- }), {
302
+ var rowFooterWidth = floatingRowCount > 0 ? (_theme$rowFooterWidth = theme === null || theme === void 0 ? void 0 : theme.rowFooterWidth) !== null && _theme$rowFooterWidth !== void 0 ? _theme$rowFooterWidth : defaultTheme.rowFooterWidth : 0;
303
+ return _objectSpread(_objectSpread(_objectSpread({}, defaultTheme), theme), {}, {
304
+ autoSelectRow: !isEditable,
305
+ rowFooterWidth
306
+ });
307
+ }, {
302
308
  max: 1
303
309
  }));
304
310
  _defineProperty(this, "getAlwaysFetchColumns", memoize((alwaysFetchColumns, columns, movedColumns, floatingLeftColumnCount, floatingRightColumnCount, draggingRange) => {
@@ -3688,7 +3694,7 @@ _defineProperty(IrisGrid, "defaultProps", {
3688
3694
  canCopy: true,
3689
3695
  canDownloadCsv: true,
3690
3696
  frozenColumns: null,
3691
- theme: IrisGridTheme,
3697
+ theme: null,
3692
3698
  canToggleSearch: true
3693
3699
  });
3694
3700
  export default IrisGrid;