@elliemae/ds-treeview 3.51.0-next.1 → 3.51.0-next.12

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.
@@ -95,6 +95,11 @@ const TreeListWrapper = import_ds_system.styled.div`
95
95
  .em-ds-tree-item--dragging.em-ds-tree-item__addons.em-ds-icon {
96
96
  fill: ${({ theme }) => theme.colors.neutral["600"]};
97
97
  }
98
+
99
+ //Count displayer
100
+ .em-ds-tree-item-children-count-displayer {
101
+ color: ${({ theme }) => theme.colors.neutral["700"]};
102
+ }
98
103
  `;
99
104
  const compactRowClass = `${import_cssClassesConstants.DSTreeViewPrefix}-tv-row-size-compact`;
100
105
  const normaRowClass = `${import_cssClassesConstants.DSTreeViewPrefix}-tv-row-size-normal`;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/parts/TreeList.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';\nimport { styled } from '@elliemae/ds-system';\nimport TreeViewContext from '../TreeViewContext.js';\nimport { DSTreeViewPrefix, treeListBlockName } from '../config/cssClassesConstants.js';\nimport TreeItem from './TreeItem.js';\nimport type { DSTreeviewT } from '../react-desc-prop-types.js';\nimport { withConditionalDnDRowContext } from '../hoc/WithConditionalDnDContext.js';\nimport { DnDTreeContext } from '../hoc/DnDTreeContext.js';\n\nexport const treeListNoItemsBn = `${treeListBlockName}-no-items`;\nexport const TreeListNoItems = aggregatedClasses('div', {\n 'data-testid': treeListNoItemsBn,\n})(treeListNoItemsBn) as unknown as React.ComponentType<React.ComponentProps<'div'>>;\n\n// React.ComponentProps<'ul'> uses LegacyRef typings that existed pre-hook era\n// we omit the LegacyRef typings in favor of hook-era typings\ninterface UlProps extends Omit<React.ComponentProps<'ul'>, 'ref'> {\n ref: React.MutableRefObject<HTMLUListElement | undefined> | undefined;\n}\nconst LegacyTreeListWrapper = aggregatedClasses('ul', {\n 'data-testid': treeListBlockName,\n role: 'tree',\n})(treeListBlockName, null, ({ rowSize }: { rowSize: 'normal' | 'compact' }) => ({\n [`rowsize-${rowSize}`]: rowSize,\n})) as unknown as React.ComponentType<UlProps>;\n\nexport const TreeListWrapper = styled.div`\n width: max-content;\n height: 100%;\n\n // Item content\n .em-ds-tree-item.hover {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.hover.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n // DnD Handle\n .em-ds-icon.drag-handle {\n &[aria-disabled='true'] {\n cursor: not-allowed;\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n }\n\n // Item left icon\n .em-ds-icon.tree-item-icon.tree-item-icon-disabled {\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n\n // Rigth addons\n .em-ds-tree-item--dragging.em-ds-tree-item__addons.em-ds-icon {\n fill: ${({ theme }) => theme.colors.neutral['600']};\n }\n`;\n\nconst compactRowClass = `${DSTreeViewPrefix}-tv-row-size-compact`;\nconst normaRowClass = `${DSTreeViewPrefix}-tv-row-size-normal`;\n\ninterface PropsT {\n onMouseDragOverItem?: (opts: {\n event: React.MouseEvent<HTMLLIElement>;\n item: DSTreeviewT.Item;\n itemIndex: number;\n setIsDraggingOverThis: React.Dispatch<React.SetStateAction<boolean>>;\n openFolderOnHoverTimeout: React.MutableRefObject<NodeJS.Timeout | null>;\n }) => void;\n}\n\nconst TreeListComp: React.ComponentType<PropsT> = () => {\n const ctx = useContext(TreeViewContext);\n const {\n virtualListRef,\n virtualListHelpers,\n visibleItems: flattenedVisibleItems,\n props: { width, height, rowSize, noItemsPlaceholder, isLoading },\n } = ctx;\n const { totalSize, virtualItems } = virtualListHelpers;\n const className = `${rowSize === 'compact' ? `${compactRowClass}` : `${normaRowClass}`}`;\n\n const { visibleItems } = useContext(DnDTreeContext);\n\n return (\n <TreeListWrapper>\n <LegacyTreeListWrapper\n ref={virtualListRef}\n className={className}\n style={{\n height: `${typeof height === 'number' ? `${height}px` : height}`,\n width: `${typeof width === 'number' ? `${width}px` : width}`,\n overflow: 'auto',\n }}\n >\n {isLoading ? (\n <div\n style={{\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n }}\n >\n <DSCircularProgressIndicator size=\"xl\" loading={isLoading} showLabel waiting={false} showTooltip={false} />\n </div>\n ) : null}\n {!isLoading && virtualItems.length === 0 ? <TreeListNoItems>{noItemsPlaceholder}</TreeListNoItems> : null}\n {!isLoading && virtualItems.length !== 0 ? (\n <div\n style={{\n height: `${totalSize}px`,\n width: '100%',\n position: 'relative',\n }}\n >\n {virtualItems.map((virtualItem) => {\n const { index, measureRef, start } = virtualItem;\n const item = (visibleItems || flattenedVisibleItems)[index];\n if (!item) return null;\n item.virtualIndex = index;\n const { id } = item;\n\n const style = {\n position: 'absolute',\n top: `${start}px`,\n left: 0,\n width: '100%',\n };\n\n const listItemProps = {\n key: `DS-TreeView-List-Item-${id}`,\n virtualItemRef: measureRef,\n index, // this is consumed by the DnD HOC\n itemIndex: index,\n item,\n itemWrapperStyle: style,\n };\n\n return <TreeItem {...listItemProps} />;\n })}\n </div>\n ) : null}\n </LegacyTreeListWrapper>\n </TreeListWrapper>\n );\n};\n\nexport const TreeList = withConditionalDnDRowContext(TreeListComp);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmGjB;AAlGN,mBAAkC;AAClC,2BAAkC;AAClC,4CAA4C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ACV,KAAK,GAAG,KAAK;AAAA,gBACb,MAAM;AAAA,gBACN,OAAO;AAAA,cACT;AAEA,oBAAM,gBAAgB;AAAA,gBACpB,KAAK,yBAAyB,EAAE;AAAA,gBAChC,gBAAgB;AAAA,gBAChB;AAAA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA,kBAAkB;AAAA,cACpB;AAEA,qBAAO,4CAAC,gBAAAC,SAAA,EAAU,GAAG,eAAe;AAAA,YACtC,CAAC;AAAA;AAAA,QACH,IACE;AAAA;AAAA;AAAA,EACN,GACF;AAEJ;AAEO,MAAM,eAAW,+DAA6B,YAAY;",
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';\nimport { styled } from '@elliemae/ds-system';\nimport TreeViewContext from '../TreeViewContext.js';\nimport { DSTreeViewPrefix, treeListBlockName } from '../config/cssClassesConstants.js';\nimport TreeItem from './TreeItem.js';\nimport type { DSTreeviewT } from '../react-desc-prop-types.js';\nimport { withConditionalDnDRowContext } from '../hoc/WithConditionalDnDContext.js';\nimport { DnDTreeContext } from '../hoc/DnDTreeContext.js';\n\nexport const treeListNoItemsBn = `${treeListBlockName}-no-items`;\nexport const TreeListNoItems = aggregatedClasses('div', {\n 'data-testid': treeListNoItemsBn,\n})(treeListNoItemsBn) as unknown as React.ComponentType<React.ComponentProps<'div'>>;\n\n// React.ComponentProps<'ul'> uses LegacyRef typings that existed pre-hook era\n// we omit the LegacyRef typings in favor of hook-era typings\ninterface UlProps extends Omit<React.ComponentProps<'ul'>, 'ref'> {\n ref: React.MutableRefObject<HTMLUListElement | undefined> | undefined;\n}\nconst LegacyTreeListWrapper = aggregatedClasses('ul', {\n 'data-testid': treeListBlockName,\n role: 'tree',\n})(treeListBlockName, null, ({ rowSize }: { rowSize: 'normal' | 'compact' }) => ({\n [`rowsize-${rowSize}`]: rowSize,\n})) as unknown as React.ComponentType<UlProps>;\n\nexport const TreeListWrapper = styled.div`\n width: max-content;\n height: 100%;\n\n // Item content\n .em-ds-tree-item.hover {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.hover.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n // DnD Handle\n .em-ds-icon.drag-handle {\n &[aria-disabled='true'] {\n cursor: not-allowed;\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n }\n\n // Item left icon\n .em-ds-icon.tree-item-icon.tree-item-icon-disabled {\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n\n // Rigth addons\n .em-ds-tree-item--dragging.em-ds-tree-item__addons.em-ds-icon {\n fill: ${({ theme }) => theme.colors.neutral['600']};\n }\n\n //Count displayer\n .em-ds-tree-item-children-count-displayer {\n color: ${({ theme }) => theme.colors.neutral['700']};\n }\n`;\n\nconst compactRowClass = `${DSTreeViewPrefix}-tv-row-size-compact`;\nconst normaRowClass = `${DSTreeViewPrefix}-tv-row-size-normal`;\n\ninterface PropsT {\n onMouseDragOverItem?: (opts: {\n event: React.MouseEvent<HTMLLIElement>;\n item: DSTreeviewT.Item;\n itemIndex: number;\n setIsDraggingOverThis: React.Dispatch<React.SetStateAction<boolean>>;\n openFolderOnHoverTimeout: React.MutableRefObject<NodeJS.Timeout | null>;\n }) => void;\n}\n\nconst TreeListComp: React.ComponentType<PropsT> = () => {\n const ctx = useContext(TreeViewContext);\n const {\n virtualListRef,\n virtualListHelpers,\n visibleItems: flattenedVisibleItems,\n props: { width, height, rowSize, noItemsPlaceholder, isLoading },\n } = ctx;\n const { totalSize, virtualItems } = virtualListHelpers;\n const className = `${rowSize === 'compact' ? `${compactRowClass}` : `${normaRowClass}`}`;\n\n const { visibleItems } = useContext(DnDTreeContext);\n\n return (\n <TreeListWrapper>\n <LegacyTreeListWrapper\n ref={virtualListRef}\n className={className}\n style={{\n height: `${typeof height === 'number' ? `${height}px` : height}`,\n width: `${typeof width === 'number' ? `${width}px` : width}`,\n overflow: 'auto',\n }}\n >\n {isLoading ? (\n <div\n style={{\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n }}\n >\n <DSCircularProgressIndicator size=\"xl\" loading={isLoading} showLabel waiting={false} showTooltip={false} />\n </div>\n ) : null}\n {!isLoading && virtualItems.length === 0 ? <TreeListNoItems>{noItemsPlaceholder}</TreeListNoItems> : null}\n {!isLoading && virtualItems.length !== 0 ? (\n <div\n style={{\n height: `${totalSize}px`,\n width: '100%',\n position: 'relative',\n }}\n >\n {virtualItems.map((virtualItem) => {\n const { index, measureRef, start } = virtualItem;\n const item = (visibleItems || flattenedVisibleItems)[index];\n if (!item) return null;\n item.virtualIndex = index;\n const { id } = item;\n\n const style = {\n position: 'absolute',\n top: `${start}px`,\n left: 0,\n width: '100%',\n };\n\n const listItemProps = {\n key: `DS-TreeView-List-Item-${id}`,\n virtualItemRef: measureRef,\n index, // this is consumed by the DnD HOC\n itemIndex: index,\n item,\n itemWrapperStyle: style,\n };\n\n return <TreeItem {...listItemProps} />;\n })}\n </div>\n ) : null}\n </LegacyTreeListWrapper>\n </TreeListWrapper>\n );\n};\n\nexport const TreeList = withConditionalDnDRowContext(TreeListComp);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADwGjB;AAvGN,mBAAkC;AAClC,2BAAkC;AAClC,4CAA4C;AAC5C,uBAAuB;AACvB,6BAA4B;AAC5B,iCAAoD;AACpD,sBAAqB;AAErB,uCAA6C;AAC7C,4BAA+B;AAExB,MAAM,oBAAoB,GAAG,4CAAiB;AAC9C,M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AAA,gBACN,OAAO;AAAA,cACT;AAEA,oBAAM,gBAAgB;AAAA,gBACpB,KAAK,yBAAyB,EAAE;AAAA,gBAChC,gBAAgB;AAAA,gBAChB;AAAA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA,kBAAkB;AAAA,cACpB;AAEA,qBAAO,4CAAC,gBAAAC,SAAA,EAAU,GAAG,eAAe;AAAA,YACtC,CAAC;AAAA;AAAA,QACH,IACE;AAAA;AAAA;AAAA,EACN,GACF;AAEJ;AAEO,MAAM,eAAW,+DAA6B,YAAY;",
6
6
  "names": ["TreeViewContext", "TreeItem"]
