@abgov/jsonforms-components 2.22.2 → 2.23.0

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 +8 -6
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -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();
@@ -8603,7 +8604,7 @@ const BackButton = ({
8603
8604
  };
8604
8605
 
8605
8606
  const RenderPages = props => {
8606
- var _a, _b;
8607
+ var _a, _b, _c, _d;
8607
8608
  const {
8608
8609
  data,
8609
8610
  schema,
@@ -8628,6 +8629,7 @@ const RenderPages = props => {
8628
8629
  activeId
8629
8630
  } = formStepperCtx.selectStepperState();
8630
8631
  const hideSubmit = (_b = (_a = props.categoryProps.uischema.options) === null || _a === void 0 ? void 0 : _a.hideSubmit) !== null && _b !== void 0 ? _b : false;
8632
+ const toAppOverviewLabel = (_d = (_c = props.categoryProps.uischema.options) === null || _c === void 0 ? void 0 : _c.toAppOverviewLabel) !== null && _d !== void 0 ? _d : 'Back to application overview';
8631
8633
  const submitFormFunction = enumerators === null || enumerators === void 0 ? void 0 : enumerators.submitFunction.get('submit-form');
8632
8634
  const submitForm = submitFormFunction && submitFormFunction();
8633
8635
  const saveFormFunction = enumerators === null || enumerators === void 0 ? void 0 : enumerators.saveFunction.get('save-form');
@@ -8656,7 +8658,7 @@ const RenderPages = props => {
8656
8658
  id: `${path || `goa`}-form-pages`,
8657
8659
  children: jsxs(PageBorder, {
8658
8660
  children: [jsx(BackButton, {
8659
- text: "Back to tasks",
8661
+ text: toAppOverviewLabel,
8660
8662
  link: () => {
8661
8663
  handleSave();
8662
8664
  goToTableOfContext();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.22.2",
3
+ "version": "2.23.0",
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",