@voplus/morpho-workspace 6.0.107 → 6.0.108

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) 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/controls/NodeLink/index.js +2 -1
  7. package/es/controls/NodeLink/index.js.map +1 -1
  8. package/es/controls/NodeLink/index.less +7 -0
  9. package/es/data/board/contexts/BoardListContextState/index.d.ts +1 -0
  10. package/es/data/board/metas.d.ts +1 -0
  11. package/es/data/meeting/metas.d.ts +1 -0
  12. package/es/data/task/metas.d.ts +1 -0
  13. package/es/data/work/metas.d.ts +1 -0
  14. package/es/data/work-schedule/metas.d.ts +1 -0
  15. package/es/modules/board/components/Board/index.d.ts +1 -1
  16. package/es/modules/board/components/NewBoardColumnDialog/index.d.ts +2 -2
  17. package/es/modules/board/components/NewColumnDocumentForm/index.d.ts +1 -1
  18. package/es/modules/board/components/SubDocument/index.d.ts +2 -2
  19. package/es/modules/meeting/components/AgendaList/AgendaContext.d.ts +1 -0
  20. package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.d.ts +5 -5
  21. package/es/modules/meeting/components/MeetingList/QuickSearch/index.d.ts +9 -8
  22. package/es/modules/meeting/components/MeetingProperties/index.js +2 -2
  23. package/es/modules/notification/components/DocumentNotificationCard/index.d.ts +4 -4
  24. package/es/modules/notification/components/NotificationList/index.d.ts +3 -3
  25. package/es/modules/notification/components/NotificationListHeader/index.d.ts +1 -1
  26. package/es/modules/notification/components/NotificationProperties/index.js +1 -1
  27. package/es/modules/notification/controls/NotificationMenu/item/Send.d.ts +3 -3
  28. package/es/modules/pin/components/MyPinned/index.d.ts +2 -2
  29. package/es/modules/pin/components/PinnedCardList/index.d.ts +3 -3
  30. package/es/modules/tasks/components/AddTaskDropdown/index.d.ts +4 -4
  31. package/es/modules/tasks/components/DelegateDialog/index.d.ts +2 -2
  32. package/es/modules/tasks/components/NewTaskForm/index.d.ts +11 -11
  33. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.d.ts +9 -9
  34. package/es/modules/tasks/components/TaskCard/index.js +4 -2
  35. package/es/modules/tasks/components/TaskCard/index.js.map +1 -1
  36. package/es/modules/tasks/components/TaskCard/index.less +9 -0
  37. package/es/modules/tasks/components/TaskCheckItem/index.d.ts +2 -2
  38. package/es/modules/tasks/components/TaskCheckNewForm/index.d.ts +4 -4
  39. package/es/modules/tasks/components/TaskProperties/index.js +2 -2
  40. package/es/modules/tasks/components/TaskSimpleProperties/index.js +1 -1
  41. package/es/modules/tasks/controls/TaskStatusLabel/index.d.ts +1 -1
  42. package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +3 -3
  43. package/es/modules/work/components/NewWorkForm/index.d.ts +8 -8
  44. package/es/modules/work/components/RejectWorkDialog/index.d.ts +4 -4
  45. package/es/modules/work/components/WorkCashReport/index.d.ts +1 -1
  46. package/es/modules/work/components/WorkErrorList/index.d.ts +3 -3
  47. package/es/modules/work/components/WorkErrorProperties/index.js +2 -2
  48. package/es/modules/work/components/WorksProperties/index.js +5 -5
  49. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  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-schedule/components/WorkScheduleProperties/index.js +1 -1
  57. package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.d.ts +3 -3
  58. package/es/modules/work/work-type/components/ErrorTypeList/Item.d.ts +5 -5
  59. package/es/modules/work/work-type/components/ErrorTypeList/index.d.ts +6 -6
  60. package/es/modules/work/work-type/components/NewTypeForm/index.d.ts +4 -4
  61. package/es/modules/work/work-type/components/WorkTypeIconList/index.d.ts +1 -1
  62. package/es/modules/work/work-type/components/WorkTypeList/index.d.ts +2 -2
  63. package/es/modules/work/work-type/components/WorkTypeSelect/index.d.ts +5 -5
  64. package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.d.ts +1 -1
  65. package/es/modules/workspace/components/MyWorkspaces/index.d.ts +3 -3
  66. package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +5 -5
  67. package/es/modules/workspace/components/WorkspaceIconList/index.d.ts +5 -5
  68. package/es/modules/workspace/components/WorkspaceIconList2/index.d.ts +2 -2
  69. package/es/obsolete/space/components/Notes/ColorSelect/index.d.ts +3 -3
  70. package/es/obsolete/space/components/Notes/NewNoteDialog/index.d.ts +2 -2
  71. 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;
