@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.
- package/cjs/SessionTable.js +8 -0
- package/cjs/SessionTable.js.map +1 -1
- package/cjs/TickingArrayDataSource.js +12 -5
- package/cjs/TickingArrayDataSource.js.map +1 -1
- package/cjs/core/module/VuuModule.js +131 -121
- package/cjs/core/module/VuuModule.js.map +1 -1
- package/cjs/simul/SimulModule.js +1 -1
- package/cjs/simul/SimulModule.js.map +1 -1
- package/esm/SessionTable.js +8 -1
- package/esm/SessionTable.js.map +1 -1
- package/esm/TickingArrayDataSource.js +12 -5
- package/esm/TickingArrayDataSource.js.map +1 -1
- package/esm/core/module/VuuModule.js +133 -123
- package/esm/core/module/VuuModule.js.map +1 -1
- package/esm/simul/SimulModule.js +1 -1
- package/esm/simul/SimulModule.js.map +1 -1
- package/package.json +6 -6
- package/types/SessionTable.d.ts +1 -0
- package/types/TickingArrayDataSource.d.ts +2 -1
- package/types/core/module/VuuModule.d.ts +9 -14
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { DataSource, DataSourceConfig, DataSourceVisualLinkCreatedMessage, TableSchema } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import { VuuMenu,
|
|
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
|
|
58
|
-
private
|
|
59
|
-
private beginBulkEdit;
|
|
52
|
+
private beginEditSessionMenuHandler;
|
|
53
|
+
private beginEditSession;
|
|
60
54
|
private endEditSession;
|
|
61
55
|
private applyBulkEdits;
|
|
62
|
-
|
|
63
|
-
protected
|
|
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 {};
|