-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from liam-hq/feat/group-nodes
✨ Grouping TableNodes without Relationships into a GroupNode and Applying a New Layout Definition
- Loading branch information
Showing
10 changed files
with
110 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@liam-hq/erd-core": patch | ||
"@liam-hq/cli": patch | ||
--- | ||
|
||
✨ Enhance node conversion functions to support hierarchical structure and layout options for NonRelatedTableGroup nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@liam-hq/erd-core": patch | ||
"@liam-hq/cli": patch | ||
--- | ||
|
||
✨ Add NonRelatedTableGroupNode component with styling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...nents/ERDRenderer/ERDContent/NonRelatedTableGroupNode/NonRelatedTableGroupNode.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.wrapper { | ||
width: 100%; | ||
height: 100%; | ||
opacity: 1; | ||
} | ||
|
||
:global([data-loading='true']) .wrapper { | ||
opacity: 0; | ||
} |
12 changes: 12 additions & 0 deletions
12
...c/components/ERDRenderer/ERDContent/NonRelatedTableGroupNode/NonRelatedTableGroupNode.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { Node } from '@xyflow/react' | ||
import type { FC } from 'react' | ||
import styles from './NonRelatedTableGroupNode.module.css' | ||
|
||
export type NonRelatedTableGroupNodeType = Node< | ||
Record<string, unknown>, | ||
'nonRelatedTableGroup' | ||
> | ||
|
||
export const NonRelatedTableGroupNode: FC = () => { | ||
return <div className={styles.wrapper} /> | ||
} |
1 change: 1 addition & 0 deletions
1
...packages/erd-core/src/components/ERDRenderer/ERDContent/NonRelatedTableGroupNode/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './NonRelatedTableGroupNode' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters