Skip to content
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

agregar commit #178

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4f92544
feat: user for a project, img and name
enverdavid Jan 10, 2023
53c3477
cambio
Bravoezz Mar 30, 2023
2235ae1
changes hola
Bravoezz Mar 30, 2023
d2b7eac
Merge branch 'main' into bravo/dev
Bravoezz Mar 30, 2023
04cd795
Merge pull request #1 from Bravoezz/bravo/dev
Bravoezz Mar 30, 2023
a547f19
hl
Bravoezz Mar 30, 2023
c077aec
added
carlosAguinaga Mar 30, 2023
ba79d15
Merge branch 'main' of github.com:enverdavid/gantt-task-react
carlosAguinaga Mar 30, 2023
fd70f7d
input progress added
carlosAguinaga Mar 31, 2023
4cd9640
add progresss
Bravoezz Mar 31, 2023
9f56511
fix right Left
carlosAguinaga Apr 1, 2023
de076b9
fix 2
carlosAguinaga Apr 1, 2023
74a99f9
fix: text center
carlosAguinaga Apr 1, 2023
b2e819d
update progress for 5
carlosAguinaga Apr 1, 2023
afc5286
styles added
carlosAguinaga Apr 1, 2023
9868183
not show in jobs preview
carlosAguinaga Apr 1, 2023
6d63dcd
fix show or hide
carlosAguinaga Apr 1, 2023
3702372
fix hide
carlosAguinaga Apr 1, 2023
79974cf
showProgress added
carlosAguinaga Apr 1, 2023
16b5d01
fix hide progress
carlosAguinaga Apr 1, 2023
5bcd87c
styles buttons
carlosAguinaga Apr 1, 2023
0390f4d
button styles
carlosAguinaga Apr 4, 2023
5f734bd
new progress
carlosAguinaga Apr 5, 2023
7a9ed3a
fix: current progress
carlosAguinaga Apr 5, 2023
6313611
ajust width
carlosAguinaga Apr 5, 2023
48b1100
update option select
carlosAguinaga Apr 6, 2023
01cd7f3
update avatar
carlosAguinaga Apr 8, 2023
8c49cc8
fix names
carlosAguinaga Apr 8, 2023
56495e1
update user info
carlosAguinaga Apr 8, 2023
614e0dd
add edit name funnction
carlosAguinaga Apr 10, 2023
7e777b1
fix callback edit task
carlosAguinaga Apr 10, 2023
1a4fe44
fix: color item
carlosAguinaga Apr 10, 2023
969f899
fix: styles
carlosAguinaga Apr 10, 2023
848d8d2
fix: styles margins
carlosAguinaga Apr 10, 2023
27652a5
fix: styles
carlosAguinaga Apr 11, 2023
847f51a
fix styles
carlosAguinaga Apr 11, 2023
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
31,325 changes: 31,325 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

2,042 changes: 2,042 additions & 0 deletions .pnp.loader.mjs

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ const App = () => {
console.log("On expander click Id:" + task.id);
};

const cb = (task: Task, progress:number):boolean => {
console.log("hola")
console.log(task)
console.log(progress)
return true
}
const cbTaskName = (task: Task):boolean | undefined => {
console.log("hola task edit")
console.log(task);
return true;
}

return (
<div className="Wrapper">
<ViewSwitcher
Expand All @@ -83,10 +95,13 @@ const App = () => {
onProgressChange={handleProgressChange}
onDoubleClick={handleDblClick}
onClick={handleClick}
onInputPro={cb}
onEditNameTask={cbTaskName}
onSelect={handleSelect}
onExpanderClick={handleExpanderClick}
listCellWidth={isChecked ? "155px" : ""}
columnWidth={columnWidth}
showProgress={true}
/>
<h3>Gantt With Limited Height</h3>
<Gantt
Expand All @@ -102,6 +117,7 @@ const App = () => {
listCellWidth={isChecked ? "155px" : ""}
ganttHeight={300}
columnWidth={columnWidth}
showProgress={false}
/>
</div>
);
Expand Down
26 changes: 25 additions & 1 deletion example/src/helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export function initTasks() {
end: new Date(currentDate.getFullYear(), currentDate.getMonth(), 15),
name: "Some Project",
id: "ProjectSample",
user: "Pedro Tello",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
progress: 25,
userInfo: null,
type: "project",
hideChildren: false,
displayOrder: 1,
Expand All @@ -24,7 +27,10 @@ export function initTasks() {
),
name: "Idea",
id: "Task 0",
user: "Juan Flores",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
progress: 45,
userInfo: null,
type: "task",
project: "ProjectSample",
displayOrder: 2,
Expand All @@ -34,7 +40,10 @@ export function initTasks() {
end: new Date(currentDate.getFullYear(), currentDate.getMonth(), 4, 0, 0),
name: "Research",
id: "Task 1",
user: "Juan Flores",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
progress: 25,
userInfo: null,
dependencies: ["Task 0"],
type: "task",
project: "ProjectSample",
Expand All @@ -43,9 +52,12 @@ export function initTasks() {
{
start: new Date(currentDate.getFullYear(), currentDate.getMonth(), 4),
end: new Date(currentDate.getFullYear(), currentDate.getMonth(), 8, 0, 0),
name: "Discussion with team",
name: "Discussion with team and more items",
id: "Task 2",
user: "Juan Flores",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
progress: 10,
userInfo: null,
dependencies: ["Task 1"],
type: "task",
project: "ProjectSample",
Expand All @@ -56,7 +68,10 @@ export function initTasks() {
end: new Date(currentDate.getFullYear(), currentDate.getMonth(), 9, 0, 0),
name: "Developing",
id: "Task 3",
user: "Juan Flores",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
progress: 2,
userInfo: null,
dependencies: ["Task 2"],
type: "task",
project: "ProjectSample",
Expand All @@ -67,8 +82,11 @@ export function initTasks() {
end: new Date(currentDate.getFullYear(), currentDate.getMonth(), 10),
name: "Review",
id: "Task 4",
user: "Juan Flores",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
type: "task",
progress: 70,
userInfo: null,
dependencies: ["Task 2"],
project: "ProjectSample",
displayOrder: 6,
Expand All @@ -78,7 +96,10 @@ export function initTasks() {
end: new Date(currentDate.getFullYear(), currentDate.getMonth(), 15),
name: "Release",
id: "Task 6",
user: "Juan Flores",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
progress: currentDate.getMonth(),
userInfo: null,
type: "milestone",
dependencies: ["Task 4"],
project: "ProjectSample",
Expand All @@ -89,7 +110,10 @@ export function initTasks() {
end: new Date(currentDate.getFullYear(), currentDate.getMonth(), 19),
name: "Party Time",
id: "Task 9",
user: "Juan Flores",
urlImg: "https://pyxis.nymag.com/v1/imgs/ae1/f57/8418213aa60777d7a7389b34972f3569d5-Stephen-Lang-chatroom.1x.rsquare.w1400.jpg",
progress: 0,
userInfo: null,
isDisabled: true,
type: "task",
},
Expand Down
2 changes: 1 addition & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"suppressImplicitAnyIndexErrors": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowSyntheticDefaultImports": true,
Expand Down
Loading