@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
@@ -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,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AC,CAAC;IAC1B,CAAC;IACD,SAAS,QAAQ,CAAC,aAAkB;QACnC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;IAC1C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ :global {
2
+ .repeat-tab {}
3
+
4
+ .repeat-tab-head {
5
+ padding: 10px 20px;
6
+ 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
+ }
@@ -16,7 +16,7 @@ const WorkTypeItem = (props) => {
16
16
  show: hover,
17
17
  }) },
18
18
  React.createElement(ToolBar, { id: id, showMenu: false },
19
- React.createElement(Open, { size: "middle", url: `/workType/${id}` }),
19
+ React.createElement(Open, { size: "middle", url: `/work-types/${id}` }),
20
20
  React.createElement(WorkTypeMenu, { id: id, size: "middle", closeAside: true }))))));
21
21
  };
22
22
  export default WorkTypeItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,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AAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IWorkType } from "../../../../data/worktype";
3
+ import "./index.less";
3
4
  declare const WorkTypeList: (props: {
4
5
  workspaceId: string;
5
6
  active?: string | undefined;
@@ -9,6 +9,7 @@ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2"
9
9
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
10
10
  import WorkTypeItem from "../WorkTypeItem";
11
11
  import NewTypeForm from "../NewTypeForm";
12
+ import "./index.less";
12
13
  const WorkTypeList = (props) => {
13
14
  const [activeId, setActiveId] = useState("");
14
15
  const [showAdd, setShowAdd] = useState(false);
@@ -22,23 +23,24 @@ const WorkTypeList = (props) => {
22
23
  useRenderOnChange(() => list.filters.options);
23
24
  /** 把ListDataState传给useWorkTypeListEffect,使之可以自動更新loading, hasmore. */
24
25
  useWorkTypeListEffect(list, (result) => list.union(result), list.filters.options);
25
- return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
26
- React.createElement(ListView, { headerProps: {
27
- viewTitle: "",
28
- sortable: false,
29
- onAdd: () => setShowAdd(true),
30
- }, className: "work-type-list", formViewTitle: "Add WorkType", renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
31
- React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
32
- active: activeId === item.id,
33
- hoverEffect: "background",
34
- hoverBackgroundProps: { color: "#f2f2f2" },
35
- }, onClick: () => {
36
- var _a;
37
- setActiveId(item.id);
38
- (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
39
- } },
40
- React.createElement(WorkTypeItem, { id: item.id })))) }),
41
- showAdd && (React.createElement(NewTypeForm, { workspaceId: props.workspaceId, onCancel: () => setShowAdd(false), onSave: () => setShowAdd(false) })))));
26
+ return observe(() => (React.createElement("div", { className: "work-type-list" },
27
+ React.createElement(ListDataContext.Provider, { value: list },
28
+ React.createElement(ListView, { headerProps: {
29
+ viewTitle: "WorkTypes",
30
+ sortable: false,
31
+ onAdd: () => setShowAdd(true),
32
+ }, formViewTitle: "Add WorkType", renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
33
+ React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
34
+ active: activeId === item.id,
35
+ hoverEffect: "background",
36
+ hoverBackgroundProps: { color: "#f2f2f2" },
37
+ }, onClick: () => {
38
+ var _a;
39
+ setActiveId(item.id);
40
+ (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
41
+ } },
42
+ React.createElement(WorkTypeItem, { id: item.id })))) }),
43
+ showAdd && (React.createElement(NewTypeForm, { workspaceId: props.workspaceId, onCancel: () => setShowAdd(false), onSave: () => setShowAdd(false) }))))));
42
44
  };
43
45
  export default WorkTypeList;
44
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAa,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,qFAAqF;AACrF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,MAAM,YAAY,GAAG,CAAC,KAKrB,EAAE,EAAE;IACJ,MAAM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4BACb,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;4BACrB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;wBAC3B,CAAC;wBAED,oBAAC,YAAY,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACV,CACJ,CACjB,GACA;YACD,OAAO,IAAI,CACX,oBAAC,WAAW,IACX,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAC9B,CACF,CACyB,CACtB,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ :global {
2
+ .work-type-list{
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: 100%;
6
+ }
7
+ }
@@ -5,22 +5,23 @@ import DocumentSelectDialog from "@voplus/morpho-document/es/components/Document
5
5
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
6
6
  import { useApplicationContext } from "@voplus/morpho-data";
