@abgov/jsonforms-components 2.3.5 → 2.3.7

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
@@ -6,7 +6,7 @@ import styled from 'styled-components';
6
6
  import axios from 'axios';
7
7
  import get$1 from 'lodash/get';
8
8
  import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, getControlPath, toDataPath, deriveLabelForUISchemaElement, isEnabled, schemaTypeIs, formatIs, createDefaultValue, or, isObjectArrayControl, isPrimitiveArrayControl, Paths, schemaMatches, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
9
- import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, JsonFormsDispatch, useJsonForms, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
9
+ import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, JsonFormsDispatch, useJsonForms, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsAllOfProps, withJsonFormsCellProps } from '@jsonforms/react';
10
10
  import * as _$c from 'lodash';
11
11
  import { isEqual, isEmpty as isEmpty$1, isObject as isObject$f } from 'lodash';
12
12
  import merge from 'lodash/merge';
@@ -4305,7 +4305,7 @@ styled.h4(_t7$2 || (_t7$2 = _$a`
4305
4305
  margin: 0 0 0.25rem 0;
4306
4306
  fontsize: larger;
4307
4307
  `));
4308
- const Row = styled.h4(_t8$2 || (_t8$2 = _$a`
4308
+ styled.h4(_t8$2 || (_t8$2 = _$a`
4309
4309
  border-bottom: 1px solid #ddd;
4310
4310
  `));
4311
4311
 
@@ -5546,8 +5546,22 @@ const BooleanComponent = ({
5546
5546
  schema,
5547
5547
  isVisited
5548
5548
  }) => {
5549
- var _a, _b, _c;
5550
- const text = `${((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.text) ? (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.text : (schema === null || schema === void 0 ? void 0 : schema.title) ? schema === null || schema === void 0 ? void 0 : schema.title : schema === null || schema === void 0 ? void 0 : schema.description}${required ? ' (required)' : ''}`;
5549
+ var _a;
5550
+ const getRequiredLabelText = () => {
5551
+ var _a, _b;
5552
+ let label = '';
5553
+ if ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.text) {
5554
+ label = (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.text;
5555
+ } else if (schema === null || schema === void 0 ? void 0 : schema.title) {
5556
+ label = schema === null || schema === void 0 ? void 0 : schema.title;
5557
+ } else if (schema === null || schema === void 0 ? void 0 : schema.description) {
5558
+ label = schema === null || schema === void 0 ? void 0 : schema.description;
5559
+ } else if (uischema === null || uischema === void 0 ? void 0 : uischema.label) {
5560
+ label = uischema === null || uischema === void 0 ? void 0 : uischema.label;
5561
+ }
5562
+ return `${label}${required ? ' (required)' : ''}`;
5563
+ };
5564
+ const text = getRequiredLabelText();
5551
5565
  return jsx(CheckboxWrapper, {
5552
5566
  children: jsx(GoACheckbox, Object.assign({
5553
5567
  error: isVisited && errors.length > 0,
@@ -5559,7 +5573,7 @@ const BooleanComponent = ({
5559
5573
  onChange: (_, checked) => {
5560
5574
  handleChange(path, checked);
5561
5575
  }
5562
- }, (_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.componentProps, {
5576
+ }, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps, {
5563
5577
  mb: "none"
5564
5578
  }))
5565
5579
  });
@@ -5711,7 +5725,7 @@ const warningIcon = errorMessage => {
5711
5725
  });
5712
5726
  };
5713
5727
  const GoABaseInputReviewComponent = props => {
5714
- var _a, _b, _c, _d, _e;
5728
+ var _a, _b, _c;
5715
5729
  // eslint-disable-next-line
5716
5730
  const {
5717
5731
  data,
@@ -5723,7 +5737,20 @@ const GoABaseInputReviewComponent = props => {
5723
5737
  } = props;
5724
5738
  let reviewText = data;
5725
5739
  const isBoolean = typeof data === 'boolean';
5726
- const requiredText = `${((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.text) ? (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.text : (schema === null || schema === void 0 ? void 0 : schema.title) ? schema === null || schema === void 0 ? void 0 : schema.title : schema === null || schema === void 0 ? void 0 : schema.description}${required ? ' is required.' : ''}`;
5740
+ const getRequiredLabelText = () => {
5741
+ var _a, _b;
5742
+ let label = '';
5743
+ if ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.text) {
5744
+ label = (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.text;
5745
+ } else if (schema === null || schema === void 0 ? void 0 : schema.title) {
5746
+ label = schema === null || schema === void 0 ? void 0 : schema.title;
5747
+ } else if (schema === null || schema === void 0 ? void 0 : schema.description) {
5748
+ label = schema === null || schema === void 0 ? void 0 : schema.description;
5749
+ } else if (uischema === null || uischema === void 0 ? void 0 : uischema.label) {
5750
+ label = (uischema === null || uischema === void 0 ? void 0 : uischema.label) || '';
5751
+ }
5752
+ return `${label} ${required ? 'is required' : ''}`;
5753
+ };
5727
5754
  const renderRequiredLabel = () => {
5728
5755
  var _a;
5729
5756
  if (label !== '' && ((_a = uischema.options) === null || _a === void 0 ? void 0 : _a.text) !== '') return null;
@@ -5731,6 +5758,7 @@ const GoABaseInputReviewComponent = props => {
5731
5758
  children: ` (required)`
5732
5759
  }) : null;
5733
5760
  };
5761
+ const requiredText = getRequiredLabelText();
5734
5762
  const renderWarningMessage = () => {
5735
5763
  var _a;
5736
5764
  if ((_a = uischema.options) === null || _a === void 0 ? void 0 : _a.radio) return null;
@@ -5740,8 +5768,8 @@ const GoABaseInputReviewComponent = props => {
5740
5768
  return null;
5741
5769
  };
5742
5770
  if (isBoolean) {
5743
- const checkboxLabel = ((_d = (_c = uischema.options) === null || _c === void 0 ? void 0 : _c.text) === null || _d === void 0 ? void 0 : _d.trim()) || convertToSentenceCase(getLastSegmentFromPointer(uischema.scope));
5744
- if (((_e = uischema.options) === null || _e === void 0 ? void 0 : _e.radio) === true) {
5771
+ const checkboxLabel = ((_b = (_a = uischema.options) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.trim()) || convertToSentenceCase(getLastSegmentFromPointer(uischema.scope));
5772
+ if (((_c = uischema.options) === null || _c === void 0 ? void 0 : _c.radio) === true) {
5745
5773
  reviewText = data ? `Yes` : `No`;
5746
5774
  } else {
5747
5775
  if (label !== '' || typeof label === 'boolean') {
@@ -5820,16 +5848,14 @@ const GoAInputBaseTableReviewControl = withJsonFormsControlProps(GoAInputBaseTab
5820
5848
  let _$7 = t => t,
5821
5849
  _t$7;
5822
5850
  const renderLayoutElements = (elements, schema, path, enabled, renderers, cells) => {
5823
- return elements.map((child, index) => jsx("div", {
5824
- children: jsx(JsonFormsDispatch, {
5825
- uischema: child,
5826
- schema: schema,
5827
- path: path,
5828
- enabled: enabled,
5829
- renderers: renderers,
5830
- cells: cells
5831
- }, path)
5832
- }, index));
5851
+ return elements.map((child, index) => jsx(JsonFormsDispatch, {
5852
+ uischema: child,
5853
+ schema: schema,
5854
+ path: path,
5855
+ enabled: enabled,
5856
+ renderers: renderers,
5857
+ cells: cells
5858
+ }, `review-${path}_${index}`));
5833
5859
  };
5834
5860
  const withAjvProps = Component => function WithAjvProps(props) {
5835
5861
  const ctx = useJsonForms();
@@ -6002,7 +6028,7 @@ const FormStepperSummaryH3 = styled.h3(_t11$1 || (_t11$1 = _$6`
6002
6028
  line-height: var(--goa-line-height-4);
6003
6029
  font-weight: var(--goa-font-weight-regular);
6004
6030
  `));
6005
- const PageRenderPadding = styled.h3(_t12$1 || (_t12$1 = _$6`
6031
+ const PageRenderPadding = styled.div(_t12$1 || (_t12$1 = _$6`
6006
6032
  margin-top: var(--goa-space-2xl);
6007
6033
  `));
6008
6034
  const PageBorder = styled.h3(_t13$1 || (_t13$1 = _$6`
@@ -6021,9 +6047,7 @@ const TableReviewItem = styled.div(_t15$1 || (_t15$1 = _$6`
6021
6047
  const TableReviewPageTitleRow = styled.div(_t16$1 || (_t16$1 = _$6`
6022
6048
  margin-top: var(--goa-space-xl);
6023
6049
  display: flex;
6024
- .right {
6025
- margin-left: auto;
6026
- }
6050
+ justify-content: space-between;
6027
6051
  `));
6028
6052
  const TableReviewCategoryLabel = styled.h3(_t17$1 || (_t17$1 = _$6`
6029
6053
  color: var(--goa-color-text-secondary) !important;
@@ -7203,26 +7227,21 @@ const FormStepperPageReviewer = props => {
7203
7227
  children: "Review your answers"
7204
7228
  }), categories.map((category, index) => {
7205
7229
  const categoryLabel = category.label || category.i18n || 'Unknown Category';
7206
- return jsxs(Row, {
7207
- children: [jsx("div", {
7208
- children: jsxs(TableReviewPageTitleRow, {
7209
- children: [jsx(TableReviewCategoryLabel, {
7210
- children: categoryLabel
7211
- }), jsx("div", {
7212
- className: "right",
7213
- children: jsx(GoAButton, {
7214
- type: "tertiary",
7215
- testId: `page-review-change-${category.label}-btn`,
7216
- onClick: () => {
7217
- if (formStepperCtx) {
7218
- formStepperCtx.toggleShowReviewLink(index);
7219
- formStepperCtx.goToPage(index);
7220
- }
7221
- },
7222
- children: "Change"
7223
- })
7224
- })]
7225
- })
7230
+ return jsxs(Fragment, {
7231
+ children: [jsxs(TableReviewPageTitleRow, {
7232
+ children: [jsx(TableReviewCategoryLabel, {
7233
+ children: categoryLabel
7234
+ }), jsx(GoAButton, {
7235
+ type: "tertiary",
7236
+ testId: `page-review-change-${category.label}-btn`,
7237
+ onClick: () => {
7238
+ if (formStepperCtx) {
7239
+ formStepperCtx.toggleShowReviewLink(index);
7240
+ formStepperCtx.goToPage(index);
7241
+ }
7242
+ },
7243
+ children: "Change"
7244
+ })]
7226
7245
  }), jsx(TableReviewItemSection, {
7227
7246
  children: category.elements.filter(field => {
7228
7247
  var _a, _b;
@@ -7252,7 +7271,7 @@ const FormStepperPageReviewer = props => {
7252
7271
  } else {
7253
7272
  return e;
7254
7273
  }
7255
- }).flat().map(element => {
7274
+ }).flat().map((element, index) => {
7256
7275
  return jsx(GoATable, {
7257
7276
  width: "100%",
7258
7277
  children: jsx("tbody", {
@@ -7269,7 +7288,7 @@ const FormStepperPageReviewer = props => {
7269
7288
  cells: cells
7270
7289
  })
7271
7290
  })
7272
- });
7291
+ }, index);
7273
7292
  })
7274
7293
  }, index)]
7275
7294
  });
@@ -10339,6 +10358,45 @@ const FullNameControl = props => {
10339
10358
  const isFullName = createSchemaMatchTester(['firstName', 'middleName', 'lastName'], true);
10340
10359
  const FullNameTester = rankWith(4, isFullName);
10341
10360
 
10361
+ const FullNameControlReview = props => {
10362
+ var _a, _b, _c;
10363
+ return jsx("div", {
10364
+ children: jsxs(GoAGrid, {
10365
+ minChildWidth: "0ch",
10366
+ gap: "s",
10367
+ mb: "m",
10368
+ children: [jsx(GoAFormItem, {
10369
+ label: "First name",
10370
+ requirement: "required",
10371
+ children: jsx(TextWrapDiv, {
10372
+ children: jsx("div", {
10373
+ "data-testid": `firstName-control-${props.id}`,
10374
+ children: (_a = props.data) === null || _a === void 0 ? void 0 : _a.firstName
10375
+ })
10376
+ })
10377
+ }), jsx(GoAFormItem, {
10378
+ label: "Middle name",
10379
+ children: jsx(TextWrapDiv, {
10380
+ children: jsx("div", {
10381
+ "data-testid": `middleName-control-${props.id}`,
10382
+ children: (_b = props.data) === null || _b === void 0 ? void 0 : _b.middleName
10383
+ })
10384
+ })
10385
+ }), jsx(GoAFormItem, {
10386
+ label: "Last name",
10387
+ requirement: "required",
10388
+ children: jsx(TextWrapDiv, {
10389
+ children: jsx("div", {
10390
+ "data-testid": `lastName-control-${props.id}`,
10391
+ children: (_c = props.data) === null || _c === void 0 ? void 0 : _c.lastName
10392
+ })
10393
+ })
10394
+ })]
10395
+ })
10396
+ });
10397
+ };
10398
+ const GoAInputBaseFullNameControlReview = withJsonFormsAllOfProps(FullNameControlReview);
10399
+
10342
10400
  const FullNameDobControl = props => {
10343
10401
  var _a, _b, _c, _d, _e, _f;
10344
10402
  const {
@@ -10477,35 +10535,19 @@ const FullNameDobControl = props => {
10477
10535
  };
10478
10536
 
10479
10537
  const FullNameDobReviewControl = props => {
10480
- var _a, _b, _c, _d, _e, _f, _g;
10481
- const requiredFields = props.schema.required;
10482
- const [errors, setErrors] = useState({});
10483
- useEffect(() => {
10484
- var _a, _b, _c;
10485
- const err = {};
10486
- if ((requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('firstName')) && !((_a = props.data) === null || _a === void 0 ? void 0 : _a.firstName)) {
10487
- err['firstName'] = `First name is required`;
10488
- }
10489
- if ((requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('lastName')) && !((_b = props.data) === null || _b === void 0 ? void 0 : _b.lastName)) {
10490
- err['lastName'] = `Last name is required`;
10491
- }
10492
- if ((requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('dateOfBirth')) && !((_c = props.data) === null || _c === void 0 ? void 0 : _c.dateOfBirth)) {
10493
- err['dateOfBirth'] = `Date of birth is required`;
10494
- }
10495
- setErrors(err);
10496
- }, [props.data, requiredFields]);
10538
+ var _a, _b, _c, _d;
10497
10539
  return jsxs(Fragment, {
10498
10540
  children: [jsxs(GoAGrid, {
10499
10541
  minChildWidth: "0ch",
10500
10542
  gap: "s",
10543
+ mb: "m",
10501
10544
  children: [jsx(GoAFormItem, {
10502
10545
  label: "First name",
10503
- requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('firstName')) ? 'required' : undefined,
10504
- error: (_a = errors === null || errors === void 0 ? void 0 : errors['firstName']) !== null && _a !== void 0 ? _a : '',
10546
+ requirement: "required",
10505
10547
  children: jsx(TextWrapDiv, {
10506
10548
  children: jsx("div", {
10507
10549
  "data-testid": `firstName-control-${props.id}`,
10508
- children: (_b = props.data) === null || _b === void 0 ? void 0 : _b.firstName
10550
+ children: (_a = props.data) === null || _a === void 0 ? void 0 : _a.firstName
10509
10551
  })
10510
10552
  })
10511
10553
  }), jsx(GoAFormItem, {
@@ -10513,17 +10555,16 @@ const FullNameDobReviewControl = props => {
10513
10555
  children: jsx(TextWrapDiv, {
10514
10556
  children: jsx("div", {
10515
10557
  "data-testid": `middleName-control-${props.id}`,
10516
- children: (_c = props.data) === null || _c === void 0 ? void 0 : _c.middleName
10558
+ children: (_b = props.data) === null || _b === void 0 ? void 0 : _b.middleName
10517
10559
  })
10518
10560
  })
10519
10561
  }), jsx(GoAFormItem, {
10520
10562
  label: "Last name",
10521
- requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('lastName')) ? 'required' : undefined,
10522
- error: (_d = errors === null || errors === void 0 ? void 0 : errors['lastName']) !== null && _d !== void 0 ? _d : '',
10563
+ requirement: "required",
10523
10564
  children: jsx(TextWrapDiv, {
10524
10565
  children: jsx("div", {
10525
10566
  "data-testid": `lastName-control-${props.id}`,
10526
- children: (_e = props.data) === null || _e === void 0 ? void 0 : _e.lastName
10567
+ children: (_c = props.data) === null || _c === void 0 ? void 0 : _c.lastName
10527
10568
  })
10528
10569
  })
10529
10570
  })]
@@ -10532,18 +10573,18 @@ const FullNameDobReviewControl = props => {
10532
10573
  gap: "s",
10533
10574
  children: jsx(GoAFormItem, {
10534
10575
  label: "Date of birth",
10535
- requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('dateOfBirth')) ? 'required' : undefined,
10536
- error: (_f = errors === null || errors === void 0 ? void 0 : errors['dateOfBirth']) !== null && _f !== void 0 ? _f : '',
10576
+ requirement: "required",
10537
10577
  children: jsx(TextWrapDiv, {
10538
10578
  children: jsx("div", {
10539
10579
  "data-testid": `dob-control-${props.id}`,
10540
- children: (_g = props.data) === null || _g === void 0 ? void 0 : _g.dateOfBirth
10580
+ children: (_d = props.data) === null || _d === void 0 ? void 0 : _d.dateOfBirth
10541
10581
  })
10542
10582
  })
10543
10583
  })
10544
10584
  })]
10545
10585
  });
10546
10586
  };
10587
+ const GoAInputBaseFullNameDobControlReview = withJsonFormsAllOfProps(FullNameDobReviewControl);
10547
10588
 
10548
10589
  const isFullNameDoB = createSchemaMatchTester(['firstName', 'middleName', 'lastName', 'dateOfBirth'], true);
10549
10590
  const FullNameDobTester = rankWith(4, isFullNameDoB);
@@ -11917,6 +11958,12 @@ const GoABaseReviewRenderers = [
11917
11958
  const GoABaseTableReviewRenderers = [
11918
11959
  // controls
11919
11960
  {
11961
+ tester: FullNameTester,
11962
+ renderer: GoAInputBaseFullNameControlReview
11963
+ }, {
11964
+ tester: FullNameDobTester,
11965
+ renderer: GoAInputBaseFullNameDobControlReview
11966
+ }, {
11920
11967
  tester: GoAEnumControlTester,
11921
11968
  renderer: GoAInputBaseTableReviewControl
11922
11969
  }, {
@@ -12017,4 +12064,4 @@ const GoARenderers = [...GoABaseRenderers, {
12017
12064
  }];
12018
12065
  const GoACells = [...InputCells];
12019
12066
 
12020
- export { ADD_DATALIST_ACTION, ADD_NO_ANONYMOUS_ACTION, ADD_REGISTER_DATA_ACTION, ADD_REGISTER_DATA_ERROR, AddressLookUpControl, AddressLookUpControlReview, AddressLookUpTester, AddressLoopUpControlTableReview, ArrayControl, ArrayControlBase, ArrayControlReview, BooleanComponent, BooleanControl, BooleanRadioComponent, BooleanRadioControl, CategorizationPagesRendererTester, CategorizationStepperRendererTester, CheckboxGroup, ContextProviderC, ContextProviderClass, ContextProviderFactory, EnumCheckboxControl, EnumRadioControl, EnumSelect, FileUploader, FileUploaderReview, FileUploaderTester, FormPageStepper, FormPagesView, FormStepper, FormStepperControl, FormStepperPagesControl, FormStepperReviewControl, FormStepperReviewer, FormStepperView, FullNameControl, FullNameDobControl, FullNameDobReviewControl, FullNameDobTester, FullNameReviewControl, FullNameTester, GoAArrayControlRenderer, GoAArrayControlReviewRenderer, GoAArrayControlTester, GoABaseInputReviewComponent, GoABaseRenderers, GoABaseReviewRenderers, GoABaseTableReviewRenderers, GoABooleanControl, GoABooleanControlTester, GoABooleanRadioControl, GoABooleanRadioControlTester, GoACells, GoACheckoutGroupControlTester, GoADateControl, GoADateControlTester, GoADateInput, GoADateTimeControl, GoADateTimeControlTester, GoADateTimeInput, GoAEnumCheckboxGroupControl, GoAEnumControl, GoAEnumControlTester, GoAEnumRadioGroupControl, GoAInputBaseControl, GoAInputBaseTableReview, GoAInputBaseTableReviewControl, GoAInputDateControl, GoAInputDateTimeControl, GoAInputInteger, GoAInputIntegerControl, GoAInputNumberControl, GoAInputText, GoAInputTextControl, GoAInputTimeControl, GoAIntegerControl, GoAIntegerControlTester, GoAListWithDetailsControlRenderer, GoAListWithDetailsTester, GoANumberControl, GoANumberControlTester, GoANumberInput, GoARadioGroupControlTester, GoARenderers, GoAReviewRenderers, GoATextControl, GoATextControlTester, GoATimeControl, GoATimeControlTester, GoATimeInput, GoInputBaseReview, GoInputBaseReviewControl, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, ListWithDetailsControl, MultiLineText, MultiLineTextControl, MultiLineTextControlInput, MultiLineTextControlTester, RadioGroup, categoriesAreValid, createDefaultAjv, enumControl, errMalformedDate, formatSin, isAddressLookup, isFullName, isFullNameDoB, registerReducer, resolveRefs, tryResolveRefs };
12067
+ export { ADD_DATALIST_ACTION, ADD_NO_ANONYMOUS_ACTION, ADD_REGISTER_DATA_ACTION, ADD_REGISTER_DATA_ERROR, AddressLookUpControl, AddressLookUpControlReview, AddressLookUpTester, AddressLoopUpControlTableReview, ArrayControl, ArrayControlBase, ArrayControlReview, BooleanComponent, BooleanControl, BooleanRadioComponent, BooleanRadioControl, CategorizationPagesRendererTester, CategorizationStepperRendererTester, CheckboxGroup, ContextProviderC, ContextProviderClass, ContextProviderFactory, EnumCheckboxControl, EnumRadioControl, EnumSelect, FileUploader, FileUploaderReview, FileUploaderTester, FormPageStepper, FormPagesView, FormStepper, FormStepperControl, FormStepperPagesControl, FormStepperReviewControl, FormStepperReviewer, FormStepperView, FullNameControl, FullNameControlReview, FullNameDobControl, FullNameDobReviewControl, FullNameDobTester, FullNameReviewControl, FullNameTester, GoAArrayControlRenderer, GoAArrayControlReviewRenderer, GoAArrayControlTester, GoABaseInputReviewComponent, GoABaseRenderers, GoABaseReviewRenderers, GoABaseTableReviewRenderers, GoABooleanControl, GoABooleanControlTester, GoABooleanRadioControl, GoABooleanRadioControlTester, GoACells, GoACheckoutGroupControlTester, GoADateControl, GoADateControlTester, GoADateInput, GoADateTimeControl, GoADateTimeControlTester, GoADateTimeInput, GoAEnumCheckboxGroupControl, GoAEnumControl, GoAEnumControlTester, GoAEnumRadioGroupControl, GoAInputBaseControl, GoAInputBaseFullNameControlReview, GoAInputBaseFullNameDobControlReview, GoAInputBaseTableReview, GoAInputBaseTableReviewControl, GoAInputDateControl, GoAInputDateTimeControl, GoAInputInteger, GoAInputIntegerControl, GoAInputNumberControl, GoAInputText, GoAInputTextControl, GoAInputTimeControl, GoAIntegerControl, GoAIntegerControlTester, GoAListWithDetailsControlRenderer, GoAListWithDetailsTester, GoANumberControl, GoANumberControlTester, GoANumberInput, GoARadioGroupControlTester, GoARenderers, GoAReviewRenderers, GoATextControl, GoATextControlTester, GoATimeControl, GoATimeControlTester, GoATimeInput, GoInputBaseReview, GoInputBaseReviewControl, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, ListWithDetailsControl, MultiLineText, MultiLineTextControl, MultiLineTextControlInput, MultiLineTextControlTester, RadioGroup, categoriesAreValid, createDefaultAjv, enumControl, errMalformedDate, formatSin, isAddressLookup, isFullName, isFullNameDoB, registerReducer, resolveRefs, tryResolveRefs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
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",
@@ -10,7 +10,7 @@ export declare const ListWithDetail: import("styled-components/dist/types").ISty
10
10
  export declare const ListWithDetailHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
11
11
  export declare const RightAlignmentDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
12
  export declare const FormStepperSummaryH3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
13
- export declare const PageRenderPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
13
+ export declare const PageRenderPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
14
  export declare const PageBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
15
15
  export declare const TableReviewItemSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
16
  export declare const TableReviewItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ControlProps } from '@jsonforms/core';
3
+ type FullNameControlReviewProps = ControlProps;
4
+ export declare const FullNameControlReview: (props: FullNameControlReviewProps) => JSX.Element;
5
+ export declare const GoAInputBaseFullNameControlReview: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from './FullNameControl';
2
2
  export * from './FullNameTester';
3
+ export * from './FullNameControlReview';
@@ -1,4 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { ControlProps } from '@jsonforms/core';
2
3
  type DateOfBirthReviewControlProps = ControlProps;
3
4
  export declare const FullNameDobReviewControl: (props: DateOfBirthReviewControlProps) => JSX.Element;
5
+ export declare const GoAInputBaseFullNameDobControlReview: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
4
6
  export {};