7
7
  }
@@ -59,6 +59,11 @@ const TreeListWrapper = styled.div`
59
59
  .em-ds-tree-item--dragging.em-ds-tree-item__addons.em-ds-icon {
60
60
  fill: ${({ theme }) => theme.colors.neutral["600"]};
61
61
  }
62
+
63
+ //Count displayer
64
+ .em-ds-tree-item-children-count-displayer {
65
+ color: ${({ theme }) => theme.colors.neutral["700"]};
66
+ }
62
67
  `;
63
68
  const compactRowClass = `${DSTreeViewPrefix}-tv-row-size-compact`;
64
69
  const normaRowClass = `${DSTreeViewPrefix}-tv-row-size-normal`;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/TreeList.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';\nimport { styled } from '@elliemae/ds-system';\nimport TreeViewContext from '../TreeViewContext.js';\nimport { DSTreeViewPrefix, treeListBlockName } from '../config/cssClassesConstants.js';\nimport TreeItem from './TreeItem.js';\nimport type { DSTreeviewT } from '../react-desc-prop-types.js';\nimport { withConditionalDnDRowContext } from '../hoc/WithConditionalDnDContext.js';\nimport { DnDTreeContext } from '../hoc/DnDTreeContext.js';\n\nexport const treeListNoItemsBn = `${treeListBlockName}-no-items`;\nexport const TreeListNoItems = aggregatedClasses('div', {\n 'data-testid': treeListNoItemsBn,\n})(treeListNoItemsBn) as unknown as React.ComponentType<React.ComponentProps<'div'>>;\n\n// React.ComponentProps<'ul'> uses LegacyRef typings that existed pre-hook era\n// we omit the LegacyRef typings in favor of hook-era typings\ninterface UlProps extends Omit<React.ComponentProps<'ul'>, 'ref'> {\n ref: React.MutableRefObject<HTMLUListElement | undefined> | undefined;\n}\nconst LegacyTreeListWrapper = aggregatedClasses('ul', {\n 'data-testid': treeListBlockName,\n role: 'tree',\n})(treeListBlockName, null, ({ rowSize }: { rowSize: 'normal' | 'compact' }) => ({\n [`rowsize-${rowSize}`]: rowSize,\n})) as unknown as React.ComponentType<UlProps>;\n\nexport const TreeListWrapper = styled.div`\n width: max-content;\n height: 100%;\n\n // Item content\n .em-ds-tree-item.hover {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.hover.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n // DnD Handle\n .em-ds-icon.drag-handle {\n &[aria-disabled='true'] {\n cursor: not-allowed;\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n }\n\n // Item left icon\n .em-ds-icon.tree-item-icon.tree-item-icon-disabled {\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n\n // Rigth addons\n .em-ds-tree-item--dragging.em-ds-tree-item__addons.em-ds-icon {\n fill: ${({ theme }) => theme.colors.neutral['600']};\n }\n`;\n\nconst compactRowClass = `${DSTreeViewPrefix}-tv-row-size-compact`;\nconst normaRowClass = `${DSTreeViewPrefix}-tv-row-size-normal`;\n\ninterface PropsT {\n onMouseDragOverItem?: (opts: {\n event: React.MouseEvent<HTMLLIElement>;\n item: DSTreeviewT.Item;\n itemIndex: number;\n setIsDraggingOverThis: React.Dispatch<React.SetStateAction<boolean>>;\n openFolderOnHoverTimeout: React.MutableRefObject<NodeJS.Timeout | null>;\n }) => void;\n}\n\nconst TreeListComp: React.ComponentType<PropsT> = () => {\n const ctx = useContext(TreeViewContext);\n const {\n virtualListRef,\n virtualListHelpers,\n visibleItems: flattenedVisibleItems,\n props: { width, height, rowSize, noItemsPlaceholder, isLoading },\n } = ctx;\n const { totalSize, virtualItems } = virtualListHelpers;\n const className = `${rowSize === 'compact' ? `${compactRowClass}` : `${normaRowClass}`}`;\n\n const { visibleItems } = useContext(DnDTreeContext);\n\n return (\n <TreeListWrapper>\n <LegacyTreeListWrapper\n ref={virtualListRef}\n className={className}\n style={{\n height: `${typeof height === 'number' ? `${height}px` : height}`,\n width: `${typeof width === 'number' ? `${width}px` : width}`,\n overflow: 'auto',\n }}\n >\n {isLoading ? (\n <div\n style={{\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n }}\n >\n <DSCircularProgressIndicator size=\"xl\" loading={isLoading} showLabel waiting={false} showTooltip={false} />\n </div>\n ) : null}\n {!isLoading && virtualItems.length === 0 ? <TreeListNoItems>{noItemsPlaceholder}</TreeListNoItems> : null}\n {!isLoading && virtualItems.length !== 0 ? (\n <div\n style={{\n height: `${totalSize}px`,\n width: '100%',\n position: 'relative',\n }}\n >\n {virtualItems.map((virtualItem) => {\n const { index, measureRef, start } = virtualItem;\n const item = (visibleItems || flattenedVisibleItems)[index];\n if (!item) return null;\n item.virtualIndex = index;\n const { id } = item;\n\n const style = {\n position: 'absolute',\n top: `${start}px`,\n left: 0,\n width: '100%',\n };\n\n const listItemProps = {\n key: `DS-TreeView-List-Item-${id}`,\n virtualItemRef: measureRef,\n index, // this is consumed by the DnD HOC\n itemIndex: index,\n item,\n itemWrapperStyle: style,\n };\n\n return <TreeItem {...listItemProps} />;\n })}\n </div>\n ) : null}\n </LegacyTreeList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,oBAAM,EAAE,OAAO,YAAY,MAAM,IAAI;AACrC,oBAAM,QAAQ,gBAAgB,uBAAuB,KAAK;AAC1D,kBAAI,CAAC,KAAM,QAAO;AAClB,mBAAK,eAAe;AACpB,oBAAM,EAAE,GAAG,IAAI;AAEf,oBAAM,QAAQ;AAAA,gBACZ,UAAU;AAAA,gBACV,KAAK,GAAG,KAAK;AAAA,gBACb,MAAM;AAAA,gBACN,OAAO;AAAA,cACT;AAEA,oBAAM,gBAAgB;AAAA,gBACpB,KAAK,yBAAyB,EAAE;AAAA,gBAChC,gBAAgB;AAAA,gBAChB;AAAA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA,kBAAkB;AAAA,cACpB;AAEA,qBAAO,oBAAC,YAAU,GAAG,eAAe;AAAA,YACtC,CAAC;AAAA;AAAA,QACH,IACE;AAAA;AAAA;AAAA,EACN,GACF;AAEJ;AAEO,MAAM,WAAW,6BAA6B,YAAY;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';\nimport { styled } from '@elliemae/ds-system';\nimport TreeViewContext from '../TreeViewContext.js';\nimport { DSTreeViewPrefix, treeListBlockName } from '../config/cssClassesConstants.js';\nimport TreeItem from './TreeItem.js';\nimport type { DSTreeviewT } from '../react-desc-prop-types.js';\nimport { withConditionalDnDRowContext } from '../hoc/WithConditionalDnDContext.js';\nimport { DnDTreeContext } from '../hoc/DnDTreeContext.js';\n\nexport const treeListNoItemsBn = `${treeListBlockName}-no-items`;\nexport const TreeListNoItems = aggregatedClasses('div', {\n 'data-testid': treeListNoItemsBn,\n})(treeListNoItemsBn) as unknown as React.ComponentType<React.ComponentProps<'div'>>;\n\n// React.ComponentProps<'ul'> uses LegacyRef typings that existed pre-hook era\n// we omit the LegacyRef typings in favor of hook-era typings\ninterface UlProps extends Omit<React.ComponentProps<'ul'>, 'ref'> {\n ref: React.MutableRefObject<HTMLUListElement | undefined> | undefined;\n}\nconst LegacyTreeListWrapper = aggregatedClasses('ul', {\n 'data-testid': treeListBlockName,\n role: 'tree',\n})(treeListBlockName, null, ({ rowSize }: { rowSize: 'normal' | 'compact' }) => ({\n [`rowsize-${rowSize}`]: rowSize,\n})) as unknown as React.ComponentType<UlProps>;\n\nexport const TreeListWrapper = styled.div`\n width: max-content;\n height: 100%;\n\n // Item content\n .em-ds-tree-item.hover {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n .em-ds-tree-item.hover.selected {\n &[aria-disabled='true'] {\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n }\n }\n\n // DnD Handle\n .em-ds-icon.drag-handle {\n &[aria-disabled='true'] {\n cursor: not-allowed;\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n }\n\n // Item left icon\n .em-ds-icon.tree-item-icon.tree-item-icon-disabled {\n fill: ${({ theme }) => theme.colors.neutral['500']};\n }\n\n // Rigth addons\n .em-ds-tree-item--dragging.em-ds-tree-item__addons.em-ds-icon {\n fill: ${({ theme }) => theme.colors.neutral['600']};\n }\n\n //Count displayer\n .em-ds-tree-item-children-count-displayer {\n color: ${({ theme }) => theme.colors.neutral['700']};\n }\n`;\n\nconst compactRowClass = `${DSTreeViewPrefix}-tv-row-size-compact`;\nconst normaRowClass = `${DSTreeViewPrefix}-tv-row-size-normal`;\n\ninterface PropsT {\n onMouseDragOverItem?: (opts: {\n event: React.MouseEvent<HTMLLIElement>;\n item: DSTreeviewT.Item;\n itemIndex: number;\n setIsDraggingOverThis: React.Dispatch<React.SetStateAction<boolean>>;\n openFolderOnHoverTimeout: React.MutableRefObject<NodeJS.Timeout | null>;\n }) => void;\n}\n\nconst TreeListComp: React.ComponentType<PropsT> = () => {\n const ctx = useContext(TreeViewContext);\n const {\n virtualListRef,\n virtualListHelpers,\n visibleItems: flattenedVisibleItems,\n props: { width, height, rowSize, noItemsPlaceholder, isLoading },\n } = ctx;\n const { totalSize, virtualItems } = virtualListHelpers;\n const className = `${rowSize === 'compact' ? `${compactRowClass}` : `${normaRowClass}`}`;\n\n const { visibleItems } = useContext(DnDTreeContext);\n\n return (\n <TreeListWrapper>\n <LegacyTreeListWrapper\n ref={virtualListRef}\n className={className}\n style={{\n height: `${typeof height === 'number' ? `${height}px` : height}`,\n width: `${typeof width === 'number' ? `${width}px` : width}`,\n overflow: 'auto',\n }}\n >\n {isLoading ? (\n <div\n style={{\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n }}\n >\n <DSCircularProgressIndicator size=\"xl\" loading={isLoading} showLabel waiting={false} showTooltip={false} />\n </div>\n ) : null}\n {!isLoading && virtualItems.length === 0 ? <TreeListNoItems>{noItemsPlaceholder}</TreeListNoItems> : null}\n {!isLoading && virtualItems.length !== 0 ? (\n <div\n style={{\n height: `${totalSize}px`,\n width: '100%',\n position: 'relative',\n }}\n >\n {virtualItems.map((virtualItem) => {\n const { index, measureRef, start } = virtualItem;\n const item = (visibleItems || flattenedVisibleItems)[index];\n if (!item) return null;\n item.virtualIndex = index;\n const { id } = item;\n\n const style = {\n position: 'absolute',\n top: `${start}px`,\n left: 0,\n width: '100%',\n };\n\n const listItemProps = {\n key: `DS-TreeView-List-Item-${id}`,\n virtualItemRef: measureRef,\n index, // this is consumed by the DnD HOC\n itemIndex: index,\n item,\n itemWrapperStyle: style,\n };\n\n return <TreeItem {...listItemProps} />;\n })}\n </div>\n ) : null}\n </LegacyTreeListWrapper>\n </TreeListWrapper>\n );\n};\n\nexport const TreeList = withConditionalDnDRowContext(TreeListComp);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACwGjB,SAmBM,KAnBN;AAvGN,SAAgB,kBAAkB;AAClC,SAAS,yBAAyB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uB,KAAK;AAC1D,kBAAI,CAAC,KAAM,QAAO;AAClB,mBAAK,eAAe;AACpB,oBAAM,EAAE,GAAG,IAAI;AAEf,oBAAM,QAAQ;AAAA,gBACZ,UAAU;AAAA,gBACV,KAAK,GAAG,KAAK;AAAA,gBACb,MAAM;AAAA,gBACN,OAAO;AAAA,cACT;AAEA,oBAAM,gBAAgB;AAAA,gBACpB,KAAK,yBAAyB,EAAE;AAAA,gBAChC,gBAAgB;AAAA,gBAChB;AAAA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA,kBAAkB;AAAA,cACpB;AAEA,qBAAO,oBAAC,YAAU,GAAG,eAAe;AAAA,YACtC,CAAC;AAAA;AAAA,QACH,IACE;AAAA;AAAA;AAAA,EACN,GACF;AAEJ;AAEO,MAAM,WAAW,6BAA6B,YAAY;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-treeview",
