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.