@abgov/jsonforms-components 2.60.9 → 2.60.11
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 +37 -22
- 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 => {
|
|
@@ -12678,20 +12678,36 @@ const PrimitiveArrayControl = props => {
|
|
|
12678
12678
|
children: ["No ", arrayLabel.toLowerCase(), " added"]
|
|
12679
12679
|
}), items.map((item, index) => jsxs("div", {
|
|
12680
12680
|
style: {
|
|
12681
|
-
|
|
12682
|
-
|
|
12681
|
+
width: '100%',
|
|
12682
|
+
display: 'grid',
|
|
12683
|
+
gridTemplateColumns: 'minmax(0, 1fr) auto',
|
|
12684
|
+
columnGap: 8,
|
|
12685
|
+
alignItems: 'start'
|
|
12683
12686
|
},
|
|
12684
|
-
children: [jsx(
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12687
|
+
children: [jsx("div", {
|
|
12688
|
+
style: {
|
|
12689
|
+
minWidth: 0
|
|
12690
|
+
},
|
|
12691
|
+
children: jsx(JsonFormsDispatch, {
|
|
12692
|
+
schema: schema.items,
|
|
12693
|
+
uischema: itemUiSchema,
|
|
12694
|
+
path: composePaths(path, `${index}`),
|
|
12695
|
+
enabled: enabled,
|
|
12696
|
+
renderers: renderers,
|
|
12697
|
+
cells: cells
|
|
12698
|
+
})
|
|
12699
|
+
}), jsx("div", {
|
|
12700
|
+
style: {
|
|
12701
|
+
display: 'flex',
|
|
12702
|
+
alignItems: 'flex-start',
|
|
12703
|
+
justifyContent: 'center',
|
|
12704
|
+
paddingTop: 8
|
|
12705
|
+
},
|
|
12706
|
+
children: jsx(GoabIconButton, {
|
|
12707
|
+
icon: "trash",
|
|
12708
|
+
"aria-label": `remove-${index}`,
|
|
12709
|
+
onClick: () => removeItem(index)
|
|
12710
|
+
})
|
|
12695
12711
|
})]
|
|
12696
12712
|
}, index))]
|
|
12697
12713
|
});
|
|
@@ -17792,10 +17808,9 @@ const FullNameDobControl = props => {
|
|
|
17792
17808
|
setErrors(err);
|
|
17793
17809
|
};
|
|
17794
17810
|
useSyncAutofillFields(['firstName', 'middleName', 'lastName', 'dateOfBirth'], formData, updateFormData, handleRequiredFieldBlur);
|
|
17795
|
-
const hostRef = useRef(null);
|
|
17796
17811
|
useEffect(() => {
|
|
17797
|
-
var
|
|
17798
|
-
const host = (
|
|
17812
|
+
var _controlRef$current$q, _controlRef$current, _host$shadowRoot;
|
|
17813
|
+
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
17814
|
host == null || (_host$shadowRoot = host.shadowRoot) == null || _host$shadowRoot.querySelector('input[type="date"]');
|
|
17800
17815
|
ensureGoaDatePointerCursor(host);
|
|
17801
17816
|
}, []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.60.
|
|
3
|
+
"version": "2.60.11",
|
|
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-21T16:17:39.646Z",
|
|
4
|
+
"sourceCommit": "f7c3a07bc9a511ea2f0520b2a7ae146c8dcc353b",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|