@voplus/morpho-workspace 1.1.0-dev012 → 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.
Files changed (130) hide show
  1. package/es/components/AvatarList/state.js +50 -46
  2. package/es/components/AvatarList/state.js.map +1 -1
  3. package/es/components/TimeLog/index.d.ts +1 -1
  4. package/es/data/board/LinkStore.js +38 -34
  5. package/es/data/board/LinkStore.js.map +1 -1
  6. package/es/data/board/index.js +2 -0
  7. package/es/data/board/index.js.map +1 -1
  8. package/es/data/board/metas.js +15 -11
  9. package/es/data/board/metas.js.map +1 -1
  10. package/es/data/meeting/AgendaStore.d.ts +2 -5
  11. package/es/data/meeting/AgendaStore.js +1 -13
  12. package/es/data/meeting/AgendaStore.js.map +1 -1
  13. package/es/data/meeting/MeetingStore.d.ts +2 -5
  14. package/es/data/meeting/MeetingStore.js +1 -9
  15. package/es/data/meeting/MeetingStore.js.map +1 -1
  16. package/es/data/meeting/hooks.d.ts +3 -2
  17. package/es/data/meeting/hooks.js +4 -4
  18. package/es/data/meeting/hooks.js.map +1 -1
  19. package/es/data/meeting/index.js +2 -0
  20. package/es/data/meeting/index.js.map +1 -1
  21. package/es/data/meeting/metas.js +22 -18
  22. package/es/data/meeting/metas.js.map +1 -1
  23. package/es/data/task/TaskStore.d.ts +2 -12
  24. package/es/data/task/TaskStore.js +1 -23
  25. package/es/data/task/TaskStore.js.map +1 -1
  26. package/es/data/task/index.js +2 -0
  27. package/es/data/task/index.js.map +1 -1
  28. package/es/data/task/metas.js +19 -15
  29. package/es/data/task/metas.js.map +1 -1
  30. package/es/modules/board/components/Board/state.d.ts +2 -2
  31. package/es/modules/board/components/Board/state.js +111 -107
  32. package/es/modules/board/components/Board/state.js.map +1 -1
  33. package/es/modules/board/components/BoardColumn/state.js +142 -138
  34. package/es/modules/board/components/BoardColumn/state.js.map +1 -1
  35. package/es/modules/board/components/DocumentCard/index.d.ts +4 -4
  36. package/es/modules/board/components/DocumentCard/state.js +54 -50
  37. package/es/modules/board/components/DocumentCard/state.js.map +1 -1
  38. package/es/modules/board/components/LinkList/state.js +31 -27
  39. package/es/modules/board/components/LinkList/state.js.map +1 -1
  40. package/es/modules/board/components/NewTaskForm/state.js +41 -37
  41. package/es/modules/board/components/NewTaskForm/state.js.map +1 -1
  42. package/es/modules/board/components/TaskCard/index.js +1 -1
  43. package/es/modules/board/components/TaskCard/index.js.map +1 -1
  44. package/es/modules/board/components/TaskCard/state.js +117 -113
  45. package/es/modules/board/components/TaskCard/state.js.map +1 -1
  46. package/es/modules/board/pages/BoardViewList/state.js +14 -10
  47. package/es/modules/board/pages/BoardViewList/state.js.map +1 -1
  48. package/es/modules/calendar/components/CalendarMenu/index.d.ts +1 -1
  49. package/es/modules/calendar/components/TaskCard/state.js +58 -54
  50. package/es/modules/calendar/components/TaskCard/state.js.map +1 -1
  51. package/es/modules/calendar/pages/CalendarMonth/state.js +12 -8
  52. package/es/modules/calendar/pages/CalendarMonth/state.js.map +1 -1
  53. package/es/modules/meeting/components/AgendaList/AgendaHeader/index.d.ts +2 -2
  54. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.d.ts +1 -1
  55. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.js +5 -5
  56. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.js.map +1 -1
  57. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +5 -4
  58. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
  59. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.d.ts +5 -5
  60. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +40 -45
  61. package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -1
  62. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +1 -10
  63. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  64. package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +0 -2
  65. package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +47 -50
  66. package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
  67. package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +19 -15
  68. package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js.map +1 -1
  69. package/es/modules/meeting/components/AgendaList/index.js +52 -51
  70. package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
  71. package/es/modules/meeting/components/AgendaList/state.d.ts +2 -21
  72. package/es/modules/meeting/components/AgendaList/state.js +23 -79
  73. package/es/modules/meeting/components/AgendaList/state.js.map +1 -1
  74. package/es/modules/meeting/components/MeetingDescription/index.d.ts +1 -1
  75. package/es/modules/meeting/components/MeetingHeader/index.d.ts +3 -3
  76. package/es/modules/meeting/components/MeetingHeader/index.js +38 -50
  77. package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
  78. package/es/modules/meeting/components/MeetingItem/index.d.ts +1 -1
  79. package/es/modules/meeting/components/MeetingItem/state.js +22 -18
  80. package/es/modules/meeting/components/MeetingItem/state.js.map +1 -1
  81. package/es/modules/meeting/components/MeetingQuickViewDialog/index.d.ts +2 -2
  82. package/es/modules/meeting/components/NewMeetingForm/index.js +1 -1
  83. package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
  84. package/es/modules/meeting/components/NewMeetingForm/state.js +31 -27
  85. package/es/modules/meeting/components/NewMeetingForm/state.js.map +1 -1
  86. package/es/modules/meeting/pages/MeetingList/index.js +25 -85
  87. package/es/modules/meeting/pages/MeetingList/index.js.map +1 -1
  88. package/es/modules/menus/components/Access/index.d.ts +2 -2
  89. package/es/modules/menus/components/Account/index.d.ts +2 -2
  90. package/es/modules/menus/components/Status/index.d.ts +2 -2
  91. package/es/modules/menus/pages/ListOptions/Teams/index.js +4 -4
  92. package/es/modules/menus/pages/ListOptions/Teams/index.js.map +1 -1
  93. package/es/modules/tasks/components/NewTaskForm/index.js +1 -1
  94. package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
  95. package/es/modules/tasks/components/NewTaskForm/state.js +30 -26
  96. package/es/modules/tasks/components/NewTaskForm/state.js.map +1 -1
  97. package/es/modules/tasks/components/SubTaskList/index.js +15 -72
  98. package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
  99. package/es/modules/tasks/components/SubTaskList/state.js +22 -18
  100. package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
  101. package/es/modules/tasks/components/TaskDescription/index.d.ts +1 -1
  102. package/es/modules/tasks/components/TaskHeader/index.js +11 -2
  103. package/es/modules/tasks/components/TaskHeader/index.js.map +1 -1
  104. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +4 -3
  105. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
  106. package/es/modules/tasks/components/TaskItem/SubTaskItem.js +4 -2
  107. package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
  108. package/es/modules/tasks/components/TaskItem/state.d.ts +3 -2
  109. package/es/modules/tasks/components/TaskItem/state.js +157 -156
  110. package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
  111. package/es/modules/tasks/components/TaskPropertiesView/index.d.ts +1 -1
  112. package/es/modules/tasks/components/TaskQuickViewDialog/index.d.ts +2 -2
  113. package/es/modules/tasks/components/TaskTimeBox/index.d.ts +4 -4
  114. package/es/modules/tasks/components/TaskTimeBox/state.js +74 -70
  115. package/es/modules/tasks/components/TaskTimeBox/state.js.map +1 -1
  116. package/es/modules/tasks/pages/TaskList/index.js +28 -110
  117. package/es/modules/tasks/pages/TaskList/index.js.map +1 -1
  118. package/es/modules/tasks/pages/TaskList/state.d.ts +0 -14
  119. package/es/modules/tasks/pages/TaskList/state.js +0 -46
  120. package/es/modules/tasks/pages/TaskList/state.js.map +1 -1
  121. package/es/modules/workspaces/components/Access/index.d.ts +2 -2
  122. package/es/modules/workspaces/components/Account/index.d.ts +2 -2
  123. package/es/modules/workspaces/components/ListHeard/index.d.ts +1 -1
  124. package/es/modules/workspaces/components/Status/index.d.ts +2 -2
  125. package/es/modules/workspaces/pages/BoardView/index.js +3 -3
  126. package/es/modules/workspaces/pages/BoardView/index.js.map +1 -1
  127. package/package.json +11 -11
  128. package/es/modules/meeting/pages/MeetingList/state.d.ts +0 -15
  129. package/es/modules/meeting/pages/MeetingList/state.js +0 -47
  130. package/es/modules/meeting/pages/MeetingList/state.js.map +0 -1
