@voplus/morpho-workspace 6.0.142 → 6.0.143

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,5 @@ import React from "react";
2
2
  declare const WorkScheduleItem: (props: {
3
3
  id: string;
4
4
  avatar?: boolean;
5
- quickView?: boolean;
6
5
  }) => React.JSX.Element;
7
6
  export default WorkScheduleItem;
@@ -12,17 +12,18 @@ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
12
12
  import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
13
13
  import WorkScheduleMenu from "../../controls/WorkScheduleMenu";
14
14
  import WorkScheduleQuickViewDialog from "../WorkScheduleQuickViewDialog";
15
+ import WorkSchedulePropertiesView from "../WorkSchedulePropertiesView";
16
+ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
15
17
  import classnames from "classnames";
16
18
  import styles from "./index.less";
17
19
  const WorkScheduleItem = (props) => {
18
- const { id, avatar, quickView } = props;
20
+ const { id, avatar } = props;
19
21
  const workSchedule = useWorkSchedule(id);
20
22
  const meta = useMetaStore();
21
23
  const [hover, setHover] = useState(false);
22
- const [visibleQuickView, setVisibleQuickView] = useState(false);
23
24
  return observe(() => {
24
25
  var _a, _b, _c, _d, _e, _f;
25
- return (React.createElement("div", { className: classnames(styles["work-schedule-item"]), onClick: onQuickView, onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false) },
26
+ return (React.createElement(ItemFunction, { className: styles["work-schedule-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(WorkSchedulePropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(WorkScheduleQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
26
27
  React.createElement(Skeleton, { avatar: avatar, paragraph: { rows: 1 }, loading: !workSchedule.loaded },
27
28
  React.createElement(ColumnItem, { className: "workSchedule-column-item" },
28
29
  React.createElement(ColumnItemCol, { span: 10 },
@@ -53,15 +54,8 @@ const WorkScheduleItem = (props) => {
53
54
  } },
54
55
  React.createElement(ToolBar, { id: id, showMenu: false },
55
56
  React.createElement(Open, { size: "middle", url: meta.getRoute(workSchedule) }),
56
- React.createElement(WorkScheduleMenu, { id: id, closeAside: true })))))))),
57
- visibleQuickView && (React.createElement(WorkScheduleQuickViewDialog, { id: id, visible: true, onCancel: onQuickView }))));
57
+ React.createElement(WorkScheduleMenu, { id: id, closeAside: true }))))))))));
58
58
  });
59
- /** Quick View */
60
- function onQuickView() {
61
- if (!quickView)
62
- return;
63
- setVisibleQuickView(!visibleQuickView);
64
- }
65
59
  };
66
60
  export default WorkScheduleItem;
67
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAA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E,YAAY,CAAC,QAAQ,GAAI,CACzC,EAEP,QAAQ,EACP,6BAAK,SAAS,EAAC,6BAA6B,IAAE,YAAY,CAAC,MAAM,CAAO,GAExE;4BACF,6BACC,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EACjE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oCACd,CAAC,CAAC,eAAe,EAAE,CAAC;oCACpB,QAAQ,CAAC,KAAK,CAAC,CAAC;gCACjB,CAAC;gCAED,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;oCAC/B,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAmB,CAAC,GAAI;oCAC/D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,CACL,CACS,CACd,CACH,CACW,CACH,CACG,CACf,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -10,12 +10,14 @@ export type WorkScheduleListProps = {
10
10
  };
11
11
  /** title */
12
12
  viewTitle?: React.ReactNode;
13
- /** 是否允在 listView 内部打开 aside */
14
- asideable?: boolean;
13
+ /** 是否允 new */
14
+ addAble?: boolean;
15
15
  /** Call back when received total number of workSchedule. */
16
16
  onTotal?: (total: number) => void;
17
17
  /** Call back when an item has been clicked on the list. */
18
18
  onClickItem?: (item: IWorkSchedule) => void;
19
+ /** 如果card 头部样式不一样 */
20
+ type?: "card";
19
21
  };
