@deephaven/jsapi-utils 0.38.0 → 0.38.1-beta.11

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 (42) hide show
  1. package/dist/ConnectionUtils.d.ts +1 -1
  2. package/dist/ConnectionUtils.d.ts.map +1 -1
  3. package/dist/ConnectionUtils.js.map +1 -1
  4. package/dist/DateUtils.d.ts +4 -4
  5. package/dist/DateUtils.d.ts.map +1 -1
  6. package/dist/DateUtils.js +16 -17
  7. package/dist/DateUtils.js.map +1 -1
  8. package/dist/Formatter.d.ts +3 -1
  9. package/dist/Formatter.d.ts.map +1 -1
  10. package/dist/Formatter.js +8 -7
  11. package/dist/Formatter.js.map +1 -1
  12. package/dist/FormatterUtils.d.ts +1 -1
  13. package/dist/FormatterUtils.js.map +1 -1
  14. package/dist/SessionUtils.d.ts +3 -3
  15. package/dist/SessionUtils.d.ts.map +1 -1
  16. package/dist/SessionUtils.js +2 -2
  17. package/dist/SessionUtils.js.map +1 -1
  18. package/dist/TableUtils.d.ts +106 -46
  19. package/dist/TableUtils.d.ts.map +1 -1
  20. package/dist/TableUtils.js +444 -284
  21. package/dist/TableUtils.js.map +1 -1
  22. package/dist/ViewportDataUtils.d.ts +13 -5
  23. package/dist/ViewportDataUtils.d.ts.map +1 -1
  24. package/dist/ViewportDataUtils.js +20 -9
  25. package/dist/ViewportDataUtils.js.map +1 -1
  26. package/dist/formatters/DateTimeColumnFormatter.d.ts +5 -3
  27. package/dist/formatters/DateTimeColumnFormatter.d.ts.map +1 -1
  28. package/dist/formatters/DateTimeColumnFormatter.js +8 -5
  29. package/dist/formatters/DateTimeColumnFormatter.js.map +1 -1
  30. package/dist/formatters/DecimalColumnFormatter.d.ts +5 -2
  31. package/dist/formatters/DecimalColumnFormatter.d.ts.map +1 -1
  32. package/dist/formatters/DecimalColumnFormatter.js +8 -5
  33. package/dist/formatters/DecimalColumnFormatter.js.map +1 -1
  34. package/dist/formatters/IntegerColumnFormatter.d.ts +5 -2
  35. package/dist/formatters/IntegerColumnFormatter.d.ts.map +1 -1
  36. package/dist/formatters/IntegerColumnFormatter.js +8 -5
  37. package/dist/formatters/IntegerColumnFormatter.js.map +1 -1
  38. package/dist/formatters/TableColumnFormatter.d.ts +3 -1
  39. package/dist/formatters/TableColumnFormatter.d.ts.map +1 -1
  40. package/dist/formatters/TableColumnFormatter.js +2 -1
  41. package/dist/formatters/TableColumnFormatter.js.map +1 -1
  42. package/package.json +8 -8
@@ -1,5 +1,5 @@
1
1
  import { TypeValue as FilterTypeValue, OperatorValue as FilterOperatorValue } from '@deephaven/filters';
2
- import { Column, FilterCondition, FilterValue, LongWrapper, Sort, Table, TreeTable } from '@deephaven/jsapi-types';
2
+ import type { Column, CustomColumn, dh as DhType, FilterCondition, FilterValue, LongWrapper, Sort, Table, TreeTable } from '@deephaven/jsapi-types';
3
3
  import { CancelablePromise } from '@deephaven/utils';
4
4
  import { ColumnName } from './Formatter';
5
5
  type Values<T> = T[keyof T];
@@ -46,12 +46,26 @@ export declare class TableUtils {
46
46
  readonly reverse: "REVERSE";
47
47
  readonly none: null;
48
48
  };
49
+ static APPLY_TABLE_CHANGE_TIMEOUT_MS: number;
49
50
  static REVERSE_TYPE: Readonly<{
50
51
  readonly NONE: "none";
51
52
  readonly PRE_SORT: "pre-sort";
52
53
  readonly POST_SORT: "post-sort";
53
54
  }>;
54
55
  static NUMBER_REGEX: RegExp;
