@voplus/morpho-workspace 1.3.4 → 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 (109) hide show
  1. package/es/data/work/interfaces.d.ts +2 -2
  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/worktype/hook.d.ts +1 -1
  11. package/es/data/worktype/hook.js +3 -3
  12. package/es/data/worktype/hook.js.map +1 -1
  13. package/es/modules/board/components/Board/state.js +1 -1
  14. package/es/modules/board/components/Board/state.js.map +1 -1
  15. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +9 -15
  16. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  17. package/es/modules/tasks/components/SubTaskList/index.js +6 -3
  18. package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
  19. package/es/modules/tasks/components/SubTaskList/state.d.ts +2 -0
  20. package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
  21. package/es/modules/tasks/components/TaskItem/ChildTaskItem.d.ts +4 -0
  22. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js +18 -0
  23. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js.map +1 -0
  24. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -0
  25. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
  26. package/es/modules/tasks/components/TaskItem/SubTaskItem.js +2 -0
  27. package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
  28. package/es/modules/tasks/controls/ChildTasksDataIcon/index.d.ts +9 -0
  29. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +19 -0
  30. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -0
  31. package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -0
  32. package/es/modules/work/components/NewWorkErrorDialog/index.js +26 -15
  33. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
  34. package/es/modules/work/components/NewWorkErrorDialog/index.less +1 -1
  35. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +2 -0
  36. package/es/modules/work/components/NewWorkErrorDialog/state.js +1 -0
  37. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
  38. package/es/modules/work/components/WorkErrorItem/index.js +18 -8
  39. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
  40. package/es/modules/work/components/WorkErrorItem/index.less +35 -7
  41. package/es/modules/work/components/WorkErrorProperties/index.d.ts +6 -0
  42. package/es/modules/work/components/WorkErrorProperties/index.js +57 -0
  43. package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -0
  44. package/es/modules/work/components/WorkErrorProperties/index.less +8 -0
  45. package/es/modules/work/components/WorkErrorProperties/state.d.ts +5 -0
  46. package/es/modules/work/components/WorkErrorProperties/state.js +26 -0
  47. package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -0
  48. package/es/modules/work/components/WorkErrorPropertiesView/index.js +18 -10
  49. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
  50. package/es/modules/work/components/WorkErrorPropertiesView/index.less +18 -1
  51. package/es/modules/work/components/WorkItem/index.js +1 -1
  52. package/es/modules/work/components/WorkItem/index.js.map +1 -1
  53. package/es/modules/work/components/WorkList/index.d.ts +2 -0
  54. package/es/modules/work/components/WorkList/index.js +12 -3
  55. package/es/modules/work/components/WorkList/index.js.map +1 -1
  56. package/es/modules/work/components/WorkPropertiesView/index.js +1 -1
  57. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
  58. package/es/modules/work/components/WorksProperties/index.js +4 -6
  59. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  60. package/es/modules/work/controls/WorkErrorMenu/index.d.ts +14 -0
  61. package/es/modules/work/controls/WorkErrorMenu/index.js +39 -0
  62. package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -0
  63. package/es/modules/work/controls/WorkErrorMenu/index.less +33 -0
  64. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -1
  65. package/es/modules/work/pages/WorkDefaultView/index.js +2 -4
  66. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
  67. package/es/modules/work/pages/WorkListPage/index.js +3 -2
  68. package/es/modules/work/pages/WorkListPage/index.js.map +1 -1
  69. package/es/modules/workspace/components/MyWorkspaces/index.js +3 -0
  70. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
  71. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +1 -0
  72. package/es/modules/workspace/components/WorkspaceCardList/index.js +6 -5
  73. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
  74. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
  75. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
  76. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +3 -1
  77. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +2 -4
  78. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
  79. package/es/modules/workspace/pages/WorkspacePage/index.js +60 -43
  80. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
  81. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +12 -6
  82. package/es/modules/workspace/pages/WorkspacePage/state.js +42 -24
  83. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -1
  84. package/es/modules/worktype/components/RepeatTab/index.d.ts +6 -0
  85. package/es/modules/worktype/components/RepeatTab/index.js +44 -0
  86. package/es/modules/worktype/components/RepeatTab/index.js.map +1 -0
  87. package/es/modules/worktype/components/RepeatTab/index.less +30 -0
  88. package/es/modules/worktype/components/WorkTypeProperties/index.js +23 -20
  89. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
  90. package/es/modules/worktype/components/WorkTypeProperties/index.less +0 -9
  91. package/es/modules/worktype/components/WorkTypeProperties/state.js +0 -1
  92. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
  93. package/es/modules/worktype/components/WorkTypeQA/index.js +31 -34
  94. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
  95. package/es/modules/worktype/components/WorkTypeTabs/index.js +9 -11
  96. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
  97. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +10 -2
  98. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -1
  99. package/es/pages/Routes.d.ts +4 -12
  100. package/es/pages/Routes.js +6 -28
  101. package/es/pages/Routes.js.map +1 -1
  102. package/es/pages/Space/pages/MySpace/index.js +6 -6
  103. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  104. package/es/pages/Space/pages/MySpace/state.d.ts +16 -4
  105. package/es/pages/Space/pages/MySpace/state.js +139 -59
  106. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  107. package/es/pages/WorkType/WorkTypeSelect/index.js +1 -1
  108. package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
  109. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { action, computed, makeObservable, observable } from "mobx";
