@voplus/morpho-workspace 1.3.3 → 1.3.5

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 (151) hide show
  1. package/es/data/work/interfaces.d.ts +4 -4
  2. package/es/data/work/metas.d.ts +13 -0
  3. package/es/data/work/metas.js +34 -0
  4. package/es/data/work/metas.js.map +1 -0
  5. package/es/data/workerror/interfaces.d.ts +2 -3
  6. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +0 -1
  7. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -1
  8. package/es/data/workerror/workerror-events/useOnNewWorkspace.js +0 -1
  9. package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -1
  10. package/es/data/workspace/interfaces.d.ts +8 -0
  11. package/es/data/workspace/types.d.ts +1 -0
  12. package/es/data/worktype/hook.d.ts +1 -1
  13. package/es/data/worktype/hook.js +3 -3
  14. package/es/data/worktype/hook.js.map +1 -1
  15. package/es/data/worktype/interfaces.d.ts +4 -0
  16. package/es/data/worktype/types.d.ts +1 -0
  17. package/es/modules/board/components/Board/state.js +1 -1
  18. package/es/modules/board/components/Board/state.js.map +1 -1
  19. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +9 -15
  20. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  21. package/es/modules/tasks/components/SubTaskList/index.js +6 -3
  22. package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
  23. package/es/modules/tasks/components/SubTaskList/state.d.ts +2 -0
  24. package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
  25. package/es/modules/tasks/components/TaskItem/ChildTaskItem.d.ts +4 -0
  26. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js +18 -0
  27. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js.map +1 -0
  28. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -0
  29. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
  30. package/es/modules/tasks/components/TaskItem/SubTaskItem.js +2 -0
  31. package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
  32. package/es/modules/tasks/controls/ChildTasksDataIcon/index.d.ts +9 -0
  33. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +19 -0
  34. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -0
  35. package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -0
  36. package/es/modules/work/components/NewWorkErrorDialog/index.js +26 -15
  37. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
  38. package/es/modules/work/components/NewWorkErrorDialog/index.less +1 -1
  39. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +2 -0
  40. package/es/modules/work/components/NewWorkErrorDialog/state.js +1 -0
  41. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
  42. package/es/modules/work/components/WorkErrorItem/index.js +18 -8
  43. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
  44. package/es/modules/work/components/WorkErrorItem/index.less +35 -7
  45. package/es/modules/work/components/WorkErrorList/index.js +7 -5
  46. package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
  47. package/es/modules/work/components/WorkErrorProperties/index.d.ts +6 -0
  48. package/es/modules/work/components/WorkErrorProperties/index.js +57 -0
  49. package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -0
  50. package/es/modules/work/components/WorkErrorProperties/index.less +8 -0
  51. package/es/modules/work/components/WorkErrorProperties/state.d.ts +5 -0
  52. package/es/modules/work/components/WorkErrorProperties/state.js +26 -0
  53. package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -0
  54. package/es/modules/work/components/WorkErrorPropertiesView/index.js +18 -10
  55. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
  56. package/es/modules/work/components/WorkErrorPropertiesView/index.less +18 -1
  57. package/es/modules/work/components/WorkItem/index.js +1 -1
  58. package/es/modules/work/components/WorkItem/index.js.map +1 -1
  59. package/es/modules/work/components/WorkList/index.d.ts +2 -0
  60. package/es/modules/work/components/WorkList/index.js +13 -2
  61. package/es/modules/work/components/WorkList/index.js.map +1 -1
  62. package/es/modules/work/components/WorkPropertiesView/index.js +1 -1
  63. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
  64. package/es/modules/work/components/WorkQATab/index.js +9 -7
  65. package/es/modules/work/components/WorkQATab/index.js.map +1 -1
  66. package/es/modules/work/components/WorkQATab/index.less +8 -8
  67. package/es/modules/work/components/WorkTaskList/index.js +8 -6
  68. package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
  69. package/es/modules/work/components/WorkTaskList/index.less +3 -3
  70. package/es/modules/work/components/WorkTasksTab/index.js +4 -2
  71. package/es/modules/work/components/WorkTasksTab/index.js.map +1 -1
  72. package/es/modules/work/components/WorkTasksTab/index.less +2 -2
  73. package/es/modules/work/components/WorksProperties/index.js +4 -6
  74. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  75. package/es/modules/work/controls/WorkErrorMenu/index.d.ts +14 -0
  76. package/es/modules/work/controls/WorkErrorMenu/index.js +39 -0
  77. package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -0
  78. package/es/modules/{worktype/controls/ToolBar → work/controls/WorkErrorMenu}/index.less +1 -23
  79. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -1
  80. package/es/modules/work/pages/WorkDefaultView/index.js +2 -4
  81. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
  82. package/es/modules/work/pages/WorkListPage/index.js +3 -2
  83. package/es/modules/work/pages/WorkListPage/index.js.map +1 -1
  84. package/es/modules/workspace/components/MyWorkspaces/index.js +12 -7
  85. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
  86. package/es/modules/workspace/components/MyWorkspaces/index.less +2 -2
  87. package/es/modules/workspace/components/WorkspaceCard/index.js +9 -4
  88. package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -1
  89. package/es/modules/workspace/components/WorkspaceCard/index.less +12 -0
  90. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +1 -0
  91. package/es/modules/workspace/components/WorkspaceCardList/index.js +8 -8
  92. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
  93. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
  94. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
  95. package/es/modules/workspace/components/WorkspaceTabs/index.js +1 -1
  96. package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
  97. package/es/modules/workspace/controls/WorkspaceMenu/index.js +38 -14
  98. package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
  99. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +3 -1
  100. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +2 -4
  101. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
  102. package/es/modules/workspace/pages/WorkspacePage/index.js +60 -43
  103. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
  104. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +12 -6
  105. package/es/modules/workspace/pages/WorkspacePage/state.js +42 -24
  106. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -1
  107. package/es/modules/worktype/components/NewTypeForm/index.js +3 -5
  108. package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -1
  109. package/es/modules/worktype/components/NewTypeForm/index.less +5 -2
  110. package/es/modules/worktype/components/RepeatTab/index.d.ts +6 -0
  111. package/es/modules/worktype/components/RepeatTab/index.js +44 -0
  112. package/es/modules/worktype/components/RepeatTab/index.js.map +1 -0
  113. package/es/modules/worktype/components/RepeatTab/index.less +30 -0
  114. package/es/modules/worktype/components/WorkTypeItem/index.js +1 -1
  115. package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
  116. package/es/modules/worktype/components/WorkTypeList/index.d.ts +1 -0
  117. package/es/modules/worktype/components/WorkTypeList/index.js +19 -17
  118. package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -1
  119. package/es/modules/worktype/components/WorkTypeList/index.less +7 -0
  120. package/es/modules/worktype/components/WorkTypeProperties/index.js +32 -8
  121. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
  122. package/es/modules/worktype/components/WorkTypeProperties/index.less +18 -2
  123. package/es/modules/worktype/components/WorkTypeProperties/state.js +0 -1
  124. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
  125. package/es/modules/worktype/components/WorkTypePropertiesView/index.js +1 -1
  126. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
  127. package/es/modules/worktype/components/WorkTypeQA/index.js +31 -34
  128. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
  129. package/es/modules/worktype/components/WorkTypeTabs/index.js +13 -13
  130. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
  131. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +10 -2
  132. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -1
  133. package/es/pages/Routes.d.ts +4 -12
  134. package/es/pages/Routes.js +9 -31
  135. package/es/pages/Routes.js.map +1 -1
  136. package/es/pages/Space/components/Tasks/index.js +22 -24
  137. package/es/pages/Space/components/Tasks/index.js.map +1 -1
  138. package/es/pages/Space/pages/MySpace/index.js +7 -7
  139. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  140. package/es/pages/Space/pages/MySpace/state.d.ts +19 -6
  141. package/es/pages/Space/pages/MySpace/state.js +150 -56
  142. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  143. package/es/pages/WorkType/WorkTypeSelect/index.js +5 -1
  144. package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
  145. package/package.json +1 -1
  146. package/es/modules/worktype/controls/ToolBar/index.d.ts +0 -10
  147. package/es/modules/worktype/controls/ToolBar/index.js +0 -20
  148. package/es/modules/worktype/controls/ToolBar/index.js.map +0 -1
  149. package/es/modules/worktype/controls/ToolBar/state.d.ts +0 -36
  150. package/es/modules/worktype/controls/ToolBar/state.js +0 -57
  151. package/es/modules/worktype/controls/ToolBar/state.js.map +0 -1
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
2
2
  import { action, computed, makeObservable, observable } from "mobx";
