Skip to content

Commit daa876c

Browse files
author
GoldenAnt
authored
Merge branch 'dev' into fix/expire
2 parents f3ba652 + dfaf965 commit daa876c

File tree

429 files changed

+17523
-5915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

429 files changed

+17523
-5915
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ application-lowcoder.yml
1414
application-debug.yaml
1515
application-dev-localhost.yaml
1616
.vscode/settings.json
17-
.vscode/launch.json
17+
.vscode/launch.json
18+
server/api-service/lowcoder-server/src/main/resources/application-local-dev.yaml

client/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.4
1+
2.4.5

client/packages/lowcoder-comps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-comps",
3-
"version": "2.4.10",
3+
"version": "2.4.13",
44
"type": "module",
55
"license": "MIT",
66
"dependencies": {

client/packages/lowcoder-comps/src/comps/calendarComp/calendarComp.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ let childrenMap: any = {
7979
resourcesEvents: jsonValueExposingStateControl("resourcesEvents", resourcesEventsDefaultData),
8080
resources: jsonValueExposingStateControl("resources", resourcesDefaultData),
8181
resourceName: withDefault(StringControl, trans("calendar.resourcesDefault")),
82-
onEvent: CalendarEventHandlerControl,
82+
onEvent: CalendarEventHandlerControl ? CalendarEventHandlerControl : ChangeEventHandlerControl,
8383
// onDropEvent: safeDragEventHandlerControl,
8484
editable: withDefault(BoolControl, true),
8585
showEventTime: withDefault(BoolControl, true),
@@ -124,10 +124,10 @@ let CalendarBasicComp = (function () {
124124
currentPremiumView?: string;
125125
}, dispatch: any) => {
126126

127-
const comp = useContext(EditorContext).getUICompByName(
128-
useContext(CompNameContext)
127+
const comp = useContext(EditorContext).getUICompByName(
128+
useContext(CompNameContext)
129129
);
130-
const onEventVal = comp?.toJsonValue().comp.onEvent;
130+
const onEventVal = comp?.toJsonValue()?.comp?.onEvent;
131131

132132

133133
const theme = useContext(ThemeContext);

client/packages/lowcoder-design/src/components/Collapase.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { default as AntdCollapse, CollapseProps } from "antd/es/collapse";
2-
import { ReactComponent as UnFold } from "icons/icon-unfold.svg";
3-
import { ReactComponent as Folded } from "icons/icon-folded.svg";
4-
import { ReactComponent as Omit } from "icons/icon-omit.svg";
2+
import { ReactComponent as UnFold } from "icons/v1/icon-unfold.svg";
3+
import { ReactComponent as Folded } from "icons/v1/icon-folded.svg";
4+
import { ReactComponent as Omit } from "icons/v1/icon-omit.svg";
55
import styled, { css } from "styled-components";
66
import React, { ReactNode } from "react";
77

client/packages/lowcoder-design/src/components/CustomModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ButtonProps } from "antd/es/button";
22
import { default as AntdModal, ModalFuncProps, ModalProps as AntdModalProps } from "antd/es/modal";
3-
import { ReactComponent as PackUpIcon } from "icons/icon-Pack-up.svg";
3+
import { ReactComponent as PackUpIcon } from "icons/v1/icon-Pack-up.svg";
44
import React, { ReactNode, useState } from "react";
55
import styled from "styled-components";
66
import { TacoButtonType, TacoButton } from "components/button";

client/packages/lowcoder-design/src/components/Dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export function Dropdown<T extends OptionsType>(props: DropdownProps<T>) {
235235
<SegmentedWrapper $placement={placement}>
236236
<Segmented
237237
block={true}
238-
onChange={(value) => props.onChange(value.toString())}
238+
onChange={(value) => props.onChange(String(value))}
239239
defaultValue={props.defaultValue}
240240
value={props.value}
241241
options={props.options as any}

client/packages/lowcoder-design/src/components/Menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { default as AntdMenu, MenuProps, SubMenuProps } from "antd/es/menu";
22
import { NormalMenuIconColor, TabActiveColor } from "constants/style";
3-
import { ReactComponent as AddIcon } from "icons/icon-add.svg";
4-
import { ReactComponent as RecycleBinIcon } from "icons/icon-recycle-bin.svg";
3+
import { ReactComponent as AddIcon } from "icons/v1/icon-add.svg";
4+
import { ReactComponent as RecycleBinIcon } from "icons/v1/icon-recycle-bin.svg";
55
import styled from "styled-components";
66

77
const MenuItemWrapper = styled.div`

client/packages/lowcoder-design/src/components/ScrollBar.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ interface IProps {
5656
};
5757
$hideplaceholder?: boolean;
5858
hideScrollbar?: boolean;
59+
prefixNode?: React.ReactNode;
60+
suffixNode?: React.ReactNode;
5961
}
6062

6163
export const ScrollBar = ({
@@ -65,6 +67,8 @@ export const ScrollBar = ({
6567
scrollableNodeProps,
6668
hideScrollbar = false,
6769
$hideplaceholder = false,
70+
prefixNode,
71+
suffixNode,
6872
...otherProps
6973
}: IProps) => {
7074
const height = style?.height ?? '100%';
@@ -73,12 +77,24 @@ export const ScrollBar = ({
7377

7478
return hideScrollbar ? (
7579
<ScrollBarWrapper className={className}>
80+
{prefixNode}
7681
{children}
82+
{suffixNode}
7783
</ScrollBarWrapper>
7884
) : (
7985
<ScrollBarWrapper className={className}>
8086
<SimpleBar style={combinedStyle} scrollableNodeProps={scrollableNodeProps} {...otherProps}>
81-
{children}
87+
{({ scrollableNodeProps, contentNodeProps }) => {
88+
return (
89+
<div {...scrollableNodeProps as any}>
90+
{prefixNode}
91+
<div {...contentNodeProps as any}>
92+
{children}
93+
</div>
94+
{suffixNode}
95+
</div>
96+
);
97+
}}
8298
</SimpleBar>
8399
</ScrollBarWrapper>
84100
);

client/packages/lowcoder-design/src/components/Search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled from "styled-components";
22
import { default as Input, InputProps } from "antd/es/input";
3-
import { ReactComponent as Icon } from "icons/icon-Search.svg";
3+
import { ReactComponent as Icon } from "icons/v1/icon-Search.svg";
44
import React, { CSSProperties } from "react";
55

66
const SearchInput = styled(Input)`

client/packages/lowcoder-design/src/components/Section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { trans } from "i18n/design";
22
import React, { ReactNode, useContext } from "react";
33
import styled from "styled-components";
4-
import { ReactComponent as Packup } from "icons/icon-Pack-up.svg";
4+
import { ReactComponent as Packup } from "icons/v1/icon-Pack-up.svg";
55
import { labelCss } from "./Label";
66
import { controlItem, ControlNode } from "./control";
77
import { Tooltip } from "./toolTip";

client/packages/lowcoder-design/src/components/SuspensionBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from "styled-components";
2-
import { ReactComponent as close } from "icons/icon-flokclose.svg";
2+
import { ReactComponent as close } from "icons/v1/icon-flokclose.svg";
33
import { ScrollBar } from "../components/ScrollBar";
44

55
const Container = styled.div<{ $width: number }>`

client/packages/lowcoder-design/src/components/Switch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as React from "react";
22
import { ReactNode } from "react";
33
import styled, { css } from "styled-components";
4-
import { ReactComponent as jsIcon } from "icons/icon-Js-colors.svg";
5-
import { ReactComponent as jsIconGray } from "icons/icon-Js-Gray.svg";
4+
import { ReactComponent as jsIcon } from "icons/v1/icon-Js-colors.svg";
5+
import { ReactComponent as jsIconGray } from "icons/v1/icon-Js-Gray.svg";
66
import { ToolTipLabel } from "components/toolTip";
77

88
type ControlPlacement = "bottom" | "right" | "modal";

client/packages/lowcoder-design/src/components/Trees.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled, { css } from "styled-components";
2-
import { ReactComponent as Folded } from "icons/icon-folded.svg";
2+
import { ReactComponent as Folded } from "icons/v1/icon-folded.svg";
33
import { DataNode, TreeProps } from "antd/es/tree";
44
import DirectoryTree from "antd/es/tree/DirectoryTree";
55

client/packages/lowcoder-design/src/components/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const TacoButton = forwardRef(
181181
props: Omit<ButtonProps, "type"> & {
182182
buttonType?: TacoButtonType;
183183
},
184-
ref: React.Ref<HTMLElement>
184+
ref: React.Ref<HTMLButtonElement>
185185
) => {
186186
const { buttonType, ...restProps } = props;
187187
let loadingBackground;

client/packages/lowcoder-design/src/components/container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { trans } from "i18n/design";
22
import { ReactNode } from "react";
33
import styled from "styled-components";
4-
import { ReactComponent as ContainerDrag } from "icons/icon-container-drag.svg";
4+
import { ReactComponent as ContainerDrag } from "icons/v1/icon-container-drag.svg";
55

66
type ContainerPlaceholderProps = {
77
children?: ReactNode;

client/packages/lowcoder-design/src/components/copyTextButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import copy from "copy-to-clipboard";
22
import styled from "styled-components";
3-
import { ReactComponent as Dcopy } from "icons/icon-copy.svg";
3+
import { ReactComponent as Dcopy } from "icons/v1/icon-copy.svg";
44
import { trans } from "i18n/design";
55
import { CSSProperties } from "react";
66
import { messageInstance } from "./GlobalInstances";

client/packages/lowcoder-design/src/components/customSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { default as AntdSelect, SelectProps as AntdSelectProps } from "antd/es/select";
2-
import { ReactComponent as PackUpIcon } from "icons/icon-Pack-up.svg";
2+
import { ReactComponent as PackUpIcon } from "icons/v1/icon-Pack-up.svg";
33
import styled from "styled-components";
44
import React from "react";
55

client/packages/lowcoder-design/src/components/edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from "styled-components";
2-
import { ReactComponent as Edit } from "icons/icon-text-edit.svg";
2+
import { ReactComponent as Edit } from "icons/v1/icon-text-edit.svg";
33
import { CSSProperties, ReactNode, useEffect, useRef, useState } from "react";
44
import { Input } from "../components/Input";
55
import { InputProps, InputRef } from "antd/es/input";

client/packages/lowcoder-design/src/components/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { CustomSelect } from "./customSelect";
1111
import { EllipsisTextCss, labelCss } from "./Label";
1212
import { ToolTipLabel } from "./toolTip";
1313
import styled from "styled-components";
14-
import { ReactComponent as Star } from "icons/icon-star.svg";
14+
import { ReactComponent as Star } from "icons/v1/icon-star.svg";
1515
import _ from "lodash";
1616
import { KeyValueList } from "./keyValueList";
1717
import { OptionsType, ValueFromOption } from "./Dropdown";

client/packages/lowcoder-design/src/components/keyValueList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from "styled-components";
2-
import { ReactComponent as Bin } from "icons/icon-recycle-bin.svg";
2+
import { ReactComponent as Bin } from "icons/v1/icon-recycle-bin.svg";
33
import { TacoButton } from "./button";
44
import { ReactNode } from "react";
55
import { BluePlusIcon } from "icons";

client/packages/lowcoder-design/src/components/option.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import React, { useState } from "react";
88
import { CSS } from "@dnd-kit/utilities";
99
import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
1010
import { ConstructorToComp, MultiCompConstructor } from "lowcoder-core";
11-
import { ReactComponent as WarnIcon } from "icons/icon-warning-white.svg";
11+
import { ReactComponent as WarnIcon } from "icons/v1/icon-warning-white.svg";
1212
import { DndContext } from "@dnd-kit/core";
1313
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
1414
import { ActiveTextColor, GreyTextColor } from "constants/style";

client/packages/lowcoder-design/src/components/tacoInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { default as AntdInput, InputRef } from "antd/es/input";
2-
import { ReactComponent as MustFillStar } from "icons/icon-must-fill-star.svg";
2+
import { ReactComponent as MustFillStar } from "icons/v1/icon-must-fill-star.svg";
33
import { trans } from "i18n/design";
44
import { CSSProperties, Ref, useEffect, useRef, useState } from "react";
55
import styled, { css } from "styled-components";

client/packages/lowcoder-design/src/components/tacoPagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { default as Pagination, PaginationProps } from "antd/es/pagination";
22
import styled, { css } from "styled-components";
3-
import { ReactComponent as PackUpIcon } from "icons/icon-Pack-up.svg";
3+
import { ReactComponent as PackUpIcon } from "icons/v1/icon-Pack-up.svg";
44

55
const packUpIconCss = css`
66
height: 24px;

client/packages/lowcoder-design/src/components/toolTip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { default as AntdTooltip, TooltipProps } from "antd/es/tooltip";
33
import { CSSProperties, ReactNode } from "react";
44
import styled, { css } from "styled-components";
55
import { labelCss } from "components/Label";
6-
import { ReactComponent as CloseIcon } from "icons/icon-close.svg";
6+
import { ReactComponent as CloseIcon } from "icons/v1/icon-close.svg";
77
import { TooltipRenderProps } from "react-joyride";
88
import { trans } from "i18n/design";
99

0 commit comments

Comments
 (0)