20
22
  declare const WorkScheduleList: {
21
23
  (props: WorkScheduleListProps): React.JSX.Element;
@@ -9,19 +9,24 @@ import WorkScheduleFilter from "../../controls/WorkScheduleFilter";
9
9
  import WorkTypesFilter from "../../../../../controls/filters/WorkTypesFilter";
10
10
  import NewWorkScheduleForm from "../NewWorkScheduleForm";
11
11
  import NewWorkScheduleFormDialog from "../NewWorkScheduleForm/NewWorkScheduleFormDialog";
12
- import WorkSchedulePropertiesView from "../WorkSchedulePropertiesView";
12
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
13
+ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
13
14
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
14
15
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
16
+ import { faSuitcase } from "@fortawesome/pro-solid-svg-icons";
17
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
15
18
  import WorkScheduleItem from "../WorkScheduleItem";
16
19
  import quarterOfYear from "dayjs/plugin/quarterOfYear";
20
+ import classnames from "classnames";
17
21
  import dayjs from "dayjs";
18
22
  import styles from "./index.less";
19
23
  dayjs.extend(quarterOfYear);
20
24
  const WorkScheduleList = (props) => {
21
- const { contact, viewTitle, asideable, scheduleDate } = props;
25
+ const { contact, viewTitle, scheduleDate } = props;
22
26
  const [activeId, setActiveId] = useState("");
23
27
  const [addAble, setAddAble] = useState(false);
24
28
  const view = useViewContext();
29
+ const [asideContext] = useState(AsideContent.createContext());
25
30
  const list = useCreateListDataState({
26
31
  filterDefaults: {
27
32
  filters: filters(),
@@ -47,26 +52,32 @@ const WorkScheduleList = (props) => {
47
52
  ...list.filters.options,
48
53
  });
49
54
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
50
- React.createElement("div", { className: styles["work-schedule-list"] },
51
- React.createElement(ListView, { headerProps: {
52
- viewTitle: viewTitle,
53
- sortable: false,
54
- quickSearch: true,
55
- selectedFilterKey: ["WorkTypes"],
56
- onAdd: () => (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" && setAddAble(!addAble),
57
- filterViewProps: {
55
+ React.createElement(AsideContent, { context: asideContext },
56
+ React.createElement("div", { className: styles["work-schedule-list"] },
57
+ React.createElement(ListHeaderTool, { className: classnames({ "page-card": props.type === "card" }), addAble: props.addAble, sortable: false, selectedFilterKey: ["WorkTypes"], filterViewProps: {
58
58
  columns: [
59
59
  React.createElement(WorkScheduleFilter, { key: "WorkScheduleFilter", defaultValue: "Empty" }),
60
60
  React.createElement(WorkTypesFilter, { key: "WorkTypesFilter" }),
61
61
  ],
62
- onFilter,
63
- },
64
- }, asideable: asideable, className: "work-schedule-list-content", formView: (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && React.createElement(NewWorkScheduleForm, { contact: contact }), renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
65
- var _a;
66
- setActiveId(item.id);
67
- (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
68
- } },
69
- React.createElement(WorkScheduleItem, { id: item.id, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" }))), propertiesView: (id) => (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && React.createElement(WorkSchedulePropertiesView, { id: id }) })),
62
+ }, searchOptions: { placeholder: "Search in work schedules" }, onAdd: () => {
63
+ if ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView") {
64
+ setAddAble(!addAble);
65
+ }
66
+ else {
67
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewWorkScheduleForm, { contact: contact }), { span: 12 });
68
+ }
69
+ }, preExtra: () => (React.createElement("div", { className: "page-head-content" }, props.type === "card" ? (React.createElement("div", { className: "page-head-name" }, viewTitle)) : (React.createElement(React.Fragment, null,
70
+ React.createElement("div", { className: "page-head-avatar" },
71
+ React.createElement(FAIcon, { icon: faSuitcase })),
72
+ React.createElement("div", { className: "page-head-info" },
73
+ React.createElement("div", { className: "page-head-name" }, viewTitle),
74
+ React.createElement("div", { className: "description" }, "Your tasks: prioritize and complete your work")))))) }),
75
+ React.createElement(ListView, { headerProps: { visible: false }, asideable: false, className: "work-schedule-list-content", renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
76
+ var _a;
77
+ setActiveId(item.id);
78
+ (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
79
+ } },
80
+ React.createElement(WorkScheduleItem, { id: item.id }))) }))),
70
81
  addAble && (React.createElement(NewWorkScheduleFormDialog, { contact: contact, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) })))));
71
82
  function filters() {
72
83
  let filter = [];
@@ -133,13 +144,9 @@ const WorkScheduleList = (props) => {
133
144
  }
134
145
  return filter;
135
146
  }
136
- function onFilter(context) {
137
- context.paging.Page = 1;
138
- context.filter();
139
- }
140
147
  };
141
148
  WorkScheduleList.defaultProps = {
142
- viewTitle: "Work Schedule",
149
+ viewTitle: "Work Schedules",
143
150
  };
