-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added db management flow example
- Loading branch information
1 parent
297bc2b
commit 4a605a3
Showing
102 changed files
with
2,363 additions
and
772 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
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
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
181 changes: 77 additions & 104 deletions
181
projects/f-pro-examples/db-management-example/components/_flow-common.scss
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 |
---|---|---|
@@ -1,125 +1,98 @@ | ||
::ng-deep :root { | ||
--node-background-color: #ffffff; | ||
--node-border-radius: 2px; | ||
--node-border-color: rgba(60, 60, 67, 0.36); | ||
--node-color: rgba(60, 60, 67, 0.78); | ||
--node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); | ||
--db-font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, | ||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; | ||
|
||
--connection-color: rgba(60, 60, 67, 0.78); | ||
--connection-gradient-1: #915930; | ||
--connection-gradient-2: #18794e; | ||
--db-line-alignment-color: rgba(60, 60, 67, 0.56); | ||
|
||
--outlet-color: #3451b2; | ||
--input-output-color: rgba(60, 60, 67, 0.78); | ||
--db-node-background-color: #ffffff; | ||
--db-node-normal-state-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); | ||
--db-node-selected-state-shadow: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16); | ||
|
||
--minimap-background-color: #ffffff; | ||
--minimap-node-color: rgba(60, 60, 67); | ||
--minimap-node-selected-color: #3451b2; | ||
--minimap-view-color: rgba(100, 108, 255, 0.14); | ||
--db-node-header-normal-state-background-color: #e4e4e9; | ||
--db-node-header-selected-state-background-color: rgba(100, 108, 255, 0.24); | ||
--db-node-header-error-state-background-color: rgba(244, 63, 94, 0.14); | ||
|
||
&.dark { | ||
--node-background-color: #000000; | ||
--node-border-radius: 2px; | ||
--node-border-color: rgba(235, 235, 245, 0.38); | ||
--node-color: rgba(235, 235, 245, 0.6); | ||
--node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); | ||
|
||
--connection-color: rgba(235, 235, 245, 0.6); | ||
--connection-gradient-1: #f9b44e; | ||
--connection-gradient-2: #3dd68c; | ||
|
||
--outlet-color: #a8b1ff; | ||
--input-output-color: rgba(235, 235, 245, 0.6); | ||
|
||
--minimap-background-color: #1b1b1f; | ||
--minimap-node-color: rgba(255, 255, 245, 0.86); | ||
--minimap-node-selected-color: #a8b1ff; | ||
--minimap-view-color: rgba(100, 108, 255, 0.16); | ||
} | ||
} | ||
--db-node-text-color: rgba(60, 60, 67); | ||
|
||
--db-node-column-primary-key-color: #915930; | ||
--db-node-column-selected-state-color: var(--db-node-header-selected-state-background-color); | ||
|
||
@mixin minimap { | ||
.f-minimap { | ||
background-color: var(--minimap-background-color); | ||
bottom: 16px; | ||
right: 16px; | ||
width: 120px; | ||
height: 120px; | ||
--db-connection-normal-state-color: rgba(60, 60, 67); | ||
--db-connection-selected-state-color: #5672cd; | ||
|
||
.f-minimap-node { | ||
fill: var(--minimap-node-color); | ||
--db-connection-center-value-background-color: #ffffff; | ||
--db-connection-center-normal-state-text-color: rgba(60, 60, 67); | ||
--db-connection-center-selected-state-text-color: #5672cd; | ||
|
||
&.f-selected { | ||
fill: var(--minimap-node-selected-color); | ||
} | ||
} | ||
--db-background-component-color: rgba(0, 0, 0, 0.1); | ||
|
||
.f-minimap-view { | ||
fill: var(--minimap-view-color) | ||
} | ||
} | ||
} | ||
--db-selection-area-background-color: var(--db-node-header-selected-state-background-color); | ||
|
||
@mixin node { | ||
width: 100px; | ||
padding: 4px; | ||
color: var(--node-color); | ||
text-align: center; | ||
background: var(--node-background-color); | ||
border-radius: var(--node-border-radius); | ||
border: 0.2px solid var(--node-border-color); | ||
cursor: move; | ||
|
||
&:active { | ||
box-shadow: var(--node-shadow); | ||
} | ||
} | ||
--db-minimap-background-color: var(--db-node-background-color); | ||
--db-minimap-node-background-color: var(--db-node-text-color); | ||
--db-minimap-selected-node-background-color: #3451b2; | ||
--db-minimap-view-background-color: var(--db-node-header-selected-state-background-color); | ||
|
||
--db-filled-text-field-focused-container-color: var(--db-node-header-selected-state-background-color); | ||
--db-filled-text-field-error-container-color: var(--db-node-header-error-state-background-color); | ||
--db-text-field-input-text-color: var(--db-node-text-color); | ||
--db-select-field-text-color: rgba(60, 60, 67, 0.56); | ||
--db-select-panel-background-color: var(--db-node-background-color); | ||
--db-select-panel-shadow: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07); | ||
--db-select-option-selected-state-layer-color: var(--db-node-header-selected-state-background-color); | ||
--db-select-option-hover-state-layer-color: rgba(142, 150, 170, 0.14); | ||
--db-select-option-focus-state-layer-color: rgba(142, 150, 170, 0.14); | ||
|
||
@mixin connectors { | ||
--db-button-default-text: var(--db-node-text-color); | ||
--db-button-default-bg: #ebebef; | ||
--db-button-default-hover-bg: #e4e4e9; | ||
--db-button-default-active-bg: #dddde3; | ||
|
||
&.dark { | ||
--db-line-alignment-color: rgba(235, 235, 245, 0.38); | ||
|
||
.connectors-line { | ||
position: absolute; | ||
display: flex; | ||
justify-content: center; | ||
gap: 16px; | ||
width: calc(100% - 8px); | ||
--db-node-background-color: #000000; | ||
--db-node-normal-state-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); | ||
--db-node-selected-state-shadow: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16); | ||
|
||
.f-node-output, .f-node-input { | ||
width: 16px; | ||
height: 16px; | ||
border-radius: 50%; | ||
border: 0.2px solid var(--node-border-color); | ||
background-color: var(--node-background-color); | ||
} | ||
--db-node-header-normal-state-background-color: #414853; | ||
--db-node-header-selected-state-background-color: rgba(100, 108, 255, 0.26); | ||
--db-node-header-error-state-background-color: rgba(244, 63, 94, 0.16); | ||
|
||
&.top { | ||
top: -8px | ||
} | ||
--db-node-text-color: rgba(255, 255, 245, 0.86); | ||
|
||
&.bottom { | ||
bottom: -8px; | ||
} | ||
} | ||
} | ||
--db-node-column-primary-key-color: #f9b44e; | ||
--db-node-column-selected-state-color: var(--db-node-header-selected-state-background-color); | ||
|
||
--db-connection-normal-state-color: rgba(255, 255, 245, 0.86); | ||
--db-connection-selected-state-color: #3e63dd; | ||
|
||
--db-connection-center-value-background-color: #000000; | ||
--db-connection-center-normal-state-text-color: rgba(255, 255, 245, 0.86); | ||
--db-connection-center-selected-state-text-color: #3e63dd; | ||
|
||
--db-background-component-color: rgba(255, 255, 255, 0.1); | ||
|
||
--db-selection-area-background-color: var(--db-node-header-selected-state-background-color); | ||
|
||
--db-minimap-background-color: var(--db-node-background-color); | ||
--db-minimap-node-background-color: var(--db-node-text-color); | ||
--db-minimap-selected-node-background-color: #a8b1ff; | ||
--db-minimap-view-background-color: var(--db-node-header-selected-state-background-color); | ||
|
||
--db-filled-text-field-focused-container-color: var(--db-node-header-selected-state-background-color); | ||
--db-filled-text-field-error-container-color: var(--db-node-header-error-state-background-color); | ||
--db-text-field-input-text-color: var(--db-node-text-color); | ||
--db-select-field-text-color: rgba(235, 235, 245, 0.38); | ||
--db-select-panel-background-color: var(--db-node-background-color); | ||
--db-select-panel-shadow: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07); | ||
--db-select-option-selected-state-layer-color: var(--db-node-header-selected-state-background-color); | ||
--db-select-option-hover-state-layer-color: rgba(101, 117, 133, 0.16); | ||
--db-select-option-focus-state-layer-color: rgba(101, 117, 133, 0.16); | ||
|
||
@mixin toolbar { | ||
display: flex; | ||
justify-content: flex-end; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
gap: 8px; | ||
position: absolute; | ||
right: 16px; | ||
top: 16px; | ||
|
||
button { | ||
font-weight: 500; | ||
border: none; | ||
border-radius: 2px; | ||
padding: 4px 8px; | ||
line-height: normal; | ||
--db-button-default-text: var(--db-node-text-color); | ||
--db-button-default-bg: #32363f; | ||
--db-button-default-hover-bg: #414853; | ||
--db-button-default-active-bg: #515c67; | ||
} | ||
} |
Oops, something went wrong.