2
+ import { action, makeObservable, observable } from "mobx";
3
3
  export class State {
4
4
  constructor(_layout, _url) {
5
5
  Object.defineProperty(this, "_layout", {
@@ -20,18 +20,31 @@ export class State {
20
20
  writable: true,
21
21
  value: undefined
22
22
  });
23
+ Object.defineProperty(this, "workTypeList", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: void 0
28
+ });
23
29
  Object.defineProperty(this, "workStatusTotals", {
24
30
  enumerable: true,
25
31
  configurable: true,
26
32
  writable: true,
27
33
  value: {
34
+ draft: 0,
28
35
  new: 0,
29
- due: 0,
30
- pending: 0,
36
+ rejected: 0,
37
+ active: 0,
38
+ closed: 0,
31
39
  done: 0,
32
- cancelled: 0,
33
40
  }
34
41
  });
42
+ Object.defineProperty(this, "workTypesTotals", {
43
+ enumerable: true,
44
+ configurable: true,
45
+ writable: true,
46
+ value: {}
47
+ });
35
48
  makeObservable(this);
36
49
  }
37
50
  navigate(key, rest) {
@@ -42,6 +55,10 @@ export class State {
42
55
  this.workStatusTotals[oldStatus.toLowerCase()]--;
43
56
  this.workStatusTotals[status.toLowerCase()]++;
44
57
  }
58
+ updateWorkTypesTotal(oldStatus, status) {
59
+ this.workTypesTotals[oldStatus.toLowerCase()]--;
60
+ this.workTypesTotals[status.toLowerCase()]++;
61
+ }
45
62
  get nNewOptions() {
46
63
  return {
47
64
  Total: true,
@@ -49,18 +66,18 @@ export class State {
49
66
  Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "New" }],
50
67
  };
51
68
  }
52
- get nDueOptions() {
69
+ get nDraftOptions() {
53
70
  return {
54
71
  Total: true,
55
72
  List: false,
56
- Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Due" }],
73
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Draft" }],
57
74
  };
58
75
  }
59
- get nPendingOptions() {
76
+ get nRejectedOptions() {
60
77
  return {
61
78
  Total: true,
62
79
  List: false,
63
- Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Pending" }],
80
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Rejected" }],
64
81
  };
65
82
  }
66
83
  get nDoneOptions() {
@@ -70,20 +87,33 @@ export class State {
70
87
  Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Done" }],
71
88
  };
72
89
  }
73
- get nCancelledOptions() {
90
+ get nActiveOptions() {
74
91
  return {
75
92
  Total: true,
76
93
  List: false,
77
- Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Cancelled" }],
94
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Active" }],
95
+ };
96
+ }
97
+ get nClosedOptions() {
98
+ return {
99
+ Total: true,
100
+ List: false,
101
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Closed" }],
78
102
  };
79
103
  }
80
104
  }
81
105
  __decorate([
82
106
  observable
83
107
  ], State.prototype, "menuKey", void 0);
108
+ __decorate([
109
+ observable
110
+ ], State.prototype, "workTypeList", void 0);
84
111
  __decorate([
85
112
  observable
86
113
  ], State.prototype, "workStatusTotals", void 0);
114
+ __decorate([
115
+ observable
116
+ ], State.prototype, "workTypesTotals", void 0);
87
117
  __decorate([
88
118
  action
89
119
  ], State.prototype, "navigate", null);
@@ -91,18 +121,6 @@ __decorate([
91
121
  action
92
122
  ], State.prototype, "updateWorkStatusTotal", null);
93
123
  __decorate([
94
- computed
95
- ], State.prototype, "nNewOptions", null);
96
- __decorate([
97
- computed
98
- ], State.prototype, "nDueOptions", null);
99
- __decorate([
100
- computed
101
- ], State.prototype, "nPendingOptions", null);
102
- __decorate([
103
- computed
104
- ], State.prototype, "nDoneOptions", null);
105
- __decorate([
106
- computed
107
- ], State.prototype, "nCancelledOptions", null);
124
+ action
125
+ ], State.prototype, "updateWorkTypesTotal", null);
108
126
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKpE,MAAM,OAAO,KAAK;IAWjB,YAAoB,OAAsB,EAAU,IAAY;;;;;mBAA5C;;;;;;mBAAgC;;QAVxC;;;;mBAAiB,SAAiC;WAAC;QAEnD;;;;mBAA0B;gBACrC,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,CAAC;gBACN,OAA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E,EAAE,SAAS,EAAE,CAAC;SAC/D,CAAC;IACH,CAAC;IAGD,IAAW,YAAY;QACtB,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;SAC5D,CAAC;IACH,CAAC;IAGD,IAAW,iBAAiB;QAC3B,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC;SACjE,CAAC;IACH,CAAC;CACD;AArEY;IAAX,UAAU;sCAAoD;AAEnD;IAAX,UAAU;+CAMT;AAMM;IAAP,MAAM;qCAGN;AAGD;IADC,MAAM;kDAIN;AAGD;IADC,QAAQ;wCAOR;AAGD;IADC,QAAQ;wCAOR;AAGD;IADC,QAAQ;4CAOR;AAGD;IADC,QAAQ;yCAOR;AAGD;IADC,QAAQ;8CAOR"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAY,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMpE,MAAM,OAAO,KAAK;IAajB,YAAoB,OAAsB,EAAU,IAAY;;;;;mBAA5C;;;;;;mBAAgC;;QAZxC;;;;mBAAiB,SAAiC;WAAC;QACnD;;;;;WAAiC;QACjC;;;;mBAA0B;gBACrC,KAAK,EAAE,CAAC;gBACR,GAAG,EAAE,CAAC;gBACN,QAAQ,EAAE,CAAC;gBACX,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;aACP;WAAC;QACU;;;;m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AAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC;SAChE,CAAC;IACH,CAAC;IAED,IAAW,YAAY;QACtB,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;SAC5D,CAAC;IACH,CAAC;IAED,IAAW,cAAc;QACxB,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;SAC9D,CAAC;IACH,CAAC;IAED,IAAW,cAAc;QACxB,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;SAC9D,CAAC;IACH,CAAC;CACD;AAhFY;IAAX,UAAU;sCAAoD;AACnD;IAAX,UAAU;2CAAkC;AACjC;IAAX,UAAU;+CAOT;AACU;IAAX,UAAU;8CAA6B;AAMhC;IAAP,MAAM;qCAGN;AAGD;IADC,MAAM;kDAIN;AAGD;IADC,MAAM;iDAIN"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const RepeatTab: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default RepeatTab;
@@ -0,0 +1,44 @@
1
+ import React, { useState } from "react";
2
+ import { Form, InputNumber, Select, Radio, Space, Divider, DatePicker, Calendar, } from "@voplus/antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import "./index.less";
5
+ const RepeatTab = (props) => {
6
+ const { Option } = Select;
7
+ const dateFormatList = ["DD MMM yyyy"];
8
+ const [select, setSelect] = useState("Week");
9
+ return observe(() => (React.createElement("div", { className: "repeat-tab" },
10
+ React.createElement("div", { className: "repeat-tab-head" }, "Repeat Tab"),
11
+ React.createElement(Form, { className: "repeat-tab-content", labelAlign: "left", labelCol: { span: 2 } },
12
+ React.createElement(Form.Item, { label: "Every" },
13
+ React.createElement(InputNumber, { defaultValue: "1", bordered: false }),
14
+ React.createElement(Select, { onChange: handleChange, defaultValue: "Week", style: { width: 120 }, bordered: false },
15
+ React.createElement(Option, { value: "Week" }, "Week"),
16
+ React.createElement(Option, { value: "Month" }, "Month"),
17
+ React.createElement(Option, { value: "Year" }, "Year")),
18
+ select === "Week" && React.createElement("div", null, "Sun Mon Tue Wed Thu Fri Sat"),
19
+ select === "Month" && (React.createElement("div", { className: "site-calendar-demo-card" },
20
+ React.createElement(Calendar, { mode: "month", fullscreen: false }))),
21
+ select === "Year" && React.createElement("div", null, "Year")),
22
+ React.createElement(Divider, null),
23
+ React.createElement(Form.Item, { label: "Ends" },
24
+ React.createElement(Radio.Group, null,
25
+ React.createElement(Space, { direction: "vertical" },
26
+ React.createElement(Radio, { value: "never" }, "Never"),
27
+ React.createElement("div", null,
28
+ React.createElement(Radio, { value: "on" }, "On"),
29
+ React.createElement(DatePicker, { bordered: false, format: dateFormatList }))))),
30
+ React.createElement(Divider, null),
31
+ React.createElement("span", { style: { fontWeight: 500 } }, "Weekly on Wednesday, Friday"),
32
+ React.createElement(Divider, null)))));
33
+ function handleChange(value) {
34
+ setSelect(value);
35
+ }
36
+ function onPanelChange(value, mode) {
37
+ console.log(value, mode);
38
+ }
39
+ function onChange(checkedValues) {
40
+ console.log("checked = ", checkedValues);
41
+ }
42
+ };
43
+ export default RepeatTab;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/RepeatTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,IAAI,EACJ,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,GACR,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,cAAc,CAAC;AAEtB,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,MAAM,cAAc,GAAG,CAAC,aAAa,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE7C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,YAAY;QAC1B,6BAAK,SAAS,EAAC,iBAAiB,iBAAiB;QACjD,oBAAC,IAAI,IAAC,SAAS,EAAC,oBAAoB,EAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;YAC3E,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO;gBACvB,oBAAC,WAAW,IAAC,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,GAAI;gBACnD,oBAAC,MAAM,IACN,QAAQ,EAAE,YAAY,EACtB,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EACrB,QAAQ,EAAE,KAAK;oBAEf,oBAAC,MAAM,IAAC,KAAK,EAAC,MAAM,WAAc;oBAClC,oBAAC,MAAM,IAAC,KAAK,EAAC,OAAO,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background: #fff;
7
+ font-size: 16px;
8
+ font-weight: 600;
9
+ border-bottom: 1px solid #f2f2f2;
10
+ }
11
+
12
+ .repeat-tab-content {
13
+ padding: 10px 20px;
14
+ }
15
+
16
+ .site-calendar-demo-card {
17
+ width: 300px;
18
+ border: 1px solid #f0f0f0;
19
+ border-radius: 2px;
20
+ }
21
+
22
+ .week-content-item {
23
+ width: 30px;
24
+ height: 30px;
25
+ border-radius: 50%;
26
+ border: 1px solid #000;
27
+ font-size: 12px;
28
+ margin: 3px;
29
+ }
30
+ }
@@ -1,8 +1,6 @@
1
1
  import React, { useState } from "react";
