Skip to content

Commit

Permalink
Merge branch 'master' into LIBS-611/splitbutton-accessibility-tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros authored Jul 3, 2024
2 parents 6475db5 + b24e0f5 commit f89c26c
Show file tree
Hide file tree
Showing 125 changed files with 1,831 additions and 798 deletions.
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,97 @@
## [9.9.1](https://github.com/dhis2/ui/compare/v9.9.0...v9.9.1) (2024-07-02)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([#1532](https://github.com/dhis2/ui/issues/1532)) ([bb15173](https://github.com/dhis2/ui/commit/bb151732970dee94d0431d379373fbb369776346))

# [9.9.0](https://github.com/dhis2/ui/compare/v9.8.10...v9.9.0) (2024-07-02)


### Features

* **menu:** add aria-attributes and roles to menu and its components ([#1514](https://github.com/dhis2/ui/issues/1514)) ([54b816c](https://github.com/dhis2/ui/commit/54b816c8ac28ef74ac628130994c9c8fadf9d178))
* **menu:** add keyboard accessibility to menus ([#1533](https://github.com/dhis2/ui/issues/1533)) ([235a71e](https://github.com/dhis2/ui/commit/235a71e92d41c35b84e61407adfbfa53b3513d4e))

## [9.8.10](https://github.com/dhis2/ui/compare/v9.8.9...v9.8.10) (2024-07-01)


### Bug Fixes

* **LIBS-629:** bump library to use Nepali script when 'ne' locale passed ([6546572](https://github.com/dhis2/ui/commit/6546572ea30d8faed53728cb8b005da0445326d4))

## [9.8.9](https://github.com/dhis2/ui/compare/v9.8.8...v9.8.9) (2024-06-20)


### Bug Fixes

* update @dhis2/multi-calendar-dates ([#1525](https://github.com/dhis2/ui/issues/1525)) ([cf5d39d](https://github.com/dhis2/ui/commit/cf5d39d2b9898958e6e3c359d1062f16b2011778))

## [9.8.8](https://github.com/dhis2/ui/compare/v9.8.7...v9.8.8) (2024-06-20)


### Bug Fixes

* i18n wrap pick a date ([#1531](https://github.com/dhis2/ui/issues/1531)) ([4e4a43d](https://github.com/dhis2/ui/commit/4e4a43db24342300c4db94ac497d1a381c50dab2))

## [9.8.7](https://github.com/dhis2/ui/compare/v9.8.6...v9.8.7) (2024-06-20)


### Bug Fixes

* **split-button:** stop swallowing key down events ([22d43bc](https://github.com/dhis2/ui/commit/22d43bc54ee5be5fc6b17400ac7b4a518051dfe7))

## [9.8.6](https://github.com/dhis2/ui/compare/v9.8.5...v9.8.6) (2024-06-20)


### Bug Fixes

* add aggregate data exchange to sharing dialog type prop's type ([d3b5486](https://github.com/dhis2/ui/commit/d3b54860337913be53ed25cbb72a0710787fdd28))
* add all possible sharing dialog type prop's types ([43210cb](https://github.com/dhis2/ui/commit/43210cb1f7df6e903f86ad8f5a4d93471704a28b))
* restrict dialog types to only sharable and restrict type of sharing type ([1748809](https://github.com/dhis2/ui/commit/1748809b093ebefefc01db2e4054d61b039fcd52))

## [9.8.5](https://github.com/dhis2/ui/compare/v9.8.4...v9.8.5) (2024-06-19)


### Bug Fixes

* **modal:** dont swallow keyDown events ([d4a0c44](https://github.com/dhis2/ui/commit/d4a0c44bcd3892f46510eae0c16c977681f8069f))

## [9.8.4](https://github.com/dhis2/ui/compare/v9.8.3...v9.8.4) (2024-06-19)


### Bug Fixes

* **drop-down:** dont swallow keyDown events unless its esc and open ([#1529](https://github.com/dhis2/ui/issues/1529)) ([bdb8eff](https://github.com/dhis2/ui/commit/bdb8eff1c34f1352ce27130584bcf2f442b9e6d5))

## [9.8.3](https://github.com/dhis2/ui/compare/v9.8.2...v9.8.3) (2024-06-16)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([5f7f65a](https://github.com/dhis2/ui/commit/5f7f65a01bb0819a5794e1ce10550b283a9b3c0e))

## [9.8.2](https://github.com/dhis2/ui/compare/v9.8.1...v9.8.2) (2024-06-14)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([0dfb475](https://github.com/dhis2/ui/commit/0dfb4754c0d0d13f54a499b7a589633b877fe2a7))

## [9.8.1](https://github.com/dhis2/ui/compare/v9.8.0...v9.8.1) (2024-06-09)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([ca3f6bf](https://github.com/dhis2/ui/commit/ca3f6bf6f46d1fcac88eafe2a62e80d03861b693))

# [9.8.0](https://github.com/dhis2/ui/compare/v9.7.0...v9.8.0) (2024-06-06)


### Features

* add data test prop to sharing dialog ([5a1d81d](https://github.com/dhis2/ui/commit/5a1d81d769e48487c922fb3bc6e12b31f58cdd9a))

# [9.7.0](https://github.com/dhis2/ui/compare/v9.6.0...v9.7.0) (2024-06-03)


Expand Down
59 changes: 34 additions & 25 deletions collections/forms/i18n/ru.po
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#
# Translators:
# phil_dhis2, 2021
# Philip Larsen Donnelly, 2021
# Viktor Varland <[email protected]>, 2021
# Ulanbek Abakirov <[email protected]>, 2021
# Valeriu Plesca <[email protected]>, 2021
# Yury Rogachev <[email protected]>, 2024
#
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2022-02-11T13:37:19.312Z\n"
"POT-Creation-Date: 2024-04-18T04:00:14.144Z\n"
"PO-Revision-Date: 2021-06-24 12:50+0000\n"
"Last-Translator: Valeriu Plesca <[email protected]>, 2021\n"
"Language-Team: Russian (https://www.transifex.com/hisp-uio/teams/100509/ru/)\n"
"Last-Translator: Yury Rogachev <[email protected]>, 2024\n"
"Language-Team: Russian (https://app.transifex.com/hisp-uio/teams/100509/ru/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -22,47 +23,50 @@ msgid "Upload file"
msgstr "Загрузить файл"

msgid "Upload files"
msgstr ""
msgstr "Загрузить файлы"

msgid "Remove"
msgstr "Убрать"

msgid "Please provide an alpha-numeric value"
msgstr ""
msgstr "Укажите буквенно-цифровое значение"

msgid "Please provide a boolean value"
msgstr ""
msgstr "Укажите булевое значение"

msgid "Please enter between {{lowerBound}} and {{upperBound}} characters"
msgstr ""
msgstr "Введите от {{lowerBound}} до {{upperBound}} символов."

msgid ""
"Please make sure the value of this input matches the value in "
"\"{{otherField}}\"."
msgstr ""
"Убедитесь, что введенное значение совпадает со значением в разделе "
"\"{{otherField}}\"."

msgid "Please enter a maximum of {{upperBound}} characters"
msgstr ""
msgstr "Введите максимум {{upperBound}} символа/ов."

msgid "Please enter a number with a maximum of {{upperBound}}"
msgstr ""
msgstr "Введите число, не превышающее {{upperBound}}"

msgid "Please enter at least {{lowerBound}} characters"
msgstr ""
msgstr "Введите не менее {{lowerBound}} символа/ов."

msgid "Please enter a number of at least {{lowerBound}}"
msgstr ""
msgstr "Введите число не менее {{lowerBound}}"

msgid "Number cannot be less than {{lowerBound}} or more than {{upperBound}}"
msgstr ""
msgstr "Число не может быть меньше {{lowerBound}} или больше {{upperBound}}"

msgid ""
"Please make sure the value of this input matches the pattern "
"{{patternString}}."
msgstr ""
"Убедитесь, что введенное значение соответствует формату {{patternString}}."

msgid "Password should be a string"
msgstr ""
msgstr "Пароль должен быть строкой"

msgid "Password should be at least 8 characters long"
msgstr "Пароль должен состоять не менее чем из 8 символов."
Expand All @@ -71,37 +75,42 @@ msgid "Password should be no longer than 34 characters"
msgstr "Пароль не должен быть длиннее 34 символов"

msgid "Password should contain at least one lowercase letter"
msgstr "Пароль должен содержать хотя бы одну СТРОЧНУЮ букву"
msgstr "Пароль должен содержать хотя бы одну строчную букву"

msgid "Password should contain at least one UPPERCASE letter"
msgstr "Пароль должен содержать хотя бы одну ЗАГЛАВНУЮ букву"
msgstr "Пароль должен содержать хотя бы одну заглавную букву"

msgid "Password should contain at least one number"
msgstr "Пароль должен содержать хотя бы одну цифру"

msgid "Password should have at least one special character"
msgstr "В пароле должен быть хотя бы один специальный символ"

msgid "Please provide a username between 4 and 255 characters"
msgstr ""

msgid "Please provide a valid email address"
msgstr "Введите правильный адрес электронной почты"

msgid "Please provide a value"
msgstr ""
msgstr "Введите значение"

msgid "Please provide a round number without decimals"
msgstr ""
msgstr "Введите круглое число без десятичных знаков"

msgid "Please provide a valid international phone number."
msgstr ""
msgstr "Укажите действительный международный номер телефона."

msgid "Please provide a number"
msgstr ""
msgstr "Введите номер"

msgid "Please provide a string"
msgstr ""
msgstr "Введите строку"

msgid "Please provide a valid url"
msgstr "Введите правильную url"
msgstr "Введите правильный URL адрес"

msgctxt " - or @"
msgid ""
"Please provide a username between 4 and 255 characters long and possibly "
"separated by . "
msgstr ""
"Укажите имя пользователя длиной от 4 до 255 символов по возможности "
"разделенных знаками . _ - или @"
20 changes: 10 additions & 10 deletions collections/forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dhis2/ui-forms",
"version": "9.7.0",
"version": "9.9.1",
"main": "./build/cjs/index.js",
"module": "./build/es/index.js",
"sideEffects": [
Expand Down Expand Up @@ -35,15 +35,15 @@
},
"dependencies": {
"@dhis2/prop-types": "^3.1.2",
"@dhis2-ui/button": "9.7.0",
"@dhis2-ui/checkbox": "9.7.0",
"@dhis2-ui/field": "9.7.0",
"@dhis2-ui/file-input": "9.7.0",
"@dhis2-ui/input": "9.7.0",
"@dhis2-ui/radio": "9.7.0",
"@dhis2-ui/select": "9.7.0",
"@dhis2-ui/switch": "9.7.0",
"@dhis2-ui/text-area": "9.7.0",
"@dhis2-ui/button": "9.9.1",
"@dhis2-ui/checkbox": "9.9.1",
"@dhis2-ui/field": "9.9.1",
"@dhis2-ui/file-input": "9.9.1",
"@dhis2-ui/input": "9.9.1",
"@dhis2-ui/radio": "9.9.1",
"@dhis2-ui/select": "9.9.1",
"@dhis2-ui/switch": "9.9.1",
"@dhis2-ui/text-area": "9.9.1",
"classnames": "^2.3.1",
"final-form": "^4.20.2",
"prop-types": "^15.7.2",
Expand Down
41 changes: 7 additions & 34 deletions collections/ui/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,8 @@ import { MenuItem } from '@dhis2/ui'
|Name|Type|Default|Required|Description|
|---|---|---|---|---|
|active|boolean||||
|checkbox|boolean||||
|checked|boolean||||
|chevron|boolean||||
|children|node|||Nested menu items can become submenus.<br/>See `showSubMenu` and `toggleSubMenu` props, and 'Children' demo|
|className|string||||
Expand All @@ -1145,6 +1147,7 @@ import { MenuItem } from '@dhis2/ui'
|label|node|||Text in the menu item|
|showSubMenu|boolean|||When true, nested menu items are shown in a Popper|
|suffix|node|||A supporting element shown at the end of the menu item|
|tabIndex|number||||
|target|string|||For using menu item as a link|
|toggleSubMenu|function|||On click, this function is called (without args)|
|value|string|||Value associated with item. Passed as an argument to onClick handler.|
Expand Down Expand Up @@ -1982,40 +1985,9 @@ import { SharingDialog } from '@dhis2/ui'
|Name|Type|Default|Required|Description|
|---|---|---|---|---|
|id|string||*|The id of the object to share|
|type|import {
ACCESS_NONE,
ACCESS_VIEW_ONLY,
ACCESS_VIEW_AND_EDIT,
VISUALIZATION,
DASHBOARD,
EVENT_VISUALIZATION,
INTERPRETATION,
} from './constants.js' │ import {
ACCESS_NONE,
ACCESS_VIEW_ONLY,
ACCESS_VIEW_AND_EDIT,
VISUALIZATION,
DASHBOARD,
EVENT_VISUALIZATION,
INTERPRETATION,
} from './constants.js' │ import {
ACCESS_NONE,
ACCESS_VIEW_ONLY,
ACCESS_VIEW_AND_EDIT,
VISUALIZATION,
DASHBOARD,
EVENT_VISUALIZATION,
INTERPRETATION,
} from './constants.js' │ import {
ACCESS_NONE,
ACCESS_VIEW_ONLY,
ACCESS_VIEW_AND_EDIT,
VISUALIZATION,
DASHBOARD,
EVENT_VISUALIZATION,
INTERPRETATION,
} from './constants.js'||*|The type of object to share|
|initialSharingSettings|{<br/> "allowPublic": "boolean",<br/> "groups": "objectOf",<br/> "name": "string",<br/> "public": "import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n VISUALIZATION,\n DASHBOARD,\n EVENT_VISUALIZATION,\n INTERPRETATION,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n VISUALIZATION,\n DASHBOARD,\n EVENT_VISUALIZATION,\n INTERPRETATION,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n VISUALIZATION,\n DASHBOARD,\n EVENT_VISUALIZATION,\n INTERPRETATION,\n} from './constants.js'",<br/> "users": "objectOf"<br/>}|`{
|type|DIALOG_TYPES_LIST||*|The type of object to share|
|dataTest|string|`'dhis2-uicore-sharingdialog'`|||
|initialSharingSettings|{<br/> "allowPublic": "boolean",<br/> "groups": "objectOf",<br/> "name": "string",<br/> "public": "import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js'",<br/> "users": "objectOf"<br/>}|`{
name: '',
allowPublic: true,
public: ACCESS_NONE,
Expand Down Expand Up @@ -2043,6 +2015,7 @@ import { Modal } from '@dhis2/ui'
|Name|Type|Default|Required|Description|
|---|---|---|---|---|
|children|node||*||
|dataTest|string|`'dhis2-uicore-sharingdialog-modal'`|||
|name|string||||
|onClose|function||||

Expand Down
Loading

0 comments on commit f89c26c

Please sign in to comment.