@abgov/jsonforms-components 2.42.0 → 2.42.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
|
@@ -7138,7 +7138,7 @@ let _$6 = t => t,
|
|
|
7138
7138
|
_t22$1,
|
|
7139
7139
|
_t23$1,
|
|
7140
7140
|
_t24$1,
|
|
7141
|
-
_t25,
|
|
7141
|
+
_t25$1,
|
|
7142
7142
|
_t26,
|
|
7143
7143
|
_t27,
|
|
7144
7144
|
_t28;
|
|
@@ -7303,7 +7303,7 @@ const CategoryStatus = styled.td(_t23$1 || (_t23$1 = _$6`
|
|
|
7303
7303
|
const Center = styled.div(_t24$1 || (_t24$1 = _$6`
|
|
7304
7304
|
padding-top: 5px;
|
|
7305
7305
|
`));
|
|
7306
|
-
const PageStepperRow = styled.tr(_t25 || (_t25 = _$6`
|
|
7306
|
+
const PageStepperRow = styled.tr(_t25$1 || (_t25$1 = _$6`
|
|
7307
7307
|
${0}
|
|
7308
7308
|
`), ({
|
|
7309
7309
|
disabled
|
|
@@ -10084,7 +10084,8 @@ let _$3 = t => t,
|
|
|
10084
10084
|
_t21,
|
|
10085
10085
|
_t22,
|
|
10086
10086
|
_t23,
|
|
10087
|
-
_t24
|
|
10087
|
+
_t24,
|
|
10088
|
+
_t25;
|
|
10088
10089
|
const DeleteDialogContent = styled.div(_t$3 || (_t$3 = _$3`
|
|
10089
10090
|
margin-bottom: var(--goa-space-m);
|
|
10090
10091
|
`));
|
|
@@ -10153,44 +10154,47 @@ const Trash = styled.div(_t12 || (_t12 = _$3`
|
|
|
10153
10154
|
const ListContainer = styled.div(_t13 || (_t13 = _$3`
|
|
10154
10155
|
padding: 0 0 0 0;
|
|
10155
10156
|
`));
|
|
10156
|
-
const
|
|
10157
|
+
const DetailMargin = styled.div(_t14 || (_t14 = _$3`
|
|
10158
|
+
padding: 0 0 var(--goa-space-l) 0;
|
|
10159
|
+
`));
|
|
10160
|
+
const IconPadding = styled.div(_t15 || (_t15 = _$3`
|
|
10157
10161
|
padding: 0.9rem 0.5rem 0 0;
|
|
10158
10162
|
`));
|
|
10159
|
-
const UpdateListContainer = styled.div(
|
|
10163
|
+
const UpdateListContainer = styled.div(_t16 || (_t16 = _$3`
|
|
10160
10164
|
width: 100%;
|
|
10161
10165
|
border: 1px solid #dcdcdc;
|
|
10162
10166
|
padding: var(--goa-space-xl);
|
|
10163
10167
|
`));
|
|
10164
|
-
styled.div(
|
|
10168
|
+
styled.div(_t17 || (_t17 = _$3`
|
|
10165
10169
|
padding: 0 1.5rem 0 0;
|
|
10166
10170
|
border: 1px solid #dcdcdc;
|
|
10167
10171
|
`));
|
|
10168
|
-
const TableTHHeader = styled.th(
|
|
10172
|
+
const TableTHHeader = styled.th(_t18 || (_t18 = _$3`
|
|
10169
10173
|
background-color: var(--goa-color-greyscale-100) !important;
|
|
10170
10174
|
vertical-align: top;
|
|
10171
10175
|
`));
|
|
10172
|
-
const ObjectArrayWarningIconDiv = styled.div(
|
|
10176
|
+
const ObjectArrayWarningIconDiv = styled.div(_t19 || (_t19 = _$3`
|
|
10173
10177
|
display: inline-flex;
|
|
10174
10178
|
align-items: flex-start;
|
|
10175
10179
|
gap: 0.25rem;
|
|
10176
10180
|
font-size: var(--goa-font-size-2);
|
|
10177
10181
|
color: var(--goa-color-interactive-error);
|
|
10178
10182
|
`));
|
|
10179
|
-
const ListWithDetailWarningIconDiv = styled.div(
|
|
10183
|
+
const ListWithDetailWarningIconDiv = styled.div(_t20 || (_t20 = _$3`
|
|
10180
10184
|
display: inline-flex;
|
|
10181
10185
|
align-items: flex-start;
|
|
10182
10186
|
gap: 0.25rem;
|
|
10183
10187
|
font-size: var(--goa-font-size-3);
|
|
10184
10188
|
color: var(--goa-color-interactive-error);
|
|
10185
10189
|
`));
|
|
10186
|
-
styled.label(
|
|
10190
|
+
styled.label(_t21 || (_t21 = _$3`
|
|
10187
10191
|
color: var(--goa-color-interactive-error);
|
|
10188
10192
|
font-weight: var(--goa-font-weight-regular);
|
|
10189
10193
|
font-size: var(--goa-font-size-3);
|
|
10190
10194
|
line-height: var(--goa-line-height-1);
|
|
10191
10195
|
font-style: normal;
|
|
10192
10196
|
`));
|
|
10193
|
-
styled.div(
|
|
10197
|
+
styled.div(_t22 || (_t22 = _$3`
|
|
10194
10198
|
margin-top: var(--goa-space-m);
|
|
10195
10199
|
color: var(--goa-color-interactive-error);
|
|
10196
10200
|
font-weight: var(--goa-font-weight-regular);
|
|
@@ -10198,10 +10202,10 @@ styled.div(_t21 || (_t21 = _$3`
|
|
|
10198
10202
|
line-height: var(--goa-line-height-1);
|
|
10199
10203
|
font-style: normal;
|
|
10200
10204
|
`));
|
|
10201
|
-
const HilightCellWarning = styled.div(
|
|
10205
|
+
const HilightCellWarning = styled.div(_t23 || (_t23 = _$3`
|
|
10202
10206
|
background-color: var(--goa-color-warning-default);
|
|
10203
10207
|
`));
|
|
10204
|
-
const FixTableHeaderAlignment = styled.div(
|
|
10208
|
+
const FixTableHeaderAlignment = styled.div(_t24 || (_t24 = _$3`
|
|
10205
10209
|
table thead th:nth-child(3) {
|
|
10206
10210
|
text-align: center;
|
|
10207
10211
|
}
|
|
@@ -10210,7 +10214,7 @@ const FixTableHeaderAlignment = styled.div(_t23 || (_t23 = _$3`
|
|
|
10210
10214
|
text-align: center;
|
|
10211
10215
|
}
|
|
10212
10216
|
`));
|
|
10213
|
-
const ListWithDetailsReviewCellDiv = styled.div(
|
|
10217
|
+
const ListWithDetailsReviewCellDiv = styled.div(_t25 || (_t25 = _$3`
|
|
10214
10218
|
display: 'flex';
|
|
10215
10219
|
flex-direction: 'column';
|
|
10216
10220
|
text-align: 'start';
|
|
@@ -11717,23 +11721,67 @@ class ListWithDetailControl extends React.Component {
|
|
|
11717
11721
|
const controlElement = uischema;
|
|
11718
11722
|
// eslint-disable-next-line
|
|
11719
11723
|
const listTitle = (_e = (_d = (_c = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.label) !== null && _a !== void 0 ? _a : (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : getItemsTitle(schema)) !== null && _d !== void 0 ? _d : schema === null || schema === void 0 ? void 0 : schema.title) !== null && _e !== void 0 ? _e : label;
|
|
11720
|
-
return
|
|
11724
|
+
return jsx(Visible, {
|
|
11721
11725
|
visible: visible,
|
|
11722
11726
|
"data-testid": "jsonforms-object-list-wrapper",
|
|
11723
|
-
children:
|
|
11724
|
-
children: [
|
|
11725
|
-
children:
|
|
11726
|
-
children:
|
|
11727
|
-
children:
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11727
|
+
children: jsxs(DetailMargin, {
|
|
11728
|
+
children: [jsxs(ToolBarHeader, {
|
|
11729
|
+
children: [listTitle && this.state.currentListPage === 0 && jsx(MarginTop, {
|
|
11730
|
+
children: jsxs(ObjectArrayTitle, {
|
|
11731
|
+
children: [listTitle, " ", jsx("span", {
|
|
11732
|
+
children: additionalProps.required && '(required)'
|
|
11733
|
+
}), this.state.maxItemsError && jsx("span", {
|
|
11734
|
+
style: {
|
|
11735
|
+
color: 'red',
|
|
11736
|
+
marginLeft: '1rem'
|
|
11737
|
+
},
|
|
11738
|
+
children: this.state.maxItemsError
|
|
11739
|
+
})]
|
|
11740
|
+
})
|
|
11741
|
+
}), this.state.currentListPage === 0 && data === 0 && jsx(ObjectArrayToolBar, {
|
|
11742
|
+
data: data,
|
|
11743
|
+
errors: errors,
|
|
11744
|
+
label: label,
|
|
11745
|
+
addItem: (path, value) => () => {
|
|
11746
|
+
this.addItem(path, value);
|
|
11747
|
+
},
|
|
11748
|
+
numColumns: 0,
|
|
11749
|
+
path: path,
|
|
11750
|
+
uischema: controlElement,
|
|
11751
|
+
schema: schema,
|
|
11752
|
+
rootSchema: rootSchema,
|
|
11753
|
+
enabled: enabled,
|
|
11754
|
+
setCurrentListPage: listPage => {
|
|
11755
|
+
this.setState({
|
|
11756
|
+
currentListPage: listPage
|
|
11757
|
+
});
|
|
11758
|
+
},
|
|
11759
|
+
currentListPage: this.state.currentListPage,
|
|
11760
|
+
buttonType: "secondary"
|
|
11761
|
+
})]
|
|
11762
|
+
}), jsx("div", {
|
|
11763
|
+
children: jsx(ObjectArrayList, Object.assign({
|
|
11764
|
+
path: path,
|
|
11765
|
+
schema: schema,
|
|
11766
|
+
uischema: uischema,
|
|
11767
|
+
enabled: enabled,
|
|
11768
|
+
openDeleteDialog: openDeleteDialog,
|
|
11769
|
+
translations: {},
|
|
11770
|
+
data: data,
|
|
11771
|
+
cells: cells,
|
|
11772
|
+
config: config,
|
|
11773
|
+
currentIndex: this.props.currentTab,
|
|
11774
|
+
setCurrentIndex: this.props.setCurrentTab,
|
|
11775
|
+
setCurrentListPage: listPage => {
|
|
11776
|
+
this.setState({
|
|
11777
|
+
currentListPage: listPage
|
|
11778
|
+
});
|
|
11779
|
+
},
|
|
11780
|
+
errors: errors,
|
|
11781
|
+
currentListPage: this.state.currentListPage,
|
|
11782
|
+
listTitle: listTitle
|
|
11783
|
+
}, additionalProps))
|
|
11784
|
+
}), this.state.currentListPage === 0 && data > 0 && jsx(ObjectArrayToolBar, {
|
|
11737
11785
|
data: data,
|
|
11738
11786
|
errors: errors,
|
|
11739
11787
|
label: label,
|
|
@@ -11752,51 +11800,9 @@ class ListWithDetailControl extends React.Component {
|
|
|
11752
11800
|
});
|
|
11753
11801
|
},
|
|
11754
11802
|
currentListPage: this.state.currentListPage,
|
|
11755
|
-
buttonType: "
|
|
11803
|
+
buttonType: "tertiary"
|
|
11756
11804
|
})]
|
|
11757
|
-
})
|
|
11758
|
-
children: jsx(ObjectArrayList, Object.assign({
|
|
11759
|
-
path: path,
|
|
11760
|
-
schema: schema,
|
|
11761
|
-
uischema: uischema,
|
|
11762
|
-
enabled: enabled,
|
|
11763
|
-
openDeleteDialog: openDeleteDialog,
|
|
11764
|
-
translations: {},
|
|
11765
|
-
data: data,
|
|
11766
|
-
cells: cells,
|
|
11767
|
-
config: config,
|
|
11768
|
-
currentIndex: this.props.currentTab,
|
|
11769
|
-
setCurrentIndex: this.props.setCurrentTab,
|
|
11770
|
-
setCurrentListPage: listPage => {
|
|
11771
|
-
this.setState({
|
|
11772
|
-
currentListPage: listPage
|
|
11773
|
-
});
|
|
11774
|
-
},
|
|
11775
|
-
errors: errors,
|
|
11776
|
-
currentListPage: this.state.currentListPage,
|
|
11777
|
-
listTitle: listTitle
|
|
11778
|
-
}, additionalProps))
|
|
11779
|
-
}), this.state.currentListPage === 0 && data > 0 && jsx(ObjectArrayToolBar, {
|
|
11780
|
-
data: data,
|
|
11781
|
-
errors: errors,
|
|
11782
|
-
label: label,
|
|
11783
|
-
addItem: (path, value) => () => {
|
|
11784
|
-
this.addItem(path, value);
|
|
11785
|
-
},
|
|
11786
|
-
numColumns: 0,
|
|
11787
|
-
path: path,
|
|
11788
|
-
uischema: controlElement,
|
|
11789
|
-
schema: schema,
|
|
11790
|
-
rootSchema: rootSchema,
|
|
11791
|
-
enabled: enabled,
|
|
11792
|
-
setCurrentListPage: listPage => {
|
|
11793
|
-
this.setState({
|
|
11794
|
-
currentListPage: listPage
|
|
11795
|
-
});
|
|
11796
|
-
},
|
|
11797
|
-
currentListPage: this.state.currentListPage,
|
|
11798
|
-
buttonType: "tertiary"
|
|
11799
|
-
})]
|
|
11805
|
+
})
|
|
11800
11806
|
});
|
|
11801
11807
|
}
|
|
11802
11808
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.42.
|
|
3
|
+
"version": "2.42.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",
|
|
@@ -13,6 +13,7 @@ export declare const FlexForm: import("styled-components/dist/types").IStyledCom
|
|
|
13
13
|
export declare const TabName: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
14
|
export declare const Trash: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
15
|
export declare const ListContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
export declare const DetailMargin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
17
|
export declare const IconPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
18
|
export declare const UpdateListContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
18
19
|
export declare const CompleteContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|