@abgov/jsonforms-components 2.31.0 → 2.32.1
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
|
@@ -5988,7 +5988,7 @@ const callout = props => {
|
|
|
5988
5988
|
const testid = (_a = componentProps.message) === null || _a === void 0 ? void 0 : _a.replace(/\s/g, '');
|
|
5989
5989
|
return jsx(GoACallout, Object.assign({}, componentProps, {
|
|
5990
5990
|
"data-testid": testid,
|
|
5991
|
-
children: componentProps.message
|
|
5991
|
+
children: componentProps === null || componentProps === void 0 ? void 0 : componentProps.message
|
|
5992
5992
|
}));
|
|
5993
5993
|
};
|
|
5994
5994
|
const GoACalloutController = props => {
|
|
@@ -5999,6 +5999,7 @@ const GoACalloutController = props => {
|
|
|
5999
5999
|
data
|
|
6000
6000
|
} = props;
|
|
6001
6001
|
let showCallout;
|
|
6002
|
+
/* istanbul ignore next */
|
|
6002
6003
|
if (data === undefined || Array.isArray(data) && data.length === 0) {
|
|
6003
6004
|
showCallout = false;
|
|
6004
6005
|
} else {
|
|
@@ -6010,6 +6011,7 @@ const GoACalloutController = props => {
|
|
|
6010
6011
|
children: callout(calloutProps)
|
|
6011
6012
|
});
|
|
6012
6013
|
};
|
|
6014
|
+
/* istanbul ignore next */
|
|
6013
6015
|
const CalloutReviewControl = () => {
|
|
6014
6016
|
return jsx(Fragment, {});
|
|
6015
6017
|
};
|
|
@@ -6329,9 +6331,11 @@ const GoATimeInput = props => {
|
|
|
6329
6331
|
readonly: readOnly,
|
|
6330
6332
|
testId: (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.testId) || `${id}-input`,
|
|
6331
6333
|
onBlur: (name, value) => {
|
|
6334
|
+
/* istanbul ignore next */
|
|
6332
6335
|
if (isVisited === false && setIsVisited) {
|
|
6333
6336
|
setIsVisited();
|
|
6334
6337
|
}
|
|
6338
|
+
/* istanbul ignore next */
|
|
6335
6339
|
handleChange(path, value === '' ? undefined : value);
|
|
6336
6340
|
},
|
|
6337
6341
|
onChange: (name, value) => {},
|
|
@@ -7107,7 +7111,8 @@ let _$6 = t => t,
|
|
|
7107
7111
|
_t18$1,
|
|
7108
7112
|
_t19,
|
|
7109
7113
|
_t20,
|
|
7110
|
-
_t21
|
|
7114
|
+
_t21,
|
|
7115
|
+
_t22;
|
|
7111
7116
|
const ReviewItem = styled.div(_t$6 || (_t$6 = _$6`
|
|
7112
7117
|
display: flex;
|
|
7113
7118
|
flex-direction: column;
|
|
@@ -7250,6 +7255,9 @@ const SummaryRowLink = styled.a(_t21 || (_t21 = _$6`
|
|
|
7250
7255
|
position: relative;
|
|
7251
7256
|
top: var(--goa-space-xs);
|
|
7252
7257
|
`));
|
|
7258
|
+
styled.td(_t22 || (_t22 = _$6`
|
|
7259
|
+
border: 0 !important;
|
|
7260
|
+
`));
|
|
7253
7261
|
|
|
7254
7262
|
class ContextProviderClass {
|
|
7255
7263
|
async addDataByUrl(key, url, processDataFunction, token) {
|
|
@@ -8396,10 +8404,10 @@ const CategoryRow = ({
|
|
|
8396
8404
|
"data-testid": `page-ref-${index}`,
|
|
8397
8405
|
children: [jsx("td", {
|
|
8398
8406
|
children: category.label
|
|
8399
|
-
}), jsx(CategoryStatus, {
|
|
8407
|
+
}, `task-list-${index}-stepper-row-label`), jsx(CategoryStatus, {
|
|
8400
8408
|
children: getCategoryStatusBadge(category)
|
|
8401
8409
|
})]
|
|
8402
|
-
}) : null;
|
|
8410
|
+
}, `task-list-${index}-stepper-row`) : null;
|
|
8403
8411
|
};
|
|
8404
8412
|
|
|
8405
8413
|
/* eslint-disable jsx-a11y/anchor-is-valid */
|
|
@@ -8462,7 +8470,7 @@ const TaskList = ({
|
|
|
8462
8470
|
children: [sectioned.map(({
|
|
8463
8471
|
sectionTitle,
|
|
8464
8472
|
categories: group
|
|
8465
|
-
}) => jsxs(Fragment, {
|
|
8473
|
+
}, index) => jsxs(React.Fragment, {
|
|
8466
8474
|
children: [sectionTitle && showInTaskListList[globalIndex] && jsx(SectionHeaderRow, {
|
|
8467
8475
|
title: sectionTitle,
|
|
8468
8476
|
index: sectionIndex++
|
|
@@ -8495,14 +8503,14 @@ const TaskList = ({
|
|
|
8495
8503
|
category: currentCategory,
|
|
8496
8504
|
index: index,
|
|
8497
8505
|
onClick: onClick
|
|
8498
|
-
}, `cat-${category.label}`);
|
|
8506
|
+
}, `cat-${category.label}-${index}`);
|
|
8499
8507
|
}
|
|
8500
8508
|
})]
|
|
8501
|
-
})), jsx(SummaryRow, {
|
|
8509
|
+
}, index)), jsx(SummaryRow, {
|
|
8502
8510
|
index: globalIndex,
|
|
8503
8511
|
isValid: isValid,
|
|
8504
8512
|
onClick: onClick
|
|
8505
|
-
})]
|
|
8513
|
+
}, "task-list-table-summary")]
|
|
8506
8514
|
})
|
|
8507
8515
|
})]
|
|
8508
8516
|
})
|
|
@@ -11434,6 +11442,7 @@ const AddressLookUpControl = props => {
|
|
|
11434
11442
|
}, [debouncedRenderAddress]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
11435
11443
|
useEffect(() => {
|
|
11436
11444
|
const fetchSuggestions = async () => {
|
|
11445
|
+
/* istanbul ignore next */
|
|
11437
11446
|
if (debouncedRenderAddress.length > 2 && dropdownSelected === false) {
|
|
11438
11447
|
setLoading(true);
|
|
11439
11448
|
setOpen(true);
|
|
@@ -11465,6 +11474,7 @@ const AddressLookUpControl = props => {
|
|
|
11465
11474
|
const handleDropdownChange = value => {
|
|
11466
11475
|
setSearchTerm(value);
|
|
11467
11476
|
};
|
|
11477
|
+
/* istanbul ignore next */
|
|
11468
11478
|
const handleSuggestionClick = suggestion => {
|
|
11469
11479
|
const suggestAddress = mapSuggestionToAddress(suggestion);
|
|
11470
11480
|
setAddress(suggestAddress);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.1",
|
|
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",
|
|
@@ -24,4 +24,5 @@ interface PageStepperRowProps {
|
|
|
24
24
|
export declare const PageStepperRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, PageStepperRowProps>> & string;
|
|
25
25
|
export declare const SectionHeaderRowTr: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>> & string;
|
|
26
26
|
export declare const SummaryRowLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
27
|
+
export declare const SummaryTd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never>> & string;
|
|
27
28
|
export {};
|