Skip to content

Dev > Main - for version 2.4.4 #1068

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 48 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
29d4f2b
update sdk version
raheeliftikhar5 Jul 12, 2024
6d59b28
wrap legacy oauth provider with genericoauth
goldants Jul 12, 2024
7919ba6
lowcoder-comps backward compatibility
raheeliftikhar5 Jul 15, 2024
1e63563
fix github issue and null email issue
goldants Jul 15, 2024
0e2b3cc
fix dropdown options events wrongly trigger on hiding option
raheeliftikhar5 Jul 16, 2024
6c8722a
added oauth and cookie fields for data sources
raheeliftikhar5 Jul 17, 2024
982f98b
added dropdown in app settings to change lowcoder-comps version
raheeliftikhar5 Jul 16, 2024
868faf5
add version change dropdown for comp plugins
raheeliftikhar5 Jul 17, 2024
e83c6b9
small fix
raheeliftikhar5 Jul 18, 2024
d67b991
styling fixes
raheeliftikhar5 Jul 18, 2024
f905f49
Merge branch 'dev' into lowcoder-comps-version-switch
FalkWolsky Jul 18, 2024
81665b4
Merge pull request #1047 from lowcoder-org/lowcoder-comps-version-switch
FalkWolsky Jul 18, 2024
d2e42f8
Merge branch 'dev' into datasources_oauth_cookie_fields
FalkWolsky Jul 18, 2024
81e6b49
Merge pull request #1048 from lowcoder-org/datasources_oauth_cookie_f…
FalkWolsky Jul 18, 2024
29da70e
added headers option in datasource
raheeliftikhar5 Jul 18, 2024
ca698ab
for login/register, send orgId in query params
raheeliftikhar5 Jul 18, 2024
b5bd087
fix table with avatar type column crash on hover
raheeliftikhar5 Jul 19, 2024
2cc74ee
Set Password when linking with email auth
goldants Jul 17, 2024
e417743
Test case for workspace email signup
goldants Jul 17, 2024
8787b46
add gid to LibraryQuery
Jun 26, 2024
28db85e
remove unused imports
Jun 26, 2024
d9d5c62
add gid to Datasource and initialize with uuid
Jun 26, 2024
1360ebe
gid test
goldants Jun 27, 2024
528022e
add gid field to get api response.
goldants Jul 19, 2024
cef4df9
use gid for apis
goldants Jul 19, 2024
ce35ed4
horizontal and vertical border fixed
MenamAfzal Jul 22, 2024
74a87f7
scroll added
MenamAfzal Jul 22, 2024
b19d7fb
toggle modal close
MenamAfzal Jul 23, 2024
f30fd26
style fixes for input components
raheeliftikhar5 Jul 23, 2024
42a1596
don't show validation message on input reset
raheeliftikhar5 Jul 23, 2024
3e84c3b
Merge pull request #1054 from MenamAfzal/fix/table-issues
FalkWolsky Jul 23, 2024
0a18b11
Merge pull request #1055 from MenamAfzal/feat/toggle-modal-close
FalkWolsky Jul 23, 2024
06b5caf
fix: currentCell is undefined in conditional cell color field
raheeliftikhar5 Jul 24, 2024
ab27214
fix sub-table settings not saved on refresh
raheeliftikhar5 Jul 24, 2024
dca3cd5
Added Query & Hash Params
alireyhan Jul 24, 2024
670e8ba
removed extra code
MenamAfzal Jul 24, 2024
11f1022
Merge pull request #1058 from MenamAfzal/addqueryparams
raheeliftikhar5 Jul 24, 2024
9ec5282
fix cursor jump issue while typing
raheeliftikhar5 Jul 24, 2024
a334a5a
added toggle btn in drawer
MenamAfzal Jul 24, 2024
76f46bc
fix jsonSchemaForm properties are showing in other comps
raheeliftikhar5 Jul 25, 2024
7589be4
Merge pull request #1062 from MenamAfzal/add/toggle
raheeliftikhar5 Jul 25, 2024
0fef66b
fix: query fails when trigger on page load and using comp method inside
raheeliftikhar5 Jul 25, 2024
42c616b
fix: avoid destroying mouseDown event specifically for kanban component
raheeliftikhar5 Jul 25, 2024
5f4861c
Increase Buid Memory for lowcoder comps
Jul 26, 2024
238163d
set/read dataRange and timeRange data using form
raheeliftikhar5 Jul 26, 2024
88d6b5a
allow mouseDown event for lowcoder-comp-excalidraw
raheeliftikhar5 Jul 26, 2024
0b99e61
copy disabled/hidden fields on duplicating container based comps
raheeliftikhar5 Jul 26, 2024
38b391c
Enabling tutorials from Supademo
Jul 26, 2024
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.3
2.4.4
10 changes: 5 additions & 5 deletions 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.8",
"version": "2.4.9",
"type": "module",
"license": "MIT",
"dependencies": {
Expand Down Expand Up @@ -197,10 +197,10 @@
}
},
"scripts": {
"start": "NODE_OPTIONS=--max_old_space_size=6144 vite",
"build": "yarn test && lowcoder-cli build",
"build_only": "lowcoder-cli build",
"build_publish": "lowcoder-cli build --publish",
"start": "NODE_OPTIONS=--max_old_space_size=6442 vite",
"build": "NODE_OPTIONS=--max_old_space_size=6442 yarn test && lowcoder-cli build",
"build_only": "NODE_OPTIONS=--max_old_space_size=6442 lowcoder-cli build",
"build_publish": "NODE_OPTIONS=--max_old_space_size=6442 lowcoder-cli build --publish",
"test": "jest"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ BasicChartTmpComp = withViewFn(BasicChartTmpComp, (comp) => {
log.error('theme chart error: ', error);
}

useMergeCompStyles(childrenToProps(comp.children), comp.dispatch);
useMergeCompStyles?.(childrenToProps(comp.children), comp.dispatch);

const triggerClickEvent = async (dispatch: any, action: CompAction<JSONValue>) => {
await getPromiseAfterDispatch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,22 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultEchartsJsonOption),
echartsTitle: withDefault(StringControl, trans("echarts.defaultTitle")),
echartsTitle: withDefault(StringControl, trans("echarts.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
}
if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}

const chartMapModeChildren = {
mapInstance: stateComp(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
ThemeContext,
CalendarStyle,
DateParser,
modalInstance,
CustomModal,
jsonValueExposingStateControl,
CalendarDeleteIcon,
Expand Down Expand Up @@ -70,16 +71,13 @@ import {
resourceTimeGridHeaderToolbar,
} from "./calendarConstants";

// this should ensure backwards compatibility with older versions of the SDK
const safeDragEventHandlerControl = typeof DragEventHandlerControl !== 'undefined' ? DragEventHandlerControl : () => {};

const childrenMap = {
let childrenMap: any = {
events: jsonValueExposingStateControl("events", defaultData),
resourcesEvents: jsonValueExposingStateControl("resourcesEvents", resourcesEventsDefaultData),
resources: jsonValueExposingStateControl("resources", resourcesDefaultData),
resourceName: withDefault(StringControl, trans("calendar.resourcesDefault")),
onEvent: ChangeEventHandlerControl,
onDropEvent: safeDragEventHandlerControl,
// onDropEvent: safeDragEventHandlerControl,
editable: withDefault(BoolControl, true),
showEventTime: withDefault(BoolControl, true),
showWeekends: withDefault(BoolControl, true),
Expand All @@ -93,7 +91,13 @@ const childrenMap = {
currentFreeView: dropdownControl(DefaultWithFreeViewOptions, "timeGridWeek"),
currentPremiumView: dropdownControl(DefaultWithPremiumViewOptions, "resourceTimelineDay"),
};

// this should ensure backwards compatibility with older versions of the SDK
if (DragEventHandlerControl) {
childrenMap = {
...childrenMap,
onDropEvent: DragEventHandlerControl,
}
}
let CalendarBasicComp = (function () {
return new UICompBuilder(childrenMap, (props: {
events: any;
Expand Down Expand Up @@ -124,7 +128,7 @@ let CalendarBasicComp = (function () {
const [left, setLeft] = useState<number | undefined>(undefined);
const [licensed, setLicensed] = useState<boolean>(props.licenseKey !== "");

useMergeCompStyles(props, dispatch);
useMergeCompStyles?.(props, dispatch);

useEffect(() => {
setLicensed(props.licenseKey !== "");
Expand Down Expand Up @@ -326,6 +330,8 @@ let CalendarBasicComp = (function () {
};

const showModal = (event: EventType, ifEdit: boolean) => {
if (!modalInstance) return;

const modalTitle = ifEdit
? trans("calendar.editEvent")
: trans("calendar.creatEvent");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,22 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultCandleStickChartOption),
echartsTitle: withDefault(StringControl, trans("candleStickChart.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
}
if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}

const chartMapModeChildren = {
mapInstance: stateComp(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function candleStickChartPropertyView(
{children.onEvent.propertyView()}
</Section>
<Section name={sectionNames.style}>
{children.style.getPropertyView()}
{children.style?.getPropertyView()}
</Section>
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ChartTmpComp = withViewFn(ChartTmpComp, (comp) => {
}

const triggerClickEvent = async (dispatch: any, action: CompAction<JSONValue>) => {
await getPromiseAfterDispatch(
await getPromiseAfterDispatch?.(
dispatch,
action,
{ autoHandleAfterReduce: true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultFunnelChartOption),
echartsTitle: withDefault(StringControl, trans("funnelChart.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
echartsTitleConfig:EchartsTitleConfig,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
label: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
Expand All @@ -267,6 +267,12 @@ const chartJsonModeChildren = {
max:withDefault(NumberControl,trans('funnelChart.defaultMax')),
gap:withDefault(NumberControl,trans('funnelChart.defaultGap'))
}
if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}

const chartMapModeChildren = {
mapInstance: stateComp(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function funnelChartPropertyView(
{children.onEvent.propertyView()}
</Section>
<Section name={sectionNames.style}>
{children.style.getPropertyView()}
{children.style?.getPropertyView()}
</Section>
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultGaugeChartOption),
echartsTitle: withDefault(StringControl, trans("gaugeChart.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
echartsTitleConfig:EchartsTitleConfig,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
label: withDefault(BoolControl, true),
Expand All @@ -267,7 +267,12 @@ const chartJsonModeChildren = {
max:withDefault(NumberControl,trans('gaugeChart.defaultMax')),
gap:withDefault(NumberControl,trans('gaugeChart.defaultGap'))
}

if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}
const chartMapModeChildren = {
mapInstance: stateComp(),
getMapInstance: FunctionControl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function gaugeChartPropertyView(
{children.onEvent.propertyView()}
</Section>
<Section name={sectionNames.style}>
{children.style.getPropertyView()}
{children.style?.getPropertyView()}
</Section>
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,22 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultGraphChartOption),
echartsTitle: withDefault(StringControl, trans("graphChart.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
}
if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}

const chartMapModeChildren = {
mapInstance: stateComp(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function graphChartPropertyView(
{children.onEvent.propertyView()}
</Section>
<Section name={sectionNames.style}>
{children.style.getPropertyView()}
{children.style?.getPropertyView()}
</Section>
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,22 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultHeatmapChartOption),
echartsTitle: withDefault(StringControl, trans("heatmapChart.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
}
if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}

const chartMapModeChildren = {
mapInstance: stateComp(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function heatmapChartPropertyView(
{children.onEvent.propertyView()}
</Section>
<Section name={sectionNames.style}>
{children.style.getPropertyView()}
{children.style?.getPropertyView()}
</Section>
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,22 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultRadarChartOption),
echartsTitle: withDefault(StringControl, trans("radarChart.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
}
if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}

const chartMapModeChildren = {
mapInstance: stateComp(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function radarChartPropertyView(
{children.onEvent.propertyView()}
</Section>
<Section name={sectionNames.style}>
{children.style.getPropertyView()}
{children.style?.getPropertyView()}
</Section>
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,22 @@ export const chartUiModeChildren = {
onUIEvent: eventHandlerControl(UIEventOptions),
};

const chartJsonModeChildren = {
let chartJsonModeChildren: any = {
echartsOption: jsonControl(toObject, i18nObjs.defaultSankeyChartOption),
echartsTitle: withDefault(StringControl, trans("sankeyChart.defaultTitle")),
echartsLegendConfig: EchartsLegendConfig,
echartsLabelConfig: EchartsLabelConfig,
echartsConfig: EchartsOptionComp,
style: styleControl(EchartsStyle, 'style'),
// style: styleControl(EchartsStyle, 'style'),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
}
if (EchartsStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
style: styleControl(EchartsStyle, 'style'),
}
}

const chartMapModeChildren = {
mapInstance: stateComp(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function sankeyChartPropertyView(
{children.onEvent.propertyView()}
</Section>
<Section name={sectionNames.style}>
{children.style.getPropertyView()}
{children.style?.getPropertyView()}
</Section>
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
</>
Expand Down
Loading
Loading