3
- "version": "3.51.0-next.1",
3
+ "version": "3.51.0-next.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Tree View",
6
6
  "files": [
@@ -14,194 +14,6 @@
14
14
  "types": "./dist/types/index.d.ts",
15
15
  "import": "./dist/esm/index.js",
16
16
  "require": "./dist/cjs/index.js"
17
- },
18
- "./utils/useTree": {
19
- "import": "./dist/esm/utils/useTree.js",
20
- "require": "./dist/cjs/utils/useTree.js"
21
- },
22
- "./utils/useInstanceRefActions": {
23
- "import": "./dist/esm/utils/useInstanceRefActions.js",
24
- "require": "./dist/cjs/utils/useInstanceRefActions.js"
25
- },
26
- "./utils/tree-helpers": {
27
- "import": "./dist/esm/utils/tree-helpers.js",
28
- "require": "./dist/cjs/utils/tree-helpers.js"
29
- },
30
- "./utils/string-helpers": {
31
- "import": "./dist/esm/utils/string-helpers.js",
32
- "require": "./dist/cjs/utils/string-helpers.js"
33
- },
34
- "./utils/selectable-helper": {
35
- "import": "./dist/esm/utils/selectable-helper.js",
36
- "require": "./dist/cjs/utils/selectable-helper.js"
37
- },
38
- "./utils/refs-helpers": {
39
- "import": "./dist/esm/utils/refs-helpers.js",
40
- "require": "./dist/cjs/utils/refs-helpers.js"
41
- },
42
- "./utils/object-helpers": {
43
- "import": "./dist/esm/utils/object-helpers.js",
44
- "require": "./dist/cjs/utils/object-helpers.js"
45
- },
46
- "./utils/keyboard-helpers": {
47
- "import": "./dist/esm/utils/keyboard-helpers.js",
48
- "require": "./dist/cjs/utils/keyboard-helpers.js"
49
- },
50
- "./utils/group-expands-helpers": {
51
- "import": "./dist/esm/utils/group-expands-helpers.js",
52
- "require": "./dist/cjs/utils/group-expands-helpers.js"
53
- },
54
- "./utils/array-helpers": {
55
- "import": "./dist/esm/utils/array-helpers.js",
56
- "require": "./dist/cjs/utils/array-helpers.js"
57
- },
58
- "./TreeViewContext": {
59
- "import": "./dist/esm/TreeViewContext.js",
60
- "require": "./dist/cjs/TreeViewContext.js"
61
- },
62
- "./TreeView": {
63
- "import": "./dist/esm/TreeView.js",
64
- "require": "./dist/cjs/TreeView.js"
65
- },
66
- "./sharedTypes": {
67
- "import": "./dist/esm/sharedTypes.js",
68
- "require": "./dist/cjs/sharedTypes.js"
69
- },
70
- "./related-components/TreeViewSearchBar": {
71
- "import": "./dist/esm/related-components/TreeViewSearchBar.js",
72
- "require": "./dist/cjs/related-components/TreeViewSearchBar.js"
73
- },
74
- "./react-desc-prop-types": {
75
- "import": "./dist/esm/react-desc-prop-types.js",
76
- "require": "./dist/cjs/react-desc-prop-types.js"
77
- },
78
- "./plugins/virtualization/TreeVirtualizationPlugin": {
79
- "import": "./dist/esm/plugins/virtualization/TreeVirtualizationPlugin.js",
80
- "require": "./dist/cjs/plugins/virtualization/TreeVirtualizationPlugin.js"
81
- },
82
- "./plugins/virtualization": {
83
- "import": "./dist/esm/plugins/virtualization/index.js",
84
- "require": "./dist/cjs/plugins/virtualization/index.js"
85
- },
86
- "./plugins/tree/TreeDataPlugin": {
87
- "import": "./dist/esm/plugins/tree/TreeDataPlugin.js",
88
- "require": "./dist/cjs/plugins/tree/TreeDataPlugin.js"
89
- },
90
- "./plugins/tree": {
91
- "import": "./dist/esm/plugins/tree/index.js",
92
- "require": "./dist/cjs/plugins/tree/index.js"
93
- },
94
- "./plugins/toolbar/TreeToolbarPlugin": {
95
- "import": "./dist/esm/plugins/toolbar/TreeToolbarPlugin.js",
96
- "require": "./dist/cjs/plugins/toolbar/TreeToolbarPlugin.js"
97
- },
98
- "./plugins/toolbar": {
99
- "import": "./dist/esm/plugins/toolbar/index.js",
100
- "require": "./dist/cjs/plugins/toolbar/index.js"
101
- },
102
- "./plugins/selectable/SelectablePluginTree": {
103
- "import": "./dist/esm/plugins/selectable/SelectablePluginTree.js",
104
- "require": "./dist/cjs/plugins/selectable/SelectablePluginTree.js"
105
- },
106
- "./plugins/selectable": {
107
- "import": "./dist/esm/plugins/selectable/index.js",
108
- "require": "./dist/cjs/plugins/selectable/index.js"
109
- },
110
- "./plugins/searchable/SearchableTreePlugin": {
111
- "import": "./dist/esm/plugins/searchable/SearchableTreePlugin.js",
112
- "require": "./dist/cjs/plugins/searchable/SearchableTreePlugin.js"
113
- },
114
- "./plugins/searchable": {
115
- "import": "./dist/esm/plugins/searchable/index.js",
116
- "require": "./dist/cjs/plugins/searchable/index.js"
117
- },
118
- "./plugins/roving/TreeRovingPlugin": {
119
- "import": "./dist/esm/plugins/roving/TreeRovingPlugin.js",
120
- "require": "./dist/cjs/plugins/roving/TreeRovingPlugin.js"
121
- },
122
- "./plugins/roving": {
123
- "import": "./dist/esm/plugins/roving/index.js",
124
- "require": "./dist/cjs/plugins/roving/index.js"
125
- },
126
- "./plugins": {
127
- "import": "./dist/esm/plugins/index.js",
128
- "require": "./dist/cjs/plugins/index.js"
129
- },
130
- "./plugins/dnd/TreeDndPlugin": {
131
- "import": "./dist/esm/plugins/dnd/TreeDndPlugin.js",
132
- "require": "./dist/cjs/plugins/dnd/TreeDndPlugin.js"
133
- },
134
- "./plugins/dnd": {
135
- "import": "./dist/esm/plugins/dnd/index.js",
136
- "require": "./dist/cjs/plugins/dnd/index.js"
137
- },
138
- "./parts/TreeList": {
139
- "import": "./dist/esm/parts/TreeList.js",
140
- "require": "./dist/cjs/parts/TreeList.js"
141
- },
142
- "./parts/TreeItemText": {
143
- "import": "./dist/esm/parts/TreeItemText.js",
144
- "require": "./dist/cjs/parts/TreeItemText.js"
145
- },
146
- "./parts/TreeItem": {
147
- "import": "./dist/esm/parts/TreeItem.js",
148
- "require": "./dist/cjs/parts/TreeItem.js"
149
- },
150
- "./parts/RadioSelectable": {
151
- "import": "./dist/esm/parts/RadioSelectable.js",
152
- "require": "./dist/cjs/parts/RadioSelectable.js"
153
- },
154
- "./parts/NestingSpace": {
155
- "import": "./dist/esm/parts/NestingSpace.js",
156
- "require": "./dist/cjs/parts/NestingSpace.js"
157
- },
158
- "./parts/Icon": {
159
- "import": "./dist/esm/parts/Icon.js",
160
- "require": "./dist/cjs/parts/Icon.js"
161
- },
162
- "./parts/ExpandCaret": {
163
- "import": "./dist/esm/parts/ExpandCaret.js",
164
- "require": "./dist/cjs/parts/ExpandCaret.js"
165
- },
166
- "./parts/DropIndicator": {
167
- "import": "./dist/esm/parts/DropIndicator.js",
168
- "require": "./dist/cjs/parts/DropIndicator.js"
169
- },
170
- "./parts/DnDHandle": {
171
- "import": "./dist/esm/parts/DnDHandle.js",
172
- "require": "./dist/cjs/parts/DnDHandle.js"
173
- },
174
- "./parts/ChildrenCountDisplayer": {
175
- "import": "./dist/esm/parts/ChildrenCountDisplayer.js",
176
- "require": "./dist/cjs/parts/ChildrenCountDisplayer.js"
177
- },
178
- "./parts/CheckboxSelectable": {
179
- "import": "./dist/esm/parts/CheckboxSelectable.js",
180
- "require": "./dist/cjs/parts/CheckboxSelectable.js"
181
- },
182
- "./hoc/WithDnDSortableItemContext": {
183
- "import": "./dist/esm/hoc/WithDnDSortableItemContext.js",
184
- "require": "./dist/cjs/hoc/WithDnDSortableItemContext.js"
185
- },
186
- "./hoc/WithConditionalDnDContext": {
187
- "import": "./dist/esm/hoc/WithConditionalDnDContext.js",
188
- "require": "./dist/cjs/hoc/WithConditionalDnDContext.js"
189
- },
190
- "./hoc/SortableItemContext": {
191
- "import": "./dist/esm/hoc/SortableItemContext.js",
192
- "require": "./dist/cjs/hoc/SortableItemContext.js"
193
- },
194
- "./hoc/DnDTreeContext": {
195
- "import": "./dist/esm/hoc/DnDTreeContext.js",
196
- "require": "./dist/cjs/hoc/DnDTreeContext.js"
197
- },
198
- "./config/useTreeview": {
199
- "import": "./dist/esm/config/useTreeview.js",
200
- "require": "./dist/cjs/config/useTreeview.js"
201
- },
202
- "./config/cssClassesConstants": {
203
- "import": "./dist/esm/config/cssClassesConstants.js",
204
- "require": "./dist/cjs/config/cssClassesConstants.js"
205
17
  }
