@deephaven/iris-grid 0.9.1-js-plugin-big-display.14 → 0.9.2-beta.13

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.
@@ -260,10 +260,12 @@ export class IrisGrid extends React.Component<any, any, any> {
260
260
  handleTableLoadError(error: any): void;
261
261
  showAllColumns(): void;
262
262
  toggleSort(columnIndex: any, addToExisting: any): void;
263
+ updateSorts(sorts: any): void;
263
264
  sortColumn(modelColumn: any, direction: any, isAbs?: boolean, addToExisting?: boolean): void;
264
265
  reverse(reverseType: any): void;
265
266
  isReversible(): any;
266
267
  toggleFilterBar(focusIndex?: any): void;
268
+ isTableSearchAvailable(): any;
267
269
  toggleSearchBar(): void;
268
270
  commitPending(): Promise<void>;
269
271
  discardPending(): Promise<void>;
@@ -354,6 +356,8 @@ export namespace IrisGrid {
354
356
  }>>;
355
357
  const isSelectingColumn: PropTypes.Requireable<boolean>;
356
358
  const isSelectingPartition: PropTypes.Requireable<boolean>;
359
+ const isStuckToBottom: PropTypes.Requireable<boolean>;
360
+ const isStuckToRight: PropTypes.Requireable<boolean>;
357
361
  const columnSelectionValidator: PropTypes.Requireable<(...args: any[]) => any>;
358
362
  const columnAllowedCursor: PropTypes.Requireable<string>;
359
363
  const columnNotAllowedCursor: PropTypes.Requireable<string>;
@@ -440,6 +444,10 @@ export namespace IrisGrid {
440
444
  export { isSelectingColumn_1 as isSelectingColumn };
441
445
  const isSelectingPartition_1: boolean;
442
446
  export { isSelectingPartition_1 as isSelectingPartition };
447
+ const isStuckToBottom_1: boolean;
448
+ export { isStuckToBottom_1 as isStuckToBottom };
449
+ const isStuckToRight_1: boolean;
450
+ export { isStuckToRight_1 as isStuckToRight };
443
451
  const columnSelectionValidator_1: null;
444
452
  export { columnSelectionValidator_1 as columnSelectionValidator };
445
453
  const columnAllowedCursor_1: null;
@@ -1 +1 @@
1
- {"version":3,"file":"IrisGrid.d.ts","sourceRoot":"","sources":["../src/IrisGrid.js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IC;IAED,6FAYC;IAED,gCAIC;IAED,oBAGC;IAED,wCA2BC;IAED,8BAYC;IAED,wBAmBC;IAED,+BAgCC;IAED,gCAYC;IAED;;;OAGG;IACH,sCAGC;IAED;;OAEG;IACH,kDAcC;IAqhBD;;;OAGG;IACH,qBAFW,SAAS,EAAE,QASrB;IAED,6BAYC;IAED,gDAUC;IAED,wBASC;CA0xBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwHgB,wCAAQ;;QACL,2CAAQ;;QACV,yCAAQ;;QACf,kCAAQ;;QACF,wCAAQ;;QACJ,4CAAQ;;QACD,mDAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;QAYd,6CAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAcb,2CAAQ"}
package/dist/IrisGrid.js CHANGED
@@ -516,7 +516,8 @@ export class IrisGrid extends Component {
516
516
  isSelectingColumn,
517
517
  settings,
518
518
  model,
519
- customFilters
519
+ customFilters,
520
+ sorts
520
521
  } = this.props;
521
522
 
522
523
  if (model !== prevProps.model) {
@@ -539,6 +540,7 @@ export class IrisGrid extends Component {
539
540
  this.clearCrossColumSearch();
540
541
  }
541
542
 
543
+ this.startLoading('Filtering...', true);
542
544
  this.applyInputFilters(changedInputFilters, replaceExistingFilters);
543
545
  }
544
546
 
@@ -554,6 +556,10 @@ export class IrisGrid extends Component {
554
556
  this.startLoading('Filtering...', true);
555
557
  }
556
558
 
559
+ if (sorts !== prevProps.sorts) {
560
+ this.updateSorts(sorts);
561
+ }
562
+
557
563
  var {
558
564
  loadingScrimStartTime,
559
565
  loadingScrimFinishTime
@@ -1508,6 +1514,10 @@ export class IrisGrid extends Component {
1508
1514
  } = this.state;
1509
1515
  var modelColumn = this.getModelColumn(columnIndex);
1510
1516
  var sorts = TableUtils.toggleSortForColumn(currentSorts, model.table, modelColumn, addToExisting);
1517
+ this.updateSorts(sorts);
1518
+ }
1519
+
1520
+ updateSorts(sorts) {
1511
1521
  this.startLoading('Sorting...');
1512
1522
  this.setState({
1513
1523
  sorts
@@ -1586,14 +1596,35 @@ export class IrisGrid extends Component {
1586
1596
  }
1587
1597
  }
1588
1598
 
1599
+ isTableSearchAvailable() {
1600
+ var _model$layoutHints3, _dh$SearchDisplayMode, _dh$SearchDisplayMode2;
1601
+
1602
+ var {
1603
+ model,
1604
+ canToggleSearch
1605
+ } = this.props;
1606
+ var searchDisplayMode = model === null || model === void 0 ? void 0 : (_model$layoutHints3 = model.layoutHints) === null || _model$layoutHints3 === void 0 ? void 0 : _model$layoutHints3.searchDisplayMode;
1607
+
1608
+ if (searchDisplayMode === ((_dh$SearchDisplayMode = dh.SearchDisplayMode) === null || _dh$SearchDisplayMode === void 0 ? void 0 : _dh$SearchDisplayMode.SEARCH_DISPLAY_HIDE)) {
1609
+ return false;
1610
+ }
1611
+
1612
+ if (searchDisplayMode === ((_dh$SearchDisplayMode2 = dh.SearchDisplayMode) === null || _dh$SearchDisplayMode2 === void 0 ? void 0 : _dh$SearchDisplayMode2.SEARCH_DISPLAY_SHOW)) {
1613
+ return true;
1614
+ }
1615
+
1616
+ return canToggleSearch;
1617
+ }
1618
+
1589
1619
  toggleSearchBar() {
1590
1620
  var {
1591
1621
  showSearchBar
1592
1622
  } = this.state;
1593
- var {
1594
- canToggleSearch
1595
- } = this.props;
1596
- if (!canToggleSearch) return;
1623
+
1624
+ if (!this.isTableSearchAvailable()) {
1625
+ return;
1626
+ }
1627
+
1597
1628
  var update = !showSearchBar;
1598
1629
  this.setState({
1599
1630
  showSearchBar: update
@@ -2383,14 +2414,15 @@ export class IrisGrid extends Component {
2383
2414
  customFilters,
2384
2415
  getDownloadWorker,
2385
2416
  isSelectingColumn,
2417
+ isStuckToBottom,
2418
+ isStuckToRight,
2386
2419
  model,
2387
2420
  name,
2388
2421
  onlyFetchVisibleColumns,
2389
2422
  alwaysFetchColumns,
2390
2423
  advancedSettings,
2391
2424
  onAdvancedSettingsChange,
2392
- canDownloadCsv,
2393
- canToggleSearch
2425
+ canDownloadCsv
2394
2426
  } = this.props;
2395
2427
  var {
2396
2428
  metricCalculator,
@@ -2648,7 +2680,12 @@ export class IrisGrid extends Component {
2648
2680
  interactive: true,
2649
2681
  options: popperOptions,
2650
2682
  ref: this.handleTooltipRef,
2651
- referenceObject: virtualReference
2683
+ referenceObject: virtualReference,
2684
+ onExited: () => {
2685
+ this.setState({
2686
+ shownColumnTooltip: null
2687
+ });
2688
+ }
2652
2689
  }, /*#__PURE__*/React.createElement(ColumnStatistics, {
2653
2690
  model: model,
2654
2691
  column: column,
@@ -2817,7 +2854,7 @@ export class IrisGrid extends Component {
2817
2854
  }
2818
2855
  }
2819
2856
 
2820
- var optionItems = this.getCachedOptionItems(model.isChartBuilderAvailable, model.isCustomColumnsAvailable, model.isRollupAvailable, model.isTotalsAvailable, model.isSelectDistinctAvailable, model.isExportAvailable, this.toggleFilterBarAction, this.toggleSearchBarAction, isFilterBarShown, showSearchBar, canDownloadCsv, canToggleSearch);
2857
+ var optionItems = this.getCachedOptionItems(model.isChartBuilderAvailable, model.isCustomColumnsAvailable, model.isRollupAvailable, model.isTotalsAvailable, model.isSelectDistinctAvailable, model.isExportAvailable, this.toggleFilterBarAction, this.toggleSearchBarAction, isFilterBarShown, showSearchBar, canDownloadCsv, this.isTableSearchAvailable());
2821
2858
  var openOptionsStack = openOptions.map(option => {
2822
2859
  switch (option.type) {
2823
2860
  case OptionType.CHART_BUILDER:
@@ -2963,6 +3000,8 @@ export class IrisGrid extends Component {
2963
3000
  this.grid = grid;
2964
3001
  },
2965
3002
  isStickyBottom: !model.isEditable,
3003
+ isStuckToBottom: isStuckToBottom,
3004
+ isStuckToRight: isStuckToRight,
2966
3005
  metricCalculator: metricCalculator,
2967
3006
  model: model,
2968
3007
  keyHandlers: keyHandlers,
@@ -3138,6 +3177,8 @@ IrisGrid.propTypes = {
3138
3177
  }),
3139
3178
  isSelectingColumn: PropTypes.bool,
3140
3179
  isSelectingPartition: PropTypes.bool,
3180
+ isStuckToBottom: PropTypes.bool,
3181
+ isStuckToRight: PropTypes.bool,
3141
3182
  // eslint-disable-next-line react/no-unused-prop-types
3142
3183
  columnSelectionValidator: PropTypes.func,
3143
3184
  columnAllowedCursor: PropTypes.string,
@@ -3196,6 +3237,8 @@ IrisGrid.defaultProps = {
3196
3237
  onSelectionChanged: () => {},
3197
3238
  isSelectingColumn: false,
3198
3239
  isSelectingPartition: false,
3240
+ isStuckToBottom: false,
3241
+ isStuckToRight: false,
3199
3242
  columnSelectionValidator: null,
3200
3243
  columnAllowedCursor: null,
3201
3244
  columnNotAllowedCursor: null,