@vuu-ui/vuu-data-types 0.9.0 → 0.9.1

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 -7
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -468,7 +468,7 @@ export declare type RowSelectionEventHandler = (
468
468
 
469
469
  export declare type DataSourceEvents = {
470
470
  config: (
471
- config: DataSourceConfig | undefined,
471
+ config: WithBaseFilter<WithFullConfig>,
472
472
  confirmed?: boolean,
473
473
  configChanges?: DataSourceConfigChanges,
474
474
  ) => void;
@@ -576,9 +576,9 @@ export interface DataSource
576
576
  */
577
577
  preserveExistingConfigAttributes?: boolean,
578
578
  ) => DataSourceConfigChanges | undefined;
579
- closeTreeNode: (key: string, cascade?: boolean) => void;
579
+ closeTreeNode: (keyOrIndex: string | number, cascade?: boolean) => void;
580
580
  columns: string[];
581
- config: WithBaseFilter<DataSourceConfig>;
581
+ config: WithBaseFilter<WithFullConfig>;
582
582
  status: DataSourceStatus;
583
583
  /**
584
584
  *
@@ -627,6 +627,8 @@ export interface DataSource
627
627
  * @returns
628
628
  */
629
629
  getChildRows?: (rowKey: string) => DataSourceRow[];
630
+
631
+ getRowAtIndex?: (rowIndex: number) => DataSourceRow | undefined;
630
632
  /**
631
633
  * Only implemented on JSON DataSource
632
634
  * @param depth
@@ -634,7 +636,7 @@ export interface DataSource
634
636
  * @returns
635
637
  */
636
638
  getRowsAtDepth?: (depth: number, visibleOnly?: boolean) => DataSourceRow[];
637
- groupBy: VuuGroupBy;
639
+ groupBy?: VuuGroupBy;
638
640
  insertRow?: DataSourceInsertHandler;
639
641
  links?: LinkDescriptorWithLabel[];
640
642
  menu?: VuuMenu;
@@ -646,7 +648,7 @@ export interface DataSource
646
648
  rpcCall?: <T extends VuuRpcResponse = VuuRpcResponse>(
647
649
  rpcRequest: Omit<VuuRpcRequest, "vpId">,
648
650
  ) => Promise<T>;
649
- openTreeNode: (key: string) => void;
651
+ openTreeNode: (keyOrIndex: string | number) => void;
650
652
  range: VuuRange;
651
653
  remoteProcedureCall: <T extends VuuRpcResponse = VuuRpcResponse>(
652
654
  message: VuuRpcRequest,
@@ -849,7 +851,8 @@ export interface VuuUIMessageOutViewRange extends ViewportMessageOut {
849
851
  };
850
852
  }
851
853
  export interface VuuUIMessageOutCloseTreeNode extends ViewportMessageOut {
852
- key: string;
854
+ index?: number;
855
+ key?: string;
853
856
  type: "closeTreeNode";
854
857
  }
855
858
  export interface VuuUIMessageOutRemoveLink extends ViewportMessageOut {
@@ -867,7 +870,8 @@ export interface VuuUIMessageOutEnable extends ViewportMessageOut {
867
870
  type: "enable";
868
871
  }
869
872
  export interface VuuUIMessageOutOpenTreeNode extends ViewportMessageOut {
870
- key: string;
873
+ index?: number;
874
+ key?: string;
871
875
  type: "openTreeNode";
872
876
  }
873
877
  export interface VuuUIMessageOutResume extends ViewportMessageOut {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-data-types",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-filter-types": "0.9.0",
8
- "@vuu-ui/vuu-protocol-types": "0.9.0"
7
+ "@vuu-ui/vuu-filter-types": "0.9.1",
8
+ "@vuu-ui/vuu-protocol-types": "0.9.1"
9
9
  },
10
10
  "dependencies": {},
11
11
  "peerDependencies": {},