6
- onCancel?: () => void;
7
- onSubmit?: (Sequence: SequenceEditOptions) => void;
5
+ sequence?: ISequenceInfo | undefined;
6
+ onCancel?: (() => void) | undefined;
7
+ onSubmit?: ((Sequence: SequenceEditOptions) => void) | undefined;
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;
5
- onSubmit?: (Sequence: SequenceEditOptions) => void;
4
+ sequence?: ISequenceInfo | undefined;
5
+ onSubmit?: ((Sequence: SequenceEditOptions) => void) | undefined;
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;
4
- onChange?: (val: string) => void | Promise<void>;
3
+ render?: string | undefined;
4
+ onChange?: ((val: string) => void | Promise<void>) | undefined;
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;
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;
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;
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;
8
+ onClick?: ((id?: string) => void) | undefined;
9
9
  }) => React.JSX.Element;
10
10
  export default NodeLink;
@@ -1,9 +1,10 @@
1
1
  import React from "react";
2
2
  import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
3
  import ToolBar2 from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
4
+ import styles from "./index.less";
4
5
  const NodeLink = (props) => {
5
6
  const { node, url } = props;
6
- return (React.createElement(React.Fragment, null,
7
+ return (React.createElement("div", { className: styles["node-link"] },
7
8
  React.createElement("span", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, node.id); }, style: { color: "#374151" } }, node === null || node === void 0 ? void 0 : node.name),
8
9
  (node === null || node === void 0 ? void 0 : node.id) && (React.createElement(ToolBar2, { id: node.id, showMenu: false },
9
10
  React.createElement(Open, { url: url })))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/NodeLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,QAAQ,MAAM,sDAAsD,CAAC;AAE5E,MAAM,QAAQ,GAAG,CAAC,KAIjB,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ;QACd,8BAAM,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,OAAO,sDAAG,IAAI,CAAC,EAAE,CAAC,CAAA,EAAA,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IACxE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CACL;QACN,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CACZ,oBAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;YACrC,oBAAC,IAAI,IAAC,GAAG,EAAE,GAAG,GAAI,CACR,CACX,CACe,CACjB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/NodeLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,QAAQ,MAAM,sDAAsD,CAAC;AAC5E,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,QAAQ,GAAG,CAAC,KAIjB,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACN,6BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;QAClC,8BAAM,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,OAAO,sDAAG,IAAI,CAAC,EAAE,CAAC,CAAA,EAAA,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IACxE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CACL;QACN,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CACZ,oBAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;YACrC,oBAAC,IAAI,IAAC,GAAG,EAAE,GAAG,GAAI,CACR,CACX,CACI,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,7 @@
1
+ .node-link {
2
+ :global {
3
+ .tool-bar.tool-bar-2 .ant-btn {
4
+ font-size: 14px;
5
+ }
6
+ }
7
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare class BoardListContextState {
2
3
  name?: string;
3
4
  /** Construct a new BoardListContextState
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
2
3
  import { IDocument } from "@voplus/morpho-document-core";
3
4
  /** Meta information for Board document. */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IDocument, QuickViewProps } from "@voplus/morpho-document-core";
2
3
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
3
4
  /** Meta information for Meeting document. */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IDocument, QuickViewProps, DocumentCardProps, DocumentMenuProps } from "@voplus/morpho-document-core";
2
3
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
3
4
  /** Meta information for Task document. */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IDocument, QuickViewProps, DocumentMenuProps, DocumentCardProps } from "@voplus/morpho-document-core";
2
3
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
3
4
  /** Meta information for Work document. */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { INode, QuickViewProps } from "@voplus/morpho-document-core";
2
3
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
3
4
  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;
5
+ onAdd?: ((parentId: string, type: string, name: string) => void) | undefined;
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;
5
- onCreate?: (name?: string) => void;
4
+ onCancel?: (() => void) | undefined;
5
+ onCreate?: ((name?: string) => void) | undefined;
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;
6
+ onCancel?: (() => void) | undefined;
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;
5
+ listType?: string | undefined;
6
6
  /** sub-document length ids */
7
- onDocumentData?: (params?: any) => void;
7
+ onDocumentData?: ((params?: any) => void) | undefined;
8
8
  /** move 目标数据 */
9
9
  destination?: any;
10
10
  /** move 原数据 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface IAgendaItemState {
2
3
  /** Collapse or expand the Agenda item. */
3
4
  collapse: boolean;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const _default: React.ForwardRefExoticComponent<{
3
- id?: string;
4
- single?: boolean;
5
- addOnly?: boolean;
6
- onChange?: (params?: any) => void;
7
- onCancel?: () => void;
3
+ id?: string | undefined;
4
+ single?: boolean | undefined;
5
+ addOnly?: boolean | undefined;
6
+ onChange?: ((params?: any) => void) | undefined;
7
+ onCancel?: (() => void) | undefined;
8
8
  } & React.RefAttributes<unknown>>;
9
9
  export default _default;
@@ -1,16 +1,17 @@
1
1
  import React, { CSSProperties } from "react";
2
+ import style from "./index.less";
2
3
  declare const QuickSearch: {
3
4
  (props: {
4
5
  /** reset 默认值标识/parentId */
5
- renderId?: string;
6
- title?: string;
7
- placeholder?: string;
6
+ renderId?: string | undefined;
7
+ title?: string | undefined;
8
+ placeholder?: string | undefined;
8
9
  /** width of Input */
9
- width?: string;
10
- onChange?: (value: string) => void;
11
- onPressEnter?: (value: string) => void | Promise<void>;
12
- className?: string;
13
- style?: CSSProperties;
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;
14
15
  }): React.JSX.Element;
15
16
  defaultProps: {
16
17
  width: string;
@@ -101,8 +101,8 @@ const MeetingProperties = (props) => {
101
101
  }
102
102
  };
103
103
  MeetingProperties.defaultProps = {
104
- mettingTitle: "Meeting Properties",
105
- documentTitle: "Document Properties",
104
+ mettingTitle: "MEETING PROPERTIES",
105
+ documentTitle: "DOCUMENT PROPERTIES",
106
106
  mettingProperties: [
107
107
  { name: "Progress" },
108
108
  { name: "Members" },
@@ -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;
6
- className?: string;
7
- onClick?: React.MouseEventHandler<HTMLDivElement>;
8
- onChangeStatus?: (state: NotificationStatus) => void;
5
+ active?: boolean | undefined;
6
+ className?: string | undefined;
7
+ onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
8
+ onChangeStatus?: ((state: NotificationStatus) => void) | undefined;
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;
8
+ active?: string | undefined;
9
9
  /** Call back when an item has been clicked on the list. */
10
- onClickItem?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void;
11
- onClickStatus?: (status: string) => void;
10
+ onClickItem?: ((ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void) | undefined;
11
+ onClickStatus?: ((status: string) => void) | undefined;
12
12
  }) => React.JSX.Element;
13
13
  export default NotificationList;
@@ -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;
5
+ onClickStatus?: ((status: string) => void) | undefined;
6
6
  }) => React.JSX.Element;
7
7
  export default NotificationListHeader;
@@ -44,7 +44,7 @@ const NotificationProperties = (props) => {
44
44
  }
45
45
  };
