@vuu-ui/vuu-data-local 3.3.11 → 4.0.0-alpha.2
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/package.json +8 -8
- package/src/tree-data-source/TreeDataSource.js +0 -1
- package/types/array-data-source/array-data-source.d.ts +3 -3
- package/types/array-data-source/group-utils.d.ts +1 -1
- package/types/array-data-source/sort-utils.d.ts +1 -1
- package/types/tree-data-source/TreeDataSource.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "4.0.0-alpha.2",
|
|
3
3
|
"main": "./src/index.js",
|
|
4
4
|
"author": "heswell",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"license": "Apache-2.0",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"build:dev": "node ../../scripts/run-build.mjs",
|
|
@@ -10,14 +11,14 @@
|
|
|
10
11
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
11
12
|
},
|
|
12
13
|
"devDependencies": {
|
|
13
|
-
"@vuu-ui/vuu-data-types": "
|
|
14
|
-
"@vuu-ui/vuu-table-types": "
|
|
15
|
-
"@vuu-ui/vuu-filter-types": "
|
|
16
|
-
"@vuu-ui/vuu-protocol-types": "
|
|
14
|
+
"@vuu-ui/vuu-data-types": "4.0.0-alpha.2",
|
|
15
|
+
"@vuu-ui/vuu-table-types": "4.0.0-alpha.2",
|
|
16
|
+
"@vuu-ui/vuu-filter-types": "4.0.0-alpha.2",
|
|
17
|
+
"@vuu-ui/vuu-protocol-types": "4.0.0-alpha.2"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
|
-
"@vuu-ui/vuu-filter-parser": "
|
|
20
|
-
"@vuu-ui/vuu-utils": "
|
|
20
|
+
"@vuu-ui/vuu-filter-parser": "4.0.0-alpha.2",
|
|
21
|
+
"@vuu-ui/vuu-utils": "4.0.0-alpha.2"
|
|
21
22
|
},
|
|
22
23
|
"sideEffects": false,
|
|
23
24
|
"files": [
|
|
@@ -33,6 +34,5 @@
|
|
|
33
34
|
},
|
|
34
35
|
"module": "./src/index.js",
|
|
35
36
|
"name": "@vuu-ui/vuu-data-local",
|
|
36
|
-
"type": "module",
|
|
37
37
|
"types": "types/index.d.ts"
|
|
38
38
|
}
|
|
@@ -61,7 +61,6 @@ class TreeDataSource extends BaseDataSource {
|
|
|
61
61
|
if (!data) throw Error("TreeDataSource constructor called without data");
|
|
62
62
|
this.#iconProvider = new IconProvider();
|
|
63
63
|
[this.columnDescriptors, this.#data] = treeToDataSourceRows(data, this.#iconProvider);
|
|
64
|
-
console.table(this.#data);
|
|
65
64
|
if (this.columnDescriptors) {
|
|
66
65
|
const columns = this.columnDescriptors.map((c)=>c.name);
|
|
67
66
|
this._configWithVisualLink = {
|
|
@@ -53,7 +53,7 @@ export declare class ArrayDataSource extends EventEmitter<DataSourceEvents> impl
|
|
|
53
53
|
get menu(): VuuMenu | undefined;
|
|
54
54
|
get status(): DataSourceStatus;
|
|
55
55
|
get data(): DataSourceRow<bigint | VuuRowDataItemType>[];
|
|
56
|
-
get currentData():
|
|
56
|
+
get currentData(): DataSourceRow<bigint | VuuRowDataItemType>[];
|
|
57
57
|
get table(): import("@vuu-ui/vuu-data-types").TableSchemaTable;
|
|
58
58
|
get columns(): string[];
|
|
59
59
|
set columns(columns: string[]);
|
|
@@ -74,8 +74,8 @@ export declare class ArrayDataSource extends EventEmitter<DataSourceEvents> impl
|
|
|
74
74
|
private insertIntoSortedData;
|
|
75
75
|
private validateDataValue;
|
|
76
76
|
protected updateDataItem: (keyValue: string, columnName: string, value: VuuRowDataItemType) => void;
|
|
77
|
-
getRowByKey(key: string):
|
|
78
|
-
getRowAtIndex(rowIndex: number):
|
|
77
|
+
getRowByKey(key: string): DataSourceRow<bigint | VuuRowDataItemType> | undefined;
|
|
78
|
+
getRowAtIndex(rowIndex: number): DataSourceRow<bigint | VuuRowDataItemType>;
|
|
79
79
|
indexOfRowWithKey: (key: string) => number;
|
|
80
80
|
protected update: (row: VuuRowDataItemType[], columnName: string) => void;
|
|
81
81
|
protected updateRow: (row: Array<bigint | VuuRowDataItemType>, _columnName?: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
import type { VuuGroupBy, VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import { ColumnMap } from "@vuu-ui/vuu-utils";
|
|
3
|
+
import { type ColumnMap } from "@vuu-ui/vuu-utils";
|
|
4
4
|
export type KeyList = number[];
|
|
5
5
|
export type GroupMap = {
|
|
6
6
|
[key: string]: GroupMap | KeyList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataSourceRowWithBigint } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
import type { VuuSort, VuuSortType } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import { ColumnMap } from "@vuu-ui/vuu-utils";
|
|
3
|
+
import type { ColumnMap } from "@vuu-ui/vuu-utils";
|
|
4
4
|
export type ColIndexSortDef = [number, VuuSortType];
|
|
5
5
|
type SortCompareResult = 0 | 1 | -1;
|
|
6
6
|
export type RowSortComparator = (item1: DataSourceRowWithBigint, item2: DataSourceRowWithBigint) => SortCompareResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
2
|
import type { LinkDescriptorWithLabel, VuuRange, VuuRpcResponse, VuuRpcRequest, SelectRequest } from "@vuu-ui/vuu-protocol-types";
|
|
3
3
|
import type { DataSourceRow, DataSourceConstructorProps, DataSourceStatus, DataSourceSubscribeCallback, DataSourceSubscribeProps, MenuRpcResponse, DataSourceFilter, DataSourceBase } from "@vuu-ui/vuu-data-types";
|
|
4
|
-
import { BaseDataSource, TreeSourceNode } from "@vuu-ui/vuu-utils";
|
|
4
|
+
import { BaseDataSource, type TreeSourceNode } from "@vuu-ui/vuu-utils";
|
|
5
5
|
export interface TreeDataSourceConstructorProps extends Omit<DataSourceConstructorProps, "bufferSize" | "table"> {
|
|
6
6
|
data: TreeSourceNode[];
|
|
7
7
|
}
|