@vuu-ui/vuu-data-types 2.1.13 → 2.1.15
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 -31
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -303,12 +303,6 @@ export interface DataSourceSortMessage extends MessageWithClientViewportId {
|
|
|
303
303
|
sort: VuuSort;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
export interface DataSourceSubscribeFailedMessage
|
|
307
|
-
extends MessageWithClientViewportId {
|
|
308
|
-
type: "subscribe-failed";
|
|
309
|
-
msg: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
306
|
export interface DataSourceSubscribedMessage
|
|
313
307
|
extends MessageWithClientViewportId {
|
|
314
308
|
aggregations: VuuAggregation[];
|
|
@@ -367,7 +361,6 @@ export declare type DataSourceCallbackMessage =
|
|
|
367
361
|
| DataSourceUnfrozenMessage
|
|
368
362
|
| DataSourceMenusMessage
|
|
369
363
|
| DataSourceSubscribedMessage
|
|
370
|
-
| DataSourceSubscribeFailedMessage
|
|
371
364
|
| DataSourceVisualLinkCreatedMessage
|
|
372
365
|
| DataSourceVisualLinkRemovedMessage
|
|
373
366
|
| DataSourceVisualLinksMessage
|
|
@@ -444,12 +437,6 @@ export interface DataSourceConstructorProps
|
|
|
444
437
|
*/
|
|
445
438
|
autosubscribeColumns?: string[];
|
|
446
439
|
bufferSize?: number;
|
|
447
|
-
/**
|
|
448
|
-
* For datasources that support edit sessions, some services support an additional
|
|
449
|
-
* column on session tables that will be used to return status information for a row
|
|
450
|
-
* after an edit session is saved. Default is no additional column.
|
|
451
|
-
*/
|
|
452
|
-
sessionTableMessageColumn?: string;
|
|
453
440
|
suspenseProps?: DataSourceSuspenseProps;
|
|
454
441
|
table: VuuTable;
|
|
455
442
|
title?: string;
|
|
@@ -476,30 +463,27 @@ export declare type RowSelectionEventHandler = (
|
|
|
476
463
|
selectedRowCount: number,
|
|
477
464
|
) => void;
|
|
478
465
|
|
|
479
|
-
export
|
|
466
|
+
export type DataSourceConfigChangeHandler = (
|
|
480
467
|
config: ConfigWithVisualLink,
|
|
481
468
|
range: Range,
|
|
482
469
|
confirmed?: boolean,
|
|
483
470
|
configChanges?: DataSourceConfigChanges,
|
|
484
471
|
) => void;
|
|
485
472
|
|
|
486
|
-
export declare type RemoteUpdateHandler = (rows: DataSourceRow[]) => void;
|
|
487
|
-
|
|
488
473
|
export declare type DataSourceEvents = {
|
|
489
474
|
config: DataSourceConfigChangeHandler;
|
|
490
|
-
disabled: DataSourceEventHandler;
|
|
491
|
-
enabled: DataSourceEventHandler;
|
|
492
475
|
freeze: (isFrozen: boolean, freezeTimeStamp: number) => void;
|
|
493
476
|
optimize: (optimize: OptimizeStrategy) => void;
|
|
494
477
|
"page-count": (pageCount: number) => void;
|
|
495
478
|
range: (range: Range) => void;
|
|
496
479
|
resize: (size: number) => void;
|
|
497
|
-
resumed: DataSourceEventHandler;
|
|
498
|
-
"remote-update-during-local-edit": RemoteUpdateHandler;
|
|
499
480
|
"row-selection": RowSelectionEventHandler;
|
|
500
481
|
subscribed: (subscription: DataSourceSubscribedMessage) => void;
|
|
501
482
|
unsubscribed: DataSourceEventHandler;
|
|
502
483
|
suspended: DataSourceEventHandler;
|
|
484
|
+
resumed: DataSourceEventHandler;
|
|
485
|
+
disabled: DataSourceEventHandler;
|
|
486
|
+
enabled: DataSourceEventHandler;
|
|
503
487
|
"title-changed": (id: string, title: string) => void;
|
|
504
488
|
"visual-link-created": (message: DataSourceVisualLinkCreatedMessage) => void;
|
|
505
489
|
"visual-link-removed": () => void;
|
|
@@ -544,7 +528,7 @@ export declare type DataSourceStatus =
|
|
|
544
528
|
export declare type SuggestionFetcher = (
|
|
545
529
|
params: TypeaheadParams,
|
|
546
530
|
) => Promise<string[] | false>;
|
|
547
|
-
export
|
|
531
|
+
export type SuggestionProvider = () => SuggestionFetcher;
|
|
548
532
|
|
|
549
533
|
export interface TypeaheadSuggestionProvider {
|
|
550
534
|
getTypeaheadSuggestions: (
|
|
@@ -566,18 +550,16 @@ export declare type DataSourceSuspenseProps = {
|
|
|
566
550
|
* An inline edit session allows user to apply edits directly to
|
|
567
551
|
* the existing component. e.g. directly edit cells within a table.
|
|
568
552
|
*/
|
|
569
|
-
export
|
|
553
|
+
export type InlineEditSessionMode = "inline-all-rows";
|
|
570
554
|
/**
|
|
571
555
|
* A standalone edit session re-renders editable data in an edit component.
|
|
572
556
|
* e.g an edit panel may be displayed in a dialog.
|
|
573
557
|
*/
|
|
574
|
-
export
|
|
558
|
+
export type StandaloneEditSessionMode =
|
|
575
559
|
| "selected-rows"
|
|
576
560
|
| "all-rows"
|
|
577
561
|
| "empty-session-table";
|
|
578
|
-
export
|
|
579
|
-
| InlineEditSessionMode
|
|
580
|
-
| StandaloneEditSessionMode;
|
|
562
|
+
export type EditSessionMode = InlineEditSessionMode | StandaloneEditSessionMode;
|
|
581
563
|
|
|
582
564
|
export interface EditApi {
|
|
583
565
|
beginEditSession?: (
|
|
@@ -588,10 +570,7 @@ export interface EditApi {
|
|
|
588
570
|
colun: string,
|
|
589
571
|
value: VuuRowDataItemType,
|
|
590
572
|
) => Promise<RpcResult> | undefined;
|
|
591
|
-
endEditSession?: (
|
|
592
|
-
saveChanges?: boolean,
|
|
593
|
-
force?: boolean,
|
|
594
|
-
) => Promise<RpcResult> | undefined;
|
|
573
|
+
endEditSession?: (saveChanges?: boolean) => Promise<RpcResult> | undefined;
|
|
595
574
|
}
|
|
596
575
|
|
|
597
576
|
export interface DataSource
|
|
@@ -983,7 +962,7 @@ export declare type VuuUIMessageOut =
|
|
|
983
962
|
| WithRequestId<VuuTableListRequest | VuuTableMetaRequest>
|
|
984
963
|
| SelectRequest;
|
|
985
964
|
|
|
986
|
-
export
|
|
965
|
+
export type ConnectOptions = {
|
|
987
966
|
url: string;
|
|
988
967
|
token: string;
|
|
989
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.15",
|
|
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.15",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "2.1.15"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|