206
18
  },
207
19
  "sideEffects": [
@@ -213,8 +25,8 @@
213
25
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
214
26
  },
215
27
  "engines": {
216
- "pnpm": ">=6",
217
- "node": ">=16"
28
+ "pnpm": ">=9",
29
+ "node": ">=22"
218
30
  },
219
31
  "author": "ICE MT",
220
32
  "jestSonar": {
@@ -232,23 +44,23 @@
232
44
  "react-virtual": "~2.10.4",
233
45
  "tree-model": "~1.0.7",
234
46
  "uid": "~2.0.1",
235
- "@elliemae/ds-button-v2": "3.51.0-next.1",
236
- "@elliemae/ds-circular-progress-indicator": "3.51.0-next.1",
237
- "@elliemae/ds-classnames": "3.51.0-next.1",
238
- "@elliemae/ds-controlled-form": "3.51.0-next.1",
239
- "@elliemae/ds-drag-and-drop": "3.51.0-next.1",
240
- "@elliemae/ds-form": "3.51.0-next.1",
241
- "@elliemae/ds-icons": "3.51.0-next.1",
242
- "@elliemae/ds-props-helpers": "3.51.0-next.1",
243
- "@elliemae/ds-system": "3.51.0-next.1",
244
- "@elliemae/ds-truncated-tooltip-text": "3.51.0-next.1",
245
- "@elliemae/ds-typescript-helpers": "3.51.0-next.1"
47
+ "@elliemae/ds-circular-progress-indicator": "3.51.0-next.12",
48
+ "@elliemae/ds-classnames": "3.51.0-next.12",
49
+ "@elliemae/ds-controlled-form": "3.51.0-next.12",
50
+ "@elliemae/ds-drag-and-drop": "3.51.0-next.12",
51
+ "@elliemae/ds-form": "3.51.0-next.12",
52
+ "@elliemae/ds-button-v2": "3.51.0-next.12",
53
+ "@elliemae/ds-icons": "3.51.0-next.12",
54
+ "@elliemae/ds-props-helpers": "3.51.0-next.12",
55
+ "@elliemae/ds-truncated-tooltip-text": "3.51.0-next.12",
56
+ "@elliemae/ds-typescript-helpers": "3.51.0-next.12",
57
+ "@elliemae/ds-system": "3.51.0-next.12"
246
58
  },
247
59
  "devDependencies": {
248
- "@elliemae/pui-cli": "9.0.0-next.50",
60
+ "@elliemae/pui-cli": "9.0.0-next.55",
249
61
  "jest": "~29.7.0",
250
62
  "styled-components": "~5.3.9",
251
- "@elliemae/ds-monorepo-devops": "3.51.0-next.1"
63
+ "@elliemae/ds-monorepo-devops": "3.51.0-next.12"
252
64
  },
253
65
  "peerDependencies": {
254
66
  "lodash": "^4.17.21",