@abgov/jsonforms-components 2.60.9 → 2.60.10
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 +8 -9
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -7652,6 +7652,7 @@ const GoADateInput = props => {
|
|
|
7652
7652
|
const appliedUiSchemaOptions = Object.assign({}, config, uischema == null ? void 0 : uischema.options);
|
|
7653
7653
|
const readOnly = (_uischema$options$com = uischema == null || (_uischema$options = uischema.options) == null || (_uischema$options = _uischema$options.componentProps) == null ? void 0 : _uischema$options.readOnly) != null ? _uischema$options$com : false;
|
|
7654
7654
|
const width = (_uischema$options$com2 = uischema == null || (_uischema$options2 = uischema.options) == null || (_uischema$options2 = _uischema$options2.componentProps) == null ? void 0 : _uischema$options2.width) != null ? _uischema$options$com2 : '100%';
|
|
7655
|
+
const inputName = (appliedUiSchemaOptions == null ? void 0 : appliedUiSchemaOptions.name) || `${id || label}-input`;
|
|
7655
7656
|
const allowPastDate = uischema == null || (_uischema$options3 = uischema.options) == null ? void 0 : _uischema$options3.allowPastDate;
|
|
7656
7657
|
const allowFutureDate = uischema == null || (_uischema$options4 = uischema.options) == null ? void 0 : _uischema$options4.allowFutureDate;
|
|
7657
7658
|
let minDate = uischema == null || (_uischema$options5 = uischema.options) == null || (_uischema$options5 = _uischema$options5.componentProps) == null ? void 0 : _uischema$options5.min;
|
|
@@ -7668,23 +7669,22 @@ const GoADateInput = props => {
|
|
|
7668
7669
|
} else if (!allowPastDate && allowFutureDate) {
|
|
7669
7670
|
minDate = todayLocalYmd();
|
|
7670
7671
|
}
|
|
7671
|
-
const hostRef = useRef(null);
|
|
7672
7672
|
useEffect(() => {
|
|
7673
|
-
var
|
|
7674
|
-
const host =
|
|
7673
|
+
var _host$shadowRoot;
|
|
7674
|
+
const host = document.querySelector(`goa-input[name="${inputName}"]`);
|
|
7675
7675
|
host == null || (_host$shadowRoot = host.shadowRoot) == null || _host$shadowRoot.querySelector('input[type="date"]');
|
|
7676
7676
|
ensureGoaDatePointerCursor(host);
|
|
7677
|
-
}, [
|
|
7677
|
+
}, [inputName]);
|
|
7678
7678
|
return jsx(GoabInput, Object.assign({
|
|
7679
7679
|
type: "date",
|
|
7680
|
-
ref: hostRef,
|
|
7681
7680
|
error: isVisited && errors.length > 0,
|
|
7682
7681
|
width: width,
|
|
7683
|
-
name:
|
|
7682
|
+
name: inputName,
|
|
7684
7683
|
value: standardizeDate(data) || '',
|
|
7685
7684
|
testId: (appliedUiSchemaOptions == null ? void 0 : appliedUiSchemaOptions.testId) || `${id}-input`,
|
|
7686
7685
|
disabled: !enabled,
|
|
7687
7686
|
readonly: readOnly,
|
|
7687
|
+
ariaLabel: `appliedUiSchemaOptions?.name date`,
|
|
7688
7688
|
min: minDate ? standardizeDate(minDate) || undefined : undefined,
|
|
7689
7689
|
max: maxDate ? standardizeDate(maxDate) || undefined : undefined,
|
|
7690
7690
|
onChange: detail => {
|
|
@@ -17792,10 +17792,9 @@ const FullNameDobControl = props => {
|
|
|
17792
17792
|
setErrors(err);
|
|
17793
17793
|
};
|
|
17794
17794
|
useSyncAutofillFields(['firstName', 'middleName', 'lastName', 'dateOfBirth'], formData, updateFormData, handleRequiredFieldBlur);
|
|
17795
|
-
const hostRef = useRef(null);
|
|
17796
17795
|
useEffect(() => {
|
|
17797
|
-
var
|
|
17798
|
-
const host = (
|
|
17796
|
+
var _controlRef$current$q, _controlRef$current, _host$shadowRoot;
|
|
17797
|
+
const host = (_controlRef$current$q = (_controlRef$current = controlRef.current) == null ? void 0 : _controlRef$current.querySelector('goa-input[type="date"]')) != null ? _controlRef$current$q : null;
|
|
17799
17798
|
host == null || (_host$shadowRoot = host.shadowRoot) == null || _host$shadowRoot.querySelector('input[type="date"]');
|
|
17800
17799
|
ensureGoaDatePointerCursor(host);
|
|
17801
17800
|
}, []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.60.
|
|
3
|
+
"version": "2.60.10",
|
|
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",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-04-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-04-21T15:53:32.880Z",
|
|
4
|
+
"sourceCommit": "2265c305584d816ce63e4c9629f9cef3e5950555",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|