@abgov/jsonforms-components 2.27.1 → 2.28.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.
package/index.esm.js CHANGED
@@ -7,7 +7,7 @@ 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, isControl, schemaMatches, getAjv, isVisible, toDataPath, isEnabled, deriveLabelForUISchemaElement, schemaTypeIs, formatIs, createDefaultValue, or, isObjectArrayControl, isPrimitiveArrayControl, Paths, hasType, isCategorization, isLayout } from '@jsonforms/core';
9
9
  import { withJsonFormsControlProps, withJsonFormsEnumProps, withTranslateProps, JsonFormsDispatch, useJsonForms, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsAllOfProps, withJsonFormsCellProps } from '@jsonforms/react';
10
- import * as _$b from 'lodash';
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';
13
13
  import isEmpty from 'lodash/isEmpty';
@@ -3548,16 +3548,16 @@ const onChangeForNumericControl = props => {
3548
3548
  }
3549
3549
  };
3550
3550
 
3551
- let _$a = t => t,
3552
- _t$a,
3551
+ let _$b = t => t,
3552
+ _t$b,
3553
3553
  _t2$7;
3554
- styled.div(_t$a || (_t$a = _$a`
3554
+ styled.div(_t$b || (_t$b = _$b`
3555
3555
  height: 70vh;
3556
3556
  overflow-y: auto;
3557
3557
  padding-left: var(--goa-space-2xs);
3558
3558
  padding-right: var(--goa-space-2xs);
3559
3559
  `));
3560
- const Visible = styled.div(_t2$7 || (_t2$7 = _$a`
3560
+ const Visible = styled.div(_t2$7 || (_t2$7 = _$b`
3561
3561
  display: ${0};
3562
3562
  `), p => p.visible ? 'initial' : 'none');
3563
3563
 
@@ -5189,8 +5189,8 @@ const JsonFormRegisterProvider = ({
5189
5189
  });
5190
5190
  };
5191
5191
 
5192
- let _$9 = t => t,
5193
- _t$9,
5192
+ let _$a = t => t,
5193
+ _t$a,
5194
5194
  _t2$6,
5195
5195
  _t3$5,
5196
5196
  _t4$5,
@@ -5198,42 +5198,42 @@ let _$9 = t => t,
5198
5198
  _t6$3,
5199
5199
  _t7$2,
5200
5200
  _t8$2;
5201
- const FormFieldWrapper = styled.div(_t$9 || (_t$9 = _$9`
5201
+ const FormFieldWrapper = styled.div(_t$a || (_t$a = _$a`
5202
5202
  margin-bottom: var(--goa-space-l);
5203
5203
  `));
5204
- const WarningIconDiv = styled.div(_t2$6 || (_t2$6 = _$9`
5204
+ const WarningIconDiv = styled.div(_t2$6 || (_t2$6 = _$a`
5205
5205
  display: inline-flex;
5206
5206
  align-items: flex-start;
5207
5207
  gap: 0.25rem;
5208
5208
  font-size: var(--goa-font-size-2);
5209
5209
  color: var(--goa-color-interactive-error);
5210
5210
  `));
5211
- const RequiredTextLabel = styled.label(_t3$5 || (_t3$5 = _$9`
5211
+ const RequiredTextLabel = styled.label(_t3$5 || (_t3$5 = _$a`
5212
5212
  color: var(--goa-color-greyscale-700);
5213
5213
  font-weight: var(--goa-font-weight-regular);
5214
5214
  font-size: var(--goa-font-size-2);
5215
5215
  line-height: var(--goa-line-height-1);
5216
5216
  font-style: normal;
5217
5217
  `));
5218
- const PageReviewNameCol = styled.td(_t4$5 || (_t4$5 = _$9`
5218
+ const PageReviewNameCol = styled.td(_t4$5 || (_t4$5 = _$a`
5219
5219
  width: 5%;
5220
5220
  padding-top: var(--goa-space-s);
5221
5221
  padding-bottom: var(--goa-space-s);
5222
5222
  padding-right: var(--goa-space-m);
5223
5223
  `));
5224
- const PageReviewValueCol = styled.td(_t5$5 || (_t5$5 = _$9`
5224
+ const PageReviewValueCol = styled.td(_t5$5 || (_t5$5 = _$a`
5225
5225
  width: 20%;
5226
5226
  text-align: left;
5227
5227
  `));
5228
5228
  //Check and unchecked are different heights otherwise
5229
- const CheckboxWrapper = styled.div(_t6$3 || (_t6$3 = _$9`
5229
+ const CheckboxWrapper = styled.div(_t6$3 || (_t6$3 = _$a`
5230
5230
  height: 28px;
5231
5231
  `));
5232
- styled.h4(_t7$2 || (_t7$2 = _$9`
5232
+ styled.h4(_t7$2 || (_t7$2 = _$a`
5233
5233
  margin: 0 0 0.25rem 0;
5234
5234
  fontsize: larger;
5235
5235
  `));
5236
- styled.h4(_t8$2 || (_t8$2 = _$9`
5236
+ styled.h4(_t8$2 || (_t8$2 = _$a`
5237
5237
  border-bottom: 1px solid #ddd;
5238
5238
  `));
5239
5239
 
@@ -5458,13 +5458,13 @@ const SPACE_KEY = ' ';
5458
5458
  const ALT_KEY = 'Alt';
5459
5459
  const SHIFT_KEY = 'Shift';
5460
5460
 
5461
- let _$8 = t => t,
5462
- _t$8,
5461
+ let _$9 = t => t,
5462
+ _t$9,
5463
5463
  _t2$5,
5464
5464
  _t3$4,
5465
5465
  _t4$4,
5466
5466
  _t5$4;
5467
- const GoADropdownTextbox = styled.div(_t$8 || (_t$8 = _$8`
5467
+ const GoADropdownTextbox = styled.div(_t$9 || (_t$9 = _$9`
5468
5468
  border-radius: var(--goa-space-2xs);
5469
5469
  box-shadow: ${0};
5470
5470
  &:hover {
@@ -5475,11 +5475,11 @@ const GoADropdownTextbox = styled.div(_t$8 || (_t$8 = _$8`
5475
5475
  box-shadow: ${0};
5476
5476
  }
5477
5477
  `), p => p.isOpen ? `0 0 0 3px var(--goa-color-interactive-focus)` : '', p => p.isOpen ? `0 0 0 3px var(--goa-color-interactive-focus) !important` : '');
5478
- const GoADropdownListContainerWrapper = styled.div(_t2$5 || (_t2$5 = _$8`
5478
+ const GoADropdownListContainerWrapper = styled.div(_t2$5 || (_t2$5 = _$9`
5479
5479
  position: relative;
5480
5480
  display: ${0};
5481
5481
  `), p => !(p === null || p === void 0 ? void 0 : p.isOpen) && 'none');
5482
- const GoADropdownListContainer = styled.div(_t3$4 || (_t3$4 = _$8`
5482
+ const GoADropdownListContainer = styled.div(_t3$4 || (_t3$4 = _$9`
5483
5483
  border: solid 1px var(--goa-color-greyscale-200);
5484
5484
  border-radius: var(--goa-space-2xs);
5485
5485
  background: var(--goa-color-greyscale-white);
@@ -5503,7 +5503,7 @@ const GoADropdownListContainer = styled.div(_t3$4 || (_t3$4 = _$8`
5503
5503
  scrollbar-color: #a8a8a8 var(--goa-color-greyscale-100) !important;
5504
5504
  }
5505
5505
  `), p => p.optionListMaxHeight || '272px');
5506
- const GoADropdownListOption = styled.div(_t4$4 || (_t4$4 = _$8`
5506
+ const GoADropdownListOption = styled.div(_t4$4 || (_t4$4 = _$9`
5507
5507
  padding: var(--goa-space-2xs) var(--goa-space-s);
5508
5508
  text-overflow: ellipsis;
5509
5509
  color: ${0} !important;
@@ -5536,7 +5536,7 @@ const GoADropdownListOption = styled.div(_t4$4 || (_t4$4 = _$8`
5536
5536
  color: ${0};
5537
5537
  }
5538
5538
  `), p => p.isSelected ? '#fff' : 'var(--goa-color-greyscale-black)', p => p.isSelected ? 'var(--goa-color-interactive-default)' : '#fff', p => p.isSelected ? 'var(--goa-color-interactive-hover)' : 'var(--goa-color-greyscale-100) !important', p => p.isSelected ? 'var(--goa-color-interactive-default)' : 'var(--goa-color-interactive-hover) !important', p => p.isSelected ? 'var(--goa-color-interactive-hover)' : 'var(--goa-color-greyscale-100) !important', p => p.isSelected ? 'var(--goa-color-interactive-default)' : 'var(--goa-color-interactive-hover) !important', p => p.isSelected ? 'var(--goa-color-interactive-hover)' : 'var(--goa-color-greyscale-100) !important', p => p.isSelected ? 'var(--goa-color-interactive-hover)' : 'var(--goa-color-greyscale-100) !important', p => p.isSelected ? '#fff' : 'var(--goa-color-interactive-hover) !important');
5539
- const LabelItem = styled.span(_t5$4 || (_t5$4 = _$8`
5539
+ const LabelItem = styled.span(_t5$4 || (_t5$4 = _$9`
5540
5540
  font: var(--goa-dropdown-typography);
5541
5541
  `));
5542
5542
 
@@ -6592,8 +6592,8 @@ const BooleanRadioControl = props => jsx(GoAInputBaseControl, Object.assign({},
6592
6592
  const GoABooleanRadioControlTester = rankWith(3, and(isBooleanControl, optionIs('radio', true)));
6593
6593
  const GoABooleanRadioControl = withJsonFormsControlProps(BooleanRadioControl);
6594
6594
 
6595
- let _$7 = t => t,
6596
- _t$7;
6595
+ let _$8 = t => t,
6596
+ _t$8;
6597
6597
  const Checkboxes = ({
6598
6598
  children,
6599
6599
  orientation,
@@ -6605,7 +6605,7 @@ const Checkboxes = ({
6605
6605
  children: children
6606
6606
  });
6607
6607
  };
6608
- const CheckBoxGroupDiv = styled.div(_t$7 || (_t$7 = _$7`
6608
+ const CheckBoxGroupDiv = styled.div(_t$8 || (_t$8 = _$8`
6609
6609
  .horizontal {
6610
6610
  display: flex;
6611
6611
  flex-direction: row;
@@ -6991,8 +6991,8 @@ const GoAEmailControl = props => jsx(GoAEmailInput, Object.assign({}, props));
6991
6991
  const GoAEmailControlTester = rankWith(4, and(isControl, schemaMatches(schema => schema.format === 'email')));
6992
6992
  const GoAInputEmailControl = withJsonFormsControlProps(GoAEmailControl);
6993
6993
 
6994
- let _$6 = t => t,
6995
- _t$6;
6994
+ let _$7 = t => t,
6995
+ _t$7;
6996
6996
  const renderLayoutElements = (elements, schema, path, enabled, renderers, cells) => {
6997
6997
  return elements.map((child, index) => jsx(JsonFormsDispatch, {
6998
6998
  uischema: child,
@@ -7071,14 +7071,14 @@ const ReviewLayoutRenderer = ({
7071
7071
  }
7072
7072
  }
7073
7073
  };
7074
- const ReviewGrid = styled.div(_t$6 || (_t$6 = _$6`
7074
+ const ReviewGrid = styled.div(_t$7 || (_t$7 = _$7`
7075
7075
  display: grid;
7076
7076
  grid-template-columns: repeat(auto-fit, minmax(250px, calc(50% - 8px)));
7077
7077
  gap: 16px;
7078
7078
  `));
7079
7079
 
7080
- let _$5 = t => t,
7081
- _t$5,
7080
+ let _$6 = t => t,
7081
+ _t$6,
7082
7082
  _t2$4,
7083
7083
  _t3$3,
7084
7084
  _t4$3,
@@ -7101,14 +7101,14 @@ let _$5 = t => t,
7101
7101
  _t21,
7102
7102
  _t22,
7103
7103
  _t23;
7104
- const ReviewItem = styled.div(_t$5 || (_t$5 = _$5`
7104
+ const ReviewItem = styled.div(_t$6 || (_t$6 = _$6`
7105
7105
  display: flex;
7106
7106
  flex-direction: column;
7107
7107
  div:empty {
7108
7108
  display: none;
7109
7109
  }
7110
7110
  `));
7111
- const ReviewItemSection = styled.div(_t2$4 || (_t2$4 = _$5`
7111
+ const ReviewItemSection = styled.div(_t2$4 || (_t2$4 = _$6`
7112
7112
  margin-bottom: var(--goa-space-m);
7113
7113
  padding: var(--goa-space-xl) var(--goa-space-2xl);
7114
7114
  border: 1px solid var(--goa-color-greyscale-300);
@@ -7118,18 +7118,18 @@ const ReviewItemSection = styled.div(_t2$4 || (_t2$4 = _$5`
7118
7118
  max-width: 1600px;
7119
7119
  }
7120
7120
  `));
7121
- const ReviewItemHeader = styled.div(_t3$3 || (_t3$3 = _$5`
7121
+ const ReviewItemHeader = styled.div(_t3$3 || (_t3$3 = _$6`
7122
7122
  display: flex;
7123
7123
  align-items: center;
7124
7124
  justify-content: space-between;
7125
7125
  margin-bottom: var(--goa-space-xl);
7126
7126
  `));
7127
- const ReviewItemTitle = styled.div(_t4$3 || (_t4$3 = _$5`
7127
+ const ReviewItemTitle = styled.div(_t4$3 || (_t4$3 = _$6`
7128
7128
  font-size: var(--goa-space-l);
7129
7129
  line-height: var(--goa-space-xl);
7130
7130
  font-weight: 300;
7131
7131
  `));
7132
- const Anchor = styled.div(_t5$3 || (_t5$3 = _$5`
7132
+ const Anchor = styled.div(_t5$3 || (_t5$3 = _$6`
7133
7133
  color: #0070c4;
7134
7134
  text-decoration: underline;
7135
7135
  outline: none;
@@ -7140,20 +7140,20 @@ const Anchor = styled.div(_t5$3 || (_t5$3 = _$5`
7140
7140
  background-color: #e6f7ff;
7141
7141
  }
7142
7142
  `));
7143
- styled.div(_t6$2 || (_t6$2 = _$5`
7143
+ styled.div(_t6$2 || (_t6$2 = _$6`
7144
7144
  margin-left: var(--goa-space-m);
7145
7145
  `));
7146
- styled.div(_t7$1 || (_t7$1 = _$5`
7146
+ styled.div(_t7$1 || (_t7$1 = _$6`
7147
7147
  margin-bottom: var(--goa-space-m);
7148
7148
  `));
7149
- styled.div(_t8$1 || (_t8$1 = _$5`
7149
+ styled.div(_t8$1 || (_t8$1 = _$6`
7150
7150
  margin: var(--goa-space-s);
7151
7151
  width: 100%;
7152
7152
  `));
7153
- styled.h3(_t9$1 || (_t9$1 = _$5`
7153
+ styled.h3(_t9$1 || (_t9$1 = _$6`
7154
7154
  text-transform: capitalize;
7155
7155
  `));
7156
- const RightAlignmentDiv = styled.div(_t10$1 || (_t10$1 = _$5`
7156
+ const RightAlignmentDiv = styled.div(_t10$1 || (_t10$1 = _$6`
7157
7157
  @media screen and (max-width: 767px) {
7158
7158
  margin-bottom: var(--goa-space-l);
7159
7159
  }
@@ -7163,52 +7163,52 @@ const RightAlignmentDiv = styled.div(_t10$1 || (_t10$1 = _$5`
7163
7163
  margin-bottom: var(--goa-space-l);
7164
7164
  }
7165
7165
  `));
7166
- const FormStepperSummaryH3 = styled.h3(_t11$1 || (_t11$1 = _$5`
7166
+ const FormStepperSummaryH3 = styled.h3(_t11$1 || (_t11$1 = _$6`
7167
7167
  flex: 1;
7168
7168
  margin-bottom: var(--goa-space-m);
7169
7169
  font-size: var(--goa-font-size-7);
7170
7170
  line-height: var(--goa-line-height-4);
7171
7171
  font-weight: var(--goa-font-weight-regular);
7172
7172
  `));
7173
- const PageRenderPadding = styled.div(_t12$1 || (_t12$1 = _$5`
7173
+ const PageRenderPadding = styled.div(_t12$1 || (_t12$1 = _$6`
7174
7174
  margin-top: var(--goa-space-2xl);
7175
7175
  `));
7176
- styled.div(_t13$1 || (_t13$1 = _$5`
7176
+ styled.div(_t13$1 || (_t13$1 = _$6`
7177
7177
  margin-bottom: var(--goa-space-2xl);
7178
7178
  `));
7179
- const PageBorder = styled.div(_t14$1 || (_t14$1 = _$5`
7179
+ const PageBorder = styled.div(_t14$1 || (_t14$1 = _$6`
7180
7180
  padding: var(--goa-space-m) var(--goa-space-3xl);
7181
7181
  `));
7182
- const TableReviewItemSection = styled.div(_t15$1 || (_t15$1 = _$5`
7182
+ const TableReviewItemSection = styled.div(_t15$1 || (_t15$1 = _$6`
7183
7183
  .element-style {
7184
7184
  max-width: 1600px;
7185
7185
  }
7186
7186
  `));
7187
- const TableReviewItem = styled.div(_t16$1 || (_t16$1 = _$5`
7187
+ const TableReviewItem = styled.div(_t16$1 || (_t16$1 = _$6`
7188
7188
  padding: var(--goa-space-xl) var(--goa-space-2xl);
7189
7189
  border: 1px solid var(--goa-color-greyscale-300);
7190
7190
  border-radius: var(--goa-border-radius-xl);
7191
7191
  `));
7192
- const TableReviewPageTitleRow = styled.div(_t17$1 || (_t17$1 = _$5`
7192
+ const TableReviewPageTitleRow = styled.div(_t17$1 || (_t17$1 = _$6`
7193
7193
  margin-top: var(--goa-space-xl);
7194
7194
  display: flex;
7195
7195
  justify-content: space-between;
7196
7196
  `));
7197
- const TableReviewCategoryLabel = styled.h3(_t18$1 || (_t18$1 = _$5`
7197
+ const TableReviewCategoryLabel = styled.h3(_t18$1 || (_t18$1 = _$6`
7198
7198
  color: var(--goa-color-text-secondary) !important;
7199
7199
  margin-bottom: var(--goa-space-l);
7200
7200
  `));
7201
- const CategoryStatus = styled.td(_t19$1 || (_t19$1 = _$5`
7201
+ const CategoryStatus = styled.td(_t19$1 || (_t19$1 = _$6`
7202
7202
  width: var(--goa-space-xl);
7203
7203
  padding-right: var(--goa-space-xl);
7204
7204
  align-content: center;
7205
7205
  `));
7206
- const CompletionStatus = styled.div(_t20$1 || (_t20$1 = _$5`
7206
+ const CompletionStatus = styled.div(_t20$1 || (_t20$1 = _$6`
7207
7207
  padding: 0;
7208
7208
  margin: 0;
7209
7209
  margin-bottom: 0 !important;
7210
7210
  `));
7211
- const PageStepperRow = styled.tr(_t21 || (_t21 = _$5`
7211
+ const PageStepperRow = styled.tr(_t21 || (_t21 = _$6`
7212
7212
  ${0}
7213
7213
  `), ({
7214
7214
  disabled
@@ -7218,7 +7218,7 @@ const PageStepperRow = styled.tr(_t21 || (_t21 = _$5`
7218
7218
  ` : `
7219
7219
  cursor: pointer;
7220
7220
  `);
7221
- const SectionHeaderRowTr = styled.tr(_t22 || (_t22 = _$5`
7221
+ const SectionHeaderRowTr = styled.tr(_t22 || (_t22 = _$6`
7222
7222
  & > td {
7223
7223
  border: 0 !important;
7224
7224
  padding-top: var(--goa-space-l);
@@ -7230,7 +7230,7 @@ const SectionHeaderRowTr = styled.tr(_t22 || (_t22 = _$5`
7230
7230
  border-top: none !important;
7231
7231
  }
7232
7232
  `));
7233
- const SummaryRowLink = styled.a(_t23 || (_t23 = _$5`
7233
+ const SummaryRowLink = styled.a(_t23 || (_t23 = _$6`
7234
7234
  position: relative;
7235
7235
  top: var(--goa-space-xs);
7236
7236
  `));
@@ -7604,7 +7604,7 @@ const pickPropertyValues = (obj, property, endWithType) => {
7604
7604
  Object.entries(obj).forEach(function ([key, value]) {
7605
7605
  if (key === property) {
7606
7606
  values.push(value);
7607
- } else if (_$b.isObject(value)) {
7607
+ } else if (_$c.isObject(value)) {
7608
7608
  // if the object type is equal to end type, we are not going to continue the recursive approach
7609
7609
  if ((value === null || value === void 0 ? void 0 : value.type) === endWithType) {
7610
7610
  if (property in value) {
@@ -7613,7 +7613,7 @@ const pickPropertyValues = (obj, property, endWithType) => {
7613
7613
  } else {
7614
7614
  values = [...values, ...pickPropertyValues(value, property, endWithType)];
7615
7615
  }
7616
- } else if (_$b.isArray(value)) {
7616
+ } else if (_$c.isArray(value)) {
7617
7617
  const nextValues = value.map(function (arrayObj) {
7618
7618
  return pickPropertyValues(arrayObj, property, endWithType);
7619
7619
  });
@@ -8571,9 +8571,9 @@ const FormStepperPageReviewer = props => {
8571
8571
  };
8572
8572
  withAjvProps(withTranslateProps(withJsonFormsLayoutProps(FormStepperPageReviewer)));
8573
8573
 
8574
- let _$4 = t => t,
8575
- _t$4;
8576
- const BackButtonWrapper = styled.span(_t$4 || (_t$4 = _$4`
8574
+ let _$5 = t => t,
8575
+ _t$5;
8576
+ const BackButtonWrapper = styled.span(_t$5 || (_t$5 = _$5`
8577
8577
  .back-link::before {
8578
8578
  content: '';
8579
8579
  display: inline-block;
@@ -8875,8 +8875,8 @@ function _objectWithoutPropertiesLoose(r, e) {
8875
8875
  return t;
8876
8876
  }
8877
8877
 
8878
- let _$3 = t => t,
8879
- _t$3;
8878
+ let _$4 = t => t,
8879
+ _t$4;
8880
8880
  const GoAContextMenuIcon = props => {
8881
8881
  return jsx(GoAIconButton, {
8882
8882
  icon: props.type,
@@ -8887,7 +8887,7 @@ const GoAContextMenuIcon = props => {
8887
8887
  disabled: props.disabled
8888
8888
  });
8889
8889
  };
8890
- const GoAContextMenu = styled.div(_t$3 || (_t$3 = _$3`
8890
+ const GoAContextMenu = styled.div(_t$4 || (_t$4 = _$4`
8891
8891
  display: flex;
8892
8892
  align-items: center;
8893
8893
  background-color: #fff;
@@ -9314,8 +9314,8 @@ function objectListReducer(state, action) {
9314
9314
  }
9315
9315
  }
9316
9316
 
9317
- let _$2 = t => t,
9318
- _t$2,
9317
+ let _$3 = t => t,
9318
+ _t$3,
9319
9319
  _t2$2,
9320
9320
  _t3$1,
9321
9321
  _t4$1,
@@ -9335,18 +9335,18 @@ let _$2 = t => t,
9335
9335
  _t18,
9336
9336
  _t19,
9337
9337
  _t20;
9338
- const DeleteDialogContent = styled.div(_t$2 || (_t$2 = _$2`
9338
+ const DeleteDialogContent = styled.div(_t$3 || (_t$3 = _$3`
9339
9339
  margin-bottom: var(--goa-space-m);
9340
9340
  `));
9341
- const NonEmptyCellStyle = styled.div(_t2$2 || (_t2$2 = _$2`
9341
+ const NonEmptyCellStyle = styled.div(_t2$2 || (_t2$2 = _$3`
9342
9342
  goa-table thead th {
9343
9343
  background-color: #000:
9344
9344
  }
9345
9345
  `));
9346
- const ToolBarHeader = styled.div(_t3$1 || (_t3$1 = _$2`
9346
+ const ToolBarHeader = styled.div(_t3$1 || (_t3$1 = _$3`
9347
9347
  margin-bottom: var(--goa-space-l);
9348
9348
  `));
9349
- const ObjectArrayTitle = styled.h3(_t4$1 || (_t4$1 = _$2`
9349
+ const ObjectArrayTitle = styled.h3(_t4$1 || (_t4$1 = _$3`
9350
9350
  margin-bottom: var(--goa-space-l);
9351
9351
 
9352
9352
  span {
@@ -9354,77 +9354,77 @@ const ObjectArrayTitle = styled.h3(_t4$1 || (_t4$1 = _$2`
9354
9354
  font-size: var(--goa-font-size-2);
9355
9355
  }
9356
9356
  `));
9357
- const RequiredSpan = styled.span(_t5$1 || (_t5$1 = _$2`
9357
+ const RequiredSpan = styled.span(_t5$1 || (_t5$1 = _$3`
9358
9358
  color: #666666;
9359
9359
  font-weight: var(--goa-font-weight-regular);
9360
9360
  font-size: var(--goa-font-size-2);
9361
9361
  `));
9362
- const TextCenter = styled.div(_t6$1 || (_t6$1 = _$2`
9362
+ const TextCenter = styled.div(_t6$1 || (_t6$1 = _$3`
9363
9363
  text-align: center;
9364
9364
  `));
9365
- const SideMenuItem = styled.div(_t7 || (_t7 = _$2`
9365
+ const SideMenuItem = styled.div(_t7 || (_t7 = _$3`
9366
9366
  &:hover {
9367
9367
  background: #f1f1f1;
9368
9368
  }
9369
9369
  `));
9370
- const RowFlex = styled.div(_t8 || (_t8 = _$2`
9370
+ const RowFlex = styled.div(_t8 || (_t8 = _$3`
9371
9371
  display: flex;
9372
9372
  align-items: stretch;
9373
9373
  `));
9374
- const RowFlexMenu = styled.div(_t9 || (_t9 = _$2`
9374
+ const RowFlexMenu = styled.div(_t9 || (_t9 = _$3`
9375
9375
  display: flex;
9376
9376
  flex-direction: row;
9377
9377
  border-bottom: 1px solid #dcdcdc;
9378
9378
  `));
9379
- const FlexTabs = styled.div(_t10 || (_t10 = _$2`
9379
+ const FlexTabs = styled.div(_t10 || (_t10 = _$3`
9380
9380
  flex-direction: column;
9381
9381
  flex: 1;
9382
9382
  overflow-y: auto !important;
9383
9383
  margin-right: 1.5rem;
9384
9384
  `));
9385
- const FlexForm = styled.div(_t11 || (_t11 = _$2`
9385
+ const FlexForm = styled.div(_t11 || (_t11 = _$3`
9386
9386
  flex-direction: column;
9387
9387
  margin: 1.5rem 0;
9388
9388
  flex: 3;
9389
9389
  `));
9390
- const TabName = styled.div(_t12 || (_t12 = _$2`
9390
+ const TabName = styled.div(_t12 || (_t12 = _$3`
9391
9391
  margin: 1rem 0 1rem 1rem;
9392
9392
  font-weight: 700;
9393
9393
  `));
9394
- const Trash = styled.div(_t13 || (_t13 = _$2`
9394
+ const Trash = styled.div(_t13 || (_t13 = _$3`
9395
9395
  margin: 0.75rem 1.25rem 0.75rem 0.75rem;
9396
9396
  margin-left: auto;
9397
9397
  `));
9398
- const ListContainer = styled.div(_t14 || (_t14 = _$2`
9398
+ const ListContainer = styled.div(_t14 || (_t14 = _$3`
9399
9399
  padding: 0 1.5rem 0 0;
9400
9400
  border: 1px solid #dcdcdc;
9401
9401
  `));
9402
- const TableTHHeader = styled.th(_t15 || (_t15 = _$2`
9402
+ const TableTHHeader = styled.th(_t15 || (_t15 = _$3`
9403
9403
  background-color: var(--goa-color-greyscale-100) !important;
9404
9404
  vertical-align: top;
9405
9405
  `));
9406
- const ObjectArrayWarningIconDiv = styled.div(_t16 || (_t16 = _$2`
9406
+ const ObjectArrayWarningIconDiv = styled.div(_t16 || (_t16 = _$3`
9407
9407
  display: inline-flex;
9408
9408
  align-items: flex-start;
9409
9409
  gap: 0.25rem;
9410
9410
  font-size: var(--goa-font-size-2);
9411
9411
  color: var(--goa-color-interactive-error);
9412
9412
  `));
9413
- const ListWithDetailWarningIconDiv = styled.div(_t17 || (_t17 = _$2`
9413
+ const ListWithDetailWarningIconDiv = styled.div(_t17 || (_t17 = _$3`
9414
9414
  display: inline-flex;
9415
9415
  align-items: flex-start;
9416
9416
  gap: 0.25rem;
9417
9417
  font-size: var(--goa-font-size-3);
9418
9418
  color: var(--goa-color-interactive-error);
9419
9419
  `));
9420
- styled.label(_t18 || (_t18 = _$2`
9420
+ styled.label(_t18 || (_t18 = _$3`
9421
9421
  color: var(--goa-color-interactive-error);
9422
9422
  font-weight: var(--goa-font-weight-regular);
9423
9423
  font-size: var(--goa-font-size-3);
9424
9424
  line-height: var(--goa-line-height-1);
9425
9425
  font-style: normal;
9426
9426
  `));
9427
- styled.div(_t19 || (_t19 = _$2`
9427
+ styled.div(_t19 || (_t19 = _$3`
9428
9428
  margin-top: var(--goa-space-m);
9429
9429
  color: var(--goa-color-interactive-error);
9430
9430
  font-weight: var(--goa-font-weight-regular);
@@ -9432,7 +9432,7 @@ styled.div(_t19 || (_t19 = _$2`
9432
9432
  line-height: var(--goa-line-height-1);
9433
9433
  font-style: normal;
9434
9434
  `));
9435
- const HilightCellWarning = styled.div(_t20 || (_t20 = _$2`
9435
+ const HilightCellWarning = styled.div(_t20 || (_t20 = _$3`
9436
9436
  background-color: var(--goa-color-warning-default);
9437
9437
  `));
9438
9438
 
@@ -10707,14 +10707,14 @@ const ListWithDetailsControl = props => {
10707
10707
  const GoAListWithDetailsControlRenderer = withJsonFormsArrayLayoutProps(ListWithDetailsControl);
10708
10708
  const GoAListWithDetailsTester = rankWith(3, and(uiTypeIs('ListWithDetail')));
10709
10709
 
10710
- let _$1 = t => t,
10711
- _t$1,
10710
+ let _$2 = t => t,
10711
+ _t$2,
10712
10712
  _t2$1,
10713
10713
  _t3,
10714
10714
  _t4,
10715
10715
  _t5,
10716
10716
  _t6;
10717
- const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
10717
+ const SearchBox = styled.div(_t$2 || (_t$2 = _$2`
10718
10718
  position: relative;
10719
10719
 
10720
10720
  .suggestions {
@@ -10756,7 +10756,7 @@ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
10756
10756
  pointer-events: none; /* Prevent spinner from interfering with clicks */
10757
10757
  }
10758
10758
  `));
10759
- const AddressIndent = styled.div(_t2$1 || (_t2$1 = _$1`
10759
+ const AddressIndent = styled.div(_t2$1 || (_t2$1 = _$2`
10760
10760
  margin: 0 0 var(--goa-space-m) 0;
10761
10761
  text-wrap: wrap;
10762
10762
  word-break: break-word;
@@ -10764,20 +10764,20 @@ const AddressIndent = styled.div(_t2$1 || (_t2$1 = _$1`
10764
10764
  border-radius: var(--goa-border-radius-xl);
10765
10765
  padding: var(--goa-space-l);
10766
10766
  `));
10767
- const TextWrap = styled.p(_t3 || (_t3 = _$1`
10767
+ const TextWrap = styled.p(_t3 || (_t3 = _$2`
10768
10768
  text-wrap: auto;
10769
10769
  word-break: break-word;
10770
10770
  `));
10771
- const TextWrapDiv = styled.div(_t4 || (_t4 = _$1`
10771
+ const TextWrapDiv = styled.div(_t4 || (_t4 = _$2`
10772
10772
  text-wrap: auto;
10773
10773
  word-break: break-word;
10774
10774
  `));
10775
- const LabelDiv = styled.div(_t5 || (_t5 = _$1`
10775
+ const LabelDiv = styled.div(_t5 || (_t5 = _$2`
10776
10776
  font-size: var(--goa-font-size-2);
10777
10777
  padding-bottom: var(--goa-space-l);
10778
10778
  `));
10779
10779
  /* istanbul ignore next */
10780
- const ListItem = styled.li(_t6 || (_t6 = _$1`
10780
+ const ListItem = styled.li(_t6 || (_t6 = _$2`
10781
10781
  background-color: ${0};
10782
10782
  color: ${0};
10783
10783
  font-weight: ${0};
@@ -11065,10 +11065,10 @@ function handleAddressKeyDown(key, value, activeIndex, suggestions, onInputChang
11065
11065
  return activeIndex;
11066
11066
  }
11067
11067
 
11068
- let _ = t => t,
11069
- _t,
11068
+ let _$1 = t => t,
11069
+ _t$1,
11070
11070
  _t2;
11071
- const HelpContentDiv = styled.div(_t || (_t = _`
11071
+ const HelpContentDiv = styled.div(_t$1 || (_t$1 = _$1`
11072
11072
  .parent-label {
11073
11073
  font-size: 24px;
11074
11074
  margin-bottom: var(--goa-space-m);
@@ -11093,7 +11093,7 @@ const HelpContentDiv = styled.div(_t || (_t = _`
11093
11093
  margin: var(--goa-space-2xs) 0 var(--goa-space-2xs) 0;
11094
11094
  }
11095
11095
  `));
11096
- const InvalidMarkdown = styled.div(_t2 || (_t2 = _`
11096
+ const InvalidMarkdown = styled.div(_t2 || (_t2 = _$1`
11097
11097
  color: var(--goa-color-interactive-error);
11098
11098
  `));
11099
11099
 
@@ -12179,6 +12179,179 @@ const GoAInputBaseFullNameDobControlReview = withJsonFormsAllOfProps(FullNameDob
12179
12179
  const isFullNameDoB = createSchemaMatchTester(['firstName', 'middleName', 'lastName', 'dateOfBirth'], true);
12180
12180
  const FullNameDobTester = rankWith(4, isFullNameDoB);
12181
12181
 
12182
+ let _ = t => t,
12183
+ _t;
12184
+ const PhoneGrid = styled.div(_t || (_t = _`
12185
+ display: grid;
12186
+ grid-template-columns: 1fr 2fr;
12187
+ gap: 0.2rem;
12188
+ align-items: start;
12189
+
12190
+ goa-form-item {
12191
+ margin-right: 0 !important;
12192
+ }
12193
+ `));
12194
+ const PHONE_REGEX = /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/;
12195
+ const PhoneNumberWithTypeControl = props => {
12196
+ const {
12197
+ data,
12198
+ path,
12199
+ handleChange,
12200
+ enabled,
12201
+ visible,
12202
+ required
12203
+ } = props;
12204
+ const [formData, setFormData] = useState(data || {});
12205
+ const [error, setError] = useState(undefined);
12206
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12207
+ const updateFormData = updated => {
12208
+ setFormData(updated);
12209
+ if (updated.number && !PHONE_REGEX.test(updated.number)) {
12210
+ setError('Enter a valid phone number (e.g., (780) 123-4567)');
12211
+ } else {
12212
+ setError(undefined);
12213
+ }
12214
+ handleChange(path, updated);
12215
+ };
12216
+ return jsx(Visible, {
12217
+ visible: visible,
12218
+ children: jsxs(PhoneGrid, {
12219
+ children: [jsx(GoAFormItem, {
12220
+ label: "Phone type",
12221
+ requirement: required ? 'required' : undefined,
12222
+ children: jsxs(GoADropdown, {
12223
+ name: "type",
12224
+ value: formData.type || '',
12225
+ disabled: !enabled,
12226
+ onChange: (name, value) => updateFormData(Object.assign({}, formData, {
12227
+ type: value
12228
+ })),
12229
+ children: [jsx(GoADropdownItem, {
12230
+ value: "Mobile"
12231
+ }), jsx(GoADropdownItem, {
12232
+ value: "Landline"
12233
+ })]
12234
+ })
12235
+ }), jsx(GoAFormItem, {
12236
+ label: "Phone number",
12237
+ error: error,
12238
+ requirement: required ? 'required' : undefined,
12239
+ children: jsx(GoAInput, {
12240
+ type: "tel",
12241
+ name: "number",
12242
+ placeholder: "(000) 000-0000",
12243
+ value: formData.number || '',
12244
+ disabled: !enabled,
12245
+ onChange: (name, value) => updateFormData(Object.assign({}, formData, {
12246
+ number: value
12247
+ }))
12248
+ })
12249
+ })]
12250
+ })
12251
+ });
12252
+ };
12253
+ const GoAPhoneNumberWithTypeControl = withJsonFormsControlProps(PhoneNumberWithTypeControl);
12254
+
12255
+ const PhoneNumberControl = props => {
12256
+ const {
12257
+ data,
12258
+ path,
12259
+ schema,
12260
+ handleChange,
12261
+ enabled,
12262
+ visible,
12263
+ required
12264
+ } = props;
12265
+ const [error, setError] = useState('');
12266
+ const handleInputChange = (name, value) => {
12267
+ if (value && !PHONE_REGEX.test(value)) {
12268
+ setError('Must be a valid 10-digit phone number in format (000) 000-0000');
12269
+ } else {
12270
+ setError('');
12271
+ }
12272
+ handleChange(path, value);
12273
+ };
12274
+ return jsx(Visible, {
12275
+ visible: visible,
12276
+ children: jsx(GoAFormItem, {
12277
+ label: (schema === null || schema === void 0 ? void 0 : schema.title) || 'Phone number',
12278
+ requirement: required ? 'required' : undefined,
12279
+ error: error,
12280
+ testId: `form-item-${path}`,
12281
+ children: jsx(GoAInput, {
12282
+ type: "tel",
12283
+ name: path,
12284
+ disabled: !enabled,
12285
+ "aria-label": "phone number input",
12286
+ testId: `phone-input-${path}`,
12287
+ value: data || '',
12288
+ onChange: (name, value) => handleInputChange(name, value),
12289
+ placeholder: "(000) 000-0000",
12290
+ width: "100%"
12291
+ })
12292
+ })
12293
+ });
12294
+ };
12295
+ const GoAPhoneNumberControl = withJsonFormsControlProps(PhoneNumberControl);
12296
+
12297
+ const isPhoneNumber = createSchemaMatchTester(['phoneNumber'], false);
12298
+ const PhoneNumberTester = rankWith(3, isPhoneNumber);
12299
+
12300
+ const PhoneNumberReviewControl = props => {
12301
+ const {
12302
+ data,
12303
+ id,
12304
+ required
12305
+ } = props;
12306
+ return jsx(GoAFormItem, {
12307
+ label: "Phone number",
12308
+ error: required && !data ? 'Phone number is required' : '',
12309
+ requirement: required ? 'required' : undefined,
12310
+ children: jsx(TextWrapDiv, {
12311
+ children: jsx("div", {
12312
+ "data-testid": `phone-control-${id}`,
12313
+ children: data || ''
12314
+ })
12315
+ })
12316
+ });
12317
+ };
12318
+ const GoAInputBasePhoneNumberReviewControl = withJsonFormsAllOfProps(PhoneNumberReviewControl);
12319
+
12320
+ const isPhoneNumberWithType = createSchemaMatchTester(['number', 'type'], true);
12321
+ const PhoneNumberWithTypeTester = rankWith(4, isPhoneNumberWithType);
12322
+
12323
+ const PhoneNumberWithTypeReviewControl = props => {
12324
+ const {
12325
+ data,
12326
+ id,
12327
+ required
12328
+ } = props;
12329
+ return jsxs(PhoneGrid, {
12330
+ children: [jsx(GoAFormItem, {
12331
+ label: "Phone number",
12332
+ error: required && !(data === null || data === void 0 ? void 0 : data.number) ? 'Phone number is required' : '',
12333
+ requirement: required ? 'required' : undefined,
12334
+ children: jsx(TextWrapDiv, {
12335
+ children: jsx("div", {
12336
+ "data-testid": `phone-number-control-${id}`,
12337
+ children: (data === null || data === void 0 ? void 0 : data.number) || ''
12338
+ })
12339
+ })
12340
+ }), jsx(GoAFormItem, {
12341
+ label: "Phone type",
12342
+ error: required && !(data === null || data === void 0 ? void 0 : data.type) ? 'Phone type is required' : '',
12343
+ requirement: required ? 'required' : undefined,
12344
+ children: jsx(TextWrapDiv, {
12345
+ children: jsx("div", {
12346
+ "data-testid": `phone-type-control-${id}`,
12347
+ children: (data === null || data === void 0 ? void 0 : data.type) || ''
12348
+ })
12349
+ })
12350
+ })]
12351
+ });
12352
+ };
12353
+ const GoAInputBasePhoneNumberWithTypeReviewControl = withJsonFormsAllOfProps(PhoneNumberWithTypeReviewControl);
12354
+
12182
12355
  var uncurryThis$1 = functionUncurryThis;
12183
12356
 
12184
12357
  // eslint-disable-next-line es/no-set -- safe
@@ -13308,6 +13481,12 @@ const GoAReviewRenderers = [...GoABaseReviewRenderers, {
13308
13481
  }, {
13309
13482
  tester: AddressLookUpTester,
13310
13483
  renderer: withJsonFormsControlProps(AddressLookUpControlReview)
13484
+ }, {
13485
+ tester: PhoneNumberTester,
13486
+ renderer: withJsonFormsControlProps(PhoneNumberReviewControl)
13487
+ }, {
13488
+ tester: PhoneNumberWithTypeTester,
13489
+ renderer: withJsonFormsControlProps(PhoneNumberWithTypeReviewControl)
13311
13490
  }];
13312
13491
  const GoARenderers = [...GoABaseRenderers, {
13313
13492
  tester: CategorizationStepperRendererTester,
@@ -13327,10 +13506,16 @@ const GoARenderers = [...GoABaseRenderers, {
13327
13506
  }, {
13328
13507
  tester: FullNameDobTester,
13329
13508
  renderer: withJsonFormsControlProps(FullNameDobControl)
13509
+ }, {
13510
+ tester: PhoneNumberTester,
13511
+ renderer: withJsonFormsControlProps(PhoneNumberControl)
13512
+ }, {
13513
+ tester: PhoneNumberWithTypeTester,
13514
+ renderer: withJsonFormsControlProps(PhoneNumberWithTypeControl)
13330
13515
  }, {
13331
13516
  tester: GoACalculationControlTester,
13332
13517
  renderer: GoACalculationControl
13333
13518
  }];
13334
13519
  const GoACells = [...InputCells];
13335
13520
 
13336
- 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, GoACalculationControl, GoACalculationControlTester, GoACells, GoACheckoutGroupControlTester, GoADateControl, GoADateControlTester, GoADateInput, GoADateTimeControl, GoADateTimeControlTester, GoADateTimeInput, GoAEmailControl, GoAEmailControlTester, GoAEmailInput, GoAEnumCheckboxGroupControl, GoAEnumControl, GoAEnumControlTester, GoAEnumRadioGroupControl, GoAInputBaseControl, GoAInputBaseFullNameControlReview, GoAInputBaseFullNameDobControlReview, GoAInputBaseTableReview, GoAInputBaseTableReviewControl, GoAInputDateControl, GoAInputDateTimeControl, GoAInputEmailControl, 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 };
13521
+ 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, GoACalculationControl, GoACalculationControlTester, GoACells, GoACheckoutGroupControlTester, GoADateControl, GoADateControlTester, GoADateInput, GoADateTimeControl, GoADateTimeControlTester, GoADateTimeInput, GoAEmailControl, GoAEmailControlTester, GoAEmailInput, GoAEnumCheckboxGroupControl, GoAEnumControl, GoAEnumControlTester, GoAEnumRadioGroupControl, GoAInputBaseControl, GoAInputBaseFullNameControlReview, GoAInputBaseFullNameDobControlReview, GoAInputBasePhoneNumberReviewControl, GoAInputBasePhoneNumberWithTypeReviewControl, GoAInputBaseTableReview, GoAInputBaseTableReviewControl, GoAInputDateControl, GoAInputDateTimeControl, GoAInputEmailControl, GoAInputInteger, GoAInputIntegerControl, GoAInputNumberControl, GoAInputText, GoAInputTextControl, GoAInputTimeControl, GoAIntegerControl, GoAIntegerControlTester, GoAListWithDetailsControlRenderer, GoAListWithDetailsTester, GoANumberControl, GoANumberControlTester, GoANumberInput, GoAPhoneNumberControl, GoAPhoneNumberWithTypeControl, GoARadioGroupControlTester, GoARenderers, GoAReviewRenderers, GoATextControl, GoATextControlTester, GoATimeControl, GoATimeControlTester, GoATimeInput, GoInputBaseReview, GoInputBaseReviewControl, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, ListWithDetailsControl, MultiLineText, MultiLineTextControl, MultiLineTextControlInput, MultiLineTextControlTester, PHONE_REGEX, PhoneGrid, PhoneNumberControl, PhoneNumberReviewControl, PhoneNumberTester, PhoneNumberWithTypeControl, PhoneNumberWithTypeReviewControl, PhoneNumberWithTypeTester, RadioGroup, categoriesAreValid, createDefaultAjv, enumControl, errMalformedDate, formatSin, isAddressLookup, isFullName, isFullNameDoB, isPhoneNumber, isPhoneNumberWithType, registerReducer, resolveRefs, tryResolveRefs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.27.1",
3
+ "version": "2.28.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",
@@ -0,0 +1,5 @@
1
+ import { ControlProps } from '@jsonforms/core';
2
+ type PhoneNumberControlProps = ControlProps;
3
+ export declare const PhoneNumberControl: (props: PhoneNumberControlProps) => JSX.Element;
4
+ export declare const GoAPhoneNumberControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ControlProps } from '@jsonforms/core';
2
+ type PhoneNumberReviewControlProps = ControlProps;
3
+ export declare const PhoneNumberReviewControl: (props: PhoneNumberReviewControlProps) => JSX.Element;
4
+ export declare const GoAInputBasePhoneNumberReviewControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ import { RankedTester } from '@jsonforms/core';
2
+ export declare const isPhoneNumber: import("@jsonforms/core").Tester;
3
+ export declare const PhoneNumberTester: RankedTester;
@@ -0,0 +1,2 @@
1
+ export declare const isPhoneNumberWithType: import("@jsonforms/core").Tester;
2
+ export declare const PhoneNumberWithTypeTester: (uischema: import("@jsonforms/core").UISchemaElement, schema: import("@jsonforms/core").JsonSchema, context: import("@jsonforms/core").TesterContext) => number;
@@ -0,0 +1,5 @@
1
+ import { ControlProps } from '@jsonforms/core';
2
+ export declare const PhoneGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const PHONE_REGEX: RegExp;
4
+ export declare const PhoneNumberWithTypeControl: (props: ControlProps) => JSX.Element;
5
+ export declare const GoAPhoneNumberWithTypeControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
@@ -0,0 +1,5 @@
1
+ import { ControlProps } from '@jsonforms/core';
2
+ type PhoneNumberWithTypeReviewProps = ControlProps;
3
+ export declare const PhoneNumberWithTypeReviewControl: (props: PhoneNumberWithTypeReviewProps) => JSX.Element;
4
+ export declare const GoAInputBasePhoneNumberWithTypeReviewControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './PhoneNumberControl';
2
+ export * from './PhoneNumberTester';
3
+ export * from './PhoneNumberReviewControl';
4
+ export * from './PhoneNumberWithTypeControl';
5
+ export * from './PhoneNumberTypeTester';
6
+ export * from './PhoneNumberWithTypeReviewControl';
@@ -5,4 +5,5 @@ export * from './ObjectArray';
5
5
  export * from './AddressLookup';
6
6
  export * from './FullName';
7
7
  export * from './FullNameDOB';
8
+ export * from './PhoneNumber';
8
9
  export * from './Calculation';