@vuu-ui/vuu-data-test 2.1.3 → 2.1.5

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.
@@ -1,19 +1,14 @@
1
- import { DataSource, DataSourceConfig, DataSourceVisualLinkCreatedMessage, TableSchema } from "@vuu-ui/vuu-data-types";
2
- import { VuuMenu, VuuTable, VuuLink, LinkDescriptorWithLabel, VuuRpcMenuResponse, VuuCreateVisualLink, VuuRemoveVisualLink, VuuRpcServiceRequest, RpcResultSuccess, RpcResultError, VuuRpcMenuRequest } from "@vuu-ui/vuu-protocol-types";
1
+ import { DataSource, DataSourceConfig, DataSourceVisualLinkCreatedMessage, EditSessionMode, TableSchema } from "@vuu-ui/vuu-data-types";
2
+ import { VuuMenu, VuuLink, LinkDescriptorWithLabel, VuuRpcMenuResponse, VuuCreateVisualLink, VuuRemoveVisualLink, VuuRpcServiceRequest, RpcResultSuccess, RpcResultError, VuuRpcMenuRequest } from "@vuu-ui/vuu-protocol-types";
3
3
  import { Table } from "../../Table";
4
4
  import { SessionTable } from "../../SessionTable";
5
+ import { TickingArrayDataSource } from "../../TickingArrayDataSource";
5
6
  export interface IVuuModule<T extends string = string> {
6
7
  createDataSource: (tableName: T) => DataSource;
7
8
  }
8
9
  export type SessionTableMap = Record<string, SessionTable | Table>;
9
- export type LocalDataMenuParameters = {
10
- selectedRowIds: string[];
11
- table: VuuTable;
12
- };
13
10
  export type ServiceHandler = (rpcRequest: VuuRpcServiceRequest) => Promise<RpcResultSuccess | RpcResultError>;
14
- export type MenuServiceHandler = (rpcRequest: VuuRpcMenuRequest & {
15
- localDataParameters?: LocalDataMenuParameters;
16
- }) => Promise<VuuRpcMenuResponse>;
11
+ export type MenuServiceHandler = (rpcRequest: VuuRpcMenuRequest) => Promise<VuuRpcMenuResponse>;
17
12
  export type RpcService = {
18
13
  rpcName: string;
19
14
  service: ServiceHandler;
@@ -54,12 +49,12 @@ export declare abstract class VuuModule<T extends string = string> implements IV
54
49
  protected deleteRow: ServiceHandler;
55
50
  private getColumnDescriptors;
56
51
  private editCell;
57
- private enterEditMode;
58
- private exitEditMode;
59
- private beginBulkEdit;
52
+ private beginEditSessionMenuHandler;
53
+ private beginEditSession;
60
54
  private endEditSession;
61
55
  private applyBulkEdits;
62
- private saveBulkEdits;
63
- protected createSessionTableFromSelectedRows({ data, map, schema }: Table, selectedRowIds: string[]): Table;
56
+ protected createSessionTable(sourceTable: Table, sessionTableName: string, editSessionMode: EditSessionMode | undefined, dataSource: TickingArrayDataSource): Table;
57
+ protected createSessionTableWithAllRows(sourceTable: Table, sessionTableName: string): SessionTable;
58
+ protected createSessionTableFromSelectedRows({ data, map, schema }: Table, sessionTableName: string, dataSource: TickingArrayDataSource): Table;
64
59
  }
65
60
  export {};