@abgov/jsonforms-components 1.15.4 → 1.15.5
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/index.esm.js +1 -7
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4475,12 +4475,6 @@ const RenderFormFields = ({
|
|
|
4475
4475
|
const fileListValue = (_b = enumerators === null || enumerators === void 0 ? void 0 : enumerators.data) === null || _b === void 0 ? void 0 : _b.get('file-list');
|
|
4476
4476
|
// eslint-disable-next-line
|
|
4477
4477
|
const fileList = fileListValue && fileListValue();
|
|
4478
|
-
const toCamelCase = input => {
|
|
4479
|
-
const words = input.split(' ');
|
|
4480
|
-
const firstWord = words[0].toLowerCase();
|
|
4481
|
-
const capitalizedWords = words.slice(1).map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase());
|
|
4482
|
-
return [firstWord, ...capitalizedWords].join('');
|
|
4483
|
-
};
|
|
4484
4478
|
const downloadFile = (file, propertyId) => {
|
|
4485
4479
|
if (downloadTrigger) {
|
|
4486
4480
|
downloadTrigger(file, propertyId);
|
|
@@ -4494,7 +4488,7 @@ const RenderFormFields = ({
|
|
|
4494
4488
|
const label = clonedElement.label ? clonedElement.label : resolveLabelFromScope(clonedElement.scope);
|
|
4495
4489
|
if (!label) return null;
|
|
4496
4490
|
const isFileUploader = clonedElement.scope.includes('fileUploader');
|
|
4497
|
-
const fileUploaderElement = isFileUploader ? fileList && fileList[
|
|
4491
|
+
const fileUploaderElement = isFileUploader ? fileList && fileList[lastSegment] : null;
|
|
4498
4492
|
const value = getFormFieldValue(clonedElement.scope, data ? data : {}).toString();
|
|
4499
4493
|
const isRequired = requiredFields.includes(lastSegment);
|
|
4500
4494
|
const asterisk = isRequired ? ' *' : '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|