@vuu-ui/vuu-data-test 0.8.22-debug → 0.8.23-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 +147 -81
- package/cjs/index.js.map +4 -4
- package/esm/index.js +147 -81
- package/esm/index.js.map +4 -4
- package/package.json +3 -3
- package/types/index.d.ts +2 -0
- package/types/schemas.d.ts +2 -1
- package/types/simul/simul-schemas.d.ts +0 -9
- package/types/test/test-module.d.ts +4 -0
- package/types/test/test-schemas.d.ts +3 -0
- package/types/vuu-modules.d.ts +1 -1
- package/types/vuu-row-generator.d.ts +7 -4
- package/types/generatorTemplate.d.ts +0 -5
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.23-debug",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@vuu-ui/vuu-data-local": "0.8.
|
|
7
|
+
"@vuu-ui/vuu-data-local": "0.8.23-debug",
|
|
8
8
|
"@thomaschaplin/isin-generator": "1.0.3"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@vuu-ui/vuu-table-types": "0.8.
|
|
11
|
+
"@vuu-ui/vuu-table-types": "0.8.23-debug"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"cjs",
|
package/types/index.d.ts
CHANGED
|
@@ -6,3 +6,5 @@ export * from "./vuu-modules";
|
|
|
6
6
|
export { type BasketsTableName } from "./basket/basket-schemas";
|
|
7
7
|
export { createBasketTradingRow } from "./basket/basket-module";
|
|
8
8
|
export { type SimulTableName } from "./simul/simul-schemas";
|
|
9
|
+
export { type TestTableName } from "./test/test-schemas";
|
|
10
|
+
export * from "./Table";
|
package/types/schemas.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
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
|
+
import { type TestTableName } from "./test/test-schemas";
|
|
5
|
+
export type VuuTableName = BasketsTableName | SimulTableName | TestTableName;
|
|
5
6
|
export declare const schemas: Record<VuuTableName, TableSchema>;
|
|
6
7
|
export declare const getAllSchemas: () => Record<VuuTableName, TableSchema>;
|
|
7
8
|
export declare const getSchema: (tableName: VuuTableName) => Readonly<TableSchema>;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
1
|
import { TableSchema } from "@vuu-ui/vuu-data-types";
|
|
3
2
|
export type SimulTableName = "instruments" | "instrumentsExtended" | "instrumentPrices" | "orders" | "childOrders" | "parentOrders" | "prices";
|
|
4
3
|
export declare const schemas: Readonly<Record<SimulTableName, Readonly<TableSchema>>>;
|
|
5
|
-
export type ColumnState = {
|
|
6
|
-
[key: string]: TableSchema;
|
|
7
|
-
};
|
|
8
|
-
export interface ColumnActionUpdate {
|
|
9
|
-
type: "updateColumn";
|
|
10
|
-
column: ColumnDescriptor;
|
|
11
|
-
}
|
|
12
|
-
export type ColumnAction = ColumnActionUpdate;
|
package/types/vuu-modules.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataSource } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
import { SuggestionFetcher } from "@vuu-ui/vuu-data-react";
|
|
3
|
-
export type VuuModuleName = "BASKET" | "SIMUL";
|
|
3
|
+
export type VuuModuleName = "BASKET" | "SIMUL" | "TEST";
|
|
4
4
|
export interface VuuModule<T extends string = string> {
|
|
5
5
|
createDataSource: (tableName: T) => DataSource;
|
|
6
6
|
typeaheadHook: () => SuggestionFetcher;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
2
|
import { VuuRowDataItemType, VuuTable } from "@vuu-ui/vuu-protocol-types";
|
|
3
3
|
import { UpdateGenerator } from "./rowUpdates";
|
|
4
|
-
type
|
|
5
|
-
export
|
|
6
|
-
export type RowGeneratorFactory<T = VuuRowDataItemType> = (columns: string[]) => RowAtIndexFunc<T[]>;
|
|
4
|
+
type GenerateRowFunc = (index: number) => VuuRowDataItemType[];
|
|
5
|
+
export type RowGeneratorFactory = (columns: string[]) => GenerateRowFunc;
|
|
7
6
|
export type ColumnGeneratorFn = (columns?: number | string[], columnConfig?: {
|
|
8
7
|
[key: string]: Partial<ColumnDescriptor>;
|
|
9
8
|
}) => ColumnDescriptor[];
|
|
10
|
-
export declare const DefaultRowGenerator: RowGeneratorFactory
|
|
9
|
+
export declare const DefaultRowGenerator: RowGeneratorFactory;
|
|
11
10
|
export declare const DefaultColumnGenerator: ColumnGeneratorFn;
|
|
11
|
+
export declare const defaultGenerators: {
|
|
12
|
+
ColumnGenerator: ColumnGeneratorFn;
|
|
13
|
+
RowGenerator: RowGeneratorFactory;
|
|
14
|
+
};
|
|
12
15
|
export declare const getColumnAndRowGenerator: (table?: VuuTable) => [ColumnGeneratorFn, RowGeneratorFactory] | [ColumnGeneratorFn, RowGeneratorFactory, () => UpdateGenerator];
|
|
13
16
|
export declare const populateArray: (count: number, colGen: ColumnGeneratorFn, rowGen: RowGeneratorFactory, columns?: number | string[]) => VuuRowDataItemType[][];
|
|
14
17
|
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ColumnMap } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { VuuDataRow } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import { ColumnGeneratorFn, RowGeneratorFactory } from "./vuu-row-generator";
|
|
4
|
-
import { VuuTableName } from "./schemas";
|
|
5
|
-
export declare const getGenerators: (tableName: VuuTableName, columnMap: ColumnMap, data: VuuDataRow[]) => [RowGeneratorFactory, ColumnGeneratorFn];
|