56
+ /**
57
+ * Executes a callback on a given table and returns a Promise that will resolve
58
+ * the next time a particular event type fires on the table.
59
+ * @param exec Callback function to execute.
60
+ * @param table Table that gets passed to the `exec` function and that is
61
+ * subscribed to for a given `eventType`.
62
+ * @param eventType The event type to listen for.
63
+ * @param timeout If the event doesn't fire within the timeout, the returned
64
+ * Promise will be rejected.
65
+ * @returns a Promise to the original table that resolves on next `eventType`
66
+ * event
67
+ */
68
+ static executeAndWaitForEvent: <T extends Table | TreeTable>(exec: (maybeTable: T | null | undefined) => void, table: T | null | undefined, eventType: string, timeout?: number) => Promise<T | null>;
55
69
  static getSortIndex(sort: readonly Sort[], columnName: ColumnName): number | null;
56
70
  /**
57
71
  * @param tableSort The sorts from the table to get the sort from
@@ -107,6 +121,47 @@ export declare class TableUtils {
107
121
  * @returns True, if types are compatible
108
122
  */
109
123
  static isCompatibleType(type1?: string | null, type2?: string | null): boolean;
124
+ /**
125
+ * Adds quotes to a value if they're not already added
126
+ * @param value Value to add quotes around
127
+ */
128
+ static quoteValue(value: string): string;
129
+ static isRangeOperation(operation: string): boolean;
130
+ /**
131
+ * @param filter The column filter to apply the range operation to
132
+ * @param operation The range operation to run
133
+ * @param value The value to use for the operation
134
+ * @returns The condition with the specified operation
135
+ */
136
+ static makeRangeFilterWithOperation(filter: FilterValue, operation: string, value: FilterValue): FilterCondition | null;
137
+ /**
138
+ * Wraps a table promise in a cancelable promise that will close the table if the promise is cancelled.
139
+ * Use in a component that loads a table, and call cancel when unmounting.
140
+ * @param table The table promise to wrap
141
+ */
142
+ static makeCancelableTablePromise(table: Promise<Table> | Table): CancelablePromise<Table>;
143
+ /**
144
+ * Make a cancelable promise for a one-shot table event with a timeout.
145
+ * @param table Table to listen for events on
146
+ * @param eventName Event to listen for
147
+ * @param timeout Event timeout in milliseconds, defaults to 0
148
+ * @param matcher Optional function to determine if the promise can be resolved or stays pending
149
+ * @returns Resolves with the event data
150
+ */
151
+ static makeCancelableTableEventPromise(table: Table | TreeTable, eventName: string, timeout?: number, matcher?: ((event: CustomEvent) => boolean) | null): CancelablePromise<CustomEvent>;
152
+ static removeCommas(value: string): string;
153
+ static makeBooleanValue(text: string, allowEmpty?: boolean): boolean | null;
154
+ static makeNumberValue(text: string): number | null;
155
+ static getFilterOperatorString(operation: FilterTypeValue): string;
156
+ static isTreeTable(table: unknown): table is TreeTable;
157
+ /**
158
+ * Copies the provided array, sorts by column name case insensitive, and returns the sorted array.
159
+ * @param columns The columns to sort
160
+ * @param isAscending Whether to sort ascending
161
+ */
162
+ static sortColumns(columns: readonly Column[], isAscending?: boolean): Column[];
163
+ dh: DhType;
164
+ constructor(dh: DhType);
110
165
  /**
111
166
  * Create filter with the provided column and text. Handles multiple filters joined with && or ||
112
167
  * @param column The column to set the filter on
@@ -114,7 +169,7 @@ export declare class TableUtils {
114
169
  * @param timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
115
170
  * @returns Returns the created filter, null if text could not be parsed
116
171
  */
117
- static makeQuickFilter(column: Column, text: string, timeZone?: string): FilterCondition | null;
172
+ makeQuickFilter(column: Column, text: string, timeZone?: string): FilterCondition | null;
118
173
  /**
119
174
  * Create filter with the provided column and text of one component (no multiple conditions)
120
175
  * @param column The column to set the filter on
@@ -122,17 +177,17 @@ export declare class TableUtils {
122
177
  * @param timeZone The time zone to make this filter in if it is a date type. E.g. America/New_York
123
178
  * @returns Returns the created filter, null if text could not be parsed
124
179
  */
125
- static makeQuickFilterFromComponent(column: Column, text: string, timeZone?: string): FilterCondition | null;
126
- static makeQuickNumberFilter(column: Column, text: string): FilterCondition | null;
127
- static makeQuickTextFilter(column: Column, text: string): FilterCondition | null;
128
- static makeQuickBooleanFilter(column: Column, text: string | number): FilterCondition | null;
180
+ makeQuickFilterFromComponent(column: Column, text: string, timeZone?: string): FilterCondition | null;
181
+ makeQuickNumberFilter(column: Column, text: string): FilterCondition | null;
182
+ makeQuickTextFilter(column: Column, text: string): FilterCondition | null;
183
+ makeQuickBooleanFilter(column: Column, text: string | number): FilterCondition | null;
129
184
  /**
130
185
  * Builds a date filter parsed from the text string which may or may not include an operator.
131
186
  * @param column The column to build the filter from, with or without a leading operator.
132
187
  * @param text The date string text to parse.
133
188
  * @param timeZone The time zone to make this filter in if it is a date type. E.g. America/New_York
134
189
  */
