@vuu-ui/vuu-data-types 0.8.85 → 0.8.87
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 +17 -17
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -14,14 +14,14 @@ import type {
|
|
|
14
14
|
VuuRowDataItemType,
|
|
15
15
|
VuuSort,
|
|
16
16
|
VuuTable,
|
|
17
|
-
VuuRpcRequest
|
|
17
|
+
VuuRpcRequest
|
|
18
18
|
} from "@vuu-ui/vuu-protocol-types";
|
|
19
19
|
import type { DataSourceConfigChanges, IEventEmitter } from "@vuu-ui/vuu-utils";
|
|
20
20
|
import type {
|
|
21
21
|
DataSourceFilter,
|
|
22
22
|
MenuRpcResponse,
|
|
23
23
|
Selection,
|
|
24
|
-
TableSchema
|
|
24
|
+
TableSchema
|
|
25
25
|
} from "@vuu-ui/vuu-data-types";
|
|
26
26
|
import type {
|
|
27
27
|
VuuTableListRequest,
|
|
@@ -29,7 +29,7 @@ import type {
|
|
|
29
29
|
LinkDescriptorWithLabel,
|
|
30
30
|
VuuRpcViewportResponse,
|
|
31
31
|
TypeAheadMethod,
|
|
32
|
-
VuuRange
|
|
32
|
+
VuuRange
|
|
33
33
|
} from "@vuu-ui/vuu-protocol-types";
|
|
34
34
|
|
|
35
35
|
export interface DataSourceFilter extends VuuFilter {
|
|
@@ -59,7 +59,7 @@ export type DataSourceRow = [
|
|
|
59
59
|
ChildCount,
|
|
60
60
|
RowKey,
|
|
61
61
|
IsSelected,
|
|
62
|
-
...VuuRowDataItemType[]
|
|
62
|
+
...VuuRowDataItemType[]
|
|
63
63
|
];
|
|
64
64
|
|
|
65
65
|
export type DataSourceRowObject = {
|
|
@@ -246,7 +246,7 @@ export type ConfigChangeHandler = (msg: ConfigChangeMessage) => void;
|
|
|
246
246
|
*/
|
|
247
247
|
export type MenuBuilder<L = string, O = unknown> = (
|
|
248
248
|
location: L,
|
|
249
|
-
options: O
|
|
249
|
+
options: O
|
|
250
250
|
) => ContextMenuItemDescriptor[];
|
|
251
251
|
|
|
252
252
|
/**
|
|
@@ -258,7 +258,7 @@ export type MenuBuilder<L = string, O = unknown> = (
|
|
|
258
258
|
* ActionHandlers to be chained.
|
|
259
259
|
*/
|
|
260
260
|
export type MenuActionHandler = (
|
|
261
|
-
reason: MenuActionClosePopup
|
|
261
|
+
reason: MenuActionClosePopup
|
|
262
262
|
) => boolean | undefined;
|
|
263
263
|
|
|
264
264
|
export interface ContextMenuContextType {
|
|
@@ -333,7 +333,7 @@ export type DataSourceEvents = {
|
|
|
333
333
|
config: (
|
|
334
334
|
config: DataSourceConfig | undefined,
|
|
335
335
|
confirmed?: boolean,
|
|
336
|
-
configChanges?: DataSourceConfigChanges
|
|
336
|
+
configChanges?: DataSourceConfigChanges
|
|
337
337
|
) => void;
|
|
338
338
|
optimize: (optimize: OptimizeStrategy) => void;
|
|
339
339
|
range: (range: VuuRange) => void;
|
|
@@ -352,13 +352,13 @@ export type DataSourceEvents = {
|
|
|
352
352
|
export type DataSourceEditHandler = (
|
|
353
353
|
rowKey: string,
|
|
354
354
|
columnName: string,
|
|
355
|
-
value: VuuRowDataItemType
|
|
355
|
+
value: VuuRowDataItemType
|
|
356
356
|
) => Promise<true | string>;
|
|
357
357
|
|
|
358
358
|
export type DataSourceDeleteHandler = (key: string) => Promise<true | string>;
|
|
359
359
|
export type DataSourceInsertHandler = (
|
|
360
360
|
key: string,
|
|
361
|
-
data: VuuDataRowDto
|
|
361
|
+
data: VuuDataRowDto
|
|
362
362
|
) => Promise<true | string>;
|
|
363
363
|
|
|
364
364
|
export type RpcResponse =
|
|
@@ -368,7 +368,7 @@ export type RpcResponse =
|
|
|
368
368
|
| ViewportRpcResponse;
|
|
369
369
|
|
|
370
370
|
export type RpcResponseHandler = (
|
|
371
|
-
response: Omit<VuuRpcResponse, "vpId"
|
|
371
|
+
response: Omit<VuuRpcResponse, "vpId">
|
|
372
372
|
) => boolean;
|
|
373
373
|
|
|
374
374
|
export type RowSearchPredicate = (row: DataSourceRow) => boolean;
|
|
@@ -390,7 +390,7 @@ export type SuggestionProvider = () => SuggestionFetcher;
|
|
|
390
390
|
export interface TypeaheadSuggestionProvider {
|
|
391
391
|
getTypeaheadSuggestions: (
|
|
392
392
|
columnName: string,
|
|
393
|
-
pattern?: string
|
|
393
|
+
pattern?: string
|
|
394
394
|
) => Promise<string[]>;
|
|
395
395
|
}
|
|
396
396
|
|
|
@@ -413,7 +413,7 @@ export interface DataSource
|
|
|
413
413
|
* @returns true if config has been applied (will not be if existig config is same)
|
|
414
414
|
*/
|
|
415
415
|
applyConfig: (
|
|
416
|
-
config: DataSourceConfig
|
|
416
|
+
config: DataSourceConfig
|
|
417
417
|
) => DataSourceConfigChanges | undefined;
|
|
418
418
|
closeTreeNode: (key: string, cascade?: boolean) => void;
|
|
419
419
|
columns: string[];
|
|
@@ -478,16 +478,16 @@ export interface DataSource
|
|
|
478
478
|
menu?: VuuMenu;
|
|
479
479
|
/** @deprecated, use remoteProcedureCall instead */
|
|
480
480
|
menuRpcCall: (
|
|
481
|
-
rpcRequest: Omit<VuuRpcRequest, "vpId"
|
|
481
|
+
rpcRequest: Omit<VuuRpcRequest, "vpId">
|
|
482
482
|
) => Promise<VuuRpcMenuResponse>;
|
|
483
483
|
/* @deprecated, use remoteProcedureCall instead */
|
|
484
484
|
rpcCall?: <T extends VuuRpcResponse = VuuRpcResponse>(
|
|
485
|
-
rpcRequest: Omit<VuuRpcRequest, "vpId"
|
|
485
|
+
rpcRequest: Omit<VuuRpcRequest, "vpId">
|
|
486
486
|
) => Promise<T>;
|
|
487
487
|
openTreeNode: (key: string) => void;
|
|
488
488
|
range: VuuRange;
|
|
489
489
|
remoteProcedureCall: <T extends VuuRpcResponse = VuuRpcResponse>(
|
|
490
|
-
message: VuuRpcRequest
|
|
490
|
+
message: VuuRpcRequest
|
|
491
491
|
) => Promise<T>;
|
|
492
492
|
select: SelectionChangeHandler;
|
|
493
493
|
readonly selectedRowsCount: number;
|
|
@@ -496,7 +496,7 @@ export interface DataSource
|
|
|
496
496
|
sort: VuuSort;
|
|
497
497
|
subscribe: (
|
|
498
498
|
props: SubscribeProps,
|
|
499
|
-
callback: SubscribeCallback
|
|
499
|
+
callback: SubscribeCallback
|
|
500
500
|
) => Promise<void>;
|
|
501
501
|
table?: VuuTable;
|
|
502
502
|
readonly tableSchema?: TableSchema;
|
|
@@ -512,7 +512,7 @@ export interface DataSource
|
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
export interface MenuRpcResponse<
|
|
515
|
-
TAction extends MenuRpcAction = MenuRpcAction
|
|
515
|
+
TAction extends MenuRpcAction = MenuRpcAction
|
|
516
516
|
> {
|
|
517
517
|
action: TAction;
|
|
518
518
|
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.87",
|
|
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.87",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "0.8.87"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|