@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
@@ -1,119 +1,123 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed, observable } from "mobx";
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
/** task QuickView */
|
16
|
-
this.visibleQuickView = false;
|
17
|
-
this.isHover = false;
|
18
|
-
this.reload = false;
|
19
|
-
}
|
20
|
-
get readonly() {
|
21
|
-
return this.task.status === "Readonly";
|
22
|
-
}
|
23
|
-
get childMembers() {
|
24
|
-
return (this.task.childMembers || [])
|
25
|
-
.filter(item => !this.task.members.some(member => member.id === item.id))
|
26
|
-
.map(item => ({
|
27
|
-
...item,
|
28
|
-
disabled: true
|
29
|
-
}));
|
30
|
-
}
|
31
|
-
/** edit task */
|
32
|
-
edit() {
|
33
|
-
this.name = this.task.name;
|
34
|
-
this.ids = [...(this.task.members || [])].map(({ id }) => id);
|
35
|
-
this.isHover = false;
|
36
|
-
this.editable = !this.editable;
|
37
|
-
}
|
38
|
-
/** edit task save */
|
39
|
-
async save() {
|
40
|
-
if (!this.name && !this.ids.length)
|
41
|
-
return;
|
42
|
-
const ids = [...(this.task.members || []), ...this.childMembers].map(({ id }) => id);
|
43
|
-
const noChange = this.name.trim() === this.task.name && this.ids.sort().toString() === ids.sort().toString();
|
44
|
-
// 有变更才保存
|
45
|
-
if (!noChange) {
|
46
|
-
this.loading = true;
|
47
|
-
await this._store.edit(this.task.id, { Name: this.name, MemberIds: this.ids });
|
3
|
+
let State = /** @class */ (() => {
|
4
|
+
class State {
|
5
|
+
constructor(_store, _docStore) {
|
6
|
+
this._store = _store;
|
7
|
+
this._docStore = _docStore;
|
8
|
+
/** task members ids */
|
9
|
+
this.ids = [];
|
10
|
+
/** edit task name */
|
11
|
+
this.name = "";
|
12
|
+
/** edit task */
|
13
|
+
this.editable = false;
|
14
|
+
/** edit task save loading */
|
48
15
|
this.loading = false;
|
16
|
+
/** task QuickView */
|
17
|
+
this.visibleQuickView = false;
|
18
|
+
this.isHover = false;
|
19
|
+
this.reload = false;
|
20
|
+
}
|
21
|
+
get readonly() {
|
22
|
+
return this.task.status === "Readonly";
|
23
|
+
}
|
24
|
+
get childMembers() {
|
25
|
+
return (this.task.childMembers || [])
|
26
|
+
.filter(item => !this.task.members.some(member => member.id === item.id))
|
27
|
+
.map(item => ({
|
28
|
+
...item,
|
29
|
+
disabled: true
|
30
|
+
}));
|
31
|
+
}
|
32
|
+
/** edit task */
|
33
|
+
edit() {
|
34
|
+
this.name = this.task.name;
|
35
|
+
this.ids = [...(this.task.members || [])].map(({ id }) => id);
|
36
|
+
this.isHover = false;
|
37
|
+
this.editable = !this.editable;
|
38
|
+
}
|
39
|
+
/** edit task save */
|
40
|
+
async save() {
|
41
|
+
if (!this.name && !this.ids.length)
|
42
|
+
return;
|
43
|
+
const ids = [...(this.task.members || []), ...this.childMembers].map(({ id }) => id);
|
44
|
+
const noChange = this.name.trim() === this.task.name && this.ids.sort().toString() === ids.sort().toString();
|
45
|
+
// 有变更才保存
|
46
|
+
if (!noChange) {
|
47
|
+
this.loading = true;
|
48
|
+
await this._store.edit(this.task.id, { Name: this.name, MemberIds: this.ids });
|
49
|
+
this.loading = false;
|
50
|
+
}
|
51
|
+
this.editable = false;
|
52
|
+
}
|
53
|
+
/** delete link */
|
54
|
+
delete() {
|
55
|
+
this._docStore.editLinks(this.props.leftId, { RemoveLinks: [this.props.linkId] });
|
56
|
+
}
|
57
|
+
/** task Lock */
|
58
|
+
lock() {
|
59
|
+
this._docStore.edit(this.task.id, { Status: "Readonly" });
|
60
|
+
}
|
61
|
+
/** task unlock */
|
62
|
+
unlock() {
|
63
|
+
this._docStore.edit(this.task.id, { Status: "Normal" });
|
64
|
+
}
|
65
|
+
/** task change important */
|
66
|
+
changeImportant(e) {
|
67
|
+
if (this.readonly)
|
68
|
+
return;
|
69
|
+
e.stopPropagation();
|
49
70
|
}
|
50
|
-
this.editable = false;
|
51
|
-
}
|
52
|
-
/** delete link */
|
53
|
-
delete() {
|
54
|
-
this._docStore.editLinks(this.props.leftId, { RemoveLinks: [this.props.linkId] });
|
55
|
-
}
|
56
|
-
/** task Lock */
|
57
|
-
lock() {
|
58
|
-
this._docStore.edit(this.task.id, { Status: "Readonly" });
|
59
|
-
}
|
60
|
-
/** task unlock */
|
61
|
-
unlock() {
|
62
|
-
this._docStore.edit(this.task.id, { Status: "Normal" });
|
63
|
-
}
|
64
|
-
/** task change important */
|
65
|
-
changeImportant(e) {
|
66
|
-
if (this.readonly)
|
67
|
-
return;
|
68
|
-
e.stopPropagation();
|
69
71
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
-
|
118
|
-
|
72
|
+
__decorate([
|
73
|
+
observable
|
74
|
+
], State.prototype, "task", void 0);
|
75
|
+
__decorate([
|
76
|
+
observable
|
77
|
+
], State.prototype, "ids", void 0);
|
78
|
+
__decorate([
|
79
|
+
observable
|
80
|
+
], State.prototype, "name", void 0);
|
81
|
+
__decorate([
|
82
|
+
observable
|
83
|
+
], State.prototype, "editable", void 0);
|
84
|
+
__decorate([
|
85
|
+
observable
|
86
|
+
], State.prototype, "loading", void 0);
|
87
|
+
__decorate([
|
88
|
+
observable
|
89
|
+
], State.prototype, "visibleQuickView", void 0);
|
90
|
+
__decorate([
|
91
|
+
observable
|
92
|
+
], State.prototype, "isHover", void 0);
|
93
|
+
__decorate([
|
94
|
+
observable
|
95
|
+
], State.prototype, "reload", void 0);
|
96
|
+
__decorate([
|
97
|
+
computed
|
98
|
+
], State.prototype, "readonly", null);
|
99
|
+
__decorate([
|
100
|
+
computed
|
101
|
+
], State.prototype, "childMembers", null);
|
102
|
+
__decorate([
|
103
|
+
action
|
104
|
+
], State.prototype, "edit", null);
|
105
|
+
__decorate([
|
106
|
+
action
|
107
|
+
], State.prototype, "save", null);
|
108
|
+
__decorate([
|
109
|
+
action
|
110
|
+
], State.prototype, "delete", null);
|
111
|
+
__decorate([
|
112
|
+
action
|
113
|
+
], State.prototype, "lock", null);
|
114
|
+
__decorate([
|
115
|
+
action
|
116
|
+
], State.prototype, "unlock", null);
|
117
|
+
__decorate([
|
118
|
+
action
|
119
|
+
], State.prototype, "changeImportant", null);
|
120
|
+
return State;
|
121
|
+
})();
|
122
|
+
export { State };
|
119
123
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/TaskCard/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAcpD,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/TaskCard/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAcpD;IAAA,MAAa,KAAK;QACjB,YAA2B,MAAiB,EAAU,SAAwB;YAAnD,WAAM,GAAN,MAAM,CAAW;YAAU,cAAS,GAAT,SAAS,CAAe;YAG9E,uBAAuB;YACJ,QAAG,GAAa,EAAE,CAAC;YACtC,qBAAqB;YACF,SAAI,GAAG,EAAE,CAAC;YAC7B,gBAAgB;YACG,aAAQ,GAAG,KAAK,CAAC;YACpC,6BAA6B;YACV,YAAO,GAAG,KAAK,CAAC;YACnC,qBAAqB;YACF,qBAAgB,GAAG,KAAK,CAAC;YACzB,YAAO,GAAG,KAAK,CAAC;YAChB,WAAM,GAAG,KAAK,CAAC;QAd+C,CAAC;QAiBlF,IAAW,QAAQ;YAClB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC;QACxC,CAAC;QAGD,IAAW,YAAY;YACtB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC;iBACnC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC;iBACxE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACb,GAAG,IAAI;gBACP,QAAQ,EAAE,IAAI;aACd,CAAC,CAAC,CAAC;QACN,CAAC;QAED,gBAAgB;QAET,IAAI;YACV,IAAI,CAAC,IAAI,GAAG,IAAI,C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+
class State {
|
5
|
+
constructor() {
|
6
|
+
this.id = "";
|
7
|
+
}
|
6
8
|
}
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
__decorate([
|
10
|
+
observable
|
11
|
+
], State.prototype, "id", void 0);
|
12
|
+
__decorate([
|
13
|
+
observable
|
14
|
+
], State.prototype, "board", void 0);
|
15
|
+
return State;
|
16
|
+
})();
|
17
|
+
export { State };
|
14
18
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC;IAAA,MAAa,KAAK;QAAlB;YACoB,OAAE,GAAG,EAAE,CAAC;QAE5B,CAAC;KAAA;IAFY;QAAX,UAAU;qCAAgB;IACf;QAAX,UAAU;wCAAsB;IAClC,YAAC;KAAA;SAHY,KAAK"}
|
@@ -1,58 +1,62 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { observable } from "mobx";
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
3
|
+
let State = /** @class */ (() => {
|
4
|
+
class State {
|
5
|
+
constructor() {
|
6
|
+
this.id = "";
|
7
|
+
this.ids = [];
|
8
|
+
this.members = [];
|
9
|
+
this.name = "";
|
10
|
+
this.editable = false;
|
11
|
+
this.loading = false;
|
12
|
+
this.visible = false;
|
13
|
+
this.visibleQuickView = false;
|
14
|
+
this.modalType = "";
|
15
|
+
this.isHover = false;
|
16
|
+
this.isMenu = false;
|
17
|
+
this.reload = false;
|
18
|
+
}
|
17
19
|
}
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
20
|
+
__decorate([
|
21
|
+
observable
|
22
|
+
], State.prototype, "task", void 0);
|
23
|
+
__decorate([
|
24
|
+
observable
|
25
|
+
], State.prototype, "id", void 0);
|
26
|
+
__decorate([
|
27
|
+
observable
|
28
|
+
], State.prototype, "ids", void 0);
|
29
|
+
__decorate([
|
30
|
+
observable
|
31
|
+
], State.prototype, "members", void 0);
|
32
|
+
__decorate([
|
33
|
+
observable
|
34
|
+
], State.prototype, "name", void 0);
|
35
|
+
__decorate([
|
36
|
+
observable
|
37
|
+
], State.prototype, "editable", void 0);
|
38
|
+
__decorate([
|
39
|
+
observable
|
40
|
+
], State.prototype, "loading", void 0);
|
41
|
+
__decorate([
|
42
|
+
observable
|
43
|
+
], State.prototype, "visible", void 0);
|
44
|
+
__decorate([
|
45
|
+
observable
|
46
|
+
], State.prototype, "visibleQuickView", void 0);
|
47
|
+
__decorate([
|
48
|
+
observable
|
49
|
+
], State.prototype, "modalType", void 0);
|
50
|
+
__decorate([
|
51
|
+
observable
|
52
|
+
], State.prototype, "isHover", void 0);
|
53
|
+
__decorate([
|
54
|
+
observable
|
55
|
+
], State.prototype, "isMenu", void 0);
|
56
|
+
__decorate([
|
57
|
+
observable
|
58
|
+
], State.prototype, "reload", void 0);
|
59
|
+
return State;
|
60
|
+
})();
|
61
|
+
export { State };
|
58
62
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/components/TaskCard/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/components/TaskCard/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC;IAAA,MAAa,KAAK;QAAlB;YAEoB,OAAE,GAAG,EAAE,CAAC;YACR,QAAG,GAAa,EAAE,CAAC;YACnB,YAAO,GAAU,EAAE,CAAC;YACpB,SAAI,GAAG,EAAE,CAAC;YACV,aAAQ,GAAG,KAAK,CAAC;YACjB,YAAO,GAAG,KAAK,CAAC;YAChB,YAAO,GAAG,KAAK,CAAC;YAChB,qBAAgB,GAAG,KAAK,CAAC;YACzB,cAAS,GAAG,EAAE,CAAC;YACf,YAAO,GAAG,KAAK,CAAC;YAChB,WAAM,GAAG,KAAK,CAAC;YACf,WAAM,GAAG,KAAK,CAAC;QACnC,CAAC;KAAA;IAbY;QAAX,UAAU;uCAAoB;IACnB;QAAX,UAAU;qCAAgB;IACf;QAAX,UAAU;sCAA2B;IAC1B;QAAX,UAAU;0CAA4B;IAC3B;QAAX,UAAU;uCAAkB;IACjB;QAAX,UAAU;2CAAyB;IACxB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;mDAAiC;IAChC;QAAX,UAAU;4CAAuB;IACtB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;yCAAuB;IACtB;QAAX,UAAU;yCAAuB;IACnC,YAAC;KAAA;SAdY,KAAK"}
|
@@ -1,12 +1,16 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { observable } from "mobx";
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
let State = /** @class */ (() => {
|
4
|
+
class State {
|
5
|
+
constructor() {
|
6
|
+
// @observable public tasks: ITask[] = [];
|
7
|
+
this.dayGrid = "month";
|
8
|
+
}
|
7
9
|
}
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
__decorate([
|
11
|
+
observable
|
12
|
+
], State.prototype, "dayGrid", void 0);
|
13
|
+
return State;
|
14
|
+
})();
|
15
|
+
export { State };
|
12
16
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/pages/CalendarMonth/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/pages/CalendarMonth/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC;IAAA,MAAa,KAAK;QAAlB;YACC,0CAA0C;YACvB,YAAO,GAAG,OAAO,CAAC;QACtC,CAAC;KAAA;IADY;QAAX,UAAU;0CAA0B;IACtC,YAAC;KAAA;SAHY,KAAK"}
|
@@ -1,41 +1,45 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { observable } from "mobx";
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
this.
|
13
|
-
|
14
|
-
|
15
|
-
this.onTaskDeleted = (s, t) => {
|
16
|
-
if (t.type == "Task")
|
17
|
-
this.tasks = this.tasks.filter(task => task.id !== t.id);
|
18
|
-
};
|
19
|
-
this.subscribeOnTaskCreateCallback = () => {
|
20
|
-
this._store.DocumentCreatedEvent.subscribe(this.onTaskCreated);
|
21
|
-
this._store.DocumentDeletedEvent.subscribe(this.onTaskDeleted);
|
22
|
-
return () => {
|
23
|
-
this._store.DocumentCreatedEvent.unsubscribe(this.onTaskCreated);
|
24
|
-
this._store.DocumentDeletedEvent.unsubscribe(this.onTaskDeleted);
|
3
|
+
let State = /** @class */ (() => {
|
4
|
+
class State {
|
5
|
+
constructor(_store) {
|
6
|
+
this._store = _store;
|
7
|
+
this.tasks = [];
|
8
|
+
this.addAble = false;
|
9
|
+
this.loading = true;
|
10
|
+
this.showMore = false;
|
11
|
+
this.onTaskCreated = (s, t) => {
|
12
|
+
if (t.parentId === this.props.id && t.type == "Task") {
|
13
|
+
this.tasks.push(t);
|
14
|
+
}
|
25
15
|
};
|
26
|
-
|
16
|
+
this.onTaskDeleted = (s, t) => {
|
17
|
+
if (t.type == "Task")
|
18
|
+
this.tasks = this.tasks.filter(task => task.id !== t.id);
|
19
|
+
};
|
20
|
+
this.subscribeOnTaskCreateCallback = () => {
|
21
|
+
this._store.DocumentCreatedEvent.subscribe(this.onTaskCreated);
|
22
|
+
this._store.DocumentDeletedEvent.subscribe(this.onTaskDeleted);
|
23
|
+
return () => {
|
24
|
+
this._store.DocumentCreatedEvent.unsubscribe(this.onTaskCreated);
|
25
|
+
this._store.DocumentDeletedEvent.unsubscribe(this.onTaskDeleted);
|
26
|
+
};
|
27
|
+
};
|
28
|
+
}
|
27
29
|
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
30
|
+
__decorate([
|
31
|
+
observable
|
32
|
+
], State.prototype, "tasks", void 0);
|
33
|
+
__decorate([
|
34
|
+
observable
|
35
|
+
], State.prototype, "addAble", void 0);
|
36
|
+
__decorate([
|
37
|
+
observable
|
38
|
+
], State.prototype, "loading", void 0);
|
39
|
+
__decorate([
|
40
|
+
observable
|
41
|
+
], State.prototype, "showMore", void 0);
|
42
|
+
return State;
|
43
|
+
})();
|
44
|
+
export { State };
|
41
45
|
//# sourceMappingURL=state.js.map
|
package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AASlC,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AASlC;IAAA,MAAa,KAAK;QAEjB,YAA2B,MAAqB;YAArB,WAAM,GAAN,MAAM,CAAe;YAE7B,UAAK,GAAY,EAAE,CAAC;YACpB,YAAO,GAAG,KAAK,CAAC;YAChB,YAAO,GAAG,IAAI,CAAC;YACf,aAAQ,GAAG,KAAK,CAAC;YAE7B,kBAAa,GAAG,CAAC,CAAgB,EAAE,CAAY,EAAE,EAAE;gBACzD,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,IAAI,MAAM,EAAE;oBACrD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAU,CAAC,CAAC;iBAC5B;YACF,CAAC,CAAC;YAEK,kBAAa,GAAG,CAAC,CAAgB,EAAE,CAAY,EAAE,EAAE;gBACzD,IAAI,CAAC,CAAC,IAAI,IAAI,MAAM;oBAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;YAChF,CAAC,CAAC;YAEK,kCAA6B,GAAG,GAAG,EAAE;gBAC3C,IAAI,CAAC,MAAM,CAAC,oBA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