Releases: eccenca/gui-elements
v23.3.0-rc.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.3.0-rc.0
Storybook:
Added
<PropertyName />
- provide
labelProps
to configure the automatically injectedLabel
element whenPropertyName
is only a string
- provide
<CodeEditor />
- support for additional modes: jinja2, yaml and json
- add read-only mode
- add
height
parameter to set a fixed height of the editor - add
wrapLines
option to control auto-wrapping long lines (the default for wrap long lines is set to false now)
<TextField />
:- Parameter
escapeToBlur
: If set to true the input field blurs/de-focuces when theEscape
key is pressed.
- Parameter
<Modal />
:- Parameter
modalFocusable: boolean
: Whentrue
the outerdiv
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.
- Parameter
<HandleTools />
: can be used as single handle content to add an context menu to handles<NodeContent />
introductionTime
parameter could be used to visualize the node was added or updated
<ReactFlow />
:- Support disabling the react-flow hot keys via a React context, e.g.
Delete
etc.
- Support disabling the react-flow hot keys via a React context, e.g.
Changed
<ApplicationHeader />
- it is now possible to overwrite the background color by setting
--eccgui-appheader-color-background
- it is now possible to overwrite the background color by setting
<Modal />
- new
xlarge
size option - re-configure appearance of the sizes,
small
is displayed a bit smaller,large
a bit larger than before
- new
Fixed
<Modal />
:- Escape key to close does not work anymore after clicking on the backdrop for
canOutsideClickClose=false
andcanEscapeKeyClose=true
.
- Escape key to close does not work anymore after clicking on the backdrop for
<PropertyName />
- provide
labelProps
to configure the automatically injectedLabel
element whenPropertyName
is only a string
- provide
<Spacing />
- allow other
div
attributes, e.g.style
- allow other
v23.2.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.2.0
Storybook: https://62150dbccb2d77003a2a5093-veodvzkyrq.chromatic.com/
Added
- linting the code automatically via git hook on commit action
<SuggestField />
- will replace
<AutoCompleteField />
- match dropdown to element width when
fill=true
- display dropdown toggler when
onlyDropdownWithQuery=false
- will replace
<MultiSuggestField />
: will replace<MultiSelect />
clearQueryOnSelection
option to set an empty query after selections- match dropdown to element width when
fullWidth=true
<CodeAutocompleteField />
: will replace<AutoSuggestion />
<Select />
:- has now a default target when it is not controlled directly by its children
onClearanceHandler
andonClearanceText
as options to include automatically a dedicated clearance button to the element
<PropertyName />
size
option to increase/decrease width consumed by its display
<EdgeLabel />
: usetitle
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 interface- all inferfaces of the main elements in
src/components
are now exposed via@eccenca/gui-elements
- all inferfaces of the main elements in
src/extensions
are now exposed via@eccenca/gui-elements
- all inferfaces of the main elements in
src/cmem
are now exposed via@eccenca/gui-elements
<ApplicationToolbarPanel />
- event handler
onLeave
andonOutsideClick
, could be used to close the menu panel automatically
- event handler
Changed
<Select />
:- match dropdown to element width when
fill=true
- use rounded input for query input to align it with
<SearchField />
- match dropdown to element width when
- Upgraded dependencies
- BlueprintJS was upgraded to the recent version (and a few method calls fixed after)
- Carbon was upgraded to the recent version
- almost all other dependencies were upgraded to their recent minor and major versions
- Removed dependencies
package-json-validator
(not maintained anymore and disfunctional) - so currently there is not automatic check and validation of thepackage.json
fileeslint
,eslint-config-react-app
,@typescript-eslint/eslint-plugin
,@typescript-eslint/parser
- not directly necessary, they may be still installed by other sub packages
- Changed version resolutions
- set
postcss
to at recent version to fix a moderate security vulnerability - remove resolutions for
node-gyp
,glob-parent
,trim
,trim-newlines
,minimist
- packages are not use, or resolution is not necessary anymore
- set
<ActivityControlWidget />
IActivityAction
interface was renamed toActivityControlWidgetAction
<AutoSuggestion />
IProps
interface was renamed toAutoSuggestionProps
<AutoSuggestionList />
IDropdownProps
interface was renamed toAutoSuggestionListProps
<MultiSelect />
SelectedParamsType
interface was renamed toMultiSelectSelectionProps
<SingleLineCodeEditor />
IEditorProps
interface was renamed toSingleLineCodeEditorProps
<AlertDialog />
IAlertDialogProps
interface was renamed toAlertDialogProps
<WorkspaceHeader />
IWorkspaceHeaderProps
interface was renamed toWorkspaceHeaderProps
<NodeDefault />
NodeProps
interface was renamed toNodeDefaultProps
to justify naming convention
<NodeContent />
IHandleProps
interface was renamed toNodeContentHandleProps
to justify naming convention
Utilities
obejct was renamed toutils
and enhanced with new functions:getColorConfiguration
,invisibleZeroWidthCharacters
- improve style imports, now it is a bit easier to inlcude all parts separately
<IconButton />
- prevent double tab index when it comes with an extra tooltip element attached to it
- prevent tooltip tab selection when button is disabled or has set inactive tabindex itself
<SimpleDialog />
enforceFocus: false
is set by default, so that searchable selects keep focus on their search input field
Fixed
- use correct import for codemirror stylesheetss
<BreadcrumbItem />
is not displayed clickable when it has nohref
oronClick
property set
Deprecated
Select.ofType
method:- instead of
MyTypeSelect = Select.ofType<MyType>()
use directly<Select<MyType> {...props} />
- instead of
<AutoCompleteField />
: use<SuggestField />
<MultiSelect />
SelectedParamsType
: renamed toMultiSelectSelectionProps
- element will be re-implemented, use
<MultiSuggestField />
instead
Utilities
object is now deprecated, useutils
insteadHelperClasses
object is now deprecated, useClassNames
instead<ActivityControlWidget />
IActivityAction
: renamed toActivityControlWidgetAction
<AutoCompleteField />
IRenderModifiers
: import fromsrc/components/AutocompleteField/interfaces
IElementWidth
: import fromsrc/components/AutocompleteField/interfaces
<AutoSuggestion />
- elemenat was renamed, use
<CodeAutocompleteField />
instead IProps
interface is now deprecated, useCodeAutocompleteFieldProps
instead
- elemenat was renamed, use
<AutoSuggestionList />
IDropdownProps
interface is now deprecated, useAutoSuggestionListProps
instead
<SingleLineCodeEditor />
IEditorProps
interface is now deprecated, useSingleLineCodeEditorProps
instead
<AlertDialog />
IAlertDialogProps
interface is now deprecated, useAlertDialogProps
instead
<WorkspaceHeader />
IWorkspaceHeaderProps
interface is now deprecated, useWorkspaceHeaderProps
instead
<NumericInput />
- It will be remove because beside the special arrow buttons it does not add any special. Could be done also with
<TextField />
combined with correcttype
.
- It will be remove because beside the special arrow buttons it does not add any special. Could be done also with
<Highlighter />
HighlighterFunctions
renamed tohighlighterUtils
extractSearchWords
moved tohighlighterUtils.extractSearchWords
matchesAllWords
moved tohighlighterUtils.matchesAllWords
createMultiWordRegex
moved tohighlighterUtils.createMultiWordRegex
<Icon />
findExistingIconName
: useiconUtils.findExistingIconName
<Spinner />
SpinnerPosition
: useSpinnerProps['position']
SpinnerSize
: useSpinnerProps['size']
SpinnerStroke
: useSpinnerProps['stroke']
ReactFlow
extensionsNodeProps
: renamed toNodeDefaultProps
minimapNodeClassName
: moved tominiMapUtils.nodeClassName
minimapNodeColor
: moved tominiMapUtils.nodeClassName
nodeUtils
: renamed tonodeDefaultUtils
IHandleProps
: renamed toNodeContentHandleProps
NodeDimensions
: useNodeContentProps<any>['nodeDimensions']
HighlightingState
: useNodeContentProps<any>['highlightedState']
(or import fromsrc/extensions/react-flow/nodes/sharedTypes
)
ActivityControl
components:IActivityControlLayoutProps
: renamed toSilkActivityControlLayoutProps
IActivityExecutionReport
: renamed toSilkActivityExecutionReportProps
ActivityControlTranslationKeys
: renamed toSilkActivityControlTranslationKeys
ActivityAction
: renamed toSilkActivityControlAction
IActivityControlProps
: renamed toActivityControlWidgetProps
IActivityStatus
: renamed toSilkActivityStatusProps
ConcreteActivityStatus
: renamed toSilkActivityStatusConcrete
ContentBlobToggler
components:firstNonEmptyLine
: moved tostringPreviewContentBlobTogglerUtils.firstNonEmptyLine
Markdown
components:highlightSearchWordsPluginFactory
moved tomarkdownUtils.highlightSearchWordsPluginFactory
v23.2.0-rc.1
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.2.0-rc.1
Storybook:
Added
- linting the code automatically via git hook on commit action
<SuggestField />
- will replace
<AutoCompleteField />
- match dropdown to element width when
fill=true
- display dropdown toggler when
onlyDropdownWithQuery=false
- will replace
<MultiSuggestField />
: will replace<MultiSelect />
clearQueryOnSelection
option to set an empty query after selections- match dropdown to element width when
fullWidth=true
<CodeAutocompleteField />
: will replace<AutoSuggestion />
<Select />
:- has now a default target when it is not controlled directly by its children
onClearanceHandler
andonClearanceText
as options to include automatically a dedicated clearance button to the element
<PropertyName />
size
option to increase/decrease width consumed by its display
<EdgeLabel />
: usetitle
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 interface- all inferfaces of the main elements in
src/components
are now exposed via@eccenca/gui-elements
- all inferfaces of the main elements in
src/extensions
are now exposed via@eccenca/gui-elements
- all inferfaces of the main elements in
src/cmem
are now exposed via@eccenca/gui-elements
<ApplicationToolbarPanel />
- event handler
onLeave
andonOutsideClick
, could be used to close the menu panel automatically
- event handler
Changed
<Select />
:- match dropdown to element width when
fill=true
- use rounded input for query input to align it with
<SearchField />
- match dropdown to element width when
- Upgraded dependencies
- BlueprintJS was upgraded to the recent version (and a few method calls fixed after)
- Carbon was upgraded to the recent version
- almost all other dependencies were upgraded to their recent minor and major versions
- Removed dependencies
package-json-validator
(not maintained anymore and disfunctional) - so currently there is not automatic check and validation of thepackage.json
fileeslint
,eslint-config-react-app
,@typescript-eslint/eslint-plugin
,@typescript-eslint/parser
- not directly necessary, they may be still installed by other sub packages
- Changed version resolutions
- set
postcss
to at recent version to fix a moderate security vulnerability - remove resolutions for
node-gyp
,glob-parent
,trim
,trim-newlines
,minimist
- packages are not use, or resolution is not necessary anymore
- set
<ActivityControlWidget />
IActivityAction
interface was renamed toActivityControlWidgetAction
<AutoSuggestion />
IProps
interface was renamed toAutoSuggestionProps
<AutoSuggestionList />
IDropdownProps
interface was renamed toAutoSuggestionListProps
<MultiSelect />
SelectedParamsType
interface was renamed toMultiSelectSelectionProps
<SingleLineCodeEditor />
IEditorProps
interface was renamed toSingleLineCodeEditorProps
<AlertDialog />
IAlertDialogProps
interface was renamed toAlertDialogProps
<WorkspaceHeader />
IWorkspaceHeaderProps
interface was renamed toWorkspaceHeaderProps
<NodeDefault />
NodeProps
interface was renamed toNodeDefaultProps
to justify naming convention
<NodeContent />
IHandleProps
interface was renamed toNodeContentHandleProps
to justify naming convention
Utilities
obejct was renamed toutils
and enhanced with new functions:getColorConfiguration
,invisibleZeroWidthCharacters
- improve style imports, now it is a bit easier to inlcude all parts separately
<IconButton />
- prevent double tab index when it comes with an extra tooltip element attached to it
- prevent tooltip tab selection when button is disabled or has set inactive tabindex itself
Fixed
- use correct import for codemirror stylesheetss
<BreadcrumbItem />
is not displayed clickable when it has nohref
oronClick
property set
Deprecated
Select.ofType
method:- instead of
MyTypeSelect = Select.ofType<MyType>()
use directly<Select<MyType> {...props} />
- instead of
<AutoCompleteField />
: use<SuggestField />
<MultiSelect />
SelectedParamsType
: renamed toMultiSelectSelectionProps
- element will be re-implemented, use
<MultiSuggestField />
instead
Utilities
object is now deprecated, useutils
insteadHelperClasses
object is now deprecated, useClassNames
instead<ActivityControlWidget />
IActivityAction
: renamed toActivityControlWidgetAction
<AutoCompleteField />
IRenderModifiers
: import fromsrc/components/AutocompleteField/interfaces
IElementWidth
: import fromsrc/components/AutocompleteField/interfaces
<AutoSuggestion />
- elemenat was renamed, use
<CodeAutocompleteField />
instead IProps
interface is now deprecated, useCodeAutocompleteFieldProps
instead
- elemenat was renamed, use
<AutoSuggestionList />
IDropdownProps
interface is now deprecated, useAutoSuggestionListProps
instead
<SingleLineCodeEditor />
IEditorProps
interface is now deprecated, useSingleLineCodeEditorProps
instead
<AlertDialog />
IAlertDialogProps
interface is now deprecated, useAlertDialogProps
instead
<WorkspaceHeader />
IWorkspaceHeaderProps
interface is now deprecated, useWorkspaceHeaderProps
instead
<NumericInput />
- It will be remove because beside the special arrow buttons it does not add any special. Could be done also with
<TextField />
combined with correcttype
.
- It will be remove because beside the special arrow buttons it does not add any special. Could be done also with
<Highlighter />
HighlighterFunctions
renamed tohighlighterUtils
extractSearchWords
moved tohighlighterUtils.extractSearchWords
matchesAllWords
moved tohighlighterUtils.matchesAllWords
createMultiWordRegex
moved tohighlighterUtils.createMultiWordRegex
<Icon />
findExistingIconName
: useiconUtils.findExistingIconName
<Spinner />
SpinnerPosition
: useSpinnerProps['position']
SpinnerSize
: useSpinnerProps['size']
SpinnerStroke
: useSpinnerProps['stroke']
ReactFlow
extensionsNodeProps
: renamed toNodeDefaultProps
minimapNodeClassName
: moved tominiMapUtils.nodeClassName
minimapNodeColor
: moved tominiMapUtils.nodeClassName
nodeUtils
: renamed tonodeDefaultUtils
IHandleProps
: renamed toNodeContentHandleProps
NodeDimensions
: useNodeContentProps<any>['nodeDimensions']
HighlightingState
: useNodeContentProps<any>['highlightedState']
(or import fromsrc/extensions/react-flow/nodes/sharedTypes
)
ActivityControl
components:IActivityControlLayoutProps
: renamed toSilkActivityControlLayoutProps
IActivityExecutionReport
: renamed toSilkActivityExecutionReportProps
ActivityControlTranslationKeys
: renamed toSilkActivityControlTranslationKeys
ActivityAction
: renamed toSilkActivityControlAction
IActivityControlProps
: renamed toActivityControlWidgetProps
IActivityStatus
: renamed toSilkActivityStatusProps
ConcreteActivityStatus
: renamed toSilkActivityStatusConcrete
ContentBlobToggler
components:firstNonEmptyLine
: moved tostringPreviewContentBlobTogglerUtils.firstNonEmptyLine
Markdown
components:highlightSearchWordsPluginFactory
moved tomarkdownUtils.highlightSearchWordsPluginFactory
v23.2.0-rc.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.2.0-rc.0
Storybook:
Added
- linting the code automatically via git hook on commit action
<EdgeLabel />
: usetitle
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 interface- all inferfaces of the main elements in
src/components
are now exposed via@eccenca/gui-elements
- all inferfaces of the main elements in
src/extensions
are now exposed via@eccenca/gui-elements
- all inferfaces of the main elements in
src/cmem
are now exposed via@eccenca/gui-elements
<ApplicationToolbarPanel />
- event handler
onLeave
andonOutsideClick
, could be used to close the menu panel automatically
- event handler
Changed
- Upgraded dependencies
- BlueprintJS was upgraded to the recent version (and a few method calls fixed after)
- Carbon was upgraded to the recent version
- almost all other dependencies were upgraded to their recent minor and major versions
- Removed dependencies
package-json-validator
(not maintained anymore and disfunctional) - so currently there is not automatic check and validation of thepackage.json
fileeslint
,eslint-config-react-app
,@typescript-eslint/eslint-plugin
,@typescript-eslint/parser
- not directly necessary, they may be still installed by other sub packages
- Changed version resolutions
- set
postcss
to at recent version to fix a moderate security vulnerability - remove resolutions for
node-gyp
,glob-parent
,trim
,trim-newlines
,minimist
- packages are not use, or resolution is not necessary anymore
- set
<ActivityControlWidget />
IActivityAction
interface was renamed toActivityControlWidgetAction
<AutoSuggestion />
IProps
interface was renamed toAutoSuggestionProps
<AutoSuggestionList />
IDropdownProps
interface was renamed toAutoSuggestionListProps
<MultiSelect />
SelectedParamsType
interface was renamed toMultiSelectSelectionProps
<SingleLineCodeEditor />
IEditorProps
interface was renamed toSingleLineCodeEditorProps
<AlertDialog />
IAlertDialogProps
interface was renamed toAlertDialogProps
<WorkspaceHeader />
IWorkspaceHeaderProps
interface was renamed toWorkspaceHeaderProps
<NodeDefault />
NodeProps
interface was renamed toNodeDefaultProps
to justify naming convention
<NodeContent />
IHandleProps
interface was renamed toNodeContentHandleProps
to justify naming convention
Utilities
obejct was renamed toutils
and enhanced with new functions:getColorConfiguration
,invisibleZeroWidthCharacters
- improve style imports, now it is a bit easier to inlcude all parts separately
Fixed
- use correct import for codemirror stylesheetss
Deprecated
Utilities
object is now deprecated, useutils
insteadHelperClasses
object is now deprecated, useClassNames
instead<ActivityControlWidget />
IActivityAction
: renamed toActivityControlWidgetAction
<AutoCompleteField />
IRenderModifiers
: import fromsrc/components/AutocompleteField/interfaces
IElementWidth
: import fromsrc/components/AutocompleteField/interfaces
<AutoSuggestion />
IProps
interface is now deprecated, useAutoSuggestionProps
instead
<AutoSuggestionList />
IDropdownProps
interface is now deprecated, useAutoSuggestionListProps
instead
<SingleLineCodeEditor />
IEditorProps
interface is now deprecated, useSingleLineCodeEditorProps
instead
<AlertDialog />
IAlertDialogProps
interface is now deprecated, useAlertDialogProps
instead
<WorkspaceHeader />
IWorkspaceHeaderProps
interface is now deprecated, useWorkspaceHeaderProps
instead
<NumericInput />
- It will be remove because beside the special arrow buttons it does not add any special. Could be done also with
<TextField />
combined with correcttype
.
- It will be remove because beside the special arrow buttons it does not add any special. Could be done also with
<Highlighter />
HighlighterFunctions
renamed tohighlighterUtils
extractSearchWords
moved tohighlighterUtils.extractSearchWords
matchesAllWords
moved tohighlighterUtils.matchesAllWords
createMultiWordRegex
moved tohighlighterUtils.createMultiWordRegex
<Icon />
findExistingIconName
: useiconUtils.findExistingIconName
<MultiSelect />
SelectedParamsType
: renamed toMultiSelectSelectionProps
<Spinner />
SpinnerPosition
: useSpinnerProps['position']
SpinnerSize
: useSpinnerProps['size']
SpinnerStroke
: useSpinnerProps['stroke']
ReactFlow
extensionsNodeProps
: renamed toNodeDefaultProps
minimapNodeClassName
: moved tominiMapUtils.nodeClassName
minimapNodeColor
: moved tominiMapUtils.nodeClassName
nodeUtils
: renamed tonodeDefaultUtils
IHandleProps
: renamed toNodeContentHandleProps
NodeDimensions
: useNodeContentProps<any>['nodeDimensions']
HighlightingState
: useNodeContentProps<any>['highlightedState']
(or import fromsrc/extensions/react-flow/nodes/sharedTypes
)
ActivityControl
components:IActivityControlLayoutProps
: renamed toSilkActivityControlLayoutProps
IActivityExecutionReport
: renamed toSilkActivityExecutionReportProps
ActivityControlTranslationKeys
: renamed toSilkActivityControlTranslationKeys
ActivityAction
: renamed toSilkActivityControlAction
IActivityControlProps
: renamed toActivityControlWidgetProps
IActivityStatus
: renamed toSilkActivityStatusProps
ConcreteActivityStatus
: renamed toSilkActivityStatusConcrete
ContentBlobToggler
components:firstNonEmptyLine
: moved tostringPreviewContentBlobTogglerUtils.firstNonEmptyLine
Markdown
components:highlightSearchWordsPluginFactory
moved tomarkdownUtils.highlightSearchWordsPluginFactory
v23.1.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.1.0
Storybook: https://62150dbccb2d77003a2a5093-hzigmbkpgf.chromatic.com/
Added
<Badge />
element- add more context like icons, text or numbers to another element
<Button />
and<IconButton />
now have abadge
property for simple attachment
<ConfidenceValue/>
element- combines a value and a bar
<Depiction />
element- include different types of images controlling of resizing, ratio, shape
<EdgeLabel />
(react flow) element- can be used for custom edge labels, provides support for depiction, text, actions and intent states
<Table />
,<TableExpandHeader />
,<TableRow />
,<TableExpandRow />
and<TableCell />
elements- Carbon based elements
- other table elements are still used directly from the Carbon library
<TestIcon />
: test icons without the need to define them via a canonical name before.<Card />
propertywhitespaceAmount
: controls how much whitespace is displayed within the card subelements
<CardContent />
(react flow) propertynoFlexHeight
: changes the behaviour how the component uses the remaining space inside the Card element
<Divider />
propertieswidth
: width of the horizontal rulealignment
: horizontal alignment of the horizontal rule
<EdgeDefault />
(react flow) propertiesstrokeType
: 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 />
propertylinkTargetName
: browser target name to open links from the Markdown content
<MultiSelect />
propertyrequestDelay
: To delay requests on query changes and only fire the most recent request.
<NodeContent />
(react flow) propertiesleftElement
: 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 withintent
it replaceshighlightedState
<Pagination />
propertyhideBorders
: element is displayed without dividing borders
<Tag />
property- add support for
intent
property
- add support for
<TextField />
and<TextArea />
propertyinvisibleCharacterWarning
: callback to warn of invisible, hard to spot characters in the input text.intent
: state of the text field
<ReactFlow />
propertyscrollOnDrag
: Support to scroll the pane when going beyond the pane borders on all drag and connection operations.
<SilkActivityControl />
propertyexecutePrioritized
that is executed when the 'start prioritized' button is clicked while an activity is waiting for execution.
<WhiteSpaceContainer />
propertylinebreakForced
: insert line breaks within an otherwise unbreakable string to prevent text from overflowing the container
Changed
- use option
--outputCss
foryarn compile-scss
to get the transpiled CSS echoed out - upgrade to Carbon icons v11
- switch from
carbon-components
to@carbon/styles
<GridRow />
propertydontWrapColumns=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
Fixed
<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.
Deprecated
<Grid />
propertyfullWidth
is now deprecated as grids are always used for the full viewport width<NodeContent />
propertyhighlightedState
is replaced byintent
andhighlightColor
and should not be used anymore<CardHeader />
propertiesdensityHigh
andhasSpacing
are now deprecated, useCard.whitespaceAmount
now<TextField />
propertieshasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
are now deprecated, useintent
now
v23.1.0-rc.4
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.1.0-rc.4
Storybook:
Added
<Badge />
element- add more context like icons, text or numbers to another element
<ConfidenceValue/>
element- combines a value and a bar
<Depiction />
element- include different types of images controlling of resizing, ratio, shape
<EdgeLabel />
(react flow) element- can be used for custom edge labels, provides support for depiction, text, actions and intent states
<Table />
,<TableExpandHeader />
,<TableRow />
,<TableExpandRow />
and<TableCell />
elements- Carbon based elements
- other table elements are still used directly from the Carbon library
<TestIcon />
: test icons without the need to define them via a canonical name before.<Card />
propertywhitespaceAmount
: controls how much whitespace is displayed within the card subelements
<CardContent />
(react flow) propertynoFlexHeight
: changes the behaviour how the component uses the remaining space inside the Card element
<Divider />
propertieswidth
: width of the horizontal rulealignment
: horizontal alignment of the horizontal rule
<EdgeDefault />
(react flow) propertiesstrokeType
: 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 />
propertylinkTargetName
: browser target name to open links from the Markdown content
<MultiSelect />
propertyrequestDelay
: To delay requests on query changes and only fire the most recent request.
<NodeContent />
(react flow) propertiesleftElement
: 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 withintent
it replaceshighlightedState
<Pagination />
propertyhideBorders
: element is displayed without dividing borders
<Tag />
property- add support for
intent
property
- add support for
<TextField />
and<TextArea />
propertyinvisibleCharacterWarning
: callback to warn of invisible, hard to spot characters in the input text.intent
: state of the text field
<ReactFlow />
propertyscrollOnDrag
: Support to scroll the pane when going beyond the pane borders on all drag and connection operations.
<SilkActivityControl />
propertyexecutePrioritized
that is executed when the 'start prioritized' button is clicked while an activity is waiting for execution.
<WhiteSpaceContainer />
propertylinebreakForced
: insert line breaks within an otherwise unbreakable string to prevent text from overflowing the container
Changed
- use option
--outputCss
foryarn compile-scss
to get the transpiled CSS echoed out - upgrade to Carbon icons v11
- switch from
carbon-components
to@carbon/styles
<GridRow />
propertydontWrapColumns=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
Fixed
<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.
Deprecated
<Grid />
propertyfullWidth
is now deprecated as grids are always used for the full viewport width<NodeContent />
propertyhighlightedState
is replaced byintent
andhighlightColor
and should not be used anymore<CardHeader />
propertiesdensityHigh
andhasSpacing
are now deprecated, useCard.whitespaceAmount
now<TextField />
propertieshasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
are now deprecated, useintent
now
Fixed
<MultiSelect />
:- Requests e.g. on slow networks could get mixed up, resulting in not showing the most recent results.
v23.1.0-rc.3
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.1.0-rc.3
Storybook:
Added
<Badge />
element- add more context like icons, text or numbers to another element
<ConfidenceValue/>
element- combines a value and a bar
<Depiction />
element- include different types of images controlling of resizing, ratio, shape
<EdgeLabel />
(react flow) element- can be used for custom edge labels, provides support for depiction, text, actions and intent states
<Table />
,<TableExpandHeader />
,<TableRow />
,<TableExpandRow />
and<TableCell />
elements- Carbon based elements
- other table elements are still used directly from the Carbon library
<TestIcon />
: test icons without the need to define them via a canonical name before.<Card />
propertywhitespaceAmount
: controls how much whitespace is displayed within the card subelements
<CardContent />
(react flow) propertynoFlexHeight
: changes the behaviour how the component uses the remaining space inside the Card element
<Divider />
propertieswidth
: width of the horizontal rulealignment
: horizontal alignment of the horizontal rule
<EdgeDefault />
(react flow) propertiesstrokeType
: 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 />
propertylinkTargetName
: browser target name to open links from the Markdown content
<MultiSelect />
propertyrequestDelay
: To delay requests on query changes and only fire the most recent request.
<NodeContent />
(react flow) propertiesleftElement
: 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 withintent
it replaceshighlightedState
<Pagination />
propertyhideBorders
: element is displayed without dividing borders
<Tag />
property- add support for
intent
property
- add support for
<TextField />
and<TextArea />
propertyinvisibleCharacterWarning
: callback to warn of invisible, hard to spot characters in the input text.intent
: state of the text field
<ReactFlow />
propertyscrollOnDrag
: Support to scroll the pane when going beyond the pane borders on all drag and connection operations.
<SilkActivityControl />
propertyexecutePrioritized
that is executed when the 'start prioritized' button is clicked while an activity is waiting for execution.
<WhiteSpaceContainer />
propertylinebreakForced
: insert line breaks within an otherwise unbreakable string to prevent text from overflowing the container
Changed
- use option
--outputCss
foryarn compile-scss
to get the transpiled CSS echoed out - upgrade to Carbon icons v11
- switch from
carbon-components
to@carbon/styles
<GridRow />
propertydontWrapColumns=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
Fixed
<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.
Deprecated
<Grid />
propertyfullWidth
is now deprecated as grids are always used for the full viewport width<NodeContent />
propertyhighlightedState
is replaced byintent
andhighlightColor
and should not be used anymore<CardHeader />
propertiesdensityHigh
andhasSpacing
are now deprecated, useCard.whitespaceAmount
now<TextField />
propertieshasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
are now deprecated, useintent
now
Fixed
<MultiSelect />
:- Requests e.g. on slow networks could get mixed up, resulting in not showing the most recent results.
v23.1.0-rc.2
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.1.0-rc.2
Storybook:
Added
- use option
--outputCss
foryarn compile-scss
to get the transpiled CSS echoed out <Badge />
element to add more context like icons, text or numbers to another element<Depiction />
element to include different types of images controlling of resizing, ratio, shape<Tag />
: add support forintent
property<ReactFlow />
:scrollOnDrag
: Support to scroll the pane when going beyond the pane borders on all drag and connection operations.
<MultiSelect />
:requestDelay
: To delay requests on query changes and only fire the most recent request.
<TestIcon />
: test icons without the need to define them via a canonical name before.<WhiteSpaceContainer />
: propertylinebreakForced
to insert line breaks within an otherwise unbreakable string to prevent text from overflowing the container.<TextField />
and<TextArea />
:invisibleCharacterWarning
: callback to warn of invisible, hard to spot characters in the input text.
Changed
- upgrade to Carbon icons v11
- switch from
carbon-components
to@carbon/styles
<GridRow />
propertydontWrapColumns=true
only works for grids on medium sized and larger viewports
Fixed
<WorkspaceContent />
: do not prevent wrapping the columns of the included grid
Deprecated
<Grid />
propertyfullWidth
is now deprecated as grids are always used for the full viewport width
Fixed
<MultiSelect />
:- Requests e.g. on slow networks could get mixed up, resulting in not showing the most recent results.
v23.1.0-rc.1
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.1.0-rc.1
Storybook:
Added
- use option
--outputCss
foryarn compile-scss
to get the transpiled CSS echoed out <Badge />
element to add more context like icons, text or numbers to another element<Depiction />
element to include different types of images controlling of resizing, ratio, shape<Tag />
: add support forintent
property<ReactFlow />
:scrollOnDrag
: Support to scroll the pane when going beyond the pane borders on all drag and connection operations.
<MultiSelect />
:requestDelay
: To delay requests on query changes and only fire the most recent request.
<TestIcon />
: test icons without the need to define them via a canonical name before.<WhiteSpaceContainer />
: propertylinebreakForced
to insert line breaks within an otherwise unbreakable string to prevent text from overflowing the container.<TextField />
and<TextArea />
:invisibleCharacterWarning
: callback to warn of invisible, hard to spot characters in the input text.
Changed
- upgrade to Carbon icons v11
- switch from
carbon-components
to@carbon/styles
<GridRow />
propertydontWrapColumns=true
only works for grids on medium sized and larger viewports
Fixed
<WorkspaceContent />
: do not prevent wrapping the columns of the included grid
Deprecated
<Grid />
propertyfullWidth
is now deprecated as grids are always used for the full viewport width
Fixed
<MultiSelect />
:- Requests e.g. on slow networks could get mixed up, resulting in not showing the most recent results.
v23.0.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.0.0
Storybook: https://62150dbccb2d77003a2a5093-xrzoczqlzs.chromatic.com/
Added
<CodeEditor />
element based onCodeMirror
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 markerarrowClosed-inverse
available<StickyNoteNode />
, usable bystickynote
type in react flow editors for workflows and linking rulesCssCustomProperties
andgetColorConfiguration
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 />
: propertiesshowFullScreenToggler
andstartInFullScreenMode
<EdgeDefault />
: new properties for the edge datamarkerStart
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 />
: propertyfooterContent
to add footer content to a react flow node<AutoSuggestion>
: propertiesautoCompletionRequestDelay
andvalidationRequestDelay
, to configure the delay when a request is sent after nothing is typed in anymore.<FieldItemRow
: propertyjustifyItemWidths
to display all children using equal width inside the row<BreadcrumbList />
: propertiesignoreOverflow
andlatenOverflow
, 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 />
: propertiesmarkdownEnabler
andmarkdownProps
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- large addition to the Storybook, we almost doubled available components and stories
Fixed
- allow children of
<Accordion />
item to get calculated based on their DOM sizes - add borders to CodeMirror editor area and include display of focused state
- GUI elements library can be now used easier in applications because it does not force usage of SCSS modules via JS/Webpack4
- fixed ReactFlow stories re-rerender on configuration change
- fix used font family and layout of
<AutoSuggestion />
element, and justify it with the other single line text inputs - fix condition to include the class name of a
<TagList />
and set maximum width for the items - fixed
<MultiSelect />
to correctly update created items that are selected while still maintaining a cache of all newly created items - do not change cursor to pointer by default on tooltip targets
Change
- move style imports of CodeMirror layout to
extensions
- color configurations for react flow editor are not exported as modules anymore, they need to be fetched by
getColorConfiguration
method in JS directly - BlueprintJS was upgraded to a recent v4
- elements were also upgraded to usage of
Popover2
,Tooltip2
,Select2
,MultiSelect2
andBreadcrumbs2
- this comes also with a necessary switch from
node-sass
tosass
package, a javascript port from the original dart sass library, see migration notes to update your build process
- elements were also upgraded to usage of
<TextField />
and<AutoCompleteField />
now include atitle
attribute on the natively usedinput
element to show the value if it isdisabled
orreadOnly
- flashing color regarding the intent state of a
<TextField />
<AutoCompleteField />
: Add 'hasBackDrop' parameter to use a backdrop for its popover in order for outside clicks to always close the popover. Default: false
Migration notes
- old
{ colors }
imports forcmem/react-flow/configurations/*
do not keep working anymore, usegetColorConfiguration
method now <IconButton>
:tooltipOpenDelay
was removed, usetooltipProps.hoverOpenDelay
directly<FieldItem>
:labelAttributes
was renamed tolabelProps
<MenuItem>
: this element now extends directly the Blueprint element, sointernalProps
was removed, use properties directly onMenuItem
<AutoCompleteField>
:popoverProps
was renamed tocontextOverlayProps
<Button>
:tooltipProperties
was renamed totooltipProps
<ContextMenu>
: usecontextOverlayProps
to route properties to the overlay element<Icon>
:tooltipProperties
was renamed totooltipProps
,tooltipOpenDelay
was removed, usetooltipProps.hoverOpenDelay
directly<Label>
:tooltipProperties
was renamed totooltipProps
<MultiSelect>
:popoverProps
was renamed tocontextOverlayProps
<Select>
:popoverProps
was renamed tocontextOverlayProps
<Tooltip>
: this element now extends directly the Blueprint element, sotolltipProps
was removed, use properties directly onTooltip
<BreadcrumbItem>
:IBreadcrumbItemProps
interface was renamed toBreadcrumbItemProps
BreadcrumbList
:IBreadcrumbListProps
interface was renamed toBreadcrumbListProps
Switch from node-sass
to sass
- Remove
node-sass
and addsass
package via npm or yarn:$ yarn remove node-sass && yarn add --dev sass
- Include
sass
and our configurationconst sass = require('sass'); const sassRenderSyncOptions = require("@eccenca/gui-elements/config/sassOptions");
- Configure the webpack
sass-loader
, you can extend this by options regarding the provided loader interface{ loader: "sass-loader", options: { implementation: sass, sassOptions: sassRenderSyncOptions, }, }