@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 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 _hostRef$current, _host$shadowRoot;
7674
- const host = (_hostRef$current = hostRef.current) != null ? _hostRef$current : document.querySelector('goa-input[type="date"]');
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
- }, [appliedUiSchemaOptions == null ? void 0 : appliedUiSchemaOptions.name, id]);
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: (appliedUiSchemaOptions == null ? void 0 : appliedUiSchemaOptions.name) || `${id || label}-input`,
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
- display: 'flex',
12682
- gap: 8
12681
+ width: '100%',
12682
+ display: 'grid',
12683
+ gridTemplateColumns: 'minmax(0, 1fr) auto',
12684
+ columnGap: 8,
12685
+ alignItems: 'start'
12683
12686
  },
12684
- children: [jsx(JsonFormsDispatch, {
12685
- schema: schema.items,
12686
- uischema: itemUiSchema,
12687
- path: composePaths(path, `${index}`),
12688
- enabled: enabled,
12689
- renderers: renderers,
12690
- cells: cells
12691
- }, index), jsx(GoabIconButton, {
12692
- icon: "trash",
12693
- "aria-label": `remove-${index}`,
12694
- onClick: () => removeItem(index)
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 _hostRef$current, _host$shadowRoot;
17798
- const host = (_hostRef$current = hostRef.current) != null ? _hostRef$current : document.querySelector('goa-input[type="date"]');
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.9",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-04-20T20:45:40.783Z",
4
- "sourceCommit": "4e3c73e9b1ca474d5410ff4715d1d75056065aa1",
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": [