Releases: openmrs/openmrs-ngx-formentry
v17.0.0
What's Changed
Breaking changes
- (chore) Bump Angular to v17 by @denniskigen in #147
Full Changelog: v5.1.0...v17.0.0
v5.1.0
What's changed
⭐️ Features
- (feat) Add export subpaths for styles by @denniskigen in #105
- (feat) Remove some cruft and unused dependencies by @denniskigen in #113
- (feat) Add form navigation links by @denniskigen in #119
- (feat) bootstrap date component to support showing
time
picker by @donaldkibet in #120 - (feat) Improved field validation UX by @denniskigen in #118
- (feat) Make datepicker placeholder aware of datePickerFormat input by @denniskigen in #121
- (feat) Only show navigation buttons on multi-page forms by @denniskigen in #123
- (feat) Added support for translations on form navigation links labels by @icrc-psousa in #126
- (feat) Enable readonly radio buttons by @donaldkibet in #109
- (feat) Add decimal rendering type by @denniskigen in #127
- (feat) Enhancement on navigation button style by @icrc-jofrancisco in #132
- (feat) O3-2972: Add disallow decimals validator by @denniskigen in #135
- (feat) Lengthy dropdown option text should be wrapped in multiple lines by @vasharma05 in #106
🐛 Bug fixes
- (fix) Better handling of diagnoses by @icrc-psousa in #103
- (fix) Resolved issue with incorrect voided diagnosis in the generated payload by @icrc-psousa in #107
- (fix) Fix ng-select dropdown position by @denniskigen in #108
- (fix) Clear values of hidden fields by @icrc-jofrancisco in #110
- (fix) Fix date picker styles in Form Entry preview by @denniskigen in #112
- (fix) O3-2763: Fix overflow issue affecting multi-select fields by @elimm in #122
- (fix) O3-2870: Form navigation fixes for RTL languages by @elimm in #124
- (fix) Fix lab orders UI in clinical forms by @denniskigen in #128
- (fix) O3-2872: Fix inconsistent data when editing obsGroups in an encounter by @icrc-loliveira in #125
- (fix) O3-2872: Fixed multiselect in obsgroup by @icrc-loliveira in #130
- (fix) Remove hidden fields from patient identifier question types by @donaldkibet in #129
- (fix) O3-3001: Form engine shouldn't send encounterDatetime when saving a new form by @vasharma05 in #131
🧹 Housekeeping
- (chore) Bump Angular to v16 by @denniskigen in #111
- (chore) Separate linting and formatting concerns by @denniskigen in #133
- (chore) Launch browser automatically on
ng serve
by @denniskigen in #134
🧪 Tests
- (test) Improve AppComponent tests by @denniskigen in #114
- (test) Add unit tests for CheckboxControlComponent by @denniskigen in #115
- (test) Add unit tests for RadioButtonControlComponent by @denniskigen in #116
- (test) Add unit tests for NumberInputComponent by @denniskigen in #117
New contributors
Full Changelog: v5.0.0...v5.1.0
v5.0.0
Breaking changes
- (chore) Bump Angular to v15 by @denniskigen in #99
Features
- (feat) O3-2510: Should be able to launch Add Drug Order workspace from a form by @brandones in #95
- (feat) O3-2531: Enhance form control sizing for improved UX in tablet mode by @donaldkibet in #97
- (feat) O3-2531: Fix date-time week list and improve scrollToView by @donaldkibet in #98
- (feat) Bootstrap hide functionality for workspace launcher by @enyachoke in #100
Bug fixes
- (fix) Fix overlay stacking context so the Datepicker is not hidden on tablet by @donaldkibet in #96
Housekeeping
- (chore) Cache various tasks using turbo by @denniskigen in #101
- (chore) Bump peer dependencies to Angular 15 compatible versions by @denniskigen in #102
- (chore) Release v5.0.0 by @denniskigen in #104
Docs
- (docs) Update README by @denniskigen in #94
New contributors
- @brandones made their first contribution in #95
Thank you to all our wonderful contributors! 🎉
Full Changelog: v4.0.0...v5.0.0
v4.0.0
Highlights
Angular Form Entry v4.0.0
is a major release that bumps Angular to v13. This release also includes a number of bug fixes and improvements. The most notable changes are highlighted below:
We're now using Angular v14
The version of Angular used by this library has been bumped to v14. This means that you will need to upgrade your Angular application to v14 in order to use this library. See the Angular Update Guide for more information on how to upgrade your application.
i18n everywhere
This release adds support for translating error messages and labels within a form. Currently, only EN and FR locales have corresponding translations, though adding translations for other locales should be straightforward. Try it out by changing the locale in O3 to French and then opening a form.
BREAKING CHANGES
- (BREAKING) Bump Angular to v13 by @denniskigen in #81
- (chore) Bump Angular to v14 by @denniskigen in #88
Features
- (feat) Load observations based on form path by @icrc-loliveira in #61
- (feat) i18n: Add support to translate error messages and other form fields by @icrc-jofrancisco in #42
- (feat) i18n: Translations for error messages in the Ampath forms by @vasharma05 in #74
- (feat) Update diagnosis to support
rank
andcertainty
by @donaldkibet in #78 - (feat) KH-372: Add Khmer translations for openmrs-ngx-formentry by @kazlaw in #80
- (feat) Update form-entry styling post carbon-styles upgrade by @donaldkibet in #83
- (feat) Update alert feature to show when an expression evaluates by @donaldkibet in #87
- (feat) KHP3-4179: Grey out all other options on checkbox when hideExpression is true by @donaldkibet in #91
Bug fixes
- (fix) Form field path should use questionId since this is unique per form by @icrc-psousa in #59
- (fix) Default to using the current date by @AlexanderMizgirev in #60
- (fix) Correctly split formFieldPath by @icrc-loliveira in #62
- (fix) O3-2313: Duplicate Diagnoses in Submitted JSON Form by @AlexanderMizgirev in #63
- (fix) i18n - Add TranslateModule to testBed by @icrc-jofrancisco in #70
- (fix) Publish assets from the correct directory by @donaldkibet in #84
- (fix) Multi select dropdown panel should come above the form end by @vasharma05 in #71
- (fix) Fix styling following the carbon upgrade by @donaldkibet in #83
- (fix) Width of form labels shouldn't exceed workspace width by @denniskigen in #93
Housekeeping
- (chore) Setup prettier by @denniskigen in #72
- (chore) Reuse env variables for turbo tasks by @denniskigen in #73
- (chore) Upgrade yarn by @denniskigen in #75
- (chore) Add yarn version plugin by @denniskigen in #76
- (chore) Update CI pre-release and release scripts by @ibacher in #77
- (chore) Downgrade yarn to fix publishing problems by @denniskigen in #85
-
- (chore) Release v4.0.0 by @denniskigen in #86
- (chore) Version bumps and fixes post Angular 14 upgrade by @denniskigen in #89
- (chore) Make
NPM_AUTH_TOKEN
available to CI release job by @denniskigen in #92 - (chore) Version bumps and fixes post Angular 14 upgrade by @denniskigen in #89
New contributors
- @AlexanderMizgirev made their first contribution in #60
Full Changelog: v3.2.0...v4.0.0
v3.2.0
Form Entry v3.2.0
is a minor
release that includes a host of feature improvements.
Highlights
New expression helpers
We’ve added a new calcGravida helper function for computing gravida, which is the number of times a woman has been pregnant, regardless of whether these pregnancies were carried to term.
v3.2.0
also adds a new expression helper that checks whether a provided string value matches a certain regular expression. This helper can then be used to show an error message when the values do not match.
Add an adapter for creating identifiers
We’ve added an adapter to the form engine that handles the creation of identifiers in the form submission payload. This adapter also handles populating patientIdentifier type fields with existing identifiers.
Ability to reset fields dynamically
We’ve added the ability to reset fields when a field further down the hierarchy that they depend on gets disabled.
Features
- (feat) Reset value on disable by config by @icrc-agomes in #53
- (feat) KHP3-3708 Add adapter in form engine to handle creating patient identifiers by @donaldkibet in #55
- (feat) Add ability to evaluate if a string matches regular expression by @CynthiaKamau in #56
Housekeeping
- (feat) Add calculate gravida expression helper by @CynthiaKamau in #57
- (chore) Release
v3.2.0
by @denniskigen in #58
New contributors
- @icrc-agomes made their first contribution in #53
- @CynthiaKamau made their first contribution in #56
Full Changelog: v3.1.1...v3.2.0
v3.1.1
What's Changed
Bug fixes
- (fix) Fixed issue where checkboxes would lose pre-selected values upon form loading by @icrc-psousa in #49
- (fix) Fix question area width by @icrc-jofrancisco in #50
Thank you to all our amazing contributors! 🎉
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- (fix):CVD risk calculation should return null if some value is not passed.[KH-62] by @hadijahkyampeire in #32
- (fix) Fix issue where checkboxes don't correctly reflect the selected options by @icrc-jofrancisco in #18
- (fix) Fix how we load the translation module by @ibacher in #39
- (feat) Enable inline horizontal radio buttons via config by @icrc-psousa in #35
- (fix) Update radio selected option on value modification by @icrc-psousa in #34
- (docs) Update pull request template with a link to design docs by @Jexsie in #40
- (fix) Show correct
maxLengthValidator
error when a value exceeds the maximum length by @makombe in #43 - (fix) Remove repeated case statement for the
textarea
rendering type by @makombe in #41 - (feat) Add support for Diagnoses to form engine by @icrc-loliveira in #37
- (feat): Add ability to hide form navigation if the form has only one page by @donaldkibet in #33
- enhancement: Add Number Input directive and UI enhancement by @donaldkibet in #38
- (feat): Add max and min length validation for number input by @makombe in #44
- (fix) fix
onIncrement
andonDecrement
on number input whenmax
andmin
value are absent by @donaldkibet in #45 - (fix) Display label concept instead of uuid when use previous value on radio buttons by @icrc-jofrancisco in #47
- (fix) KH-141: Remote Select dropdown at the end of the form content should display above all content. by @hadijahkyampeire in #46
- (chore) Release v3.1.0 by @rbuisson in #48
New Contributors
- @icrc-psousa made their first contribution in #35
- @Jexsie made their first contribution in #40
- @makombe made their first contribution in #43
- @icrc-loliveira made their first contribution in #37
- @rbuisson made their first contribution in #48
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's New
Features
- (feat) Support for an encounter of previous obs values by @ibacher in #23
- (feat) Support for an encounter of previous obs values by @ibacher in #24
- (feat) Change current language back to
en
. by @denniskigen in #27 - (enhancement) bump styling to carbon 11 for form-entry engine by @donaldkibet in #1
- (feat) Introduce support for maintaining question order when rendering by @enyachoke in #8
- (feat) Allow radio buttons to be unselectable by @icrc-toliveira in #11
- (feat) KH-13: CVD risk calculation in Ampath forms. by @hadijahkyampeire in #15
- (feat) Implementation of min and max atributes for repeating type by @icrc-jofrancisco in #2
- (feat) 03-1325: Ability to have arbitrary translations for labels in AMPATH forms. by @hadijahkyampeire in #19
- (feat) Add extractObsValue helper function to extract a value from an encounter payload by @enyachoke in #26
Fixes
- (fix) Various fixes to the radio buttons by @ibacher in #16
- (fix) radio button now correctly turns into an Obs by @ibacher in #17
- (fix) Restore the ability to use historical values by @denniskigen in #25
- (fix) Restore proper labels for multiselect component (O3-1740) by @ibacher in #28
- (fix) Add null check for undefined rawPrevObs by @enyachoke in #30
- (fix) rename the helper extractObsValue to getObsFromControlOrEncounter and change behaviour by @enyachoke in #31
- (fix) Fix some bugs on checkbox component by @icrc-jofrancisco in #7
- (fix) Fix extractObsValue helper and remove console.log in radio button by @enyachoke in #29
Housekeeping
- (chore) Upgrade to Angular v12 by @denniskigen in #6
- (chore) Fix warnings when building and running the library by @denniskigen in #9
- (chore) Fix issues preventing successful publishing by @denniskigen in #10
- (chore) Add Turborepo by @denniskigen in #14
- (chore) Fix lint warnings by @denniskigen in #13
- (chore) Upgrade to yarn v3 by @denniskigen in #21
- (chore) Install version plugin by @denniskigen in #22
- (chore) Add some commits from original repo by @icrc-jofrancisco in #3
Docs
- (docs) Change npm commands to yarn equivalents by @denniskigen in #5
Tests
- (test) Fix existing tests and add
test
job to CI process by @denniskigen in #12
New Contributors
- @donaldkibet made their first contribution in #1
- @icrc-jofrancisco made their first contribution in #3
- @enyachoke made their first contribution in #8
- @denniskigen made their first contribution in #6
- @icrc-toliveira made their first contribution in #11
- @hadijahkyampeire made their first contribution in #15
- @ibacher made their first contribution in #16
Full Changelog: https://github.com/openmrs/openmrs-ngx-formentry/commits/v1.0.0