@eccenca/gui-elements
Advanced tools
Changelog
[23.3.1] - 2023-11-15
<ContextOverlay />
portalClassName
to prevent runtime error in BlueprintJSChangelog
[23.3.0] - 2023-11-09
<PropertyName />
labelProps
: configure the automatically injected Label
element when PropertyName
is only a string<TextField />
escapeToBlur
: if set to true the input field blurs/de-focuces when the Escape
key is pressed.<CodeEditor />
jinja2
, yaml
and json
height
: set a fixed height of the editorwrapLines
: control auto-wrapping long lines (the default for wrap long lines is set to false now)<Modal />
modalFocusable
: when true
the outer div
element of the modal can be focused by clicking on it.
This is needed e.g. when key (down, up) events should trigger on the modal in order to bubble up to its parent elements.forceTopPosition
: when true
then the z-index
of the modal's portal element is recalculated, so that the modal is always displayed on top of all other visible elements. Use with care, see documentation.<ContextOverlay />
preventTopPosition
: when true then the z-index
is decreased to the value for modals. Use it when you need to display modal dialogs out of the context overlay. Type of counter property to Modal.forceTopPosition
.<ReactFlow />
Delete
etc.<HandleDefault />
category
options that lead to different handle layouts: dependency
, fixed
, flexible
and unknown
intent
option with defined colors for: primary, accent, info, success, warning, danger<HandleTools />
<NodeContent />
introductionTime
: can be used to visualize the node was added or updated<EdgeLabel />
loose
: can be set to true
to prevent the box with border on the label component<TableExpandHeader />
toggleIcon
: optional icon that should be displayed instead of the default ones.utils
getGlobalVar
and setGlobalVar
: can be used to manage global variables indepentently from component states. They are stored to the window
object under a eccgui
"namespace". Can be used for example to manage globally increased counters. Do not use them if you need to store user session properties or confidential data!artefact-chatlog
, entity-human
, entity-robot
and operation-magic
<SimpleDialog />
onContextMenu
, onDrag
, onDragStart
, onDragEnd
, onMouseDown
, onMouseUp
, onClick
wrapperDivProps
<ApplicationHeader />
--eccgui-appheader-color-background
in its style
attribute<Modal />
xlarge
size optionsmall
is displayed a bit smaller, large
a bit larger than before<Modal />
Escape
key to close does not work anymore after clicking on the backdrop for canOutsideClickClose=false
and canEscapeKeyClose=true
.<Spacing />
div
attributes, e.g. style
<PropertyValuePair />
Changelog
[23.2.0] - 2023-07-14
<SuggestField />
<AutoCompleteField />
fill=true
onlyDropdownWithQuery=false
<MultiSuggestField />
: will replace <MultiSelect />
clearQueryOnSelection
option to set an empty query after selectionsfullWidth=true
<CodeAutocompleteField />
: will replace <AutoSuggestion />
<Select />
:
onClearanceHandler
and onClearanceText
as options to include automatically a dedicated clearance button to the element<PropertyName />
size
option to increase/decrease width consumed by its display<EdgeLabel />
: use title
property on its text sub element<Application* />
elements now have defined and exposed interfaces<FieldSet />
element now have a defined and exposed interface<PropertyValue* />
elements now have defined and exposed interfaces<GridColumn />
carbonSizeConfig
property to overwrite automatically set column sizes by using the original size config from the Carbon component<TitleSubsection />
element now have a defined and exposed interfacesrc/components
are now exposed via @eccenca/gui-elements
src/extensions
are now exposed via @eccenca/gui-elements
src/cmem
are now exposed via @eccenca/gui-elements
<ApplicationToolbarPanel />
onLeave
and onOutsideClick
, could be used to close the menu panel automatically<Select />
:
fill=true
<SearchField />
package-json-validator
(not maintained anymore and disfunctional) - so currently there is not automatic check and validation of the package.json
fileeslint
, eslint-config-react-app
, @typescript-eslint/eslint-plugin
, @typescript-eslint/parser
- not directly necessary, they may be still installed by other sub packagespostcss
to at recent version to fix a moderate security vulnerabilitynode-gyp
, glob-parent
, trim
, trim-newlines
, minimist
- packages are not use, or resolution is not necessary anymore<ActivityControlWidget />
IActivityAction
interface was renamed to ActivityControlWidgetAction
<AutoSuggestion />
IProps
interface was renamed to AutoSuggestionProps
<AutoSuggestionList />
IDropdownProps
interface was renamed to AutoSuggestionListProps
<MultiSelect />
SelectedParamsType
interface was renamed to MultiSelectSelectionProps
<SingleLineCodeEditor />
IEditorProps
interface was renamed to SingleLineCodeEditorProps
<AlertDialog />
IAlertDialogProps
interface was renamed to AlertDialogProps
<WorkspaceHeader />
IWorkspaceHeaderProps
interface was renamed to WorkspaceHeaderProps
<NodeDefault />
NodeProps
interface was renamed to NodeDefaultProps
to justify naming convention<NodeContent />
IHandleProps
interface was renamed to NodeContentHandleProps
to justify naming conventionUtilities
obejct was renamed to utils
and enhanced with new functions: getColorConfiguration
, invisibleZeroWidthCharacters
<IconButton />
<SimpleDialog />
enforceFocus: false
is set by default, so that searchable selects keep focus on their search input field<BreadcrumbItem />
is not displayed clickable when it has no href
or onClick
property setSelect.ofType
method:
MyTypeSelect = Select.ofType<MyType>()
use directly <Select<MyType> {...props} />
<AutoCompleteField />
: use <SuggestField />
<MultiSelect />
SelectedParamsType
: renamed to MultiSelectSelectionProps
<MultiSuggestField />
insteadUtilities
object is now deprecated, use utils
insteadHelperClasses
object is now deprecated, use ClassNames
instead<ActivityControlWidget />
IActivityAction
: renamed to ActivityControlWidgetAction
<AutoCompleteField />
IRenderModifiers
: import from src/components/AutocompleteField/interfaces
IElementWidth
: import from src/components/AutocompleteField/interfaces
<AutoSuggestion />
<CodeAutocompleteField />
insteadIProps
interface is now deprecated, use CodeAutocompleteFieldProps
instead<AutoSuggestionList />
IDropdownProps
interface is now deprecated, use AutoSuggestionListProps
instead<SingleLineCodeEditor />
IEditorProps
interface is now deprecated, use SingleLineCodeEditorProps
instead<AlertDialog />
IAlertDialogProps
interface is now deprecated, use AlertDialogProps
instead<WorkspaceHeader />
IWorkspaceHeaderProps
interface is now deprecated, use WorkspaceHeaderProps
instead<NumericInput />
<TextField />
combined with correct type
.<Highlighter />
HighlighterFunctions
renamed to highlighterUtils
extractSearchWords
moved to highlighterUtils.extractSearchWords
matchesAllWords
moved to highlighterUtils.matchesAllWords
createMultiWordRegex
moved to highlighterUtils.createMultiWordRegex
<Icon />
findExistingIconName
: use iconUtils.findExistingIconName
<Spinner />
SpinnerPosition
: use SpinnerProps['position']
SpinnerSize
: use SpinnerProps['size']
SpinnerStroke
: use SpinnerProps['stroke']
ReactFlow
extensions
NodeProps
: renamed to NodeDefaultProps
minimapNodeClassName
: moved to miniMapUtils.nodeClassName
minimapNodeColor
: moved to miniMapUtils.nodeColor
nodeUtils
: renamed to nodeDefaultUtils
IHandleProps
: renamed to NodeContentHandleProps
NodeDimensions
: use NodeContentProps<any>['nodeDimensions']
HighlightingState
: use NodeContentProps<any>['highlightedState']
(or import from src/extensions/react-flow/nodes/sharedTypes
)ActivityControl
components:
IActivityControlLayoutProps
: renamed to SilkActivityControlLayoutProps
IActivityExecutionReport
: renamed to SilkActivityExecutionReportProps
ActivityControlTranslationKeys
: renamed to SilkActivityControlTranslationKeys
ActivityAction
: renamed to SilkActivityControlAction
IActivityControlProps
: renamed to ActivityControlWidgetProps
IActivityStatus
: renamed to SilkActivityStatusProps
ConcreteActivityStatus
: renamed to SilkActivityStatusConcrete
ContentBlobToggler
components:
firstNonEmptyLine
: moved to stringPreviewContentBlobTogglerUtils.firstNonEmptyLine
Markdown
components:
highlightSearchWordsPluginFactory
moved to markdownUtils.highlightSearchWordsPluginFactory
Changelog
[23.1.0] - 2023-04-20
<Badge />
element
<Button />
and <IconButton />
now have a badge
property for simple attachment<ConfidenceValue/>
element
<Depiction />
element
<EdgeLabel />
(react flow) element
<Table />
, <TableExpandHeader />
, <TableRow />
, <TableExpandRow />
and <TableCell />
elements
<TestIcon />
: test icons without the need to define them via a canonical name before.<Card />
property
whitespaceAmount
: controls how much whitespace is displayed within the card subelements<CardContent />
(react flow) property
noFlexHeight
: changes the behaviour how the component uses the remaining space inside the Card element<Divider />
properties
width
: width of the horizontal rulealignment
: horizontal alignment of the horizontal rule<EdgeDefault />
(react flow) properties
strokeType
: overwrites the default style how the edge stroke is displayedintent
: visual feedback about the current state of the edgehighlightColor
: color(s) of used highlights to mark the edge<Markdown />
property
linkTargetName
: browser target name to open links from the Markdown content<MultiSelect />
property
requestDelay
: To delay requests on query changes and only fire the most recent request.<NodeContent />
(react flow) properties
leftElement
: any element that should be displayed before the node labellabelSubline
: displayed under the label in the headerfullWidth
: stretches the node to the full available width, e.g. when used outside React Flow contextenlargeHeader
: increase hight of headerborder
: property to overwrite default stylesintent
: visual feedback about the current state of the nodehighlightColor
: color(s) of used highlights to mark the node, together with intent
it replaces highlightedState
<Pagination />
property
hideBorders
: element is displayed without dividing borders<Tag />
property
intent
property<TextField />
and <TextArea />
property
invisibleCharacterWarning
: callback to warn of invisible, hard to spot characters in the input text.intent
: state of the text field<ReactFlow />
property
scrollOnDrag
: Support to scroll the pane when going beyond the pane borders on all drag and connection operations.<SilkActivityControl />
property
executePrioritized
that is executed when the 'start prioritized' button is clicked while an activity is waiting for execution.<WhiteSpaceContainer />
property
linebreakForced
: insert line breaks within an otherwise unbreakable string to prevent text from overflowing the container--outputCss
for yarn compile-scss
to get the transpiled CSS echoed outcarbon-components
to @carbon/styles
<GridRow />
property dontWrapColumns=true
only works for grids on medium sized and larger viewports<NodeContent />
animation is now displayed on the border, not by a pulsing shadow anymore<NodeDefault />
, <NodeContent />
and <HandleDefault />
support now React Flow 9 and 10<WorkspaceContent />
: do not prevent wrapping the columns of the included grid<SingleLineCodeEditor />
: Convert multi-line initial value to a single line value.<MenuItem />
: do not display empty icon wrapper.<MultiSelect />
: Requests e.g. on slow networks could get mixed up, resulting in not showing the most recent results.<Grid />
property fullWidth
is now deprecated as grids are always used for the full viewport width<NodeContent />
property highlightedState
is replaced by intent
and highlightColor
and should not be used anymore<CardHeader />
properties densityHigh
and hasSpacing
are now deprecated, use Card.whitespaceAmount
now<TextField />
properties hasStatePrimary
, hasStateSuccess
, hasStateWarning
and hasStateDanger
are now deprecated, use intent
nowChangelog
[23.0.0] - 2022-11-18
<CodeEditor />
element based on CodeMirror
library, supporting Markdown, Python, Sparql, SQL, Turtle and XML syntax<HoverToggler />
element that allows to switch elements when hovered over.<InteractionGate />
element that can wrap content that need to be blocked from user interactions, it also has options to display a spinner as overlay<Tree />
component<TabPanel />
component that can be used if <Tabs />
is used in uncontrolled mode.<ReactFlowMarkers />
custom markers for ReactFlow edges, currently one new marker arrowClosed-inverse
available<StickyNoteNode />
, usable by stickynote
type in react flow editors for workflows and linking rulesCssCustomProperties
and getColorConfiguration
utilities can be used to exchange color configurations between SCSS and JSdecideContrastColorValue
method to get a second color related to the lightness of the testes input color<SimpleDialog />
: properties showFullScreenToggler
and startInFullScreenMode
<EdgeDefault />
: new properties for the edge data
markerStart
allows to add a marker to the edge starting pointinversePath
allows to inverse the edge directionrenderLabel
function to render fully custom edge label including any ReactNode<NodeContent />
: property footerContent
to add footer content to a react flow node<AutoSuggestion>
: properties autoCompletionRequestDelay
and validationRequestDelay
, to configure the delay when a request is sent after nothing is typed in anymore.<FieldItemRow
: property justifyItemWidths
to display all children using equal width inside the row<BreadcrumbList />
: properties ignoreOverflow
and latenOverflow
, that can be used to implement a second overflow strategy beside BlueprintJS overflow list, for example in case the overflow list leads to re-rendering loops<Spinner />
: showLocalBackdrop
property to include backdrop behind spinner making the background less visible<ContextMenu />
: disabled
property that disables the button to open the menu.<Tooltip />
: properties markdownEnabler
and markdownProps
to enable better formatted tooltips with options for line breaks, etc.<AutoCompleteField />
: onlyDropdownWithQuery
property to prevent dropdown as long as the input field is empty<Accordion />
item to get calculated based on their DOM sizes<AutoSuggestion />
element, and justify it with the other single line text inputs<TagList />
and set maximum width for the items<MultiSelect />
to correctly update created items that are selected while still maintaining a cache of all newly created itemsextensions
getColorConfiguration
method in JS directlyPopover2
, Tooltip2
, Select2
, MultiSelect2
and Breadcrumbs2
node-sass
to sass
package, a javascript port from the original dart sass library, see migration notes to update your build process<TextField />
and <AutoCompleteField />
now include a title
attribute on the natively used input
element to show the value if it is disabled
or readOnly
<TextField />
<AutoCompleteField />
: Add 'hasBackDrop' parameter to use a backdrop for its popover in order for outside clicks to always close the popover. Default: false{ colors }
imports for cmem/react-flow/configurations/*
do not keep working anymore, use getColorConfiguration
method now<IconButton>
: tooltipOpenDelay
was removed, use tooltipProps.hoverOpenDelay
directly<FieldItem>
: labelAttributes
was renamed to labelProps
<MenuItem>
: this element now extends directly the Blueprint element, so internalProps
was removed, use properties directly on MenuItem
<AutoCompleteField>
: popoverProps
was renamed to contextOverlayProps
<Button>
: tooltipProperties
was renamed to tooltipProps
<ContextMenu>
: use contextOverlayProps
to route properties to the overlay element<Icon>
: tooltipProperties
was renamed to tooltipProps
, tooltipOpenDelay
was removed, use tooltipProps.hoverOpenDelay
directly<Label>
: tooltipProperties
was renamed to tooltipProps
<MultiSelect>
: popoverProps
was renamed to contextOverlayProps
<Select>
: popoverProps
was renamed to contextOverlayProps
<Tooltip>
: this element now extends directly the Blueprint element, so tolltipProps
was removed, use properties directly on Tooltip
<BreadcrumbItem>
: IBreadcrumbItemProps
interface was renamed to BreadcrumbItemProps
BreadcrumbList
: IBreadcrumbListProps
interface was renamed to BreadcrumbListProps
node-sass
to sass
node-sass
and add sass
package via npm or yarn:
$ yarn remove node-sass && yarn add --dev sass
sass
and our configuration
const sass = require('sass');
const sassRenderSyncOptions = require("@eccenca/gui-elements/config/sassOptions");
sass-loader
, you can extend this by options regarding the provided loader interface
{
loader: "sass-loader",
options: {
implementation: sass,
sassOptions: sassRenderSyncOptions,
},
}