@abgov/jsonforms-components 1.24.6 → 1.24.7
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 +15 -9
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -5066,7 +5066,6 @@ data, field, index, requiredFields) => {
|
|
|
5066
5066
|
const fieldName = element.scope.split('/').pop() || '';
|
|
5067
5067
|
const label = resolveLabelFromScope(element.scope);
|
|
5068
5068
|
const value = (_a = elementData[fieldName]) !== null && _a !== void 0 ? _a : '';
|
|
5069
|
-
console.log('ListWithDetailValue', value);
|
|
5070
5069
|
itemData.push([label, value]);
|
|
5071
5070
|
});
|
|
5072
5071
|
detailData.push([`${i}`, itemData]);
|
|
@@ -6325,11 +6324,18 @@ const RenderLink = props => {
|
|
|
6325
6324
|
label: "",
|
|
6326
6325
|
children: jsx("div", {
|
|
6327
6326
|
"data-testid": "link-jsonform",
|
|
6328
|
-
children: linkUrl && linkValid ? jsx("
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6327
|
+
children: linkUrl && linkValid ? jsx("div", {
|
|
6328
|
+
children: jsxs("a", {
|
|
6329
|
+
href: link,
|
|
6330
|
+
rel: "noopener noreferrer",
|
|
6331
|
+
target: "_blank",
|
|
6332
|
+
children: [linkLabel, jsx(GoAIconButton, {
|
|
6333
|
+
icon: "open",
|
|
6334
|
+
title: "Open",
|
|
6335
|
+
testId: "open-icon",
|
|
6336
|
+
size: "small"
|
|
6337
|
+
})]
|
|
6338
|
+
})
|
|
6333
6339
|
}) : linkLabel
|
|
6334
6340
|
})
|
|
6335
6341
|
});
|
|
@@ -6374,18 +6380,18 @@ const HelpContentComponent = _a => {
|
|
|
6374
6380
|
alt: alt
|
|
6375
6381
|
});
|
|
6376
6382
|
};
|
|
6377
|
-
const textVariant = !((_c = uischema.options) === null || _c === void 0 ? void 0 : _c.variant) || ((_d = uischema.options) === null || _d === void 0 ? void 0 : _d.variant) !== 'details' && ((_e = uischema.options) === null || _e === void 0 ? void 0 : _e.variant) !== '
|
|
6383
|
+
const textVariant = !((_c = uischema.options) === null || _c === void 0 ? void 0 : _c.variant) || ((_d = uischema.options) === null || _d === void 0 ? void 0 : _d.variant) !== 'details' && ((_e = uischema.options) === null || _e === void 0 ? void 0 : _e.variant) !== 'hyperlink';
|
|
6378
6384
|
return jsx(Visible, {
|
|
6379
6385
|
visible: visible,
|
|
6380
6386
|
children: jsx(HelpContentDiv, {
|
|
6381
6387
|
"aria-label": (_f = uischema.options) === null || _f === void 0 ? void 0 : _f.ariaLabel,
|
|
6382
6388
|
children: jsxs("div", {
|
|
6383
6389
|
className: marginClass,
|
|
6384
|
-
children: [label && (!((_g = uischema.options) === null || _g === void 0 ? void 0 : _g.variant) || ((_h = uischema.options) === null || _h === void 0 ? void 0 : _h.variant) === '
|
|
6390
|
+
children: [label && (!((_g = uischema.options) === null || _g === void 0 ? void 0 : _g.variant) || ((_h = uischema.options) === null || _h === void 0 ? void 0 : _h.variant) === 'hyperlink') && jsxs("div", {
|
|
6385
6391
|
className: labelClass,
|
|
6386
6392
|
"data-testid": label,
|
|
6387
6393
|
children: [label, jsx("br", {})]
|
|
6388
|
-
}), ((_j = uischema.options) === null || _j === void 0 ? void 0 : _j.variant) && ((_k = uischema.options) === null || _k === void 0 ? void 0 : _k.variant) === 'img' && renderImage(uischema.options), ((_l = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _l === void 0 ? void 0 : _l.variant) && ((_m = uischema.options) === null || _m === void 0 ? void 0 : _m.variant) === '
|
|
6394
|
+
}), ((_j = uischema.options) === null || _j === void 0 ? void 0 : _j.variant) && ((_k = uischema.options) === null || _k === void 0 ? void 0 : _k.variant) === 'img' && renderImage(uischema.options), ((_l = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _l === void 0 ? void 0 : _l.variant) && ((_m = uischema.options) === null || _m === void 0 ? void 0 : _m.variant) === 'hyperlink' && link && RenderLink(uischema === null || uischema === void 0 ? void 0 : uischema.options), textVariant && renderHelp(), ((_o = uischema.options) === null || _o === void 0 ? void 0 : _o.variant) && ((_p = uischema.options) === null || _p === void 0 ? void 0 : _p.variant) === 'details' && jsxs(GoADetails, {
|
|
6389
6395
|
heading: label ? label : '',
|
|
6390
6396
|
mt: "3xs",
|
|
6391
6397
|
mb: "none",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.7",
|
|
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",
|