@@ -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,MAAM,OAAO,YAAa,SAAQ,uBAAuB;IAGxD,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,GAAI,CAAC;IAC5C,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,OAAO,oBAAC,UAAU,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC;IACxC,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QACvB,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;IACH,CAAC;;AAnBa,qBAAQ,GAAG,MAAM,CAAC"}
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: import("@voplus/morpho-document").IDocument) => void;
28
- onBoardColumnDeleted: (s: BoardColumnStore, t: import("@voplus/morpho-document").IDocument) => void;
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
- export class State {
5
- constructor(_store, _docStore) {
6
- this._store = _store;
7
- this._docStore = _docStore;
8
- this.boardcolumns = [];
9
- /** search filter 1.5秒 */
10
- this.timeout = null;
11
- /** add BoardColumn name */
12
- this.name = "";
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
- onDragEnd(result) {
49
- // dropped nowhere
50
- if (!result.destination) {
51
- return;
52
- }
53
- const { source, destination, draggableId } = result;
54
- // did not move anywhere - can bail early
55
- if (source.droppableId === destination.droppableId && source.index === destination.index) {
56
- return;
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
- // reordering column
59
- if (result.type === "COLUMN") {
60
- if (destination.index === 0) {
61
- this._docStore.moveAfter(draggableId, "");
48
+ /** 拖拽方法 */
49
+ onDragEnd(result) {
50
+ // dropped nowhere
51
+ if (!result.destination) {
52
+ return;
62
53
  }
63
- else {
64
- const afterId = this.boardcolumns.length - 1 === destination.index
65
- ? this.boardcolumns[destination.index].id
66
- : this.boardcolumns[destination.index - 1].id;
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
- const [removed] = this.boardcolumns.splice(source.index, 1);
70
- this.boardcolumns.splice(destination.index, 0, removed);
71
- return;
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
- __decorate([
86
- observable
87
- ], State.prototype, "boardcolumns", void 0);
88
- __decorate([
89
- observable
90
- ], State.prototype, "timeout", void 0);
91
- __decorate([
92
- observable
93
- ], State.prototype, "name", void 0);
94
- __decorate([
95
- observable
96
- ], State.prototype, "reload", void 0);
97
- __decorate([
98
- observable
99
- ], State.prototype, "addLoading", void 0);
100
- __decorate([
101
- observable
102
- ], State.prototype, "addBoardColumnAble", void 0);
103
- __decorate([
104
- observable
105
- ], State.prototype, "source", void 0);
106
- __decorate([
107
- observable
108
- ], State.prototype, "destination", void 0);
109
- __decorate([
110
- observable
111
- ], State.prototype, "colorList", void 0);
112
- __decorate([
113
- action
114
- ], State.prototype, "onSave", void 0);
115
- __decorate([
116
- action
117
- ], State.prototype, "onDragEnd", null);
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
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,MAAM,OAAO,KAAK;IAEjB,YAA2B,MAAw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AE,OAAO,EAAE,QAAQ,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,EACxE,CAAC,MAAM,CAAC,CACR,CAAC;YACF,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACzD,IAAI,CAAC,WAAW,GAAG;gBAClB,EAAE,EAAE,WAAW,CAAC,WAAW;gBAC3B,OAAO,EAAE,OAAO;gBAChB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,WAAW,CAAC,KAAK;aACxB,CAAC;QACH,CAAC;KACD;IA3FY;QAAX,UAAU;+CAA0C;IAEzC;QAAX,UAAU;0CAA4B;IAE3B;QAAX,UAAU;uCAAkB;IACjB;QAAX,UAAU;yCAAuB;IAEtB;QAAX,UAAU;6CAA2B;IAE1B;QAAX,UAAU;qDAAmC;IAElC;QAAX,UAAU;yCAAoB;IAEnB;QAAX,UAAU;8CAAyB;IAExB;QAAX,UAAU;4CAAuF;IAwBlG;QADC,MAAM;yCAOL;IAIF;QADC,MAAM;0CA0CN;IACF,YAAC;KAAA;SA9FY,KAAK"}
@@ -1,146 +1,150 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { action, computed, observable } from "mobx";
3
3
  import { message } from "@voplus/antd";
4
- export class State {
5
- constructor(boardColumnStore, docStore) {
6
- this.boardColumnStore = boardColumnStore;
7
- this.docStore = docStore;
8
- this.name = "";
9
- /** BoardColumn links number*/
10
- this.links = 0;
11
- this.reload = false;
12
- /** edit BoardColumn name */
13
- this.editable = false;
14
- /** BoardColumn loading */
15
- this.loading = false;
16
- this.checked = false;
17
- this.checkIds = [];
18
- this.checkAll = false;
19
- this.multiple = false;
20
- /** add links 如果为true 显示 DocumentSelectDialog */
21
- this.addLinks = false;
22
- /** add links 如果为true 显示新增links框 */
23
- this.AddLinksAble = false;
24
- /** DocumentMenu click edit */
25
- this.onEdit = () => {
26
- this.name = this.boardcolumn.name;
4
+ let State = /** @class */ (() => {
5
+ class State {
6
+ constructor(boardColumnStore, docStore) {
7
+ this.boardColumnStore = boardColumnStore;
8
+ this.docStore = docStore;
9
+ this.name = "";
10
+ /** BoardColumn links number*/
11
+ this.links = 0;
12
+ this.reload = false;
13
+ /** edit BoardColumn name */
14
+ this.editable = false;
15
+ /** BoardColumn loading */
16
+ this.loading = false;
17
+ this.checked = false;
18
+ this.checkIds = [];
19
+ this.checkAll = false;
20
+ this.multiple = false;
21
+ /** add links 如果为true 显示 DocumentSelectDialog */
22
+ this.addLinks = false;
23
+ /** add links 如果为true 显示新增links框 */
24
+ this.AddLinksAble = false;
25
+ /** DocumentMenu click edit */
26
+ this.onEdit = () => {
27
+ this.name = this.boardcolumn.name;
28
+ this.editable = !this.editable;
29
+ };
30
+ /** add link */
31
+ this.onAddLinkAble = (addAble) => {
32
+ this.AddLinksAble = addAble;
33
+ };
34
+ /** BoardColumn links number*/
35
+ this.onLinkNum = (links) => {
36
+ this.links = links;
37
+ };
38
+ /** cleck */
39
+ this.onCheck = (checkAll) => {
40
+ this.checkAll = checkAll;
41
+ // state.checkAll = checkedValues.length === state.boardcolumn.length;
42
+ };
43
+ /** checkAll */
44
+ this.onCheckAllChange = (e) => {
45
+ this.checkAll = e.target.checked;
46
+ this.multiple = e.target.checked;
47
+ };
48
+ }
49
+ /** edit save BoardColumn name function*/
50
+ async save() {
51
+ if (!this.name) {
52
+ return message.warn("Title is required");
53
+ }
54
+ if (this.name.trim() === this.boardcolumn.name) {
55
+ // 没有变动无需请求
56
+ return (this.editable = false);
57
+ }
58
+ await this.docStore.edit(this.props.id, { Name: this.name });
59
+ this.boardcolumn.name = this.name;
27
60
  this.editable = !this.editable;
28
- };
29
- /** add link */
30
- this.onAddLinkAble = (addAble) => {
31
- this.AddLinksAble = addAble;
32
- };
33
- /** BoardColumn links number*/
34
- this.onLinkNum = (links) => {
35
- this.links = links;
36
- };
37
- /** cleck */
38
- this.onCheck = (checkAll) => {
39
- this.checkAll = checkAll;
40
- // state.checkAll = checkedValues.length === state.boardcolumn.length;
41
- };
42
- /** checkAll */
43
- this.onCheckAllChange = (e) => {
44
- this.checkAll = e.target.checked;
45
- this.multiple = e.target.checked;
46
- };
47
- }
48
- /** edit save BoardColumn name function*/
49
- async save() {
50
- if (!this.name) {
51
- return message.warn("Title is required");
52
61
  }
53
- if (this.name.trim() === this.boardcolumn.name) {
54
- // 没有变动无需请求
55
- return (this.editable = false);
62
+ /** delete boardColumn*/
63
+ delete() {
64
+ this.boardColumnStore.delete([this.boardcolumn.id], { DeleteChilds: true });
65
+ }
66
+ /** lock boardColumn*/
67
+ async lock() {
68
+ await this.docStore.edit(this.boardcolumn.id, { Status: "Readonly" });
69
+ this.boardcolumn.status = "Readonly";
70
+ }
71
+ /** unlock boardColumn */
72
+ async unlock() {
73
+ await this.docStore.edit(this.boardcolumn.id, { Status: "Normal" });
74
+ this.boardcolumn.status = "Normal";
75
+ }
76
+ /** BoardColumn文件是否 readonly */
77
+ get readonly() {
78
+ return this.boardcolumn.status === "Readonly";
56
79
  }
57
- await this.docStore.edit(this.props.id, { Name: this.name });
58
- this.boardcolumn.name = this.name;
59
- this.editable = !this.editable;
60
- }
61
- /** delete boardColumn*/
62
- delete() {
63
- this.boardColumnStore.delete([this.boardcolumn.id], { DeleteChilds: true });
64
- }
65
- /** lock boardColumn*/
66
- async lock() {
67
- await this.docStore.edit(this.boardcolumn.id, { Status: "Readonly" });
68
- this.boardcolumn.status = "Readonly";
69
- }
70
- /** unlock boardColumn */
71
- async unlock() {
72
- await this.docStore.edit(this.boardcolumn.id, { Status: "Normal" });
73
- this.boardcolumn.status = "Normal";
74
- }
75
- /** BoardColumn文件是否 readonly */
76
- get readonly() {
77
- return this.boardcolumn.status === "Readonly";
78
80
  }
79
- }
80
- __decorate([
81
- observable
82
- ], State.prototype, "boardcolumn", void 0);
83
- __decorate([
84
- observable
85
- ], State.prototype, "name", void 0);
86
- __decorate([
87
- observable
88
- ], State.prototype, "links", void 0);
89
- __decorate([
90
- observable
91
- ], State.prototype, "reload", void 0);
92
- __decorate([
93
- observable
94
- ], State.prototype, "editable", void 0);
95
- __decorate([
96
- observable
97
- ], State.prototype, "loading", void 0);
98
- __decorate([
99
- observable
100
- ], State.prototype, "checked", void 0);
101
- __decorate([
102
- observable
103
- ], State.prototype, "checkIds", void 0);
104
- __decorate([
105
- observable
106
- ], State.prototype, "checkAll", void 0);
107
- __decorate([
108
- observable
109
- ], State.prototype, "multiple", void 0);
110
- __decorate([
111
- observable
112
- ], State.prototype, "addLinks", void 0);
113
- __decorate([
114
- observable
115
- ], State.prototype, "AddLinksAble", void 0);
116
- __decorate([
117
- action
118
- ], State.prototype, "onEdit", void 0);
119
- __decorate([
120
- action
121
- ], State.prototype, "onAddLinkAble", void 0);
122
- __decorate([
123
- action
124
- ], State.prototype, "onLinkNum", void 0);
125
- __decorate([
126
- action
127
- ], State.prototype, "onCheck", void 0);
128
- __decorate([
129
- action
130
- ], State.prototype, "onCheckAllChange", void 0);
131
- __decorate([
132
- action
133
- ], State.prototype, "save", null);
134
- __decorate([
135
- action
136
- ], State.prototype, "delete", null);
137
- __decorate([
138
- action
139
- ], State.prototype, "lock", null);
140
- __decorate([
141
- action
142
- ], State.prototype, "unlock", null);
143
- __decorate([
144
- computed
145
- ], State.prototype, "readonly", null);
81
+ __decorate([
82
+ observable
83
+ ], State.prototype, "boardcolumn", void 0);
84
+ __decorate([
85
+ observable
86
+ ], State.prototype, "name", void 0);
87
+ __decorate([
88
+ observable
89
+ ], State.prototype, "links", void 0);
90
+ __decorate([
91
+ observable
92
+ ], State.prototype, "reload", void 0);
93
+ __decorate([
94
+ observable
95
+ ], State.prototype, "editable", void 0);
96
+ __decorate([
97
+ observable
98
+ ], State.prototype, "loading", void 0);
99
+ __decorate([
100
+ observable
101
+ ], State.prototype, "checked", void 0);
102
+ __decorate([
103
+ observable
104
+ ], State.prototype, "checkIds", void 0);
105
+ __decorate([
106
+ observable
107
+ ], State.prototype, "checkAll", void 0);
108
+ __decorate([
109
+ observable
110
+ ], State.prototype, "multiple", void 0);
111
+ __decorate([
112
+ observable
113
+ ], State.prototype, "addLinks", void 0);
114
+ __decorate([
115
+ observable
116
+ ], State.prototype, "AddLinksAble", void 0);
117
+ __decorate([
118
+ action
119
+ ], State.prototype, "onEdit", void 0);
120
+ __decorate([
121
+ action
122
+ ], State.prototype, "onAddLinkAble", void 0);
123
+ __decorate([
124
+ action
125
+ ], State.prototype, "onLinkNum", void 0);
126
+ __decorate([
127
+ action
128
+ ], State.prototype, "onCheck", void 0);
129
+ __decorate([
130
+ action
131
+ ], State.prototype, "onCheckAllChange", void 0);
132
+ __decorate([
133
+ action
134
+ ], State.prototype, "save", null);
135
+ __decorate([
136
+ action
137
+ ], State.prototype, "delete", null);
138
+ __decorate([
139
+ action
140
+ ], State.prototype, "lock", null);
141
+ __decorate([
142
+ action
143
+ ], State.prototype, "unlock", null);
144
+ __decorate([
145
+ computed
146
+ ], State.prototype, "readonly", null);
147
+ return State;
148
+ })();
149
+ export { State };
146
150
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAkBvC,MAAM,OAAO,KAAK;IAoBjB,YAA2B,gBAAkC,EAAU,QAAuB;QAAnE,qBAAgB,GAAhB,gBAAgB,CAAkB;QAAU,aAAQ,GAAR,QAAQ,CAAe;QAjB3E,SAAI,GAAG,EAAE,CAAC;QAC7B,8BAA8B;QACX,UAAK,GAAG,CAAC,CAAC;QACV,WAAM,GAAG,KAAK,CAAC;QAClC,4BAA4B;QACT,aAAQ,GAAG,KAAK,CAAC;QACpC,0BAA0B;QACP,YAAO,GAAG,KAAK,CAAC;QAChB,YAAO,GAAG,KAAK,CAAC;QAChB,aA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AAwB;AACvB;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;uCAAgC;AAC/B;IAAX,UAAU;uCAAyB;AACxB;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;2CAA6B;AAMxC;IADC,MAAM;qCAIL;AAIF;IADC,MAAM;4CAGL;AAIF;IADC,MAAM;wCAGL;AAIF;IADC,MAAM;sCAIL;AAIF;IADC,MAAM;+CAIL;AAIF;IADC,MAAM;iCAYN;AAID;IADC,MAAM;mCAGN;AAID;IADC,MAAM;iCAIN;AAID;IADC,MAAM;mCAIN;AAID;IADC,QAAQ;qCAGR"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAkBvC;IAAA,MAAa,KAAK;QAoBjB,YAA2B,gBAAkC,EAAU,QAAuB;YAAnE,qBAAgB,GAAhB,gBAAgB,CAAkB;YAAU,aAAQ,GAAR,QAAQ,CAAe;YAjB3E,SAAI,GAAG,EAAE,CAAC;YAC7B,8BAA8B;YACX,UAAK,GAAG,CAAC,CAAC;YACV,WAAM,GAAG,KAAK,CAAC;YAClC,4BAA4B;YACT,aAAQ,GAAG,KAAK,CAAC;YACpC,0BAA0B;YACP,YAAO,GAAG,KAAK,CAAC;YAChB,YAAO,GAAG,KAAK,CAAC;YAChB,aAAQ,GAAa,EAAE,CAAC;YACxB,aAAQ,GAAG,KAAK,CAAC;YACjB,aAAQ,GAAG,KAAK,CAAC;YACpC,gDAAgD;YAC7B,aAAQ,GAAG,KAAK,CAAC;YACpC,mCAAmC;YAChB,iBAAY,GAAG,KAAK,CAAC;YAIxC,8BAA8B;YAEvB,WAAM,GAAG,GAAG,EAAE;gBACpB,IAAI,CAAC,IAAI,GAA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AIF;QADC,MAAM;0CAIL;IAIF;QADC,MAAM;mDAIL;IAIF;QADC,MAAM;qCAYN;IAID;QADC,MAAM;uCAGN;IAID;QADC,MAAM;qCAIN;IAID;QADC,MAAM;uCAIN;IAID;QADC,QAAQ;yCAGR;IACF,YAAC;KAAA;SA/FY,KAAK"}
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  declare const DocumentCard: (props: {
3
3
  id: string;
4
- leftId?: string | undefined;
5
- linkId?: string | undefined;
6
- reload?: boolean | undefined;
7
- multiple?: boolean | undefined;
4
+ leftId?: string;
5
+ linkId?: string;
6
+ reload?: boolean;
7
+ multiple?: boolean;
8
8
  connectDragSource?: any;
9
9
  }) => JSX.Element;
10
10
  export default DocumentCard;