@vuu-ui/vuu-data-types 2.1.19-beta.4 → 2.2.0
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/index.d.ts +27 -17
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -130,8 +130,8 @@ export declare type DecimalValueTypeSimple = "decimal" | "scaleddecimal";
|
|
|
130
130
|
export declare type DateTimeDataValueType =
|
|
131
131
|
| DateTimeColumnTypeSimple
|
|
132
132
|
| (Omit<DataValueTypeDescriptor, "name"> & {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
name: DateTimeColumnTypeSimple;
|
|
134
|
+
});
|
|
135
135
|
|
|
136
136
|
export declare type BulkEdit = "bulk" | false | "read-only";
|
|
137
137
|
|
|
@@ -191,18 +191,18 @@ type IsNew = boolean;
|
|
|
191
191
|
export declare type DataSourceRow<
|
|
192
192
|
T extends bigint | VuuRowDataItemType = VuuRowDataItemType,
|
|
193
193
|
> = [
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
];
|
|
194
|
+
RowIndex,
|
|
195
|
+
RenderKey,
|
|
196
|
+
IsLeaf,
|
|
197
|
+
IsExpanded,
|
|
198
|
+
Depth,
|
|
199
|
+
ChildCount,
|
|
200
|
+
RowKey,
|
|
201
|
+
IsSelected,
|
|
202
|
+
Timestamp,
|
|
203
|
+
IsNew,
|
|
204
|
+
...T[],
|
|
205
|
+
];
|
|
206
206
|
|
|
207
207
|
export declare type DataSourceRowWithBigint = DataSourceRow<
|
|
208
208
|
bigint | VuuRowDataItemType
|
|
@@ -400,9 +400,18 @@ export declare type TableSchemaTable = VuuTable & {
|
|
|
400
400
|
session?: string;
|
|
401
401
|
};
|
|
402
402
|
|
|
403
|
+
/**
|
|
404
|
+
* Restrictions imposed by server on scrolling operations.
|
|
405
|
+
*/
|
|
406
|
+
export declare type RangeLimits = {
|
|
407
|
+
maxRangeEnd: number;
|
|
408
|
+
maxRangeWidth: number;
|
|
409
|
+
}
|
|
410
|
+
|
|
403
411
|
export declare type TableSchema = {
|
|
404
412
|
columns: readonly SchemaColumn[];
|
|
405
413
|
key: readonly string;
|
|
414
|
+
rangeLimits?: RangeLimits;
|
|
406
415
|
table: readonly TableSchemaTable;
|
|
407
416
|
};
|
|
408
417
|
|
|
@@ -491,7 +500,7 @@ export declare type DataSourceEvents = {
|
|
|
491
500
|
optimize: (optimize: OptimizeStrategy) => void;
|
|
492
501
|
"page-count": (pageCount: number) => void;
|
|
493
502
|
range: (range: Range) => void;
|
|
494
|
-
resize: (size: number) => void;
|
|
503
|
+
resize: (size: number, maxScrollEnd?: number) => void;
|
|
495
504
|
resumed: DataSourceEventHandler;
|
|
496
505
|
"remote-update-during-local-edit": RemoteUpdateHandler;
|
|
497
506
|
"row-selection": RowSelectionEventHandler;
|
|
@@ -656,8 +665,8 @@ export declare type UndoRowChangeResult = {
|
|
|
656
665
|
export interface DataSourceBase<
|
|
657
666
|
T extends DataSourceRow | DataSourceRowWithBigint = DataSourceRow,
|
|
658
667
|
> extends EditApi<T>,
|
|
659
|
-
|
|
660
|
-
|
|
668
|
+
IEventEmitter<DataSourceEvents>,
|
|
669
|
+
Partial<TypeaheadSuggestionProvider> {
|
|
661
670
|
aggregations: VuuAggregation[];
|
|
662
671
|
closeTreeNode: (keyOrIndex: string | number, cascade?: boolean) => void;
|
|
663
672
|
columns: string[];
|
|
@@ -751,6 +760,7 @@ export interface DataSourceBase<
|
|
|
751
760
|
groupBy?: VuuGroupBy;
|
|
752
761
|
insertRow?: DataSourceInsertHandler;
|
|
753
762
|
links?: LinkDescriptorWithLabel[];
|
|
763
|
+
maxRangeEnd?: number;
|
|
754
764
|
menu?: VuuMenu;
|
|
755
765
|
menuRpcCall: (
|
|
756
766
|
rpcRequest: Omit<VuuRpcMenuRequest, "vpId">,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "2.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "2.
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "2.2.0",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "2.2.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|