@voplus/morpho-workspace 1.1.0-dev013 → 1.1.0-dev014
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/state.js +50 -46
- package/es/components/AvatarList/state.js.map +1 -1
- package/es/components/TimeLog/index.d.ts +1 -1
- package/es/data/board/LinkStore.js +38 -34
- package/es/data/board/LinkStore.js.map +1 -1
- package/es/data/board/index.js +2 -0
- package/es/data/board/index.js.map +1 -1
- package/es/data/board/metas.js +15 -11
- package/es/data/board/metas.js.map +1 -1
- package/es/data/meeting/index.js +2 -0
- package/es/data/meeting/index.js.map +1 -1
- package/es/data/meeting/metas.js +22 -18
- package/es/data/meeting/metas.js.map +1 -1
- package/es/data/task/index.js +2 -0
- package/es/data/task/index.js.map +1 -1
- package/es/data/task/metas.js +19 -15
- package/es/data/task/metas.js.map +1 -1
- package/es/modules/board/components/Board/state.d.ts +2 -2
- package/es/modules/board/components/Board/state.js +111 -107
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/board/components/BoardColumn/state.js +142 -138
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/DocumentCard/index.d.ts +4 -4
- package/es/modules/board/components/DocumentCard/state.js +54 -50
- package/es/modules/board/components/DocumentCard/state.js.map +1 -1
- package/es/modules/board/components/LinkList/state.js +31 -27
- package/es/modules/board/components/LinkList/state.js.map +1 -1
- package/es/modules/board/components/NewTaskForm/state.js +41 -37
- package/es/modules/board/components/NewTaskForm/state.js.map +1 -1
- package/es/modules/board/components/TaskCard/state.js +117 -113
- package/es/modules/board/components/TaskCard/state.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/state.js +14 -10
- package/es/modules/board/pages/BoardViewList/state.js.map +1 -1
- package/es/modules/calendar/components/CalendarMenu/index.d.ts +1 -1
- package/es/modules/calendar/components/TaskCard/state.js +58 -54
- package/es/modules/calendar/components/TaskCard/state.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/state.js +12 -8
- package/es/modules/calendar/pages/CalendarMonth/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.d.ts +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.d.ts +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +40 -36
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +47 -43
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +19 -15
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/state.js +22 -18
- package/es/modules/meeting/components/AgendaList/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingDescription/index.d.ts +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.d.ts +3 -3
- package/es/modules/meeting/components/MeetingItem/index.d.ts +1 -1
- package/es/modules/meeting/components/MeetingItem/state.js +22 -18
- package/es/modules/meeting/components/MeetingItem/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.d.ts +2 -2
- package/es/modules/meeting/components/NewMeetingForm/index.js +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/state.js +31 -27
- package/es/modules/meeting/components/NewMeetingForm/state.js.map +1 -1
- package/es/modules/menus/components/Access/index.d.ts +2 -2
- package/es/modules/menus/components/Account/index.d.ts +2 -2
- package/es/modules/menus/components/Status/index.d.ts +2 -2
- package/es/modules/tasks/components/NewTaskForm/index.js +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/state.js +30 -26
- package/es/modules/tasks/components/NewTaskForm/state.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/state.js +22 -18
- package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
- package/es/modules/tasks/components/TaskDescription/index.d.ts +1 -1
- package/es/modules/tasks/components/TaskItem/state.js +157 -153
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.d.ts +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.d.ts +2 -2
- package/es/modules/tasks/components/TaskTimeBox/index.d.ts +4 -4
- package/es/modules/tasks/components/TaskTimeBox/state.js +74 -70
- package/es/modules/tasks/components/TaskTimeBox/state.js.map +1 -1
- package/es/modules/workspaces/components/Access/index.d.ts +2 -2
- package/es/modules/workspaces/components/Account/index.d.ts +2 -2
- package/es/modules/workspaces/components/ListHeard/index.d.ts +1 -1
- package/es/modules/workspaces/components/Status/index.d.ts +2 -2
- package/package.json +5 -5
@@ -2,51 +2,55 @@ import { __decorate } from "tslib";
|
|
2
2
|
import { observable } from "mobx";
|
3
3
|
/** color of member of random display for no url */
|
4
4
|
export const colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#3AC43A", "#FFC832"];
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
5
|
+
let State = /** @class */ (() => {
|
6
|
+
class State {
|
7
|
+
constructor() {
|
8
|
+
this.avatarList = [];
|
9
|
+
this.members = [];
|
10
|
+
this.list = [];
|
11
|
+
this.items = [];
|
12
|
+
/** checked of id of members */
|
13
|
+
this.checkedIds = [];
|
14
|
+
// @observable public loading = false;
|
15
|
+
this.visible = false;
|
16
|
+
this.num = 0;
|
17
|
+
this.hasMore = false;
|
18
|
+
/** Keword of member */
|
19
|
+
this.keyword = "";
|
20
|
+
this.reload = false;
|
21
|
+
}
|
20
22
|
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
23
|
+
__decorate([
|
24
|
+
observable
|
25
|
+
], State.prototype, "avatarList", void 0);
|
26
|
+
__decorate([
|
27
|
+
observable
|
28
|
+
], State.prototype, "members", void 0);
|
29
|
+
__decorate([
|
30
|
+
observable
|
31
|
+
], State.prototype, "list", void 0);
|
32
|
+
__decorate([
|
33
|
+
observable
|
34
|
+
], State.prototype, "items", void 0);
|
35
|
+
__decorate([
|
36
|
+
observable
|
37
|
+
], State.prototype, "checkedIds", void 0);
|
38
|
+
__decorate([
|
39
|
+
observable
|
40
|
+
], State.prototype, "visible", void 0);
|
41
|
+
__decorate([
|
42
|
+
observable
|
43
|
+
], State.prototype, "num", void 0);
|
44
|
+
__decorate([
|
45
|
+
observable
|
46
|
+
], State.prototype, "hasMore", void 0);
|
47
|
+
__decorate([
|
48
|
+
observable
|
49
|
+
], State.prototype, "keyword", void 0);
|
50
|
+
__decorate([
|
51
|
+
observable
|
52
|
+
], State.prototype, "reload", void 0);
|
53
|
+
return State;
|
54
|
+
})();
|
55
|
+
export { State };
|
52
56
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/AvatarList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAYlC,mDAAmD;AACnD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAE5F,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/AvatarList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAYlC,mDAAmD;AACnD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAE5F;IAAA,MAAa,KAAK;QAAlB;YACoB,eAAU,GAAU,EAAE,CAAC;YACvB,YAAO,GAAU,EAAE,CAAC;YACpB,SAAI,GAAU,EAAE,CAAC;YACjB,UAAK,GAAU,EAAE,CAAC;YACrC,+BAA+B;YACZ,eAAU,GAAa,EAAE,CAAC;YAC7C,sCAAsC;YACnB,YAAO,GAAG,KAAK,CAAC;YAChB,QAAG,GAAG,CAAC,CAAC;YACR,YAAO,GAAG,KAAK,CAAC;YACnC,uBAAuB;YACJ,YAAO,GAAG,EAAE,CAAC;YACb,WAAM,GAAG,KAAK,CAAC;QACnC,CAAC;KAAA;IAbY;QAAX,UAAU;6CAA+B;IAC9B;QAAX,UAAU;0CAA4B;IAC3B;QAAX,UAAU;uCAAyB;IACxB;QAAX,UAAU;wCAA0B;IAEzB;QAAX,UAAU;6CAAkC;IAEjC;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;sCAAgB;IACf;QAAX,UAAU;0CAAwB;IAEvB;QAAX,UAAU;0CAAqB;IACpB;QAAX,UAAU;yCAAuB;IACnC,YAAC;KAAA;SAdY,KAAK"}
|
@@ -1,40 +1,44 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed } from "mobx";
|
3
3
|
import { message } from "@voplus/antd";
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
4
|
+
let LinkStore = /** @class */ (() => {
|
5
|
+
class LinkStore {
|
6
|
+
get moveIds() {
|
7
|
+
const moveIds = sessionStorage.getItem("moveIds");
|
8
|
+
return moveIds ? JSON.parse(moveIds) : [];
|
9
|
+
}
|
10
|
+
onMove(links) {
|
11
|
+
const moveIds = links;
|
12
|
+
if (!moveIds.length)
|
13
|
+
return message.warning("nothing to cut");
|
14
|
+
window.sessionStorage.setItem("moveIds", JSON.stringify(moveIds));
|
15
|
+
return message.success("Replicating Success");
|
16
|
+
}
|
17
|
+
onPaste(loader) {
|
18
|
+
if (this.moveIds.length) {
|
19
|
+
loader();
|
20
|
+
this.clear();
|
21
|
+
}
|
22
|
+
else
|
23
|
+
message.warning("nothing to cut");
|
24
|
+
}
|
25
|
+
clear() {
|
26
|
+
window.sessionStorage.clear();
|
20
27
|
}
|
21
|
-
else
|
22
|
-
message.warning("nothing to cut");
|
23
|
-
}
|
24
|
-
clear() {
|
25
|
-
window.sessionStorage.clear();
|
26
28
|
}
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
29
|
+
__decorate([
|
30
|
+
computed
|
31
|
+
], LinkStore.prototype, "moveIds", null);
|
32
|
+
__decorate([
|
33
|
+
action
|
34
|
+
], LinkStore.prototype, "onMove", null);
|
35
|
+
__decorate([
|
36
|
+
action
|
37
|
+
], LinkStore.prototype, "onPaste", null);
|
38
|
+
__decorate([
|
39
|
+
action
|
40
|
+
], LinkStore.prototype, "clear", null);
|
41
|
+
return LinkStore;
|
42
|
+
})();
|
43
|
+
export { LinkStore };
|
40
44
|
//# sourceMappingURL=LinkStore.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LinkStore.js","sourceRoot":"","sources":["../../../src/data/board/LinkStore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOvC,
|
1
|
+
{"version":3,"file":"LinkStore.js","sourceRoot":"","sources":["../../../src/data/board/LinkStore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOvC;IAAA,MAAa,SAAS;QAErB,IAAI,OAAO;YACV,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAClD,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,CAAC;QAEM,MAAM,CAAC,KAAwB;YACrC,MAAM,OAAO,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,OAAO,CAAC,MAAM;gBAAE,OAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;YAC9D,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YAClE,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC/C,CAAC;QAEM,OAAO,CAAC,MAA0B;YACxC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;gBACxB,MAAM,EAAE,CAAC;gBACT,IAAI,CAAC,KAAK,EAAE,CAAC;aACb;;gBAAM,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC1C,CAAC;QAEM,KAAK;YACX,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAC/B,CAAC;KACD;IAtBA;QADC,QAAQ;4CAIR;IAED;QADC,MAAM;2CAMN;IAED;QADC,MAAM;4CAMN;IAED;QADC,MAAM;0CAGN;IACF,gBAAC;KAAA;SAxBY,SAAS"}
|
package/es/data/board/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/board/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/board/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/es/data/board/metas.js
CHANGED
@@ -3,16 +3,20 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
3
3
|
import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
|
4
4
|
import React from "react";
|
5
5
|
/** Meta information for Board document. */
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
let BoardTypeMeta = /** @class */ (() => {
|
7
|
+
class BoardTypeMeta extends DefaultDocumentTypeMeta {
|
8
|
+
get name() {
|
9
|
+
return BoardTypeMeta.TypeName;
|
10
|
+
}
|
11
|
+
getIcon(document) {
|
12
|
+
return React.createElement(FontAwesomeIcon, { icon: faColumns });
|
13
|
+
}
|
14
|
+
getTabUrl(document) {
|
15
|
+
throw new Error("Method not implemented.");
|
16
|
+
}
|
9
17
|
}
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
throw new Error("Method not implemented.");
|
15
|
-
}
|
16
|
-
}
|
17
|
-
BoardTypeMeta.TypeName = "Board";
|
18
|
+
BoardTypeMeta.TypeName = "Board";
|
19
|
+
return BoardTypeMeta;
|
20
|
+
})();
|
21
|
+
export { BoardTypeMeta };
|
18
22
|
//# sourceMappingURL=metas.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/board/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAa,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,2CAA2C;AAC3C,
|
1
|
+
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/board/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAa,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,2CAA2C;AAC3C;IAAA,MAAa,aAAc,SAAQ,uBAAuB;QAGzD,IAAW,IAAI;YACd,OAAO,aAAa,CAAC,QAAQ,CAAC;QAC/B,CAAC;QAEM,OAAO,CAAC,QAAmB;YACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;QAC7C,CAAC;QAEM,SAAS,CAAC,QAAmB;YACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC5C,CAAC;;IAZa,sBAAQ,GAAG,OAAO,CAAC;IAalC,oBAAC;KAAA;SAdY,aAAa"}
|
package/es/data/meeting/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/meeting/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/meeting/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/es/data/meeting/metas.js
CHANGED
@@ -5,23 +5,27 @@ import MeetingQuickViewDialog from "../../modules/meeting/components/MeetingQuic
|
|
5
5
|
import React from "react";
|
6
6
|
import { faCalendarDay } from "@fortawesome/pro-solid-svg-icons";
|
7
7
|
/** Meta information for Meeting document. */
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
let MeetingTypeMeta = /** @class */ (() => {
|
9
|
+
class MeetingTypeMeta extends DefaultDocumentTypeMeta {
|
10
|
+
get name() {
|
11
|
+
return MeetingTypeMeta.TypeName;
|
12
|
+
}
|
13
|
+
getIcon(document) {
|
14
|
+
return React.createElement(FontAwesomeIcon, { icon: faCalendarDay });
|
15
|
+
}
|
16
|
+
getTabUrl(document) {
|
17
|
+
throw new Error("Method not implemented.");
|
18
|
+
}
|
19
|
+
getPropertiesView(document) {
|
20
|
+
return React.createElement(MeetingPropertiesView, { id: document.id });
|
21
|
+
}
|
22
|
+
getQuickView(document, props) {
|
23
|
+
props.id = document.id;
|
24
|
+
return (React.createElement(MeetingQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
|
25
|
+
}
|
11
26
|
}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
throw new Error("Method not implemented.");
|
17
|
-
}
|
18
|
-
getPropertiesView(document) {
|
19
|
-
return React.createElement(MeetingPropertiesView, { id: document.id });
|
20
|
-
}
|
21
|
-
getQuickView(document, props) {
|
22
|
-
props.id = document.id;
|
23
|
-
return (React.createElement(MeetingQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
|
24
|
-
}
|
25
|
-
}
|
26
|
-
MeetingTypeMeta.TypeName = "Meeting";
|
27
|
+
MeetingTypeMeta.TypeName = "Meeting";
|
28
|
+
return MeetingTypeMeta;
|
29
|
+
})();
|
30
|
+
export { MeetingTypeMeta };
|
27
31
|
//# sourceMappingURL=metas.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/meeting/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAa,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAE7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE,6CAA6C;AAC7C,
|
1
|
+
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/meeting/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAa,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAE7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE,6CAA6C;AAC7C;IAAA,MAAa,eAAgB,SAAQ,uBAAuB;QAG3D,IAAW,IAAI;YACd,OAAO,eAAe,CAAC,QAAQ,CAAC;QACjC,CAAC;QAEM,OAAO,CAAC,QAAmB;YACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,aAAa,GAAI,CAAC;QACjD,CAAC;QAEM,SAAS,CAAC,QAAmB;YACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC5C,CAAC;QAEM,iBAAiB,CAAC,QAAmB;YAC3C,OAAO,oBAAC,qBAAqB,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC;QACnD,CAAC;QAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;YAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;YACvB,OAAO,CACN,oBAAC,sBAAsB,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC7F,CAAC;QACH,CAAC;;IAvBa,wBAAQ,GAAG,SAAS,CAAC;IAwBpC,sBAAC;KAAA;SAzBY,eAAe"}
|
package/es/data/task/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/task/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/task/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/es/data/task/metas.js
CHANGED
@@ -5,20 +5,24 @@ import React from "react";
|
|
5
5
|
import TaskDetail from "../../modules/tasks/components/TaskPropertiesView";
|
6
6
|
import TaskQuickViewDialog from "../../modules/tasks/components/TaskQuickViewDialog";
|
7
7
|
/** Meta information for Task document. */
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
let TaskTypeMeta = /** @class */ (() => {
|
9
|
+
class TaskTypeMeta extends DefaultDocumentTypeMeta {
|
10
|
+
get name() {
|
11
|
+
return TaskTypeMeta.TypeName;
|
12
|
+
}
|
13
|
+
getIcon(document) {
|
14
|
+
return React.createElement(FontAwesomeIcon, { icon: faBallot });
|
15
|
+
}
|
16
|
+
getPropertiesView(document) {
|
17
|
+
return React.createElement(TaskDetail, { id: document.id });
|
18
|
+
}
|
19
|
+
getQuickView(document, props) {
|
20
|
+
props.id = document.id;
|
21
|
+
return (React.createElement(TaskQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
|
22
|
+
}
|
11
23
|
}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
return React.createElement(TaskDetail, { id: document.id });
|
17
|
-
}
|
18
|
-
getQuickView(document, props) {
|
19
|
-
props.id = document.id;
|
20
|
-
return (React.createElement(TaskQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
|
21
|
-
}
|
22
|
-
}
|
23
|
-
TaskTypeMeta.TypeName = "Task";
|
24
|
+
TaskTypeMeta.TypeName = "Task";
|
25
|
+
return TaskTypeMeta;
|
26
|
+
})();
|
27
|
+
export { TaskTypeMeta };
|
24
28
|
//# sourceMappingURL=metas.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/task/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAa,MAAM,yBAAyB,CAAC;AAE7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,mDAAmD,CAAC;AAC3E,OAAO,mBAAmB,MAAM,oDAAoD,CAAC;AAErF,0CAA0C;AAC1C,
|
1
|
+
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/task/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAa,MAAM,yBAAyB,CAAC;AAE7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,mDAAmD,CAAC;AAC3E,OAAO,mBAAmB,MAAM,oDAAoD,CAAC;AAErF,0CAA0C;AAC1C;IAAA,MAAa,YAAa,SAAQ,uBAAuB;QAGxD,IAAW,IAAI;YACd,OAAO,YAAY,CAAC,QAAQ,CAAC;QAC9B,CAAC;QAEM,OAAO,CAAC,QAAmB;YACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,GAAI,CAAC;QAC5C,CAAC;QAEM,iBAAiB,CAAC,QAAmB;YAC3C,OAAO,oBAAC,UAAU,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC;QACxC,CAAC;QAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;YAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;YACvB,OAAO,CACN,oBAAC,mBAAmB,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC1F,CAAC;QACH,CAAC;;IAnBa,qBAAQ,GAAG,MAAM,CAAC;IAoBjC,mBAAC;KAAA;SArBY,YAAY"}
|
@@ -24,8 +24,8 @@ export declare class State {
|
|
24
24
|
destination: any;
|
25
25
|
/** BoardColumn head border-top color */
|
26
26
|
colorList: string[];
|
27
|
-
onBoardColumnCreated: (s: BoardColumnStore, t:
|
28
|
-
onBoardColumnDeleted: (s: BoardColumnStore, t:
|
27
|
+
onBoardColumnCreated: (s: BoardColumnStore, t: IBoardColumn) => void;
|
28
|
+
onBoardColumnDeleted: (s: BoardColumnStore, t: IBoardColumn) => void;
|
29
29
|
subscribeOnBoardCreateCallback: () => () => void;
|
30
30
|
/** add BoardColumn save */
|
31
31
|
onSave: () => Promise<any>;
|
@@ -1,118 +1,122 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, observable } from "mobx";
|
3
3
|
import { message } from "@voplus/antd";
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
this.reload = false;
|
14
|
-
/** add BoardColumn save loading */
|
15
|
-
this.addLoading = false;
|
16
|
-
/** add BoardColumn */
|
17
|
-
this.addBoardColumnAble = false;
|
18
|
-
/** BoardColumn head border-top color */
|
19
|
-
this.colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#16ecec", "#FFC832"];
|
20
|
-
this.onBoardColumnCreated = (s, t) => {
|
21
|
-
if (t.parentId === this.props.parentId) {
|
22
|
-
this.boardcolumns.push(t);
|
23
|
-
this.reload = true;
|
24
|
-
}
|
25
|
-
};
|
26
|
-
this.onBoardColumnDeleted = (s, t) => {
|
27
|
-
this.boardcolumns = this.boardcolumns.filter(item => item.id !== t.id);
|
28
|
-
};
|
29
|
-
this.subscribeOnBoardCreateCallback = () => {
|
30
|
-
this._store.ItemCreatedEvent.subscribe(this.onBoardColumnCreated);
|
31
|
-
this._store.ItemDeletedEvent.subscribe(this.onBoardColumnDeleted);
|
32
|
-
return () => {
|
33
|
-
this._store.ItemCreatedEvent.unsubscribe(this.onBoardColumnCreated);
|
34
|
-
this._store.ItemDeletedEvent.unsubscribe(this.onBoardColumnDeleted);
|
35
|
-
};
|
36
|
-
};
|
37
|
-
/** add BoardColumn save */
|
38
|
-
this.onSave = async () => {
|
39
|
-
if (!this.name)
|
40
|
-
return message.warning("Title is required");
|
41
|
-
this.addLoading = true;
|
42
|
-
await this._store.create({ Name: this.name, ParentId: this.props.parentId });
|
4
|
+
let State = /** @class */ (() => {
|
5
|
+
class State {
|
6
|
+
constructor(_store, _docStore) {
|
7
|
+
this._store = _store;
|
8
|
+
this._docStore = _docStore;
|
9
|
+
this.boardcolumns = [];
|
10
|
+
/** search filter 1.5秒 */
|
11
|
+
this.timeout = null;
|
12
|
+
/** add BoardColumn name */
|
43
13
|
this.name = "";
|
14
|
+
this.reload = false;
|
15
|
+
/** add BoardColumn save loading */
|
44
16
|
this.addLoading = false;
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
17
|
+
/** add BoardColumn */
|
18
|
+
this.addBoardColumnAble = false;
|
19
|
+
/** BoardColumn head border-top color */
|
20
|
+
this.colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#16ecec", "#FFC832"];
|
21
|
+
this.onBoardColumnCreated = (s, t) => {
|
22
|
+
if (t.parentId === this.props.parentId) {
|
23
|
+
this.boardcolumns.push(t);
|
24
|
+
this.reload = true;
|
25
|
+
}
|
26
|
+
};
|
27
|
+
this.onBoardColumnDeleted = (s, t) => {
|
28
|
+
this.boardcolumns = this.boardcolumns.filter(item => item.id !== t.id);
|
29
|
+
};
|
30
|
+
this.subscribeOnBoardCreateCallback = () => {
|
31
|
+
this._store.ItemCreatedEvent.subscribe(this.onBoardColumnCreated);
|
32
|
+
this._store.ItemDeletedEvent.subscribe(this.onBoardColumnDeleted);
|
33
|
+
return () => {
|
34
|
+
this._store.ItemCreatedEvent.unsubscribe(this.onBoardColumnCreated);
|
35
|
+
this._store.ItemDeletedEvent.unsubscribe(this.onBoardColumnDeleted);
|
36
|
+
};
|
37
|
+
};
|
38
|
+
/** add BoardColumn save */
|
39
|
+
this.onSave = async () => {
|
40
|
+
if (!this.name)
|
41
|
+
return message.warning("Title is required");
|
42
|
+
this.addLoading = true;
|
43
|
+
await this._store.create({ Name: this.name, ParentId: this.props.parentId });
|
44
|
+
this.name = "";
|
45
|
+
this.addLoading = false;
|
46
|
+
};
|
57
47
|
}
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
48
|
+
/** 拖拽方法 */
|
49
|
+
onDragEnd(result) {
|
50
|
+
// dropped nowhere
|
51
|
+
if (!result.destination) {
|
52
|
+
return;
|
62
53
|
}
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
this._docStore.moveAfter(draggableId, afterId);
|
54
|
+
const { source, destination, draggableId } = result;
|
55
|
+
// did not move anywhere - can bail early
|
56
|
+
if (source.droppableId === destination.droppableId && source.index === destination.index) {
|
57
|
+
return;
|
68
58
|
}
|
69
|
-
|
70
|
-
|
71
|
-
|
59
|
+
// reordering column
|
60
|
+
if (result.type === "COLUMN") {
|
61
|
+
if (destination.index === 0) {
|
62
|
+
this._docStore.moveAfter(draggableId, "");
|
63
|
+
}
|
64
|
+
else {
|
65
|
+
const afterId = this.boardcolumns.length - 1 === destination.index
|
66
|
+
? this.boardcolumns[destination.index].id
|
67
|
+
: this.boardcolumns[destination.index - 1].id;
|
68
|
+
this._docStore.moveAfter(draggableId, afterId);
|
69
|
+
}
|
70
|
+
const [removed] = this.boardcolumns.splice(source.index, 1);
|
71
|
+
this.boardcolumns.splice(destination.index, 0, removed);
|
72
|
+
return;
|
73
|
+
}
|
74
|
+
const linkId = draggableId.split("/")[0];
|
75
|
+
const rightId = draggableId.split("/")[1];
|
76
|
+
this._docStore.moveLinks(destination.droppableId, source.droppableId, [{ Type: "Association", RightId: rightId, Position: destination.index }], [linkId]);
|
77
|
+
this.source = { id: source.droppableId, linkId: linkId };
|
78
|
+
this.destination = {
|
79
|
+
id: destination.droppableId,
|
80
|
+
rightId: rightId,
|
81
|
+
linkId: linkId,
|
82
|
+
index: destination.index
|
83
|
+
};
|
72
84
|
}
|
73
|
-
const linkId = draggableId.split("/")[0];
|
74
|
-
const rightId = draggableId.split("/")[1];
|
75
|
-
this._docStore.moveLinks(destination.droppableId, source.droppableId, [{ Type: "Association", RightId: rightId, Position: destination.index }], [linkId]);
|
76
|
-
this.source = { id: source.droppableId, linkId: linkId };
|
77
|
-
this.destination = {
|
78
|
-
id: destination.droppableId,
|
79
|
-
rightId: rightId,
|
80
|
-
linkId: linkId,
|
81
|
-
index: destination.index
|
82
|
-
};
|
83
85
|
}
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
86
|
+
__decorate([
|
87
|
+
observable
|
88
|
+
], State.prototype, "boardcolumns", void 0);
|
89
|
+
__decorate([
|
90
|
+
observable
|
91
|
+
], State.prototype, "timeout", void 0);
|
92
|
+
__decorate([
|
93
|
+
observable
|
94
|
+
], State.prototype, "name", void 0);
|
95
|
+
__decorate([
|
96
|
+
observable
|
97
|
+
], State.prototype, "reload", void 0);
|
98
|
+
__decorate([
|
99
|
+
observable
|
100
|
+
], State.prototype, "addLoading", void 0);
|
101
|
+
__decorate([
|
102
|
+
observable
|
103
|
+
], State.prototype, "addBoardColumnAble", void 0);
|
104
|
+
__decorate([
|
105
|
+
observable
|
106
|
+
], State.prototype, "source", void 0);
|
107
|
+
__decorate([
|
108
|
+
observable
|
109
|
+
], State.prototype, "destination", void 0);
|
110
|
+
__decorate([
|
111
|
+
observable
|
112
|
+
], State.prototype, "colorList", void 0);
|
113
|
+
__decorate([
|
114
|
+
action
|
115
|
+
], State.prototype, "onSave", void 0);
|
116
|
+
__decorate([
|
117
|
+
action
|
118
|
+
], State.prototype, "onDragEnd", null);
|
119
|
+
return State;
|
120
|
+
})();
|
121
|
+
export { State };
|
118
122
|
//# sourceMappingURL=state.js.map
|