treege 0.6.4 → 0.7.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.
- package/CHANGELOG.md +3 -2
- package/dist/components/DataDisplay/Icons/TreePlusIcon.d.ts +0 -1
- package/dist/components/DataDisplay/Logo/Logo.d.ts +0 -1
- package/dist/components/DataDisplay/ViewerJSON/ViewerJSON.d.ts +0 -1
- package/dist/components/DataDisplay/ViewerJSONAction/ViewerJSONAction.d.ts +0 -1
- package/dist/components/FeedBack/TreeModal/TreeModal.d.ts +1 -1
- package/dist/config/theme.d.ts +1 -1
- package/dist/context/Snackbar/SnackbarContext.d.ts +1 -1
- package/dist/features/Treege/Treege.d.ts +1 -2
- package/dist/features/Treege/components/ButtonCreateTree/ButtonCreateTree.d.ts +0 -1
- package/dist/features/Treege/components/FieldsSelect/FieldsSelect.d.ts +1 -2
- package/dist/features/Treege/components/Forms/FormTreeCardDelete/FormTreeCardDelete.d.ts +0 -1
- package/dist/features/Treege/components/Forms/FormTreeCardMutation/ExtraField.d.ts +1 -1
- package/dist/features/Treege/components/Forms/FormTreeCardMutation/FormTreeCardMutation.d.ts +0 -1
- package/dist/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +2 -2
- package/dist/features/Treege/components/TreeCardContainer/TreeCardContainer.d.ts +0 -1
- package/dist/features/Treege/components/TreeGrid/TreeGrid.d.ts +0 -1
- package/dist/features/Treege/components/TreeNameTextField/TreeNameTextField.d.ts +0 -1
- package/dist/features/Treege/components/TreeSelect/TreeSelect.d.ts +1 -2
- package/dist/features/Treege/components/TreeSelect/useTreeSelect.d.ts +1 -1
- package/dist/features/Treege/context/TreegeContext.d.ts +3 -3
- package/dist/features/Treege/type/TreeNode.d.ts +2 -3
- package/dist/main.js +4014 -4553
- package/dist/main.umd.cjs +34 -32
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
package/dist/config/theme.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { SelectChangeEvent } from "design-system-tracktor";
|
|
1
|
+
import { SelectChangeEvent } from "@tracktor/design-system";
|
|
3
2
|
import type { TreeNodeField } from '../../../../features/Treege/type/TreeNode';
|
|
4
3
|
interface FieldsSelectProps {
|
|
5
4
|
value: TreeNodeField["type"];
|
package/dist/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectChangeEvent } from "design-system
|
|
1
|
+
import type { SelectChangeEvent } from "@tracktor/design-system";
|
|
2
2
|
import { ChangeEvent, FormEvent } from "react";
|
|
3
3
|
import type { TreeNodeField } from '../../../../../features/Treege/type/TreeNode';
|
|
4
4
|
declare const useFormTreeCardMutation: () => {
|
|
@@ -40,7 +40,7 @@ declare const useFormTreeCardMutation: () => {
|
|
|
40
40
|
required: boolean;
|
|
41
41
|
step: string;
|
|
42
42
|
treeSelected: string;
|
|
43
|
-
type: "number" | "text" | "address" | "select" | "time" | "switch" | "hidden" | "
|
|
43
|
+
type: "number" | "text" | "address" | "select" | "time" | "switch" | "hidden" | "email" | "file" | "password" | "tel" | "url" | "date" | "checkbox" | "radio" | "tree";
|
|
44
44
|
uniqueNameErrorMessage: string;
|
|
45
45
|
values: {
|
|
46
46
|
id: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { TreeCustomNodeElementProps } from '../../../../features/Treege/type/TreeNode';
|
|
3
2
|
declare const TreeCardContainer: ({ nodeDatum, hierarchyPointNode, toggleNode, onNodeClick, onNodeMouseOver, onNodeMouseOut, }: TreeCustomNodeElementProps) => JSX.Element;
|
|
4
3
|
export default TreeCardContainer;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormControlProps, SelectChangeEvent } from "design-system-tracktor";
|
|
1
|
+
import { FormControlProps, SelectChangeEvent } from "@tracktor/design-system";
|
|
3
2
|
interface TreeSelectProps {
|
|
4
3
|
arrowOnly?: boolean;
|
|
5
4
|
size?: FormControlProps["size"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { SelectChangeEvent } from "design-system
|
|
2
|
+
import type { SelectChangeEvent } from "@tracktor/design-system";
|
|
3
3
|
declare const useTreeSelect: (isControlled: boolean) => {
|
|
4
4
|
currentTree: {
|
|
5
5
|
id?: string | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { HierarchyPointNode } from "d3-hierarchy";
|
|
2
2
|
import { ReducerAction, SetStateAction } from "react";
|
|
3
3
|
import type { TreeNode } from '../../../features/Treege/type/TreeNode';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ModalType = "add" | "edit" | "delete" | "save" | null;
|
|
5
|
+
type TreePath = {
|
|
6
6
|
path: string;
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type CurrentTree = {
|
|
10
10
|
id?: string;
|
|
11
11
|
name?: string;
|
|
12
12
|
errorName?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { HierarchyPointNode } from "d3-hierarchy";
|
|
3
2
|
import type { CustomNodeElementProps, RawNodeDatum } from "react-d3-tree/lib/types/common";
|
|
4
3
|
import type fields from '../../../constants/fields';
|
|
@@ -49,7 +48,7 @@ export interface TreeNodeValues {
|
|
|
49
48
|
repeatable?: never;
|
|
50
49
|
hiddenValue?: never;
|
|
51
50
|
}
|
|
52
|
-
export
|
|
51
|
+
export type TreeNodeAttributes = TreeNodeField | TreeNodeValues;
|
|
53
52
|
export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children"> {
|
|
54
53
|
name: string;
|
|
55
54
|
attributes: TreeNodeAttributes;
|
|
@@ -59,4 +58,4 @@ export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children">
|
|
|
59
58
|
export interface TreeCustomNodeElementProps extends Omit<CustomNodeElementProps, "hierarchyPointNode"> {
|
|
60
59
|
hierarchyPointNode: HierarchyPointNode<TreeNode>;
|
|
61
60
|
}
|
|
62
|
-
export
|
|
61
|
+
export type TreeRenderCustomNodeElementFn = (rd3tNodeProps: TreeCustomNodeElementProps) => JSX.Element;
|