-
Notifications
You must be signed in to change notification settings - Fork 15
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 #19 from brasov2de/feature/datatypes
Feature/datatypes
- Loading branch information
Showing
20 changed files
with
3,559 additions
and
1,348 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,22 @@ | ||
{ | ||
"workbench.colorCustomizations": { | ||
"activityBar.activeBackground": "#ab307e", | ||
"activityBar.activeBorder": "#25320e", | ||
"activityBar.background": "#ab307e", | ||
"activityBar.foreground": "#e7e7e7", | ||
"activityBar.inactiveForeground": "#e7e7e799", | ||
"activityBarBadge.background": "#25320e", | ||
"activityBarBadge.foreground": "#e7e7e7", | ||
"statusBar.background": "#832561", | ||
"statusBar.foreground": "#e7e7e7", | ||
"statusBarItem.hoverBackground": "#ab307e", | ||
"titleBar.activeBackground": "#832561", | ||
"titleBar.activeForeground": "#e7e7e7", | ||
"titleBar.inactiveBackground": "#83256199", | ||
"titleBar.inactiveForeground": "#e7e7e799", | ||
"sash.hoverBorder": "#ab307e", | ||
"statusBarItem.remoteBackground": "#832561", | ||
"statusBarItem.remoteForeground": "#e7e7e7" | ||
}, | ||
"peacock.color": "#832561" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Icon } from '@fluentui/react/lib/Icon'; | ||
import * as React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { IGridColumn } from '../Generic/Hooks/useColumns'; | ||
import { ISetupSchemaValue } from '../Utils/interfaces'; | ||
|
||
export interface IColorfulCellItemProps { | ||
currentValue ?: number; | ||
currentDisplayName ?: string; | ||
metadataOptions : Map<string, ISetupSchemaValue> | undefined; | ||
displayTextType: "SIMPLE" | "BOX" | "BORDER" | "NOTEXT"; | ||
displayIconType : "NONE" | "NAME";//| "ENVIRONMENT"; | ||
defaultIcon: string; | ||
className ?: string; | ||
} | ||
|
||
export const ColorfulCellItem = function ColorfulCellItem({currentValue, currentDisplayName, metadataOptions, displayTextType, displayIconType, defaultIcon, className} : IColorfulCellItemProps) : JSX.Element{ | ||
if(currentValue==null){ | ||
return <div></div>; | ||
} | ||
let color = metadataOptions?.get(currentValue?.toString() ?? "")?.color ?? "gray"; | ||
if(color==="white"){ | ||
color = "gray" | ||
} | ||
const icon = metadataOptions?.get(currentValue?.toString() ?? "")?.icon ?? defaultIcon; | ||
const iconColor = displayTextType==="BOX" ? "white" : color; | ||
const renderIcon = displayIconType!=="NONE" ? <Icon className="colorIcon" style={{color: iconColor , marginRight: "5px"}} iconName={icon} aria-hidden="true" /> : ""; | ||
const style = { | ||
"BORDER" : { | ||
borderWidth: "1px", | ||
borderStyle: "solid", | ||
borderColor: color, | ||
color: color, | ||
borderRadius: "5px" | ||
}, | ||
"BOX" : { | ||
backgroundColor: color==="white" ? "gray" : color, color: iconColor, borderRadius: "5px" | ||
}, | ||
"SIMPLE" : { | ||
}, | ||
"NOTEXT": { | ||
cursor: "pointer" | ||
} | ||
}[displayTextType]; | ||
const content = currentDisplayName; | ||
const renderText = displayTextType!=="NOTEXT" ? <span className="cell">{content}</span> : "" | ||
return(<div className={className} style={style} title={content}> | ||
{renderIcon} | ||
{renderText} | ||
</div>); | ||
|
||
|
||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.