@abgov/jsonforms-components 1.44.1 → 1.44.2
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
|
@@ -5333,8 +5333,8 @@ let _$5 = t => t,
|
|
|
5333
5333
|
_t2$3,
|
|
5334
5334
|
_t3$3,
|
|
5335
5335
|
_t4$2,
|
|
5336
|
-
_t5$
|
|
5337
|
-
_t6$
|
|
5336
|
+
_t5$2,
|
|
5337
|
+
_t6$2,
|
|
5338
5338
|
_t7$1,
|
|
5339
5339
|
_t8$1,
|
|
5340
5340
|
_t9$1,
|
|
@@ -5369,7 +5369,7 @@ const ReviewItemTitle = styled.div(_t4$2 || (_t4$2 = _$5`
|
|
|
5369
5369
|
line-height: var(--goa-space-xl);
|
|
5370
5370
|
font-weight: 300;
|
|
5371
5371
|
`));
|
|
5372
|
-
const Anchor = styled.div(_t5$
|
|
5372
|
+
const Anchor = styled.div(_t5$2 || (_t5$2 = _$5`
|
|
5373
5373
|
color: #0070c4;
|
|
5374
5374
|
text-decoration: underline;
|
|
5375
5375
|
outline: none;
|
|
@@ -5380,7 +5380,7 @@ const Anchor = styled.div(_t5$1 || (_t5$1 = _$5`
|
|
|
5380
5380
|
background-color: #e6f7ff;
|
|
5381
5381
|
}
|
|
5382
5382
|
`));
|
|
5383
|
-
styled.div(_t6$
|
|
5383
|
+
styled.div(_t6$2 || (_t6$2 = _$5`
|
|
5384
5384
|
margin-left: var(--goa-space-m);
|
|
5385
5385
|
`));
|
|
5386
5386
|
styled.div(_t7$1 || (_t7$1 = _$5`
|
|
@@ -6392,8 +6392,8 @@ let _$2 = t => t,
|
|
|
6392
6392
|
_t2$1,
|
|
6393
6393
|
_t3$1,
|
|
6394
6394
|
_t4$1,
|
|
6395
|
-
_t5,
|
|
6396
|
-
_t6,
|
|
6395
|
+
_t5$1,
|
|
6396
|
+
_t6$1,
|
|
6397
6397
|
_t7,
|
|
6398
6398
|
_t8,
|
|
6399
6399
|
_t9,
|
|
@@ -6415,10 +6415,10 @@ const ToolBarHeader = styled.div(_t3$1 || (_t3$1 = _$2`
|
|
|
6415
6415
|
const ObjectArrayTitle = styled.h2(_t4$1 || (_t4$1 = _$2`
|
|
6416
6416
|
margin-bottom: var(--goa-space-l);
|
|
6417
6417
|
`));
|
|
6418
|
-
const TextCenter = styled.div(_t5 || (_t5 = _$2`
|
|
6418
|
+
const TextCenter = styled.div(_t5$1 || (_t5$1 = _$2`
|
|
6419
6419
|
text-align: center;
|
|
6420
6420
|
`));
|
|
6421
|
-
const SideMenuItem = styled.div(_t6 || (_t6 = _$2`
|
|
6421
|
+
const SideMenuItem = styled.div(_t6$1 || (_t6$1 = _$2`
|
|
6422
6422
|
&:hover {
|
|
6423
6423
|
background: #f1f1f1;
|
|
6424
6424
|
}
|
|
@@ -7546,7 +7546,9 @@ let _$1 = t => t,
|
|
|
7546
7546
|
_t$1,
|
|
7547
7547
|
_t2,
|
|
7548
7548
|
_t3,
|
|
7549
|
-
_t4
|
|
7549
|
+
_t4,
|
|
7550
|
+
_t5,
|
|
7551
|
+
_t6;
|
|
7550
7552
|
const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
|
|
7551
7553
|
position: relative;
|
|
7552
7554
|
|
|
@@ -7592,13 +7594,23 @@ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
|
|
|
7592
7594
|
`));
|
|
7593
7595
|
const AddressIndent = styled.div(_t2 || (_t2 = _$1`
|
|
7594
7596
|
margin: 1em 1.5em 0 1.5em;
|
|
7597
|
+
textwrap: 'wrap';
|
|
7598
|
+
wordbreak: 'break-word';
|
|
7599
|
+
`));
|
|
7600
|
+
const TextWrap = styled.p(_t3 || (_t3 = _$1`
|
|
7601
|
+
text-wrap: auto;
|
|
7602
|
+
word-break: break-word;
|
|
7595
7603
|
`));
|
|
7596
|
-
const
|
|
7604
|
+
const TextWrapDiv = styled.div(_t4 || (_t4 = _$1`
|
|
7605
|
+
text-wrap: auto;
|
|
7606
|
+
word-break: break-word;
|
|
7607
|
+
`));
|
|
7608
|
+
const LabelDiv = styled.div(_t5 || (_t5 = _$1`
|
|
7597
7609
|
font-size: var(--goa-font-size-2);
|
|
7598
7610
|
padding-bottom: var(--goa-space-l);
|
|
7599
7611
|
`));
|
|
7600
7612
|
/* istanbul ignore next */
|
|
7601
|
-
const ListItem = styled.li(
|
|
7613
|
+
const ListItem = styled.li(_t6 || (_t6 = _$1`
|
|
7602
7614
|
background-color: ${0};
|
|
7603
7615
|
color: ${0};
|
|
7604
7616
|
font-weight: ${0};
|
|
@@ -8295,12 +8307,12 @@ const AddressViews = ({
|
|
|
8295
8307
|
children: [jsx(GoAFormItem, {
|
|
8296
8308
|
label: "Address line 1",
|
|
8297
8309
|
error: ((_a = data === null || data === void 0 ? void 0 : data.addressLine1) === null || _a === void 0 ? void 0 : _a.length) === 0 ? 'addressLine1 is required' : '',
|
|
8298
|
-
children: jsx(
|
|
8310
|
+
children: jsx(TextWrap, {
|
|
8299
8311
|
children: data === null || data === void 0 ? void 0 : data.addressLine1
|
|
8300
8312
|
})
|
|
8301
8313
|
}), (data === null || data === void 0 ? void 0 : data.addressLine2) && jsx(GoAFormItem, {
|
|
8302
8314
|
label: "Address line 2",
|
|
8303
|
-
children: jsx(
|
|
8315
|
+
children: jsx(TextWrap, {
|
|
8304
8316
|
children: data.addressLine2
|
|
8305
8317
|
})
|
|
8306
8318
|
})]
|
|
@@ -8310,13 +8322,13 @@ const AddressViews = ({
|
|
|
8310
8322
|
children: [jsx(GoAFormItem, {
|
|
8311
8323
|
error: ((_b = data === null || data === void 0 ? void 0 : data.municipality) === null || _b === void 0 ? void 0 : _b.length) === 0 ? 'city is required' : '',
|
|
8312
8324
|
label: "City",
|
|
8313
|
-
children: jsx(
|
|
8325
|
+
children: jsx(TextWrap, {
|
|
8314
8326
|
children: data === null || data === void 0 ? void 0 : data.municipality
|
|
8315
8327
|
})
|
|
8316
8328
|
}), jsx(GoAFormItem, {
|
|
8317
8329
|
error: ((_c = data === null || data === void 0 ? void 0 : data.postalCode) === null || _c === void 0 ? void 0 : _c.length) === 0 ? 'postalCode is required' : '',
|
|
8318
8330
|
label: "Postal Code",
|
|
8319
|
-
children: jsx(
|
|
8331
|
+
children: jsx(TextWrap, {
|
|
8320
8332
|
children: data === null || data === void 0 ? void 0 : data.postalCode
|
|
8321
8333
|
})
|
|
8322
8334
|
})]
|
|
@@ -8488,23 +8500,29 @@ const FullNameReviewControl = props => {
|
|
|
8488
8500
|
label: "First Name",
|
|
8489
8501
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('firstName')) ? 'required' : undefined,
|
|
8490
8502
|
error: (_a = errors === null || errors === void 0 ? void 0 : errors['firstName']) !== null && _a !== void 0 ? _a : '',
|
|
8491
|
-
children: jsx(
|
|
8492
|
-
"
|
|
8493
|
-
|
|
8503
|
+
children: jsx(TextWrapDiv, {
|
|
8504
|
+
children: jsx("div", {
|
|
8505
|
+
"data-testid": `firstName-control-${props.id}`,
|
|
8506
|
+
children: (_b = props.data) === null || _b === void 0 ? void 0 : _b.firstName
|
|
8507
|
+
})
|
|
8494
8508
|
})
|
|
8495
8509
|
}), jsx(GoAFormItem, {
|
|
8496
8510
|
label: "Middle Name",
|
|
8497
|
-
children: jsx(
|
|
8498
|
-
"
|
|
8499
|
-
|
|
8511
|
+
children: jsx(TextWrapDiv, {
|
|
8512
|
+
children: jsx("div", {
|
|
8513
|
+
"data-testid": `middleName-control-${props.id}`,
|
|
8514
|
+
children: (_c = props.data) === null || _c === void 0 ? void 0 : _c.middleName
|
|
8515
|
+
})
|
|
8500
8516
|
})
|
|
8501
8517
|
}), jsx(GoAFormItem, {
|
|
8502
8518
|
label: "Last Name",
|
|
8503
8519
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('lastName')) ? 'required' : undefined,
|
|
8504
8520
|
error: (_d = errors === null || errors === void 0 ? void 0 : errors['lastName']) !== null && _d !== void 0 ? _d : '',
|
|
8505
|
-
children: jsx(
|
|
8506
|
-
"
|
|
8507
|
-
|
|
8521
|
+
children: jsx(TextWrapDiv, {
|
|
8522
|
+
children: jsx("div", {
|
|
8523
|
+
"data-testid": `lastName-control-${props.id}`,
|
|
8524
|
+
children: (_e = props.data) === null || _e === void 0 ? void 0 : _e.lastName
|
|
8525
|
+
})
|
|
8508
8526
|
})
|
|
8509
8527
|
})]
|
|
8510
8528
|
});
|
|
@@ -8730,15 +8748,19 @@ const FullNameDobReviewControl = props => {
|
|
|
8730
8748
|
label: "First name",
|
|
8731
8749
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('firstName')) ? 'required' : undefined,
|
|
8732
8750
|
error: (_a = errors === null || errors === void 0 ? void 0 : errors['firstName']) !== null && _a !== void 0 ? _a : '',
|
|
8733
|
-
children: jsx(
|
|
8734
|
-
"
|
|
8735
|
-
|
|
8751
|
+
children: jsx(TextWrapDiv, {
|
|
8752
|
+
children: jsx("div", {
|
|
8753
|
+
"data-testid": `firstName-control-${props.id}`,
|
|
8754
|
+
children: (_b = props.data) === null || _b === void 0 ? void 0 : _b.firstName
|
|
8755
|
+
})
|
|
8736
8756
|
})
|
|
8737
8757
|
}), jsx(GoAFormItem, {
|
|
8738
8758
|
label: "Middle name",
|
|
8739
|
-
children: jsx(
|
|
8740
|
-
"
|
|
8741
|
-
|
|
8759
|
+
children: jsx(TextWrapDiv, {
|
|
8760
|
+
children: jsx("div", {
|
|
8761
|
+
"data-testid": `middleName-control-${props.id}`,
|
|
8762
|
+
children: (_c = props.data) === null || _c === void 0 ? void 0 : _c.middleName
|
|
8763
|
+
})
|
|
8742
8764
|
})
|
|
8743
8765
|
}), jsx(GoAFormItem, {
|
|
8744
8766
|
label: "Last name",
|
|
@@ -8756,9 +8778,11 @@ const FullNameDobReviewControl = props => {
|
|
|
8756
8778
|
label: "Date of birth",
|
|
8757
8779
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('dateOfBirth')) ? 'required' : undefined,
|
|
8758
8780
|
error: (_f = errors === null || errors === void 0 ? void 0 : errors['dateOfBirth']) !== null && _f !== void 0 ? _f : '',
|
|
8759
|
-
children: jsx(
|
|
8760
|
-
"
|
|
8761
|
-
|
|
8781
|
+
children: jsx(TextWrapDiv, {
|
|
8782
|
+
children: jsx("div", {
|
|
8783
|
+
"data-testid": `dob-control-${props.id}`,
|
|
8784
|
+
children: (_g = props.data) === null || _g === void 0 ? void 0 : _g.dateOfBirth
|
|
8785
|
+
})
|
|
8762
8786
|
})
|
|
8763
8787
|
})
|
|
8764
8788
|
})]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.2",
|
|
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",
|
|
@@ -5,6 +5,8 @@ interface ListItemProps {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const SearchBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
7
|
export declare const AddressIndent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const TextWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
9
|
+
export declare const TextWrapDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
10
|
export declare const LabelDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
11
|
export declare const ListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, ListItemProps>> & string;
|
|
10
12
|
export {};
|