46
46
  NotificationProperties.defaultProps = {
47
- NotificationTitle: "Notification Properties",
47
+ NotificationTitle: "NOTIFICATION PROPERTIES",
48
48
  NotificationProperties: [
49
49
  { name: "Notification Status" },
50
50
  { name: "Subject" },
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Send: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean;
4
+ disabled?: boolean | undefined;
5
5
  /** function of Click */
6
- action?: (context?: any) => void;
7
- className?: string;
6
+ action?: ((context?: any) => void) | undefined;
7
+ className?: string | undefined;
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;
3
+ active?: string | undefined;
4
4
  /** Call back when an item has been clicked on the list. */
5
- onClickItem?: (id: string) => void;
5
+ onClickItem?: ((id: string) => void) | undefined;
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;
8
- onItemClick?: (id: string) => void;
9
- className?: string;
7
+ icon?: IconProp | undefined;
8
+ onItemClick?: ((id: string) => void) | undefined;
9
+ className?: string | undefined;
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;
6
- iconColor?: string;
7
- onCancelClick?: () => void;
8
- onItemClick?: (type: string) => void;
5
+ className?: string | undefined;
6
+ iconColor?: string | undefined;
7
+ onCancelClick?: (() => void) | undefined;
8
+ onItemClick?: ((type: string) => void) | undefined;
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;
9
- onSubmit?: () => void;
8
+ onCancel?: (() => void) | undefined;
9
+ onSubmit?: (() => void) | undefined;
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;
5
- simple?: boolean;
6
- className?: string;
7
- block?: boolean;
8
- showView?: boolean;
4
+ parentId?: string | undefined;
5
+ simple?: boolean | undefined;
6
+ className?: string | undefined;
7
+ block?: boolean | undefined;
8
+ showView?: boolean | undefined;
9
9
  /** New Task (For Self) */
10
- self?: boolean;
10
+ self?: boolean | undefined;
11
11
  /** Description 默认值 */
12
- description?: string;
13
- onSave?: (params?: any) => void;
14
- onSubmitSave?: (params?: any) => void;
15
- onCancel?: () => void;
16
- onShowMore?: () => void;
12
+ description?: string | undefined;
13
+ onSave?: ((params?: any) => void) | undefined;
14
+ onSubmitSave?: ((params?: any) => void) | undefined;
15
+ onCancel?: (() => void) | undefined;
16
+ onShowMore?: (() => void) | undefined;
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;
5
- className?: string;
6
- showView?: boolean;
4
+ parentId?: string | undefined;
5
+ className?: string | undefined;
6
+ showView?: boolean | undefined;
7
7
  /** New Task (For Self) */
8
- self?: boolean;
8
+ self?: boolean | undefined;
9
9
  /** title 默认值 */
10
- title?: string;
10
+ title?: string | undefined;
11
11
  /** Description 默认值 */
12
- description?: string;
13
- onSave?: (params?: any) => void;
14
- onSubmitSave?: (params?: any) => void;
15
- onCancel?: () => void;
12
+ description?: string | undefined;
13
+ onSave?: ((params?: any) => void) | undefined;
14
+ onSubmitSave?: ((params?: any) => void) | undefined;
15
+ onCancel?: (() => void) | undefined;
16
16
  }) => React.JSX.Element;