7
7
  import { useWorkType, useWorkTypeStore } from "../../../../data/worktype";
8
+ import DocumentQuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
8
9
  import { State } from "./state";
9
10
  import { runInAction } from "mobx";
10
11
  import "./index.less";
11
12
  const WorkTypeProperties = (props) => {
12
13
  const store = useWorkTypeStore();
13
14
  const [state] = useState(new State(store));
15
+ const [visible, setVisible] = useState(false);
16
+ const [ids, setIds] = useState("");
14
17
  const worktype = useWorkType(props.id);
15
18
  state.update(worktype);
16
19
  const [form] = Form.useForm();
17
20
  const { user } = useApplicationContext();
18
- // useEffect(() => {
19
- // runInAction(() => (state.defaultdueEdit = worktype.defaultDue ? true : false));
20
- // }, [props.id]);
21
21
  return observe(() => {
22
- var _a, _b, _c;
22
+ var _a, _b, _c, _d, _e;
23
23
  return (React.createElement("div", { className: "work-type-properties" },
24
+ React.createElement("h2", null, worktype === null || worktype === void 0 ? void 0 : worktype.name),
24
25
  React.createElement(Form, { form: form, labelAlign: "left", labelCol: { span: 11 }, scrollToFirstError: true },
25
26
  React.createElement(Form.Item, { label: "Number Format" },
26
27
  React.createElement(InlineEdit, { defaultValue: (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, content: (v) => {
@@ -28,11 +29,29 @@ const WorkTypeProperties = (props) => {
28
29
  return (React.createElement("div", null, ((_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format) ? worktype.sequence.format : "Add NumberFormat"));
29
30
  }, onSave: (value) => { var _a; return state.save(value, (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, { Sequence: { format: value } }); } })),
30
31
  React.createElement(Form.Item, { label: "Default Folder" },
31
- React.createElement("div", { onClick: () => runInAction(() => (state.folderEdit = true)) }, ((_b = state.worktype.defaultFolder) === null || _b === void 0 ? void 0 : _b.name) || "Add Default Folder")),
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) => {
33
+ var _a;
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)) })),
32
42
  React.createElement(Form.Item, { label: "Documentation" },
33
- 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)) })),
34
53
  React.createElement(Form.Item, { label: "Default Due" },
35
- 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" }) })),
36
55
  React.createElement(Form.Item, { label: "Requester" },
37
56
  React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.requester, onChange: (ids) => {
38
57
  store.edit(worktype.id, { data: { RequesterIds: ids }, error: "message" });
@@ -40,6 +59,10 @@ const WorkTypeProperties = (props) => {
40
59
  React.createElement(Form.Item, { label: "Accepters" },
41
60
  React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.accepters, onChange: (ids) => {
42
61
  store.edit(worktype.id, { data: { AccepterIds: ids }, error: "message" });
62
+ } })),
63
+ React.createElement(Form.Item, { label: "Default Owner" },
64
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.owners, onChange: (ids) => {
65
+ store.edit(worktype.id, { data: { OwnerIds: ids }, error: "message" });
43
66
  } }))),
44
67
  state.folderEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.folderEdit = false)), onSelect: (data) => {
45
68
  store.edit(props.id, { data: { DefaultFolderId: data[0].id }, error: "message" });
@@ -48,7 +71,8 @@ const WorkTypeProperties = (props) => {
48
71
  state.documentationEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.documentationEdit = false)), onSelect: (data) => {
49
72
  store.edit(props.id, { data: { DocumentId: data[0].id }, error: "message" });
50
73
  runInAction(() => (state.documentationEdit = false));
51
- } }))));
74
+ } })),
75
+ React.createElement(DocumentQuickViewDialog, { id: ids, visible: visible, onCancel: () => setVisible(false) })));
52
76
  });
53
77
  };
54
78
  export default WorkTypeProperties;
