@voplus/morpho-workspace 6.0.103 → 6.0.104

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 (70) hide show
  1. package/es/components/AutoSequenceDialog/index.d.ts +3 -3
  2. package/es/components/AutoSequenceLink/index.d.ts +2 -2
  3. package/es/controls/InlineSearch/index.d.ts +2 -2
  4. package/es/controls/MoreOperateDropdown/index.d.ts +15 -15
  5. package/es/controls/NodeLink/index.d.ts +1 -1
  6. package/es/data/board/contexts/BoardListContextState/index.d.ts +0 -1
  7. package/es/data/board/metas.d.ts +0 -1
  8. package/es/data/meeting/metas.d.ts +0 -1
  9. package/es/data/task/metas.d.ts +0 -1
  10. package/es/data/work/metas.d.ts +0 -1
  11. package/es/data/work-schedule/metas.d.ts +0 -1
  12. package/es/modules/board/components/Board/index.d.ts +1 -1
  13. package/es/modules/board/components/NewBoardColumnDialog/index.d.ts +2 -2
  14. package/es/modules/board/components/NewColumnDocumentForm/index.d.ts +1 -1
  15. package/es/modules/board/components/SubDocument/index.d.ts +2 -2
  16. package/es/modules/meeting/components/AgendaList/AgendaContext.d.ts +0 -1
  17. package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.d.ts +5 -5
  18. package/es/modules/meeting/components/MeetingList/QuickSearch/index.d.ts +8 -9
  19. package/es/modules/notification/components/DocumentNotificationCard/index.d.ts +4 -4
  20. package/es/modules/notification/components/NotificationList/index.d.ts +3 -3
  21. package/es/modules/notification/components/NotificationList/index.less +6 -1
  22. package/es/modules/notification/components/NotificationListHeader/index.d.ts +1 -1
  23. package/es/modules/notification/components/NotificationListHeader/index.js +2 -4
  24. package/es/modules/notification/components/NotificationListHeader/index.js.map +1 -1
  25. package/es/modules/notification/controls/NotificationMenu/item/Send.d.ts +3 -3
  26. package/es/modules/pin/components/MyPinned/index.d.ts +2 -2
  27. package/es/modules/pin/components/PinnedCardList/index.d.ts +3 -3
  28. package/es/modules/tasks/components/AddTaskDropdown/index.d.ts +4 -4
  29. package/es/modules/tasks/components/DelegateDialog/index.d.ts +2 -2
  30. package/es/modules/tasks/components/NewTaskForm/index.d.ts +11 -11
  31. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.d.ts +9 -9
  32. package/es/modules/tasks/components/TaskCheckItem/index.d.ts +2 -2
  33. package/es/modules/tasks/components/TaskCheckNewForm/index.d.ts +4 -4
  34. package/es/modules/tasks/controls/TaskStatusLabel/index.d.ts +1 -1
  35. package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +3 -3
  36. package/es/modules/work/components/NewWorkForm/index.d.ts +8 -8
  37. package/es/modules/work/components/RejectWorkDialog/index.d.ts +4 -4
  38. package/es/modules/work/components/WorkCashReport/index.d.ts +1 -1
  39. package/es/modules/work/components/WorkErrorList/index.d.ts +3 -3
  40. package/es/modules/work/components/WorkList/index.d.ts +0 -2
  41. package/es/modules/work/components/WorkList/index.js +2 -2
  42. package/es/modules/work/components/WorkList/index.js.map +1 -1
  43. package/es/modules/work/components/WorkList2/index.d.ts +45 -0
  44. package/es/modules/work/components/WorkList2/index.js +227 -0
  45. package/es/modules/work/components/WorkList2/index.js.map +1 -0
  46. package/es/modules/work/components/WorkList2/index.less +27 -0
  47. package/es/modules/work/components/WorkListHeader/index.d.ts +17 -0
  48. package/es/modules/work/components/WorkListHeader/index.js +26 -0
  49. package/es/modules/work/components/WorkListHeader/index.js.map +1 -0
  50. package/es/modules/work/controls/SeveritySelect/index.d.ts +8 -8
  51. package/es/modules/work/controls/WorkErrorSelect/index.d.ts +8 -8
  52. package/es/modules/work/controls/WorkMenu/item/Accept.d.ts +3 -3
  53. package/es/modules/work/controls/WorkMenu/item/Reject.d.ts +3 -3
  54. package/es/modules/work/controls/WorkMenu/item/Send.d.ts +3 -3
  55. package/es/modules/work/controls/WorkStatusLabel/index.d.ts +1 -1
  56. package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.d.ts +3 -3
  57. package/es/modules/work/work-type/components/ErrorTypeList/Item.d.ts +5 -5
  58. package/es/modules/work/work-type/components/ErrorTypeList/index.d.ts +6 -6
  59. package/es/modules/work/work-type/components/NewTypeForm/index.d.ts +4 -4
  60. package/es/modules/work/work-type/components/WorkTypeIconList/index.d.ts +1 -1
  61. package/es/modules/work/work-type/components/WorkTypeList/index.d.ts +2 -2
  62. package/es/modules/work/work-type/components/WorkTypeSelect/index.d.ts +5 -5
  63. package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.d.ts +1 -1
  64. package/es/modules/workspace/components/MyWorkspaces/index.d.ts +3 -3
  65. package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +5 -5
  66. package/es/modules/workspace/components/WorkspaceIconList/index.d.ts +5 -5
  67. package/es/modules/workspace/components/WorkspaceIconList2/index.d.ts +2 -2
  68. package/es/obsolete/space/components/Notes/ColorSelect/index.d.ts +3 -3
  69. package/es/obsolete/space/components/Notes/NewNoteDialog/index.d.ts +2 -2
  70. package/package.json +1 -1
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import { ISequenceInfo, SequenceEditOptions } from "../../data/worktype";
3
3
  import "./index.less";