135
- static makeQuickDateFilter(column: Column, text: string, timeZone: string): FilterCondition;
190
+ makeQuickDateFilter(column: Column, text: string, timeZone: string): FilterCondition;
136
191
  /**
137
192
  * Builds a date filter parsed from the text string with the provided filter.
138
193
  * @param column The column to build the filter from.
@@ -140,44 +195,60 @@ export declare class TableUtils {
140
195
  * @param operation The filter operation to use.
141
196
  * @param timeZone The time zone to make this filter with. E.g. America/New_York
142
197
  */
143
- static makeQuickDateFilterWithOperation(column: Column, text: string, operation: FilterTypeValue, timeZone: string): FilterCondition;
198
+ makeQuickDateFilterWithOperation(column: Column, text: string, operation: FilterTypeValue, timeZone: string): FilterCondition;
199
+ makeQuickCharFilter(column: Column, text: string): FilterCondition | null;
200
+ makeAdvancedFilter(column: Column, options: AdvancedFilterOptions, timeZone: string): FilterCondition | null;
201
+ makeAdvancedValueFilter(column: Column, operation: FilterTypeValue, value: string, timeZone: string): FilterCondition | null;
144
202
  /**
145
- * Adds quotes to a value if they're not already added
146
- * @param value Value to add quotes around
203
+ * Apply a filter to a table that won't match anything.
204
+ * @table The table to apply the filter to
205
+ * @columnName The name of the column to apploy the filter to
206
+ * @param timeout Timeout before cancelling the promise that waits for the next
207
+ * dh.Table.EVENT_FILTERCHANGED event
208
+ * @returns a Promise to the Table that resolves after the next
209
+ * dh.Table.EVENT_FILTERCHANGED event
147
210
  */
148
- static quoteValue(value: string): string;
149
- static isRangeOperation(operation: string): boolean;
150
- static makeQuickCharFilter(column: Column, text: string): FilterCondition | null;
211
+ applyNeverFilter<T extends Table | TreeTable>(table: T | null | undefined, columnName: string, timeout?: number): Promise<T | null>;
151
212
  /**
152
- * @param filter The column filter to apply the range operation to
153
- * @param operation The range operation to run
154
- * @param value The value to use for the operation
155
- * @returns The condition with the specified operation
213
+ * Apply custom columns to a given table. Return a Promise that resolves with
214
+ * the table once the dh.Table.EVENT_CUSTOMCOLUMNSCHANGED event has fired.
215
+ * @param table The table to apply custom columns to.
216
+ * @param columns The list of column expressions or definitions to apply.
217
+ * @returns A Promise that will be resolved with the given table after the
218
+ * columns are applied.
156
219
  */
157
- static makeRangeFilterWithOperation(filter: FilterValue, operation: string, value: FilterValue): FilterCondition | null;
220
+ applyCustomColumns(table: Table | null | undefined, columns: (string | CustomColumn)[], timeout?: number): Promise<Table | null>;
158
221
  /**
159
- * Wraps a table promise in a cancelable promise that will close the table if the promise is cancelled.
160
- * Use in a component that loads a table, and call cancel when unmounting.
161
- * @param table The table promise to wrap
222
+ * Apply filters to a given table.
223
+ * @param table Table to apply filters to
224
+ * @param filters Filters to apply
225
+ * @param timeout Timeout before cancelling the promise that waits for the next
226
+ * dh.Table.EVENT_FILTERCHANGED event
227
+ * @returns a Promise to the Table that resolves after the next
228
+ * dh.Table.EVENT_FILTERCHANGED event
162
229
  */
163
- static makeCancelableTablePromise(table: Promise<Table> | Table): CancelablePromise<Table>;
230
+ applyFilter<T extends Table | TreeTable>(table: T | null | undefined, filters: FilterCondition[], timeout?: number): Promise<T | null>;
164
231
  /**
165
- * Make a cancelable promise for a one-shot table event with a timeout.
166
- * @param table Table to listen for events on
167
- * @param eventName Event to listen for
168
- * @param timeout Event timeout in milliseconds, defaults to 0
169
- * @param matcher Optional function to determine if the promise can be resolved or stays pending
170
- * @returns Resolves with the event data
232
+ * Apply sorts to a given Table.
233
+ * @param table The table to apply sorts to
234
+ * @param sorts The sorts to apply
235
+ * @param timeout Timeout before cancelling the promise that waits for the next
236
+ * dh.Table.EVENT_SORTCHANGED event
237
+ * @returns a Promise to the Table that resolves after the next
238
+ * dh.Table.EVENT_SORTCHANGED event
171
239
  */
