@voplus/morpho-workspace 1.0.0-dev41 → 1.0.0-dev43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/AvatarList/index.js +19 -11
- package/es/components/AvatarList/index.js.map +1 -1
- package/es/components/AvatarList/index.less +13 -4
- package/es/components/AvatarList/state.d.ts +1 -0
- package/es/components/AvatarList/state.js +4 -0
- package/es/components/AvatarList/state.js.map +1 -1
- package/es/components/PageListView/index.d.ts +1 -7
- package/es/components/PageListView/index.js +16 -63
- package/es/components/PageListView/index.js.map +1 -1
- package/es/components/PageListView/index.less +3 -64
- package/es/components/PageListView/state.d.ts +0 -3
- package/es/components/PageListView/state.js +0 -12
- package/es/components/PageListView/state.js.map +1 -1
- package/es/components/ToolBar/index.d.ts +4 -1
- package/es/components/ToolBar/index.js +17 -6
- package/es/components/ToolBar/index.js.map +1 -1
- package/es/components/ToolBar/index.less +4 -1
- package/es/controls/FlagIcon/index.d.ts +2 -1
- package/es/controls/FlagIcon/index.js +13 -3
- package/es/controls/FlagIcon/index.js.map +1 -1
- package/es/data/board/BoardStore.d.ts +21 -0
- package/es/data/board/BoardStore.js +39 -0
- package/es/data/board/BoardStore.js.map +1 -0
- package/es/data/board/hooks.d.ts +12 -0
- package/es/data/board/hooks.js +24 -0
- package/es/data/board/hooks.js.map +1 -0
- package/es/data/board/index.d.ts +4 -0
- package/es/data/board/index.js +3 -0
- package/es/data/board/index.js.map +1 -0
- package/es/data/board/interfaces.d.ts +25 -0
- package/es/data/board/interfaces.js +1 -0
- package/es/data/board/interfaces.js.map +1 -0
- package/es/data/board/mock.d.ts +3 -0
- package/es/data/board/mock.js +37 -0
- package/es/data/board/mock.js.map +1 -0
- package/es/data/board/types.d.ts +14 -0
- package/es/data/board/types.js +1 -0
- package/es/data/board/types.js.map +1 -0
- package/es/data/meeting/interfaces.d.ts +1 -0
- package/es/data/task/interfaces.d.ts +1 -0
- package/es/modules/BoardView/components/BoardColumn/index.d.ts +5 -2
- package/es/modules/BoardView/components/BoardColumn/index.js +49 -224
- package/es/modules/BoardView/components/BoardColumn/index.js.map +1 -1
- package/es/modules/BoardView/components/BoardColumn/index.less +49 -108
- package/es/modules/BoardView/components/BoardColumn/state.d.ts +11 -0
- package/es/modules/BoardView/components/BoardColumn/state.js +38 -0
- package/es/modules/BoardView/components/BoardColumn/state.js.map +1 -0
- package/es/modules/BoardView/components/BoardList/index.d.ts +5 -0
- package/es/modules/BoardView/components/BoardList/index.js +35 -0
- package/es/modules/BoardView/components/BoardList/index.js.map +1 -0
- package/es/modules/BoardView/components/BoardList/index.less +39 -0
- package/es/modules/BoardView/components/BoardList/state.d.ts +7 -0
- package/es/modules/BoardView/components/BoardList/state.js +23 -0
- package/es/modules/BoardView/components/BoardList/state.js.map +1 -0
- package/es/modules/BoardView/components/NewTaskForm/index.d.ts +11 -0
- package/es/modules/BoardView/components/NewTaskForm/index.js +66 -0
- package/es/modules/BoardView/components/NewTaskForm/index.js.map +1 -0
- package/es/modules/BoardView/components/NewTaskForm/index.less +91 -0
- package/es/modules/BoardView/components/NewTaskForm/state.d.ts +24 -0
- package/es/modules/BoardView/components/NewTaskForm/state.js +37 -0
- package/es/modules/BoardView/components/NewTaskForm/state.js.map +1 -0
- package/es/modules/BoardView/components/TaskCard/index.d.ts +4 -1
- package/es/modules/BoardView/components/TaskCard/index.js +113 -33
- package/es/modules/BoardView/components/TaskCard/index.js.map +1 -1
- package/es/modules/BoardView/components/TaskCard/index.less +55 -19
- package/es/modules/BoardView/components/TaskCard/state.d.ts +15 -0
- package/es/modules/BoardView/components/TaskCard/state.js +54 -0
- package/es/modules/BoardView/components/TaskCard/state.js.map +1 -0
- package/es/modules/BoardView/components/TaskList/index.d.ts +10 -0
- package/es/modules/BoardView/components/TaskList/index.js +45 -0
- package/es/modules/BoardView/components/TaskList/index.js.map +1 -0
- package/es/modules/BoardView/components/TaskList/state.d.ts +7 -0
- package/es/modules/BoardView/components/TaskList/state.js +23 -0
- package/es/modules/BoardView/components/TaskList/state.js.map +1 -0
- package/es/modules/BoardView/pages/BoardViewList/index.d.ts +2 -2
- package/es/modules/BoardView/pages/BoardViewList/index.js +13 -11
- package/es/modules/BoardView/pages/BoardViewList/index.js.map +1 -1
- package/es/modules/BoardView/pages/BoardViewRoutes.js +1 -1
- package/es/modules/BoardView/pages/BoardViewRoutes.js.map +1 -1
- package/es/modules/calendar/CalendarRoutes.d.ts +11 -0
- package/es/modules/calendar/CalendarRoutes.js +25 -0
- package/es/modules/calendar/CalendarRoutes.js.map +1 -0
- package/es/modules/calendar/pages/CalendarMonth/index.d.ts +7 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js +193 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -0
- package/es/modules/calendar/pages/CalendarMonth/index.less +144 -0
- package/es/modules/calendar/pages/CalendarMonth/state.d.ts +3 -0
- package/es/modules/calendar/pages/CalendarMonth/state.js +12 -0
- package/es/modules/calendar/pages/CalendarMonth/state.js.map +1 -0
- package/es/modules/calendar/pages/CalendarWeek/index.d.ts +0 -0
- package/es/modules/calendar/pages/CalendarWeek/index.js +1 -0
- package/es/modules/calendar/pages/CalendarWeek/index.js.map +1 -0
- package/es/modules/meeting/MeetingRoutes.js +2 -2
- package/es/modules/meeting/MeetingRoutes.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.d.ts +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +4 -4
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +1 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +8 -10
- package/es/modules/meeting/components/AgendaList/index.js +23 -18
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.less +4 -35
- package/es/modules/meeting/components/AgendaList/state.d.ts +1 -1
- package/es/modules/meeting/components/AgendaList/state.js +2 -2
- package/es/modules/meeting/components/MeetingDescription/index.d.ts +6 -0
- package/es/modules/meeting/components/MeetingDescription/index.js +26 -0
- package/es/modules/meeting/components/MeetingDescription/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingDescription/index.less +12 -0
- package/es/modules/meeting/components/MeetingDetail/index.js +24 -45
- package/es/modules/meeting/components/MeetingDetail/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.d.ts +10 -0
- package/es/modules/meeting/components/MeetingHeader/index.js +90 -0
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingHeader/index.less +26 -0
- package/es/modules/meeting/components/MeetingItem/index.d.ts +0 -1
- package/es/modules/meeting/components/MeetingItem/index.js +5 -54
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.less +7 -81
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.d.ts +7 -0
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js +13 -0
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.less +0 -0
- package/es/modules/meeting/pages/MeetingList/index.js +40 -0
- package/es/modules/meeting/pages/MeetingList/index.js.map +1 -0
- package/es/modules/meeting/{components → pages}/MeetingList/state.d.ts +2 -0
- package/es/modules/meeting/{components → pages}/MeetingList/state.js +4 -0
- package/es/modules/meeting/pages/MeetingList/state.js.map +1 -0
- package/es/modules/meeting/pages/MeetingTabView/index.js +26 -38
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.less +4 -0
- package/es/modules/tasks/TasksRoutes.d.ts +0 -6
- package/es/modules/tasks/TasksRoutes.js +3 -11
- package/es/modules/tasks/TasksRoutes.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +30 -10
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.less +3 -67
- package/es/modules/tasks/components/TaskDescription/index.d.ts +6 -0
- package/es/modules/tasks/components/TaskDescription/index.js +33 -0
- package/es/modules/tasks/components/TaskDescription/index.js.map +1 -0
- package/es/modules/tasks/components/TaskDescription/index.less +11 -0
- package/es/modules/tasks/components/TaskDetail/index.js +21 -57
- package/es/modules/tasks/components/TaskDetail/index.js.map +1 -1
- package/es/modules/tasks/components/TaskHeader/index.d.ts +10 -0
- package/es/modules/tasks/components/TaskHeader/index.js +46 -0
- package/es/modules/tasks/components/TaskHeader/index.js.map +1 -0
- package/es/modules/tasks/components/TaskHeader/index.less +6 -0
- package/es/modules/tasks/components/TaskItem/TaskItem.js +94 -48
- package/es/modules/tasks/components/TaskItem/TaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/index.less +6 -2
- package/es/modules/tasks/components/TaskItem/state.d.ts +2 -0
- package/es/modules/tasks/components/TaskItem/state.js +8 -0
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.d.ts +7 -0
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +13 -0
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -0
- package/es/modules/tasks/components/TaskQuickViewDialog/index.less +7 -0
- package/es/modules/tasks/pages/TaskList/index.js +73 -0
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -0
- package/es/modules/tasks/{components → pages}/TaskList/state.d.ts +2 -1
- package/es/modules/tasks/pages/TaskList/state.js.map +1 -0
- package/es/modules/tasks/pages/TaskTabView/index.js +34 -29
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.less +3 -3
- package/es/modules/tasks/pages/TaskTabView/state.d.ts +0 -1
- package/es/modules/tasks/pages/TaskTabView/state.js +0 -4
- package/es/modules/tasks/pages/TaskTabView/state.js.map +1 -1
- package/package.json +16 -10
- package/es/modules/BoardView/components/AddBoard/index.d.ts +0 -3
- package/es/modules/BoardView/components/AddBoard/index.js +0 -24
- package/es/modules/BoardView/components/AddBoard/index.js.map +0 -1
- package/es/modules/BoardView/components/AddBoard/index.less +0 -48
- package/es/modules/meeting/components/MeetingList/index.js +0 -36
- package/es/modules/meeting/components/MeetingList/index.js.map +0 -1
- package/es/modules/meeting/components/MeetingList/state.js.map +0 -1
- package/es/modules/meeting/pages/MeetingListView/index.d.ts +0 -3
- package/es/modules/meeting/pages/MeetingListView/index.js +0 -8
- package/es/modules/meeting/pages/MeetingListView/index.js.map +0 -1
- package/es/modules/tasks/components/TaskList/index.js +0 -76
- package/es/modules/tasks/components/TaskList/index.js.map +0 -1
- package/es/modules/tasks/components/TaskList/state.js.map +0 -1
- package/es/modules/tasks/pages/TaskDefaultView/index.d.ts +0 -3
- package/es/modules/tasks/pages/TaskDefaultView/index.js +0 -63
- package/es/modules/tasks/pages/TaskDefaultView/index.js.map +0 -1
- package/es/modules/tasks/pages/TaskListView/index.d.ts +0 -3
- package/es/modules/tasks/pages/TaskListView/index.js +0 -9
- package/es/modules/tasks/pages/TaskListView/index.js.map +0 -1
- /package/es/modules/meeting/{components → pages}/MeetingList/index.d.ts +0 -0
- /package/es/modules/tasks/{components → pages}/TaskList/index.d.ts +0 -0
- /package/es/modules/tasks/{components → pages}/TaskList/state.js +0 -0
@@ -1,126 +1,67 @@
|
|
1
|
-
.
|
2
|
-
|
1
|
+
.board-column {
|
2
|
+
flex: 1;
|
3
3
|
display: flex;
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
//
|
4
|
+
flex-direction: column;
|
5
|
+
height: 100%;
|
6
|
+
margin-right: 20px;
|
7
|
+
// width: 19.5%;
|
8
|
+
overflow: hidden;
|
8
9
|
:global {
|
9
|
-
.content-
|
10
|
+
.content-top {
|
10
11
|
flex: 1;
|
11
12
|
display: flex;
|
12
|
-
|
13
|
-
height:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
justify-content: space-between;
|
14
|
+
height: 50px;
|
15
|
+
line-height: 50px;
|
16
|
+
padding: 0 10px;
|
17
|
+
background: #ffffff;
|
18
|
+
margin-bottom: 15px;
|
19
|
+
.board-name {
|
19
20
|
display: flex;
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
background: #ffffff;
|
25
|
-
margin-bottom: 15px;
|
26
|
-
.board-name{
|
27
|
-
font-size: 16px;
|
28
|
-
color: #000000;
|
29
|
-
}
|
30
|
-
.board-length{
|
21
|
+
align-items: center;
|
22
|
+
font-size: 16px;
|
23
|
+
color: #000000;
|
24
|
+
.task-card-title{
|
31
25
|
display: inline-block;
|
32
|
-
height: 20px;
|
33
|
-
font-size: 14px;
|
34
|
-
text-align: center;
|
35
|
-
color: #888888;
|
36
|
-
line-height: 18px;
|
37
|
-
padding: 0 8px;
|
38
|
-
border-radius: 15px;
|
39
|
-
border: solid 1px #888888;
|
40
|
-
margin-left: 15px;
|
41
|
-
}
|
42
|
-
span {
|
43
|
-
font-size: 16px;
|
44
|
-
color: #000;
|
45
26
|
}
|
46
|
-
.
|
27
|
+
.ant-spin-container{
|
47
28
|
display: flex;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
}
|
29
|
+
}
|
30
|
+
.ant-checkbox-wrapper{
|
31
|
+
margin-right: 8px;
|
52
32
|
}
|
53
33
|
}
|
54
|
-
.
|
34
|
+
.board-length {
|
55
35
|
display: inline-block;
|
36
|
+
height: 20px;
|
56
37
|
font-size: 14px;
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
38
|
+
text-align: center;
|
39
|
+
color: #888888;
|
40
|
+
line-height: 18px;
|
41
|
+
padding: 0 8px;
|
42
|
+
border-radius: 15px;
|
43
|
+
border: solid 1px #888888;
|
44
|
+
margin-left: 15px;
|
45
|
+
}
|
46
|
+
span {
|
47
|
+
font-size: 16px;
|
48
|
+
color: #000;
|
49
|
+
}
|
50
|
+
.board-control {
|
51
|
+
display: flex;
|
52
|
+
align-items: center;
|
53
|
+
.svg-inline--fa {
|
54
|
+
cursor: pointer;
|
55
|
+
}
|
61
56
|
}
|
62
|
-
// .list-body {
|
63
|
-
// height: 100%;
|
64
|
-
// display: flex;
|
65
|
-
// flex-direction: column;
|
66
|
-
// overflow: auto;
|
67
|
-
// .list-body-content {
|
68
|
-
// height: fit-content;
|
69
|
-
|
70
|
-
// .content-list {
|
71
|
-
// background-color: #fff;
|
72
|
-
// margin: 10px 10px;
|
73
|
-
// padding: 10px 6px;
|
74
|
-
// box-shadow: 6px 6px 6px #888888;
|
75
|
-
// .content-status {
|
76
|
-
// background-color: red;
|
77
|
-
// color: #fff;
|
78
|
-
// line-height: 20px;
|
79
|
-
// width: 80px;
|
80
|
-
// text-align: center;
|
81
|
-
// border-radius: 5px;
|
82
|
-
// }
|
83
|
-
// i {
|
84
|
-
// font-size: 18px;
|
85
|
-
// display: block;
|
86
|
-
// color: #000;
|
87
|
-
// line-height: 24px;
|
88
|
-
// margin-top: 6px;
|
89
|
-
// }
|
90
|
-
// .content-list-bottom {
|
91
|
-
// margin-top: 20px;
|
92
|
-
// display: flex;
|
93
|
-
// justify-content: space-between;
|
94
|
-
// align-items: center;
|
95
|
-
// span {
|
96
|
-
// margin-right: 14px;
|
97
|
-
// .svg-inline--fa {
|
98
|
-
// margin-right: 3px;
|
99
|
-
// }
|
100
|
-
// }
|
101
|
-
// span:hover {
|
102
|
-
// color: #1890ff;
|
103
|
-
// }
|
104
|
-
// }
|
105
|
-
// }
|
106
|
-
// }
|
107
|
-
// }
|
108
|
-
// p {
|
109
|
-
// height: 60px;
|
110
|
-
// line-height: 60px;
|
111
|
-
// text-align: center;
|
112
|
-
// font-size: 16px;
|
113
|
-
// color: #000;
|
114
|
-
// margin-bottom: 26px;
|
115
|
-
// background-color: rgb(234, 238, 238);
|
116
|
-
// }
|
117
57
|
}
|
118
|
-
.
|
119
|
-
|
120
|
-
font-size:
|
121
|
-
|
122
|
-
line-height: 50px;
|
58
|
+
.addTask {
|
59
|
+
display: inline-block;
|
60
|
+
font-size: 14px;
|
61
|
+
color: #777171;
|
123
62
|
cursor: pointer;
|
63
|
+
padding: 0 6px;
|
64
|
+
margin-bottom: 15px;
|
124
65
|
}
|
125
66
|
}
|
126
67
|
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { observable } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor() {
|
5
|
+
this.name = "";
|
6
|
+
this.editable = false;
|
7
|
+
this.loading = false;
|
8
|
+
this.checked = false;
|
9
|
+
this.checkAll = false;
|
10
|
+
this.multiple = false;
|
11
|
+
this.AddTaskAble = false;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
__decorate([
|
15
|
+
observable
|
16
|
+
], State.prototype, "board", void 0);
|
17
|
+
__decorate([
|
18
|
+
observable
|
19
|
+
], State.prototype, "name", void 0);
|
20
|
+
__decorate([
|
21
|
+
observable
|
22
|
+
], State.prototype, "editable", void 0);
|
23
|
+
__decorate([
|
24
|
+
observable
|
25
|
+
], State.prototype, "loading", void 0);
|
26
|
+
__decorate([
|
27
|
+
observable
|
28
|
+
], State.prototype, "checked", void 0);
|
29
|
+
__decorate([
|
30
|
+
observable
|
31
|
+
], State.prototype, "checkAll", void 0);
|
32
|
+
__decorate([
|
33
|
+
observable
|
34
|
+
], State.prototype, "multiple", void 0);
|
35
|
+
__decorate([
|
36
|
+
observable
|
37
|
+
], State.prototype, "AddTaskAble", void 0);
|
38
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/BoardView/components/BoardColumn/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,MAAM,OAAO,KAAK;IAAlB;QAEoB,SAAI,GAAW,EAAE,CAAC;QAClB,aAAQ,GAAY,KAAK,CAAC;QAC1B,YAAO,GAAY,KAAK,CAAC;QACzB,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC1B,gBAAW,GAAY,KAAK,CAAC;IACjD,CAAC;CAAA;AARe;IAAX,UAAU;oCAAsB;AACxB;IAAX,UAAU;mCAA0B;AACzB;IAAX,UAAU;uCAAkC;AACjC;IAAX,UAAU;sCAAiC;AAChC;IAAX,UAAU;sCAAiC;AAChC;IAAX,UAAU;uCAAkC;AACjC;IAAX,UAAU;uCAAkC;AACjC;IAAX,UAAU;0CAAqC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { faCheck, faTimes } from "@fortawesome/pro-light-svg-icons";
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
3
|
+
import { Input, message } from "@voplus/antd";
|
4
|
+
import Card from "@voplus/morpho-ui/es/controls/Card";
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
6
|
+
import React, { useState } from "react";
|
7
|
+
import { useBoardStore } from "../../../../data/board";
|
8
|
+
import { useBoardListEffect } from "../../../../data/board/hooks";
|
9
|
+
import BoardColumn from "../BoardColumn";
|
10
|
+
import styles from "./index.less";
|
11
|
+
import { State } from "./state";
|
12
|
+
const BoardList = (props) => {
|
13
|
+
const colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#16ecec", "#FFC832"];
|
14
|
+
const boards = useBoardStore();
|
15
|
+
const [state] = useState(new State());
|
16
|
+
useBoardListEffect(list => {
|
17
|
+
state.board = list;
|
18
|
+
});
|
19
|
+
const onSave = async () => {
|
20
|
+
if (!state.name)
|
21
|
+
return message.warning("Title is required");
|
22
|
+
await boards.create({ Name: state.name, ParentId: props.parentId });
|
23
|
+
};
|
24
|
+
return useObserver(() => (React.createElement("div", { className: styles["board-list"] },
|
25
|
+
state.board.map((item, index) => {
|
26
|
+
return React.createElement(BoardColumn, { key: item.id, id: item.id, colorStyle: colorList[index % 6] });
|
27
|
+
}),
|
28
|
+
state.AddBoardAble && (React.createElement(Card, { className: "add-board-able", padding: "0 15px", style: { borderTop: ` solid 2px #3AC43A` } },
|
29
|
+
React.createElement(Input, { placeholder: "STATUS NAME", value: state.name, onChange: e => (state.name = e.target.value) }),
|
30
|
+
React.createElement(FAIcon, { icon: faCheck, onClick: onSave }),
|
31
|
+
React.createElement(FAIcon, { icon: faTimes, onClick: () => (state.AddBoardAble = false) }))),
|
32
|
+
React.createElement("div", { className: "add-board", onClick: () => (state.AddBoardAble = true) }, "+ ADD"))));
|
33
|
+
};
|
34
|
+
export default BoardList;
|
35
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/BoardView/components/BoardList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,SAAS,GAAG,CAAC,KAA4B,EAAE,EAAE;IAClD,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAA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C,KAAK,CAAC,GAC3C;YACF,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAI;YAC1C,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,GAAI,CAChE,CACP;QACD,6BAAK,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,YAE/D,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.board-list {
|
2
|
+
height: 100%;
|
3
|
+
display: flex;
|
4
|
+
justify-content: space-between;
|
5
|
+
margin: 10px;
|
6
|
+
padding: 0 10px;
|
7
|
+
:global {
|
8
|
+
.add-board {
|
9
|
+
width: 100px;
|
10
|
+
font-size: 16px;
|
11
|
+
text-align: center;
|
12
|
+
line-height: 50px;
|
13
|
+
cursor: pointer;
|
14
|
+
}
|
15
|
+
.add-board-able {
|
16
|
+
flex: 0.6;
|
17
|
+
display: flex;
|
18
|
+
justify-content: center;
|
19
|
+
align-items: center;
|
20
|
+
height: 50px;
|
21
|
+
color: #000000;
|
22
|
+
line-height: 50px;
|
23
|
+
padding: 0 10px;
|
24
|
+
background: #ffffff;
|
25
|
+
margin-bottom: 15px;
|
26
|
+
.ant-input{
|
27
|
+
padding: 0;
|
28
|
+
border: none;
|
29
|
+
}
|
30
|
+
.ant-input:focus {
|
31
|
+
box-shadow: none;
|
32
|
+
}
|
33
|
+
.svg-inline--fa{
|
34
|
+
cursor: pointer;
|
35
|
+
margin-left: 8px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { observable } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor() {
|
5
|
+
this.board = [];
|
6
|
+
this.id = "";
|
7
|
+
this.name = "";
|
8
|
+
this.AddBoardAble = false;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
__decorate([
|
12
|
+
observable
|
13
|
+
], State.prototype, "board", void 0);
|
14
|
+
__decorate([
|
15
|
+
observable
|
16
|
+
], State.prototype, "id", void 0);
|
17
|
+
__decorate([
|
18
|
+
observable
|
19
|
+
], State.prototype, "name", void 0);
|
20
|
+
__decorate([
|
21
|
+
observable
|
22
|
+
], State.prototype, "AddBoardAble", void 0);
|
23
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/BoardView/components/BoardList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,MAAM,OAAO,KAAK;IAAlB;QACuB,UAAK,GAAa,EAAE,CAAC;QACxB,OAAE,GAAW,EAAE,CAAC;QAChB,SAAI,GAAW,EAAE,CAAC;QAClB,iBAAY,GAAY,KAAK,CAAC;IAClD,CAAC;CAAA;AAJe;IAAX,UAAU;oCAA6B;AAC/B;IAAX,UAAU;iCAAwB;AACvB;IAAX,UAAU;mCAA0B;AACzB;IAAX,UAAU;2CAAsC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const NewTaskForm: (props: {
|
3
|
+
parentId?: string | undefined;
|
4
|
+
className?: string | undefined;
|
5
|
+
block?: boolean | undefined;
|
6
|
+
showView?: boolean | undefined;
|
7
|
+
onSave?: ((params?: any) => void) | undefined;
|
8
|
+
onCancel?: (() => void) | undefined;
|
9
|
+
onShowMore?: (() => void) | undefined;
|
10
|
+
}) => JSX.Element;
|
11
|
+
export default NewTaskForm;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { faCalendar, faCalendarCheck, faFlag, faListAlt, faTimes, faUserPlus } from "@fortawesome/pro-light-svg-icons";
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
3
|
+
import { Button, DatePicker, Form, Input, Modal, Spin } from "@voplus/antd";
|
4
|
+
import { ContactSelect } from "@voplus/morpho-org";
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
6
|
+
import moment from "moment";
|
7
|
+
import React, { useState } from "react";
|
8
|
+
import FlagIcon from "../../../../controls/FlagIcon";
|
9
|
+
import { useTaskStore } from "../../../../data/task";
|
10
|
+
import TaskForm from "../../../tasks/components/NewTaskForm";
|
11
|
+
import styles from "./index.less";
|
12
|
+
import { State } from "./state";
|
13
|
+
const NewTaskForm = (props) => {
|
14
|
+
const tasks = useTaskStore();
|
15
|
+
const [state] = useState(new State());
|
16
|
+
const [startDate, setStartDate] = useState("");
|
17
|
+
const [dueDate, setDueDate] = useState("");
|
18
|
+
const onChange = (value, dateString, type) => {
|
19
|
+
type === "start" ? (state.params.StartDate = value) : (state.params.DueDate = value);
|
20
|
+
type === "start"
|
21
|
+
? setStartDate(moment(dateString.toString()).format("D MMM"))
|
22
|
+
: setDueDate(moment(dateString.toString()).format("D MMM"));
|
23
|
+
};
|
24
|
+
const disabledStartDate = (StartDate) => {
|
25
|
+
const { DueDate } = state.params;
|
26
|
+
if (!StartDate || !DueDate) {
|
27
|
+
return false;
|
28
|
+
}
|
29
|
+
return +moment(StartDate) > +moment(DueDate);
|
30
|
+
};
|
31
|
+
const disabledEndDate = (DueDate) => {
|
32
|
+
const { StartDate } = state.params;
|
33
|
+
if (!DueDate || !StartDate) {
|
34
|
+
return false;
|
35
|
+
}
|
36
|
+
return +moment(DueDate) <= +moment(StartDate);
|
37
|
+
};
|
38
|
+
return useObserver(() => (React.createElement("div", { className: styles["add-board-form"] },
|
39
|
+
React.createElement(Form, null,
|
40
|
+
React.createElement(Form.Item, null,
|
41
|
+
React.createElement(Spin, { spinning: false },
|
42
|
+
React.createElement("div", { className: "form-item-layout" },
|
43
|
+
React.createElement(Input, { autoFocus: true, placeholder: "Task name", prefix: React.createElement(FAIcon, { icon: faTimes }) }),
|
44
|
+
React.createElement("span", { className: "detailed", onClick: () => (state.visible = true) },
|
45
|
+
React.createElement(FAIcon, { icon: faListAlt }))))),
|
46
|
+
React.createElement(Form.Item, null,
|
47
|
+
React.createElement("div", { className: "form-controls" },
|
48
|
+
React.createElement("div", { className: "form-controls-icons" },
|
49
|
+
React.createElement(FlagIcon, { id: props.parentId, icon: React.createElement(FAIcon, { icon: faFlag }), className: "task-icon-star" }),
|
50
|
+
React.createElement("span", { className: "datePicker" },
|
51
|
+
startDate ? (React.createElement("span", { className: "task-date" }, startDate)) : (React.createElement(FAIcon, { icon: faCalendar })),
|
52
|
+
React.createElement(DatePicker, { value: state.params.StartDate, disabledDate: value => disabledStartDate(value), onChange: (value, dateString, type) => onChange(value, dateString, "start"), allowClear: false })),
|
53
|
+
React.createElement("span", { className: "datePicker" },
|
54
|
+
dueDate ? (React.createElement("span", { className: "task-date" }, dueDate)) : (React.createElement(FAIcon, { icon: faCalendarCheck })),
|
55
|
+
React.createElement(DatePicker, { value: state.params.DueDate, disabledDate: value => disabledEndDate(value), onChange: (value, dateString, type) => onChange(value, dateString, "due"), allowClear: false })),
|
56
|
+
React.createElement("span", { className: "task-manager", onClick: () => (state.assign = !state.assign) },
|
57
|
+
React.createElement(FAIcon, { icon: faUserPlus })),
|
58
|
+
state.assign && (React.createElement(ContactSelect, { multiple: true, onChange: (contacts) => (state.params.ManagerIds = contacts.map(({ id }) => id)) }))),
|
59
|
+
React.createElement(Button, { type: "primary", size: "small" }, "SAVE")))),
|
60
|
+
React.createElement(Modal, { title: "New Task", visible: state.visible, footer: null,
|
61
|
+
// onOk={this.handleOk}
|
62
|
+
onCancel: () => (state.visible = false) },
|
63
|
+
React.createElement(TaskForm, { parentId: props.parentId })))));
|
64
|
+
};
|
65
|
+
export default NewTaskForm;
|
66
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
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
|
+
padding: 10px 15px;
|
4
|
+
background: #ffffff;
|
5
|
+
border: 1px solid #2196f3;
|
6
|
+
box-shadow: 1px 1px 0px #2196f3;
|
7
|
+
margin-bottom: 15px;
|
8
|
+
:global {
|
9
|
+
.ant-form-item {
|
10
|
+
margin-bottom: 0;
|
11
|
+
}
|
12
|
+
.form-item-layout {
|
13
|
+
display: flex;
|
14
|
+
align-items: center;
|
15
|
+
padding-right: 5px;
|
16
|
+
.ant-input {
|
17
|
+
font-size: 15px;
|
18
|
+
height: 32px;
|
19
|
+
line-height: 32px;
|
20
|
+
border: none;
|
21
|
+
padding-left: 18px;
|
22
|
+
margin-bottom: 0px;
|
23
|
+
}
|
24
|
+
.ant-input:focus {
|
25
|
+
box-shadow: none;
|
26
|
+
}
|
27
|
+
.ant-input-affix-wrapper .ant-input-prefix {
|
28
|
+
left: 0;
|
29
|
+
}
|
30
|
+
.detailed {
|
31
|
+
font-size: 20px;
|
32
|
+
margin-left: 10px;
|
33
|
+
cursor: pointer;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.form-controls {
|
37
|
+
display: flex;
|
38
|
+
align-items: center;
|
39
|
+
.form-controls-icons {
|
40
|
+
flex: 1;
|
41
|
+
font-size: 16px;
|
42
|
+
> span {
|
43
|
+
margin-right: 15px;
|
44
|
+
}
|
45
|
+
.svg-inline--fa {
|
46
|
+
cursor: pointer;
|
47
|
+
// margin-right: 15px;
|
48
|
+
}
|
49
|
+
.svg-inline--fa:hover {
|
50
|
+
color: @primary-color;
|
51
|
+
}
|
52
|
+
.datePicker {
|
53
|
+
position: relative;
|
54
|
+
.task-date {
|
55
|
+
font-size: 14px;
|
56
|
+
}
|
57
|
+
.ant-calendar-picker {
|
58
|
+
position: absolute;
|
59
|
+
left: 0;
|
60
|
+
top: 0;
|
61
|
+
width: 100%;
|
62
|
+
height: 100%;
|
63
|
+
}
|
64
|
+
.ant-calendar-picker-input.ant-input {
|
65
|
+
width: 100%;
|
66
|
+
height: 100%;
|
67
|
+
padding: 0;
|
68
|
+
border: none;
|
69
|
+
opacity: 0;
|
70
|
+
&:focus {
|
71
|
+
box-shadow: none;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
.ant-calendar-picker-icon {
|
75
|
+
display: none;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
// .task-manager {
|
79
|
+
// flex:1;
|
80
|
+
// position: relative;
|
81
|
+
// .ant-select {
|
82
|
+
// position: absolute;
|
83
|
+
// left: 0;
|
84
|
+
// top: 0;
|
85
|
+
// width: 650%;
|
86
|
+
// }
|
87
|
+
// }
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export declare class State {
|
2
|
+
Params: {
|
3
|
+
Name: string;
|
4
|
+
Description: string;
|
5
|
+
StartDate: undefined;
|
6
|
+
DueDate: undefined;
|
7
|
+
ManagerIds: never[];
|
8
|
+
MemberIds: never[];
|
9
|
+
InheritMembers: boolean;
|
10
|
+
};
|
11
|
+
params: {
|
12
|
+
Name: string;
|
13
|
+
Description: string;
|
14
|
+
StartDate: undefined;
|
15
|
+
DueDate: undefined;
|
16
|
+
ManagerIds: never[];
|
17
|
+
MemberIds: never[];
|
18
|
+
InheritMembers: boolean;
|
19
|
+
};
|
20
|
+
assign: boolean;
|
21
|
+
visible: boolean;
|
22
|
+
showMore: boolean;
|
23
|
+
loading: boolean;
|
24
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { observable } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor() {
|
5
|
+
this.Params = {
|
6
|
+
// ParentId: "",
|
7
|
+
Name: "",
|
8
|
+
Description: "",
|
9
|
+
StartDate: undefined,
|
10
|
+
DueDate: undefined,
|
11
|
+
ManagerIds: [],
|
12
|
+
MemberIds: [],
|
13
|
+
InheritMembers: false
|
14
|
+
};
|
15
|
+
this.params = this.Params;
|
16
|
+
this.assign = false;
|
17
|
+
this.visible = false;
|
18
|
+
this.showMore = false;
|
19
|
+
this.loading = false;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
__decorate([
|
23
|
+
observable
|
24
|
+
], State.prototype, "params", void 0);
|
25
|
+
__decorate([
|
26
|
+
observable
|
27
|
+
], State.prototype, "assign", void 0);
|
28
|
+
__decorate([
|
29
|
+
observable
|
30
|
+
], State.prototype, "visible", void 0);
|
31
|
+
__decorate([
|
32
|
+
observable
|
33
|
+
], State.prototype, "showMore", void 0);
|
34
|
+
__decorate([
|
35
|
+
observable
|
36
|
+
], State.prototype, "loading", void 0);
|
37
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/BoardView/components/NewTaskForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACQ,WAAM,GAAG;YACf,gBAAgB;YAChB,IAAI,EAAE,EAAE;YACR,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,EAAE;YACd,SAAS,EAAE,EAAE;YACb,cAAc,EAAE,KAAK;SACrB,CAAC;QACiB,WAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACrB,WAAM,GAAY,KAAK,CAAC;QACxB,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAY,KAAK,CAAC;QAC1B,YAAO,GAAY,KAAK,CAAC;IAC7C,CAAC;CAAA;AALY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;qCAAgC;AAC/B;IAAX,UAAU;sCAAiC;AAChC;IAAX,UAAU;uCAAkC;AACjC;IAAX,UAAU;sCAAiC"}
|