4
4
  declare const AutoSequenceDialog: (props: {
5
- sequence?: ISequenceInfo | undefined;
6
- onCancel?: (() => void) | undefined;
7
- onSubmit?: ((Sequence: SequenceEditOptions) => void) | undefined;
5
+ sequence?: ISequenceInfo;
6
+ onCancel?: () => void;
7
+ onSubmit?: (Sequence: SequenceEditOptions) => void;
8
8
  }) => React.JSX.Element;
9
9
  export default AutoSequenceDialog;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { ISequenceInfo, SequenceEditOptions } from "../../data/worktype";
3
3
  declare const AutoSequenceLink: (props: {
4
- sequence?: ISequenceInfo | undefined;
5
- onSubmit?: ((Sequence: SequenceEditOptions) => void) | undefined;
4
+ sequence?: ISequenceInfo;
5
+ onSubmit?: (Sequence: SequenceEditOptions) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default AutoSequenceLink;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  declare const InlineSearch: (props: {
3
- render?: string | undefined;
4
- onChange?: ((val: string) => void | Promise<void>) | undefined;
3
+ render?: string;
4
+ onChange?: (val: string) => void | Promise<void>;
5
5
  }) => React.JSX.Element;
6
6
  export default InlineSearch;
@@ -1,21 +1,21 @@
1
1
  import React from "react";
2
2
  declare const MoreOperateDropdown: {
3
3
  (props: {
4
- className?: string | undefined;
5
- edit?: boolean | undefined;
6
- del?: boolean | undefined;
7
- move?: boolean | undefined;
8
- paste?: boolean | undefined;
9
- open?: boolean | undefined;
10
- access?: boolean | undefined;
11
- url?: string | undefined;
12
- shape?: boolean | undefined;
13
- size?: "small" | "middle" | "large" | undefined;
14
- onEdit?: ((params?: any) => void) | undefined;
15
- onDelete?: ((params?: any) => void) | undefined;
16
- onMove?: (() => void) | undefined;
17
- onPaste?: (() => void) | undefined;
18
- onAccess?: (() => void) | undefined;
4
+ className?: string;
5
+ edit?: boolean;
6
+ del?: boolean;
7
+ move?: boolean;
8
+ paste?: boolean;
9
+ open?: boolean;
10
+ access?: boolean;
11
+ url?: string;
12
+ shape?: boolean;
13
+ size?: "middle" | "small" | "large";
14
+ onEdit?: (params?: any) => void;
15
+ onDelete?: (params?: any) => void;
16
+ onMove?: () => void;
17
+ onPaste?: () => void;
18
+ onAccess?: () => void;
19
19
  }): React.JSX.Element;
20
20
  defaultProps: {
21
21
  edit: boolean;
@@ -5,6 +5,6 @@ declare const NodeLink: (props: {
5
5
  name: string;
6
6
  };
7
7
  url: string;
8
- onClick?: ((id?: string) => void) | undefined;
8
+ onClick?: (id?: string) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default NodeLink;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class BoardListContextState {
3
2
  name?: string;
4
3
  /** Construct a new BoardListContextState
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
3
2
  import { IDocument } from "@voplus/morpho-document-core";
4
3
  /** Meta information for Board document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, QuickViewProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
4
3
  /** Meta information for Meeting document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, QuickViewProps, DocumentCardProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
4
3
  /** Meta information for Task document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, QuickViewProps, DocumentMenuProps, DocumentCardProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
4
3
  /** Meta information for Work document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { INode, QuickViewProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
4
3
  export declare class WorkScheduleMeta extends DefaultDocumentTypeMeta {
@@ -2,6 +2,6 @@ import "swiper/css";
2
2
  import React from "react";
3
3
  declare const Board: (props: {
4
4
  parentId: string;
5
- onAdd?: ((parentId: string, type: string, name: string) => void) | undefined;
5
+ onAdd?: (parentId: string, type: string, name: string) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default Board;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const NewBoardColumnDialog: (props: {
3
3
  parentId: string;
4
- onCancel?: (() => void) | undefined;
5
- onCreate?: ((name?: string) => void) | undefined;
4
+ onCancel?: () => void;
5
+ onCreate?: (name?: string) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default NewBoardColumnDialog;
@@ -3,6 +3,6 @@ declare const NewColumnDocumentForm: (props: {
3
3
  parentId: string;
4
4
  type: string;
5
5
  columnName: string;
6
- onCancel?: (() => void) | undefined;
6
+ onCancel?: () => void;
7
7
  }) => React.JSX.Element;
8
8
  export default NewColumnDocumentForm;
@@ -2,9 +2,9 @@ import React from "react";
2
2
  declare const SubDocument: (props: {
3
3
  id: string;
4
4
  /** Droppable type */
5
- listType?: string | undefined;
5
+ listType?: string;
6
6
  /** sub-document length ids */
7
- onDocumentData?: ((params?: any) => void) | undefined;
7
+ onDocumentData?: (params?: any) => void;
8
8
  /** move 目标数据 */
9
9
  destination?: any;
10
10
  /** move 原数据 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IAgendaItemState {
3
2
  /** Collapse or expand the Agenda item. */
4
3
  collapse: boolean;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const _default: React.ForwardRefExoticComponent<{
3
- id?: string | undefined;
4
- single?: boolean | undefined;
5
- addOnly?: boolean | undefined;
6
- onChange?: ((params?: any) => void) | undefined;
7
- onCancel?: (() => void) | undefined;
3
+ id?: string;
4
+ single?: boolean;
5
+ addOnly?: boolean;
6
+ onChange?: (params?: any) => void;
7
+ onCancel?: () => void;
8
8
  } & React.RefAttributes<unknown>>;
9
9
  export default _default;
@@ -1,17 +1,16 @@
1
1
  import React, { CSSProperties } from "react";
2
- import style from "./index.less";
3
2
  declare const QuickSearch: {
4
3
  (props: {
5
4
  /** reset 默认值标识/parentId */
6
- renderId?: string | undefined;
7
- title?: string | undefined;
8
- placeholder?: string | undefined;
5
+ renderId?: string;
6
+ title?: string;
7
+ placeholder?: string;
9
8
  /** width of Input */
10
- width?: string | undefined;
11
- onChange?: ((value: string) => void) | undefined;
12
- onPressEnter?: ((value: string) => void | Promise<void>) | undefined;
13
- className?: string | undefined;
14
- style?: React.CSSProperties | undefined;
9
+ width?: string;
10
+ onChange?: (value: string) => void;
11
+ onPressEnter?: (value: string) => void | Promise<void>;
12
+ className?: string;
13
+ style?: CSSProperties;
15
14
  }): React.JSX.Element;
16
15
  defaultProps: {
17
16
  width: string;
@@ -2,9 +2,9 @@ import { NotificationStatus } from "../../../../data/notification";
2
2
  import React from "react";
3
3
  declare const DocumentNotificationCard: (props: {
4
4
  id: string;
5
- active?: boolean | undefined;
6
- className?: string | undefined;
7
- onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
8
- onChangeStatus?: ((state: NotificationStatus) => void) | undefined;
5
+ active?: boolean;
6
+ className?: string;
7
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
8
+ onChangeStatus?: (state: NotificationStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default DocumentNotificationCard;
@@ -5,9 +5,9 @@ declare const NotificationList: (props: {
5
5
  /** status of notifications shown on the list. */
6
6
  status: string;
7
7
  /** The current active item */
8
- active?: string | undefined;
8
+ active?: string;
9
9
  /** Call back when an item has been clicked on the list. */
10
- onClickItem?: ((ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void) | undefined;
11
- onClickStatus?: ((status: string) => void) | undefined;
10
+ onClickItem?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void;
11
+ onClickStatus?: (status: string) => void;
12
12
  }) => React.JSX.Element;
13
13
  export default NotificationList;
@@ -5,6 +5,7 @@
5
5
  padding: 0 !important;
6
6
  background: #fff;
7
7
  }
8
+
8
9
  .my-space-notifications {
9
10
  height: 100%;
10
11
  display: flex;
@@ -13,6 +14,7 @@
13
14
  .board-header-content {
14
15
  padding-left: 24px;
15
16
  }
17
+
16
18
  .list-view-header-tool {
17
19
  padding: 10px 24px 20px;
18
20
  }
@@ -24,16 +26,19 @@
24
26
  color: @default-border-color;
25
27
  border-radius: @default-border-radius;
26
28
  border: 1px solid @default-border-color;
27
- margin-right: 15px;
29
+ margin: 0 15px 10px 0;
30
+
28
31
  &.active {
29
32
  color: @btn-active-color;
30
33
  background: #f4f9ff;
31
34
  border-color: @btn-active-color;
32
35
  }
36
+
33
37
  &.Dismissed {
34
38
  margin-right: 0;
35
39
  }
36
40
  }
41
+
37
42
  .ant-divider-vertical {
38
43
  height: 30px;
39
44
  color: #707070;
@@ -2,6 +2,6 @@ import React from "react";
2
2
  declare const NotificationListHeader: (props: {
3
3
  /** status of notifications shown on the list. */
4
4
  status: string;
5
- onClickStatus?: ((status: string) => void) | undefined;
5
+ onClickStatus?: (status: string) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default NotificationListHeader;
@@ -35,7 +35,7 @@ const NotificationListHeader = (props) => {
35
35
  active: statusActive === item,
36
36
  }), onClick: () => onClickStatus(item) },
37
37
  item,
38
- item !== "All" && (React.createElement(React.Fragment, null,
38
+ item !== "All" && item !== "Dismissed" && (React.createElement(React.Fragment, null,
39
39
  "\u00A0(",
40
40
  item === "Unread"
41
41
  ? nContext.notificationTotals.unread
@@ -43,9 +43,7 @@ const NotificationListHeader = (props) => {
43
43
  ? nContext.notificationTotals.read
44
44
  : item === "Later"
45
45
  ? nContext.notificationTotals.later
46
- : item === "Dismissed"
47
- ? nContext.notificationTotals.dismissed
48
- : 0,
46
+ : 0,
49
47
  ")"))))),
50
48
  context.host.isTest && React.createElement(Divider, { type: "vertical" }))) }))));
51
49
  function onClickStatus(item) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,cAAc,MAAM,+DAA+D,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI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,CAAC,IAAI,EAAE;wBAC3B,MAAM,EAAE,YAAY,KAAK,IAAI;qBAC7B,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;oBAEjC,IAAI;oBACJ,IAAI,KAAK,KAAK,IAAI,CAClB;;wBAEE,IAAI,KAAK,QAAQ;4BACjB,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,MAAM;4BACpC,CAAC,CAAC,IAAI,KAAK,MAAM;gCACjB,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;gCAClC,CAAC,CAAC,IAAI,KAAK,OAAO;oCAClB,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;oCACnC,CAAC,CAAC,IAAI,KAAK,WAAW;wCACtB,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,SAAS;wCACvC,CAAC,CAAC,CAAC;4BAEF,CACH,CACO,CACT,CAAC;gBAED,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,oBAAC,OAAO,IAAC,IAAI,EAAC,UAAU,GAAG,CAC9C,CACN,GACA,CACG,CACN,CAAC,CAAC;IAEH,SAAS,aAAa,CAAC,IAAY;;QAClC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,MAAA,KAAK,CAAC,aAAa,sDAAG,IAAI,CAAC,CAAC;IAC7B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,cAA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AAa,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE,EACzD,QAAQ,EAAE,GAAG,EAAE,CAAC,CACf,6BAAK,SAAS,EAAC,sBAAsB;gBACnC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,oBAAC,MAAM,IACN,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE;wBAC3B,MAAM,EAAE,YAAY,KAAK,IAAI;qBAC7B,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;oBAEjC,IAAI;oBACJ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,WAAW,IAAI,CAC1C;;wBAEE,IAAI,KAAK,QAAQ;4BACjB,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,MAAM;4BACpC,CAAC,CAAC,IAAI,KAAK,MAAM;gCACjB,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;gCAClC,CAAC,CAAC,IAAI,KAAK,OAAO;oCAClB,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;oCACnC,CAAC,CAAC,CAAC;4BAEF,CACH,CACO,CACT,CAAC;gBAED,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,oBAAC,OAAO,IAAC,IAAI,EAAC,UAAU,GAAG,CAC9C,CACN,GACA,CACG,CACN,CAAC,CAAC;IAEH,SAAS,aAAa,CAAC,IAAY;;QAClC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,MAAA,KAAK,CAAC,aAAa,sDAAG,IAAI,CAAC,CAAC;IAC7B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Send: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
7
- className?: string | undefined;
6
+ action?: (context?: any) => void;
7
+ className?: string;
8
8
  }) => React.JSX.Element;
9
9
  export default Send;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const MyPinned: (props: {
3
- active?: string | undefined;
3
+ active?: string;
4
4
  /** Call back when an item has been clicked on the list. */
5
- onClickItem?: ((id: string) => void) | undefined;
5
+ onClickItem?: (id: string) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default MyPinned;
@@ -4,8 +4,8 @@ import { IconProp } from "@fortawesome/fontawesome-svg-core";
4
4
  declare const PinnedCardList: (props: {
5
5
  list: IDocument[];
6
6
  title: string;
7
- icon?: IconProp | undefined;
8
- onItemClick?: ((id: string) => void) | undefined;
9
- className?: string | undefined;
7
+ icon?: IconProp;
8
+ onItemClick?: (id: string) => void;
9
+ className?: string;
10
10
  }) => React.JSX.Element;
11
11
  export default PinnedCardList;
@@ -2,9 +2,9 @@ import React from "react";
2
2
  /** taskList 新增 下列更多菜单*/
3
3
  declare const AddTaskDropdown: (props: {
4
4
  id: string;
5
- className?: string | undefined;
6
- iconColor?: string | undefined;
7
- onCancelClick?: (() => void) | undefined;
8
- onItemClick?: ((type: string) => void) | undefined;
5
+ className?: string;
6
+ iconColor?: string;
7
+ onCancelClick?: () => void;
8
+ onItemClick?: (type: string) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default AddTaskDropdown;
@@ -5,7 +5,7 @@ declare const DelegateDialog: (props: {
5
5
  name: string;
6
6
  id: string;
7
7
  }[];
8
- onCancel?: (() => void) | undefined;
9
- onSubmit?: (() => void) | undefined;
8
+ onCancel?: () => void;
9
+ onSubmit?: () => void;
10
10
  }) => React.JSX.Element;
11
11
  export default DelegateDialog;
@@ -1,18 +1,18 @@
1
1
  import React from "react";
2
2
  import "./index.less";
3
3
  declare const NewTaskForm: (props: {
4
- parentId?: string | undefined;
5
- simple?: boolean | undefined;
6
- className?: string | undefined;
7
- block?: boolean | undefined;
8
- showView?: boolean | undefined;
4
+ parentId?: string;
5
+ simple?: boolean;
6
+ className?: string;
7
+ block?: boolean;
8
+ showView?: boolean;
9
9
  /** New Task (For Self) */
10
- self?: boolean | undefined;
10
+ self?: boolean;
11
11
  /** Description 默认值 */
12
- description?: string | undefined;
13
- onSave?: ((params?: any) => void) | undefined;
14
- onSubmitSave?: ((params?: any) => void) | undefined;
15
- onCancel?: (() => void) | undefined;
16
- onShowMore?: (() => void) | undefined;
12
+ description?: string;
13
+ onSave?: (params?: any) => void;
14
+ onSubmitSave?: (params?: any) => void;
15
+ onCancel?: () => void;
16
+ onShowMore?: () => void;
17
17
  }) => React.JSX.Element;
18
18
  export default NewTaskForm;
@@ -1,17 +1,17 @@
1
1
  import React from "react";
2
2
  import "./index.less";
3
3
  declare const NotificationNewTaskForm: (props: {
4
- parentId?: string | undefined;
5
- className?: string | undefined;
6
- showView?: boolean | undefined;
4
+ parentId?: string;
5
+ className?: string;
6
+ showView?: boolean;
7
7
  /** New Task (For Self) */
8
- self?: boolean | undefined;
8
+ self?: boolean;
9
9
  /** title 默认值 */
10
- title?: string | undefined;
10
+ title?: string;
11
11
  /** Description 默认值 */
12
- description?: string | undefined;
13
- onSave?: ((params?: any) => void) | undefined;
14
- onSubmitSave?: ((params?: any) => void) | undefined;
15
- onCancel?: (() => void) | undefined;
12
+ description?: string;
13
+ onSave?: (params?: any) => void;
14
+ onSubmitSave?: (params?: any) => void;
15
+ onCancel?: () => void;
16
16
  }) => React.JSX.Element;
17
17
  export default NotificationNewTaskForm;
@@ -3,7 +3,7 @@ import "./index.less";
3
3
  declare const TaskCheckItem: (props: {
4
4
  id: string;
5
5
  /** 是否显示dueDate */
6
- dueDate?: boolean | undefined;
7
- onChangeDueDate?: ((dueDate?: Date) => void) | undefined;
6
+ dueDate?: boolean;
7
+ onChangeDueDate?: (dueDate?: Date) => void;
8
8
  }) => React.JSX.Element;
9
9
  export default TaskCheckItem;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import "./index.less";
3
3
  declare const TaskCheckNewForm: (props: {
4
- parentId?: string | undefined;
5
- className?: string | undefined;
6
- onSave?: ((params?: any) => void) | undefined;
7
- onCancel?: (() => void) | undefined;
4
+ parentId?: string;
5
+ className?: string;
6
+ onSave?: (params?: any) => void;
7
+ onCancel?: () => void;
8
8
  }) => React.JSX.Element;
9
9
  export default TaskCheckNewForm;
@@ -4,7 +4,7 @@ import { TaskStatus } from "@voplus/morpho-document-core";
4
4
  declare const TaskStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
- className?: string | undefined;
7
+ className?: string;
8
8
  onChange: (status: TaskStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default TaskStatusLabel;
@@ -5,8 +5,8 @@ declare const NewWorkErrorDialog: (props: {
5
5
  /** work type id */
6
6
  workTypeId: string;
7
7
  /** 額外css class. */
8
- className?: string | undefined;
9
- onSubmitSave?: ((params?: any) => void) | undefined;
10
- onCancel?: (() => void) | undefined;
8
+ className?: string;
9
+ onSubmitSave?: (params?: any) => void;
10
+ onCancel?: () => void;
11
11
  }) => React.JSX.Element;
12
12
  export default NewWorkErrorDialog;
@@ -2,22 +2,22 @@ import React from "react";
2
2
  declare const NewWorkForm: {
3
3
  (props: {
4
4
  /** 添加 RelatedWork 时需要传入 RelatedId = workId */
5
- workId?: string | undefined;
5
+ workId?: string;
6
6
  /** 用于预选的 contact */
7
7
  contact?: {
8
8
  name: string;
9
9
  id: string;
10
- } | undefined;
10
+ };
11
11
  /** 額外css class. */
12
- className?: string | undefined;
12
+ className?: string;
13
13
  /** NewWorkForm 打开的方式 */
14
- openMode?: "openAside" | "openBottom" | undefined;
14
+ openMode?: "openAside" | "openBottom";
15
15
  /** save后显示PropertiesView, cancel关闭右边new work */
16
- showView?: boolean | undefined;
16
+ showView?: boolean;
17
17
  /** 是否为添加 RelatedWork */
18
- isRelatedWork?: boolean | undefined;
19
- onSave?: ((params?: any) => void) | undefined;
20
- onCancel?: (() => void) | undefined;
18
+ isRelatedWork?: boolean;
19
+ onSave?: (params?: any) => void;
20
+ onCancel?: () => void;
21
21
  }): React.JSX.Element;
22
22
  defaultProps: {
23
23
  openMode: string;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const RejectWorkDialog: (props: {
3
- parentId?: string | undefined;
4
- className?: string | undefined;
5
- onSubmitSave?: ((params?: any) => void) | undefined;
6
- onCancel?: (() => void) | undefined;
3
+ parentId?: string;
4
+ className?: string;
5
+ onSubmitSave?: (params?: any) => void;
6
+ onCancel?: () => void;
7
7
  }) => React.JSX.Element;
8
8
  export default RejectWorkDialog;
@@ -2,6 +2,6 @@ import React from "react";
2
2
  declare const WorkCashReport: (props: {
3
3
  id: string;
4
4
  workspaceId: string;
5
- onFilterOutPut?: ((filterStatus: string[]) => void) | undefined;
5
+ onFilterOutPut?: (filterStatus: string[]) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default WorkCashReport;
@@ -3,9 +3,9 @@ import React from "react";
3
3
  declare const WorkErrorList: {
4
4
  (props: {
5
5
  id: string;
6
- viewTitle?: string | undefined;
7
- asideable?: boolean | undefined;
8
- onClickItem?: ((workErrorId: string, workTypeId?: string) => void) | undefined;
6
+ viewTitle?: string;
7
+ asideable?: boolean;
8
+ onClickItem?: (workErrorId: string, workTypeId?: string) => void;
9
9
  }): React.JSX.Element;
10
10
  defaultProps: {
11
11
  viewTitle: string;
@@ -16,8 +16,6 @@ export type WorkListProps = {
16
16
  active?: string;
17
17
  /** filter roles */
18
18
  roles?: boolean;
19
- /** Whether to open propertiesview from the inside */
20
- asideable?: boolean;
21
19
  /** filter workspaceId */
22
20
  workspaceId?: string;
23
21
  /** filter workId */
@@ -14,7 +14,7 @@ import dayjs from "dayjs";
14
14
  import S from "string";
15
15
  import "./index.less";
16
16
  const WorkList = (props) => {
17
- const { dueDate, typesId, roles, status, statusArr, workspaceId, workId, contactId, contact, addAble, asideable, viewTitle, total, } = props;
17
+ const { dueDate, typesId, roles, status, statusArr, workspaceId, workId, contactId, contact, addAble, viewTitle, total, } = props;
18
18
  const [activeId, setActiveId] = useState("");
19
19
  const [workTotal, setWorkTotal] = useState(0);
20
20
  const documentStore = useDocumentStore();
@@ -74,7 +74,7 @@ const WorkList = (props) => {
74
74
  selectedFilterKey: ["WorkTypes"],
75
75
  addAble: addAble || (dueDate === "requested" ? true : false),
76
76
  ...listViewHeaderProps,
77
- }, asideable: asideable, className: "work-list", moveAfter: moveAfter, formViewTitle: "Add Work", formView: React.createElement(NewWorkForm, { contact: contact, showView: true }), renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
77
+ }, className: "work-list", moveAfter: moveAfter, formViewTitle: "Add Work", formView: React.createElement(NewWorkForm, { contact: contact, showView: true }), renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
78
78
  var _a;
79
79
  setActiveId(item.id);
80
80
  (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);