Skip to content

Hotfixes to main #766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
80d78f9
separate defaultValue and value for old input/select comps
raheeliftikhar5 Mar 5, 2024
f324f75
map ready state fix
raheeliftikhar5 Mar 5, 2024
abe4b20
update lowcoder-comps version
raheeliftikhar5 Mar 5, 2024
20f5bc8
New plugin system
ludomikula Feb 5, 2024
e78671f
Merge pull request #742 from raheeliftikhar5/handle_defaultValue
FalkWolsky Mar 5, 2024
b58a742
new: plugin endpoint security basics
ludomikula Mar 5, 2024
800c16c
Merge branch 'lowcoder-org:dev' into dev
ludomikula Mar 6, 2024
eb0e0d5
feature: Extended folder to have more meta-data i.e: title, descripti…
irfan-ikhwa Mar 6, 2024
348c98e
Merge branch 'lowcoder-org:dev' into dev
ludomikula Mar 8, 2024
f6b6bd8
fix crashing on reordering comps inside module
raheeliftikhar5 Mar 14, 2024
3809d9a
fix broken modal issue
raheeliftikhar5 Mar 14, 2024
9810150
fix bulk action updates doesn't change all comps height
raheeliftikhar5 Mar 14, 2024
4335b1e
fix iconSelector issue in js
raheeliftikhar5 Mar 14, 2024
da62927
Bugfixing in the Cerrypicked Branch 1
Mar 12, 2024
3bf3ebf
Optimize the runOpenApi plugin
snowe2010 Mar 8, 2024
784951d
Optimize the runOpenApi plugin
snowe2010 Mar 8, 2024
cbcaec6
Pull definition logic into a new function
snowe2010 Mar 8, 2024
b92024d
Small amount of code cleanup
snowe2010 Mar 8, 2024
b36a2d0
fix: complete the locale file
Mar 11, 2024
0e6b546
map ready state fix
raheeliftikhar5 Mar 5, 2024
9d28529
Google Fonts & Clearbit only on public Cloud
Mar 19, 2024
c063add
Updating the SDK, update Simplebar and Fix simplebar-placeholder problem
Mar 17, 2024
94e7c82
Updating the SDK, update Simplebar and Fix simplebar-placeholder problem
Mar 17, 2024
144ca9f
Fixing Scrollbars for Modules Editor View
Mar 18, 2024
5cadfc3
Update Scrollbars
Mar 24, 2024
7758d4a
Update Scrollbars
Mar 24, 2024
3476223
Merge pull request #767 from Lowcoder-Pro/dev
FalkWolsky Mar 24, 2024
eeef89a
Fixing AssetService - after Falk broke it.
Mar 24, 2024
d602bd4
Enabling display of Version Number for Remote Components
Mar 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bugfixing in the Cerrypicked Branch 1
  • Loading branch information
liusijun authored and FalkWolsky committed Mar 24, 2024
commit da629274d3f194dbc8a3521ad6ae2a254a58e178
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export { ReactComponent as WidthIcon } from "./icon-width.svg";
export { ReactComponent as ResponsiveLayoutCompIcon } from "./icon-responsive-layout-comp.svg";
export { ReactComponent as TextSizeIcon } from "./remix/font-size-2.svg";
export { ReactComponent as FontFamilyIcon } from "./remix/font-sans-serif.svg";
export { ReactComponent as TextWeigthIcon } from "./remix/bold.svg";
export { ReactComponent as TextWeightIcon } from "./remix/bold.svg";
export { ReactComponent as BorderWidthIcon } from "./remix/expand-width-line.svg";
export { ReactComponent as LeftInfoLine } from "./remix/information-line.svg";
export { ReactComponent as LeftInfoFill } from "./remix/information-fill.svg";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getStyle = (style: SliderStyleType) => {
}
.ant-slider-handle {
background-color: ${style.thumb};
border-color: ${style.thumbBoder};
border-color: ${style.thumbBorder};
}
}
&:hover {
Expand All @@ -39,7 +39,7 @@ const getStyle = (style: SliderStyleType) => {
}
}
.ant-slider-handle:focus {
box-shadow: 0 0 0 5px ${fadeColor(darkenColor(style.thumbBoder, 0.08), 0.12)};
box-shadow: 0 0 0 5px ${fadeColor(darkenColor(style.thumbBorder, 0.08), 0.12)};
}
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
withFunction,
wrapChildAction,
} from "lowcoder-core";
import { AlignClose, AlignLeft, AlignRight, IconRadius, BorderWidthIcon, TextSizeIcon, FontFamilyIcon, TextWeigthIcon, ImageCompIcon, controlItem, Dropdown, OptionType } from "lowcoder-design";
import { AlignClose, AlignLeft, AlignRight, IconRadius, BorderWidthIcon, TextSizeIcon, FontFamilyIcon, TextWeightIcon, ImageCompIcon, controlItem, Dropdown, OptionType } from "lowcoder-design";
import { ColumnTypeComp, ColumnTypeCompMap } from "./columnTypeComp";
import { ColorControl } from "comps/controls/colorControl";
import { JSONValue } from "util/jsonTypes";
Expand Down Expand Up @@ -120,7 +120,7 @@ const StyledBorderRadiusIcon = styled(IconRadius)` width: 24px; margin: 0 8px 0
const StyledBorderIcon = styled(BorderWidthIcon)` width: 24px; margin: 0 8px 0 -3px; padding: 3px;`;
const StyledTextSizeIcon = styled(TextSizeIcon)` width: 24px; margin: 0 8px 0 -3px; padding: 3px;`;
const StyledFontFamilyIcon = styled(FontFamilyIcon)` width: 24px; margin: 0 8px 0 -3px; padding: 3px;`;
const StyledTextWeightIcon = styled(TextWeigthIcon)` width: 24px; margin: 0 8px 0 -3px; padding: 3px;`;
const StyledTextWeightIcon = styled(TextWeightIcon)` width: 24px; margin: 0 8px 0 -3px; padding: 3px;`;
const StyledBackgroundImageIcon = styled(ImageCompIcon)` width: 24px; margin: 0 0px 0 -12px;`;

/**
Expand Down Expand Up @@ -303,7 +303,7 @@ export class ColumnComp extends ColumnInitComp {
})}
{this.children.textWeight.propertyView({
label: trans('style.textWeight'),
preInputNode: <StyledTextWeightIcon as={TextWeigthIcon} title="" />,
preInputNode: <StyledTextWeightIcon as={TextWeightIcon} title="" />,
placeholder: 'normal',
})}
{this.children.fontFamily.propertyView({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {
import { timelineDate, timelineNode, TimelineDataTooltip } from "./timelineConstants";
import { convertTimeLineData } from "./timelineUtils";
import { default as Timeline } from "antd/es/timeline";
import { EditorContext } from "comps/editorState";
import { EditorContext } from "comps/editorState";

const EventOptions = [
clickEvent,
Expand Down Expand Up @@ -108,7 +108,7 @@ const TimelineComp = (
color: value?.color,
dot: icons[index] || "",
label: (
<span style={{ color: value?.lableColor || style?.lableColor }}>
<span style={{ color: value?.labelColor || style?.labelColor }}>
{value?.label}
</span>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type timelineNode = {
dot?: string;
subTitleColor?: string;
titleColor?: string;
lableColor?: string;
labelColor?: string;
};

export const TimelineDataTooltip = (
Expand All @@ -28,7 +28,7 @@ export const TimelineDataTooltip = (
<br />
7. subTitleColor - {trans("timeLine.helpSubTitleColor")}
<br />
8. lableColor - {trans("timeLine.helpLableColor")}
8. labelColor - {trans("timeLine.helpLabelColor")}
</li>
);

Expand All @@ -51,7 +51,7 @@ export const timelineDate=[
color: 'red',
titleColor: "red",
subTitleColor: "red",
lableColor: "red",
labelColor: "red",
},
{
title: "Lowcoder 2.0",
Expand All @@ -60,4 +60,4 @@ export const timelineDate=[
color: "green",
label: "2023-6-20",
},
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function checkDataNodes(value: any, key?: string): timelineNode[] | undefined {
check(node["color"], ["string", "undefined"], "color");
check(node["titleColor"], ["string", "undefined"], "titleColor");
check(node["subTitleColor"], ["string", "undefined"], "subTitleColor");
check(node["lableColor"], ["string", "undefined"], "lableColor");
check(node["labelColor"], ["string", "undefined"], "labelColor");
check(node["dot"], ["string", "undefined"], "dot");
return node;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import { gridItemCompToGridItems, InnerGrid } from "../containerComp/containerVi
import { TriContainerViewProps } from "../triContainerComp/triContainerCompBuilder";

const getStyle = (style: ContainerStyleType) => {
return css`
return css`
border-color: ${style.border};
border-width: ${style.borderWidth};
border-radius: ${style.radius};
overflow: hidden;
padding: ${style.padding};
padding: ${style.padding};
${style.background && `background-color: ${style.background};`}
${style.backgroundImage && `background-image: ${style.backgroundImage};`}
${style.backgroundImageRepeat && `background-repeat: ${style.backgroundImageRepeat};`}
Expand All @@ -33,7 +33,7 @@ const Wrapper = styled.div<{ $style: ContainerStyleType }>`
${(props) => props.$style && getStyle(props.$style)}
`;

const HeaderInnerGrid = styled(InnerGrid)<{
const HeaderInnerGrid = styled(InnerGrid)<{
$backgroundColor: string
$headerBackgroundImage: string;
$headerBackgroundImageRepeat: string;
Expand Down Expand Up @@ -140,7 +140,7 @@ export function TriContainer(props: TriContainerProps) {
$headerBackgroundImageSize={headerStyle?.headerBackgroundImageSize}
$headerBackgroundImagePosition={headerStyle?.headerBackgroundImagePosition}
$headerBackgroundImageOrigin={headerStyle?.headerBackgroundImageOrigin}
style={{padding: headerStyle.containerheaderpadding}}
style={{padding: headerStyle.containerHeaderPadding}}

/>
</BackgroundColorContext.Provider>
Expand Down Expand Up @@ -168,7 +168,7 @@ export function TriContainer(props: TriContainerProps) {
$backgroundImageSize={bodyStyle?.backgroundImageSize}
$backgroundImagePosition={bodyStyle?.backgroundImagePosition}
$backgroundImageOrigin={bodyStyle?.backgroundImageOrigin}
style={{padding: bodyStyle.containerbodypadding}}
style={{padding: bodyStyle.containerBodyPadding}}
/>
</ScrollBar>
) : (
Expand All @@ -191,7 +191,7 @@ export function TriContainer(props: TriContainerProps) {
$backgroundImageSize={bodyStyle?.backgroundImageSize}
$backgroundImagePosition={bodyStyle?.backgroundImagePosition}
$backgroundImageOrigin={bodyStyle?.backgroundImageOrigin}
style={{padding: bodyStyle.containerbodypadding}}/>
style={{padding: bodyStyle.containerBodyPadding}}/>
)}
</BackgroundColorContext.Provider>
)}
Expand All @@ -214,7 +214,7 @@ export function TriContainer(props: TriContainerProps) {
$footerBackgroundImageOrigin={footerStyle?.footerBackgroundImageOrigin}
$borderColor={style?.border}
$borderWidth={style?.borderWidth}
style={{padding: footerStyle.containerfooterpadding}}
style={{padding: footerStyle.containerFooterPadding}}
/>
</BackgroundColorContext.Provider>
)}
Expand Down
29 changes: 18 additions & 11 deletions client/packages/lowcoder/src/comps/controls/styleControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
CompressIcon,
TextSizeIcon,
FontFamilyIcon,
TextWeigthIcon,
TextWeightIcon,
ShowBorderIcon,
BorderWidthIcon,
ImageCompIcon,
Expand Down Expand Up @@ -527,7 +527,7 @@ const MarginIcon = styled(ExpandIcon)` margin: 0 8px 0 2px;`;
const PaddingIcon = styled(CompressIcon)` margin: 0 8px 0 2px;`;
const StyledTextSizeIcon = styled(TextSizeIcon)` margin: 0 8px 0 -3px; padding: 3px;`;
const StyledFontFamilyIcon = styled(FontFamilyIcon)` margin: 0 8px 0 -3px; padding: 3px;`;
const StyledTextWeightIcon = styled(TextWeigthIcon)` margin: 0 8px 0 -3px; padding: 3px;`;
const StyledTextWeightIcon = styled(TextWeightIcon)` margin: 0 8px 0 -3px; padding: 3px;`;
const StyledBackgroundImageIcon = styled(ImageCompIcon)` margin: 0 0px 0 -12px;`;

const ResetIcon = styled(IconReset)`
Expand Down Expand Up @@ -568,9 +568,9 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
name === "footerBackgroundImageOrigin" ||
name === "margin" ||
name === "padding" ||
name === "containerheaderpadding" ||
name === "containerfooterpadding" ||
name === "containerbodypadding"
name === "containerHeaderPadding" ||
name === "containerFooterPadding" ||
name === "containerBodyPadding"
) {
childrenMap[name] = StringControl;
} else {
Expand Down Expand Up @@ -614,9 +614,9 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
name === "radius" ||
name === "margin" ||
name === "padding" ||
name === "containerheaderpadding" ||
name === "containerfooterpadding" ||
name === "containerbodypadding" ||
name === "containerHeaderPadding" ||
name === "containerFooterPadding" ||
name === "containerBodyPadding" ||
name === "borderWidth" ||
name === "backgroundImage" ||
name === "backgroundImageRepeat" ||
Expand Down Expand Up @@ -708,7 +708,11 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
preInputNode: <PaddingIcon title="Padding" />,
placeholder: props[name],
})
: name === "textSize"
: name === "textSize" ||
name === "padding" ||
name === "containerHeaderPadding" ||
name === "containerFooterPadding" ||
name === "containerBodyPadding"
? (
children[name] as InstanceType<typeof StringControl>
).propertyView({
Expand Down Expand Up @@ -786,7 +790,10 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
// isDep: isDepColorConfig(config),
isDep: true,
depMsg: depMsg,
})}
})

}

</div>
);
})}
Expand All @@ -806,4 +813,4 @@ export function useStyle<T extends readonly SingleColorConfig[]>(colorConfigs: T
props[config.name as Names<T>] = "";
});
return calcColors(props, colorConfigs, theme?.theme, bgColor);
}
}
Loading