@abgov/jsonforms-components 2.24.0 → 2.24.2
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 +36 -34
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -6947,40 +6947,42 @@ const GoAEmailInput = props => {
|
|
|
6947
6947
|
const splintIndex = splitErrors.findIndex(e => e === 'is a required property');
|
|
6948
6948
|
splitErrors[splintIndex] = `${primaryLabel} is required`;
|
|
6949
6949
|
const finalErrors = splitErrors.join('\n');
|
|
6950
|
-
return jsx(
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6950
|
+
return jsx(FormFieldWrapper, {
|
|
6951
|
+
children: jsx(GoAFormItem, {
|
|
6952
|
+
error: isVisited && finalErrors,
|
|
6953
|
+
testId: "form-email-input-wrapper",
|
|
6954
|
+
requirement: required ? 'required' : undefined,
|
|
6955
|
+
label: primaryLabel,
|
|
6956
|
+
children: jsx(GoAInput, {
|
|
6957
|
+
error: isVisited && finalErrors.length > 0,
|
|
6958
|
+
type: 'email',
|
|
6959
|
+
width: width,
|
|
6960
|
+
name: "Email address",
|
|
6961
|
+
value: data,
|
|
6962
|
+
testId: (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.testId) || `${id}-input`,
|
|
6963
|
+
disabled: !enabled,
|
|
6964
|
+
readonly: readOnly,
|
|
6965
|
+
onChange: (name, value) => {
|
|
6966
|
+
if (!isVisited) {
|
|
6967
|
+
setIsVisited(true);
|
|
6968
|
+
}
|
|
6969
|
+
onChangeForInputControl({
|
|
6970
|
+
name,
|
|
6971
|
+
value,
|
|
6972
|
+
controlProps: props
|
|
6973
|
+
});
|
|
6974
|
+
},
|
|
6975
|
+
onBlur: (name, value) => {
|
|
6976
|
+
if (!isVisited) {
|
|
6977
|
+
setIsVisited(true);
|
|
6978
|
+
}
|
|
6979
|
+
onBlurForTextControl({
|
|
6980
|
+
name,
|
|
6981
|
+
value,
|
|
6982
|
+
controlProps: props
|
|
6983
|
+
});
|
|
6977
6984
|
}
|
|
6978
|
-
|
|
6979
|
-
name,
|
|
6980
|
-
value,
|
|
6981
|
-
controlProps: props
|
|
6982
|
-
});
|
|
6983
|
-
}
|
|
6985
|
+
})
|
|
6984
6986
|
})
|
|
6985
6987
|
});
|
|
6986
6988
|
};
|
|
@@ -8290,7 +8292,7 @@ const ApplicationStatus = () => {
|
|
|
8290
8292
|
const total = categories.length;
|
|
8291
8293
|
const completed = selectNumberOfCompletedCategories();
|
|
8292
8294
|
const type = total === completed ? 'success' : 'important';
|
|
8293
|
-
const heading = total === completed ? 'Application
|
|
8295
|
+
const heading = total === completed ? 'Application completed' : 'Application incomplete';
|
|
8294
8296
|
const message = `You have completed ${completed} of ${total} sections.`;
|
|
8295
8297
|
return jsx(CompletionStatus, {
|
|
8296
8298
|
children: jsx(GoACallout, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.24.
|
|
3
|
+
"version": "2.24.2",
|
|
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",
|