@vuu-ui/vuu-data-types 0.8.59 → 0.8.61

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 +8 -1
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -380,6 +380,7 @@ export type DataSourceStatus =
380
380
  | "unsubscribed";
381
381
 
382
382
  export type SuggestionFetcher = (params: TypeaheadParams) => Promise<string[]>;
383
+ export type SuggestionProvider = () => SuggestionFetcher;
383
384
 
384
385
  export interface TypeaheadSuggestionProvider {
385
386
  getTypeaheadSuggestions: (
@@ -428,7 +429,13 @@ export interface DataSource
428
429
  resume?: () => void;
429
430
 
430
431
  deleteRow?: DataSourceDeleteHandler;
431
-
432
+ /**
433
+ * create a DataSource on a session table. The concrete DataSource implementation that
434
+ * implements this method will always return a session table datasource of the same concrete type.
435
+ * @param table the sessionTable (module and table name)
436
+ * @returns
437
+ */
438
+ createSessionDataSource?: (table: VuuTable) => DataSource;
432
439
  /**
433
440
  * For a dataSource that has been previously disabled and is currently in disabled state , this will restore
434
441
  * the subscription to active status. Fresh data will be dispatched to client. The enable call optionally
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-data-types",
3
- "version": "0.8.59",
3
+ "version": "0.8.61",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-filter-types": "0.8.59",
8
- "@vuu-ui/vuu-protocol-types": "0.8.59"
7
+ "@vuu-ui/vuu-filter-types": "0.8.61",
8
+ "@vuu-ui/vuu-protocol-types": "0.8.61"
9
9
  },
10
10
  "dependencies": {},
11
11
  "peerDependencies": {},