@vuu-ui/vuu-data-types 2.1.12 → 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.
Files changed (2) hide show
  1. package/index.d.ts +10 -24
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -437,12 +437,6 @@ export interface DataSourceConstructorProps
437
437
  */
438
438
  autosubscribeColumns?: string[];
439
439
  bufferSize?: number;
440
- /**
441
- * For datasources that support edit sessions, some services support an additional
442
- * column on session tables that will be used to return status information for a row
443
- * after an edit session is saved. Default is no additional column.
444
- */
445
- sessionTableMessageColumn?: string;
446
440
  suspenseProps?: DataSourceSuspenseProps;
447
441
  table: VuuTable;
448
442
  title?: string;
@@ -469,30 +463,27 @@ export declare type RowSelectionEventHandler = (
469
463
  selectedRowCount: number,
470
464
  ) => void;
471
465
 
472
- export declare type DataSourceConfigChangeHandler = (
466
+ export type DataSourceConfigChangeHandler = (
473
467
  config: ConfigWithVisualLink,
474
468
  range: Range,
475
469
  confirmed?: boolean,
476
470
  configChanges?: DataSourceConfigChanges,
477
471
  ) => void;
478
472
 
479
- export declare type RemoteUpdateHandler = (rows: DataSourceRow[]) => void;
480
-
481
473
  export declare type DataSourceEvents = {
482
474
  config: DataSourceConfigChangeHandler;
483
- disabled: DataSourceEventHandler;
484
- enabled: DataSourceEventHandler;
485
475
  freeze: (isFrozen: boolean, freezeTimeStamp: number) => void;
486
476
  optimize: (optimize: OptimizeStrategy) => void;
487
477
  "page-count": (pageCount: number) => void;
488
478
  range: (range: Range) => void;
489
479
  resize: (size: number) => void;
490
- resumed: DataSourceEventHandler;
491
- "remote-update-during-local-edit": RemoteUpdateHandler;
492
480
  "row-selection": RowSelectionEventHandler;
493
481
  subscribed: (subscription: DataSourceSubscribedMessage) => void;
494
482
  unsubscribed: DataSourceEventHandler;
495
483
  suspended: DataSourceEventHandler;
484
+ resumed: DataSourceEventHandler;
485
+ disabled: DataSourceEventHandler;
486
+ enabled: DataSourceEventHandler;
496
487
  "title-changed": (id: string, title: string) => void;
497
488
  "visual-link-created": (message: DataSourceVisualLinkCreatedMessage) => void;
498
489
  "visual-link-removed": () => void;
@@ -537,7 +528,7 @@ export declare type DataSourceStatus =
537
528
  export declare type SuggestionFetcher = (
538
529
  params: TypeaheadParams,
539
530
  ) => Promise<string[] | false>;
540
- export declare type SuggestionProvider = () => SuggestionFetcher;
531
+ export type SuggestionProvider = () => SuggestionFetcher;
541
532
 
542
533
  export interface TypeaheadSuggestionProvider {
543
534
  getTypeaheadSuggestions: (
@@ -559,18 +550,16 @@ export declare type DataSourceSuspenseProps = {
559
550
  * An inline edit session allows user to apply edits directly to
560
551
  * the existing component. e.g. directly edit cells within a table.
561
552
  */
562
- export declare type InlineEditSessionMode = "inline-all-rows";
553
+ export type InlineEditSessionMode = "inline-all-rows";
563
554
  /**
564
555
  * A standalone edit session re-renders editable data in an edit component.
565
556
  * e.g an edit panel may be displayed in a dialog.
566
557
  */
567
- export declare type StandaloneEditSessionMode =
558
+ export type StandaloneEditSessionMode =
568
559
  | "selected-rows"
569
560
  | "all-rows"
570
561
  | "empty-session-table";
571
- export declare type EditSessionMode =
572
- | InlineEditSessionMode
573
- | StandaloneEditSessionMode;
562
+ export type EditSessionMode = InlineEditSessionMode | StandaloneEditSessionMode;
574
563
 
575
564
  export interface EditApi {
576
565
  beginEditSession?: (
@@ -581,10 +570,7 @@ export interface EditApi {
581
570
  colun: string,
582
571
  value: VuuRowDataItemType,
583
572
  ) => Promise<RpcResult> | undefined;
584
- endEditSession?: (
585
- saveChanges?: boolean,
586
- force?: boolean,
587
- ) => Promise<RpcResult> | undefined;
573
+ endEditSession?: (saveChanges?: boolean) => Promise<RpcResult> | undefined;
588
574
  }
589
575
 
590
576
  export interface DataSource
@@ -976,7 +962,7 @@ export declare type VuuUIMessageOut =
976
962
  | WithRequestId<VuuTableListRequest | VuuTableMetaRequest>
977
963
  | SelectRequest;
978
964
 
979
- export declare type ConnectOptions = {
965
+ export type ConnectOptions = {
980
966
  url: string;
981
967
  token: string;
982
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.12",
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.12",
8
- "@vuu-ui/vuu-protocol-types": "2.1.12"
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": {},