17
17
  export default NotificationNewTaskForm;
@@ -1,13 +1,15 @@
1
1
  import React from "react";
2
2
  import TaskDataIconBar from "../../controls/TaskDataIconBar";
3
3
  import { observe } from "@voplus/morpho-ui";
4
- import DocumentCard from "@voplus/morpho-document/es/components/DocumentCard";
4
+ import DocumentCard from "@voplus/morpho-document/es/components/DocumentCard/DocumentCard2";
5
+ import TaskStatusDataIcon from "../../controls/TaskStatusDataIcon";
5
6
  import "./index.less";
6
7
  const TaskCard = (props) => {
7
8
  return observe(() => (React.createElement(DocumentCard, { id: props.id, headerProps: {
8
9
  className: "task-card-header",
9
10
  quickDataBar: (React.createElement(TaskDataIconBar, { id: props.id, documentPathVisible: false, commentVisible: false, taskAnalyticsVisible: false, statusVisible: true })),
10
- } })));
11
+ }, footerLeft: React.createElement("div", { className: "task-card-footer-left" },
12
+ React.createElement(TaskStatusDataIcon, { id: props.id })) })));
11
13
  };
12
14
  export default TaskCard;
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,CAAC;AAEtB,MAAM,QAAQ,GAAG,CAAC,KAAwB,EAAE,EAAE;IAC7C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,WAAW,EAAE;YACZ,SAAS,EAAE,kBAAkB;YAC7B,YAAY,EAAE,CACb,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,mBAAmB,EAAE,KAAK,EAC1B,cAAc,EAAE,KAAK,EACrB,oBAAoB,EAAE,KAAK,EAC3B,aAAa,EAAE,IAAI,GAClB,CACF;SACD,GACA,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,kEAAkE,CAAC;AAC5F,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,cAAc,CAAC;AAEtB,MAAM,QAAQ,GAAG,CAAC,KAAwB,EAAE,EAAE;IAC7C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,WAAW,EAAE;YACZ,SAAS,EAAE,kBAAkB;YAC7B,YAAY,EAAE,CACb,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,mBAAmB,EAAE,KAAK,EAC1B,cAAc,EAAE,KAAK,EACrB,oBAAoB,EAAE,KAAK,EAC3B,aAAa,EAAE,IAAI,GAClB,CACF;SACD,EACD,UAAU,EACT,6BAAK,SAAS,EAAC,uBAAuB;YACrC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAC/B,GAEN,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -12,4 +12,13 @@
12
12
  }
13
13
  }
14
14
  }
15
+ .task-card-footer-left {
16
+ .task-status {
17
+ font-size: 10px;
18
+ height: 20px;
19
+ line-height: 20px;
20
+ border-radius: 2px;
21
+ width: unit((106/16), em);
22
+ }
23
+ }
15
24
  }
@@ -3,7 +3,7 @@ import "./index.less";
3
3
  declare const TaskCheckItem: (props: {
4
4
  id: string;
5
5
  /** 是否显示dueDate */
6
- dueDate?: boolean;
7
- onChangeDueDate?: (dueDate?: Date) => void;
6
+ dueDate?: boolean | undefined;
7
+ onChangeDueDate?: ((dueDate?: Date) => void) | undefined;
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;
5
- className?: string;
6
- onSave?: (params?: any) => void;
7
- onCancel?: () => void;
4
+ parentId?: string | undefined;
5
+ className?: string | undefined;
6
+ onSave?: ((params?: any) => void) | undefined;
7
+ onCancel?: (() => void) | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default TaskCheckNewForm;
@@ -60,8 +60,8 @@ const TaskProperties = (props) => {
60
60
  }
61
61
  };
62
62
  TaskProperties.defaultProps = {
63
- taskTitle: "Task Properties",
64
- documentTitle: "Document Properties",
63
+ taskTitle: "TASK PROPERTIES",
64
+ documentTitle: "DOCUMENT PROPERTIES",
65
65
  taskProperties: [{ name: "Status" }, { name: "Members" }, { name: "Due" }],
66
66
  };
67
67
  export default TaskProperties;
@@ -45,7 +45,7 @@ const TaskSimpleProperties = (props) => {
45
45
  }
46
46
  };
