Skip to content

Releases: dhis2/ui

v5.1.0

09 Jul 13:17
Compare
Choose a tag to compare

5.1.0 (2020-07-09)

Features

  • organisation-unit-tree: include displayName in onChange payload (23f0eed)

v5.0.7

02 Jul 12:45
Compare
Choose a tag to compare

5.0.7 (2020-07-02)

Bug Fixes

  • switch: use input value for value instead of checked prop (65c6406)

v5.0.6

02 Jul 09:37
Compare
Choose a tag to compare

5.0.6 (2020-07-02)

Bug Fixes

  • switchfield: use correct prop-type for value prop (05576c2)

v5.0.5

24 Jun 18:25
Compare
Choose a tag to compare

5.0.5 (2020-06-24)

Bug Fixes

  • box: add missing semicolon to fix styles not being applied (2ea7ca0)

v5.0.4

23 Jun 10:24
Compare
Choose a tag to compare

5.0.4 (2020-06-23)

Bug Fixes

  • select: check if select has been mounted before accessing ref (d1d70cb)

v5.0.3

10 Jun 10:17
Compare
Choose a tag to compare

5.0.3 (2020-06-10)

Bug Fixes

  • modal: add max height and width so Modal become scrollable (61bf5b8)

v5.0.2

09 Jun 17:41
Compare
Choose a tag to compare

5.0.2 (2020-06-09)

Bug Fixes

  • popper: use correct sharedPropType name for reference prop (262ac0a)

v5.0.1

03 Jun 11:58
Compare
Choose a tag to compare

5.0.1 (2020-06-03)

Bug Fixes

  • headerbar: hide app links from unprivileged users (7d12f40)
  • headerbar: hide app links from unprivileged users (4cf5ed8)
  • headerbar: prevent error if authorities is not an array (ecd1ba4)

v5.0.0

28 May 14:19
Compare
Choose a tag to compare

5.0.0 (2020-05-28)

Bug Fixes

  • headerbar: correctly select and use user locale and application title text (1c9d055)
  • headerbar: escape regex special chars in search (2f11c96)
  • field: fix prop-type warning (d55d049)
  • icons: add missing icon file (de0a157)
  • popover: fix arrow rotation (880395b)
  • field: no top margin if no label for field (a2d0bad)
  • noticebox: add missing export (ec2a739)
  • prop-types: add missing dhis2 prop-types for ui-icons (c207524)
  • select: debounce menu width measurement (0e17c59)
  • widgets: add translated default texts (c85342d)
  • forms: display submit errors (9f74e89)
  • forms: update final-form to fix setstate warning (1bc62b9)
  • createnumberrange: update number range validation error to match actual bounds (646f782)

Code Refactoring

  • transfer: align with select & monorepo structure (c15477d), closes #50
  • transfer: align with select & monorepo structure (d50f960)
  • layering: layers and overlay components (24ead4c)
  • menu: make menu click-based and reorganise related components (a8b26a0)
  • forms: move to more explicit final-form api (a76da00)
  • popover: rename popover prop (f7d5c20)
  • checkboxfield: move to ui-widgets (d979d96)
  • core: add forward refs to base components (699b194)
  • core: move fields to widgets (3b763fa)
  • core: reimplement Field (fbdafb8)
  • forms: namespace final-form and react-final-form re-exports (c59e0bb)
  • select: use string based selection in multi- and single-select (e3627a4)
  • fileinputfield: move to ui-widgets (6059625)
  • fileinputfieldwithlist: move to ui-widgets (a512f00)
  • inputfield: move to ui-widgets (50d9009)
  • multiselectfield: move to ui-widgets (c3d42ad)
  • singleselectfield: move to ui-widgets (e09c70c)
  • switchfield: move to ui-widgets (2baa52a)
  • textareafield: move to ui-widgets (3ef63da)
  • togglegroupfield: migrate to ui-widgets (db55448)
  • ui: list breaking changes (7ceddf0)
  • forms: rename form components (7479f613)

Features

  • constants: export constants as well (51c2eb0)
  • noticebox: add noticebox component (357ef6d)
  • constants: move and expose the common proptypes (1bb0f9d)
  • forms: integrate @dhis2/ui-forms (af49144)
  • ui: expose @dhis2/ui-forms through metapackage (88a3782)

