@voplus/morpho-workspace 6.0.102 → 6.0.104

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) 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/meeting/components/MeetingPropertiesView/index.js +10 -10
  20. package/es/modules/meeting/components/MeetingPropertiesView/index.js.map +1 -1
  21. package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +11 -8
  22. package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js.map +1 -1
  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/NotificationList/index.less +6 -1
  26. package/es/modules/notification/components/NotificationListHeader/index.d.ts +1 -1
  27. package/es/modules/notification/components/NotificationListHeader/index.js +2 -4
  28. package/es/modules/notification/components/NotificationListHeader/index.js.map +1 -1
  29. package/es/modules/notification/controls/NotificationMenu/item/Send.d.ts +3 -3
  30. package/es/modules/pin/components/MyPinned/index.d.ts +2 -2
  31. package/es/modules/pin/components/PinnedCardList/index.d.ts +3 -3
  32. package/es/modules/tasks/components/AddTaskDropdown/index.d.ts +4 -4
  33. package/es/modules/tasks/components/DelegateDialog/index.d.ts +2 -2
  34. package/es/modules/tasks/components/NewTaskForm/index.d.ts +11 -11
  35. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.d.ts +9 -9
  36. package/es/modules/tasks/components/TaskCheckItem/index.d.ts +2 -2
  37. package/es/modules/tasks/components/TaskCheckNewForm/index.d.ts +4 -4
  38. package/es/modules/tasks/components/TaskPropertiesView/index.js +9 -7
  39. package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
  40. package/es/modules/tasks/controls/TaskStatusLabel/index.d.ts +1 -1
  41. package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +3 -3
  42. package/es/modules/work/components/NewWorkForm/index.d.ts +8 -8
  43. package/es/modules/work/components/RejectWorkDialog/index.d.ts +4 -4
  44. package/es/modules/work/components/WorkCashReport/index.d.ts +1 -1
  45. package/es/modules/work/components/WorkErrorList/index.d.ts +3 -3
  46. package/es/modules/work/components/WorkList/index.d.ts +0 -2
  47. package/es/modules/work/components/WorkList/index.js +2 -2
  48. package/es/modules/work/components/WorkList/index.js.map +1 -1
  49. package/es/modules/work/components/WorkList2/index.d.ts +45 -0
  50. package/es/modules/work/components/WorkList2/index.js +227 -0
  51. package/es/modules/work/components/WorkList2/index.js.map +1 -0
  52. package/es/modules/work/components/WorkList2/index.less +27 -0
  53. package/es/modules/work/components/WorkListHeader/index.d.ts +17 -0
  54. package/es/modules/work/components/WorkListHeader/index.js +26 -0
  55. package/es/modules/work/components/WorkListHeader/index.js.map +1 -0
  56. package/es/modules/work/components/WorkPropertiesView/index.js +4 -11
  57. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
  58. package/es/modules/work/controls/SeveritySelect/index.d.ts +8 -8
  59. package/es/modules/work/controls/WorkErrorSelect/index.d.ts +8 -8
  60. package/es/modules/work/controls/WorkMenu/item/Accept.d.ts +3 -3
  61. package/es/modules/work/controls/WorkMenu/item/Reject.d.ts +3 -3
  62. package/es/modules/work/controls/WorkMenu/item/Send.d.ts +3 -3
  63. package/es/modules/work/controls/WorkStatusLabel/index.d.ts +1 -1
  64. package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.d.ts +3 -3
  65. package/es/modules/work/work-type/components/ErrorTypeList/Item.d.ts +5 -5
  66. package/es/modules/work/work-type/components/ErrorTypeList/index.d.ts +6 -6
  67. package/es/modules/work/work-type/components/NewTypeForm/index.d.ts +4 -4
  68. package/es/modules/work/work-type/components/WorkTypeIconList/index.d.ts +1 -1
  69. package/es/modules/work/work-type/components/WorkTypeList/index.d.ts +2 -2
  70. package/es/modules/work/work-type/components/WorkTypeSelect/index.d.ts +5 -5
  71. package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.d.ts +1 -1
  72. package/es/modules/workspace/components/MyWorkspaces/index.d.ts +3 -3
  73. package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +5 -5
  74. package/es/modules/workspace/components/WorkspaceIconList/index.d.ts +5 -5
  75. package/es/modules/workspace/components/WorkspaceIconList2/index.d.ts +2 -2
  76. package/es/obsolete/space/components/Notes/ColorSelect/index.d.ts +3 -3
  77. package/es/obsolete/space/components/Notes/NewNoteDialog/index.d.ts +2 -2
  78. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Accept: (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 Accept;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Reject: (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 Reject;
@@ -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;
@@ -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 | undefined;
7
+ className?: string;
8
8
  onChange: (status: WorkStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default WorkStatusLabel;
@@ -4,8 +4,8 @@ declare const ChangeWorkDefaultFolderDialog: (props: {
4
4
  defaultDocument?: {
5
5
  id: string;
6
6
  name: string;
7
- } | undefined;
8
- onCancel?: (() => void) | undefined;
9
- onSubmit?: (() => void) | undefined;
7
+ };
8
+ onCancel?: () => void;
9
+ onSubmit?: () => void;
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 | undefined;
6
+ index?: number;
7
7
  /** item of check */
8
8
  value: ListItem;
9
9
  /** 现在是不是sort mode */
10
- sortMode?: boolean | undefined;
10
+ sortMode?: boolean;
11
11
  /** DragSource of sort */
12
- connectDragSource?: ConnectDragSource | undefined;
12
+ connectDragSource?: ConnectDragSource;
13
13
  /** edit item 的call back */
14
- onChange?: ((item: ListItem) => void) | undefined;
14
+ onChange?: (item: ListItem) => void;
15
15
  /** delete item 的call back */
16
- onDelete?: ((item: ListItem) => void) | undefined;
16
+ onDelete?: (item: ListItem) => void;
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) | undefined;
7
+ moveAfter?: (id: string | number, afterId: string | number, list?: any[]) => void;
8
8
  /** 新增item的call back */
9
- onCreate?: ((item: string) => void) | undefined;
9
+ onCreate?: (item: string) => void;
10
10
  /** item 內容變化的 call back */
11
- onChange?: ((item: ListItem) => void) | undefined;
11
+ onChange?: (item: ListItem) => void;
12
12
  /** delete item 的call back */
13
- onDelete?: ((item: ListItem) => void) | undefined;
13
+ onDelete?: (item: ListItem) => void;
14
14
  /** 现在是不是sort mode */
15
- sortMode?: boolean | undefined;
15
+ sortMode?: boolean;
16
16
  /** header title */
17
- viewTitle?: string | undefined;
17
+ viewTitle?: string;
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 | undefined;
6
- block?: boolean | undefined;
7
- onSave?: ((params?: any) => void) | undefined;
8
- onCancel?: (() => void) | undefined;
5
+ className?: string;
6
+ block?: boolean;
7
+ onSave?: (params?: any) => void;
8
+ onCancel?: () => void;
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) | undefined;
7
+ onItemClick?: (item: IWorkType) => void;
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 | undefined;
5
+ active?: string;
6
6
  /** item onclick */
7
- onClickItem?: ((item: IWorkType) => void) | undefined;
7
+ onClickItem?: (item: IWorkType) => void;
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) | undefined;
5
- open?: boolean | undefined;
6
- autoFocus?: boolean | undefined;
7
- onBlur?: (() => void) | undefined;
8
- style?: React.CSSProperties | undefined;
4
+ onChange?: (id: string, workType: IWorkType) => void;
5
+ open?: boolean;
6
+ autoFocus?: boolean;
7
+ onBlur?: () => void;
8
+ style?: CSSProperties;
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 | undefined;
7
+ className?: string;
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 | undefined;
5
+ parentId?: string;
6
6
  /** The current active item */
7
- active?: string | undefined;
7
+ active?: string;
8
8
  /** Call back when an item has been clicked on the list. */
9
- onClickItem?: ((item: IWorkspace) => void) | undefined;
9
+ onClickItem?: (item: IWorkspace) => void;
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 | undefined;
4
- className?: string | undefined;
5
- showView?: boolean | undefined;
6
- onSubmitSave?: ((params?: any) => void) | undefined;
7
- onCancel?: (() => void) | undefined;
3
+ parentId?: string;
4
+ className?: string;
5
+ showView?: boolean;
6
+ onSubmitSave?: (params?: any) => void;
7
+ onCancel?: () => void;
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 | undefined;
6
+ roles?: boolean;
7
7
  /** filter WorkspaceStatus */
8
- WorkspaceStatus?: string | undefined;
8
+ WorkspaceStatus?: string;
9
9
  /** 显示add card */
10
- addCard?: boolean | undefined;
10
+ addCard?: boolean;
11
11
  /** item onclick */
12
- onItemClick?: ((item: IWorkspace) => void) | undefined;
13
- className?: string | undefined;
12
+ onItemClick?: (item: IWorkspace) => void;
13
+ className?: string;
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) | undefined;
10
- className?: string | undefined;
9
+ onItemClick?: (item: IWorkspace) => void;
10
+ className?: string;
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 | undefined;
5
- onChange?: ((option: {
4
+ color?: string;
5
+ onChange?: (option: {
6
6
  name: string;
7
7
  color: string;
8
- }) => void) | undefined;
8
+ }) => void;
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) | undefined;
8
- onOk?: ((t: IDocument) => void) | undefined;
7
+ onCancel?: () => void;
8
+ onOk?: (t: IDocument) => void;
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.102",
3
+ "version": "6.0.104",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",