@abgov/jsonforms-components 2.21.3 → 2.21.4
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
|
@@ -5549,7 +5549,8 @@ const Dropdown = props => {
|
|
|
5549
5549
|
optionListMaxHeight,
|
|
5550
5550
|
isAutoCompletion,
|
|
5551
5551
|
enabled,
|
|
5552
|
-
id
|
|
5552
|
+
id,
|
|
5553
|
+
width
|
|
5553
5554
|
} = props;
|
|
5554
5555
|
const [isOpen, setIsOpen] = useState(false);
|
|
5555
5556
|
const [selectedOption, setSelectedOption] = useState(selected);
|
|
@@ -5716,6 +5717,9 @@ const Dropdown = props => {
|
|
|
5716
5717
|
};
|
|
5717
5718
|
return jsxs("div", {
|
|
5718
5719
|
"data-testid": id,
|
|
5720
|
+
style: {
|
|
5721
|
+
width: width || '100%'
|
|
5722
|
+
},
|
|
5719
5723
|
children: [jsx(GoADropdownTextbox, {
|
|
5720
5724
|
isOpen: isOpen,
|
|
5721
5725
|
onClick: e => {
|
|
@@ -5855,6 +5859,7 @@ const GoAInputText = props => {
|
|
|
5855
5859
|
selected: data,
|
|
5856
5860
|
id: `jsonforms-${label}-dropdown`,
|
|
5857
5861
|
label: label || '',
|
|
5862
|
+
width: width,
|
|
5858
5863
|
isAutoCompletion: autoCompletion,
|
|
5859
5864
|
onChange: value => {
|
|
5860
5865
|
handleChange(path, value);
|
|
@@ -6355,7 +6360,7 @@ function fetchRegisterConfigFromOptions(options) {
|
|
|
6355
6360
|
return config;
|
|
6356
6361
|
}
|
|
6357
6362
|
const EnumSelect = props => {
|
|
6358
|
-
var _a, _b, _c, _d;
|
|
6363
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6359
6364
|
const {
|
|
6360
6365
|
data,
|
|
6361
6366
|
enabled,
|
|
@@ -6401,6 +6406,7 @@ const EnumSelect = props => {
|
|
|
6401
6406
|
}
|
|
6402
6407
|
return newOptions.filter(option => option.value !== '');
|
|
6403
6408
|
}, [registerData, options]);
|
|
6409
|
+
const width = ((_f = (_e = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _e === void 0 ? void 0 : _e.componentProps) === null || _f === void 0 ? void 0 : _f.width) || '100%';
|
|
6404
6410
|
useEffect(() => {
|
|
6405
6411
|
if (registerConfig) {
|
|
6406
6412
|
registerCtx === null || registerCtx === void 0 ? void 0 : registerCtx.fetchRegisterByUrl(registerConfig);
|
|
@@ -6413,6 +6419,7 @@ const EnumSelect = props => {
|
|
|
6413
6419
|
items: mergedOptions,
|
|
6414
6420
|
enabled: enabled,
|
|
6415
6421
|
selected: data,
|
|
6422
|
+
width: width,
|
|
6416
6423
|
id: `jsonforms-${label}-dropdown`,
|
|
6417
6424
|
label: label,
|
|
6418
6425
|
isAutoCompletion: autoCompletion,
|
|
@@ -6907,7 +6914,8 @@ let _$5 = t => t,
|
|
|
6907
6914
|
_t19$1,
|
|
6908
6915
|
_t20$1,
|
|
6909
6916
|
_t21,
|
|
6910
|
-
_t22
|
|
6917
|
+
_t22,
|
|
6918
|
+
_t23;
|
|
6911
6919
|
const ReviewItem = styled.div(_t$5 || (_t$5 = _$5`
|
|
6912
6920
|
display: flex;
|
|
6913
6921
|
flex-direction: column;
|
|
@@ -7033,6 +7041,17 @@ const PageStepperRow = styled.tr(_t22 || (_t22 = _$5`
|
|
|
7033
7041
|
` : `
|
|
7034
7042
|
cursor: pointer;
|
|
7035
7043
|
`);
|
|
7044
|
+
const SectionHeaderRowTr = styled.tr(_t23 || (_t23 = _$5`
|
|
7045
|
+
& > td {
|
|
7046
|
+
border: 0 !important;
|
|
7047
|
+
padding-top: var(--goa-space-l);
|
|
7048
|
+
padding-bottom: var(--goa-space-s);
|
|
7049
|
+
}
|
|
7050
|
+
|
|
7051
|
+
& + tr > td {
|
|
7052
|
+
border-top: none !important;
|
|
7053
|
+
}
|
|
7054
|
+
`));
|
|
7036
7055
|
|
|
7037
7056
|
class ContextProviderClass {
|
|
7038
7057
|
async addDataByUrl(key, url, processDataFunction, token) {
|
|
@@ -8122,7 +8141,7 @@ const SectionHeaderRow = ({
|
|
|
8122
8141
|
index
|
|
8123
8142
|
}) => {
|
|
8124
8143
|
const section = `${index}. ${title}`;
|
|
8125
|
-
return jsx(
|
|
8144
|
+
return jsx(SectionHeaderRowTr, {
|
|
8126
8145
|
children: jsx("td", {
|
|
8127
8146
|
colSpan: 2,
|
|
8128
8147
|
children: jsx(GoAText, {
|
|
@@ -8188,8 +8207,12 @@ const SummaryRow = ({
|
|
|
8188
8207
|
isValid,
|
|
8189
8208
|
onClick
|
|
8190
8209
|
}) => {
|
|
8191
|
-
return
|
|
8192
|
-
children:
|
|
8210
|
+
return jsx("tr", {
|
|
8211
|
+
children: jsx(GoAText, {
|
|
8212
|
+
size: "heading-m",
|
|
8213
|
+
mt: "none",
|
|
8214
|
+
mb: "xl",
|
|
8215
|
+
ml: "xl",
|
|
8193
8216
|
children: jsx("a", {
|
|
8194
8217
|
"data-testid": `page-ref-${index}`,
|
|
8195
8218
|
href: "#",
|
|
@@ -8197,11 +8220,9 @@ const SummaryRow = ({
|
|
|
8197
8220
|
e.preventDefault();
|
|
8198
8221
|
onClick(index);
|
|
8199
8222
|
},
|
|
8200
|
-
children:
|
|
8201
|
-
children: "Summary"
|
|
8202
|
-
})
|
|
8223
|
+
children: "Summary"
|
|
8203
8224
|
})
|
|
8204
|
-
})
|
|
8225
|
+
})
|
|
8205
8226
|
});
|
|
8206
8227
|
};
|
|
8207
8228
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.4",
|
|
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",
|
|
@@ -23,4 +23,5 @@ interface PageStepperRowProps {
|
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
}
|
|
25
25
|
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;
|
|
26
|
+
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
27
|
export {};
|