47
47
  TaskSimpleProperties.defaultProps = {
48
- taskTitle: "Task Properties",
48
+ taskTitle: "TASK PROPERTIES",
49
49
  taskProperties: [{ name: "Members" }, { name: "Due" }, { name: "Done" }],
50
50
  };
51
51
  export default TaskSimpleProperties;
@@ -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;
7
+ className?: string | undefined;
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;
9
- onSubmitSave?: (params?: any) => void;
10
- onCancel?: () => void;
8
+ className?: string | undefined;
9
+ onSubmitSave?: ((params?: any) => void) | undefined;
10
+ onCancel?: (() => void) | undefined;
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;
5
+ workId?: string | undefined;
6
6
  /** 用于预选的 contact */
7
7
  contact?: {
8
8
  name: string;
9
9
  id: string;
10
- };
10
+ } | undefined;
11
11
  /** 額外css class. */
12
- className?: string;
12
+ className?: string | undefined;
13
13
  /** NewWorkForm 打开的方式 */
14
- openMode?: "openAside" | "openBottom";
14
+ openMode?: "openAside" | "openBottom" | undefined;
15
15
  /** save后显示PropertiesView, cancel关闭右边new work */
16
- showView?: boolean;
16
+ showView?: boolean | undefined;
17
17
  /** 是否为添加 RelatedWork */
18
- isRelatedWork?: boolean;
19
- onSave?: (params?: any) => void;
20
- onCancel?: () => void;
18
+ isRelatedWork?: boolean | undefined;
19
+ onSave?: ((params?: any) => void) | undefined;
20
+ onCancel?: (() => void) | undefined;
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;
4
- className?: string;
5
- onSubmitSave?: (params?: any) => void;
6
- onCancel?: () => void;
3
+ parentId?: string | undefined;
4
+ className?: string | undefined;
5
+ onSubmitSave?: ((params?: any) => void) | undefined;
6
+ onCancel?: (() => void) | undefined;
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;
5
+ onFilterOutPut?: ((filterStatus: string[]) => void) | undefined;
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;
7
- asideable?: boolean;
8
- onClickItem?: (workErrorId: string, workTypeId?: string) => void;
6
+ viewTitle?: string | undefined;
7
+ asideable?: boolean | undefined;
8
+ onClickItem?: ((workErrorId: string, workTypeId?: string) => void) | undefined;
9
9
  }): React.JSX.Element;
10
10
  defaultProps: {
11
11
  viewTitle: string;
@@ -60,8 +60,8 @@ const WorkErrorProperties = (props) => {
60
60
  }
61
61
  };
62
62
  WorkErrorProperties.defaultProps = {
63
- workErrorTitle: "Work Error Properties",
64
- documentTitle: "Document Properties",
63
+ workErrorTitle: "WORK ERROR PROPERTIES",
64
+ documentTitle: "DOCUMENT PROPERTIES",
65
65
  workErrorProperties: [
66
66
  { name: "Type" },
67
67
  { name: "Severity" },
@@ -18,7 +18,7 @@ import ChangeAvatarDialog from "@voplus/morpho-org/es/controls/ChangeAvatarDialo
18
18
  import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
19
19
  import { utcdayjs, isSame } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
20
20
  import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
21
- import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference/LoadedDocumentReference";
21
+ import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference";
22
22
  import WorkStatusLabel from "../../controls/WorkStatusLabel";
23
23
  import classnames from "classnames";
24
24
  import styles from "./index.less";
@@ -62,11 +62,11 @@ const WorksProperties = (props) => {
62
62
  var _a, _b;
63
63
  return work.contact ? (React.createElement(ToolBar, { id: (_a = work.contact) === null || _a === void 0 ? void 0 : _a.id, moreProps: {
64
64
  id: (_b = work.contact) === null || _b === void 0 ? void 0 : _b.id,
65
- children: (context) => (React.createElement(UnitReference, { unit: work.contact, symbol: true, onClick: () => (context.open = false) })),
65
+ children: (context) => (React.createElement(UnitReference, { unit: work.contact, symbol: true, type: "link", onClick: () => (context.open = false) })),
66
66
  } })) : (noData);
67
67
  } }));