3
3
  import moment from "moment";
4
4
  export class State {
5
- constructor(_layout, _url) {
5
+ constructor(_layout, _url, user) {
6
6
  Object.defineProperty(this, "_layout", {
7
7
  enumerable: true,
8
8
  configurable: true,
@@ -15,6 +15,12 @@ export class State {
15
15
  writable: true,
16
16
  value: _url
17
17
  });
18
+ Object.defineProperty(this, "user", {
19
+ enumerable: true,
20
+ configurable: true,
21
+ writable: true,
22
+ value: user
23
+ });
18
24
  Object.defineProperty(this, "menuKey", {
19
25
  enumerable: true,
20
26
  configurable: true,
@@ -30,7 +36,7 @@ export class State {
30
36
  unread: 0,
31
37
  read: 0,
32
38
  later: 0,
33
- dismissed: 0
39
+ dismissed: 0,
34
40
  }
35
41
  });
36
42
  /** DueDate of the Tasks list Total */
@@ -42,7 +48,7 @@ export class State {
42
48
  today: 0,
43
49
  week: 0,
44
50
  month: 0,
45
- unscheduled: 0
51
+ unscheduled: 0,
46
52
  }
47
53
  });
48
54
  /** DueDate of the Works list Total */
@@ -54,7 +60,55 @@ export class State {
54
60
  today: 0,
55
61
  week: 0,
56
62
  month: 0,
57
- unscheduled: 0
63
+ unscheduled: 0,
64
+ }
65
+ });
66
+ Object.defineProperty(this, "todayFilter", {
67
+ enumerable: true,
68
+ configurable: true,
69
+ writable: true,
70
+ value: {
71
+ c: "DueDate",
72
+ o: "between",
73
+ l: "And",
74
+ v1: moment().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
75
+ v2: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
76
+ }
77
+ });
78
+ Object.defineProperty(this, "weekFilter", {
79
+ enumerable: true,
80
+ configurable: true,
81
+ writable: true,
82
+ value: {
83
+ c: "DueDate",
84
+ o: "between",
85
+ l: "And",
86
+ v1: moment().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
87
+ v2: moment().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
88
+ }
89
+ });
90
+ Object.defineProperty(this, "monthFilter", {
91
+ enumerable: true,
92
+ configurable: true,
93
+ writable: true,
94
+ value: {
95
+ c: "DueDate",
96
+ o: "between",
97
+ l: "And",
98
+ v1: moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
99
+ v2: moment().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
100
+ }
101
+ });
102
+ Object.defineProperty(this, "unscheduledFilter", {
103
+ enumerable: true,
104
+ configurable: true,
105
+ writable: true,
106
+ value: {
107
+ c: "DueDate",
108
+ o: "between",
109
+ l: "And",
110
+ v1: moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss"),
111
+ v2: moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss"),
58
112
  }
59
113
  });
