@vuu-ui/vuu-data-types 0.13.41 → 0.13.43

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 (2) hide show
  1. package/index.d.ts +10 -13
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -32,6 +32,9 @@ import type {
32
32
  VuuRpcEditResponse,
33
33
  VuuLoginSuccessResponse,
34
34
  VuuLoginFailResponse,
35
+ SelectRequest,
36
+ SelectResponse,
37
+ SelectSuccessWithRowCount,
35
38
  } from "@vuu-ui/vuu-protocol-types";
36
39
  import type {
37
40
  DataSourceConfigChanges,
@@ -350,7 +353,8 @@ export declare type DataSourceCallbackMessage =
350
353
  | DataSourceSubscribedMessage
351
354
  | DataSourceVisualLinkCreatedMessage
352
355
  | DataSourceVisualLinkRemovedMessage
353
- | DataSourceVisualLinksMessage;
356
+ | DataSourceVisualLinksMessage
357
+ | WithRequestId<SelectSuccessWithRowCount>;
354
358
 
355
359
  export declare type ConfigChangeColumnsMessage = {
356
360
  type: "columns";
@@ -427,7 +431,6 @@ export interface DataSourceSubscribeProps
427
431
  viewport?: string;
428
432
  range?: Range;
429
433
  revealSelected?: boolean;
430
- selectedIndexValues?: Selection;
431
434
  selectedKeyValues?: string[];
432
435
  title?: string;
433
436
  }
@@ -439,7 +442,6 @@ export declare type OptimizeStrategy = "none" | "throttle" | "debounce";
439
442
 
440
443
  export declare type DataSourceEventHandler = (viewportId: string) => void;
441
444
  export declare type RowSelectionEventHandler = (
442
- selection: Selection,
443
445
  selectedRowCount: number,
444
446
  ) => void;
445
447
 
@@ -527,11 +529,6 @@ export interface TypeaheadSuggestionProvider {
527
529
  ) => Promise<string[]>;
528
530
  }
529
531
 
530
- export declare type RangeTuple = [from: number, to: number];
531
- export declare type SelectionItem = number | RangeTuple;
532
- export declare type Selection = SelectionItem[];
533
- export declare type SelectionChangeHandler = (selection: Selection) => void;
534
-
535
532
  export declare type WithBaseFilter<T> = T & {
536
533
  baseFilterSpec?: DataSourceFilter;
537
534
  };
@@ -579,6 +576,8 @@ export interface DataSource
579
576
  * see 'freeze' above. If frozen, the time at which freeze was applied.
580
577
  */
581
578
  freezeTimestamp?: number | undefined;
579
+ select?: (selectRequest: Omit<SelectRequest, "vpId">) => void;
580
+
582
581
  status: DataSourceStatus;
583
582
  /**
584
583
  *
@@ -651,7 +650,6 @@ export interface DataSource
651
650
  ) => Promise<RpcResultSuccess | RpcResultError>;
652
651
  openTreeNode: (keyOrIndex: string | number) => void;
653
652
  range: Range;
654
- select: SelectionChangeHandler;
655
653
  readonly selectedRowsCount: number;
656
654
  sendBroadcastMessage?: (message: DataSourceBroadcastMessage) => void;
657
655
  readonly size: number;
@@ -916,9 +914,6 @@ export declare type VuuUIMessageOutViewport =
916
914
  | VuuUIMessageOutOpenTreeNode
917
915
  | VuuUIMessageOutRemoveLink
918
916
  | VuuUIMessageOutResume
919
- | VuuUIMessageOutSelect
920
- | VuuUIMessageOutSelectAll
921
- | VuuUIMessageOutSelectNone
922
917
  | VuuUIMessageOutSetTitle
923
918
  | VuuUIMessageOutSuspend
924
919
  | VuuUIMessageOutViewRange;
@@ -931,7 +926,8 @@ export declare type VuuUIMessageOut =
931
926
  | VuuUIMessageOutSubscribe
932
927
  | VuuUIMessageOutUnsubscribe
933
928
  | VuuUIMessageOutViewport
934
- | WithRequestId<VuuTableListRequest | VuuTableMetaRequest>;
929
+ | WithRequestId<VuuTableListRequest | VuuTableMetaRequest>
930
+ | SelectRequest;
935
931
 
936
932
  export type ConnectOptions = {
937
933
  url: string;
@@ -957,6 +953,7 @@ export interface ServerAPI {
957
953
  | VuuCreateVisualLink
958
954
  | VuuRemoveVisualLink,
959
955
  ) => Promise<T>;
956
+ select: (selectRequest: SelectRequest) => Promise<SelectResponse>;
960
957
  send: (message: VuuUIMessageOut) => void;
961
958
  subscribe: (
962
959
  message: ServerProxySubscribeMessage,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-data-types",
3
- "version": "0.13.41",
3
+ "version": "0.13.43",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-filter-types": "0.13.41",
8
- "@vuu-ui/vuu-protocol-types": "0.13.41"
7
+ "@vuu-ui/vuu-filter-types": "0.13.43",
8
+ "@vuu-ui/vuu-protocol-types": "0.13.43"
9
9
  },
10
10
  "dependencies": {},
11
11
  "peerDependencies": {},