144
151
  export default WorkScheduleList;
145
152
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,eAAe,MAAM,iDAAiD,CAAC;AAC9E,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAA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E,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,QAAQ,YAAY,EAAE,CAAC;YACtB,KAAK,aAAa;gBACjB,MAAM,GAAG,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,CAAC;gBACxC,MAAM;YACP,KAAK,KAAK;gBACT,MAAM,GAAG,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,CAAC;gBAChC,MAAM;YACP,KAAK,MAAM;gBACV,MAAM,GAAG,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,CAAC;gBACjC,MAAM;YACP,KAAK,OAAO;gBACX,MAAM,GAAG,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;gBAClC,MAAM;YACP,KAAK,SAAS;gBACb,MAAM,GAAG,CAAC,aAAa,EAAE,GAAG,MAAM,CAAC,CAAC;gBACpC,MAAM;YACP;gBACC,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAA0B,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2B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AK,KAAK;gBACT,MAAM,GAAG,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,CAAC;gBAChC,MAAM;YACP,KAAK,MAAM;gBACV,MAAM,GAAG,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,CAAC;gBACjC,MAAM;YACP,KAAK,OAAO;gBACX,MAAM,GAAG,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;gBAClC,MAAM;YACP,KAAK,SAAS;gBACb,MAAM,GAAG,CAAC,aAAa,EAAE,GAAG,MAAM,CAAC,CAAC;gBACpC,MAAM;YACP;gBACC,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,SAAS,EAAE,gBAAgB;CAC3B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -8,5 +8,65 @@
8
8
  background-color: #fff;
9
9
  padding: 0 !important;
10
10
  }
11
+ .list-view-header-tool {
12
+ padding: 20px 20px 0 20px;
13
+ border-bottom: 1px solid #e6e6e6;
14
+ &.page-card {
15
+ padding: 14px 20px 0 20px;
16
+ .selected-filter-list {
17
+ margin-top: 14px;
18
+ }
19
+ }
20
+ .selected-filter-list {
21
+ margin-top: 20px;
22
+ }
23
+ .header-tool-space {
24
+ align-items: end;
25
+ justify-content: space-between;
26
+ }
27
+ .page-head-content {
28
+ flex: 1;
29
+ display: flex;
30
+ .ant-avatar {
31
+ width: 50px;
32
+ height: 50px;
33
+ line-height: 50px;
34
+ border-radius: 2px;
35
+ }
36
+ .page-head-avatar {
37
+ width: 50px;
38
+ height: 50px;
39
+ padding: 0 12px;
40
+ line-height: 50px;
41
+ font-size: 22px;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ color: #217eb2;
46
+ background: #e5fbff;
47
+ border-radius: 5px;
48
+ border: 2px solid #217eb2;
49
+ }
50
+ .page-head-info {
51
+ color: #868686;
52
+ margin-left: 15px;
53
+ }
54
+ .page-head-name {
55
+ display: flex;
56
+ align-items: center;
57
+ color: #217eb2;
58
+ font-size: 20px;
59
+ font-weight: bold;
60
+ line-height: 27px;
61
+ .ant-dropdown-trigger {
62
+ color: #cbcbcb;
63
+ font-weight: normal;
64
+ }
65
+ }
66
+ .description {
67
+ font-size: 14px;
68
+ }
69
+ }
70
+ }
11
71
  }
12
72
  }
@@ -4,7 +4,7 @@ import ListCard from "@voplus/morpho-ui/es/controls/ListCard";
4
4
  import WorkScheduleList from "../WorkScheduleList";
5
5
  const WorkScheduleListCard = (props) => {
6
6
  return observe(() => (React.createElement(ListCard, { style: props.style },
7
- React.createElement(WorkScheduleList, { ...props }))));
7
+ React.createElement(WorkScheduleList, { ...props, type: "card" }))));
8
8
  };
9
9
  export default WorkScheduleListCard;
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,gBAA2C,MAAM,qBAAqB,CAAC;AAE9E,MAAM,oBAAoB,GAAG,CAC3B,KAA8D,EAC9D,EAAE;IACF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QAC1B,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CACtB,CACZ,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,gBAA2C,MAAM,qBAAqB,CAAC;AAE9E,MAAM,oBAAoB,GAAG,CAC3B,KAA8D,EAC9D,EAAE;IACF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QAC1B,oBAAC,gBAAgB,OAAK,KAAK,EAAE,IAAI,EAAC,MAAM,GAAG,CAClC,CACZ,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.142",
3
+ "version": "6.0.143",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",