@@ -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,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,gB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C,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC;gBAC/C,CAAC,GACA,CACF;YACA,KAAK,CAAC,iBAAiB,IAAI,CAC3B,oBAAC,oBAAoB,IACpB,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,EACpE,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;oBACH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,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,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
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,cAAc,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,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,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BAC/C,CAAC,GACA,CACF;YACA,KAAK,CAAC,iBAAiB,IAAI,CAC3B,oBAAC,oBAAoB,IACpB,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,EACpE,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;oBACH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,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"}
@@ -1,5 +1,21 @@
1
- :global{
2
- .work-type-properties{
1
+ :global {
2
+ .work-type-properties {
3
3
  padding: 10px 20px;
4
4
  }
5
+
6
+ .prosemirror-mention-node {
7
+ color: rgb(66, 82, 110);
8
+ cursor: pointer;
9
+ line-height: 1.714;
10
+ font-size: 1em;
11
+ font-weight: normal;
12
+ word-break: break-word;
13
+ background: rgba(9, 30, 66, 0.08);
14
+ border-width: 1px;
15
+ border-style: solid;
16
+ border-color: transparent;
17
+ border-image: initial;
18
+ border-radius: 20px;
19
+ padding: 0px 0.3em 2px 0.23em;
20
+ }
5
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;QAC7D,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,IAAI,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,EAAE;YAAE,OAAO;QACnD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACvE,CAAC;CACD;AAnBY;IAAX,UAAU;uCAA4B;AAE3B;IAAX,UAAU;yCAA2B;AAC1B;IAAX,UAAU;gDAAkC;AAMrC;IAAP,MAAM;mCAEN;AAID;IADC,MAAM;iCAIN"}
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;IAKjB,YAAoB,KAAoB;;;;;mBAApB;;QAJR;;;;;WAA2B;QAC3B;;;;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;QAC7D,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,IAAI,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,EAAE;YAAE,OAAO;QACnD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,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"}
@@ -30,7 +30,7 @@ const WorkTypePropertiesView = (props) => {
30
30
  React.createElement(InlineEdit, { defaultValue: worktype.name, content: (v) => React.createElement("div", null, worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }),
31
31
  React.createElement("div", { className: "tools-bar" },
32
32
  React.createElement(ToolBar, { id: id, showMenu: false },
33
- React.createElement(Open, { url: `/workType/${id}` }),
33
+ React.createElement(Open, { url: `/work-types/${id}` }),
34
34
  React.createElement(WorkTypeMenu, { id: id, closeAside: true }))))),
35
35
  React.createElement(WorktypeCompleteWorksChart, { id: props.id }),
36
36
  React.createElement(WorkTypePropertiesTabs, { id: id }))))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules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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;IAErB,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9D,MA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, useState } from "react";
2
4
  import { observe, useAsideContentContext } from "@voplus/morpho-ui";
3
- import { Badge, Tabs } from "@voplus/antd";
5
+ import ActivityLog from "@voplus/morpho-document/es/components/ActivityLog/ActivityLog2";
4
6
  import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
5
7
  import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
6
8
  import WorkTaskList from "../../../work/components/WorkTaskList";
7
9
  import WorkTypeQA from "../WorkTypeQA";
10
+ import RepeatTab from "../RepeatTab";
8
11
  import WorkTypeStats from "../WorkTypeStats";
9
- import "./index.less";
10
12
  const WorkTypeTabs = (props) => {
11
13
  const { id } = props;
12
14
  /**Tabs 当前激活 tab 面板的 key */
@@ -23,22 +25,20 @@ const WorkTypeTabs = (props) => {
23
25
  React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
24
26
  "Documents",
25
27
  React.createElement(Badge, { count: 3, className: "site-badge-count" })), key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Task"] })),
26
- React.createElement(Tabs.TabPane, { tab: "QA Setting", key: "QA Setting" }, activeKey === "QA Setting" && React.createElement(WorkTypeQA, { id: id })))));
28
+ React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { 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 })))));
27
31
  /**切换面板的回调*/
28
32
  function onChange(activeKey) {
29
33
  setActiveKey(activeKey);
30
34
  }
31
35
  function onClickItem(id) {
32
- // asideContext?.openAside(
33
- // <TaskPropertiesView id={id} />,
34
- // { span: 12 }
35
- // );
36
- if (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) {
37
- asideContext.closeAside();
38
- }
39
- else {
40
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(TaskPropertiesView, { id: id }), { span: 12 });
41
- }
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
+ // }
42
42
  }
43
43
  };
44
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,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,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;AAC7C,OAAO,cAAc,CAAC;AAEtB,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,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AAE,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 },