60
114
  makeObservable(this);
@@ -75,102 +129,130 @@ export class State {
75
129
  this.notificationTotals[oldStatus.toLowerCase()]--;
76
130
  this.notificationTotals[status.toLowerCase()]++;
77
131
  }
78
- /** tasks/works list DueDate(today) Options */
132
+ /** tasks list DueDate(today) Options */
79
133
  get tToday() {
80
134
  return {
81
- Total: true, List: false,
135
+ Total: true,
136
+ List: false,
82
137
  Filters: [
83
- {
84
- c: "DueDate",
85
- o: "between",
86
- l: "And",
87
- v1: moment().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
88
- v2: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
89
- }
138
+ this.todayFilter,
139
+ { c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
140
+ { c: "Status", o: "!=", v1: "Draft", l: "And" },
90
141
  ],
91
142
  };
92
143
  }
93
- /** tasks/works list DueDate(week) Options */
144
+ /** tasks list DueDate(week) Options */
94
145
  get tWeek() {
95
146
  return {
96
- Total: true, List: false,
147
+ Total: true,
148
+ List: false,
97
149
  Filters: [
98
- {
99
- c: "DueDate",
100
- o: "between",
101
- l: "And",
102
- v1: moment().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
103
- v2: moment().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
104
- }
150
+ this.weekFilter,
151
+ { c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
152
+ { c: "Status", o: "!=", v1: "Draft", l: "And" },
105
153
  ],
106
154
  };
107
155
  }
108
- /** tasks/works list DueDate(month) Options */
156
+ /** tasks list DueDate(month) Options */
109
157
  get tMonth() {
110
158
  return {
111
- Total: true, List: false,
159
+ Total: true,
160
+ List: false,
112
161
  Filters: [
113
- {
114
- c: "DueDate",
115
- o: "between",
116
- l: "And",
117
- v1: moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
118
- v2: moment().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
119
- }
162
+ this.monthFilter,
163
+ { c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
164
+ { c: "Status", o: "!=", v1: "Draft", l: "And" },
120
165
  ],
121
166
  };
122
167
  }
123
- /** tasks/works list DueDate(unscheduled) Options */
168
+ /** tasks list DueDate(unscheduled) Options */
124
169
  get tUnscheduled() {
125
170
  return {
126
- Total: true, List: false,
171
+ Total: true,
172
+ List: false,
127
173
  Filters: [
128
- {
129
- c: "DueDate",
130
- o: "between",
131
- l: "And",
132
- v1: moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss"),
133
- v2: moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss"),
134
- }
174
+ this.unscheduledFilter,
175
+ { c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
176
+ { c: "Status", o: "!=", v1: "Draft", l: "And" },
135
177
  ],
136
178
  };
137
179
  }
138
- /** Notifications list Options */
139
- get nUnreadOptions() {
180
+ /** works list DueDate(today) Options */
181
+ get wToday() {
140
182
  return {
141
- Total: true, List: false,
183
+ Total: true,
184
+ List: false,
142
185
  Filters: [
143
- { c: "Status", o: "=", l: "And", v1: "Unread" },
186
+ this.todayFilter,
187
+ { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
144
188
  ],
145
189
  };
146
190
  }
147
- /** Notifications list Read Options */
148
- get nReadOptions() {
191
+ /** works list DueDate(week) Options */
192
+ get wWeek() {
149
193
  return {
150
- Total: true, List: false,
194
+ Total: true,
195
+ List: false,
151
196
  Filters: [
152
- { c: "Status", o: "=", l: "And", v1: "Read" },
197
+ this.weekFilter,
198
+ { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
153
199
  ],
154
200
  };
155
201
  }
156
- /** Notifications list Later Options */
157
- get nLaterOptions() {
202
+ /** works list DueDate(month) Options */
203
+ get wMonth() {
158
204
  return {
159
- Total: true, List: false,
205
+ Total: true,
206
+ List: false,
160
207
  Filters: [
161
- { c: "Status", o: "=", l: "And", v1: "Later" },
208
+ this.monthFilter,
209
+ { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
162
210
  ],
163
211
  };
164
212
  }
165
- /** Notifications list Dismissed Options */
166
- get nDismissedOptions() {
213
+ /** works list DueDate(unscheduled) Options */
214
+ get wUnscheduled() {
167
215
  return {
168
- Total: true, List: false,
216
+ Total: true,
217
+ List: false,
169
218
  Filters: [
170
- { c: "Status", o: "=", l: "And", v1: "Dismissed" },
219
+ this.unscheduledFilter,
220
+ { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
171
221
  ],
172
222
  };
173
223
  }
224
+ /** Notifications list Options */
225
+ get nUnreadOptions() {
226
+ return {
227
+ Total: true,
228
+ List: false,
229
+ Filters: [{ c: "Status", o: "=", l: "And", v1: "Unread" }],
230
+ };
231
+ }
232
+ /** Notifications list Read Options */
233
+ get nReadOptions() {
234
+ return {
235
+ Total: true,
236
+ List: false,
237
+ Filters: [{ c: "Status", o: "=", l: "And", v1: "Read" }],
238
+ };
239
+ }
240
+ /** Notifications list Later Options */
241
+ get nLaterOptions() {
242
+ return {
243
+ Total: true,
244
+ List: false,
245
+ Filters: [{ c: "Status", o: "=", l: "And", v1: "Later" }],
246
+ };
247
+ }
248
+ /** Notifications list Dismissed Options */
249
+ get nDismissedOptions() {
250
+ return {
251
+ Total: true,
252
+ List: false,
253
+ Filters: [{ c: "Status", o: "=", l: "And", v1: "Dismissed" }],
254
+ };
255
+ }
174
256
  }
175
257
  __decorate([
176
258
  observable
@@ -208,6 +290,18 @@ __decorate([
208
290
  __decorate([
209
291
  computed
210
292
  ], State.prototype, "tUnscheduled", null);
293
+ __decorate([
294
+ computed
295
+ ], State.prototype, "wToday", null);
296
+ __decorate([
297
+ computed
298
+ ], State.prototype, "wWeek", null);
299
+ __decorate([
300
+ computed
301
+ ], State.prototype, "wMonth", null);
302
+ __decorate([
303
+ computed
304
+ ], State.prototype, "wUnscheduled", null);
211
305
  __decorate([
212
306
  computed
213
307
  ], State.prototype, "nUnreadOptions", null);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,MAAkB,MAAM,QAAQ,CAAC;AAOxC,MAAM,OAAO,KAAK;IA2BjB,YAAoB,OAAsB,EAAU,IAAY;;;;;mBAA5C;;;;;;mBAAgC;;QA1BxC;;;;mBAAiB,SAAmC;WAAC;QAEjE,0CAA0C;QAC9B;;;;mBAA4B;gBACvC,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,CAAC;aACZ;WAAC;QAEF,sCAAsC;QAC1B;;;;mBAAoB;gBAC/B,KAAK,EAAE,CAAC;gBACR,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,CAAC;aACd;WAAA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AO,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC;SAC7D,CAAC;IACH,CAAC;CACD;AAxOY;IAAX,UAAU;sCAAoD;AAGnD;IAAX,UAAU;iDAKT;AAGU;IAAX,UAAU;yCAKT;AAGU;IAAX,UAAU;yCAKT;AAsCM;IAAP,MAAM;qCAGN;AAGD;IADC,MAAM;4CAIN;AAGD;IADC,MAAM;4CAIN;AAGD;IADC,MAAM;oDAIN;AAID;IADC,QAAQ;mCAWR;AAID;IADC,QAAQ;kCAWR;AAID;IADC,QAAQ;mCAWR;AAID;IADC,QAAQ;yCAWR;AAID;IADC,QAAQ;mCAUR;AAID;IADC,QAAQ;kCAUR;AAID;IADC,QAAQ;mCAUR;AAID;IADC,QAAQ;yCAUR;AAID;IADC,QAAQ;2CAOR;AAID;IADC,QAAQ;yCAOR;AAID;IADC,QAAQ;0CAOR;AAID;IADC,QAAQ;8CAOR"}
@@ -5,7 +5,11 @@ import { observe } from "@voplus/morpho-ui";
5
5
  import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
6
6
  const WorkTypeSelect = (props) => {
7
7
  const { onChange, style } = props;
8
- const list = useCreateListDataState({}, []);
8
+ const list = useCreateListDataState({
9
+ filterDefaults: {
10
+ filters: [{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Requester"]) }]
11
+ },
12
+ }, []);
9
13
  useWorkTypeListEffect(null, (result) => list.union(result), list.filters.options);
10
14
  return observe(() => (React.createElement(Select, { style: { width: "100%", ...style }, loading: list.loading, placeholder: "Select WorkType", onChange: handleChange }, list.data.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))));
11
15
  function handleChange(id) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,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AC,CACxB,oBAAC,MAAM,CAAC,MAAM,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,IACzC,IAAI,CAAC,IAAI,CACK,CAChB,CAAC,CACM,CACT,CAAC,CAAC;IAEH,SAAS,YAAY,CAAC,EAAU;QAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACpD,IAAI,QAAQ;YAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,EAAE,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { ToolBarProps } from "./state";
3
- import "./index.less";
4
- declare const Toolbar: {
5
- (props: ToolBarProps): JSX.Element;
6
- defaultProps: {
7
- showMenu: boolean;
8
- };
9
- };
10
- export default Toolbar;
@@ -1,20 +0,0 @@
1
- import React, { useState } from "react";
2
- import { observe } from "@voplus/morpho-ui";
3
- import { More } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
4
- import { ToolBarContext, ToolBarState } from "./state";
5
- import { useWorkTypeStore } from "../../../../data/worktype";
6
- import "./index.less";
7
- const Toolbar = (props) => {
8
- const { children, visible, showMenu, moreProps: dropDownMenuProps } = props;
9
- const store = useWorkTypeStore();
10
- const [state] = useState(new ToolBarState(store));
11
- state.props = props;
12
- return observe(() => (React.createElement(ToolBarContext.Provider, { value: state }, visible !== false ? (React.createElement("span", { className: "tool-bar" },
13
- children,
14
- showMenu && React.createElement(More, { ...dropDownMenuProps }))) : (React.createElement(React.Fragment, null)))));
15
- };
16
- Toolbar.defaultProps = {
17
- showMenu: true,
18
- };
19
- export default Toolbar;
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/controls/ToolBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAgB,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,cAAc,CAAC;AAEtB,MAAM,OAAO,GAAG,CAAC,KAAmB,EAAE,EAAE;IACvC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IAC5E,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAClD,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IAEpB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IACnC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CACpB,8BAAM,SAAS,EAAC,UAAU;QACxB,QAAQ;QACR,QAAQ,IAAI,oBAAC,IAAI,OAAK,iBAAiB,GAAI,CACtC,CACP,CAAC,CAAC,CAAC,CACH,yCAAK,CACL,CACwB,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,YAAY,GAAG;IACtB,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,36 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { MoreButtonProps } from "@voplus/morpho-document/es/controls/ToolBar/buttons/More";
3
- import { WorkTypeStore } from "../../../../data/worktype";
4
- export declare type ToolBarProps = {
5
- /** id of document */
6
- id?: string;
7
- children?: ReactNode;
8
- /** show toolbar */
9
- visible?: boolean;
10
- /** show drop down menu */
11
- showMenu?: boolean;
12
- /** Props for dropd */
13
- moreProps?: MoreButtonProps;
14
- };
15
- export interface IToolBarState {
16
- disabled?: boolean;
17
- }
18
- export declare class ToolBarState {
19
- store: WorkTypeStore;
20
- /** Current tools states. */
21
- private states;
22
- props: ToolBarProps;
23
- constructor(store: WorkTypeStore);
24
- /** Try to get an existing icons state or create a new one if it's not already exists.
25
- * @param key - Key of the icons state.
26
- * @param factory - factor to create a new option state.
27
- */
28
- getState<T extends IToolBarState>(key: string, factory: () => T): T;
29
- /** id */
30
- get id(): string;
31
- collapsed: boolean;
32
- }
33
- /** React context for ToolBarState. */
34
- export declare const ToolBarContext: import("react").Context<ToolBarState>;
35
- /** React hook to retrieve the nearest ToolBarContext. */
36
- export declare const useToolBarContext: () => ToolBarState;
@@ -1,57 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { createContext, useContext } from "react";
3
- import { computed, makeObservable, observable } from "mobx";
4
- export class ToolBarState {
5
- constructor(store) {
6
- Object.defineProperty(this, "store", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: store
11
- });
12
- /** Current tools states. */
13
- Object.defineProperty(this, "states", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: new Map()
18
- });
19
- Object.defineProperty(this, "props", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: void 0
24
- });
25
- Object.defineProperty(this, "collapsed", {
26
- enumerable: true,
27
- configurable: true,
28
- writable: true,
29
- value: false
30
- });
31
- makeObservable(this);
32
- }
33
- /** Try to get an existing icons state or create a new one if it's not already exists.
34
- * @param key - Key of the icons state.
35
- * @param factory - factor to create a new option state.
36
- */
37
- getState(key, factory) {
38
- if (!this.states.has(key))
39
- this.states.set(key, factory());
40
- return this.states.get(key);
41
- }
42
- /** id */
43
- get id() {
44
- return (this.props && this.props.id) || "";
45
- }
46
- }
47
- __decorate([
48
- computed
49
- ], ToolBarState.prototype, "id", null);
50
- __decorate([
51
- observable
52
- ], ToolBarState.prototype, "collapsed", void 0);
53
- /** React context for ToolBarState. */
54
- export const ToolBarContext = createContext(null);
55
- /** React hook to retrieve the nearest ToolBarContext. */
56
- export const useToolBarContext = () => useContext(ToolBarContext);
57
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/controls/ToolBar/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAa,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAqB5D,MAAM,OAAO,YAAY;IAMxB,YAA0B,KAAoB;;;;;mBAApB;;QAL1B,4BAA4B;QAC5B;;;;mBAA6C,IAAI,GAAG,EAAE;WAAC;QAEvD;;;;;WAA2B;QAqBf;;;;mBAAmB,KAAK;WAAC;QAlBpC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAA0B,GAAW,EAAE,OAAgB;QACrE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAM,CAAC;IAClC,CAAC;IAED,SAAS;IAET,IAAW,EAAE;QACZ,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;IAC5C,CAAC;CAGD;AALA;IADC,QAAQ;sCAGR;AAEW;IAAX,UAAU;+CAA0B;AAGtC,sCAAsC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAe,IAAW,CAAC,CAAC;AAEvE,yDAAyD;AACzD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC"}