@abgov/jsonforms-components 2.22.1 → 2.22.3

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.
Files changed (2) hide show
  1. package/index.esm.js +6 -5
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -8079,7 +8079,7 @@ const JsonFormsStepperContextProvider = ({
8079
8079
  type: 'update/uischema',
8080
8080
  payload: {
8081
8081
  state: createStepperContextInitData(Object.assign({}, StepperProps, {
8082
- activeId: stepperState === null || stepperState === void 0 ? void 0 : stepperState.activeId
8082
+ activeId: Math.min(stepperState === null || stepperState === void 0 ? void 0 : stepperState.activeId, stepperState.maxReachedStep)
8083
8083
  }))
8084
8084
  }
8085
8085
  });
@@ -8217,12 +8217,13 @@ const FormStepperView = props => {
8217
8217
  type: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonType) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonType : 'secondary',
8218
8218
  disabled: selectIsDisabled(),
8219
8219
  onClick: () => {
8220
- var _a, _b, _c;
8220
+ var _a, _b, _c, _d;
8221
8221
  const element = document.getElementById(`${path || `goa`}-form-stepper`);
8222
8222
  if (element) {
8223
8223
  element.scrollIntoView();
8224
8224
  }
8225
- headersRef.current[activeId - 1] && ((_c = (_b = (_a = headersRef.current[activeId - 1].querySelector('goa-form-step')) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input')) === null || _c === void 0 ? void 0 : _c.click());
8225
+ // switched from input to button - i'm writing this comment to trigger deployment
8226
+ headersRef.current[activeId - 1] && ((_d = (_c = (_b = (_a = headersRef.current[activeId - 1]) === null || _a === void 0 ? void 0 : _a.querySelector('goa-form-step')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.click());
8226
8227
  },
8227
8228
  testId: "prev-button",
8228
8229
  children: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonLabel) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonLabel : 'Previous'
@@ -8232,8 +8233,8 @@ const FormStepperView = props => {
8232
8233
  type: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonType) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonType : 'primary',
8233
8234
  disabled: selectIsDisabled(),
8234
8235
  onClick: () => {
8235
- var _a, _b, _c;
8236
- headersRef.current[activeId + 1] && ((_c = (_b = (_a = headersRef.current[activeId + 1].querySelector('goa-form-step')) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input')) === null || _c === void 0 ? void 0 : _c.click());
8236
+ var _a, _b, _c, _d;
8237
+ headersRef.current[activeId + 1] && ((_d = (_c = (_b = (_a = headersRef.current[activeId + 1]) === null || _a === void 0 ? void 0 : _a.querySelector('goa-form-step')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.click());
8237
8238
  const element = document.getElementById(`${path || `goa`}-form-stepper`);
8238
8239
  if (element) {
8239
8240
  element.scrollIntoView();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.22.1",
3
+ "version": "2.22.3",
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",