@abgov/jsonforms-components 1.44.0 → 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`
|
|
@@ -5394,9 +5394,14 @@ styled.h3(_t9$1 || (_t9$1 = _$5`
|
|
|
5394
5394
|
text-transform: capitalize;
|
|
5395
5395
|
`));
|
|
5396
5396
|
const RightAlignmentDiv = styled.div(_t10$1 || (_t10$1 = _$5`
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5397
|
+
@media screen and (max-width: 767px) {
|
|
5398
|
+
margin-bottom: var(--goa-space-l);
|
|
5399
|
+
}
|
|
5400
|
+
@media screen and (min-width: 768px) {
|
|
5401
|
+
display: flex;
|
|
5402
|
+
justify-content: flex-end;
|
|
5403
|
+
margin-bottom: var(--goa-space-l);
|
|
5404
|
+
}
|
|
5400
5405
|
`));
|
|
5401
5406
|
const FormStepperSummaryH3 = styled.h3(_t11$1 || (_t11$1 = _$5`
|
|
5402
5407
|
flex: 1;
|
|
@@ -6387,8 +6392,8 @@ let _$2 = t => t,
|
|
|
6387
6392
|
_t2$1,
|
|
6388
6393
|
_t3$1,
|
|
6389
6394
|
_t4$1,
|
|
6390
|
-
_t5,
|
|
6391
|
-
_t6,
|
|
6395
|
+
_t5$1,
|
|
6396
|
+
_t6$1,
|
|
6392
6397
|
_t7,
|
|
6393
6398
|
_t8,
|
|
6394
6399
|
_t9,
|
|
@@ -6410,10 +6415,10 @@ const ToolBarHeader = styled.div(_t3$1 || (_t3$1 = _$2`
|
|
|
6410
6415
|
const ObjectArrayTitle = styled.h2(_t4$1 || (_t4$1 = _$2`
|
|
6411
6416
|
margin-bottom: var(--goa-space-l);
|
|
6412
6417
|
`));
|
|
6413
|
-
const TextCenter = styled.div(_t5 || (_t5 = _$2`
|
|
6418
|
+
const TextCenter = styled.div(_t5$1 || (_t5$1 = _$2`
|
|
6414
6419
|
text-align: center;
|
|
6415
6420
|
`));
|
|
6416
|
-
const SideMenuItem = styled.div(_t6 || (_t6 = _$2`
|
|
6421
|
+
const SideMenuItem = styled.div(_t6$1 || (_t6$1 = _$2`
|
|
6417
6422
|
&:hover {
|
|
6418
6423
|
background: #f1f1f1;
|
|
6419
6424
|
}
|
|
@@ -7541,7 +7546,9 @@ let _$1 = t => t,
|
|
|
7541
7546
|
_t$1,
|
|
7542
7547
|
_t2,
|
|
7543
7548
|
_t3,
|
|
7544
|
-
_t4
|
|
7549
|
+
_t4,
|
|
7550
|
+
_t5,
|
|
7551
|
+
_t6;
|
|
7545
7552
|
const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
|
|
7546
7553
|
position: relative;
|
|
7547
7554
|
|
|
@@ -7587,13 +7594,23 @@ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
|
|
|
7587
7594
|
`));
|
|
7588
7595
|
const AddressIndent = styled.div(_t2 || (_t2 = _$1`
|
|
7589
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;
|
|
7590
7603
|
`));
|
|
7591
|
-
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`
|
|
7592
7609
|
font-size: var(--goa-font-size-2);
|
|
7593
7610
|
padding-bottom: var(--goa-space-l);
|
|
7594
7611
|
`));
|
|
7595
7612
|
/* istanbul ignore next */
|
|
7596
|
-
const ListItem = styled.li(
|
|
7613
|
+
const ListItem = styled.li(_t6 || (_t6 = _$1`
|
|
7597
7614
|
background-color: ${0};
|
|
7598
7615
|
color: ${0};
|
|
7599
7616
|
font-weight: ${0};
|
|
@@ -8290,12 +8307,12 @@ const AddressViews = ({
|
|
|
8290
8307
|
children: [jsx(GoAFormItem, {
|
|
8291
8308
|
label: "Address line 1",
|
|
8292
8309
|
error: ((_a = data === null || data === void 0 ? void 0 : data.addressLine1) === null || _a === void 0 ? void 0 : _a.length) === 0 ? 'addressLine1 is required' : '',
|
|
8293
|
-
children: jsx(
|
|
8310
|
+
children: jsx(TextWrap, {
|
|
8294
8311
|
children: data === null || data === void 0 ? void 0 : data.addressLine1
|
|
8295
8312
|
})
|
|
8296
8313
|
}), (data === null || data === void 0 ? void 0 : data.addressLine2) && jsx(GoAFormItem, {
|
|
8297
8314
|
label: "Address line 2",
|
|
8298
|
-
children: jsx(
|
|
8315
|
+
children: jsx(TextWrap, {
|
|
8299
8316
|
children: data.addressLine2
|
|
8300
8317
|
})
|
|
8301
8318
|
})]
|
|
@@ -8305,13 +8322,13 @@ const AddressViews = ({
|
|
|
8305
8322
|
children: [jsx(GoAFormItem, {
|
|
8306
8323
|
error: ((_b = data === null || data === void 0 ? void 0 : data.municipality) === null || _b === void 0 ? void 0 : _b.length) === 0 ? 'city is required' : '',
|
|
8307
8324
|
label: "City",
|
|
8308
|
-
children: jsx(
|
|
8325
|
+
children: jsx(TextWrap, {
|
|
8309
8326
|
children: data === null || data === void 0 ? void 0 : data.municipality
|
|
8310
8327
|
})
|
|
8311
8328
|
}), jsx(GoAFormItem, {
|
|
8312
8329
|
error: ((_c = data === null || data === void 0 ? void 0 : data.postalCode) === null || _c === void 0 ? void 0 : _c.length) === 0 ? 'postalCode is required' : '',
|
|
8313
8330
|
label: "Postal Code",
|
|
8314
|
-
children: jsx(
|
|
8331
|
+
children: jsx(TextWrap, {
|
|
8315
8332
|
children: data === null || data === void 0 ? void 0 : data.postalCode
|
|
8316
8333
|
})
|
|
8317
8334
|
})]
|
|
@@ -8483,23 +8500,29 @@ const FullNameReviewControl = props => {
|
|
|
8483
8500
|
label: "First Name",
|
|
8484
8501
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('firstName')) ? 'required' : undefined,
|
|
8485
8502
|
error: (_a = errors === null || errors === void 0 ? void 0 : errors['firstName']) !== null && _a !== void 0 ? _a : '',
|
|
8486
|
-
children: jsx(
|
|
8487
|
-
"
|
|
8488
|
-
|
|
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
|
+
})
|
|
8489
8508
|
})
|
|
8490
8509
|
}), jsx(GoAFormItem, {
|
|
8491
8510
|
label: "Middle Name",
|
|
8492
|
-
children: jsx(
|
|
8493
|
-
"
|
|
8494
|
-
|
|
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
|
+
})
|
|
8495
8516
|
})
|
|
8496
8517
|
}), jsx(GoAFormItem, {
|
|
8497
8518
|
label: "Last Name",
|
|
8498
8519
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('lastName')) ? 'required' : undefined,
|
|
8499
8520
|
error: (_d = errors === null || errors === void 0 ? void 0 : errors['lastName']) !== null && _d !== void 0 ? _d : '',
|
|
8500
|
-
children: jsx(
|
|
8501
|
-
"
|
|
8502
|
-
|
|
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
|
+
})
|
|
8503
8526
|
})
|
|
8504
8527
|
})]
|
|
8505
8528
|
});
|
|
@@ -8725,15 +8748,19 @@ const FullNameDobReviewControl = props => {
|
|
|
8725
8748
|
label: "First name",
|
|
8726
8749
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('firstName')) ? 'required' : undefined,
|
|
8727
8750
|
error: (_a = errors === null || errors === void 0 ? void 0 : errors['firstName']) !== null && _a !== void 0 ? _a : '',
|
|
8728
|
-
children: jsx(
|
|
8729
|
-
"
|
|
8730
|
-
|
|
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
|
+
})
|
|
8731
8756
|
})
|
|
8732
8757
|
}), jsx(GoAFormItem, {
|
|
8733
8758
|
label: "Middle name",
|
|
8734
|
-
children: jsx(
|
|
8735
|
-
"
|
|
8736
|
-
|
|
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
|
+
})
|
|
8737
8764
|
})
|
|
8738
8765
|
}), jsx(GoAFormItem, {
|
|
8739
8766
|
label: "Last name",
|
|
@@ -8751,9 +8778,11 @@ const FullNameDobReviewControl = props => {
|
|
|
8751
8778
|
label: "Date of birth",
|
|
8752
8779
|
requirement: (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes('dateOfBirth')) ? 'required' : undefined,
|
|
8753
8780
|
error: (_f = errors === null || errors === void 0 ? void 0 : errors['dateOfBirth']) !== null && _f !== void 0 ? _f : '',
|
|
8754
|
-
children: jsx(
|
|
8755
|
-
"
|
|
8756
|
-
|
|
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
|
+
})
|
|
8757
8786
|
})
|
|
8758
8787
|
})
|
|
8759
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 {};
|