172
- static makeCancelableTableEventPromise(table: Table | TreeTable, eventName: string, timeout?: number, matcher?: ((event: CustomEvent) => boolean) | null): CancelablePromise<CustomEvent>;
173
- static makeAdvancedFilter(column: Column, options: AdvancedFilterOptions, timeZone: string): FilterCondition | null;
174
- static removeCommas(value: string): string;
240
+ applySort<T extends Table | TreeTable>(table: T | null | undefined, sorts: Sort[], timeout?: number): Promise<T | null>;
241
+ /**
242
+ * Create a filter condition that results in zero results for a given column
243
+ * @param column
244
+ */
245
+ makeNeverFilter(column: Column): FilterCondition;
175
246
  /**
176
247
  * @param columnType The column type to make the filter value from.
177
248
  * @param value The value to make the filter value from.
178
249
  * @returns The FilterValue item for this column/value combination
179
250
  */
180
- static makeFilterValue(columnType: string, value: string): FilterValue;
251
+ makeFilterValue(columnType: string, value: string): FilterValue;
181
252
  /**
182
253
  * Takes a value and converts it to an `dh.FilterValue`
183
254
  *
@@ -185,18 +256,14 @@ export declare class TableUtils {
185
256
  * @param value The value to actually set
186
257
  * @returns The FilterValue item for this column/value combination
187
258
  */
188
- static makeFilterRawValue(columnType: string, rawValue: unknown): FilterValue;
259
+ makeFilterRawValue(columnType: string, rawValue: unknown): FilterValue;
189
260
  /**
190
261
  * Converts a string value to a value appropriate for the column
191
262
  * @param columnType The column type to make the value for
192
263
  * @param text The string value to make a type for
193
264
  * @param timeZone The time zone to make this value in if it is a date type. E.g. America/New_York
194
265
  */
195
- static makeValue(columnType: string, text: string, timeZone: string): string | number | boolean | LongWrapper | null;
196
- static makeBooleanValue(text: string, allowEmpty?: boolean): boolean | null;
197
- static makeNumberValue(text: string): number | null;
198
- static getFilterOperatorString(operation: FilterTypeValue): string;
199
- static makeAdvancedValueFilter(column: Column, operation: FilterTypeValue, value: string, timeZone: string): FilterCondition | null;
266
+ makeValue(columnType: string, text: string, timeZone: string): string | number | boolean | LongWrapper | null;
200
267
  /**
201
268
  * Create a filter using the selected items
202
269
  * Has a flag for invertSelection as we start from a "Select All" state and a user just deselects items.
@@ -206,14 +273,7 @@ export declare class TableUtils {
206
273
  * @param invertSelection Invert the selection (eg. All items are selected, then you deselect items)
207
274
  * @returns Returns a `in` or `notIn` FilterCondition as necessary, or null if no filtering should be applied (everything selected)
208
275
  */
209
- static makeSelectValueFilter(column: Column, selectedValues: unknown[], invertSelection: boolean): FilterCondition | null;
210
- static isTreeTable(table: unknown): table is TreeTable;
211
- /**
212
- * Copies the provided array, sorts by column name case insensitive, and returns the sorted array.
213
- * @param columns The columns to sort
214
- * @param isAscending Whether to sort ascending
215
- */
216
- static sortColumns(columns: readonly Column[], isAscending?: boolean): Column[];
276
+ makeSelectValueFilter<TInvert extends boolean>(column: Column, selectedValues: unknown[], invertSelection: TInvert): TInvert extends true ? FilterCondition | null : FilterCondition;
217
277
  }
218
278
  export default TableUtils;
219
279
  //# sourceMappingURL=TableUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableUtils.d.ts","sourceRoot":"","sources":["../src/TableUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,IAAI,eAAe,EAC5B,aAAa,IAAI,mBAAmB,EACrC,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,MAAM,EACN,eAAe,EACf,WAAW,EACX,WAAW,EAEX,IAAI,EACJ,KAAK,EACL,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE,eAAe,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,eAAe,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,eAAe,EAAE,mBAAmB,EAAE,CAAC;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,C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