@formio/js 5.0.0-dev.5860.a296208 → 5.0.0-dev.5863.8f10146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +16 -14
- package/dist/formio.form.js +97 -97
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +98 -98
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.js +9 -9
- package/dist/formio.min.js +1 -1
- package/dist/formio.utils.js +71 -71
- package/dist/formio.utils.min.js +1 -1
- package/lib/cjs/Wizard.js +1 -1
- package/lib/cjs/components/_classes/component/Component.js +2 -2
- package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +1 -1
- package/lib/cjs/components/_classes/component/editForm/utils.js +1 -1
- package/lib/cjs/components/day/Day.d.ts +1 -0
- package/lib/cjs/components/day/Day.js +15 -0
- package/lib/cjs/components/editgrid/EditGrid.js +6 -8
- package/lib/cjs/components/form/editForm/Form.edit.data.js +1 -1
- package/lib/cjs/components/radio/Radio.d.ts +1 -0
- package/lib/cjs/components/radio/Radio.js +13 -4
- package/lib/cjs/components/select/Select.d.ts +1 -1
- package/lib/cjs/components/select/Select.js +12 -5
- package/lib/cjs/components/selectboxes/SelectBoxes.js +9 -2
- package/lib/cjs/components/textarea/TextArea.d.ts +4 -4
- package/lib/cjs/components/textarea/TextArea.js +4 -4
- package/lib/cjs/components/time/Time.js +0 -6
- package/lib/cjs/utils/conditionOperators/IsEqualTo.js +1 -9
- package/lib/cjs/utils/formUtils.d.ts +3 -0
- package/lib/cjs/utils/formUtils.js +5 -2
- package/lib/cjs/utils/utils.d.ts +0 -13
- package/lib/cjs/utils/utils.js +1 -33
- package/lib/mjs/Wizard.js +1 -1
- package/lib/mjs/components/_classes/component/Component.js +2 -2
- package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +1 -0
- package/lib/mjs/components/day/Day.js +15 -0
- package/lib/mjs/components/editgrid/EditGrid.js +6 -8
- package/lib/mjs/components/form/editForm/Form.edit.data.js +1 -1
- package/lib/mjs/components/radio/Radio.d.ts +1 -0
- package/lib/mjs/components/radio/Radio.js +13 -4
- package/lib/mjs/components/select/Select.d.ts +1 -1
- package/lib/mjs/components/select/Select.js +11 -4
- package/lib/mjs/components/selectboxes/SelectBoxes.js +8 -2
- package/lib/mjs/components/textarea/TextArea.d.ts +4 -4
- package/lib/mjs/components/textarea/TextArea.js +4 -4
- package/lib/mjs/components/time/Time.js +0 -6
- package/lib/mjs/utils/conditionOperators/IsEqualTo.js +2 -10
- package/lib/mjs/utils/formUtils.d.ts +3 -0
- package/lib/mjs/utils/formUtils.js +2 -2
- package/lib/mjs/utils/utils.d.ts +0 -13
- package/lib/mjs/utils/utils.js +0 -30
- package/package.json +2 -2
package/Changelog.md
CHANGED
|
@@ -76,6 +76,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
76
76
|
- FIO-8234/FIO-7195: Fixes an issue where value properties are shown instead of labels for Select component with Resource/URL data sources in read only mode and for modal preview
|
|
77
77
|
- FIO-8986: fixed setting default value for day component with hidden day and month
|
|
78
78
|
- FIO-8719: fixed error message display for nested wizard components
|
|
79
|
+
- FIO-9086: time component with default value validation fix
|
|
79
80
|
- FIO-9080 checkbox radio validation error
|
|
80
81
|
- FIO-9147: fixed an issue where the simple conditionally visible component is not validated on change
|
|
81
82
|
- FIO-9056: Fix enabling multiple values for address component
|
|
@@ -109,7 +110,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
109
110
|
- FIO-9153-9154: fixed console errors when navigating tagpad validation errors
|
|
110
111
|
- FIO-9127 fixed saving an empty value for day component after deleting values
|
|
111
112
|
- FIO-9120: Fix issue with unchecking radio default value
|
|
112
|
-
- FIO-7195/FIO-8234: Fixes an issue where Select renders value properties instead of labels in DataTable
|
|
113
|
+
- FIO-7195/FIO-8234: Fixes an issue where Select renders value properties instead of labels in DataTable
|
|
114
|
+
- FIO-7195: Fixes an issue where Radio/SelectBoxes will show values instead of labels on View tab and in DataTable
|
|
113
115
|
|
|
114
116
|
### New Features
|
|
115
117
|
|
|
@@ -160,7 +162,7 @@ This is a **Breaking Change** so please see the section below for more informati
|
|
|
160
162
|
The 5.x renderer incorporates our new Core validation engine found @ https://github.com/formio/core/tree/master/src/process. This process can be briefly described within the pull request notes @ https://github.com/formio/formio.js/pull/5317. This will also improve our Iso-morphic behavior for our renderer validation and significantly improve memory and processor consumption for server-side form validations. This feature does have a **Breaking Change** which is described below.
|
|
161
163
|
|
|
162
164
|
#### Core SDK
|
|
163
|
-
With the 5.x renderer, the Formio SDK is now part of our Core library found @ https://github.com/formio/core/tree/master/src/sdk. It is now imported directly into the @formio/js library and is re-exported to support reverse compatability. Because of this, there should not be any code upgrade involved.
|
|
165
|
+
With the 5.x renderer, the Formio SDK is now part of our Core library found @ https://github.com/formio/core/tree/master/src/sdk. It is now imported directly into the @formio/js library and is re-exported to support reverse compatability. Because of this, there should not be any code upgrade involved.
|
|
164
166
|
|
|
165
167
|
For example, the following code still works.
|
|
166
168
|
|
|
@@ -201,7 +203,7 @@ With the 5.x version of the renderer/builder, there has been much effort into re
|
|
|
201
203
|
- formio.form.min.js ~ 1.4mb => ~30% size reduction
|
|
202
204
|
- formio.min.js (SDK) ~ 235k => ~50% size reduction
|
|
203
205
|
|
|
204
|
-
#### New lazy-loading Embedding method.
|
|
206
|
+
#### New lazy-loading Embedding method.
|
|
205
207
|
One of the more exciting new additions to the 5.x renderer is the new lazy-loading process for adding the renderer to your application. There is a new file that is included with the 5.x renderer called "formio.embed.js". This file is tiny coming in at ~10kb. What this file does, however, is make it so that you can bundle a lazy-loading renderer within your application without increasing the build sizes of your application.
|
|
206
208
|
|
|
207
209
|
To use the new lazy-loading features, you will need to change your imports from the following to the new embed source as the following illustrates.
|
|
@@ -296,7 +298,7 @@ Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/e
|
|
|
296
298
|
```js
|
|
297
299
|
const isValid = form.getComponent('editgrid').validateRow().length === 0;
|
|
298
300
|
```
|
|
299
|
-
|
|
301
|
+
|
|
300
302
|
- In the 5.x renderer, the errors array will always be populated if there are errors in the form. They may not be displayed depending on the "pristine" state of the rendered form, but the error is always populated if there are form errors. This is different in 4.x where the error property would only contain and error if an error is VISIBLE on the form. This means that it is difficult to determine if a form has errors without executing the checkValidity() method with the dirty flag set to "true". You no longer need to do this in the 5.x renderer.
|
|
301
303
|
|
|
302
304
|
**4.x Renderer**
|
|
@@ -325,7 +327,7 @@ Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/e
|
|
|
325
327
|
console.log(textField.visibleErrors); // This is the equivalent of the 4.x renderer "errors" array.
|
|
326
328
|
```
|
|
327
329
|
|
|
328
|
-
- With the 5.x renderer, all templates are now stored within a separate repo, and are included as a dependency for this renderer.
|
|
330
|
+
- With the 5.x renderer, all templates are now stored within a separate repo, and are included as a dependency for this renderer.
|
|
329
331
|
|
|
330
332
|
### Fixed
|
|
331
333
|
- FIO-7525: fixed an issue where new conditional logic based on select boxes does not work
|
|
@@ -468,7 +470,7 @@ Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/e
|
|
|
468
470
|
|
|
469
471
|
### Changed
|
|
470
472
|
- Add capability for adding sanitize profiles through sanitizeConfig in options
|
|
471
|
-
|
|
473
|
+
|
|
472
474
|
## 5.0.0-rc.26
|
|
473
475
|
### Changed
|
|
474
476
|
- More improvements to the embed capabilities.
|
|
@@ -549,7 +551,7 @@ Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/e
|
|
|
549
551
|
## 5.0.0-rc.6
|
|
550
552
|
### Added
|
|
551
553
|
- FIO-5748: added collapsible preview for Form Builder
|
|
552
|
-
|
|
554
|
+
|
|
553
555
|
### Fixed
|
|
554
556
|
- FIO-6950: fixed test
|
|
555
557
|
- FIO-6669: fixed tooltips cutting off in the component settings modal
|
|
@@ -561,7 +563,7 @@ Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/e
|
|
|
561
563
|
- FIO-6453: added sanitization inside error message container
|
|
562
564
|
- FIO-6345: Add rel=noopener to Links to Docs / External Links
|
|
563
565
|
- FIO-5042: Logout feature for OIDC
|
|
564
|
-
|
|
566
|
+
|
|
565
567
|
### Fixed
|
|
566
568
|
- FIO-6616: fixed issue where the select templates were not getting set correctly in selectData
|
|
567
569
|
- FIO-6533: fixed an issue where file upload hash causing delays in file uploads
|
|
@@ -643,7 +645,7 @@ Formio.use(bootstrap4);
|
|
|
643
645
|
### Added
|
|
644
646
|
- FIO-4429: Add support for pdf auto conversion fields assignment
|
|
645
647
|
- Added basic keyboard accessibility for formbuilder
|
|
646
|
-
|
|
648
|
+
|
|
647
649
|
### Fixed
|
|
648
650
|
- FIO-6512: cannot drag and drop components on to pdf first forms using mac
|
|
649
651
|
- FIO-6468: fixed an issue where Custom validation on Day component is confusing Day and Year
|
|
@@ -797,9 +799,9 @@ Formio.use(bootstrap4);
|
|
|
797
799
|
- FIO-5069: API driven dataTable
|
|
798
800
|
- FIO-5455: Fixes context variables not available in datetime custom disabled dates config
|
|
799
801
|
- FIO-5544: added sticky property to the form components when building forms
|
|
800
|
-
- Upgrade vanilla text mask and text-mask addons.
|
|
802
|
+
- Upgrade vanilla text mask and text-mask addons.
|
|
801
803
|
- FIO-3814: fixed fetch data several times when RefreshOnBlur
|
|
802
|
-
|
|
804
|
+
|
|
803
805
|
## 4.15.0-rc.13
|
|
804
806
|
### Added
|
|
805
807
|
- FIO-4836: hash was added to file
|
|
@@ -808,7 +810,7 @@ Formio.use(bootstrap4);
|
|
|
808
810
|
- FIO-4942: fixed email submission: Custom PDF File Name is not respected
|
|
809
811
|
- FIO-4997: extended check for execution on the server side for tabs component
|
|
810
812
|
- FIO-4861: fixed restored revision node
|
|
811
|
-
- FIO-4976: Fixes select resource data not showing on submission
|
|
813
|
+
- FIO-4976: Fixes select resource data not showing on submission
|
|
812
814
|
- FIO-5053: fixed an issue where select data with html5 widget type is not showing on view or pdf download after submission
|
|
813
815
|
- FIO-5003: fixed that the radio with the value "false" is not displayed in different templates.
|
|
814
816
|
- FIO-4970: reduced limit query parameter value for resource requests
|
|
@@ -922,7 +924,7 @@ Formio.use(bootstrap4);
|
|
|
922
924
|
- FIO-4571: Fixea an issue where tooltips do not appear on hover in the component setting modal
|
|
923
925
|
- FIO-2645: Made clicking on the error of Container component redirect to it.
|
|
924
926
|
- FIO-4595, FIO-4364: Fixes Select with URL keeping default value on pdf submission
|
|
925
|
-
- FIO-4362: Fixed issues with checkbox set as radio type.
|
|
927
|
+
- FIO-4362: Fixed issues with checkbox set as radio type.
|
|
926
928
|
- FIO-4615: Fixing issues with calendar widget with save as text.
|
|
927
929
|
|
|
928
930
|
## 4.15.0-rc.1
|
|
@@ -943,7 +945,7 @@ Formio.use(bootstrap4);
|
|
|
943
945
|
- FIO-4443: Fixed signature not visible when generating a pdf.
|
|
944
946
|
- FIO-4466: Fixed 'Save as reference' in Select resource
|
|
945
947
|
- FIO-4496: fixed an issue where response from the resource does not display in the dropdown when more than one object is in the item template
|
|
946
|
-
- FIO-4487: Protect the comp variable when iterating in wizards
|
|
948
|
+
- FIO-4487: Protect the comp variable when iterating in wizards
|
|
947
949
|
- FIO-4405: fixed an issue where form doesn't submit if hidden radio component has storage type as string
|
|
948
950
|
- FIO-3715: fixed an issue where validation errors were shown with a submission in draft state if container component inside the form
|
|
949
951
|
- FIO-4442: fixed an issue where date is showing the date prior to submitted date on view tab and data tab
|