Skip to content

Commit

Permalink
lowcoder-comps backward compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raheeliftikhar5 committed Sep 16, 2024
1 parent 7153da0 commit b2634fc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/packages/lowcoder-comps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lowcoder-comps",
"version": "2.4.14",
"version": "2.4.15",
"type": "module",
"license": "MIT",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ if (DragEventHandlerControl) {
onDropEvent: DragEventHandlerControl,
}
}
if (EventModalStyle) {
childrenMap = {
...childrenMap,
modalStyle: styleControl(EventModalStyle),
}
}

let CalendarBasicComp = (function () {
return new UICompBuilder(childrenMap, (props: {
events: any;
Expand Down Expand Up @@ -795,9 +802,11 @@ let CalendarBasicComp = (function () {
{children.style.getPropertyView()}
</Section>
<Section name={sectionNames.animationStyle} hasTooltip={true}>{children.animationStyle.getPropertyView()}</Section>
<Section name={sectionNames.modalStyle}>
{children.modalStyle.getPropertyView()}
</Section>
{Boolean(children.modalStyle) && (
<Section name={sectionNames.modalStyle}>
{children.modalStyle.getPropertyView()}
</Section>
)}
</>
);
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ export const Event = styled.div<{


export const FormWrapper = styled(Form)<{
$modalStyle: EventModalStyleType
$modalStyle?: EventModalStyleType
}>`
.ant-form-item-label {
width: 125px;
Expand All @@ -789,11 +789,11 @@ export const FormWrapper = styled(Form)<{
// Setting style for input fields
.ant-input {
background-color: ${(props) => props.$modalStyle.labelBackground };
border-color: ${(props) => props.$modalStyle.border};
border-width: ${(props) => props.$modalStyle.borderWidth};
border-style: ${(props) => props.$modalStyle.borderStyle};
color: ${(props) => props.$modalStyle.text};
background-color: ${(props) => props.$modalStyle?.labelBackground };
border-color: ${(props) => props.$modalStyle?.border};
border-width: ${(props) => props.$modalStyle?.borderWidth};
border-style: ${(props) => props.$modalStyle?.borderStyle};
color: ${(props) => props.$modalStyle?.text};
}
`;
Expand Down

0 comments on commit b2634fc

Please sign in to comment.