BREAKING CHANGES

  • transfer: The Transfer component now expects options to be passed in as objects, not as children. Custom components can be provided via the optionComponent prop for all options or via the component property on an individual option.
  • transfer: The Transfer component now expects strings as selected values instead of option objects.
  • transfer: The Transfer component is now part of widgets
  • popover: The Popover's onBackdropClick prop has been renamed to onClickOutside
  • menu: MenuList was renamed to Menu
  • menu: Menu was renamed to FlyoutMenu
  • menu: The sub-menus now open on click instead of hover
  • menu: We have introduced a dedicated MenuDivider and MenuSectionHeader
  • menu: To create sub-menus, you can now add MenuItems directly under a parent MenuItem, no need to wrap them in a Menu/FlyoutMenu anymore
  • core: Relocate all *Field components to @dhis2/ui-widgets. They can be accessed from @dhis2/ui using named exports.
  • core: Field has been reimplemented to compose a field control, it now adds the Label, Help, Validation components instead of being a simple div wrapper, which allows us to avoid the code duplication in each *Field component.
  • core: ToggleGroup has been removed. Use a FieldSet for grouping form controls.
  • togglegroupfield: ToggleGroupField has been renamed to FieldSetField, which adds the necessary Label, Help, and Validation components to an entire group of components.
  • field: Field now provides a composition to provide all necessary things for a *Field component.
  • radiogroup: RadioGroup has been deleted.
  • checkboxgroup: CheckboxGroup has been deleted.
  • checkboxgroupcontrol: CheckboxGroupControl has been deleted.
  • radiogroupcontrol: RadioGroupControl has been deleted.
  • forms: final-form and react-final-form exports are now re-exported under the named exports FinalForm and ReactFinalForm respectively.
  • layering: We changed the set of components used to produce various types of overlays: Layer is an overlay component that fills the entire screen/page. Besides that it is also a key component to stack various components on top of one another. ComponentCover is a similar component that only fills its parent, provided that has a non-static position. Both the Layer and the ComponentCover accept an onClick and a translucent prop. CenterContent is a component that does exactly what it says on the tin. It also has a position prop which can be used to vertically align the content at the top, middle (default), or bottom. These new components replace the Backdrop and the ScreenCover, which had a slightly unclear scope and have now been removed. The Layer uses the LayerContext internally to control the stacking logic. This context has also been exposed via the useLayerContext hook, which can be used to append portals to the current layer-node.
  • singleselect: SingleSelect selection is now a string instead of an object with a value and label property
  • multiselect: MultiSelect selection is now an array of strings instead of an array of objects with a value and label property
  • core: base components can hold a ref.
  • forms: Postfix all the @dhis2/ui-forms components with 'FieldFF' to avoid conflicts with the base components in @dhis2/ui-core and @dhis2/ui-widgets, since all components are now exported in @dhis2/ui. The FF stands for final-form, clarifying that the component is tied to final-form and making the relation with our regular Field components more clear. So, for example, instead of the regular <Input /> we used to export from ui-forms we now have <InputFieldFF />
  • widgets: The <FieldSetField /> component has been renamed to <FieldGroup />
  • forms: The <GroupControl /> component has been renamed to <FieldGroupFF />
  • textareafield: Import path changes from @dhis2/ui-core to @dhis2/ui or @dhis2/ui-widgets.
  • switchfield: Import path for SwichField changes from @dhis2/ui-core to @dhis2/ui or @dhis2/ui-widgets.
  • singleselectfield: Import path for SingleSelectField changes from @dhis2/ui-core to @dhis2/ui or @dhis2/ui-widgets.
  • multiselectfield: MultiSelectField import path ch...
Read more

v5.0.0-alpha.21

28 May 09:12
Compare
Choose a tag to compare
v5.0.0-alpha.21 Pre-release
Pre-release

5.0.0-alpha.21 (2020-05-28)

Bug Fixes

  • correctly select and use user locale and application title text (1c9d055)
  • escape regex special chars in search (2f11c96)