@vuu-ui/vuu-data-test 0.8.17-debug → 0.8.18-debug
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/index.js +2145 -3556
- package/cjs/index.js.map +4 -4
- package/esm/index.js +2145 -3556
- package/esm/index.js.map +4 -4
- package/package.json +3 -3
- package/types/{vuu-data-test/src/Table.d.ts → Table.d.ts} +1 -1
- package/types/{vuu-data-test/src/TickingArrayDataSource.d.ts → TickingArrayDataSource.d.ts} +2 -2
- package/types/{vuu-data-test/src/basket → basket}/basket-schemas.d.ts +1 -1
- package/types/{vuu-data-test/src/basket → basket}/reference-data/constituents.d.ts +1 -1
- package/types/{vuu-data-test/src/schemas.d.ts → schemas.d.ts} +1 -1
- package/types/{vuu-data-test/src/simul → simul}/simul-schemas.d.ts +1 -1
- package/types/{vuu-data-test/src/vuu-modules.d.ts → vuu-modules.d.ts} +2 -2
- package/types/vuu-data-react/src/hooks/index.d.ts +0 -7
- package/types/vuu-data-react/src/hooks/useDataSource.d.ts +0 -24
- package/types/vuu-data-react/src/hooks/useLookupValues.d.ts +0 -5
- package/types/vuu-data-react/src/hooks/useServerConnectionQuality.d.ts +0 -1
- package/types/vuu-data-react/src/hooks/useServerConnectionStatus.d.ts +0 -1
- package/types/vuu-data-react/src/hooks/useTypeaheadSuggestions.d.ts +0 -4
- package/types/vuu-data-react/src/hooks/useVuuMenuActions.d.ts +0 -50
- package/types/vuu-data-react/src/hooks/useVuuTables.d.ts +0 -4
- package/types/vuu-data-react/src/index.d.ts +0 -1
- /package/types/{vuu-data-test/src/UpdateGenerator.d.ts → UpdateGenerator.d.ts} +0 -0
- /package/types/{vuu-data-test/src/basket → basket}/basket-module.d.ts +0 -0
- /package/types/{vuu-data-test/src/basket → basket}/reference-data/ftse100.d.ts +0 -0
- /package/types/{vuu-data-test/src/basket → basket}/reference-data/hsi.d.ts +0 -0
- /package/types/{vuu-data-test/src/basket → basket}/reference-data/nasdaq100.d.ts +0 -0
- /package/types/{vuu-data-test/src/basket → basket}/reference-data/prices.d.ts +0 -0
- /package/types/{vuu-data-test/src/basket → basket}/reference-data/sp500.d.ts +0 -0
- /package/types/{vuu-data-test/src/data-utils.d.ts → data-utils.d.ts} +0 -0
- /package/types/{vuu-data-test/src/generatorTemplate.d.ts → generatorTemplate.d.ts} +0 -0
- /package/types/{vuu-data-test/src/index.d.ts → index.d.ts} +0 -0
- /package/types/{vuu-data-test/src/makeSuggestions.d.ts → makeSuggestions.d.ts} +0 -0
- /package/types/{vuu-data-test/src/rowUpdates.d.ts → rowUpdates.d.ts} +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/index.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/currencies.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/index.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/instrument-prices.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/instruments-extended.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/instruments.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/locations.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/lotsizes.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/priceStrategies.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/reference-data/prices.d.ts +0 -0
- /package/types/{vuu-data-test/src/simul → simul}/simul-module.d.ts +0 -0
- /package/types/{vuu-data-test/src/vuu-row-generator.d.ts → vuu-row-generator.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-test",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.18-debug",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@thomaschaplin/isin-generator": "1.0.3"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@vuu-ui/vuu-data": "0.8.
|
|
11
|
-
"@vuu-ui/vuu-table-types": "0.8.
|
|
10
|
+
"@vuu-ui/vuu-data": "0.8.18-debug",
|
|
11
|
+
"@vuu-ui/vuu-table-types": "0.8.18-debug"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"cjs",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableSchema } from "@vuu-ui/vuu-data";
|
|
1
|
+
import { TableSchema } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
import { VuuRowDataItemType, VuuTable } from "@vuu-ui/vuu-protocol-types";
|
|
3
3
|
import { ColumnMap, EventEmitter } from "@vuu-ui/vuu-utils";
|
|
4
4
|
import { UpdateGenerator } from "./rowUpdates";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayDataSource, ArrayDataSourceConstructorProps
|
|
2
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
1
|
+
import { ArrayDataSource, ArrayDataSourceConstructorProps } from "@vuu-ui/vuu-data-local";
|
|
2
|
+
import { DataSourceRow, MenuRpcResponse, RpcResponse, SubscribeCallback, SubscribeProps, VuuUIMessageInRPCEditReject, VuuUIMessageInRPCEditResponse } from "@vuu-ui/vuu-data-types";
|
|
3
3
|
import { ClientToServerEditRpc, ClientToServerMenuRPC, ClientToServerViewportRpcCall, VuuMenu, VuuRange, VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
4
4
|
import { Table } from "./Table";
|
|
5
5
|
export type RpcService = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableSchema } from "@vuu-ui/vuu-data";
|
|
1
|
+
import { TableSchema } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
export type BasketsTableName = "algoType" | "basket" | "basketConstituent" | "basketTrading" | "basketTradingConstituent" | "basketTradingConstituentJoin" | "priceStrategyType";
|
|
3
3
|
export declare const schemas: Readonly<Record<BasketsTableName, Readonly<TableSchema>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableSchema } from "@vuu-ui/vuu-data";
|
|
1
|
+
import { TableSchema } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
import { type BasketsTableName } from "./basket/basket-schemas";
|
|
3
3
|
import { type SimulTableName } from "./simul/simul-schemas";
|
|
4
4
|
export type VuuTableName = BasketsTableName | SimulTableName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TableSchema } from "@vuu-ui/vuu-data";
|
|
2
1
|
import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
|
+
import { TableSchema } from "@vuu-ui/vuu-data-types";
|
|
3
3
|
export type SimulTableName = "instruments" | "instrumentsExtended" | "instrumentPrices" | "orders" | "childOrders" | "parentOrders" | "prices";
|
|
4
4
|
export declare const schemas: Readonly<Record<SimulTableName, Readonly<TableSchema>>>;
|
|
5
5
|
export type ColumnState = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataSource } from "@vuu-ui/vuu-data";
|
|
2
|
-
import { SuggestionFetcher } from "
|
|
1
|
+
import { DataSource } from "@vuu-ui/vuu-data-types";
|
|
2
|
+
import { SuggestionFetcher } from "@vuu-ui/vuu-data-react";
|
|
3
3
|
export type VuuModuleName = "BASKET" | "SIMUL";
|
|
4
4
|
export interface VuuModule<T extends string = string> {
|
|
5
5
|
createDataSource: (tableName: T) => DataSource;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./useDataSource";
|
|
2
|
-
export * from "./useLookupValues";
|
|
3
|
-
export * from "./useServerConnectionStatus";
|
|
4
|
-
export * from "./useServerConnectionQuality";
|
|
5
|
-
export * from "./useTypeaheadSuggestions";
|
|
6
|
-
export * from "./useVuuMenuActions";
|
|
7
|
-
export * from "./useVuuTables";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "@vuu-ui/vuu-data";
|
|
2
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
3
|
-
import { VuuRange } from "@vuu-ui/vuu-protocol-types";
|
|
4
|
-
export interface DataSourceHookProps {
|
|
5
|
-
dataSource: DataSource;
|
|
6
|
-
renderBufferSize?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function useDataSource({ dataSource, renderBufferSize, }: DataSourceHookProps): [
|
|
9
|
-
DataSourceRow[],
|
|
10
|
-
number,
|
|
11
|
-
VuuRange,
|
|
12
|
-
(range: VuuRange) => void
|
|
13
|
-
];
|
|
14
|
-
export declare class MovingWindow {
|
|
15
|
-
data: DataSourceRow[];
|
|
16
|
-
rowCount: number;
|
|
17
|
-
private range;
|
|
18
|
-
constructor({ from, to }: VuuRange);
|
|
19
|
-
setRowCount: (rowCount: number) => void;
|
|
20
|
-
add(data: DataSourceRow): void;
|
|
21
|
-
getAtIndex(index: number): DataSourceRow | undefined;
|
|
22
|
-
isWithinRange(index: number): boolean;
|
|
23
|
-
setRange(from: number, to: number): void;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useServerConnectionQuality: () => number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useServerConnectionStatus: () => string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TypeaheadParams, VuuTable } from "@vuu-ui/vuu-protocol-types";
|
|
2
|
-
export type SuggestionFetcher = (params: TypeaheadParams) => Promise<string[]>;
|
|
3
|
-
export declare const getTypeaheadParams: (table: VuuTable, column: string, text?: string, selectedValues?: string[]) => TypeaheadParams;
|
|
4
|
-
export declare const useTypeaheadSuggestions: () => SuggestionFetcher;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { DataSource, DataSourceVisualLinkCreatedMessage, MenuRpcResponse, ViewportRpcResponse, VuuUIMessageInRPCEditReject, VuuUIMessageInRPCEditResponse } from "@vuu-ui/vuu-data";
|
|
2
|
-
import { DataSourceRow, MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-data-types";
|
|
3
|
-
import { LinkDescriptorWithLabel, VuuMenu, VuuMenuItem, VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
4
|
-
import { ColumnMap } from "@vuu-ui/vuu-utils";
|
|
5
|
-
export declare const addRowsFromInstruments = "addRowsFromInstruments";
|
|
6
|
-
export interface VuuCellMenuItem extends VuuMenuItem {
|
|
7
|
-
rowKey: string;
|
|
8
|
-
field: string;
|
|
9
|
-
value: VuuRowDataItemType;
|
|
10
|
-
}
|
|
11
|
-
export interface VuuRowMenuItem extends VuuMenuItem {
|
|
12
|
-
rowKey: string;
|
|
13
|
-
row: {
|
|
14
|
-
[key: string]: VuuRowDataItemType;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export type VuuMenuActionHandler = (type: string, options: unknown) => boolean;
|
|
18
|
-
export interface ViewServerHookResult {
|
|
19
|
-
buildViewserverMenuOptions: MenuBuilder;
|
|
20
|
-
handleMenuAction: MenuActionHandler;
|
|
21
|
-
}
|
|
22
|
-
export interface MenuActionConfig {
|
|
23
|
-
vuuMenu?: VuuMenu;
|
|
24
|
-
visualLink?: DataSourceVisualLinkCreatedMessage;
|
|
25
|
-
visualLinks?: LinkDescriptorWithLabel[];
|
|
26
|
-
}
|
|
27
|
-
export type RpcResponseHandler = (response: MenuRpcResponse | VuuUIMessageInRPCEditReject | VuuUIMessageInRPCEditResponse | ViewportRpcResponse) => void;
|
|
28
|
-
export interface VuuMenuActionHookProps {
|
|
29
|
-
/**
|
|
30
|
-
* By default, vuuMenuActions will be handled automatically. When activated, a
|
|
31
|
-
* message will be sent to server and response will be handled here too.
|
|
32
|
-
* This prop allows client to provide a custom handler for a menu Item. This will
|
|
33
|
-
* take priority and if handler returns true, no further processing for the menu
|
|
34
|
-
* item will be handled by Vuu. This can also be used to prevent an item from being
|
|
35
|
-
* actioned, even when no custom handling is intended. If the handler returns false,
|
|
36
|
-
* Vuu will process the menuItem.
|
|
37
|
-
*/
|
|
38
|
-
clientSideMenuActionHandler?: VuuMenuActionHandler;
|
|
39
|
-
dataSource: DataSource;
|
|
40
|
-
menuActionConfig?: MenuActionConfig;
|
|
41
|
-
onRpcResponse?: RpcResponseHandler;
|
|
42
|
-
}
|
|
43
|
-
export type VuuServerMenuOptions = {
|
|
44
|
-
columnMap: ColumnMap;
|
|
45
|
-
columnName: string;
|
|
46
|
-
row: DataSourceRow;
|
|
47
|
-
selectedRows: DataSourceRow[];
|
|
48
|
-
viewport: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const useVuuMenuActions: ({ clientSideMenuActionHandler, dataSource, menuActionConfig, onRpcResponse, }: VuuMenuActionHookProps) => ViewServerHookResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./hooks";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|