dhx-react-suite 1.0.6 → 1.0.7

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/dist/index.d.ts CHANGED
@@ -539,21 +539,25 @@ export declare interface ToolbarProps {
539
539
  style?: React.CSSProperties;
540
540
  }
541
541
 
542
- export declare function Tree({ data, checkbox, editable, onSelect, onCheck, style }: TreeProps): JSX_2.Element;
542
+ export declare function Tree({ data, checkbox, editable, dragMode, tooltip, onSelect, onCheck, onChange, style, }: TreeProps): JSX_2.Element;
543
543
 
544
544
  export declare interface TreeNode {
545
545
  id: string;
546
546
  value?: string;
547
547
  count?: number;
548
548
  items?: TreeNode[];
549
+ opened?: boolean;
549
550
  }
550
551
 
551
552
  export declare interface TreeProps {
552
553
  data?: TreeNode[];
553
554
  checkbox?: boolean;
554
555
  editable?: boolean;
556
+ dragMode?: "both" | "move" | "copy";
557
+ tooltip?: (node: TreeNode) => string;
555
558
  onSelect?: (node: TreeNode) => void;
556
559
  onCheck?: (id: string, checked: boolean) => void;
560
+ onChange?: (data: TreeNode[]) => void;
557
561
  style?: React.CSSProperties;
558
562
  }
559
563
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-react-suite",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "TypeScript ui-components",
5
5
  "type": "module",
6
6
  "main": "./dist/dhx-react-suite.umd.cjs",