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