@voplus/morpho-workspace 6.0.72 → 6.0.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. package/es/components/AutoSequenceDialog/index.less +14 -14
  2. package/es/components/TimeLog/index.less +86 -86
  3. package/es/controls/Corner/index.less +7 -7
  4. package/es/controls/InlineSearch/index.less +10 -10
  5. package/es/controls/MoreOperateDropdown/index.less +12 -12
  6. package/es/controls/StickyAddButton/index.less +22 -22
  7. package/es/controls/filters/AssigneeViewFilter/index.less +24 -24
  8. package/es/controls/filters/EventsFilter/index.js +2 -7
  9. package/es/controls/filters/EventsFilter/index.js.map +1 -1
  10. package/es/controls/filters/EventsFilter/state.d.ts +3 -1
  11. package/es/controls/filters/EventsFilter/state.js +18 -1
  12. package/es/controls/filters/EventsFilter/state.js.map +1 -1
  13. package/es/controls/filters/TaskStatusFilter/index.js +2 -7
  14. package/es/controls/filters/TaskStatusFilter/index.js.map +1 -1
  15. package/es/controls/filters/TaskStatusFilter/state.d.ts +3 -1
  16. package/es/controls/filters/TaskStatusFilter/state.js +18 -1
  17. package/es/controls/filters/TaskStatusFilter/state.js.map +1 -1
  18. package/es/modules/board/components/Board/index.less +133 -133
  19. package/es/modules/board/components/BoardColumn/index.less +270 -270
  20. package/es/modules/board/components/BoardPropertiesView/index.less +12 -12
  21. package/es/modules/board/components/SubDocumentList/index.less +30 -30
  22. package/es/modules/board/pages/BoardViewList/index.less +15 -15
  23. package/es/modules/calendar/components/CalendarMenu/index.less +31 -31
  24. package/es/modules/calendar/pages/CalendarMonth/index.less +268 -268
  25. package/es/modules/meeting/components/AgendaList/AgendaHeader/index.less +14 -14
  26. package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +132 -132
  27. package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.less +57 -57
  28. package/es/modules/meeting/components/AgendaList/index.less +47 -47
  29. package/es/modules/meeting/components/MeetingDescription/index.less +12 -12
  30. package/es/modules/meeting/components/MeetingHeader/index.less +13 -13
  31. package/es/modules/meeting/components/MeetingItem/index.less +66 -66
  32. package/es/modules/meeting/components/MeetingList/QuickSearch/index.less +12 -12
  33. package/es/modules/meeting/components/MeetingPropertiesView/index.less +15 -15
  34. package/es/modules/meeting/components/MeetingQuickViewDialog/index.less +14 -14
  35. package/es/modules/meeting/components/MeetingTaskList/index.less +30 -30
  36. package/es/modules/meeting/components/MeetingsFolderProperitesView/index.less +8 -8
  37. package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.less +7 -7
  38. package/es/modules/meeting/components/NewMeetingForm/index.less +35 -35
  39. package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.less +7 -7
  40. package/es/modules/meeting/pages/MeetingDefaultView/index.less +23 -23
  41. package/es/modules/meeting/pages/MeetingPrintView/index.less +82 -82
  42. package/es/modules/meeting/pages/MeetingPrintView/print.css +22 -22
  43. package/es/modules/meeting/pages/MeetingTabView/index.less +21 -21
  44. package/es/modules/meeting/styles/MeetingMinView.less +32 -32
  45. package/es/modules/menus/components/AddUsers/index.less +7 -7
  46. package/es/modules/menus/components/UsersList/index.less +64 -64
  47. package/es/modules/menus/pages/ListOptions/Company/index.less +20 -20
  48. package/es/modules/menus/pages/ListOptions/Teams/index.less +44 -44
  49. package/es/modules/menus/pages/ListOptions/Users/index.less +42 -42
  50. package/es/modules/notification/components/DocumentNotificationCard/index.js +6 -3
  51. package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -1
  52. package/es/modules/notification/components/DocumentNotificationCard/index.less +29 -29
  53. package/es/modules/notification/components/NewNotificationForm/index.less +38 -38
  54. package/es/modules/notification/components/NotificationHeader/index.less +12 -12
  55. package/es/modules/notification/components/NotificationItem/index.less +29 -29
  56. package/es/modules/notification/components/NotificationList/index.less +31 -31
  57. package/es/modules/notification/components/NotificationList2/index.less +11 -11
  58. package/es/modules/notification/components/NotificationPropertiesView/index.less +26 -26
  59. package/es/modules/notification/components/NotificationQuickViewDialog/index.less +7 -7
  60. package/es/modules/notification/components/NotificationRecipients/index.less +17 -17
  61. package/es/modules/notification/components/NotificationTabs/index.less +8 -8
  62. package/es/modules/notification/controls/NotificationStatusLabel/index.less +14 -14
  63. package/es/modules/notification/pages/NotificationDefaultView/index.less +19 -19
  64. package/es/modules/pin/components/MyPinned/index.less +38 -38
  65. package/es/modules/pin/pages/PinnedPage/index.less +31 -31
  66. package/es/modules/project/ProjectDefaultView/index.less +38 -38
  67. package/es/modules/tasks/components/AddTaskDropdown/index.less +37 -37
  68. package/es/modules/tasks/components/DelegateDialog/index.less +51 -51
  69. package/es/modules/tasks/components/NewTaskForm/index.less +37 -37
  70. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.d.ts +17 -0
  71. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.js +80 -0
  72. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.js.map +1 -0
  73. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.less +18 -0
  74. package/es/modules/tasks/components/NotificaitonNewTaskForm/state.d.ts +18 -0
  75. package/es/modules/tasks/components/NotificaitonNewTaskForm/state.js +39 -0
  76. package/es/modules/tasks/components/NotificaitonNewTaskForm/state.js.map +1 -0
  77. package/es/modules/tasks/components/SubTaskList/index.less +20 -20
  78. package/es/modules/tasks/components/TaskCard/index.less +15 -15
  79. package/es/modules/tasks/components/TaskCheckActiveTab/index.less +24 -24
  80. package/es/modules/tasks/components/TaskCheckItem/index.less +83 -83
  81. package/es/modules/tasks/components/TaskCheckList/index.less +54 -54
  82. package/es/modules/tasks/components/TaskCheckNewForm/index.less +41 -41
  83. package/es/modules/tasks/components/TaskDescription/index.less +18 -18
  84. package/es/modules/tasks/components/TaskEstimatedTime/index.less +25 -25
  85. package/es/modules/tasks/components/TaskItem/defaultTaskItem.less +51 -51
  86. package/es/modules/tasks/components/TaskItem/subTaskItem.less +67 -67
  87. package/es/modules/tasks/components/TaskPropertiesView/index.less +23 -23
  88. package/es/modules/tasks/components/TaskQuickViewDialog/index.less +13 -13
  89. package/es/modules/tasks/components/TaskSimpleProperties/index.less +18 -18
  90. package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -29
  91. package/es/modules/tasks/controls/TaskStatusLabel/index.less +34 -34
  92. package/es/modules/tasks/pages/TaskDefaultView/index.less +19 -19
  93. package/es/modules/tasks/pages/TaskTabView/index.less +66 -66
  94. package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.less +21 -21
  95. package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.less +8 -8
  96. package/es/modules/tasks/reports/TaskSummaryCard/index.less +28 -28
  97. package/es/modules/user/pages/Positions/index.less +59 -59
  98. package/es/modules/work/components/NewWorkErrorDialog/index.less +21 -21
  99. package/es/modules/work/components/NewWorkForm/index.less +18 -18
  100. package/es/modules/work/components/RejectWorkDialog/index.less +23 -23
  101. package/es/modules/work/components/RelatedWorkList/index.less +21 -21
  102. package/es/modules/work/components/SubWorkList/index.less +7 -7
  103. package/es/modules/work/components/WorkCard/index.less +7 -7
  104. package/es/modules/work/components/WorkCashReport/index.less +21 -31
  105. package/es/modules/work/components/WorkErrorItem/index.less +52 -52
  106. package/es/modules/work/components/WorkErrorList/index.less +4 -4
  107. package/es/modules/work/components/WorkErrorPropertiesView/index.less +40 -40
  108. package/es/modules/work/components/WorkErrorQuickViewDialog/index.less +28 -28
  109. package/es/modules/work/components/WorkItem/index.less +56 -56
  110. package/es/modules/work/components/WorkList/index.d.ts +2 -2
  111. package/es/modules/work/components/WorkList/index.js +20 -4
  112. package/es/modules/work/components/WorkList/index.js.map +1 -1
  113. package/es/modules/work/components/WorkList/index.less +7 -7
  114. package/es/modules/work/components/WorkPropertiesView/index.less +10 -10
  115. package/es/modules/work/components/WorkQATab/index.less +24 -24
  116. package/es/modules/work/components/WorkQuickViewDialog/index.less +16 -16
  117. package/es/modules/work/components/WorkTaskList/index.less +7 -7
  118. package/es/modules/work/components/WorkTasksTab/index.less +4 -4
  119. package/es/modules/work/components/WorksProperties/index.less +17 -17
  120. package/es/modules/work/controls/WorkStatusLabel/index.less +36 -36
  121. package/es/modules/work/pages/WorkDefaultView/index.less +18 -18
  122. package/es/modules/work/pages/WorkErrorDefaultView/index.less +22 -22
  123. package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.less +10 -10
  124. package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.less +12 -12
  125. package/es/modules/work/work-schedule/components/WorkScheduleItem/index.less +40 -40
  126. package/es/modules/work/work-schedule/components/WorkScheduleList/index.less +12 -20
  127. package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.less +11 -11
  128. package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.less +7 -7
  129. package/es/modules/work/work-schedule/pages/WorkScheduleDefaultView/index.less +23 -23
  130. package/es/modules/work/work-type/components/ErrorTypeList/index.less +59 -59
  131. package/es/modules/work/work-type/components/NewTypeForm/index.less +7 -7
  132. package/es/modules/work/work-type/components/RepeatTab/index.less +42 -42
  133. package/es/modules/work/work-type/components/WorkTypeHeader/index.less +12 -12
  134. package/es/modules/work/work-type/components/WorkTypeIconList/index.less +14 -14
  135. package/es/modules/work/work-type/components/WorkTypeItem/index.less +48 -48
  136. package/es/modules/work/work-type/components/WorkTypeList/index.less +4 -4
  137. package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.less +12 -12
  138. package/es/modules/work/work-type/components/WorkTypePropertiesView/index.less +19 -19
  139. package/es/modules/work/work-type/components/WorkTypeQA/index.less +42 -42
  140. package/es/modules/work/work-type/components/WorkTypeStats/index.less +29 -29
  141. package/es/modules/work/work-type/components/WorkTypeTabs/index.less +45 -45
  142. package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.less +15 -15
  143. package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.less +8 -8
  144. package/es/modules/work/work-type/pages/WorkTypePage/index.less +56 -56
  145. package/es/modules/workspace/components/MyWorkspaces/index.less +30 -30
  146. package/es/modules/workspace/components/NewWorkspaceDialog/index.less +30 -30
  147. package/es/modules/workspace/components/WorkspaceIcon/index.less +81 -81
  148. package/es/modules/workspace/components/WorkspaceIconList/index.less +18 -18
  149. package/es/modules/workspace/components/WorkspaceIconList2/index.less +18 -18
  150. package/es/modules/workspace/components/WorkspacePropertiesView/index.less +19 -19
  151. package/es/modules/workspace/components/WorkspaceTabs/index.less +12 -12
  152. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.less +8 -8
  153. package/es/modules/workspace/pages/WorkspaceDefaultView/index.less +28 -28
  154. package/es/modules/workspace/pages/WorkspacePage/index.less +23 -23
  155. package/es/obsolete/WorkTypeDefaultView/index.less +19 -19
  156. package/es/obsolete/member/components/member.less +24 -24
  157. package/es/obsolete/member/styles/MemberMinView.less +24 -24
  158. package/es/obsolete/space/components/Notes/ColorSelect/index.less +17 -17
  159. package/es/obsolete/space/components/Notes/NewNoteDialog/index.less +78 -78
  160. package/es/obsolete/space/components/Notes/TextNoteCard/index.less +56 -56
  161. package/es/obsolete/space/components/Tasks/index.less +17 -17
  162. package/es/obsolete/space/components/Works/index.less +18 -18
  163. package/es/obsolete/space/pages/MySpace/index.less +56 -56
  164. package/es/style/common.less +187 -187
  165. package/es/style/index.less +13 -13
  166. package/package.json +66 -66
  167. package/readme.md +152 -152
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const NotificationNewTaskForm: (props: {
4
+ parentId?: string | undefined;
5
+ className?: string | undefined;
6
+ showView?: boolean | undefined;
7
+ /** New Task (For Self) */
8
+ self?: boolean | undefined;
9
+ /** title 默认值 */
10
+ title?: string | undefined;
11
+ /** Description 默认值 */
12
+ description?: string | undefined;
13
+ onSave?: ((params?: any) => void) | undefined;
14
+ onSubmitSave?: ((params?: any) => void) | undefined;
15
+ onCancel?: (() => void) | undefined;
16
+ }) => React.JSX.Element;
17
+ export default NotificationNewTaskForm;
@@ -0,0 +1,80 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { Col, Form, Input, Row, message } from "antd";
3
+ import { ContactSelect } from "@voplus/morpho-org";
4
+ import { State } from "./state";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ import { runInAction } from "mobx";
7
+ import { useApplicationContext } from "@voplus/morpho-data";
8
+ import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
9
+ import { useTaskStore } from "@voplus/morpho-document-core";
10
+ import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
11
+ import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
12
+ import PresetDatePicker from "@voplus/morpho-ui/es/controls/PresetDatePicker";
13
+ import TaskPropertiesView from "../TaskPropertiesView";
14
+ import classnames from "classnames";
15
+ import "./index.less";
16
+ const NotificationNewTaskForm = (props) => {
17
+ const tasks = useTaskStore();
18
+ const { user } = useApplicationContext();
19
+ const [state] = useState(new State());
20
+ const asideContext = useAsideContentContext();
21
+ useEffect(() => {
22
+ state.params.MemberIds = props.self ? [user.info.unit.id] : [];
23
+ }, [props.self]);
24
+ useEffect(() => {
25
+ var _a, _b;
26
+ state.params.Description = (_a = props.description) !== null && _a !== void 0 ? _a : "";
27
+ state.params.Name = (_b = props.title) !== null && _b !== void 0 ? _b : "";
28
+ }, [props.parentId]);
29
+ return observe(() => (React.createElement(AddFormView, { title: "Add Task", loading: !!state.loading, onCancel: onCancel, onSubmit: onSubmit },
30
+ React.createElement("div", { className: classnames("notification-new-task-form", props.className) },
31
+ React.createElement(Form, { layout: "vertical" },
32
+ React.createElement(Form.Item, { label: "Title of your task" },
33
+ React.createElement(Input, { autoFocus: true, value: state.params.Name, onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onKeyDown: onKeyDown })),
34
+ React.createElement(Form.Item, { label: "Description of your task" },
35
+ React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", defaultHtml: state.params.Description, onChange: (opt) => (state.params.Description =
36
+ opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
37
+ React.createElement(Row, { gutter: 20 },
38
+ React.createElement(Col, { span: 12 },
39
+ React.createElement(Form.Item, { label: "Assign people" },
40
+ React.createElement(ContactSelect, { multiple: true, defaultValue: props.self ? [{ name: user.info.name, id: user.info.unit.id }] : [], onChange: (contacts) => (state.params.MemberIds = contacts.map(({ id }) => id)) }))),
41
+ React.createElement(Col, { span: 12 },
42
+ React.createElement(Form.Item, { label: "Due Date" },
43
+ React.createElement(PresetDatePicker, { className: "task-preset-date-picker", onChange: (preset, date) => {
44
+ state.params.DueDate = date;
45
+ }, style: { width: "100%" } })))))))));
46
+ async function onSubmit() {
47
+ var _a;
48
+ if (!state.params.Name)
49
+ return message.warning("Title is required");
50
+ if (props.onSubmitSave)
51
+ return props.onSubmitSave(state.params);
52
+ runInAction(() => (state.loading = true));
53
+ const res = await tasks.create({
54
+ data: { ...state.params, ParentId: props.parentId },
55
+ error: "message",
56
+ });
57
+ runInAction(() => {
58
+ state.loading = false;
59
+ state.params = state.Params;
60
+ });
61
+ if (props.showView)
62
+ return asideContext.openAside(React.createElement(TaskPropertiesView, { id: res.id }), { span: 12 });
63
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
64
+ }
65
+ function onKeyDown(e) {
66
+ if (e.key !== "Escape")
67
+ return;
68
+ onCancel();
69
+ }
70
+ // cancel add task
71
+ function onCancel() {
72
+ state.params = state.Params;
73
+ if (props.showView)
74
+ return asideContext.closeAside();
75
+ if (props.onCancel)
76
+ props.onCancel();
77
+ }
78
+ };
79
+ export default NotificationNewTaskForm;
80
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/NotificaitonNewTaskForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,o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AAI,CAAC,CAAC,CAAC;QAC1C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC9B,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;YACnD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,QAAQ;YACjB,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAClF,MAAA,KAAK,CAAC,MAAM,qDAAI,CAAC;IAClB,CAAC;IACD,SAAS,SAAS,CAAC,CAAwC;QAC1D,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ;YAAE,OAAO;QAC/B,QAAQ,EAAE,CAAC;IACZ,CAAC;IACD,kBAAkB;IAClB,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,18 @@
1
+ @import "../../../../style/common.less";
2
+
3
+ :global {
4
+ .notification-new-task-form {
5
+ .ant-select {
6
+ width: auto;
7
+ }
8
+ .proseMirror {
9
+ height: 330px !important;
10
+ .editor-toolbar {
11
+ padding: 0.2rem 0.65rem;
12
+ }
13
+ .ProseMirror {
14
+ padding: 1rem 1.25rem;
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ export declare class State {
2
+ constructor();
3
+ Params: {
4
+ Name: string;
5
+ Description: string;
6
+ DueDate: undefined;
7
+ MemberIds: never[];
8
+ InheritMembers: boolean;
9
+ };
10
+ params: {
11
+ Name: string;
12
+ Description: string;
13
+ DueDate: undefined;
14
+ MemberIds: never[];
15
+ InheritMembers: boolean;
16
+ };
17
+ loading: boolean;
18
+ }
@@ -0,0 +1,39 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "Params", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: {
10
+ // ParentId: "",
11
+ Name: "",
12
+ Description: "",
13
+ DueDate: undefined,
14
+ MemberIds: [],
15
+ InheritMembers: false,
16
+ }
17
+ });
18
+ Object.defineProperty(this, "params", {
19
+ enumerable: true,
20
+ configurable: true,
21
+ writable: true,
22
+ value: this.Params
23
+ });
24
+ Object.defineProperty(this, "loading", {
25
+ enumerable: true,
26
+ configurable: true,
27
+ writable: true,
28
+ value: false
29
+ });
30
+ makeObservable(this);
31
+ }
32
+ }
33
+ __decorate([
34
+ observable
35
+ ], State.prototype, "params", void 0);
36
+ __decorate([
37
+ observable
38
+ ], State.prototype, "loading", void 0);
39
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/NotificaitonNewTaskForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,gBAAgB;gBAChB,IAAI,EAAE,EAAE;gBACR,WAAW,EAAE,EAAE;gBACf,OAAO,EAAE,SAAS;gBAClB,SAAS,EAAE,EAAE;gBACb,cAAc,EAAE,KAAK;aACrB;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAU,KAAK;WAAC;QAXlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAWD;AAFmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAwB"}
@@ -1,20 +1,20 @@
1
- @import "../../../../style/common.less";
2
- :global {
3
- .sub-task-list {
4
- display: flex;
5
- flex-direction: column;
6
- height: 100%;
7
- .list-view-header > div:first-child {
8
- flex: 1;
9
- .site-badge-count {
10
- margin-left: 10px;
11
- }
12
- }
13
- .vo-plus-column-item > div {
14
- flex: 1;
15
- }
16
- }
17
- .sub-task-list-bottom {
18
- padding-bottom: 71px;
19
- }
20
- }
1
+ @import "../../../../style/common.less";
2
+ :global {
3
+ .sub-task-list {
4
+ display: flex;
5
+ flex-direction: column;
6
+ height: 100%;
7
+ .list-view-header > div:first-child {
8
+ flex: 1;
9
+ .site-badge-count {
10
+ margin-left: 10px;
11
+ }
12
+ }
13
+ .vo-plus-column-item > div {
14
+ flex: 1;
15
+ }
16
+ }
17
+ .sub-task-list-bottom {
18
+ padding-bottom: 71px;
19
+ }
20
+ }
@@ -1,15 +1,15 @@
1
- :global {
2
- .task-card-header {
3
- .task-status {
4
- font-size: 10px;
5
- border-radius: 4px;
6
- margin-left: 8px;
7
- }
8
- .ant-dropdown-menu {
9
- .task-status {
10
- font-size: 10px;
11
- margin-left: 0;
12
- }
13
- }
14
- }
15
- }
1
+ :global {
2
+ .task-card-header {
3
+ .task-status {
4
+ font-size: 10px;
5
+ border-radius: 4px;
6
+ margin-left: 8px;
7
+ }
8
+ .ant-dropdown-menu {
9
+ .task-status {
10
+ font-size: 10px;
11
+ margin-left: 0;
12
+ }
13
+ }
14
+ }
15
+ }
@@ -1,24 +1,24 @@
1
- :global {
2
- .active-tab-task-list {
3
- .active-task-collapse {
4
- background: #fff;
5
- .ant-collapse-item {
6
- border-bottom: none;
7
- .ant-collapse-header {
8
- font-size: 20px;
9
- color: #000;
10
- align-items: center;
11
- }
12
- .ant-collapse-arrow {
13
- font-size: 20px;
14
- }
15
- .document-name {
16
- color: #797979;
17
- }
18
- .task-check-item {
19
- padding-left: 0;
20
- }
21
- }
22
- }
23
- }
24
- }
1
+ :global {
2
+ .active-tab-task-list {
3
+ .active-task-collapse {
4
+ background: #fff;
5
+ .ant-collapse-item {
6
+ border-bottom: none;
7
+ .ant-collapse-header {
8
+ font-size: 20px;
9
+ color: #000;
10
+ align-items: center;
11
+ }
12
+ .ant-collapse-arrow {
13
+ font-size: 20px;
14
+ }
15
+ .document-name {
16
+ color: #797979;
17
+ }
18
+ .task-check-item {
19
+ padding-left: 0;
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -1,83 +1,83 @@
1
- :global {
2
- .task-check-item {
3
- position: relative;
4
- cursor: pointer;
5
- align-items: center;
6
- background-color: transparent;
7
- padding: 10px 20px 10px 20px;
8
- &:hover {
9
- .task-dueDate {
10
- .no-dueDate {
11
- background-color: #f5f8fd;
12
- }
13
- }
14
- }
15
- .task-members {
16
- opacity: 1;
17
- // transition: opacity 0.3s;
18
- flex-shrink: 0;
19
- &.hide {
20
- opacity: 0;
21
- }
22
- .avatar-list-view {
23
- justify-content: end;
24
- .ant-avatar {
25
- width: 24px;
26
- height: 24px;
27
- line-height: 22px;
28
- font-size: 10px;
29
- }
30
- }
31
- }
32
- .task-dueDate {
33
- position: relative;
34
- width: 120px;
35
- opacity: 1;
36
- color: #94a3b8;
37
- flex-shrink: 0;
38
- text-align: right;
39
- background-color: transparent;
40
- &.hide {
41
- opacity: 0;
42
- }
43
- .task-item-preset-date-picker {
44
- position: absolute;
45
- left: 0;
46
- top: 0;
47
- z-index: -1;
48
- border: none;
49
- background-color: transparent;
50
- .ant-picker-suffix {
51
- display: none;
52
- }
53
- }
54
- }
55
- .hover-operate-icon {
56
- display: none;
57
- position: absolute;
58
- right: 20px;
59
- .ant-btn:first-child {
60
- margin-left: 0;
61
- }
62
- &.show {
63
- display: block;
64
- }
65
- }
66
-
67
- .task-toolbar-dueDate {
68
- position: relative;
69
- background-color: transparent;
70
- .task-toolbar-preset-date-picker {
71
- position: absolute;
72
- left: 0;
73
- top: 0;
74
- z-index: -1;
75
- border: none;
76
- background-color: transparent;
77
- .ant-picker-suffix {
78
- display: none;
79
- }
80
- }
81
- }
82
- }
83
- }
1
+ :global {
2
+ .task-check-item {
3
+ position: relative;
4
+ cursor: pointer;
5
+ align-items: center;
6
+ background-color: transparent;
7
+ padding: 10px 20px 10px 20px;
8
+ &:hover {
9
+ .task-dueDate {
10
+ .no-dueDate {
11
+ background-color: #f5f8fd;
12
+ }
13
+ }
14
+ }
15
+ .task-members {
16
+ opacity: 1;
17
+ // transition: opacity 0.3s;
18
+ flex-shrink: 0;
19
+ &.hide {
20
+ opacity: 0;
21
+ }
22
+ .avatar-list-view {
23
+ justify-content: end;
24
+ .ant-avatar {
25
+ width: 24px;
26
+ height: 24px;
27
+ line-height: 22px;
28
+ font-size: 10px;
29
+ }
30
+ }
31
+ }
32
+ .task-dueDate {
33
+ position: relative;
34
+ width: 120px;
35
+ opacity: 1;
36
+ color: #94a3b8;
37
+ flex-shrink: 0;
38
+ text-align: right;
39
+ background-color: transparent;
40
+ &.hide {
41
+ opacity: 0;
42
+ }
43
+ .task-item-preset-date-picker {
44
+ position: absolute;
45
+ left: 0;
46
+ top: 0;
47
+ z-index: -1;
48
+ border: none;
49
+ background-color: transparent;
50
+ .ant-picker-suffix {
51
+ display: none;
52
+ }
53
+ }
54
+ }
55
+ .hover-operate-icon {
56
+ display: none;
57
+ position: absolute;
58
+ right: 20px;
59
+ .ant-btn:first-child {
60
+ margin-left: 0;
61
+ }
62
+ &.show {
63
+ display: block;
64
+ }
65
+ }
66
+
67
+ .task-toolbar-dueDate {
68
+ position: relative;
69
+ background-color: transparent;
70
+ .task-toolbar-preset-date-picker {
71
+ position: absolute;
72
+ left: 0;
73
+ top: 0;
74
+ z-index: -1;
75
+ border: none;
76
+ background-color: transparent;
77
+ .ant-picker-suffix {
78
+ display: none;
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
@@ -1,54 +1,54 @@
1
- :global {
2
- .task-check-list {
3
- height: 100%;
4
- display: flex;
5
- flex-direction: column;
6
- .task-check-header {
7
- display: flex;
8
- align-items: center;
9
- justify-content: space-between;
10
- padding: 10px 20px 10px 20px;
11
- border-bottom: 1px solid #e6e6e6;
12
- .task-check-tabbar {
13
- display: flex;
14
- }
15
- .task-check-add,
16
- .task-check-trigger {
17
- width: 32px;
18
- display: inline-flex;
19
- align-items: center;
20
- justify-content: center;
21
- margin-left: 10px;
22
- }
23
- }
24
- .task-check-tabs {
25
- flex: 1;
26
-
27
- &.show-tabbar {
28
- .ant-tabs-nav-wrap {
29
- display: flex;
30
- }
31
- .ant-tabs-extra-content {
32
- display: block;
33
- }
34
- }
35
- .ant-tabs-nav-wrap {
36
- display: none;
37
- }
38
- .ant-tabs-extra-content {
39
- display: none;
40
- }
41
- .ant-tabs-tab-btn {
42
- .ant-badge {
43
- margin-left: 5px;
44
- }
45
- }
46
- .ant-tabs-extra-content {
47
- padding-right: 20px;
48
- }
49
- }
50
- .ant-tabs-nav-wrap {
51
- padding-left: 20px;
52
- }
53
- }
54
- }
1
+ :global {
2
+ .task-check-list {
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ .task-check-header {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ padding: 10px 20px 10px 20px;
11
+ border-bottom: 1px solid #e6e6e6;
12
+ .task-check-tabbar {
13
+ display: flex;
14
+ }
15
+ .task-check-add,
16
+ .task-check-trigger {
17
+ width: 32px;
18
+ display: inline-flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ margin-left: 10px;
22
+ }
23
+ }
24
+ .task-check-tabs {
25
+ flex: 1;
26
+
27
+ &.show-tabbar {
28
+ .ant-tabs-nav-wrap {
29
+ display: flex;
30
+ }
31
+ .ant-tabs-extra-content {
32
+ display: block;
33
+ }
34
+ }
35
+ .ant-tabs-nav-wrap {
36
+ display: none;
37
+ }
38
+ .ant-tabs-extra-content {
39
+ display: none;
40
+ }
41
+ .ant-tabs-tab-btn {
42
+ .ant-badge {
43
+ margin-left: 5px;
44
+ }
45
+ }
46
+ .ant-tabs-extra-content {
47
+ padding-right: 20px;
48
+ }
49
+ }
50
+ .ant-tabs-nav-wrap {
51
+ padding-left: 20px;
52
+ }
53
+ }
54
+ }
@@ -1,41 +1,41 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- :global {
4
- .new-task-check-form {
5
- padding: 10px 16px 0;
6
- .ant-form-item {
7
- margin-bottom: 10px;
8
- .task-due-date-content {
9
- margin-left: 10px;
10
- position: relative;
11
- background-color: #fff;
12
- .task-preset-date-picker {
13
- position: absolute;
14
- left: 0;
15
- top: 0;
16
- z-index: -1;
17
- border: none;
18
- .ant-picker-suffix {
19
- display: none;
20
- }
21
- }
22
- }
23
- .task-due-date-bnt {
24
- font-size: 25px;
25
- cursor: pointer;
26
- color: lightgray;
27
- display: inline-flex;
28
- padding-top: 2px;
29
- }
30
- .due-val-content {
31
- line-height: 18px;
32
- cursor: pointer;
33
- .dueDate {
34
- font-size: 12px;
35
- line-height: 14px;
36
- color: @heading-subtitle-color;
37
- }
38
- }
39
- }
40
- }
41
- }
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .new-task-check-form {
5
+ padding: 10px 16px 0;
6
+ .ant-form-item {
7
+ margin-bottom: 10px;
8
+ .task-due-date-content {
9
+ margin-left: 10px;
10
+ position: relative;
11
+ background-color: #fff;
12
+ .task-preset-date-picker {
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ z-index: -1;
17
+ border: none;
18
+ .ant-picker-suffix {
19
+ display: none;
20
+ }
21
+ }
22
+ }
23
+ .task-due-date-bnt {
24
+ font-size: 25px;
25
+ cursor: pointer;
26
+ color: lightgray;
27
+ display: inline-flex;
28
+ padding-top: 2px;
29
+ }
30
+ .due-val-content {
31
+ line-height: 18px;
32
+ cursor: pointer;
33
+ .dueDate {
34
+ font-size: 12px;
35
+ line-height: 14px;
36
+ color: @heading-subtitle-color;
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }