Releases: eccenca/gui-elements
v24.0.0-rc.2
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.0.0-rc.2
Storybook:
Added
<StringPreviewContentBlobToggler />
:noTogglerContentSuffix
: Allows to add non-string elements at the end of the content if the full description is shown, i.e. no toggler is necessary. This allows to add non-string elements to both the full-view content and the pure string content.
<MultiSuggestField />
- An optional custom search function property has been added, it defines how to filter elements.
<FlexibleLayoutContainer />
and<FlexibleLayoutItem />
- helper components to create flex layouts for positioning sub elements
- stop misusing
Toolbar*
components to do that (anti pattern)
<PropertyValueList />
and<PropertyValuePair />
singleColumn
property to display label and value below each other
<Label />
emphasis
property to control visual appearance of the label text
- basic Storybook example for
<Application* />
components $eccgui-selector-text-spot-highlight
config variable to specify selector that is used to create shortly highlighted spots- it is highlighted when the selector is also active local anchor target or if it has the
.eccgui-typography--spothighlight
class attached to it
- it is highlighted when the selector is also active local anchor target or if it has the
Changed
- GUI elements library needs node 18 or an higher version because dependencies were upgraded
- you may run into problems if you try it with Node v16 or v17, or Webpack v4, mainly because of a Node bugfix regarding the OpenSSL provider
- if you cannot upgrade your dependencies then you could workaround that by patching the
crypto
package or using Node with--openssl-legacy-provider
option - see webpack/webpack#14532 and https://stackoverflow.com/questions/69692842/ for more info and possible solutions
- upgrade to
@carbon/react
package- almost all Carbon related packages were replaced by using only
@carbon/react
- some component interfaces partly lack documentation in our Storybook because their base interfaces from
@carbon/react
are currently not exported:AccordionItemProps
,ApplicationHeaderProps
,ApplicationToolbarProps
,ApplicationToolbarActionProps
,ApplicationToolbarPanelProps
,CarbonIconType
,TableCellProps
,TableExpandRowProps
,TableProps
- almost all Carbon related packages were replaced by using only
- upgrade to Typescript v5
- your package should be compatible to Typescript 5 patterns
- upgrade to Storybook v8
- include a few patches for actions, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#implicit-actions-can-not-be-used-during-rendering-for-example-in-the-play-function
- allow
next
andlegacy
as branch names - switch icons for
item-clone
anditem-copy
to Carbon's<Replicate/>
and<Copy/>
v24.0.0-rc.1
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.0.0-rc.1
Storybook:
Added
<MultiSuggestField />
- An optional custom search function property has been added, it defines how to filter elements.
- basic Storybook example for
<Application* />
components
Changed
- GUI elements library needs node 18 or an higher version because dependencies were upgraded
- you may run into problems if you try it with Node v16 or v17, or Webpack v4, mainly because of a Node bugfix regarding the OpenSSL provider
- if you cannot upgrade your dependencies then you could workaround that by patching the
crypto
package or using Node with--openssl-legacy-provider
option - see webpack/webpack#14532 and https://stackoverflow.com/questions/69692842/ for more info and possible solutions
- upgrade to
@carbon/react
package- almost all Carbon related packages were replaced by using only
@carbon/react
- some component interfaces partly lack documentation in our Storybook because their base interfaces from
@carbon/react
are currently not exported:AccordionItemProps
,ApplicationHeaderProps
,ApplicationToolbarProps
,ApplicationToolbarActionProps
,ApplicationToolbarPanelProps
,CarbonIconType
,TableCellProps
,TableExpandRowProps
,TableProps
- almost all Carbon related packages were replaced by using only
- upgrade to Typescript v5
- your package should be compatible to Typescript 5 patterns
- upgrade to Storybook v8
- include a few patches for actions, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#implicit-actions-can-not-be-used-during-rendering-for-example-in-the-play-function
- allow
next
andlegacy
as branch names
v24.0.0-rc.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.0.0-rc.0
Storybook:
Added
<MultiSuggestField />
- An optional custom search function property has been added, it defines how to filter elements.
Changed
- GUI elements library needs node 18 or an higher version because dependencies were upgraded
- you may run into problems if you try it with Node v16 or v17, or Webpack v4, mainly because of a Node bugfix regarding the OpenSSL provider
- if you cannot upgrade your dependencies then you could workaround that by patching the
crypto
package or using Node with--openssl-legacy-provider
option - see webpack/webpack#14532 and https://stackoverflow.com/questions/69692842/ for more info and possible solutions
- upgrade to
@carbon/react
package- almost all Carbon related packages were replaced by using only
@carbon/react
- some component interfaces partly lack documentation in our Storybook because their base interfaces from
@carbon/react
are currently not exported:AccordionItemProps
,ApplicationHeaderProps
,ApplicationToolbarProps
,ApplicationToolbarActionProps
,ApplicationToolbarPanelProps
,CarbonIconType
,TableCellProps
,TableExpandRowProps
,TableProps
- almost all Carbon related packages were replaced by using only
- upgrade to Typescript v5
- your package should be compatible to Typescript 5 patterns
- upgrade to Storybook v8
- include a few patches for actions, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#implicit-actions-can-not-be-used-during-rendering-for-example-in-the-play-function
- allow
next
andlegacy
as branch names
v23.8.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.8.0
Storybook: https://62150dbccb2d77003a2a5093-dmwubdagxv.chromatic.com/
Added
<ApplicationContainer />
:monitorDropzonesFor
property can be used to monitor application wide dropzones for dragged elements via data attributes attached to body element containing the data transfer type of drag over events.
<ReactFlow />
dropzoneFor
property can be used to mark react flow canvas as matching area to drop dragged elements.
<Accordion />
,<AccordionItem />
whitespaceSize
property to define how much whitespace is used on top and bottom inside the header and content of an accordion item.separationSize
property defines how much space is used for the separation between an accordion item and the next one.
- class name prefixes are now available by variables with more readable names:
- BlueprintJS:
$prefix-blueprintjs
(current value isbp5
) - Carbon Design System:
$prefix-carbon
(current value iscds
) - eccenca GUI elements:
$prefix-eccgui
(current value iseccgui
)
- BlueprintJS:
Fixed
<ElapsedDateTimeDisplay />
- negative values are not shown (e.g. in case server and browser clocks are apart)
Changed
<TextArea />
- improve visual alignment to
TextField
regarding whitespace and colors
- improve visual alignment to
- basic styles for Uppy widget were improved and moved to its own component folder
Deprecated
<Accordion />
size
property in favour ofwhitespaceSize
<AccordionItem />
condensed
property in favour ofwhitespaceSize="none"
v23.8.0-rc.1
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.8.0-rc.1
Storybook:
Added
<ApplicationContainer />
:monitorDropzonesFor
property can be used to monitor application wide dropzones for dragged elements via data attributes attached to body element containing the data transfer type of drag over events.
<ReactFlow />
dropzoneFor
property can be used to mark react flow canvas as matching area to drop dragged elements.
<Accordion />
,<AccordionItem />
whitespaceSize
property to define how much whitespace is used on top and bottom inside the header and content of an accordion item.separationSize
property defines how much space is used for the separation between an accordion item and the next one.
- class name prefixes are now available by variables with more readable names:
- BlueprintJS:
$prefix-blueprintjs
(current value isbp5
) - Carbon Design System:
$prefix-carbon
(current value iscds
) - eccenca GUI elements:
$prefix-eccgui
(current value iseccgui
)
- BlueprintJS:
Fixed
<ElapsedDateTimeDisplay />
- negative values are not shown (e.g. in case server and browser clocks are apart)
<TextArea />
- improve visual alignment to
TextField
regarding whitespace and colors
- improve visual alignment to
Changed
- basic styles for Uppy widget were improved and moved to its own component folder
Deprecated
<Accordion />
size
property in favour ofwhitespaceSize
<AccordionItem />
condensed
property in favour ofwhitespaceSize="none"
v23.8.0-rc.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.8.0-rc.0
Storybook:
Fixed
<TextArea />
- improve visual alignment to
TextField
regarding whitespace and colors
- improve visual alignment to
v23.7.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.7.0
Storybook: https://62150dbccb2d77003a2a5093-mfxsgwculc.chromatic.com/
Added
<ReactFlow/>
,<StickyNoteModal/>
,<EdgeDefault/>
,<EdgeLabel/>
,<HandleContent/>
,<HandleTools/>
,<MiniMap/>
- all react flow components are now be able to process test ids as data attributes, e.g.
data-test-id
anddata-testid
, sometimes as direct property, in other cases as part of properties routed to the wrapper elements - storybook documentation was enhanced by demonstration the usage of test ids
- all react flow components are now be able to process test ids as data attributes, e.g.
<Markdown />
- Do syntax highlighting when a class name is set in the form
language-<LANGUAGE_NAME>
.
- Do syntax highlighting when a class name is set in the form
<StickyTarget/>
- Element wraps the content that need to be displayed sticky.
utils
getScrollParent
: method to find the scroll parent of an element
<AutoCompleteField />
- Support loading more results when scrolling to the end of the result list.
<TextArea />
intent
property to set the state, formerly usedhasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
properties are now deprecatedleftIcon
: set the left aligned iconrightElement
: renders on right side
<Depiction />
disabled
property could be used if the element is used inside a disabled interactive element or form control but the state is not adapted automatically to the depiction
- new icons:
navigation-extern
,toggler-list
,toggler-table
,data-boolean
Fixed
<MultiSuggestField />
- Updated the interface with the ability to use either
selectedItems
orprePopulateWithItems
properties, which is more logical. - Fixed deferred
selectedItems
setting.
- Updated the interface with the ability to use either
<StickyNoteModal/>
- static test id
data-test-id="sticky-note-modal"
will be removed with next major version
- static test id
<BreadcrumbsList />
onItemClick
handler is only executed if breadcrumb hashref
set because this is one callback parameter and the handler would not have any information otherwise
<Depiction />
- position fixed when element is used as icon in
<Button />
- position fixed when element is used as icon in
<Tooltip />
- fix font sizes and background colors
<NodeContent />
- node introduction is only processed one time even if a node update still provides a
introductionTime
property
- node introduction is only processed one time even if a node update still provides a
Changed
<BreadcrumbsList />
onItemClick
handler is only executed when the breadcrumb has no ownonClick
handler defined
<Card />
elevation
allows now-1
as value, the card is borderless then
<MultiSuggestField />
- use "Search for item, or enter term to create new one..." as default
placeholder
ifcreateNewItemFromQuery
is given
- use "Search for item, or enter term to create new one..." as default
<SilkActivityControl />
- interface of
initialStatus
property has been updated with the so far missinglastUpdateTime
property. If you run in problems because of that you could useDate.now()
as fix. Or consider to use<ActivityControlWidget />
directly, what is probably even better.
- interface of
<Depiction />
- opcaity is reduced automatically when element is used as icon in a disabled
<Button />
- opcaity is reduced automatically when element is used as icon in a disabled
Deprecated
<TextArea />
hasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
properties: use theintent
property instead.
v23.7.0-rc.4
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.7.0-rc.4
Storybook:
Added
<ReactFlow/>
,<StickyNoteModal/>
,<EdgeDefault/>
,<EdgeLabel/>
,<HandleContent/>
,<HandleTools/>
,<MiniMap/>
- all react flow components are now be able to process test ids as data attributes, e.g.
data-test-id
anddata-testid
, sometimes as direct property, in other cases as part of properties routed to the wrapper elements - storybook documentation was enhanced by demonstration the usage of test ids
- all react flow components are now be able to process test ids as data attributes, e.g.
<Markdown />
- Do syntax highlighting when a class name is set in the form
language-<LANGUAGE_NAME>
.
- Do syntax highlighting when a class name is set in the form
<StickyTarget/>
- Element wraps the content that need to be displayed sticky.
utils
getScrollParent
: method to find the scroll parent of an element
<AutoCompleteField />
- Support loading more results when scrolling to the end of the result list.
<TextArea />
intent
property to set the state, formerly usedhasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
properties are now deprecatedleftIcon
: set the left aligned iconrightElement
: renders on right side
<Depiction />
disabled
property could be used if the element is used inside a disabled interactive element or form control but the state is not adapted automatically to the depiction
Fixed
<MultiSuggestField />
- Updated the interface with the ability to use either
selectedItems
orprePopulateWithItems
properties, which is more logical. - Fixed deferred
selectedItems
setting.
- Updated the interface with the ability to use either
<StickyNoteModal/>
- static test id
data-test-id="sticky-note-modal"
will be removed with next major version
- static test id
<BreadcrumbsList />
onItemClick
handler is only executed if breadcrumb hashref
set because this is one callback parameter and the handler would not have any information otherwise
<Depiction />
- position fixed when element is used as icon in
<Button />
- position fixed when element is used as icon in
Changed
<BreadcrumbsList />
onItemClick
handler is only executed when the breadcrumb has no ownonClick
handler defined
<Card />
elevation
allows now-1
as value, the card is borderless then
<MultiSuggestField />
- use "Search for item, or enter term to create new one..." as default
placeholder
ifcreateNewItemFromQuery
is given
- use "Search for item, or enter term to create new one..." as default
<SilkActivityControl />
- interface of
initialStatus
property has been updated with the so far missinglastUpdateTime
property. If you run in problems because of that you could useDate.now()
as fix. Or consider to use<ActivityControlWidget />
directly, what is probably even better.
- interface of
<Depiction />
- opcaity is reduced automatically when element is used as icon in a disabled
<Button />
- opcaity is reduced automatically when element is used as icon in a disabled
Deprecated
<TextArea />
hasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
properties: use theintent
property instead.
v23.7.0-rc.2
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.7.0-rc.2
Storybook:
Added
<ReactFlow/>
,<StickyNoteModal/>
,<EdgeDefault/>
,<EdgeLabel/>
,<HandleContent/>
,<HandleTools/>
,<MiniMap/>
- all react flow components are now be able to process test ids as data attributes, e.g.
data-test-id
anddata-testid
, sometimes as direct property, in other cases as part of properties routed to the wrapper elements - storybook documentation was enhanced by demonstration the usage of test ids
- all react flow components are now be able to process test ids as data attributes, e.g.
<Markdown />
- Do syntax highlighting when a class name is set in the form
language-<LANGUAGE_NAME>
.
- Do syntax highlighting when a class name is set in the form
<StickyTarget/>
- Element wraps the content that need to be displayed sticky.
utils
getScrollParent
: method to find the scroll parent of an element
<AutoCompleteField />
- Support loading more results when scrolling to the end of the result list.
<TextArea />
intent
property to set the state, formerly usedhasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
properties are now deprecatedleftIcon
: set the left aligned iconrightElement
: renders on right side
Fixed
<MultiSuggestField />
- Added logic for contolled state for the component if
selectedItems
andonSelection
passed. - Fixed deferred
selectedItems
setting.
- Added logic for contolled state for the component if
<StickyNoteModal/>
- static test id
data-test-id="sticky-note-modal"
will be removed with next major version
- static test id
<BreadcrumbsList />
onItemClick
handler is only executed if breadcrumb hashref
set because this is one callback parameter and the handler would not have any information otherwise
Changed
<BreadcrumbsList />
onItemClick
handler is only executed when the breadcrumb has no ownonClick
handler defined
<Card />
elevation
allows now-1
as value, the card is borderless then
<MultiSuggestField />
- use "Search for item, or enter term to create new one..." as default
placeholder
ifcreateNewItemFromQuery
is given
- use "Search for item, or enter term to create new one..." as default
Deprecated
<TextArea />
hasStatePrimary
,hasStateSuccess
,hasStateWarning
andhasStateDanger
properties: use theintent
property instead.
v23.7.0-rc.1
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/23.7.0-rc.1
Storybook:
Added
<ReactFlow/>
,<StickyNoteModal/>
,<EdgeDefault/>
,<EdgeLabel/>
,<HandleContent/>
,<HandleTools/>
,<MiniMap/>
- all react flow components are now be able to process test ids as data attributes, e.g.
data-test-id
anddata-testid
, sometimes as direct property, in other cases as part of properties routed to the wrapper elements - storybook documentation was enhanced by demonstration the usage of test ids
- all react flow components are now be able to process test ids as data attributes, e.g.
<Markdown />
- Do syntax highlighting when a class name is set in the form
language-<LANGUAGE_NAME>
.
- Do syntax highlighting when a class name is set in the form
<StickyTarget/>
- Element wraps the content that need to be displayed sticky.
utils
getScrollParent
: method to find the scroll parent of an element
<AutoCompleteField />
- Support loading more results when scrolling to the end of the result list.
Fixed
<MultiSuggestField />
- Added logic for contolled state for the component if
selectedItems
andonSelection
passed. - Fixed deferred
selectedItems
setting.
- Added logic for contolled state for the component if
<StickyNoteModal/>
- static test id
data-test-id="sticky-note-modal"
will be removed with next major version
- static test id