2
- import { Form, Button } from "@voplus/antd";
2
+ import { Form } from "@voplus/antd";
3
3
  import { InlineEdit, observe } from "@voplus/morpho-ui";
4
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
- import { faMinusCircle } from "@fortawesome/pro-light-svg-icons";
6
4
  import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
7
5
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
8
6
  import { useApplicationContext } from "@voplus/morpho-data";
@@ -20,12 +18,10 @@ const WorkTypeProperties = (props) => {
20
18
  state.update(worktype);
21
19
  const [form] = Form.useForm();
22
20
  const { user } = useApplicationContext();
23
- // useEffect(() => {
24
- // runInAction(() => (state.defaultdueEdit = worktype.defaultDue ? true : false));
25
- // }, [props.id]);
26
21
  return observe(() => {
27
- var _a, _b, _c;
22
+ var _a, _b, _c, _d, _e;
28
23
  return (React.createElement("div", { className: "work-type-properties" },
24
+ React.createElement("h2", null, worktype === null || worktype === void 0 ? void 0 : worktype.name),
29
25
  React.createElement(Form, { form: form, labelAlign: "left", labelCol: { span: 11 }, scrollToFirstError: true },
30
26
  React.createElement(Form.Item, { label: "Number Format" },
31
27
  React.createElement(InlineEdit, { defaultValue: (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, content: (v) => {
@@ -33,22 +29,29 @@ const WorkTypeProperties = (props) => {
33
29
  return (React.createElement("div", null, ((_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format) ? worktype.sequence.format : "Add NumberFormat"));
34
30
  }, onSave: (value) => { var _a; return state.save(value, (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, { Sequence: { format: value } }); } })),
35
31
  React.createElement(Form.Item, { label: "Default Folder" },
36
- React.createElement("div", { onClick: () => runInAction(() => {
32
+ React.createElement(InlineEdit, { showDeleteIcon: ((_b = state.worktype.defaultFolder) === null || _b === void 0 ? void 0 : _b.id) ? true : false, defaultValue: `&${(_c = state.worktype.defaultFolder) === null || _c === void 0 ? void 0 : _c.name}`, editable: false, content: (v) => {
37
33
  var _a;
38
- ((_a = state.worktype.defaultFolder) === null || _a === void 0 ? void 0 : _a.id)
39
- ? (state.folderEdit = false)
40
- : (state.folderEdit = true);
41
- }) }, ((_b = state.worktype.defaultFolder) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement("div", null,
42
- React.createElement("span", { className: "prosemirror-mention-node", onClick: () => {
43
- var _a;
44
- setVisible(true);
45
- setIds((_a = state.worktype.defaultFolder) === null || _a === void 0 ? void 0 : _a.id);
46
- } }, `&${state.worktype.defaultFolder.name}`),
47
- React.createElement(Button, { type: "text", icon: React.createElement(FAIcon, { icon: faMinusCircle, onClick: () => store.edit(props.id, { data: { DefaultFolderId: "" }, error: "message" }) }) }))) : (React.createElement("span", null, " Add Default Folder ")))),
34
+ return (React.createElement("div", null, ((_a = state.worktype.defaultFolder) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement("span", { className: "prosemirror-mention-node", onClick: () => {
35
+ var _a;
36
+ setVisible(true);
37
+ setIds((_a = state.worktype.defaultFolder) === null || _a === void 0 ? void 0 : _a.id);
38
+ } }, `&${state.worktype.defaultFolder.name}`)) : (React.createElement("span", { onClick: () => runInAction(() => (state.folderEdit = true)) }, "Add Default Folder"))));
39
+ }, onDeleteIconClick: () => store
40
+ .edit(props.id, { data: { DefaultFolderId: "" }, error: "message" })
41
+ .then(() => (state.worktype.defaultFolder = undefined)) })),
48
42
  React.createElement(Form.Item, { label: "Documentation" },
49
- React.createElement("div", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, ((_c = state.worktype.document) === null || _c === void 0 ? void 0 : _c.name) || "Add Documentation")),
43
+ React.createElement(InlineEdit, { showDeleteIcon: ((_d = state.worktype.document) === null || _d === void 0 ? void 0 : _d.id) ? true : false, defaultValue: `&${(_e = state.worktype.document) === null || _e === void 0 ? void 0 : _e.name}`, editable: false, content: (v) => {
44
+ var _a, _b;
45
+ return (React.createElement("div", null, ((_a = state.worktype.document) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement("span", { className: "prosemirror-mention-node", onClick: () => {
46
+ var _a;
47
+ setVisible(true);
48
+ setIds((_a = state.worktype.document) === null || _a === void 0 ? void 0 : _a.id);
49
+ } }, `&${(_b = state.worktype.document) === null || _b === void 0 ? void 0 : _b.name}`)) : (React.createElement("span", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, "Add Documentation"))));
50
+ }, onDeleteIconClick: () => store
51
+ .edit(props.id, { data: { DocumentId: "" }, error: "message" })
52
+ .then(() => (state.worktype.document = undefined)) })),
50
53
  React.createElement(Form.Item, { label: "Default Due" },
51
- React.createElement(InlineEdit, { defaultValue: worktype.defaultDue, content: (v) => (React.createElement("div", null, worktype.defaultDue ? worktype.defaultDue : "Add Default Due")), onSave: (value) => store.edit(worktype.id, { data: { DefaultDue: value }, error: "message" }) })),
54
+ React.createElement(InlineEdit, { defaultValue: worktype.defaultDue, content: (v) => (React.createElement("div", null, (worktype.defaultDue === 0 ? "Same day" : (`${worktype.defaultDue} days`)) || "Add default due in days")), onSave: (value) => store.edit(worktype.id, { data: { DefaultDue: value }, error: "message" }) })),
52
55
  React.createElement(Form.Item, { label: "Requester" },
53
56
  React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.requester, onChange: (ids) => {
54
57
  store.edit(worktype.id, { data: { RequesterIds: ids }, error: "message" });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAe,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEnC,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAA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AAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAC7E,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,CAAC;gBACtD,CAAC,GACA,CACF;YACD,oBAAC,uBAAuB,IAAC,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACpF,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -18,13 +18,4 @@
18
18
  border-radius: 20px;
19
19
  padding: 0px 0.3em 2px 0.23em;
20
20
  }
21
-
22
- .ant-btn {
23
- left: -15px;
24
- top: -10px;
25
- }
26
-
27
- .ant-btn-text {
28
- color: rgb(247 4 4);
29
- }
30
21
  }
@@ -14,7 +14,6 @@ export class State {
14
14
  writable: true,
15
15
  value: void 0
16
16
  });
17
- // @observable public defaultdueEdit = false;
18
17
  Object.defineProperty(this, "folderEdit", {
19
18
  enumerable: true,
20
19
  configurable: true,
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAMjB,YAAoB,KAAoB;;;;;mBAApB;;QALR;;;;;WAA2B;QACvC,6CAA6C;QACjC;;;;mBAAoB,KAAK;WAAC;QAC1B;;;;mBAA2B,KAAK;WAAC;QAG5C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,QAAmB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC1B,CAAC;IAED,gBAAgB;IAET,IAAI,CAAC,CAAM,EAAE,IAAS,EAAE,MAA+B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AE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACvE,CAAC;CACD;AAlBY;IAAX,UAAU;uCAA4B;AAC3B;IAAX,UAAU;yCAA2B;AAC1B;IAAX,UAAU;gDAAkC;AAMrC;IAAP,MAAM;mCAEN;AAID;IADC,MAAM;iCAIN"}
@@ -6,7 +6,6 @@ import { useWorkType, useWorkTypeStore } from "../../../../data/worktype";
6
6
  import { observe } from "@voplus/morpho-ui";
7
7
  import { runInAction } from "mobx";
8
8
  import { useApplicationContext } from "@voplus/morpho-data";
9
- import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
10
9
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
11
10
  import CheckList from "@voplus/morpho-ui/es/controls/CheckList";
12
11
  import TaskQuickViewDialog from "../../../tasks/components/TaskQuickViewDialog";
@@ -15,7 +14,6 @@ const WorkTypeQA = (props) => {
15
14
  const { id } = props;
16
15
  const [form] = Form.useForm();
17
16
  const { user } = useApplicationContext();
18
- const [asideContext] = useState(AsideContent.createContext());
19
17
  const store = useWorkTypeStore();
20
18
  const [state] = useState(new State(store));
21
19
  const [visible, setVisible] = useState(false);
@@ -23,38 +21,37 @@ const WorkTypeQA = (props) => {
23
21
  state.update(workType);
24
22
  return observe(() => {
25
23
  var _a, _b, _c, _d, _e, _f;
26
- return (React.createElement(AsideContent, { context: asideContext },
27
- React.createElement("div", { className: "work-type-qa" },
28
- React.createElement("div", { className: "work-type-qa-head" }, "Quality Assurance Setting"),
29
- React.createElement(Scrollbars, { autoHide: true },
30
- React.createElement(Form, { className: "work-type-qa-content", form: form, labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true },
31
- React.createElement(Form.Item, { label: "Reviewer" },
32
- React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: state.worktype.reviewers, onChange: (ids) => {
33
- state.save({ ReviewerIds: ids });
34
- } })),
35
- React.createElement(Form.Item, { label: "Auditor" },
36
- React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: (_a = state.worktype.audit) === null || _a === void 0 ? void 0 : _a.auditors, onChange: (ids) => {
37
- state.save({ AuditorIds: ids });
38
- } })),
39
- ((_c = (_b = state.worktype.audit) === null || _b === void 0 ? void 0 : _b.auditors) === null || _c === void 0 ? void 0 : _c.length) && (React.createElement(React.Fragment, null,
40
- React.createElement(Form.Item, { label: "Audit Rate" }, state.auditRateEdit ? (React.createElement(InputNumber, { defaultValue: ((_d = state.worktype.audit) === null || _d === void 0 ? void 0 : _d.auditRate) || 0, min: 0, max: 100, formatter: (value) => `${value}%`, parser: (value) => value.replace("%", ""), onChange: (value) => {
41
- state.save({ AuditRate: value });
42
- }, onBlur: () => runInAction(() => (state.auditRateEdit = false)) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.auditRateEdit = true)) }, ((_e = state.worktype.audit) === null || _e === void 0 ? void 0 : _e.auditRate)
43
- ? `${(_f = state.worktype.audit) === null || _f === void 0 ? void 0 : _f.auditRate}%`
44
- : "Add Audit Rate"))),
45
- React.createElement(Form.Item, { label: "Audit Task" },
46
- React.createElement("div", { className: "open-btn", onClick: () => setVisible(true) }, "Open")))),
47
- React.createElement(Form.Item, { label: "Reject Reasons" },
48
- React.createElement(CheckList, { headerProps: {
49
- viewTitle: " ",
50
- visible: true,
51
- }, allowAdd: true, list: state.rejectReasons, onChange: (item) => state.onChangeRejectReasons(item), onCreate: (item) => state.onCreateRejectReasons(item), onDelete: (item) => state.onDeleteRejectReasons(item) })),
52
- React.createElement(Form.Item, { label: "Error Types" },
53
- React.createElement(CheckList, { headerProps: {
54
- viewTitle: " ",
55
- visible: true,
56
- }, allowAdd: true, list: state.errorTypes, onChange: (item) => state.onChangeErrorTypes(item), onCreate: (item) => state.onCreateErrorTypes(item), onDelete: (item) => state.onDeleteErrorTypes(item) }))),
57
- React.createElement(TaskQuickViewDialog, { id: props.id, visible: visible, onCancel: () => setVisible(false) })))));
24
+ return (React.createElement("div", { className: "work-type-qa" },
25
+ React.createElement("div", { className: "work-type-qa-head" }, "Quality Assurance Setting"),
26
+ React.createElement(Scrollbars, { autoHide: true },
27
+ React.createElement(Form, { className: "work-type-qa-content", form: form, labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true },
28
+ React.createElement(Form.Item, { label: "Reviewer" },
29
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: state.worktype.reviewers, onChange: (ids) => {
30
+ state.save({ ReviewerIds: ids });
31
+ } })),
32
+ React.createElement(Form.Item, { label: "Auditor" },
33
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: (_a = state.worktype.audit) === null || _a === void 0 ? void 0 : _a.auditors, onChange: (ids) => {
34
+ state.save({ AuditorIds: ids });
35
+ } })),
36
+ ((_c = (_b = state.worktype.audit) === null || _b === void 0 ? void 0 : _b.auditors) === null || _c === void 0 ? void 0 : _c.length) && (React.createElement(React.Fragment, null,
37
+ React.createElement(Form.Item, { label: "Audit Rate" }, state.auditRateEdit ? (React.createElement(InputNumber, { defaultValue: ((_d = state.worktype.audit) === null || _d === void 0 ? void 0 : _d.auditRate) || 0, min: 0, max: 100, formatter: (value) => `${value}%`, parser: (value) => value.replace("%", ""), onChange: (value) => {
38
+ state.save({ AuditRate: value });
39
+ }, onBlur: () => runInAction(() => (state.auditRateEdit = false)) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.auditRateEdit = true)) }, ((_e = state.worktype.audit) === null || _e === void 0 ? void 0 : _e.auditRate)
40
+ ? `${(_f = state.worktype.audit) === null || _f === void 0 ? void 0 : _f.auditRate}%`
41
+ : "Add Audit Rate"))),
42
+ React.createElement(Form.Item, { label: "Audit Task" },
43
+ React.createElement("div", { className: "open-btn", onClick: () => setVisible(true) }, "Open")))),
44
+ React.createElement(Form.Item, { label: "Reject Reasons" },
45
+ React.createElement(CheckList, { headerProps: {
46
+ viewTitle: " ",
47
+ visible: true,
48
+ }, allowAdd: true, list: state.rejectReasons, onChange: (item) => state.onChangeRejectReasons(item), onCreate: (item) => state.onCreateRejectReasons(item), onDelete: (item) => state.onDeleteRejectReasons(item) })),
49
+ React.createElement(Form.Item, { label: "Error Types" },
50
+ React.createElement(CheckList, { headerProps: {
51
+ viewTitle: " ",
52
+ visible: true,
53
+ }, allowAdd: true, list: state.errorTypes, onChange: (item) => state.onChangeErrorTypes(item), onCreate: (item) => state.onCreateErrorTypes(item), onDelete: (item) => state.onDeleteErrorTypes(item) }))),
54
+ React.createElement(TaskQuickViewDialog, { id: props.id, visible: visible, onCancel: () => setVisible(false) }))));
58
55
  });
