Skip to content

Releases: eccenca/gui-elements

v24.0.0-rc.2

09 Oct 14:36
Compare
Choose a tag to compare
v24.0.0-rc.2 Pre-release
Pre-release

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

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
  • upgrade to Typescript v5
    • your package should be compatible to Typescript 5 patterns
  • upgrade to Storybook v8
  • allow next and legacy as branch names
  • switch icons for item-clone and item-copy to Carbon's <Replicate/> and <Copy/>

v24.0.0-rc.1

17 Sep 15:38
Compare
Choose a tag to compare
v24.0.0-rc.1 Pre-release
Pre-release

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
  • upgrade to Typescript v5
    • your package should be compatible to Typescript 5 patterns
  • upgrade to Storybook v8
  • allow next and legacy as branch names

v24.0.0-rc.0

09 Sep 11:25
a6f2b28
Compare
Choose a tag to compare
v24.0.0-rc.0 Pre-release
Pre-release

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
  • upgrade to Typescript v5
    • your package should be compatible to Typescript 5 patterns
  • upgrade to Storybook v8
  • allow next and legacy as branch names

v23.8.0

19 Aug 14:02
Compare
Choose a tag to compare

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 is bp5)
    • Carbon Design System: $prefix-carbon (current value is cds)
    • eccenca GUI elements: $prefix-eccgui (current value is eccgui)

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
  • basic styles for Uppy widget were improved and moved to its own component folder

Deprecated

  • <Accordion />
    • size property in favour of whitespaceSize
  • <AccordionItem />
    • condensed property in favour of whitespaceSize="none"

v23.8.0-rc.1

14 Aug 10:58
Compare
Choose a tag to compare
v23.8.0-rc.1 Pre-release
Pre-release

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 is bp5)
    • Carbon Design System: $prefix-carbon (current value is cds)
    • eccenca GUI elements: $prefix-eccgui (current value is eccgui)

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

Changed

  • basic styles for Uppy widget were improved and moved to its own component folder

Deprecated

  • <Accordion />
    • size property in favour of whitespaceSize
  • <AccordionItem />
    • condensed property in favour of whitespaceSize="none"

v23.8.0-rc.0

31 Jul 09:21
Compare
Choose a tag to compare
v23.8.0-rc.0 Pre-release
Pre-release

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

v23.7.0

26 Jun 14:07
Compare
Choose a tag to compare

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 and data-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
  • <Markdown />
    • Do syntax highlighting when a class name is set in the form language-<LANGUAGE_NAME>.
  • <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 used hasStatePrimary, hasStateSuccess, hasStateWarning and hasStateDanger properties are now deprecated
    • leftIcon: set the left aligned icon
    • rightElement: 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 or prePopulateWithItems properties, which is more logical.
    • Fixed deferred selectedItems setting.
  • <StickyNoteModal/>
    • static test id data-test-id="sticky-note-modal" will be removed with next major version
  • <BreadcrumbsList />
    • onItemClick handler is only executed if breadcrumb has href 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 />
  • <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

Changed

  • <BreadcrumbsList />
    • onItemClick handler is only executed when the breadcrumb has no own onClick 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 if createNewItemFromQuery is given
  • <SilkActivityControl />
    • interface of initialStatus property has been updated with the so far missing lastUpdateTime property. If you run in problems because of that you could use Date.now() as fix. Or consider to use <ActivityControlWidget /> directly, what is probably even better.
  • <Depiction />
    • opcaity is reduced automatically when element is used as icon in a disabled <Button />

Deprecated

  • <TextArea />
    • hasStatePrimary, hasStateSuccess, hasStateWarning and hasStateDanger properties: use the intent property instead.

v23.7.0-rc.4

20 Jun 12:56
Compare
Choose a tag to compare
v23.7.0-rc.4 Pre-release
Pre-release

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 and data-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
  • <Markdown />
    • Do syntax highlighting when a class name is set in the form language-<LANGUAGE_NAME>.
  • <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 used hasStatePrimary, hasStateSuccess, hasStateWarning and hasStateDanger properties are now deprecated
    • leftIcon: set the left aligned icon
    • rightElement: 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 or prePopulateWithItems properties, which is more logical.
    • Fixed deferred selectedItems setting.
  • <StickyNoteModal/>
    • static test id data-test-id="sticky-note-modal" will be removed with next major version
  • <BreadcrumbsList />
    • onItemClick handler is only executed if breadcrumb has href 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 />

Changed

  • <BreadcrumbsList />
    • onItemClick handler is only executed when the breadcrumb has no own onClick 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 if createNewItemFromQuery is given
  • <SilkActivityControl />
    • interface of initialStatus property has been updated with the so far missing lastUpdateTime property. If you run in problems because of that you could use Date.now() as fix. Or consider to use <ActivityControlWidget /> directly, what is probably even better.
  • <Depiction />
    • opcaity is reduced automatically when element is used as icon in a disabled <Button />

Deprecated

  • <TextArea />
    • hasStatePrimary, hasStateSuccess, hasStateWarning and hasStateDanger properties: use the intent property instead.

v23.7.0-rc.2

18 Jun 07:59
Compare
Choose a tag to compare
v23.7.0-rc.2 Pre-release
Pre-release

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 and data-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
  • <Markdown />
    • Do syntax highlighting when a class name is set in the form language-<LANGUAGE_NAME>.
  • <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 used hasStatePrimary, hasStateSuccess, hasStateWarning and hasStateDanger properties are now deprecated
    • leftIcon: set the left aligned icon
    • rightElement: renders on right side

Fixed

  • <MultiSuggestField />
    • Added logic for contolled state for the component if selectedItems and onSelection passed.
    • Fixed deferred selectedItems setting.
  • <StickyNoteModal/>
    • static test id data-test-id="sticky-note-modal" will be removed with next major version
  • <BreadcrumbsList />
    • onItemClick handler is only executed if breadcrumb has href 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 own onClick 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 if createNewItemFromQuery is given

Deprecated

  • <TextArea />
    • hasStatePrimary, hasStateSuccess, hasStateWarning and hasStateDanger properties: use the intent property instead.

v23.7.0-rc.1

03 Jun 12:55
Compare
Choose a tag to compare
v23.7.0-rc.1 Pre-release
Pre-release

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 and data-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
  • <Markdown />
    • Do syntax highlighting when a class name is set in the form language-<LANGUAGE_NAME>.
  • <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 and onSelection passed.
    • Fixed deferred selectedItems setting.
  • <StickyNoteModal/>
    • static test id data-test-id="sticky-note-modal" will be removed with next major version