@vuu-ui/vuu-data-local 0.11.1 → 0.11.3
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/array-data-source/array-data-source.js +12 -9
- package/cjs/array-data-source/array-data-source.js.map +1 -1
- package/cjs/json-data-source/JsonDataSource.js +2 -2
- package/cjs/json-data-source/JsonDataSource.js.map +1 -1
- package/cjs/tree-data-source/TreeDataSource.js +1 -1
- package/cjs/tree-data-source/TreeDataSource.js.map +1 -1
- package/esm/array-data-source/array-data-source.js +13 -10
- package/esm/array-data-source/array-data-source.js.map +1 -1
- package/esm/json-data-source/JsonDataSource.js +3 -3
- package/esm/json-data-source/JsonDataSource.js.map +1 -1
- package/esm/tree-data-source/TreeDataSource.js +2 -2
- package/esm/tree-data-source/TreeDataSource.js.map +1 -1
- package/package.json +7 -7
- package/types/array-data-source/array-data-source.d.ts +8 -8
- package/types/json-data-source/JsonDataSource.d.ts +6 -6
- package/types/tree-data-source/TreeDataSource.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.11.
|
|
2
|
+
"version": "0.11.3",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@vuu-ui/vuu-data-types": "0.11.
|
|
7
|
-
"@vuu-ui/vuu-table-types": "0.11.
|
|
8
|
-
"@vuu-ui/vuu-filter-types": "0.11.
|
|
9
|
-
"@vuu-ui/vuu-protocol-types": "0.11.
|
|
6
|
+
"@vuu-ui/vuu-data-types": "0.11.3",
|
|
7
|
+
"@vuu-ui/vuu-table-types": "0.11.3",
|
|
8
|
+
"@vuu-ui/vuu-filter-types": "0.11.3",
|
|
9
|
+
"@vuu-ui/vuu-protocol-types": "0.11.3"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@vuu-ui/vuu-filter-parser": "0.11.
|
|
13
|
-
"@vuu-ui/vuu-utils": "0.11.
|
|
12
|
+
"@vuu-ui/vuu-filter-parser": "0.11.3",
|
|
13
|
+
"@vuu-ui/vuu-utils": "0.11.3"
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"files": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DataSource, DataSourceConfig, DataSourceConstructorProps, DataSourceEvents, DataSourceFilter, DataSourceRow, DataSourceStatus, Selection,
|
|
2
|
-
import type { LinkDescriptorWithLabel, VuuAggregation, VuuGroupBy, VuuMenu,
|
|
1
|
+
import { DataSource, DataSourceConfig, DataSourceConstructorProps, DataSourceEvents, DataSourceFilter, DataSourceRow, DataSourceStatus, Selection, DataSourceSubscribeCallback, DataSourceSubscribeProps, TableSchema, WithBaseFilter, WithFullConfig } from "@vuu-ui/vuu-data-types";
|
|
2
|
+
import type { LinkDescriptorWithLabel, VuuAggregation, VuuGroupBy, VuuMenu, VuuRowDataItemType, VuuRpcRequest, VuuRpcResponse, VuuSort } from "@vuu-ui/vuu-protocol-types";
|
|
3
3
|
import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
4
|
-
import { ColumnMap, DataSourceConfigChanges, EventEmitter } from "@vuu-ui/vuu-utils";
|
|
4
|
+
import { ColumnMap, DataSourceConfigChanges, EventEmitter, Range } from "@vuu-ui/vuu-utils";
|
|
5
5
|
export interface ArrayDataSourceConstructorProps extends Omit<DataSourceConstructorProps, "bufferSize" | "table"> {
|
|
6
6
|
columnDescriptors: ColumnDescriptor[];
|
|
7
7
|
data: Array<VuuRowDataItemType[]>;
|
|
@@ -34,10 +34,10 @@ export declare class ArrayDataSource extends EventEmitter<DataSourceEvents> impl
|
|
|
34
34
|
viewport: string;
|
|
35
35
|
protected processedData: DataSourceRow[] | undefined;
|
|
36
36
|
constructor({ aggregations, baseFilterSpec, columnDescriptors, data, dataMap, filterSpec, groupBy, keyColumn, rangeChangeRowset, sort, title, viewport, }: ArrayDataSourceConstructorProps);
|
|
37
|
-
subscribe({ viewport, columns, aggregations, baseFilterSpec, range, selectedIndexValues, selectedKeyValues, sort, groupBy, filterSpec, }:
|
|
37
|
+
subscribe({ viewport, columns, aggregations, baseFilterSpec, range, selectedIndexValues, selectedKeyValues, sort, groupBy, filterSpec, }: DataSourceSubscribeProps, callback: DataSourceSubscribeCallback): Promise<void>;
|
|
38
38
|
unsubscribe(): void;
|
|
39
39
|
suspend(): void;
|
|
40
|
-
resume(callback?:
|
|
40
|
+
resume(callback?: DataSourceSubscribeCallback): void;
|
|
41
41
|
disable(): void;
|
|
42
42
|
enable(): void;
|
|
43
43
|
select(selected: Selection): void;
|
|
@@ -58,8 +58,8 @@ export declare class ArrayDataSource extends EventEmitter<DataSourceEvents> impl
|
|
|
58
58
|
get columnMap(): ColumnMap;
|
|
59
59
|
get selectedRowsCount(): number;
|
|
60
60
|
get size(): number;
|
|
61
|
-
get range():
|
|
62
|
-
set range(range:
|
|
61
|
+
get range(): Range;
|
|
62
|
+
set range(range: Range);
|
|
63
63
|
getRowAtIndex(rowIndex: number): DataSourceRow | undefined;
|
|
64
64
|
protected delete(row: VuuRowDataItemType[]): void;
|
|
65
65
|
protected insert: (row: VuuRowDataItemType[]) => void;
|
|
@@ -84,7 +84,7 @@ export declare class ArrayDataSource extends EventEmitter<DataSourceEvents> impl
|
|
|
84
84
|
set groupBy(groupBy: VuuGroupBy);
|
|
85
85
|
get title(): string;
|
|
86
86
|
set title(title: string);
|
|
87
|
-
get _clientCallback():
|
|
87
|
+
get _clientCallback(): DataSourceSubscribeCallback | undefined;
|
|
88
88
|
createLink({ parentVpId, link: { fromColumn, toColumn }, }: LinkDescriptorWithLabel): void;
|
|
89
89
|
removeLink(): void;
|
|
90
90
|
applyEdit(rowKey: string, columnName: string, value: VuuRowDataItemType): Promise<true>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
|
-
import type { LinkDescriptorWithLabel, VuuGroupBy, VuuAggregation,
|
|
3
|
-
import type { DataSourceFilter, DataSourceRow, DataSource, DataSourceConstructorProps, DataSourceEvents, DataSourceStatus,
|
|
4
|
-
import { EventEmitter, JsonData } from "@vuu-ui/vuu-utils";
|
|
2
|
+
import type { LinkDescriptorWithLabel, VuuGroupBy, VuuAggregation, VuuSort, VuuRowDataItemType, VuuRpcResponse, VuuRpcRequest } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
+
import type { DataSourceFilter, DataSourceRow, DataSource, DataSourceConstructorProps, DataSourceEvents, DataSourceStatus, DataSourceSubscribeCallback, DataSourceSubscribeProps, WithFullConfig, Selection, MenuRpcResponse, VuuUIMessageInRPCEditReject, VuuUIMessageInRPCEditResponse } from "@vuu-ui/vuu-data-types";
|
|
4
|
+
import { EventEmitter, JsonData, Range } from "@vuu-ui/vuu-utils";
|
|
5
5
|
export interface JsonDataSourceConstructorProps extends Omit<DataSourceConstructorProps, "bufferSize" | "table"> {
|
|
6
6
|
data: JsonData;
|
|
7
7
|
}
|
|
@@ -15,7 +15,7 @@ export declare class JsonDataSource extends EventEmitter<DataSourceEvents> imple
|
|
|
15
15
|
viewport: string;
|
|
16
16
|
private keys;
|
|
17
17
|
constructor({ aggregations, data, filterSpec, groupBy, sort, title, viewport, }: JsonDataSourceConstructorProps);
|
|
18
|
-
subscribe({ viewport, columns, aggregations, range, sort, groupBy, filterSpec, }:
|
|
18
|
+
subscribe({ viewport, columns, aggregations, range, sort, groupBy, filterSpec, }: DataSourceSubscribeProps, callback: DataSourceSubscribeCallback): Promise<void>;
|
|
19
19
|
unsubscribe(): void;
|
|
20
20
|
suspend(): this;
|
|
21
21
|
resume(): this;
|
|
@@ -31,8 +31,8 @@ export declare class JsonDataSource extends EventEmitter<DataSourceEvents> imple
|
|
|
31
31
|
applyConfig(): import("@vuu-ui/vuu-utils").MaybeDataSourceConfigChanges;
|
|
32
32
|
get selectedRowsCount(): number;
|
|
33
33
|
get size(): number;
|
|
34
|
-
get range():
|
|
35
|
-
set range(range:
|
|
34
|
+
get range(): Range;
|
|
35
|
+
set range(range: Range);
|
|
36
36
|
private sendRowsToClient;
|
|
37
37
|
get columns(): string[];
|
|
38
38
|
set columns(columns: string[]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
2
|
import type { LinkDescriptorWithLabel, VuuRange, VuuRowDataItemType, VuuRpcResponse, VuuRpcRequest } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import type { DataSourceRow, DataSourceConstructorProps, DataSourceStatus,
|
|
3
|
+
import type { DataSourceRow, DataSourceConstructorProps, DataSourceStatus, DataSourceSubscribeCallback, DataSourceSubscribeProps, Selection, MenuRpcResponse, VuuUIMessageInRPCEditReject, VuuUIMessageInRPCEditResponse, DataSourceFilter } from "@vuu-ui/vuu-data-types";
|
|
4
4
|
import { BaseDataSource, TreeSourceNode } from "@vuu-ui/vuu-utils";
|
|
5
5
|
export interface TreeDataSourceConstructorProps extends Omit<DataSourceConstructorProps, "bufferSize" | "table"> {
|
|
6
6
|
data: TreeSourceNode[];
|
|
@@ -15,7 +15,7 @@ export declare class TreeDataSource extends BaseDataSource {
|
|
|
15
15
|
rowCount: number | undefined;
|
|
16
16
|
private keys;
|
|
17
17
|
constructor({ data, ...props }: TreeDataSourceConstructorProps);
|
|
18
|
-
subscribe({ aggregations, columns, range, revealSelected, selectedKeyValues, viewport, }:
|
|
18
|
+
subscribe({ aggregations, columns, range, revealSelected, selectedKeyValues, viewport, }: DataSourceSubscribeProps, callback: DataSourceSubscribeCallback): Promise<void>;
|
|
19
19
|
unsubscribe(): void;
|
|
20
20
|
suspend(): this;
|
|
21
21
|
resume(): this;
|