68
68
  case "Document":
69
- return ((_a = work.document) === null || _a === void 0 ? void 0 : _a.id) ? React.createElement(DocumentReference, { file: work.document }) : noData;
69
+ return ((_a = work.document) === null || _a === void 0 ? void 0 : _a.id) ? React.createElement(DocumentReference, { id: work.document.id, type: "link" }) : noData;
70
70
  case "Due":
71
71
  return (React.createElement(InlineEdit, { defaultValue: work.due ? utcdayjs(work.due) : undefined, content: (v) => work.due ? (React.createElement(UTCShortDate, { className: "properties-value", value: work.due, format: "DD MMM YYYY" })) : (React.createElement("span", { className: "add-info-style" }, "noData")), editor: DateInputEditor, onSave: (date) => {
72
72
  if (isSame(date, work.due))
@@ -87,8 +87,8 @@ const WorksProperties = (props) => {
87
87
  }
88
88
  };
89
89
  WorksProperties.defaultProps = {
90
- workTitle: "Work Properties",
91
- documentTitle: "Document Properties",
90
+ workTitle: "WORK PROPERTIES",
91
+ documentTitle: "DOCUMENT PROPERTIES",
92
92
  workProperties: [
93
93
  { name: "Work Type" },
94
94
  { name: "Number" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,QAAQ,MAAM,+BAA+B,CAAC;AACrD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,aAAa,MAAM,kEAA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,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,CACzB,CAChB,CAAC,CACY,CACf,CAAC,CAAC,CAAC,CACH,MAAM,CACN,CAAA;qBAAA,GAED,CACF,CAAC;YACH,KAAK,WAAW;gBACf,OAAO,oBAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,CAAC,QAAS,EAAE,GAAG,EAAE,oBAAoB,MAAA,IAAI,CAAC,QAAQ,0CAAE,EAAE,EAAE,GAAI,CAAC;YACzF,KAAK,QAAQ;gBACZ,OAAO,8BAAM,SAAS,EAAC,kBAAkB,IAAE,IAAI,CAAC,MAAM,CAAQ,CAAC;QACjE,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,SAAS,EAAE,iBAAiB;IAC5B,aAAa,EAAE,qBAAqB;IACpC,cAAc,EAAE;QACf,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,KAAK,EAAE;QACf,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
2
  declare const SeveritySelect: {
3
3
  (props: {
4
- defaultValue?: string;
5
- open?: boolean;
6
- autoFocus?: boolean;
7
- placeholder?: string;
8
- className?: string;
9
- onChange?: (severity: string) => void;
10
- onBlur?: () => void;
11
- style?: React.CSSProperties;
4
+ defaultValue?: string | undefined;
5
+ open?: boolean | undefined;
6
+ autoFocus?: boolean | undefined;
7
+ placeholder?: string | undefined;
8
+ className?: string | undefined;
9
+ onChange?: ((severity: string) => void) | undefined;
10
+ onBlur?: (() => void) | undefined;
11
+ style?: React.CSSProperties | undefined;
12
12
  }): React.JSX.Element;
13
13
  defaultProps: {
14
14
  style: {
@@ -2,14 +2,14 @@ import React from "react";
2
2
  declare const WorkErrorSelect: {
3
3
  (props: {
4
4
  workTypeId: string;
5
- defaultValue?: string;
6
- open?: boolean;
7
- autoFocus?: boolean;
8
- placeholder?: string;
9
- className?: string;
10
- onChange?: (val: string) => void;
11
- onBlur?: () => void;
12
- style?: React.CSSProperties;
5
+ defaultValue?: string | undefined;
6
+ open?: boolean | undefined;
7
+ autoFocus?: boolean | undefined;
8
+ placeholder?: string | undefined;
9
+ className?: string | undefined;
10
+ onChange?: ((val: string) => void) | undefined;
11
+ onBlur?: (() => void) | undefined;
12
+ style?: React.CSSProperties | undefined;
13
13
  }): React.JSX.Element;
14
14
  defaultProps: {
15
15
  style: {
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Accept: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean;
4
+ disabled?: boolean | undefined;
5
5
  /** function of Click */
6
- action?: (context?: any) => void;
7
- className?: string;
6
+ action?: ((context?: any) => void) | undefined;
7
+ className?: string | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default Accept;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Reject: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean;
4
+ disabled?: boolean | undefined;
5
5
  /** function of Click */
6
- action?: (context?: any) => void;
7
- className?: string;
6
+ action?: ((context?: any) => void) | undefined;
7
+ className?: string | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default Reject;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Send: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean;
4
+ disabled?: boolean | undefined;
5
5
  /** function of Click */
6
- action?: (context?: any) => void;
7
- className?: string;
6
+ action?: ((context?: any) => void) | undefined;
7
+ className?: string | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default Send;
@@ -4,7 +4,7 @@ import { WorkStatus } from "../../../../data/work";
4
4
  declare const WorkStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
- className?: string;
7
+ className?: string | undefined;
8
8
  onChange: (status: WorkStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default WorkStatusLabel;
@@ -80,7 +80,7 @@ const WorkScheduleProperties = (props) => {
80
80
  }
81
81
  };
82
82
  WorkScheduleProperties.defaultProps = {
83
- workScheduleTitle: "WorkSchedule Properties",
83
+ workScheduleTitle: "WORKSCHEDULE PROPERTIES",
84
84
  workScheduleProperties: [
85
85
  { name: "Owner" },
86
86
  { name: "Schedule" },
@@ -4,8 +4,8 @@ declare const ChangeWorkDefaultFolderDialog: (props: {
4
4
  defaultDocument?: {
5
5
  id: string;
6
6
  name: string;
7
- };
8
- onCancel?: () => void;
9
- onSubmit?: () => void;
7
+ } | undefined;
8
+ onCancel?: (() => void) | undefined;
9
+ onSubmit?: (() => void) | undefined;
10
10
  }) => React.JSX.Element;
11
11
  export default ChangeWorkDefaultFolderDialog;
@@ -3,16 +3,16 @@ import { ListItem } from "./state";
3
3
  import React from "react";
4
4
  import { ConnectDragSource } from "react-dnd";
5
5
  declare const Item: (props: {
6
- index?: number;
6
+ index?: number | undefined;
7
7
  /** item of check */
8
8
  value: ListItem;
9
9
  /** 现在是不是sort mode */
10
- sortMode?: boolean;
10
+ sortMode?: boolean | undefined;
11
11
  /** DragSource of sort */
12
- connectDragSource?: ConnectDragSource;
12
+ connectDragSource?: ConnectDragSource | undefined;
13
13
  /** edit item 的call back */
14
- onChange?: (item: ListItem) => void;
14
+ onChange?: ((item: ListItem) => void) | undefined;
15
15
  /** delete item 的call back */
16
- onDelete?: (item: ListItem) => void;
16
+ onDelete?: ((item: ListItem) => void) | undefined;
17
17
  }) => React.JSX.Element;
18
18
  export default Item;
@@ -4,16 +4,16 @@ import React from "react";
4
4
  declare const ErrorTypeList: (props: {
5
5
  list: ListItem[];
6
6
  /** drag sort */
7
- moveAfter?: (id: string | number, afterId: string | number, list?: any[]) => void;
7
+ moveAfter?: ((id: string | number, afterId: string | number, list?: any[]) => void) | undefined;
8
8
  /** 新增item的call back */
9
- onCreate?: (item: string) => void;
9
+ onCreate?: ((item: string) => void) | undefined;
10
10
  /** item 內容變化的 call back */
11
- onChange?: (item: ListItem) => void;
11
+ onChange?: ((item: ListItem) => void) | undefined;
12
12
  /** delete item 的call back */
13
- onDelete?: (item: ListItem) => void;
13
+ onDelete?: ((item: ListItem) => void) | undefined;
14
14
  /** 现在是不是sort mode */
15
- sortMode?: boolean;
15
+ sortMode?: boolean | undefined;
16
16
  /** header title */
17
- viewTitle?: string;
17
+ viewTitle?: string | undefined;
18
18
  }) => React.JSX.Element;
19
19
  export default ErrorTypeList;
@@ -2,9 +2,9 @@ import "./index.less";
2
2
  import React from "react";
3
3
  declare const NewTypeForm: (props: {
4
4
  workspaceId: string;
5
- className?: string;
6
- block?: boolean;
7
- onSave?: (params?: any) => void;
8
- onCancel?: () => void;
5
+ className?: string | undefined;
6
+ block?: boolean | undefined;
7
+ onSave?: ((params?: any) => void) | undefined;
8
+ onCancel?: (() => void) | undefined;
9
9
  }) => React.JSX.Element;
10
10
  export default NewTypeForm;
@@ -4,6 +4,6 @@ import React from "react";
4
4
  declare const WorkTypeIconList: (props: {
5
5
  workspaceId: string;
6
6
  /** item onclick */
7
- onItemClick?: (item: IWorkType) => void;
7
+ onItemClick?: ((item: IWorkType) => void) | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default WorkTypeIconList;
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import { IWorkType } from "../../../../../data/worktype";
3
3
  declare const WorkTypeList: (props: {
4
4
  workspaceId: string;
5
- active?: string;
5
+ active?: string | undefined;
6
6
  /** item onclick */
7
- onClickItem?: (item: IWorkType) => void;
7
+ onClickItem?: ((item: IWorkType) => void) | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default WorkTypeList;
@@ -1,10 +1,10 @@
1
1
  import { IWorkType } from "../../../../../data/worktype";
2
2
  import React, { CSSProperties } from "react";
3
3
  declare const WorkTypeSelect: (props: {
4
- onChange?: (id: string, workType: IWorkType) => void;
5
- open?: boolean;
6
- autoFocus?: boolean;
7
- onBlur?: () => void;
8
- style?: CSSProperties;
4
+ onChange?: ((id: string, workType: IWorkType) => void) | undefined;
5
+ open?: boolean | undefined;
6
+ autoFocus?: boolean | undefined;
7
+ onBlur?: (() => void) | undefined;
8
+ style?: React.CSSProperties | undefined;
9
9
  }) => React.JSX.Element;
10
10
  export default WorkTypeSelect;
@@ -4,7 +4,7 @@ import "./index.less";
4
4
  declare const WorkTypeStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
- className?: string;
7
+ className?: string | undefined;
8
8
  onChange: (status: WorkTypeStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default WorkTypeStatusLabel;
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import { IWorkspace } from "../../../../data/workspace";
3
3
  import "./index.less";
4
4
  declare const MyWorkspaces: (props: {
5
- parentId?: string;
5
+ parentId?: string | undefined;
6
6
  /** The current active item */
7
- active?: string;
7
+ active?: string | undefined;
8
8
  /** Call back when an item has been clicked on the list. */
9
- onClickItem?: (item: IWorkspace) => void;
9
+ onClickItem?: ((item: IWorkspace) => void) | undefined;
10
10
  }) => React.JSX.Element;
11
11
  export default MyWorkspaces;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const NewWorkspaceDialog: (props: {
3
- parentId?: string;
4
- className?: string;
5
- showView?: boolean;
6
- onSubmitSave?: (params?: any) => void;
7
- onCancel?: () => void;
3
+ parentId?: string | undefined;
4
+ className?: string | undefined;
5
+ showView?: boolean | undefined;
6
+ onSubmitSave?: ((params?: any) => void) | undefined;
7
+ onCancel?: (() => void) | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default NewWorkspaceDialog;
@@ -3,13 +3,13 @@ import { IWorkspace } from "../../../../data/workspace";
3
3
  /** A workspace list view shows workspace in card style. */
4
4
  declare const WorkspaceIconList: (props: {
5
5
  /** filter roles */
6
- roles?: boolean;
6
+ roles?: boolean | undefined;
7
7
  /** filter WorkspaceStatus */
8
- WorkspaceStatus?: string;
8
+ WorkspaceStatus?: string | undefined;
9
9
  /** 显示add card */
10
- addCard?: boolean;
10
+ addCard?: boolean | undefined;
11
11
  /** item onclick */
12
- onItemClick?: (item: IWorkspace) => void;
13
- className?: string;
12
+ onItemClick?: ((item: IWorkspace) => void) | undefined;
13
+ className?: string | undefined;
14
14
  }) => React.JSX.Element;
15
15
  export default WorkspaceIconList;
@@ -6,7 +6,7 @@ import { IWorkspace } from "../../../../data/workspace";
6
6
  */
7
7
  declare const WorkspaceIconList: (props: {
8
8
  /** item onclick */
9
- onItemClick?: (item: IWorkspace) => void;
10
- className?: string;
9
+ onItemClick?: ((item: IWorkspace) => void) | undefined;
10
+ className?: string | undefined;
11
11
  }) => React.JSX.Element;
12
12
  export default WorkspaceIconList;
@@ -1,10 +1,10 @@
1
1
  import "./index.less";
2
2
  import React from "react";
3
3
  declare const ColorSelect: (props: {
4
- color?: string;
5
- onChange?: (option: {
4
+ color?: string | undefined;
5
+ onChange?: ((option: {
6
6
  name: string;
7
7
  color: string;
8
- }) => void;
8
+ }) => void) | undefined;
9
9
  }) => React.JSX.Element;
10
10
  export default ColorSelect;
@@ -4,7 +4,7 @@ import React from "react";
4
4
  declare const NewNoteDialog: (props: {
5
5
  parentId: string;
6
6
  visible: boolean;
7
- onCancel?: () => void;
8
- onOk?: (t: IDocument) => void;
7
+ onCancel?: (() => void) | undefined;
8
+ onOk?: ((t: IDocument) => void) | undefined;
9
9
  }) => React.JSX.Element;
10
10
  export default NewNoteDialog;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.107",
3
+ "version": "6.0.108",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",