Skip to content

Commit

Permalink
Adding Remote Gantt Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkWolsky committed Jul 8, 2024
1 parent 9e14af4 commit bca5fe4
Show file tree
Hide file tree
Showing 8 changed files with 1,302 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/packages/lowcoder-design/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ export { ReactComponent as GeoMapLayersCompIconSmall } from "./v2/geomap-layers-
export { ReactComponent as HillchartCompIconSmall } from "./v2/hillchart-s.svg"; // new
export { ReactComponent as PivotTableCompIconSmall } from "./v2/pivot-table-s.svg"; // new
export { ReactComponent as TurnstileCaptchaCompIconSmall } from "./v2/turnstile-captcha-s.svg"; // new
export { ReactComponent as GanttCompIconSmall } from "./v2/gantt-chart-s.svg"; // new


// medium
Expand Down Expand Up @@ -435,6 +436,7 @@ export { ReactComponent as VideoCameraStreamCompIcon } from "./v2/camera-stream-
export { ReactComponent as VideoScreenshareCompIcon } from "./v2/screen-share-stream-m.svg";
export { ReactComponent as StepCompIcon } from "./v2/steps-m.svg";
export { ReactComponent as SignatureCompIcon } from "./v2/signature-m.svg";
export { ReactComponent as GanttCompIcon } from "./v2/gantt-chart-m.svg";

export { ReactComponent as CandlestickChartCompIcon } from "./v2/candlestick-chart-m.svg";
export { ReactComponent as FunnelChartCompIcon } from "./v2/funnel-chart-m.svg";
Expand Down
1,262 changes: 1,262 additions & 0 deletions client/packages/lowcoder-design/src/icons/v2/gantt-chart-l.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion client/packages/lowcoder/src/comps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ import {
HillchartCompIcon,
TurnstileCaptchaCompIcon,
PivotTableCompIcon,
GraphChartCompIcon
GraphChartCompIcon,
GanttCompIcon,

} from "lowcoder-design";

Expand Down Expand Up @@ -1225,6 +1226,25 @@ export var uiCompMap: Registry = {

// Project Management

ganttChart: {
name: trans("uiComp.ganttChartCompName"),
enName: "ganttChart",
description: trans("uiComp.ganttChartCompDesc"),
categories: ["projectmanagement"],
icon: GanttCompIcon,
keywords: trans("uiComp.ganttChartCompKeywords"),
comp: remoteComp({
compName: "ganttchart",
packageName: "lowcoder-comp-gantt-chart",
source: "npm",
isRemote: true,
}),
layoutInfo: {
w: 20,
h: 60,
},
},

hillchart: {
name: trans("uiComp.hillchartCompName"),
enName: "Hillchart",
Expand Down
1 change: 1 addition & 0 deletions client/packages/lowcoder/src/comps/uiCompRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export type UICompType =
| "themeriverChart"
| "basicChart"
| "columnLayout"
| "ganttChart"
;


Expand Down
4 changes: 4 additions & 0 deletions client/packages/lowcoder/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,10 @@ export const en = {
"shapeCompDesc": "A collection of geometric shapes for use with diagrams, illustrations, and visualizations.",
"shapeCompKeywords": "shapes, geometric, diagrams, illustrations",

"ganttChartCompName" : "Gantt Chart",
"ganttChartCompDesc" : "A chart that illustrates a project schedule, showing the start and finish dates of elements and dependencies.",
"ganttChartCompKeywords" : "gantt chart, project management, schedule",

// by mousheng

"colorPickerCompName": "Color Picker",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import {
ColorPickerCompIconSmall,
TransferCompIconSmall,
ShapesCompIconSmall,
GanttCompIconSmall,

CandlestickChartCompIconSmall,
FunnelChartCompIconSmall,
Expand Down Expand Up @@ -182,8 +183,9 @@ export const CompStateIcon: {
treeSelect: <TreeSelectCompIconSmall />,
video: <VideoCompIconSmall />,
videocomponent: <VideoCameraStreamCompIconSmall />,

hillchart: <HillchartCompIconSmall/>,
ganttChart: <GanttCompIconSmall/>,
openLayersGeoMap: <GeoMapLayersCompIconSmall/>,
chartsGeoMap: <GeoMapChartsCompIconSmall/>,
bpmnEditor: <BPMNEditorCompIconSmall/>,
Expand Down

0 comments on commit bca5fe4

Please sign in to comment.