@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.
Files changed (139) hide show
  1. package/dist/AdvancedFilterCreator.d.ts +2 -2
  2. package/dist/AdvancedFilterCreator.d.ts.map +1 -1
  3. package/dist/AdvancedFilterCreatorFilterItem.d.ts +30 -31
  4. package/dist/AdvancedFilterCreatorFilterItem.d.ts.map +1 -1
  5. package/dist/AdvancedFilterCreatorFilterItem.js +21 -28
  6. package/dist/AdvancedFilterCreatorFilterItem.js.map +1 -1
  7. package/dist/AdvancedFilterCreatorSelectValueList.d.ts +1 -1
  8. package/dist/CrossColumnSearch.d.ts +1 -1
  9. package/dist/CrossColumnSearch.d.ts.map +1 -1
  10. package/dist/DateUtils.d.ts +46 -44
  11. package/dist/DateUtils.d.ts.map +1 -1
  12. package/dist/DateUtils.js +37 -32
  13. package/dist/DateUtils.js.map +1 -1
  14. package/dist/Formatter.d.ts +37 -42
  15. package/dist/Formatter.d.ts.map +1 -1
  16. package/dist/Formatter.js +58 -38
  17. package/dist/Formatter.js.map +1 -1
  18. package/dist/FormatterUtils.d.ts +12 -8
  19. package/dist/FormatterUtils.d.ts.map +1 -1
  20. package/dist/FormatterUtils.js.map +1 -1
  21. package/dist/IrisGrid.d.ts +23 -12
  22. package/dist/IrisGrid.d.ts.map +1 -1
  23. package/dist/IrisGrid.js +44 -17
  24. package/dist/IrisGrid.js.map +1 -1
  25. package/dist/IrisGridMetricCalculator.d.ts +16 -2
  26. package/dist/IrisGridMetricCalculator.d.ts.map +1 -1
  27. package/dist/IrisGridMetricCalculator.js +4 -3
  28. package/dist/IrisGridMetricCalculator.js.map +1 -1
  29. package/dist/IrisGridModel.d.ts +23 -23
  30. package/dist/IrisGridModel.d.ts.map +1 -1
  31. package/dist/IrisGridModelFactory.d.ts +1 -1
  32. package/dist/IrisGridModelFactory.d.ts.map +1 -1
  33. package/dist/IrisGridProxyModel.d.ts +2 -2
  34. package/dist/IrisGridProxyModel.d.ts.map +1 -1
  35. package/dist/IrisGridTableModel.d.ts +5 -5
  36. package/dist/IrisGridTableModel.d.ts.map +1 -1
  37. package/dist/IrisGridTestUtils.d.ts +1 -1
  38. package/dist/IrisGridTestUtils.d.ts.map +1 -1
  39. package/dist/IrisGridTheme.d.ts +5 -75
  40. package/dist/IrisGridTheme.d.ts.map +1 -1
  41. package/dist/IrisGridTheme.js +2 -1
  42. package/dist/IrisGridTheme.js.map +1 -1
  43. package/dist/IrisGridUtils.d.ts +28 -28
  44. package/dist/IrisGridUtils.d.ts.map +1 -1
  45. package/dist/MissingKeyError.js +4 -0
  46. package/dist/MissingKeyError.js.map +1 -1
  47. package/dist/PartitionSelectorSearch.d.ts +1 -1
  48. package/dist/TableUtils.d.ts +127 -114
  49. package/dist/TableUtils.d.ts.map +1 -1
  50. package/dist/TableUtils.js +76 -69
  51. package/dist/TableUtils.js.map +1 -1
  52. package/dist/declaration.d.js +2 -0
  53. package/dist/declaration.d.js.map +1 -0
  54. package/dist/filters/FilterOperator.d.ts +5 -5
  55. package/dist/filters/FilterOperator.d.ts.map +1 -1
  56. package/dist/filters/FilterOperator.js +1 -3
  57. package/dist/filters/FilterOperator.js.map +1 -1
  58. package/dist/filters/FilterType.d.ts +23 -23
  59. package/dist/filters/FilterType.d.ts.map +1 -1
  60. package/dist/filters/FilterType.js +1 -3
  61. package/dist/filters/FilterType.js.map +1 -1
  62. package/dist/filters/index.d.ts +2 -2
  63. package/dist/filters/index.d.ts.map +1 -1
  64. package/dist/filters/index.js +2 -2
  65. package/dist/filters/index.js.map +1 -1
  66. package/dist/format-context-menus/CustomFormatAction.d.ts +27 -39
  67. package/dist/format-context-menus/CustomFormatAction.d.ts.map +1 -1
  68. package/dist/format-context-menus/CustomFormatAction.js +24 -23
  69. package/dist/format-context-menus/CustomFormatAction.js.map +1 -1
  70. package/dist/format-context-menus/DateTimeFormatContextMenu.d.ts +8 -5
  71. package/dist/format-context-menus/DateTimeFormatContextMenu.d.ts.map +1 -1
  72. package/dist/format-context-menus/DateTimeFormatContextMenu.js +3 -3
  73. package/dist/format-context-menus/DateTimeFormatContextMenu.js.map +1 -1
  74. package/dist/format-context-menus/DecimalFormatContextMenu.d.ts +7 -5
  75. package/dist/format-context-menus/DecimalFormatContextMenu.d.ts.map +1 -1
  76. package/dist/format-context-menus/DecimalFormatContextMenu.js +3 -3
  77. package/dist/format-context-menus/DecimalFormatContextMenu.js.map +1 -1
  78. package/dist/format-context-menus/FormatContextMenuUtils.d.ts +28 -27
  79. package/dist/format-context-menus/FormatContextMenuUtils.d.ts.map +1 -1
  80. package/dist/format-context-menus/FormatContextMenuUtils.js +12 -10
  81. package/dist/format-context-menus/FormatContextMenuUtils.js.map +1 -1
  82. package/dist/format-context-menus/IntegerFormatContextMenu.d.ts +7 -5
  83. package/dist/format-context-menus/IntegerFormatContextMenu.d.ts.map +1 -1
  84. package/dist/format-context-menus/IntegerFormatContextMenu.js +3 -3
  85. package/dist/format-context-menus/IntegerFormatContextMenu.js.map +1 -1
  86. package/dist/format-context-menus/index.d.ts +3 -3
  87. package/dist/format-context-menus/index.d.ts.map +1 -1
  88. package/dist/format-context-menus/index.js.map +1 -1
  89. package/dist/formatters/BooleanColumnFormatter.d.ts +4 -4
  90. package/dist/formatters/BooleanColumnFormatter.d.ts.map +1 -1
  91. package/dist/formatters/BooleanColumnFormatter.js.map +1 -1
  92. package/dist/formatters/CharColumnFormatter.d.ts +4 -4
  93. package/dist/formatters/CharColumnFormatter.d.ts.map +1 -1
  94. package/dist/formatters/CharColumnFormatter.js.map +1 -1
  95. package/dist/formatters/DateTimeColumnFormatter.d.ts +13 -11
  96. package/dist/formatters/DateTimeColumnFormatter.d.ts.map +1 -1
  97. package/dist/formatters/DateTimeColumnFormatter.js +12 -2
  98. package/dist/formatters/DateTimeColumnFormatter.js.map +1 -1
  99. package/dist/formatters/DecimalColumnFormatter.d.ts +55 -59
  100. package/dist/formatters/DecimalColumnFormatter.d.ts.map +1 -1
  101. package/dist/formatters/DecimalColumnFormatter.js +66 -27
  102. package/dist/formatters/DecimalColumnFormatter.js.map +1 -1
  103. package/dist/formatters/DefaultColumnFormatter.d.ts +4 -4
  104. package/dist/formatters/DefaultColumnFormatter.d.ts.map +1 -1
  105. package/dist/formatters/DefaultColumnFormatter.js.map +1 -1
  106. package/dist/formatters/IntegerColumnFormatter.d.ts +50 -29
  107. package/dist/formatters/IntegerColumnFormatter.d.ts.map +1 -1
  108. package/dist/formatters/IntegerColumnFormatter.js +60 -19
  109. package/dist/formatters/IntegerColumnFormatter.js.map +1 -1
  110. package/dist/formatters/index.d.ts +8 -7
  111. package/dist/formatters/index.d.ts.map +1 -1
  112. package/dist/formatters/index.js +4 -3
  113. package/dist/formatters/index.js.map +1 -1
  114. package/dist/index.d.ts +14 -11
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +1 -0
  117. package/dist/index.js.map +1 -1
  118. package/dist/key-handlers/ClearFilterKeyHandler.js +5 -0
  119. package/dist/key-handlers/ClearFilterKeyHandler.js.map +1 -1
  120. package/dist/key-handlers/CopyKeyHandler.js +5 -0
  121. package/dist/key-handlers/CopyKeyHandler.js.map +1 -1
  122. package/dist/key-handlers/ReverseKeyHandler.js +5 -0
  123. package/dist/key-handlers/ReverseKeyHandler.js.map +1 -1
  124. package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts +17 -8
  125. package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts.map +1 -1
  126. package/dist/sidebar/ChartBuilder.d.ts +1 -1
  127. package/dist/sidebar/ChartBuilder.d.ts.map +1 -1
  128. package/dist/sidebar/TableCsvExporter.d.ts +1 -1
  129. package/dist/sidebar/TableCsvExporter.d.ts.map +1 -1
  130. package/dist/sidebar/VisibilityOrderingBuilder.d.ts +1 -1
  131. package/dist/sidebar/VisibilityOrderingBuilder.d.ts.map +1 -1
  132. package/dist/sidebar/aggregations/AggregationEdit.d.ts +2 -4
  133. package/dist/sidebar/aggregations/AggregationEdit.d.ts.map +1 -1
  134. package/dist/sidebar/aggregations/AggregationEdit.js.map +1 -1
  135. package/dist/sidebar/aggregations/AggregationUtils.d.ts +1 -4
  136. package/dist/sidebar/aggregations/AggregationUtils.d.ts.map +1 -1
  137. package/dist/sidebar/aggregations/AggregationUtils.js.map +1 -1
  138. package/package.json +12 -13
  139. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -6,20 +6,20 @@ declare class IrisGridUtils {
6
6
  * @param {Object} gridState The state of the Grid to export
7
7
  * @returns {Object} An object that can be stringified and imported with {{@link hydrateGridState}}
8
8
  */
9
- static dehydrateGridState(model: any, gridState: Object): Object;
9
+ static dehydrateGridState(model: IrisGridModel, gridState: Object): Object;
10
10
  /**
11
11
  * Import a state for Grid that was exported with {{@link dehydrateGridState}}
12
12
  * @param {IrisGridModel} model The table model to import the state for
13
13
  * @param {Object} gridState The state of the panel that was saved
14
14
  * @returns {Object} The gridState props to set on the Grid
15
15
  */
16
- static hydrateGridState(model: any, gridState: Object, customColumns?: any[]): Object;
16
+ static hydrateGridState(model: IrisGridModel, gridState: Object, customColumns?: any[]): Object;
17
17
  /**
18
18
  * Exports the state from IrisGrid to a JSON stringifiable object
19
19
  * @param {IrisGridModel} model The table model to export the state for
20
20
  * @param {Object} irisGridState The current state of the IrisGrid
21
21
  */
22
- static dehydrateIrisGridState(model: any, irisGridState: Object): {
22
+ static dehydrateIrisGridState(model: IrisGridModel, irisGridState: Object): {
23
23
  advancedFilters: Object;
24
24
  advancedSettings: any[];
25
25
  aggregationSettings: any;
@@ -45,14 +45,14 @@ declare class IrisGridUtils {
45
45
  * @param {IrisGridModel} model The table model to import the state with
46
46
  * @param {Object} irisGridState The saved IrisGrid state
47
47
  */
48
- static hydrateIrisGridState(model: any, irisGridState: Object): {
49
- advancedFilters: any[];
48
+ static hydrateIrisGridState(model: IrisGridModel, irisGridState: Object): {
49
+ advancedFilters: AdvancedFilter[];
50
50
  advancedSettings: Map<any, any>;
51
51
  aggregationSettings: any;
52
52
  customColumnFormatMap: Map<any, any>;
53
53
  isFilterBarShown: any;
54
- quickFilters: any[];
55
- sorts: any[];
54
+ quickFilters: QuickFilter[];
55
+ sorts: dh.Sort[];
56
56
  userColumnWidths: Map<any, any>;
57
57
  customColumns: any;
58
58
  userRowHeights: Map<any, any>;
@@ -72,20 +72,20 @@ declare class IrisGridUtils {
72
72
  * @param {Object} irisGridPanelState The current IrisGridPanel state
73
73
  * @returns {Object} The dehydrated IrisGridPanel state
74
74
  */
75
- static dehydrateIrisGridPanelState(model: any, irisGridPanelState: Object): Object;
75
+ static dehydrateIrisGridPanelState(model: IrisGridModel, irisGridPanelState: Object): Object;
76
76
  /**
77
77
  * Import the saved IrisGridPanel state.
78
78
  * @param {IrisGridModel} model The model the state is being hydrated with
79
79
  * @param {Object} irisGridPanelState Exported IrisGridPanel state
80
80
  * @returns {Object} The state to apply to the IrisGridPanel
81
81
  */
82
- static hydrateIrisGridPanelState(model: any, irisGridPanelState: Object): Object;
82
+ static hydrateIrisGridPanelState(model: IrisGridModel, irisGridPanelState: Object): Object;
83
83
  /**
84
84
  * Export the quick filters to JSON striginfiable object
85
85
  * @param {AdvancedFilter[]} quickFilters The quick filters to dehydrate
86
86
  * @returns {Object} The dehydrated quick filters
87
87
  */
88
- static dehydrateQuickFilters(quickFilters: any[]): Object;
88
+ static dehydrateQuickFilters(quickFilters: AdvancedFilter[]): Object;
89
89
  /**
90
90
  * Import the saved quick filters to apply to the columns. Does not actually apply the filters.
91
91
  * @param {dh.Column[]} columns The columns the filters will be applied to
@@ -93,14 +93,14 @@ declare class IrisGridUtils {
93
93
  * @param {string} timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
94
94
  * @returns {QuickFilter[]} The quick filters to apply to the columns
95
95
  */
96
- static hydrateQuickFilters(columns: any[], savedQuickFilters: Object[], timeZone: string): any[];
96
+ static hydrateQuickFilters(columns: dh.Column[], savedQuickFilters: Object[], timeZone: string): QuickFilter[];
97
97
  /**
98
98
  * Export the advanced filters from the provided columns to JSON striginfiable object
99
99
  * @param {dh.Column[]} columns The columns for the filters
100
100
  * @param {AdvancedFilter[]} advancedFilters The advanced filters to dehydrate
101
101
  * @returns {Object} The dehydrated advanced filters
102
102
  */
103
- static dehydrateAdvancedFilters(columns: any[], advancedFilters: any[]): Object;
103
+ static dehydrateAdvancedFilters(columns: dh.Column[], advancedFilters: AdvancedFilter[]): Object;
104
104
  /**
105
105
  * Import the saved advanced filters to apply to the columns. Does not actually apply the filters.
106
106
  * @param {dh.Columns[]} columns The columns the filters will be applied to
@@ -108,7 +108,7 @@ declare class IrisGridUtils {
108
108
  * @param {string} timeZone The time zone to make this filter in if it is a date type. E.g. America/New_York
109
109
  * @returns {AdvancedFilter[]} The advanced filters to apply to the columns
110
110
  */
111
- static hydrateAdvancedFilters(columns: any[], savedAdvancedFilters: Object[], timeZone: string): any[];
111
+ static hydrateAdvancedFilters(columns: dh.Columns[], savedAdvancedFilters: Object[], timeZone: string): AdvancedFilter[];
112
112
  static dehydrateAdvancedFilterOptions(column: any, options: any): any;
113
113
  static hydrateAdvancedFilterOptions(column: any, options: any): any;
114
114
  static dehydratePendingDataMap(columns: any, pendingDataMap: any): any[][];
@@ -118,30 +118,30 @@ declare class IrisGridUtils {
118
118
  * @param {Any} value The value to dehydrate
119
119
  * @param {String} columnType The column type
120
120
  */
121
- static dehydrateValue(value: any, columnType: string): any;
121
+ static dehydrateValue(value: Any, columnType: string): any;
122
122
  /**
123
123
  * Hydrate a value from it's serialized state
124
124
  * @param {Any} value The dehydrated value that needs to be hydrated
125
125
  * @param {String} columnType The type of column
126
126
  */
127
- static hydrateValue(value: any, columnType: string): any;
128
- static dehydrateDateTime(value: any): any;
129
- static hydrateDateTime(value: any): any;
127
+ static hydrateValue(value: Any, columnType: string): any;
128
+ static dehydrateDateTime(value: any): string | null;
129
+ static hydrateDateTime(value: any): import("@deephaven/jsapi-shim").DateWrapper | null;
130
130
  static dehydrateLong(value: any): string | null;
131
- static hydrateLong(value: any): any;
131
+ static hydrateLong(value: any): import("@deephaven/jsapi-shim").LongWrapper | null;
132
132
  /**
133
133
  * Export the sorts from the provided table sorts to JSON stringifiable object
134
134
  * @param {dh.Sort[]} sorts The table sorts
135
135
  * @returns {Object} The dehydrated sorts
136
136
  */
137
- static dehydrateSort(sorts: any[]): Object;
137
+ static dehydrateSort(sorts: dh.Sort[]): Object;
138
138
  /**
139
139
  * Import the saved sorts to apply to the table. Does not actually apply the sort.
140
140
  * @param {dh.Column[]} columns The columns the sorts will be applied to
141
141
  * @param {Object[]} sorts Exported sort definitions
142
142
  * @returns {dh.Sort[]} The sorts to apply to the table
143
143
  */
144
- static hydrateSort(columns: any[], sorts: Object[]): any[];
144
+ static hydrateSort(columns: dh.Column[], sorts: Object[]): dh.Sort[];
145
145
  /**
146
146
  * Pulls just the table settings from the panel state, eg. filters/sorts
147
147
  * @param {Object} panelState The dehydrated panel state
@@ -154,9 +154,9 @@ declare class IrisGridUtils {
154
154
  * @param {Object} tableSettings Dehydrated table settings extracted with `extractTableSettings`
155
155
  * @param {string} timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
156
156
  */
157
- static applyTableSettings(table: any, tableSettings: Object, timeZone: string): void;
157
+ static applyTableSettings(table: dh.Table, tableSettings: Object, timeZone: string): void;
158
158
  static getInputFiltersForColumns(columns: any, inputFilters?: any[]): any[];
159
- static getFiltersFromInputFilters(columns: any, inputFilters: any[] | undefined, timeZone: any): any[];
159
+ static getFiltersFromInputFilters(columns: any, inputFilters: any[] | undefined, timeZone: any): (import("@deephaven/jsapi-shim").FilterCondition | null)[];
160
160
  static getFiltersFromFilterMap(filterMap: any): any[];
161
161
  /**
162
162
  * Get array of hidden column indexes
@@ -182,7 +182,7 @@ declare class IrisGridUtils {
182
182
  * @param {GridRange[]} ranges The ranges to get the range set for
183
183
  * @returns {dh.RangeSet} The rangeset for the provided ranges
184
184
  */
185
- static rangeSetFromRanges(ranges: any[]): any;
185
+ static rangeSetFromRanges(ranges: GridRange[]): dh.RangeSet;
186
186
  /**
187
187
  * Validate whether the ranges passed in are valid to take a snapshot from.
188
188
  * Multiple selections are valid if all of the selected rows have the same columns selected.
@@ -190,7 +190,7 @@ declare class IrisGridUtils {
190
190
  * @param {GridRange[]} ranges The ranges to validate
191
191
  * @returns {boolean} True if the ranges are valid, false otherwise
192
192
  */
193
- static isValidSnapshotRanges(ranges: any[]): boolean;
193
+ static isValidSnapshotRanges(ranges: GridRange[]): boolean;
194
194
  /**
195
195
  * Check if the provided value is a valid table index
196
196
  * @param {any} value A value to check if it's a valid table index
@@ -202,13 +202,13 @@ declare class IrisGridUtils {
202
202
  * @param {dh.Column[]} allColumns All the columns to pull from
203
203
  * @returns {dh.Column[]} The columns selected in the range
204
204
  */
205
- static columnsFromRanges(ranges: any[], allColumns: any[]): any[];
205
+ static columnsFromRanges(ranges: GridRange[], allColumns: dh.Column[]): dh.Column[];
206
206
  /**
207
207
  * Transforms an iris data snapshot into a simple data matrix
208
208
  * @param {dh.TableData} data The Iris formatted table data
209
209
  * @returns {unknown[][]} A matrix of the values of the data
210
210
  */
211
- static snapshotDataToMatrix(data: any): unknown[][];
211
+ static snapshotDataToMatrix(data: dh.TableData): unknown[][];
212
212
  /**
213
213
  * Hydrate model rollup config
214
214
  * @param {Array} originalColumns Original model columns
@@ -228,12 +228,12 @@ declare class IrisGridUtils {
228
228
  * @param {dh.Columns[]} columns The columns to get the column from
229
229
  * @param {Number} columnIndex The column index to get
230
230
  */
231
- static getColumn(columns: any[], columnIndex: number): any;
231
+ static getColumn(columns: dh.Columns[], columnIndex: number): any;
232
232
  /**
233
233
  * Retrieves a column from the provided array matching the name, or `null` and logs an error if not found
234
234
  * @param {dh.Column[]} columns The columns to get the column from
235
235
  * @param {String} columnName The column name to retrieve
236
236
  */
237
- static getColumnByName(columns: any[], columnName: string): any;
237
+ static getColumnByName(columns: dh.Column[], columnName: string): any;
238
238
  }
239
239
  //# sourceMappingURL=IrisGridUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IrisGridUtils.d.ts","sourceRoot":"","sources":["../src/IrisGridUtils.js"],"names":[],"mappings":";AAWA;IACE;;;;;OAKG;IACH,iDAHW,MAAM,GACJ,MAAM,CAkBlB;IAED;;;;;OAKG;IACH,+CAHW,MAAM,0BACJ,MAAM,CAsClB;IAED;;;;OAIG;IACH,yDAFW,MAAM;;;;;;;;;;;;;;;;;;;;MA4DhB;IAED;;;;OAIG;IACH,uDAFW,MAAM;;;;;;;;;;;;;;;;;;;;MAwEhB;IAED;;;;;OAKG;IACH,mEAHW,MAAM,GACJ,MAAM,CAclB;IAED;;;;;OAKG;IACH,iEAHW,MAAM,GACJ,MAAM,CAkBlB;IAED;;;;OAIG;IACH,2CAHW,KAAgB,GACd,MAAM,CAOlB;IAED;;;;;;OAMG;IACH,oCALW,KAAW,qBACX,MAAM,EAAE,YACR,MAAM,GACJ,KAAa,CAsBzB;IAED;;;;;OAKG;IACH,yCAJW,KAAW,mBACX,KAAgB,GACd,MAAM,CAUlB;IAED;;;;;;OAMG;IACH,uCALW,KAAY,wBACZ,MAAM,EAAE,YACR,MAAM,GACJ,KAAgB,CAyB5B;IAED,sEAQC;IAED,oEAQC;IAED,2EAUC;IAED,+EA4BC;IAED;;;;OAIG;IACH,2DAUC;IAED;;;;OAIG;IACH,yDAUC;IAED,0CAIC;IAED,wCAIC;IAED,gDAEC;IAED,oCAEC;IAED;;;;OAIG;IACH,4BAHW,KAAS,GACP,MAAM,CAWlB;IAED;;;;;OAKG;IACH,4BAJW,KAAW,SACX,MAAM,EAAE,GACN,KAAS,CAkCrB;IAED;;;;OAIG;IACH,wCAHW,MAAM,yBACJ,MAAM,CAelB;IAED;;;;;OAKG;IACH,qDAHW,MAAM,YACN,MAAM,QA2ChB;IAED,4EAOC;IAED,uGAmBC;IAED,sDAaC;IAED;;;;OAIG;IACH,0DAFa,MAAM,EAAE,CAMpB;IAED,uDAEC;IAED,mFAUC;IAED,+DAEC;IAED,kGAOC;IAED,qGAmDC;IAED,wGAOC;IAED,wHAmBC;IAED,2HAqBC;IAED,2HAqBC;IAED,sGAaC;IAED,qLA2CC;IAED;;;;;;OAMG;IACH,kCAHW,KAAW,OAYrB;IAED;;;;;;OAMG;IACH,qCAHW,KAAW,GACT,OAAO,CA6BnB;IAED;;;OAGG;IACH,2BAFW,GAAG,WAIb;IAED;;;;;OAKG;IACH,iCAJW,KAAW,cACX,KAAW,GACT,KAAW,CAuBvB;IAED;;;;OAIG;IACH,wCAFa,OAAO,EAAE,EAAE,CAgBvB;IAED;;;;;;OAMG;IACH,4DAJW,MAAM,uBACN,MAAM,GACJ,MAAM,CA2DlB;IAED;;;OAGG;IACH,sEAaC;IAED;;;;;OAKG;IACH,0BAHW,KAAY,4BAWtB;IAED;;;;OAIG;IACH,gCAHW,KAAW,2BAcrB;CACF"}
1
+ {"version":3,"file":"IrisGridUtils.d.ts","sourceRoot":"","sources":["../src/IrisGridUtils.js"],"names":[],"mappings":";AAWA;IACE;;;;;OAKG;IACH,2DAHW,MAAM,GACJ,MAAM,CAkBlB;IAED;;;;;OAKG;IACH,yDAHW,MAAM,0BACJ,MAAM,CAsClB;IAED;;;;OAIG;IACH,mEAFW,MAAM;;;;;;;;;;;;;;;;;;;;MA4DhB;IAED;;;;OAIG;IACH,iEAFW,MAAM;;;;;;;;;;;;;;;;;;;;MAwEhB;IAED;;;;;OAKG;IACH,6EAHW,MAAM,GACJ,MAAM,CAclB;IAED;;;;;OAKG;IACH,2EAHW,MAAM,GACJ,MAAM,CAkBlB;IAED;;;;OAIG;IACH,2CAHW,gBAAgB,GACd,MAAM,CAOlB;IAED;;;;;;OAMG;IACH,oCALW,WAAW,qBACX,MAAM,EAAE,YACR,MAAM,GACJ,aAAa,CAsBzB;IAED;;;;;OAKG;IACH,yCAJW,WAAW,mBACX,gBAAgB,GACd,MAAM,CAUlB;IAED;;;;;;OAMG;IACH,uCALW,YAAY,wBACZ,MAAM,EAAE,YACR,MAAM,GACJ,gBAAgB,CAyB5B;IAED,sEAQC;IAED,oEAQC;IAED,2EAUC;IAED,+EA4BC;IAED;;;;OAIG;IACH,2DAUC;IAED;;;;OAIG;IACH,yDAUC;IAED,oDAIC;IAED,uFAIC;IAED,gDAEC;IAED,mFAEC;IAED;;;;OAIG;IACH,4BAHW,SAAS,GACP,MAAM,CAWlB;IAED;;;;;OAKG;IACH,4BAJW,WAAW,SACX,MAAM,EAAE,GACN,SAAS,CAkCrB;IAED;;;;OAIG;IACH,wCAHW,MAAM,yBACJ,MAAM,CAelB;IAED;;;;;OAKG;IACH,0DAHW,MAAM,YACN,MAAM,QA2ChB;IAED,4EAOC;IAED,4JAmBC;IAED,sDAaC;IAED;;;;OAIG;IACH,0DAFa,MAAM,EAAE,CAMpB;IAED,uDAEC;IAED,mFAUC;IAED,+DAEC;IAED,kGAOC;IAED,qGAmDC;IAED,wGAOC;IAED,wHAmBC;IAED,2HAqBC;IAED,2HAqBC;IAED,sGAaC;IAED,qLA2CC;IAED;;;;;;OAMG;IACH,kCAHW,WAAW,eAYrB;IAED;;;;;;OAMG;IACH,qCAHW,WAAW,GACT,OAAO,CA6BnB;IAED;;;OAGG;IACH,2BAFW,GAAG,WAIb;IAED;;;;;OAKG;IACH,iCAJW,WAAW,cACX,WAAW,GACT,WAAW,CAuBvB;IAED;;;;OAIG;IACH,iDAFa,OAAO,EAAE,EAAE,CAgBvB;IAED;;;;;;OAMG;IACH,4DAJW,MAAM,uBACN,MAAM,GACJ,MAAM,CA2DlB;IAED;;;OAGG;IACH,sEAaC;IAED;;;;;OAKG;IACH,0BAHW,YAAY,4BAWtB;IAED;;;;OAIG;IACH,gCAHW,WAAW,2BAcrB;CACF"}
@@ -6,6 +6,10 @@ class MissingKeyError extends Error {
6
6
 
7
7
  _defineProperty(this, "isMissingKey", true);
8
8
 
9
+ _defineProperty(this, "rowIndex", void 0);
10
+
11
+ _defineProperty(this, "columnName", void 0);
12
+
9
13
  this.rowIndex = rowIndex;
10
14
  this.columnName = columnName;
11
15
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/MissingKeyError.ts"],"names":["MissingKeyError","Error","constructor","rowIndex","columnName"],"mappings":";;AAAA,MAAMA,eAAN,SAA8BC,KAA9B,CAAoC;AAOlCC,EAAAA,WAAW,CAACC,QAAD,EAAmBC,UAAnB,EAAuC;AAChD,oBAASA,UAAT,6CAAsDD,QAAQ,GAAG,CAAjE;;AADgD,0CANnC,IAMmC;;AAEhD,SAAKA,QAAL,GAAgBA,QAAhB;AACA,SAAKC,UAAL,GAAkBA,UAAlB;AACD;;AAXiC;;AAcpC,eAAeJ,eAAf","sourcesContent":["class MissingKeyError extends Error {\n isMissingKey = true;\n\n rowIndex: number;\n\n columnName: string;\n\n constructor(rowIndex: number, columnName: string) {\n super(`${columnName} can't be empty (on pending row ${rowIndex + 1})`);\n this.rowIndex = rowIndex;\n this.columnName = columnName;\n }\n}\n\nexport default MissingKeyError;\n"],"file":"MissingKeyError.js"}
1
+ {"version":3,"sources":["../src/MissingKeyError.ts"],"names":["MissingKeyError","Error","constructor","rowIndex","columnName"],"mappings":";;AAAA,MAAMA,eAAN,SAA8BC,KAA9B,CAAoC;AAOlCC,EAAAA,WAAW,CAACC,QAAD,EAAmBC,UAAnB,EAAuC;AAChD,oBAASA,UAAT,6CAAsDD,QAAQ,GAAG,CAAjE;;AADgD,0CANnC,IAMmC;;AAAA;;AAAA;;AAEhD,SAAKA,QAAL,GAAgBA,QAAhB;AACA,SAAKC,UAAL,GAAkBA,UAAlB;AACD;;AAXiC;;AAcpC,eAAeJ,eAAf","sourcesContent":["class MissingKeyError extends Error {\n isMissingKey = true;\n\n rowIndex: number;\n\n columnName: string;\n\n constructor(rowIndex: number, columnName: string) {\n super(`${columnName} can't be empty (on pending row ${rowIndex + 1})`);\n this.rowIndex = rowIndex;\n this.columnName = columnName;\n }\n}\n\nexport default MissingKeyError;\n"],"file":"MissingKeyError.js"}
@@ -49,6 +49,6 @@ declare namespace PartitionSelectorSearch {
49
49
  }
50
50
  }
51
51
  import React from "react";
52
- import { ItemList } from "@deephaven/components/dist/ItemList";
52
+ import { ItemList } from "packages/components/src/ItemList";
53
53
  import PropTypes from "prop-types";
54
54
  //# sourceMappingURL=PartitionSelectorSearch.d.ts.map
@@ -1,176 +1,189 @@
1
- export default TableUtils;
1
+ import { Column, FilterCondition, FilterValue, LongWrapper, Sort, Table, TreeTable } from '@deephaven/jsapi-shim';
2
+ import { CancelablePromise } from '@deephaven/utils';
3
+ import { FilterType, FilterTypeValue, FilterOperatorValue } from './filters';
4
+ import type { AdvancedFilterCreatorFilterItemState } from './AdvancedFilterCreatorFilterItem';
5
+ declare type Values<T> = T[keyof T];
6
+ export declare type DataType = Values<typeof TableUtils.dataType>;
7
+ export declare type SortDirection = Values<typeof TableUtils.sortDirection>;
2
8
  /** Utility class to provide some functions for working with tables */
3
9
  declare class TableUtils {
4
10
  static dataType: {
5
- BOOLEAN: string;
6
- CHAR: string;
7
- DATETIME: string;
8
- DECIMAL: string;
9
- INT: string;
10
- STRING: string;
11
+ readonly BOOLEAN: "boolean";
12
+ readonly CHAR: "char";
13
+ readonly DATETIME: "datetime";
14
+ readonly DECIMAL: "decimal";
15
+ readonly INT: "int";
16
+ readonly STRING: "string";
11
17
  };
12
18
  static sortDirection: {
13
- ascending: string;
14
- descending: string;
15
- reverse: string;
16
- none: null;
19
+ readonly ascending: "ASC";
20
+ readonly descending: "DESC";
21
+ readonly reverse: "REVERSE";
22
+ readonly none: null;
17
23
  };
18
24
  static REVERSE_TYPE: Readonly<{
19
- NONE: string;
20
- PRE_SORT: string;
21
- POST_SORT: string;
25
+ readonly NONE: "none";
26
+ readonly PRE_SORT: "pre-sort";
27
+ readonly POST_SORT: "post-sort";
22
28
  }>;
23
29
  static NUMBER_REGEX: RegExp;
24
- static getSortIndex(sort: any, columnIndex: any): number | null;
30
+ static getSortIndex(sort: Sort[], columnIndex: number): number | null;
25
31
  /**
26
- * @param {dh.Sort[]} tableSort The sorts from the table to get the sort from
27
- * @param {number} columnIndex The index of the column to get the sort for
28
- * @return {dh.Sort} The sort for the column, or null if it's not sorted
32
+ * @param tableSort The sorts from the table to get the sort from
33
+ * @param columnIndex The index of the column to get the sort for
34
+ * @return The sort for the column, or null if it's not sorted
29
35
  */
30
- static getSortForColumn(tableSort: any[], columnIndex: number): any;
31
- static getFilterText(filter: any): any;
36
+ static getSortForColumn(tableSort: Sort[], columnIndex: number): Sort | null;
37
+ static getFilterText(filter: FilterCondition): string | null;
32
38
  /** Return the valid filter types for the column */
33
- static getFilterTypes(columnType: any): string[];
34
- static getNextSort(table: any, columnIndex: any): any;
35
- static makeColumnSort(table: any, columnIndex: any, direction: any, isAbs: any): any;
39
+ static getFilterTypes(columnType: string): FilterType[];
40
+ static getNextSort(table: Table, columnIndex: number): Sort | null;
41
+ static makeColumnSort(table: Table, columnIndex: number, direction: SortDirection, isAbs: boolean): Sort | null;
36
42
  /**
37
43
  * Toggles the sort for the specified column
38
- * @param {array} sorts The current sorts from IrisGrid.state
39
- * @param {dh.Table} table The table to apply the sort to
40
- * @param {number} columnIndex The column index to apply the sort to
41
- * @param {boolean} addToExisting Add this sort to the existing sort
44
+ * @param sorts The current sorts from IrisGrid.state
45
+ * @param table The table to apply the sort to
46
+ * @param columnIndex The column index to apply the sort to
47
+ * @param addToExisting Add this sort to the existing sort
42
48
  */
43
- static toggleSortForColumn(sorts: any, table: any, columnIndex: number, addToExisting?: boolean): any;
44
- static sortColumn(table: any, modelColumn: any, direction: any, isAbs: any, addToExisting: any): any;
49
+ static toggleSortForColumn(sorts: Sort[], table: Table, columnIndex: number, addToExisting?: boolean): Sort[];
50
+ static sortColumn(table: Table, modelColumn: number, direction: SortDirection, isAbs: boolean, addToExisting: boolean): Sort[];
45
51
  /**
46
52
  * Sets the sort for the given column *and* removes any reverses
47
- * @param {dh.Sort[]} tableSort The current sorts from IrisGrid.state
48
- * @param {number} columnIndex The column index to apply the sort to
49
- * @param {dh.Sort} sort The sort object to add
50
- * @param {boolean} addToExisting Add this sort to the existing sort
51
- * @returns {array} Returns the modified array of sorts - removing reverses
52
- */
53
- static setSortForColumn(tableSort: any[], columnIndex: number, sort: any, addToExisting?: boolean): any;
54
- static getNormalizedType(columnType: any): string | null;
55
- static isLongType(columnType: any): boolean;
56
- static isDateType(columnType: any): boolean;
57
- static isNumberType(columnType: any): boolean;
58
- static isIntegerType(columnType: any): boolean;
59
- static isDecimalType(columnType: any): boolean;
60
- static isBooleanType(columnType: any): boolean;
61
- static isCharType(columnType: any): boolean;
62
- static isTextType(columnType: any): boolean;
53
+ * @param tableSort The current sorts from IrisGrid.state
54
+ * @param columnIndex The column index to apply the sort to
55
+ * @param sort The sort object to add
56
+ * @param addToExisting Add this sort to the existing sort
57
+ * @returns Returns the modified array of sorts - removing reverses
58
+ */
59
+ static setSortForColumn(tableSort: Sort[], columnIndex: number, sort: Sort | null, addToExisting?: boolean): Sort[];
60
+ static getNormalizedType(columnType: string): DataType | null;
61
+ static isLongType(columnType: string): boolean;
62
+ static isDateType(columnType: string): boolean;
63
+ static isNumberType(columnType: string): boolean;
64
+ static isIntegerType(columnType: string): boolean;
65
+ static isDecimalType(columnType: string): boolean;
66
+ static isBooleanType(columnType: string): boolean;
67
+ static isCharType(columnType: string): boolean;
68
+ static isTextType(columnType: string): boolean;
63
69
  /**
64
70
  * Get base column type
65
- * @param {string} columnType Column type
66
- * @returns {string} Element type for array columns, original type for non-array columns
71
+ * @param columnType Column type
72
+ * @returns Element type for array columns, original type for non-array columns
67
73
  */
68
74
  static getBaseType(columnType: string): string;
69
75
  /**
70
76
  * Check if the column types are compatible
71
- * @param {string} type1 Column type to check
72
- * @param {string} type2 Column type to check
73
- * @returns {boolean} True, if types are compatible
77
+ * @param type1 Column type to check
78
+ * @param type2 Column type to check
79
+ * @returns True, if types are compatible
74
80
  */
75
81
  static isCompatibleType(type1: string, type2: string): boolean;
76
82
  /**
77
83
  * Create filter with the provided column and text. Handles multiple filters joined with && or ||
78
- * @param {dh.Column} column The column to set the filter on
79
- * @param {string} text The text string to create the filter from
80
- * @param {string} timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
81
- * @returns {dh.FilterCondition} Returns the created filter, null if text could not be parsed
84
+ * @param column The column to set the filter on
85
+ * @param text The text string to create the filter from
86
+ * @param timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
87
+ * @returns Returns the created filter, null if text could not be parsed
82
88
  */
83
- static makeQuickFilter(column: any, text: string, timeZone: string): any;
89
+ static makeQuickFilter(column: Column, text: string, timeZone: string): FilterCondition | null;
84
90
  /**
85
91
  * Create filter with the provided column and text of one component (no multiple conditions)
86
- * @param {dh.Column} column The column to set the filter on
87
- * @param {string} text The text string to create the filter from
88
- * @param {string} timeZone The time zone to make this filter in if it is a date type. E.g. America/New_York
89
- * @returns {dh.FilterCondition} Returns the created filter, null if text could not be parsed
92
+ * @param column The column to set the filter on
93
+ * @param text The text string to create the filter from
94
+ * @param timeZone The time zone to make this filter in if it is a date type. E.g. America/New_York
95
+ * @returns Returns the created filter, null if text could not be parsed
90
96
  */
91
- static makeQuickFilterFromComponent(column: any, text: string, timeZone: string): any;
92
- static makeQuickNumberFilter(column: any, text: any): any;
93
- static makeQuickTextFilter(column: any, text: any): any;
94
- static makeQuickBooleanFilter(column: any, text: any): any;
97
+ static makeQuickFilterFromComponent(column: Column, text: string, timeZone: string): FilterCondition | null;
98
+ static makeQuickNumberFilter(column: Column, text: string): FilterCondition | null;
99
+ static makeQuickTextFilter(column: Column, text: string | null): FilterCondition | null;
100
+ static makeQuickBooleanFilter(column: Column, text: string): FilterCondition | null;
95
101
  /**
96
102
  * Builds a date filter parsed from the text string which may or may not include an operator.
97
- * @param {Column} column The column to build the filter from, with or without a leading operator.
98
- * @param {string} text The date string text to parse.
103
+ * @param column The column to build the filter from, with or without a leading operator.
104
+ * @param text The date string text to parse.
105
+ * @param timeZone The time zone to make this filter in if it is a date type. E.g. America/New_York
99
106
  */
100
- static makeQuickDateFilter(column: any, text: string, timeZone: any): any;
107
+ static makeQuickDateFilter(column: Column, text: string, timeZone: string): FilterCondition;
101
108
  /**
102
109
  * Builds a date filter parsed from the text string with the provided filter.
103
- * @param {Column} column The column to build the filter from.
104
- * @param {string} text The date string text to parse, without an operator.
105
- * @param {FilterType} operation The filter operation to use.
106
- * @param {string} timeZone The time zone to make this filter with. E.g. America/New_York
110
+ * @param column The column to build the filter from.
111
+ * @param text The date string text to parse, without an operator.
112
+ * @param operation The filter operation to use.
113
+ * @param timeZone The time zone to make this filter with. E.g. America/New_York
107
114
  */
108
- static makeQuickDateFilterWithOperation(column: any, text: string, operation: FilterType | undefined, timeZone: string): any;
109
- static makeQuickCharFilter(column: any, text: any): any;
115
+ static makeQuickDateFilterWithOperation(column: Column, text: string, operation: string | undefined, timeZone: string): FilterCondition;
116
+ static makeQuickCharFilter(column: Column, text: string): FilterCondition | null;
110
117
  /**
111
- * @param {dh.FilterValue} filter The column filter to apply the range operation to
112
- * @param {string} operation The range operation to run
113
- * @param {dh.FilterValue} value The value to use for the operation
114
- * @returns {dh.FilterCondition} The condition with the specified operation
118
+ * @param filter The column filter to apply the range operation to
119
+ * @param operation The range operation to run
120
+ * @param value The value to use for the operation
121
+ * @returns The condition with the specified operation
115
122
  */
116
- static makeRangeFilterWithOperation(filter: any, operation: string, value: any): any;
123
+ static makeRangeFilterWithOperation(filter: FilterValue, operation: string, value: FilterValue): FilterCondition | null;
117
124
  /**
118
125
  * Wraps a table promise in a cancelable promise that will close the table if the promise is cancelled.
119
126
  * Use in a component that loads a table, and call cancel when unmounting.
120
- * @param {Promise<dh.Table> | dh.Table} table The table promise to wrap
127
+ * @param table The table promise to wrap
121
128
  */
122
- static makeCancelableTablePromise(table: Promise<any> | any): import("@deephaven/utils").CancelablePromise<any>;
129
+ static makeCancelableTablePromise(table: Promise<Table> | Table): CancelablePromise<Table>;
123
130
  /**
124
131
  * Make a cancelable promise for a one-shot table event with a timeout.
125
- * @param {dh.Table|dh.TreeTable} table Table to listen for events on
126
- * @param {string} eventName Event to listen for
127
- * @param {number} timeout Event timeout in milliseconds, defaults to 0
128
- * @param {function} matcher Optional function to determine if the promise can be resolved or stays pending
129
- * @returns {Promise} Resolves with the event data
130
- */
131
- static makeCancelableTableEventPromise(table: any | any, eventName: string, timeout?: number, matcher?: Function): Promise<any>;
132
- static makeAdvancedFilter(column: any, options: any, timeZone: any): any;
133
- static removeCommas(value: any): any;
134
- /**
135
- * @param {String} columnType The column type to make the filter value from.
136
- * @param {String} value The value to make the filter value from.
137
- * @returns {dh.FilterValue} The FilterValue item for this column/value combination
138
- */
139
- static makeFilterValue(columnType: string, value: string): any;
132
+ * @param table Table to listen for events on
133
+ * @param eventName Event to listen for
134
+ * @param timeout Event timeout in milliseconds, defaults to 0
135
+ * @param matcher Optional function to determine if the promise can be resolved or stays pending
136
+ * @returns Resolves with the event data
137
+ */
138
+ static makeCancelableTableEventPromise(table: Table | TreeTable, eventName: string, timeout?: number, matcher?: ((event: CustomEvent) => boolean) | null): CancelablePromise<CustomEvent>;
139
+ static makeAdvancedFilter(column: Column, options: {
140
+ filterItems: AdvancedFilterCreatorFilterItemState[];
141
+ filterOperators: FilterOperatorValue[];
142
+ invertSelection: boolean;
143
+ selectedValues: string[];
144
+ }, timeZone: string): FilterCondition | null;
145
+ static removeCommas(value: string): string;
146
+ /**
147
+ * @param columnType The column type to make the filter value from.
148
+ * @param value The value to make the filter value from.
149
+ * @returns The FilterValue item for this column/value combination
150
+ */
151
+ static makeFilterValue(columnType: string, value: string): FilterValue;
140
152
  /**
141
153
  * Takes a value and converts it to an `dh.FilterValue`
142
154
  *
143
- * @param {String} columnType The column type to make the filter value from.
144
- * @param {unknown} value The value to actually set
145
- * @returns {dh.FilterValue} The FilterValue item for this column/value combination
155
+ * @param columnType The column type to make the filter value from.
156
+ * @param value The value to actually set
157
+ * @returns The FilterValue item for this column/value combination
146
158
  */
147
- static makeFilterRawValue(columnType: string, rawValue: any): any;
159
+ static makeFilterRawValue(columnType: string, rawValue: unknown): FilterValue;
148
160
  /**
149
161
  * Converts a string value to a value appropriate for the column
150
- * @param {string} columnType The column type to make the value for
151
- * @param {string} text The string value to make a type for
152
- * @param {string} timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
162
+ * @param columnType The column type to make the value for
163
+ * @param text The string value to make a type for
164
+ * @param timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
153
165
  */
154
- static makeValue(columnType: string, text: string, timeZone: string): any;
155
- static makeBooleanValue(text: any, allowEmpty?: boolean): boolean | null;
156
- static makeNumberValue(text: any): number | null;
157
- static makeAdvancedValueFilter(column: any, operation: any, value: any, timeZone: any): any;
166
+ static makeValue(columnType: string, text: string, timeZone: string): string | number | boolean | LongWrapper | null;
167
+ static makeBooleanValue(text: string, allowEmpty?: boolean): boolean | null;
168
+ static makeNumberValue(text: string): number | null;
169
+ static makeAdvancedValueFilter(column: Column, operation: FilterTypeValue, value: string, timeZone: string): FilterCondition;
158
170
  /**
159
171
  * Create a filter using the selected items
160
172
  * Has a flag for invertSelection as we start from a "Select All" state and a user just deselects items.
161
173
  * Since there may be millions of distinct items, it's easier to build an inverse filter.
162
- * @param {String[]} selectedValues The values that are selected
163
- * @param {boolean} invertSelection Invert the selection (eg. All items are selected, then you deselect items)
164
- * @returns dh.FilterCondition Returns a `in` or `notIn` FilterCondition as necessary, or null if no filtering should be applied (everything selected)
174
+ * @param column The column to set the filter on
175
+ * @param selectedValues The values that are selected
176
+ * @param invertSelection Invert the selection (eg. All items are selected, then you deselect items)
177
+ * @returns Returns a `in` or `notIn` FilterCondition as necessary, or null if no filtering should be applied (everything selected)
165
178
  */
166
- static makeSelectValueFilter(column: any, selectedValues: string[], invertSelection: boolean): any;
167
- static isTreeTable(table: any): any;
179
+ static makeSelectValueFilter(column: Column, selectedValues: string[], invertSelection: boolean): FilterCondition | null;
180
+ static isTreeTable(table: unknown): table is TreeTable;
168
181
  /**
169
182
  * Copies the provided array, sorts by column name case insensitive, and returns the sorted array.
170
- * @param {Array<dh.Column>}} columns The columns to sort
171
- * @param {boolean} isAscending Whether to sort ascending
183
+ * @param columns The columns to sort
184
+ * @param isAscending Whether to sort ascending
172
185
  */
173
- static sortColumns(columns: any, isAscending?: boolean): any[];
186
+ static sortColumns(columns: Column[], isAscending?: boolean): Column[];
174
187
  }
175
- import { FilterType } from "./filters";
188
+ export default TableUtils;
176
189
  //# sourceMappingURL=TableUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableUtils.d.ts","sourceRoot":"","sources":["../src/TableUtils.js"],"names":[],"mappings":";AAQA,sEAAsE;AACtE;IACE;;;;;;;MAOE;IAEF;;;;;MAKE;IAEF;;;;OAIG;IAGH,4BAAwC;IAExC,gEASC;IAED;;;;OAIG;IACH,mCAJW,KAAS,eACT,MAAM,OAShB;IAED,uCAKC;IAED,mDAAmD;IACnD,iDAoCC;IAED,sDAkBC;IAED,qFA8BC;IAED;;;;;;OAMG;IACH,gEAHW,MAAM,kBACN,OAAO,OAejB;IAED,qGAkBC;IAED;;;;;;;OAOG;IACH,mCANW,KAAS,eACT,MAAM,6BAEN,OAAO,OAsBjB;IAED,yDAqCC;IAED,4CAQC;IAED,4CASC;IAED,8CAKC;IAED,+CAeC;IAED,+CAWC;IAED,+CAQC;IAED,4CAQC;IAED,4CASC;IAED;;;;OAIG;IACH,+BAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;OAKG;IACH,+BAJW,MAAM,SACN,MAAM,GACJ,OAAO,CAOnB;IAED;;;;;;OAMG;IACH,0CAJW,MAAM,YACN,MAAM,OAsChB;IAED;;;;;;OAMG;IACH,uDAJW,MAAM,YACN,MAAM,OAkBhB;IAED,0DA2FC;IAED,wDA4IC;IAED,2DA2BC;IAED;;;;OAIG;IACH,8CAFW,MAAM,sBAgDhB;IAED;;;;;;OAMG;IACH,2DAJW,MAAM,+CAEN,MAAM,OA+DhB;IAED,wDA+CC;IAED;;;;;OAKG;IACH,4DAJW,MAAM,mBAwBhB;IAED;;;;OAIG;IACH,yCAFW,YAAiB,MAAW,qDAMtC;IAED;;;;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