@vuu-ui/vuu-data-types 0.8.23-debug → 0.8.24-debug

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 +11 -14
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -16,7 +16,7 @@ import type {
16
16
  VuuSort,
17
17
  VuuTable,
18
18
  } from "@vuu-ui/vuu-protocol-types";
19
- import type { IEventEmitter } from "@vuu-ui/vuu-utils";
19
+ import type { DataSourceConfigChanges, IEventEmitter } from "@vuu-ui/vuu-utils";
20
20
  import type {
21
21
  DataSourceFilter,
22
22
  MenuRpcResponse,
@@ -323,7 +323,11 @@ export type SubscribeCallback = (message: DataSourceCallbackMessage) => void;
323
323
  export type OptimizeStrategy = "none" | "throttle" | "debounce";
324
324
 
325
325
  export type DataSourceEvents = {
326
- config: (config: DataSourceConfig | undefined, confirmed?: boolean) => void;
326
+ config: (
327
+ config: DataSourceConfig | undefined,
328
+ confirmed?: boolean,
329
+ configChanges?: DataSourceConfigChanges
330
+ ) => void;
327
331
  optimize: (optimize: OptimizeStrategy) => void;
328
332
  range: (range: VuuRange) => void;
329
333
  resize: (size: number) => void;
@@ -366,6 +370,8 @@ export type DataSourceStatus =
366
370
  | "suspended"
367
371
  | "unsubscribed";
368
372
 
373
+ export type SuggestionFetcher = (params: TypeaheadParams) => Promise<string[]>;
374
+
369
375
  export interface TypeaheadSuggestionProvider {
370
376
  getTypeaheadSuggestions: (
371
377
  columnName: string,
@@ -391,7 +397,9 @@ export interface DataSource
391
397
  * @param config DataSourceConfig
392
398
  * @returns true if config has been applied (will not be if existig config is same)
393
399
  */
394
- applyConfig: (config: DataSourceConfig) => true | undefined;
400
+ applyConfig: (
401
+ config: DataSourceConfig
402
+ ) => DataSourceConfigChanges | undefined;
395
403
  closeTreeNode: (key: string, cascade?: boolean) => void;
396
404
  columns: string[];
397
405
  config: DataSourceConfig;
@@ -704,15 +712,6 @@ export interface VuuUIMessageOutSuspend extends ViewportMessageOut {
704
712
  type: "suspend";
705
713
  }
706
714
 
707
- export interface VuuUIMessageOutFilter extends ViewportMessageOut {
708
- filter: DataSourceFilter;
709
- type: "filter";
710
- }
711
- export interface VuuUIMessageOutGroupby extends ViewportMessageOut {
712
- groupBy: VuuGroupBy;
713
- type: "groupBy";
714
- }
715
-
716
715
  export interface VuuUIMessageOutConfig extends ViewportMessageOut {
717
716
  config: WithFullConfig;
718
717
  type: "config";
@@ -724,10 +723,8 @@ export type VuuUIMessageOutViewport =
724
723
  | VuuUIMessageOutColumns
725
724
  | VuuUIMessageOutConfig
726
725
  | VuuUIMessageOutCreateLink
727
- | VuuUIMessageOutFilter
728
726
  | VuuUIMessageOutDisable
729
727
  | VuuUIMessageOutEnable
730
- | VuuUIMessageOutGroupby
731
728
  | VuuUIMessageOutOpenTreeNode
732
729
  | VuuUIMessageOutRemoveLink
733
730
  | VuuUIMessageOutResume
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-data-types",
3
- "version": "0.8.23-debug",
3
+ "version": "0.8.24-debug",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-filter-types": "0.8.23-debug",
8
- "@vuu-ui/vuu-protocol-types": "0.8.23-debug"
7
+ "@vuu-ui/vuu-filter-types": "0.8.24-debug",
8
+ "@vuu-ui/vuu-protocol-types": "0.8.24-debug"
9
9
  },
10
10
  "dependencies": {},
11
11
  "peerDependencies": {},