59
56
  };
60
57
  export default WorkTypeQA;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeQA/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,mBAAmB,MAAM,+CAA+C,CAAC;AAChF,OAAO,cAAc,CAAC;AAEtB,MAAM,UAAU,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC5C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC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EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CAC9E,CACR,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -7,6 +7,7 @@ import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
7
7
  import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
8
8
  import WorkTaskList from "../../../work/components/WorkTaskList";
9
9
  import WorkTypeQA from "../WorkTypeQA";
10
+ import RepeatTab from "../RepeatTab";
10
11
  import WorkTypeStats from "../WorkTypeStats";
11
12
  const WorkTypeTabs = (props) => {
12
13
  const { id } = props;
@@ -25,22 +26,19 @@ const WorkTypeTabs = (props) => {
25
26
  "Documents",
26
27
  React.createElement(Badge, { count: 3, className: "site-badge-count" })), key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Task"] })),
27
28
  React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
28
- React.createElement(Tabs.TabPane, { tab: "QA Setting", key: "QA Setting" }, activeKey === "QA Setting" && React.createElement(WorkTypeQA, { id: id })))));
29
+ React.createElement(Tabs.TabPane, { tab: "QA Setting", key: "QA Setting" }, activeKey === "QA Setting" && React.createElement(WorkTypeQA, { id: id })),
30
+ React.createElement(Tabs.TabPane, { tab: "Repeat Tab", key: "Repeat Tab" }, activeKey === "Repeat Tab" && React.createElement(RepeatTab, { id: id })))));
29
31
  /**切换面板的回调*/
