@elliemae/ds-treeview 3.53.1-rc.0 → 3.54.0-beta.2
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/cjs/package.json +4 -1
- package/dist/esm/package.json +4 -1
- package/dist/types/TreeViewContext.d.ts +0 -1
- package/dist/types/hoc/DnDTreeContext.d.ts +0 -1
- package/dist/types/hoc/SortableItemContext.d.ts +0 -1
- package/dist/types/parts/CheckboxSelectable.d.ts +0 -1
- package/dist/types/parts/ExpandCaret.d.ts +0 -1
- package/dist/types/parts/Icon.d.ts +0 -1
- package/dist/types/parts/NestingSpace.d.ts +0 -1
- package/dist/types/parts/TreeItem.d.ts +2 -2
- package/dist/types/parts/TreeItemText.d.ts +0 -1
- package/dist/types/parts/TreeList.d.ts +2 -3
- package/dist/types/react-desc-prop-types.d.ts +0 -1
- package/dist/types/utils/group-expands-helpers.d.ts +10 -10
- package/dist/types/utils/keyboard-helpers.d.ts +2 -2
- package/dist/types/utils/refs-helpers.d.ts +0 -1
- package/dist/types/utils/selectable-helper.d.ts +1 -1
- package/dist/types/utils/tree-helpers.d.ts +7 -9
- package/dist/types/utils/useTree.d.ts +0 -1
- package/package.json +15 -14
package/dist/cjs/package.json
CHANGED
package/dist/esm/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DSTreeviewT } from '../react-desc-prop-types.js';
|
|
3
|
-
export declare const TreeListItem: React.ComponentType<React.
|
|
4
|
-
export declare const TreeListItemAddonsWrapper: React.ComponentType<React.
|
|
3
|
+
export declare const TreeListItem: React.ComponentType<React.ComponentProps<"li">>;
|
|
4
|
+
export declare const TreeListItemAddonsWrapper: React.ComponentType<React.ComponentProps<"div">>;
|
|
5
5
|
interface PropsT {
|
|
6
6
|
item: DSTreeviewT.Item;
|
|
7
7
|
itemIndex: number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import type { DSTreeviewT } from '../react-desc-prop-types.js';
|
|
4
3
|
export declare const treeListNoItemsBn = "tree-list-no-items";
|
|
5
|
-
export declare const TreeListNoItems: React.ComponentType<React.
|
|
4
|
+
export declare const TreeListNoItems: React.ComponentType<React.ComponentProps<"div">>;
|
|
6
5
|
export declare const TreeListWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
|
|
7
|
-
$removeWidthMaxContent?: boolean
|
|
6
|
+
$removeWidthMaxContent?: boolean;
|
|
8
7
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
9
8
|
interface PropsT {
|
|
10
9
|
onMouseDragOverItem?: (opts: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { DSTreeviewT } from '../react-desc-prop-types.js';
|
|
2
2
|
import type { DSTreeviewInternalsT } from '../sharedTypes.js';
|
|
3
|
-
export declare const updateExpandedState: (treeRoot: DSTreeviewT.Item[
|
|
4
|
-
export declare const toggleItemExpand: (itemToToggle: DSTreeviewT.Item, triggerTreeRerender: () => void, updateUserExpandedState: DSTreeviewInternalsT.CTX[
|
|
5
|
-
export declare const expandItemModel: (modelToExpand: DSTreeviewT.Item[
|
|
6
|
-
export declare const collapseItemModel: (modelToCollapse: DSTreeviewT.Item[
|
|
7
|
-
export declare const expandAll: (treeRoot: DSTreeviewT.Item[
|
|
8
|
-
export declare const collapseAll: (treeRoot: DSTreeviewT.Item[
|
|
9
|
-
export declare const getToggleExpandShouldExpand: (treeRoot: DSTreeviewT.Item[
|
|
10
|
-
export declare const toggleExpandAllHelper: (isExpand: boolean |
|
|
3
|
+
export declare const updateExpandedState: (treeRoot: DSTreeviewT.Item["node"], onExpandChange: DSTreeviewT.Props["onExpandChange"] | null | undefined) => void;
|
|
4
|
+
export declare const toggleItemExpand: (itemToToggle: DSTreeviewT.Item, triggerTreeRerender: () => void, updateUserExpandedState: DSTreeviewInternalsT.CTX["updateUserExpandedState"], scrollTo?: DSTreeviewT.ScrollToFunc) => void;
|
|
5
|
+
export declare const expandItemModel: (modelToExpand: DSTreeviewT.Item["model"]) => void;
|
|
6
|
+
export declare const collapseItemModel: (modelToCollapse: DSTreeviewT.Item["model"]) => void;
|
|
7
|
+
export declare const expandAll: (treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void) => void;
|
|
8
|
+
export declare const collapseAll: (treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void) => void;
|
|
9
|
+
export declare const getToggleExpandShouldExpand: (treeRoot: DSTreeviewT.Item["node"]) => boolean;
|
|
10
|
+
export declare const toggleExpandAllHelper: (isExpand: boolean | "toggle", treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void, setLatestToggledItem: DSTreeviewInternalsT.CTX["setLatestToggledItem"], updateUserExpandedState: DSTreeviewInternalsT.CTX["updateUserExpandedState"]) => void;
|
|
11
11
|
export declare const useNotifyExpandedChange: (propsWithDefaults: DSTreeviewT.Props, { latestToggledItem, expandedGroups, }: {
|
|
12
|
-
latestToggledItem?: DSTreeviewInternalsT.CTX[
|
|
13
|
-
expandedGroups?: DSTreeviewInternalsT.CTX[
|
|
12
|
+
latestToggledItem?: DSTreeviewInternalsT.CTX["latestToggledItem"];
|
|
13
|
+
expandedGroups?: DSTreeviewInternalsT.CTX["expandedGroups"];
|
|
14
14
|
}) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DSTreeviewT } from '../react-desc-prop-types.js';
|
|
2
2
|
import type { DSTreeviewInternalsT } from '../sharedTypes.js';
|
|
3
3
|
import type { SortableItemContextType } from '../hoc/SortableItemContext.js';
|
|
4
|
-
export declare const useOnItemKeyDown: (item: DSTreeviewT.Item, draggableProps: SortableItemContextType[
|
|
4
|
+
export declare const useOnItemKeyDown: (item: DSTreeviewT.Item, draggableProps: SortableItemContextType["draggableProps"]) => (e: React.KeyboardEvent<HTMLLIElement>) => void;
|
|
5
5
|
export declare const useGlobalKeyboardListener: (func: (e: KeyboardEvent) => void) => void;
|
|
6
|
-
export declare const useGlobalToggleAllExpandShortcut: (treeRoot: DSTreeviewT.Item[
|
|
6
|
+
export declare const useGlobalToggleAllExpandShortcut: (treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void, setLatestToggledItem: DSTreeviewInternalsT.CTX["setLatestToggledItem"], updateUserExpandedState: DSTreeviewInternalsT.CTX["updateUserExpandedState"]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DSTreeviewT } from '../react-desc-prop-types.js';
|
|
2
|
-
export declare const getGroupCheckState: (node: DSTreeviewT.Item[
|
|
2
|
+
export declare const getGroupCheckState: (node: DSTreeviewT.Item["node"]) => boolean | "mixed";
|
|
3
3
|
export declare const selectCheckboxItemModelParentsTillRoot: (modelToCheck: DSTreeviewT.Item, triggerTreeRerender?: (() => void) | null) => DSTreeviewT.SelectionItems;
|
|
4
4
|
export declare const toggleCheckboxItem: (itemToSelect: DSTreeviewT.Item, currentlySelectedCheckboxes: DSTreeviewT.SelectionItems, triggerTreeRerender?: (() => void) | null) => {
|
|
5
5
|
[x: string]: DSTreeviewT.SelectionState;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import type TreeModel from 'tree-model';
|
|
2
2
|
import type { DSTreeviewT } from '../react-desc-prop-types.js';
|
|
3
|
-
export declare const walkVisibles: (node: DSTreeviewT.Item[
|
|
4
|
-
export declare const walkParents: (nodePath: DSTreeviewT.Item[
|
|
3
|
+
export declare const walkVisibles: (node: DSTreeviewT.Item["node"], callback: (node: DSTreeviewT.Item["node"]) => void, skipRoot?: boolean, highlightOnlyQuery?: boolean) => void;
|
|
4
|
+
export declare const walkParents: (nodePath: DSTreeviewT.Item["nodePath"], callback: (currParent: DSTreeviewT.Item["node"]) => void, skipRoot?: boolean) => void;
|
|
5
5
|
type RecursiveCallbackT = (childNode: DSTreeviewT.Item['node'], cb?: RecursiveCallbackT, isFirst?: boolean) => void;
|
|
6
|
-
export declare const walkAllNodeChildren: (node: DSTreeviewT.Item[
|
|
7
|
-
export declare const getNodeById: (treeRoot: DSTreeviewT.Item[
|
|
6
|
+
export declare const walkAllNodeChildren: (node: DSTreeviewT.Item["node"], callback: RecursiveCallbackT, isFirst?: boolean) => void;
|
|
7
|
+
export declare const getNodeById: (treeRoot: DSTreeviewT.Item["node"], id: DSTreeviewT.StringOrNum) => TreeModel.Node<DSTreeviewT.Item>;
|
|
8
8
|
export declare const cloneNode: (tree: TreeModel, node: DSTreeviewT.Item) => TreeModel.Node<DSTreeviewT.Item>;
|
|
9
9
|
export declare const itemsShareSameParent: (items?: DSTreeviewT.Item[]) => boolean;
|
|
10
|
-
export declare const getItemsParentNode: (items?: DSTreeviewT.Item[], skipSameParentCheck?: boolean) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const getNodeMatchesSearchQuery: (node: DSTreeviewT.Item['node'], searchQuery?: string) => boolean;
|
|
14
|
-
export declare const getChildrenMatchesSearchQuery: (parentNode: DSTreeviewT.Item['node'], searchQuery?: string) => boolean;
|
|
10
|
+
export declare const getItemsParentNode: (items?: DSTreeviewT.Item[], skipSameParentCheck?: boolean) => DSTreeviewT.Item["node"];
|
|
11
|
+
export declare const getNodeMatchesSearchQuery: (node: DSTreeviewT.Item["node"], searchQuery?: string) => boolean;
|
|
12
|
+
export declare const getChildrenMatchesSearchQuery: (parentNode: DSTreeviewT.Item["node"], searchQuery?: string) => boolean;
|
|
15
13
|
/**
|
|
16
14
|
* Mutate in place a node from tree-model normalizing object properties like "isGroup" even if user didn't specify it explicitly,
|
|
17
15
|
* after execution the node will have "nodePath" "treeDepth" "nodeItemRef" "isGroup" "isExpanded"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-treeview",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.54.0-beta.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Tree View",
|
|
6
6
|
"files": [
|
|
@@ -44,23 +44,24 @@
|
|
|
44
44
|
"react-virtual": "~2.10.4",
|
|
45
45
|
"tree-model": "~1.0.7",
|
|
46
46
|
"uid": "~2.0.1",
|
|
47
|
-
"@elliemae/ds-
|
|
48
|
-
"@elliemae/ds-
|
|
49
|
-
"@elliemae/ds-
|
|
50
|
-
"@elliemae/ds-controlled-form": "3.
|
|
51
|
-
"@elliemae/ds-drag-and-drop": "3.
|
|
52
|
-
"@elliemae/ds-
|
|
53
|
-
"@elliemae/ds-
|
|
54
|
-
"@elliemae/ds-
|
|
55
|
-
"@elliemae/ds-system": "3.
|
|
56
|
-
"@elliemae/ds-truncated-tooltip-text": "3.
|
|
57
|
-
"@elliemae/ds-typescript-helpers": "3.
|
|
47
|
+
"@elliemae/ds-circular-progress-indicator": "3.54.0-beta.2",
|
|
48
|
+
"@elliemae/ds-classnames": "3.54.0-beta.2",
|
|
49
|
+
"@elliemae/ds-button-v2": "3.54.0-beta.2",
|
|
50
|
+
"@elliemae/ds-controlled-form": "3.54.0-beta.2",
|
|
51
|
+
"@elliemae/ds-drag-and-drop": "3.54.0-beta.2",
|
|
52
|
+
"@elliemae/ds-props-helpers": "3.54.0-beta.2",
|
|
53
|
+
"@elliemae/ds-icons": "3.54.0-beta.2",
|
|
54
|
+
"@elliemae/ds-form": "3.54.0-beta.2",
|
|
55
|
+
"@elliemae/ds-system": "3.54.0-beta.2",
|
|
56
|
+
"@elliemae/ds-truncated-tooltip-text": "3.54.0-beta.2",
|
|
57
|
+
"@elliemae/ds-typescript-helpers": "3.54.0-beta.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@elliemae/pui-cli": "9.0.0-next.
|
|
60
|
+
"@elliemae/pui-cli": "9.0.0-next.65",
|
|
61
61
|
"jest": "~29.7.0",
|
|
62
62
|
"styled-components": "~5.3.9",
|
|
63
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
63
|
+
"@elliemae/ds-monorepo-devops": "3.54.0-beta.2",
|
|
64
|
+
"@elliemae/ds-test-utils": "3.54.0-beta.2"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
67
|
"lodash-es": "^4.17.21",
|