-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(graph): change to sticky header on scroll
- Loading branch information
Showing
26 changed files
with
654 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export * from './lib/expand-targets/expand-targets.slice'; | ||
export * from './lib/select-target-group/select-target-group.slice'; | ||
export * from './lib/select-target/select-target.slice'; | ||
export * from './lib/root/root-state.initial'; | ||
export * from './lib/root/root-state.interface'; | ||
export * from './lib/root/root.reducer'; | ||
export * from './lib/root/root.store'; | ||
export * from './lib/store.decorator'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { EXPAND_TARGETS_KEY } from '../expand-targets/expand-targets.slice'; | ||
import { SELECT_TARGET_KEY } from '../select-target/select-target.slice'; | ||
|
||
export interface RootState { | ||
[EXPAND_TARGETS_KEY]: string[]; | ||
[SELECT_TARGET_KEY]: string; | ||
} |
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
31 changes: 0 additions & 31 deletions
31
graph/state/src/lib/select-target-group/select-target-group.slice.ts
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
import { PayloadAction, createSlice } from '@reduxjs/toolkit'; | ||
|
||
export const SELECT_TARGET_KEY = 'selectTarget'; | ||
|
||
export const initialSelectTarget: string = ''; | ||
|
||
export const selectTargetSlice = createSlice({ | ||
name: SELECT_TARGET_KEY, | ||
initialState: initialSelectTarget, | ||
reducers: { | ||
selectTarget: (_: string, action: PayloadAction<string>): string => { | ||
return action.payload; | ||
}, | ||
clearSelectedTarget: (): string => { | ||
return ''; | ||
}, | ||
}, | ||
}); | ||
|
||
/* | ||
* Export reducer for store configuration. | ||
*/ | ||
export const selectTargetReducer = selectTargetSlice.reducer; | ||
|
||
export const selectTargetActions = selectTargetSlice.actions; | ||
|
||
export const getSelectedTarget = <ROOT extends { [SELECT_TARGET_KEY]: string }>( | ||
rootState: ROOT | ||
): string => rootState[SELECT_TARGET_KEY]; |
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
Oops, something went wrong.