30
32
  function onChange(activeKey) {
31
33
  setActiveKey(activeKey);
32
34
  }
33
35
  function onClickItem(id) {
34
- // asideContext?.openAside(
35
- // <TaskPropertiesView id={id} />,
36
- // { span: 12 }
37
- // );
38
- if (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) {
39
- asideContext.closeAside();
40
- }
41
- else {
42
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(TaskPropertiesView, { id: id }), { span: 12 });
43
- }
36
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(TaskPropertiesView, { id: id }), { span: 12 });
37
+ // if (asideContext?.asideContent) {
38
+ // asideContext.closeAside();
39
+ // } else {
40
+ // asideContext?.openAside(<TaskPropertiesView id={id} />, { span: 12 });
41
+ // }
44
42
  }
45
43
  };
46
44
  export default WorkTypeTabs;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,WAAW,MAAM,gEAAgE,CAAC;AACzF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,YAAY,MAAM,uCAAuC,CAAC;AACjE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,SAAS,CAAC,GAAG,EAAE;QACd,YAAY,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAEf,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC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AAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY,IAC7C,SAAS,KAAK,YAAY,IAAI,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,GAAI,CACvC;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY,IAC7C,SAAS,KAAK,YAAY,IAAI,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CACtC,CACT,CACP,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;IAED,SAAS,WAAW,CAAC,EAAU;QAC9B,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACtE,oCAAoC;QACpC,8BAA8B;QAC9B,WAAW;QACX,0EAA0E;QAC1E,IAAI;IACL,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,17 +1,25 @@
