@vuu-ui/vuu-data-types 0.8.82 → 0.8.84
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/index.d.ts +13 -13
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export type DataSourceRow = [
|
|
|
61
61
|
ChildCount,
|
|
62
62
|
RowKey,
|
|
63
63
|
IsSelected,
|
|
64
|
-
...VuuRowDataItemType[]
|
|
64
|
+
...VuuRowDataItemType[],
|
|
65
65
|
];
|
|
66
66
|
|
|
67
67
|
export type DataSourceRowObject = {
|
|
@@ -248,7 +248,7 @@ export type ConfigChangeHandler = (msg: ConfigChangeMessage) => void;
|
|
|
248
248
|
*/
|
|
249
249
|
export type MenuBuilder<L = string, O = unknown> = (
|
|
250
250
|
location: L,
|
|
251
|
-
options: O
|
|
251
|
+
options: O,
|
|
252
252
|
) => ContextMenuItemDescriptor[];
|
|
253
253
|
|
|
254
254
|
/**
|
|
@@ -260,7 +260,7 @@ export type MenuBuilder<L = string, O = unknown> = (
|
|
|
260
260
|
* ActionHandlers to be chained.
|
|
261
261
|
*/
|
|
262
262
|
export type MenuActionHandler = (
|
|
263
|
-
reason: MenuActionClosePopup
|
|
263
|
+
reason: MenuActionClosePopup,
|
|
264
264
|
) => boolean | undefined;
|
|
265
265
|
|
|
266
266
|
export interface ContextMenuContextType {
|
|
@@ -335,7 +335,7 @@ export type DataSourceEvents = {
|
|
|
335
335
|
config: (
|
|
336
336
|
config: DataSourceConfig | undefined,
|
|
337
337
|
confirmed?: boolean,
|
|
338
|
-
configChanges?: DataSourceConfigChanges
|
|
338
|
+
configChanges?: DataSourceConfigChanges,
|
|
339
339
|
) => void;
|
|
340
340
|
optimize: (optimize: OptimizeStrategy) => void;
|
|
341
341
|
range: (range: VuuRange) => void;
|
|
@@ -354,13 +354,13 @@ export type DataSourceEvents = {
|
|
|
354
354
|
export type DataSourceEditHandler = (
|
|
355
355
|
row: DataSourceRow,
|
|
356
356
|
columnName: string,
|
|
357
|
-
value: VuuRowDataItemType
|
|
357
|
+
value: VuuRowDataItemType,
|
|
358
358
|
) => Promise<true | string>;
|
|
359
359
|
|
|
360
360
|
export type DataSourceDeleteHandler = (key: string) => Promise<true | string>;
|
|
361
361
|
export type DataSourceInsertHandler = (
|
|
362
362
|
key: string,
|
|
363
|
-
data: VuuDataRowDto
|
|
363
|
+
data: VuuDataRowDto,
|
|
364
364
|
) => Promise<true | string>;
|
|
365
365
|
|
|
366
366
|
export type RpcResponse =
|
|
@@ -370,7 +370,7 @@ export type RpcResponse =
|
|
|
370
370
|
| ViewportRpcResponse;
|
|
371
371
|
|
|
372
372
|
export type RpcResponseHandler = (
|
|
373
|
-
response: Omit<RpcResponse, "requestId"
|
|
373
|
+
response: Omit<RpcResponse, "requestId">,
|
|
374
374
|
) => boolean;
|
|
375
375
|
|
|
376
376
|
export type RowSearchPredicate = (row: DataSourceRow) => boolean;
|
|
@@ -392,7 +392,7 @@ export type SuggestionProvider = () => SuggestionFetcher;
|
|
|
392
392
|
export interface TypeaheadSuggestionProvider {
|
|
393
393
|
getTypeaheadSuggestions: (
|
|
394
394
|
columnName: string,
|
|
395
|
-
pattern?: string
|
|
395
|
+
pattern?: string,
|
|
396
396
|
) => Promise<string[]>;
|
|
397
397
|
}
|
|
398
398
|
|
|
@@ -415,7 +415,7 @@ export interface DataSource
|
|
|
415
415
|
* @returns true if config has been applied (will not be if existig config is same)
|
|
416
416
|
*/
|
|
417
417
|
applyConfig: (
|
|
418
|
-
config: DataSourceConfig
|
|
418
|
+
config: DataSourceConfig,
|
|
419
419
|
) => DataSourceConfigChanges | undefined;
|
|
420
420
|
closeTreeNode: (key: string, cascade?: boolean) => void;
|
|
421
421
|
columns: string[];
|
|
@@ -479,10 +479,10 @@ export interface DataSource
|
|
|
479
479
|
links?: LinkDescriptorWithLabel[];
|
|
480
480
|
menu?: VuuMenu;
|
|
481
481
|
menuRpcCall: (
|
|
482
|
-
rpcRequest: Omit<ClientToServerMenuRPC, "vpId"> | ClientToServerEditRpc
|
|
482
|
+
rpcRequest: Omit<ClientToServerMenuRPC, "vpId"> | ClientToServerEditRpc,
|
|
483
483
|
) => Promise<Omit<RpcResponse, "requestId"> | undefined>;
|
|
484
484
|
rpcCall?: <T extends RpcResponse = RpcResponse>(
|
|
485
|
-
message: Omit<ClientToServerViewportRpcCall, "vpId"
|
|
485
|
+
message: Omit<ClientToServerViewportRpcCall, "vpId">,
|
|
486
486
|
) => Promise<T | undefined>;
|
|
487
487
|
openTreeNode: (key: string) => void;
|
|
488
488
|
range: VuuRange;
|
|
@@ -492,7 +492,7 @@ export interface DataSource
|
|
|
492
492
|
sort: VuuSort;
|
|
493
493
|
subscribe: (
|
|
494
494
|
props: SubscribeProps,
|
|
495
|
-
callback: SubscribeCallback
|
|
495
|
+
callback: SubscribeCallback,
|
|
496
496
|
) => Promise<void>;
|
|
497
497
|
table?: VuuTable;
|
|
498
498
|
readonly tableSchema?: TableSchema;
|
|
@@ -508,7 +508,7 @@ export interface DataSource
|
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
export interface MenuRpcResponse<
|
|
511
|
-
TAction extends MenuRpcAction = MenuRpcAction
|
|
511
|
+
TAction extends MenuRpcAction = MenuRpcAction,
|
|
512
512
|
> {
|
|
513
513
|
action: TAction;
|
|
514
514
|
error?: string;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-types",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.84",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "0.8.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "0.8.84",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "0.8.84"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|