@abgov/jsonforms-components 2.3.5 → 2.3.6
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 +107 -63
- package/package.json +1 -1
- package/src/lib/Controls/FormStepper/styled-components.d.ts +1 -1
- package/src/lib/Controls/FullName/FullNameControlReview.d.ts +6 -0
- package/src/lib/Controls/FullName/index.d.ts +1 -0
- package/src/lib/Controls/FullNameDOB/FullNameDobReviewControl.d.ts +2 -0
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
|
-
|
|
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
|
|
5550
|
-
const
|
|
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
|
-
}, (
|
|
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
|
|
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
|
|
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 = ((
|
|
5744
|
-
if (((
|
|
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') {
|
|
@@ -6002,7 +6030,7 @@ const FormStepperSummaryH3 = styled.h3(_t11$1 || (_t11$1 = _$6`
|
|
|
6002
6030
|
line-height: var(--goa-line-height-4);
|
|
6003
6031
|
font-weight: var(--goa-font-weight-regular);
|
|
6004
6032
|
`));
|
|
6005
|
-
const PageRenderPadding = styled.
|
|
6033
|
+
const PageRenderPadding = styled.div(_t12$1 || (_t12$1 = _$6`
|
|
6006
6034
|
margin-top: var(--goa-space-2xl);
|
|
6007
6035
|
`));
|
|
6008
6036
|
const PageBorder = styled.h3(_t13$1 || (_t13$1 = _$6`
|
|
@@ -6021,9 +6049,7 @@ const TableReviewItem = styled.div(_t15$1 || (_t15$1 = _$6`
|
|
|
6021
6049
|
const TableReviewPageTitleRow = styled.div(_t16$1 || (_t16$1 = _$6`
|
|
6022
6050
|
margin-top: var(--goa-space-xl);
|
|
6023
6051
|
display: flex;
|
|
6024
|
-
|
|
6025
|
-
margin-left: auto;
|
|
6026
|
-
}
|
|
6052
|
+
justify-content: space-between;
|
|
6027
6053
|
`));
|
|
6028
6054
|
const TableReviewCategoryLabel = styled.h3(_t17$1 || (_t17$1 = _$6`
|
|
6029
6055
|
color: var(--goa-color-text-secondary) !important;
|
|
@@ -7203,26 +7229,21 @@ const FormStepperPageReviewer = props => {
|
|
|
7203
7229
|
children: "Review your answers"
|
|
7204
7230
|
}), categories.map((category, index) => {
|
|
7205
7231
|
const categoryLabel = category.label || category.i18n || 'Unknown Category';
|
|
7206
|
-
return jsxs(
|
|
7207
|
-
children: [
|
|
7208
|
-
children:
|
|
7209
|
-
children:
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
},
|
|
7222
|
-
children: "Change"
|
|
7223
|
-
})
|
|
7224
|
-
})]
|
|
7225
|
-
})
|
|
7232
|
+
return jsxs(Fragment, {
|
|
7233
|
+
children: [jsxs(TableReviewPageTitleRow, {
|
|
7234
|
+
children: [jsx(TableReviewCategoryLabel, {
|
|
7235
|
+
children: categoryLabel
|
|
7236
|
+
}), jsx(GoAButton, {
|
|
7237
|
+
type: "tertiary",
|
|
7238
|
+
testId: `page-review-change-${category.label}-btn`,
|
|
7239
|
+
onClick: () => {
|
|
7240
|
+
if (formStepperCtx) {
|
|
7241
|
+
formStepperCtx.toggleShowReviewLink(index);
|
|
7242
|
+
formStepperCtx.goToPage(index);
|
|
7243
|
+
}
|
|
7244
|
+
},
|
|
7245
|
+
children: "Change"
|
|
7246
|
+
})]
|
|
7226
7247
|
}), jsx(TableReviewItemSection, {
|
|
7227
7248
|
children: category.elements.filter(field => {
|
|
7228
7249
|
var _a, _b;
|
|
@@ -7252,7 +7273,7 @@ const FormStepperPageReviewer = props => {
|
|
|
7252
7273
|
} else {
|
|
7253
7274
|
return e;
|
|
7254
7275
|
}
|
|
7255
|
-
}).flat().map(element => {
|
|
7276
|
+
}).flat().map((element, index) => {
|
|
7256
7277
|
return jsx(GoATable, {
|
|
7257
7278
|
width: "100%",
|
|
7258
7279
|
children: jsx("tbody", {
|
|
@@ -7269,7 +7290,7 @@ const FormStepperPageReviewer = props => {
|
|
|
7269
7290
|
cells: cells
|
|
7270
7291
|
})
|
|
7271
7292
|
})
|
|
7272
|
-
});
|
|
7293
|
+
}, index);
|
|
7273
7294
|
})
|
|
7274
7295
|
}, index)]
|
|
7275
7296
|
});
|
|
@@ -10339,6 +10360,43 @@ const FullNameControl = props => {
|
|
|
10339
10360
|
const isFullName = createSchemaMatchTester(['firstName', 'middleName', 'lastName'], true);
|
|
10340
10361
|
const FullNameTester = rankWith(4, isFullName);
|
|
10341
10362
|
|
|
10363
|
+
const FullNameControlReview = props => {
|
|
10364
|
+
var _a, _b, _c;
|
|
10365
|
+
return jsx("div", {
|
|
10366
|
+
children: jsxs(GoAGrid, {
|
|
10367
|
+
minChildWidth: "0ch",
|
|
10368
|
+
gap: "s",
|
|
10369
|
+
mb: "m",
|
|
10370
|
+
children: [jsx(GoAFormItem, {
|
|
10371
|
+
label: "First name",
|
|
10372
|
+
children: jsx(TextWrapDiv, {
|
|
10373
|
+
children: jsx("div", {
|
|
10374
|
+
"data-testid": `firstName-control-${props.id}`,
|
|
10375
|
+
children: (_a = props.data) === null || _a === void 0 ? void 0 : _a.firstName
|
|
10376
|
+
})
|
|
10377
|
+
})
|
|
10378
|
+
}), jsx(GoAFormItem, {
|
|
10379
|
+
label: "Middle name",
|
|
10380
|
+
children: jsx(TextWrapDiv, {
|
|
10381
|
+
children: jsx("div", {
|
|
10382
|
+
"data-testid": `middleName-control-${props.id}`,
|
|
10383
|
+
children: (_b = props.data) === null || _b === void 0 ? void 0 : _b.middleName
|
|
10384
|
+
})
|
|
10385
|
+
})
|
|
10386
|
+
}), jsx(GoAFormItem, {
|
|
10387
|
+
label: "Last name",
|
|
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,18 @@ const FullNameDobControl = props => {
|
|
|
10477
10535
|
};
|
|
10478
10536
|
|
|
10479
10537
|
const FullNameDobReviewControl = props => {
|
|
10480
|
-
var _a, _b, _c, _d
|
|
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 : '',
|
|
10505
10546
|
children: jsx(TextWrapDiv, {
|
|
10506
10547
|
children: jsx("div", {
|
|
10507
10548
|
"data-testid": `firstName-control-${props.id}`,
|
|
10508
|
-
children: (
|
|
10549
|
+
children: (_a = props.data) === null || _a === void 0 ? void 0 : _a.firstName
|
|
10509
10550
|
})
|
|
10510
10551
|
})
|
|
10511
10552
|
}), jsx(GoAFormItem, {
|
|
@@ -10513,17 +10554,15 @@ const FullNameDobReviewControl = props => {
|
|
|
10513
10554
|
children: jsx(TextWrapDiv, {
|
|
10514
10555
|
children: jsx("div", {
|
|
10515
10556
|
"data-testid": `middleName-control-${props.id}`,
|
|
10516
|
-
children: (
|
|
10557
|
+
children: (_b = props.data) === null || _b === void 0 ? void 0 : _b.middleName
|
|
10517
10558
|
})
|
|
10518
10559
|
})
|
|
10519
10560
|
}), jsx(GoAFormItem, {
|
|
10520
10561
|
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 : '',
|
|
10523
10562
|
children: jsx(TextWrapDiv, {
|
|
10524
10563
|
children: jsx("div", {
|
|
10525
10564
|
"data-testid": `lastName-control-${props.id}`,
|
|
10526
|
-
children: (
|
|
10565
|
+
children: (_c = props.data) === null || _c === void 0 ? void 0 : _c.lastName
|
|
10527
10566
|
})
|
|
10528
10567
|
})
|
|
10529
10568
|
})]
|
|
@@ -10532,18 +10571,17 @@ const FullNameDobReviewControl = props => {
|
|
|
10532
10571
|
gap: "s",
|
|
10533
10572
|
children: jsx(GoAFormItem, {
|
|
10534
10573
|
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 : '',
|
|
10537
10574
|
children: jsx(TextWrapDiv, {
|
|
10538
10575
|
children: jsx("div", {
|
|
10539
10576
|
"data-testid": `dob-control-${props.id}`,
|
|
10540
|
-
children: (
|
|
10577
|
+
children: (_d = props.data) === null || _d === void 0 ? void 0 : _d.dateOfBirth
|
|
10541
10578
|
})
|
|
10542
10579
|
})
|
|
10543
10580
|
})
|
|
10544
10581
|
})]
|
|
10545
10582
|
});
|
|
10546
10583
|
};
|
|
10584
|
+
const GoAInputBaseFullNameDobControlReview = withJsonFormsAllOfProps(FullNameDobReviewControl);
|
|
10547
10585
|
|
|
10548
10586
|
const isFullNameDoB = createSchemaMatchTester(['firstName', 'middleName', 'lastName', 'dateOfBirth'], true);
|
|
10549
10587
|
const FullNameDobTester = rankWith(4, isFullNameDoB);
|
|
@@ -11917,6 +11955,12 @@ const GoABaseReviewRenderers = [
|
|
|
11917
11955
|
const GoABaseTableReviewRenderers = [
|
|
11918
11956
|
// controls
|
|
11919
11957
|
{
|
|
11958
|
+
tester: FullNameTester,
|
|
11959
|
+
renderer: GoAInputBaseFullNameControlReview
|
|
11960
|
+
}, {
|
|
11961
|
+
tester: FullNameDobTester,
|
|
11962
|
+
renderer: GoAInputBaseFullNameDobControlReview
|
|
11963
|
+
}, {
|
|
11920
11964
|
tester: GoAEnumControlTester,
|
|
11921
11965
|
renderer: GoAInputBaseTableReviewControl
|
|
11922
11966
|
}, {
|
|
@@ -12017,4 +12061,4 @@ const GoARenderers = [...GoABaseRenderers, {
|
|
|
12017
12061
|
}];
|
|
12018
12062
|
const GoACells = [...InputCells];
|
|
12019
12063
|
|
|
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 };
|
|
12064
|
+
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.
|
|
3
|
+
"version": "2.3.6",
|
|
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<
|
|
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,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 {};
|