1
- import "./index.less";
2
- import React, { useState } from "react";
1
+ import React, { useState, useEffect } from "react";
3
2
  import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
4
3
  import { useRouteMatch } from "react-router";
4
+ import { useTabItem } from "@voplus/morpho-data";
5
5
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
6
6
  import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
7
7
  import WorkTypeProperties from "../../components/WorkTypeProperties";
8
8
  import WorkTypeTabs from "../../components/WorkTypeTabs";
9
+ import { useWorkType } from "../../../../data/worktype";
9
10
  import { observe } from "@voplus/morpho-ui";
11
+ import { runInAction } from "mobx";
12
+ import "./index.less";
10
13
  const WorkTypeDefaultView = () => {
11
14
  const match = useRouteMatch();
12
15
  const id = match.params.id;
13
16
  const store = new TabItemStore({ url: "" });
14
17
  const [asideContext] = useState(AsideContent.createContext());
18
+ const worktype = useWorkType(id);
19
+ const tab = useTabItem();
20
+ useEffect(() => {
21
+ runInAction(() => (tab.title = worktype.name));
22
+ }, []);
15
23
  return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
16
24
  React.createElement(MainContent, { className: "work-type-default-view" },
17
25
  React.createElement(MainContent.Nav, { collapsible: true },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/pages/WorkTypeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAA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