@deephaven/iris-grid 0.8.2-beta.1 → 0.9.1-alpha.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.
- package/dist/AdvancedFilterCreator.d.ts +2 -2
- package/dist/AdvancedFilterCreator.d.ts.map +1 -1
- package/dist/AdvancedFilterCreatorFilterItem.d.ts +30 -31
- package/dist/AdvancedFilterCreatorFilterItem.d.ts.map +1 -1
- package/dist/AdvancedFilterCreatorFilterItem.js +21 -28
- package/dist/AdvancedFilterCreatorFilterItem.js.map +1 -1
- package/dist/AdvancedFilterCreatorSelectValueList.d.ts +1 -1
- package/dist/CrossColumnSearch.d.ts +1 -1
- package/dist/CrossColumnSearch.d.ts.map +1 -1
- package/dist/DateUtils.d.ts +46 -44
- package/dist/DateUtils.d.ts.map +1 -1
- package/dist/DateUtils.js +37 -32
- package/dist/DateUtils.js.map +1 -1
- package/dist/Formatter.d.ts +37 -42
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +58 -38
- package/dist/Formatter.js.map +1 -1
- package/dist/FormatterUtils.d.ts +12 -8
- package/dist/FormatterUtils.d.ts.map +1 -1
- package/dist/FormatterUtils.js.map +1 -1
- package/dist/IrisGrid.d.ts +23 -12
- package/dist/IrisGrid.d.ts.map +1 -1
- package/dist/IrisGrid.js +44 -17
- package/dist/IrisGrid.js.map +1 -1
- package/dist/IrisGridMetricCalculator.d.ts +16 -2
- package/dist/IrisGridMetricCalculator.d.ts.map +1 -1
- package/dist/IrisGridMetricCalculator.js +4 -3
- package/dist/IrisGridMetricCalculator.js.map +1 -1
- package/dist/IrisGridModel.d.ts +23 -23
- package/dist/IrisGridModel.d.ts.map +1 -1
- package/dist/IrisGridModelFactory.d.ts +1 -1
- package/dist/IrisGridModelFactory.d.ts.map +1 -1
- package/dist/IrisGridProxyModel.d.ts +2 -2
- package/dist/IrisGridProxyModel.d.ts.map +1 -1
- package/dist/IrisGridTableModel.d.ts +5 -5
- package/dist/IrisGridTableModel.d.ts.map +1 -1
- package/dist/IrisGridTestUtils.d.ts +1 -1
- package/dist/IrisGridTestUtils.d.ts.map +1 -1
- package/dist/IrisGridTheme.d.ts +5 -75
- package/dist/IrisGridTheme.d.ts.map +1 -1
- package/dist/IrisGridTheme.js +2 -1
- package/dist/IrisGridTheme.js.map +1 -1
- package/dist/IrisGridUtils.d.ts +28 -28
- package/dist/IrisGridUtils.d.ts.map +1 -1
- package/dist/MissingKeyError.js +4 -0
- package/dist/MissingKeyError.js.map +1 -1
- package/dist/PartitionSelectorSearch.d.ts +1 -1
- package/dist/TableUtils.d.ts +127 -114
- package/dist/TableUtils.d.ts.map +1 -1
- package/dist/TableUtils.js +76 -69
- package/dist/TableUtils.js.map +1 -1
- package/dist/declaration.d.js +2 -0
- package/dist/declaration.d.js.map +1 -0
- package/dist/filters/FilterOperator.d.ts +5 -5
- package/dist/filters/FilterOperator.d.ts.map +1 -1
- package/dist/filters/FilterOperator.js +1 -3
- package/dist/filters/FilterOperator.js.map +1 -1
- package/dist/filters/FilterType.d.ts +23 -23
- package/dist/filters/FilterType.d.ts.map +1 -1
- package/dist/filters/FilterType.js +1 -3
- package/dist/filters/FilterType.js.map +1 -1
- package/dist/filters/index.d.ts +2 -2
- package/dist/filters/index.d.ts.map +1 -1
- package/dist/filters/index.js +2 -2
- package/dist/filters/index.js.map +1 -1
- package/dist/format-context-menus/CustomFormatAction.d.ts +27 -39
- package/dist/format-context-menus/CustomFormatAction.d.ts.map +1 -1
- package/dist/format-context-menus/CustomFormatAction.js +24 -23
- package/dist/format-context-menus/CustomFormatAction.js.map +1 -1
- package/dist/format-context-menus/DateTimeFormatContextMenu.d.ts +8 -5
- package/dist/format-context-menus/DateTimeFormatContextMenu.d.ts.map +1 -1
- package/dist/format-context-menus/DateTimeFormatContextMenu.js +3 -3
- package/dist/format-context-menus/DateTimeFormatContextMenu.js.map +1 -1
- package/dist/format-context-menus/DecimalFormatContextMenu.d.ts +7 -5
- package/dist/format-context-menus/DecimalFormatContextMenu.d.ts.map +1 -1
- package/dist/format-context-menus/DecimalFormatContextMenu.js +3 -3
- package/dist/format-context-menus/DecimalFormatContextMenu.js.map +1 -1
- package/dist/format-context-menus/FormatContextMenuUtils.d.ts +28 -27
- package/dist/format-context-menus/FormatContextMenuUtils.d.ts.map +1 -1
- package/dist/format-context-menus/FormatContextMenuUtils.js +12 -10
- package/dist/format-context-menus/FormatContextMenuUtils.js.map +1 -1
- package/dist/format-context-menus/IntegerFormatContextMenu.d.ts +7 -5
- package/dist/format-context-menus/IntegerFormatContextMenu.d.ts.map +1 -1
- package/dist/format-context-menus/IntegerFormatContextMenu.js +3 -3
- package/dist/format-context-menus/IntegerFormatContextMenu.js.map +1 -1
- package/dist/format-context-menus/index.d.ts +3 -3
- package/dist/format-context-menus/index.d.ts.map +1 -1
- package/dist/format-context-menus/index.js.map +1 -1
- package/dist/formatters/BooleanColumnFormatter.d.ts +4 -4
- package/dist/formatters/BooleanColumnFormatter.d.ts.map +1 -1
- package/dist/formatters/BooleanColumnFormatter.js.map +1 -1
- package/dist/formatters/CharColumnFormatter.d.ts +4 -4
- package/dist/formatters/CharColumnFormatter.d.ts.map +1 -1
- package/dist/formatters/CharColumnFormatter.js.map +1 -1
- package/dist/formatters/DateTimeColumnFormatter.d.ts +13 -11
- package/dist/formatters/DateTimeColumnFormatter.d.ts.map +1 -1
- package/dist/formatters/DateTimeColumnFormatter.js +12 -2
- package/dist/formatters/DateTimeColumnFormatter.js.map +1 -1
- package/dist/formatters/DecimalColumnFormatter.d.ts +55 -59
- package/dist/formatters/DecimalColumnFormatter.d.ts.map +1 -1
- package/dist/formatters/DecimalColumnFormatter.js +66 -27
- package/dist/formatters/DecimalColumnFormatter.js.map +1 -1
- package/dist/formatters/DefaultColumnFormatter.d.ts +4 -4
- package/dist/formatters/DefaultColumnFormatter.d.ts.map +1 -1
- package/dist/formatters/DefaultColumnFormatter.js.map +1 -1
- package/dist/formatters/IntegerColumnFormatter.d.ts +50 -29
- package/dist/formatters/IntegerColumnFormatter.d.ts.map +1 -1
- package/dist/formatters/IntegerColumnFormatter.js +60 -19
- package/dist/formatters/IntegerColumnFormatter.js.map +1 -1
- package/dist/formatters/index.d.ts +8 -7
- package/dist/formatters/index.d.ts.map +1 -1
- package/dist/formatters/index.js +4 -3
- package/dist/formatters/index.js.map +1 -1
- package/dist/index.d.ts +14 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/key-handlers/ClearFilterKeyHandler.js +5 -0
- package/dist/key-handlers/ClearFilterKeyHandler.js.map +1 -1
- package/dist/key-handlers/CopyKeyHandler.js +5 -0
- package/dist/key-handlers/CopyKeyHandler.js.map +1 -1
- package/dist/key-handlers/ReverseKeyHandler.js +5 -0
- package/dist/key-handlers/ReverseKeyHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts +17 -8
- package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts.map +1 -1
- package/dist/sidebar/ChartBuilder.d.ts +1 -1
- package/dist/sidebar/ChartBuilder.d.ts.map +1 -1
- package/dist/sidebar/TableCsvExporter.d.ts +1 -1
- package/dist/sidebar/TableCsvExporter.d.ts.map +1 -1
- package/dist/sidebar/VisibilityOrderingBuilder.d.ts +1 -1
- package/dist/sidebar/VisibilityOrderingBuilder.d.ts.map +1 -1
- package/dist/sidebar/aggregations/AggregationEdit.d.ts +2 -4
- package/dist/sidebar/aggregations/AggregationEdit.d.ts.map +1 -1
- package/dist/sidebar/aggregations/AggregationEdit.js.map +1 -1
- package/dist/sidebar/aggregations/AggregationUtils.d.ts +1 -4
- package/dist/sidebar/aggregations/AggregationUtils.d.ts.map +1 -1
- package/dist/sidebar/aggregations/AggregationUtils.js.map +1 -1
- package/package.json +12 -13
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/IrisGrid.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
2
2
|
static minDebounce: number;
|
|
3
3
|
static maxDebounce: number;
|
|
4
4
|
static loadingSpinnerDelay: number;
|
|
5
|
-
static makeQuickFilter(column: any, text: any, timeZone: any):
|
|
5
|
+
static makeQuickFilter(column: any, text: any, timeZone: any): import("@deephaven/jsapi-shim").FilterCondition | null;
|
|
6
6
|
constructor(props: any);
|
|
7
7
|
handleAdvancedFilterChange(column: any, filter: any, options: any): void;
|
|
8
8
|
handleAdvancedFilterSortChange(column: any, direction: any, addToExisting?: boolean): void;
|
|
@@ -13,17 +13,17 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
13
13
|
* A specific aggregation has been modified
|
|
14
14
|
* @param {Aggregation} aggregation The new aggregation
|
|
15
15
|
*/
|
|
16
|
-
handleAggregationChange(aggregation:
|
|
16
|
+
handleAggregationChange(aggregation: Aggregation): void;
|
|
17
17
|
/**
|
|
18
18
|
* User added, removed, or changed the order of aggregations, or position
|
|
19
19
|
* @param {AggregationSettings} aggregationSettings The new aggregation settings
|
|
20
20
|
*/
|
|
21
|
-
handleAggregationsChange(aggregationSettings:
|
|
21
|
+
handleAggregationsChange(aggregationSettings: AggregationSettings): void;
|
|
22
22
|
/**
|
|
23
23
|
* An aggregations has been selected for editing
|
|
24
24
|
* @param {Aggregation} aggregation The aggregation to edit
|
|
25
25
|
*/
|
|
26
|
-
handleAggregationEdit(aggregation:
|
|
26
|
+
handleAggregationEdit(aggregation: Aggregation): void;
|
|
27
27
|
handleAnimationLoop(): void;
|
|
28
28
|
handleAnimationStart(): void;
|
|
29
29
|
handleAnimationEnd(): void;
|
|
@@ -71,15 +71,17 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
71
71
|
lastLoadedConfig: {
|
|
72
72
|
advancedFilters: Map<any, any>;
|
|
73
73
|
customColumns: never[];
|
|
74
|
-
reverseType:
|
|
74
|
+
reverseType: "none";
|
|
75
75
|
quickFilters: Map<any, any>;
|
|
76
|
-
searchFilter:
|
|
76
|
+
searchFilter: import("@deephaven/jsapi-shim").FilterCondition | null;
|
|
77
77
|
sorts: never[];
|
|
78
78
|
} | null;
|
|
79
79
|
tooltip: any;
|
|
80
80
|
pending: Pending;
|
|
81
81
|
globalColumnFormats: any[];
|
|
82
82
|
dateTimeFormatterOptions: {};
|
|
83
|
+
decimalFormatOptions: {};
|
|
84
|
+
integerFormatOptions: {};
|
|
83
85
|
loadingScrimStartTime: number | null;
|
|
84
86
|
loadingScrimFinishTime: number | null;
|
|
85
87
|
loadingTimer: NodeJS.Timeout | null;
|
|
@@ -111,7 +113,7 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
111
113
|
}[];
|
|
112
114
|
getAdvancedMenuOpenedHandler: ((column: any) => () => void) & memoize.Memoized<(column: any) => () => void>;
|
|
113
115
|
getCachedAdvancedFilterMenuActions: ((model: any, column: any, advancedFilterOptions: any, sortDirection: any, formatter: any) => JSX.Element) & memoize.Memoized<(model: any, column: any, advancedFilterOptions: any, sortDirection: any, formatter: any) => JSX.Element>;
|
|
114
|
-
getCachedOptionItems: ((isChartBuilderAvailable: any, isCustomColumnsAvailable: any, isRollupAvailable: any, isTotalsAvailable: any, isSelectDistinctAvailable: any, isExportAvailable: any, toggleFilterBarAction: any, toggleSearchBarAction: any, isFilterBarShown: any, showSearchBar: any, canDownloadCsv: any) => ({
|
|
116
|
+
getCachedOptionItems: ((isChartBuilderAvailable: any, isCustomColumnsAvailable: any, isRollupAvailable: any, isTotalsAvailable: any, isSelectDistinctAvailable: any, isExportAvailable: any, toggleFilterBarAction: any, toggleSearchBarAction: any, isFilterBarShown: any, showSearchBar: any, canDownloadCsv: any, canToggleSearch: any) => ({
|
|
115
117
|
type: OptionType;
|
|
116
118
|
title: string;
|
|
117
119
|
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -125,7 +127,7 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
125
127
|
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
126
128
|
isOn: any;
|
|
127
129
|
onChange: any;
|
|
128
|
-
})[]) & memoize.Memoized<(isChartBuilderAvailable: any, isCustomColumnsAvailable: any, isRollupAvailable: any, isTotalsAvailable: any, isSelectDistinctAvailable: any, isExportAvailable: any, toggleFilterBarAction: any, toggleSearchBarAction: any, isFilterBarShown: any, showSearchBar: any, canDownloadCsv: any) => ({
|
|
130
|
+
})[]) & memoize.Memoized<(isChartBuilderAvailable: any, isCustomColumnsAvailable: any, isRollupAvailable: any, isTotalsAvailable: any, isSelectDistinctAvailable: any, isExportAvailable: any, toggleFilterBarAction: any, toggleSearchBarAction: any, isFilterBarShown: any, showSearchBar: any, canDownloadCsv: any, canToggleSearch: any) => ({
|
|
129
131
|
type: OptionType;
|
|
130
132
|
title: string;
|
|
131
133
|
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -188,7 +190,7 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
188
190
|
* @param {inputFilter[]} inputFilters Array of input filters to apply
|
|
189
191
|
* @param {boolean} replaceExisting If true, new filters will replace the existing ones, instead of merging
|
|
190
192
|
*/
|
|
191
|
-
applyInputFilters(inputFilters:
|
|
193
|
+
applyInputFilters(inputFilters: inputFilter[], replaceExisting?: boolean): void;
|
|
192
194
|
/**
|
|
193
195
|
* Applies a quick filter
|
|
194
196
|
* @param {number} modelIndex The index in the model of the column to set
|
|
@@ -204,7 +206,7 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
204
206
|
* @param {dh.FilterCondition} filter A filter to apply to the column, or null if there was an error
|
|
205
207
|
* @param {String} text The original text the filter was created with
|
|
206
208
|
*/
|
|
207
|
-
setQuickFilter(modelIndex: number, filter:
|
|
209
|
+
setQuickFilter(modelIndex: number, filter: dh.FilterCondition, text: string): void;
|
|
208
210
|
/**
|
|
209
211
|
* Set grid filters based on the filter map
|
|
210
212
|
* @param {Map<string, Object>} filterMap Filter map
|
|
@@ -269,7 +271,7 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
269
271
|
* Select the passed in column and notify listener
|
|
270
272
|
* @param {dh.Column} column The column in this table to link
|
|
271
273
|
*/
|
|
272
|
-
selectColumn(column:
|
|
274
|
+
selectColumn(column: dh.Column): void;
|
|
273
275
|
/**
|
|
274
276
|
* Select all the data for a given row and notify listener
|
|
275
277
|
*/
|
|
@@ -368,6 +370,7 @@ export namespace IrisGrid {
|
|
|
368
370
|
const canDownloadCsv: PropTypes.Requireable<boolean>;
|
|
369
371
|
const frozenColumns: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
370
372
|
const theme: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
373
|
+
const canToggleSearch: PropTypes.Requireable<boolean>;
|
|
371
374
|
}
|
|
372
375
|
namespace defaultProps {
|
|
373
376
|
const children_1: null;
|
|
@@ -416,7 +419,7 @@ export namespace IrisGrid {
|
|
|
416
419
|
export { selectDistinctColumns_1 as selectDistinctColumns };
|
|
417
420
|
const sorts_1: never[];
|
|
418
421
|
export { sorts_1 as sorts };
|
|
419
|
-
const reverseType_1:
|
|
422
|
+
const reverseType_1: "none";
|
|
420
423
|
export { reverseType_1 as reverseType };
|
|
421
424
|
const customColumns_1: never[];
|
|
422
425
|
export { customColumns_1 as customColumns };
|
|
@@ -467,6 +470,12 @@ export namespace IrisGrid {
|
|
|
467
470
|
const showTimeZone: boolean;
|
|
468
471
|
const showTSeparator: boolean;
|
|
469
472
|
const formatter: never[];
|
|
473
|
+
const decimalFormatOptions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
474
|
+
defaultFormatString: PropTypes.Requireable<string>;
|
|
475
|
+
}>>;
|
|
476
|
+
const integerFormatOptions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
477
|
+
defaultFormatString: PropTypes.Requireable<string>;
|
|
478
|
+
}>>;
|
|
470
479
|
}
|
|
471
480
|
export { settings_1 as settings };
|
|
472
481
|
const canCopy_1: boolean;
|
|
@@ -477,6 +486,8 @@ export namespace IrisGrid {
|
|
|
477
486
|
export { frozenColumns_1 as frozenColumns };
|
|
478
487
|
const theme_1: {};
|
|
479
488
|
export { theme_1 as theme };
|
|
489
|
+
const canToggleSearch_1: boolean;
|
|
490
|
+
export { canToggleSearch_1 as canToggleSearch };
|
|
480
491
|
}
|
|
481
492
|
}
|
|
482
493
|
export default IrisGrid;
|
package/dist/IrisGrid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IrisGrid.d.ts","sourceRoot":"","sources":["../src/IrisGrid.jsx"],"names":[],"mappings":"AAiHA;IACE,2BAAyB;IAEzB,2BAAyB;IAEzB,mCAAiC;IAEjC,
|
|
1
|
+
{"version":3,"file":"IrisGrid.d.ts","sourceRoot":"","sources":["../src/IrisGrid.jsx"],"names":[],"mappings":"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"}
|
package/dist/IrisGrid.js
CHANGED
|
@@ -97,7 +97,7 @@ export class IrisGrid extends Component {
|
|
|
97
97
|
max: 50
|
|
98
98
|
}));
|
|
99
99
|
|
|
100
|
-
_defineProperty(this, "getCachedOptionItems", memoize((isChartBuilderAvailable, isCustomColumnsAvailable, isRollupAvailable, isTotalsAvailable, isSelectDistinctAvailable, isExportAvailable, toggleFilterBarAction, toggleSearchBarAction, isFilterBarShown, showSearchBar, canDownloadCsv) => {
|
|
100
|
+
_defineProperty(this, "getCachedOptionItems", memoize((isChartBuilderAvailable, isCustomColumnsAvailable, isRollupAvailable, isTotalsAvailable, isSelectDistinctAvailable, isExportAvailable, toggleFilterBarAction, toggleSearchBarAction, isFilterBarShown, showSearchBar, canDownloadCsv, canToggleSearch) => {
|
|
101
101
|
var optionItems = [];
|
|
102
102
|
|
|
103
103
|
if (isChartBuilderAvailable) {
|
|
@@ -167,14 +167,18 @@ export class IrisGrid extends Component {
|
|
|
167
167
|
isOn: isFilterBarShown,
|
|
168
168
|
onChange: toggleFilterBarAction.action
|
|
169
169
|
});
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
|
|
171
|
+
if (canToggleSearch) {
|
|
172
|
+
optionItems.push({
|
|
173
|
+
type: OptionType.SEARCH_BAR,
|
|
174
|
+
title: 'Search Bar',
|
|
175
|
+
subtitle: toggleSearchBarAction.shortcut.getDisplayText(),
|
|
176
|
+
icon: vsSearch,
|
|
177
|
+
isOn: showSearchBar,
|
|
178
|
+
onChange: toggleSearchBarAction.action
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
178
182
|
return optionItems;
|
|
179
183
|
}, {
|
|
180
184
|
max: 1
|
|
@@ -341,7 +345,9 @@ export class IrisGrid extends Component {
|
|
|
341
345
|
this.tooltip = null;
|
|
342
346
|
this.pending = new Pending();
|
|
343
347
|
this.globalColumnFormats = [];
|
|
344
|
-
this.dateTimeFormatterOptions = {};
|
|
348
|
+
this.dateTimeFormatterOptions = {};
|
|
349
|
+
this.decimalFormatOptions = {};
|
|
350
|
+
this.integerFormatOptions = {}; // When the loading scrim started/when it should extend to the end of the screen.
|
|
345
351
|
|
|
346
352
|
this.loadingScrimStartTime = null;
|
|
347
353
|
this.loadingScrimFinishTime = null;
|
|
@@ -962,12 +968,20 @@ export class IrisGrid extends Component {
|
|
|
962
968
|
var forceUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
963
969
|
var globalColumnFormats = FormatterUtils.getColumnFormats(settings);
|
|
964
970
|
var dateTimeFormatterOptions = FormatterUtils.getDateTimeFormatterOptions(settings);
|
|
971
|
+
var {
|
|
972
|
+
defaultDecimalFormatOptions = {},
|
|
973
|
+
defaultIntegerFormatOptions = {}
|
|
974
|
+
} = settings;
|
|
965
975
|
var isColumnFormatChanged = !deepEqual(this.globalColumnFormats, globalColumnFormats);
|
|
966
976
|
var isDateFormattingChanged = !deepEqual(this.dateTimeFormatterOptions, dateTimeFormatterOptions);
|
|
977
|
+
var isDecimalFormattingChanged = !deepEqual(this.decimalFormatOptions, defaultDecimalFormatOptions);
|
|
978
|
+
var isIntegerFormattingChanged = !deepEqual(this.integerFormatOptions, defaultIntegerFormatOptions);
|
|
967
979
|
|
|
968
|
-
if (isColumnFormatChanged || isDateFormattingChanged) {
|
|
980
|
+
if (isColumnFormatChanged || isDateFormattingChanged || isDecimalFormattingChanged || isIntegerFormattingChanged) {
|
|
969
981
|
this.globalColumnFormats = globalColumnFormats;
|
|
970
982
|
this.dateTimeFormatterOptions = dateTimeFormatterOptions;
|
|
983
|
+
this.decimalFormatOptions = defaultDecimalFormatOptions;
|
|
984
|
+
this.integerFormatOptions = defaultIntegerFormatOptions;
|
|
971
985
|
this.updateFormatter({}, forceUpdate);
|
|
972
986
|
|
|
973
987
|
if (isDateFormattingChanged && forceUpdate) {
|
|
@@ -987,7 +1001,7 @@ export class IrisGrid extends Component {
|
|
|
987
1001
|
}, updatedFormats);
|
|
988
1002
|
|
|
989
1003
|
var mergedColumnFormats = [...this.globalColumnFormats, ...update.customColumnFormatMap.values()];
|
|
990
|
-
var formatter = new Formatter(mergedColumnFormats, this.dateTimeFormatterOptions);
|
|
1004
|
+
var formatter = new Formatter(mergedColumnFormats, this.dateTimeFormatterOptions, this.decimalFormatOptions, this.integerFormatOptions);
|
|
991
1005
|
log.debug('updateFormatter', this.globalColumnFormats, mergedColumnFormats);
|
|
992
1006
|
this.setState(_objectSpread(_objectSpread({}, update), {}, {
|
|
993
1007
|
formatter
|
|
@@ -1576,6 +1590,10 @@ export class IrisGrid extends Component {
|
|
|
1576
1590
|
var {
|
|
1577
1591
|
showSearchBar
|
|
1578
1592
|
} = this.state;
|
|
1593
|
+
var {
|
|
1594
|
+
canToggleSearch
|
|
1595
|
+
} = this.props;
|
|
1596
|
+
if (!canToggleSearch) return;
|
|
1579
1597
|
var update = !showSearchBar;
|
|
1580
1598
|
this.setState({
|
|
1581
1599
|
showSearchBar: update
|
|
@@ -2371,7 +2389,8 @@ export class IrisGrid extends Component {
|
|
|
2371
2389
|
alwaysFetchColumns,
|
|
2372
2390
|
advancedSettings,
|
|
2373
2391
|
onAdvancedSettingsChange,
|
|
2374
|
-
canDownloadCsv
|
|
2392
|
+
canDownloadCsv,
|
|
2393
|
+
canToggleSearch
|
|
2375
2394
|
} = this.props;
|
|
2376
2395
|
var {
|
|
2377
2396
|
metricCalculator,
|
|
@@ -2798,7 +2817,7 @@ export class IrisGrid extends Component {
|
|
|
2798
2817
|
}
|
|
2799
2818
|
}
|
|
2800
2819
|
|
|
2801
|
-
var optionItems = this.getCachedOptionItems(model.isChartBuilderAvailable, model.isCustomColumnsAvailable, model.isRollupAvailable, model.isTotalsAvailable, model.isSelectDistinctAvailable, model.isExportAvailable, this.toggleFilterBarAction, this.toggleSearchBarAction, isFilterBarShown, showSearchBar, canDownloadCsv);
|
|
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);
|
|
2802
2821
|
var openOptionsStack = openOptions.map(option => {
|
|
2803
2822
|
switch (option.type) {
|
|
2804
2823
|
case OptionType.CHART_BUILDER:
|
|
@@ -3138,7 +3157,8 @@ IrisGrid.propTypes = {
|
|
|
3138
3157
|
canDownloadCsv: PropTypes.bool,
|
|
3139
3158
|
frozenColumns: PropTypes.arrayOf(PropTypes.string),
|
|
3140
3159
|
// Theme override for IrisGridTheme
|
|
3141
|
-
theme: PropTypes.shape({})
|
|
3160
|
+
theme: PropTypes.shape({}),
|
|
3161
|
+
canToggleSearch: PropTypes.bool
|
|
3142
3162
|
};
|
|
3143
3163
|
IrisGrid.defaultProps = {
|
|
3144
3164
|
children: null,
|
|
@@ -3193,12 +3213,19 @@ IrisGrid.defaultProps = {
|
|
|
3193
3213
|
defaultDateTimeFormat: DateUtils.FULL_DATE_FORMAT,
|
|
3194
3214
|
showTimeZone: false,
|
|
3195
3215
|
showTSeparator: true,
|
|
3196
|
-
formatter: []
|
|
3216
|
+
formatter: [],
|
|
3217
|
+
decimalFormatOptions: PropTypes.shape({
|
|
3218
|
+
defaultFormatString: PropTypes.string
|
|
3219
|
+
}),
|
|
3220
|
+
integerFormatOptions: PropTypes.shape({
|
|
3221
|
+
defaultFormatString: PropTypes.string
|
|
3222
|
+
})
|
|
3197
3223
|
},
|
|
3198
3224
|
canCopy: true,
|
|
3199
3225
|
canDownloadCsv: true,
|
|
3200
3226
|
frozenColumns: null,
|
|
3201
|
-
theme: {}
|
|
3227
|
+
theme: {},
|
|
3228
|
+
canToggleSearch: true
|
|
3202
3229
|
};
|
|
3203
3230
|
export default IrisGrid;
|
|
3204
3231
|
//# sourceMappingURL=IrisGrid.js.map
|