@vuu-ui/vuu-data-types 2.1.9 → 2.1.10
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 +10 -18
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -463,30 +463,27 @@ export declare type RowSelectionEventHandler = (
|
|
|
463
463
|
selectedRowCount: number,
|
|
464
464
|
) => void;
|
|
465
465
|
|
|
466
|
-
export
|
|
466
|
+
export type DataSourceConfigChangeHandler = (
|
|
467
467
|
config: ConfigWithVisualLink,
|
|
468
468
|
range: Range,
|
|
469
469
|
confirmed?: boolean,
|
|
470
470
|
configChanges?: DataSourceConfigChanges,
|
|
471
471
|
) => void;
|
|
472
472
|
|
|
473
|
-
export declare type RemoteUpdateHandler = (rows: DataSourceRow[]) => void;
|
|
474
|
-
|
|
475
473
|
export declare type DataSourceEvents = {
|
|
476
474
|
config: DataSourceConfigChangeHandler;
|
|
477
|
-
disabled: DataSourceEventHandler;
|
|
478
|
-
enabled: DataSourceEventHandler;
|
|
479
475
|
freeze: (isFrozen: boolean, freezeTimeStamp: number) => void;
|
|
480
476
|
optimize: (optimize: OptimizeStrategy) => void;
|
|
481
477
|
"page-count": (pageCount: number) => void;
|
|
482
478
|
range: (range: Range) => void;
|
|
483
479
|
resize: (size: number) => void;
|
|
484
|
-
resumed: DataSourceEventHandler;
|
|
485
|
-
"remote-update-during-local-edit": RemoteUpdateHandler;
|
|
486
480
|
"row-selection": RowSelectionEventHandler;
|
|
487
481
|
subscribed: (subscription: DataSourceSubscribedMessage) => void;
|
|
488
482
|
unsubscribed: DataSourceEventHandler;
|
|
489
483
|
suspended: DataSourceEventHandler;
|
|
484
|
+
resumed: DataSourceEventHandler;
|
|
485
|
+
disabled: DataSourceEventHandler;
|
|
486
|
+
enabled: DataSourceEventHandler;
|
|
490
487
|
"title-changed": (id: string, title: string) => void;
|
|
491
488
|
"visual-link-created": (message: DataSourceVisualLinkCreatedMessage) => void;
|
|
492
489
|
"visual-link-removed": () => void;
|
|
@@ -531,7 +528,7 @@ export declare type DataSourceStatus =
|
|
|
531
528
|
export declare type SuggestionFetcher = (
|
|
532
529
|
params: TypeaheadParams,
|
|
533
530
|
) => Promise<string[] | false>;
|
|
534
|
-
export
|
|
531
|
+
export type SuggestionProvider = () => SuggestionFetcher;
|
|
535
532
|
|
|
536
533
|
export interface TypeaheadSuggestionProvider {
|
|
537
534
|
getTypeaheadSuggestions: (
|
|
@@ -553,18 +550,16 @@ export declare type DataSourceSuspenseProps = {
|
|
|
553
550
|
* An inline edit session allows user to apply edits directly to
|
|
554
551
|
* the existing component. e.g. directly edit cells within a table.
|
|
555
552
|
*/
|
|
556
|
-
export
|
|
553
|
+
export type InlineEditSessionMode = "inline-all-rows";
|
|
557
554
|
/**
|
|
558
555
|
* A standalone edit session re-renders editable data in an edit component.
|
|
559
556
|
* e.g an edit panel may be displayed in a dialog.
|
|
560
557
|
*/
|
|
561
|
-
export
|
|
558
|
+
export type StandaloneEditSessionMode =
|
|
562
559
|
| "selected-rows"
|
|
563
560
|
| "all-rows"
|
|
564
561
|
| "empty-session-table";
|
|
565
|
-
export
|
|
566
|
-
| InlineEditSessionMode
|
|
567
|
-
| StandaloneEditSessionMode;
|
|
562
|
+
export type EditSessionMode = InlineEditSessionMode | StandaloneEditSessionMode;
|
|
568
563
|
|
|
569
564
|
export interface EditApi {
|
|
570
565
|
beginEditSession?: (
|
|
@@ -575,10 +570,7 @@ export interface EditApi {
|
|
|
575
570
|
colun: string,
|
|
576
571
|
value: VuuRowDataItemType,
|
|
577
572
|
) => Promise<RpcResult> | undefined;
|
|
578
|
-
endEditSession?: (
|
|
579
|
-
saveChanges?: boolean,
|
|
580
|
-
force?: boolean,
|
|
581
|
-
) => Promise<RpcResult> | undefined;
|
|
573
|
+
endEditSession?: (saveChanges?: boolean) => Promise<RpcResult> | undefined;
|
|
582
574
|
}
|
|
583
575
|
|
|
584
576
|
export interface DataSource
|
|
@@ -970,7 +962,7 @@ export declare type VuuUIMessageOut =
|
|
|
970
962
|
| WithRequestId<VuuTableListRequest | VuuTableMetaRequest>
|
|
971
963
|
| SelectRequest;
|
|
972
964
|
|
|
973
|
-
export
|
|
965
|
+
export type ConnectOptions = {
|
|
974
966
|
url: string;
|
|
975
967
|
token: string;
|
|
976
968
|
protocol?: WebSocketProtocol;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-types",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.10",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "2.1.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "2.1.
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "2.1.10",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "2.1.10"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|