@voplus/morpho-workspace 6.0.23 → 6.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,9 +13,12 @@ const WorkCashReportTemplate = (props) => {
13
13
  chart.scale("total", {
14
14
  nice: true,
15
15
  });
16
+ chart.axis("total", {
17
+ title: { text: "Monthly Works" },
18
+ });
16
19
  chart.interval().position("date*total");
17
20
  chart.interaction("active-region");
18
- chart.interaction('element-active');
21
+ chart.interaction("element-active");
19
22
  chart.render();
20
23
  };
21
24
  return observe(() => React.createElement("div", { id: "work-report-container" }));
@@ -1 +1 @@
1
- {"version":3,"file":"WorkCashReportTemplate.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/WorkCashReportTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,sBAAsB,GAAG,CAAC,KAAkD,EAAE,EAAE;IACrF,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAE5B,MAAM,IAAI,GAAG,GAAG,EAAE;QACjB,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;YACvB,SAAS,EAAE,uBAAuB;YAClC,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvB,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE;YACpB,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAExC,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACnC,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAEpC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,6BAAK,EAAE,EAAC,uBAAuB,GAAG,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"WorkCashReportTemplate.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/WorkCashReportTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,sBAAsB,GAAG,CAAC,KAAkD,EAAE,EAAE;IACrF,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAE5B,MAAM,IAAI,GAAG,GAAG,EAAE;QACjB,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;YACvB,SAAS,EAAE,uBAAuB;YAClC,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvB,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE;YACpB,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE;YACnB,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;SAChC,CAAC,CAAC;QAEH,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAExC,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACnC,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAEpC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,6BAAK,EAAE,EAAC,uBAAuB,GAAG,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  declare const WorkCashReport: (props: {
3
3
  id: string;
4
+ onFilterOutPut?: ((filterStatus: string[]) => void) | undefined;
4
5
  }) => React.JSX.Element;
5
6
  export default WorkCashReport;
@@ -5,6 +5,7 @@ import { useWorkStore } from "../../../../data/work";
5
5
  import { State } from "./state";
6
6
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
7
  import { faBarsFilter } from "@fortawesome/pro-light-svg-icons";
8
+ import { runInAction } from "mobx";
8
9
  import { Skeleton } from "antd";
9
10
  import { CloseOutlined } from "@ant-design/icons";
10
11
  import { WorkStatusFilter } from "../../../../controls/filters";
@@ -16,6 +17,14 @@ const WorkCashReport = (props) => {
16
17
  const store = useWorkStore();
17
18
  const [state] = useState(new State(props.id, store));
18
19
  useEffect(() => state.onLoad(), [props.id]);
20
+ const onResetFilter = (item) => runInAction(() => { var _a; return onFilter((_a = state.filterV1Val) === null || _a === void 0 ? void 0 : _a.filter((v) => v !== item)); });
21
+ const onFilter = (filterV1Val) => runInAction(() => {
22
+ var _a;
23
+ state.filterV1Val = filterV1Val;
24
+ state.filter[0].v1 = JSON.stringify(filterV1Val);
25
+ state.onLoad(state.filter);
26
+ (_a = props.onFilterOutPut) === null || _a === void 0 ? void 0 : _a.call(props, state.filterV1Val);
27
+ });
19
28
  return observe(() => {
20
29
  var _a;
21
30
  return (React.createElement(ListDataContext.Provider, { value: list },
@@ -24,17 +33,17 @@ const WorkCashReport = (props) => {
24
33
  React.createElement("div", { className: "work-report-header" },
25
34
  React.createElement("div", { className: "selected-filter" }, (_a = state.filterV1Val) === null || _a === void 0 ? void 0 : _a.map((type) => (React.createElement("div", { className: "selected-filter-item" },
26
35
  React.createElement("span", { className: "prosemirror-mention-node" }, type),
27
- React.createElement(CloseOutlined, { className: "selected-filter-item-del", onClick: () => state.onResetFilter(type) }))))),
36
+ React.createElement(CloseOutlined, { className: "selected-filter-item-del", onClick: () => onResetFilter(type) }))))),
28
37
  React.createElement("div", { className: "filter-component" },
29
38
  React.createElement(FilterView, { className: "ml-2.5", icon: React.createElement(FAIcon, { icon: faBarsFilter, size: "lg" }), columns: [
30
39
  React.createElement(WorkStatusFilter, { key: "WorkStatusFilter", defaultValue: state.filterV1Val }),
31
40
  ], onFilter: (c) => {
32
41
  var _a, _b;
33
42
  c.filter();
34
- state.onFilter((state.filterV1Val = ((_a = c === null || c === void 0 ? void 0 : c.options) === null || _a === void 0 ? void 0 : _a.Filters)
43
+ onFilter((state.filterV1Val = ((_a = c === null || c === void 0 ? void 0 : c.options) === null || _a === void 0 ? void 0 : _a.Filters)
35
44
  ? JSON.parse((_b = c === null || c === void 0 ? void 0 : c.options) === null || _b === void 0 ? void 0 : _b.Filters[0].v1)
36
45
  : []));
37
- }, onReset: () => state.onFilter([]) })))),
46
+ }, onReset: () => onFilter([]) })))),
38
47
  React.createElement("div", { className: "work-report-content" },
39
48
  React.createElement(Skeleton, { loading: state.loading, active: true },
40
49
  React.createElement(WorkCashReportTemplate, { data: state.dataList }))))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/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,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AA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AAK,CAAC,aAAa,CAAC,IAAI,CAAC,GACvC,CACG,CACN,CAAC,CACG;wBACN,6BAAK,SAAS,EAAC,kBAAkB;4BAChC,oBAAC,UAAU,IACV,SAAS,EAAC,QAAQ,EAClB,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAC,IAAI,GAAG,EAC9C,OAAO,EAAE;oCACR,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,EAAC,YAAY,EAAE,KAAK,CAAC,WAAW,GAAI;iCAC5E,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;;oCACf,CAAC,CAAC,MAAM,EAAE,CAAC;oCACX,KAAK,CAAC,QAAQ,CACb,CAAC,KAAK,CAAC,WAAW,GAAG,CAAA,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,0CAAE,OAAO;wCACvC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,0CAAE,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC;wCACvC,CAAC,CAAC,EAAE,CAAC,CACN,CAAC;gCACH,CAAC,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,GAChC,CACG,CACD,CACyB;gBAEhC,6BAAK,SAAS,EAAC,qBAAqB;oBACnC,oBAAC,QAAQ,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM;wBACvC,oBAAC,sBAAsB,IAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAI,CACtC,CACN,CACD,CACoB,CAC3B,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,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,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,EAAC,YAAY,EAAE,KAAK,CAAC,WAAW,GAAI;iCAC5E,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;;oCACf,CAAC,CAAC,MAAM,EAAE,CAAC;oCACX,QAAQ,CACP,CAAC,KAAK,CAAC,WAAW,GAAG,CAAA,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,0CAAE,OAAO;wCACvC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,0CAAE,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC;wCACvC,CAAC,CAAC,EAAE,CAAC,CACN,CAAC;gCACH,CAAC,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,GAC1B,CACG,CACD,CACyB;gBAEhC,6BAAK,SAAS,EAAC,qBAAqB;oBACnC,oBAAC,QAAQ,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM;wBACvC,oBAAC,sBAAsB,IAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAI,CACtC,CACN,CACD,CACoB,CAC3B,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -13,6 +13,4 @@ export declare class State {
13
13
  constructor(worktypeId: string, store: WorkStore);
14
14
  onLoad(filterOption?: FilterOption[]): void;
15
15
  loadCashList(workReport: IWorkReport): void;
16
- onResetFilter(item: string): void;
17
- onFilter(filterV1Val: string[]): void;
18
16
  }
@@ -25,7 +25,7 @@ export class State {
25
25
  enumerable: true,
26
26
  configurable: true,
27
27
  writable: true,
28
- value: ["Draft", "New", "Rejected", "Active", "Closed", "Done"]
28
+ value: ["Active"]
29
29
  });
30
30
  Object.defineProperty(this, "filter", {
31
31
  enumerable: true,
@@ -66,15 +66,6 @@ export class State {
66
66
  total: i.total,
67
67
  }));
68
68
  }
69
- onResetFilter(item) {
70
- var _a;
71
- this.onFilter((_a = this.filterV1Val) === null || _a === void 0 ? void 0 : _a.filter((v) => v !== item));
72
- }
73
- onFilter(filterV1Val) {
74
- this.filterV1Val = filterV1Val;
75
- this.filter[0].v1 = JSON.stringify(filterV1Val);
76
- this.onLoad(this.filter);
77
- }
78
69
  }
79
70
  __decorate([
80
71
  observable
@@ -94,10 +85,4 @@ __decorate([
94
85
  __decorate([
95
86
  action
96
87
  ], State.prototype, "loadCashList", null);
97
- __decorate([
98
- action
99
- ], State.prototype, "onResetFilter", null);
100
- __decorate([
101
- action
102
- ], State.prototype, "onFilter", null);
103
88
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,KAAK;IAkBjB,YAAoB,UAAkB,EAAU,KAAgB;QAApD;;;;mBAAQ,UAAU;WAAQ;QAAE;;;;mBAAQ,KAAK;WAAW;QAjBpD;;;;mBAAU,KAAK;WAAC;QAEhB;;;;mBAAwB,CAAC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC;WAAC;QAEjF;;;;mBAAyB;gBACpC;oBACC,CAAC,EAAE,YAAY;oBACf,CAAC,EAAE,UAAU;oBACb,CAAC,EAAE,KAAK;oBACR,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;iBACpC;gBACD,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE;aACxD;WAAC;QAEF,WAAW;QACC;;;;mBAA8C,EAAE;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,MAAM,EAAE,CAAC;aACxD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;aACrC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,qBAAqB;IACN,YAAY,CAAC,UAAuB;;QAClD,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QAEnB,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;YACtD,KAAK,EAAE,CAAC,CAAC,KAAK;SACd,CAAC,CACF,CAAC;IACH,CAAC;CACD;AAzCY;IAAX,UAAU;sCAAiB;AAEhB;IAAX,UAAU;0CAAoC;AAEnC;IAAX,UAAU;qCAQT;AAGU;IAAX,UAAU;uCAAkD;AAM9C;IAAd,MAAM;mCAON;AAGc;IAAd,MAAM;yCASN"}
@@ -2,8 +2,12 @@ import React from "react";
2
2
  import { IWork } from "../../../../data/work";
3
3
  import "./index.less";
4
4
  export type WorkListProps = {
5
+ /** 是否显示 filter icon */
6
+ filterVisible?: boolean;
5
7
  /** status of works shown on the list. */
6
8
  status?: string;
9
+ /** filter work status */
10
+ statusArr?: string[];
7
11
  /** types id of works shown on the list. */
8
12
  typesId?: string;
9
13
  /** dueDate of works shown on the list. */
@@ -40,6 +44,7 @@ declare const WorkList: {
40
44
  (props: WorkListProps): React.JSX.Element;
41
45
  defaultProps: {
42
46
  asideable: boolean;
47
+ filterVisible: boolean;
43
48
  };
44
49
  };
45
50
  export default WorkList;
@@ -14,18 +14,28 @@ import moment from "moment";
14
14
  import S from "string";
15
15
  import "./index.less";
16
16
  const WorkList = (props) => {
17
- const { dueDate, typesId, workspaceId, workId, contactId, contact, addAble, asideable, viewTitle, total, } = props;
17
+ const { dueDate, typesId, roles, status, statusArr, workspaceId, workId, contactId, contact, addAble, asideable, viewTitle, total, } = props;
18
18
  const [activeId, setActiveId] = useState("");
19
19
  const [workTotal, setWorkTotal] = useState(0);
20
20
  const [workTypeList, setWorkTypeList] = useState([]);
21
21
  const documentStore = useDocumentStore();
22
22
  const workType = useWorkType(typesId);
23
+ let listViewHeaderProps = {};
24
+ if (props.filterVisible)
25
+ listViewHeaderProps = {
26
+ filterViewProps: {
27
+ columns: [
28
+ status && workspaceId ? (React.createElement(WorkTypesFilter, { key: "WorkTypesFilter", workTypeList: workTypeList })) : (React.createElement(WorkStatusFilter, { key: "WorkStatusFilter", defaultValue: defaultValue() })),
29
+ ],
30
+ onFilter,
31
+ },
32
+ };
23
33
  const list = useCreateListDataState({
24
34
  filterDefaults: {
25
35
  includes: "tags",
26
36
  filters: filters(),
27
37
  },
28
- }, [props.status, dueDate, typesId]);
38
+ }, [status, dueDate, typesId, statusArr]);
29
39
  /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
30
40
  useAutoUpdateListData(list, (d) => d.type === "Work");
31
41
  useRenderOnChange(() => list.filters.options);
@@ -50,12 +60,7 @@ const WorkList = (props) => {
50
60
  sortable: false,
51
61
  quickSearch: true,
52
62
  addAble: addAble || (dueDate === "requested" ? true : false),
53
- filterViewProps: {
54
- columns: [
55
- props.status && workspaceId ? (React.createElement(WorkTypesFilter, { key: "WorkTypesFilter", workTypeList: workTypeList })) : (React.createElement(WorkStatusFilter, { key: "WorkStatusFilter", defaultValue: defaultValue() })),
56
- ],
57
- onFilter,
58
- },
63
+ ...listViewHeaderProps,
59
64
  }, 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: () => {
60
65
  var _a;
61
66
  setActiveId(item.id);
@@ -70,7 +75,7 @@ const WorkList = (props) => {
70
75
  l: "And",
71
76
  v1: JSON.stringify(["Owner"]),
72
77
  };
73
- const draftFilter = { c: "WorkStatus", l: "And", o: "=", v1: "Active" };
78
+ const defaultFilter = { c: "WorkStatus", l: "And", o: "=", v1: "Active" };
74
79
  const dueFilter = {
75
80
  c: "DueDate",
76
81
  o: "<",
@@ -91,19 +96,27 @@ const WorkList = (props) => {
91
96
  v1: JSON.stringify(["Draft", "New", "Active"]),
92
97
  },
93
98
  ];
94
- if (props.roles) {
99
+ if (roles) {
95
100
  filter.push(rolesFilter);
96
101
  }
97
- if (props.status) {
102
+ if (status) {
98
103
  filter.push({
99
104
  c: "WorkStatus",
100
105
  o: "=",
101
106
  l: "And",
102
- v1: S(props.status).capitalize().toString(),
107
+ v1: S(status).capitalize().toString(),
103
108
  });
104
109
  }
105
- else {
106
- filter.push(draftFilter);
110
+ else if (!(statusArr === null || statusArr === void 0 ? void 0 : statusArr.length)) {
111
+ filter.push(defaultFilter);
112
+ }
113
+ if (statusArr === null || statusArr === void 0 ? void 0 : statusArr.length) {
114
+ filter.push({
115
+ c: "WorkStatus",
116
+ o: "contains",
117
+ l: "And",
118
+ v1: JSON.stringify(statusArr),
119
+ });
107
120
  }
108
121
  if (typesId) {
109
122
  filter.push({
@@ -188,6 +201,7 @@ const WorkList = (props) => {
188
201
  };
189
202
  WorkList.defaultProps = {
190
203
  asideable: true,
204
+ filterVisible: true,
191
205
  };
192
206
  export default WorkList;
193
207
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAS,iBAAiB,EAAE,MAAM,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AAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACxC,IAAI,OAAO;YAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC/B,OAAO,EAAE,CAAC;IACX,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,QAAQ,CAAC,YAAY,GAAG;IACvB,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;CACnB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -14,6 +14,7 @@ const Dashboard = (props) => {
14
14
  const params = useParams();
15
15
  const layout = useLayout();
16
16
  const [dashboardHeight, setDashboardHeight] = useState();
17
+ const [statusArr, setStatusArr] = useState([]);
17
18
  useLayoutEffect(() => {
18
19
  var _a;
19
20
  setDashboardHeight((_a = ref.current) === null || _a === void 0 ? void 0 : _a.offsetHeight);
@@ -21,23 +22,15 @@ const Dashboard = (props) => {
21
22
  return observe(() => (React.createElement("div", { className: styles["worktype-works-dashboard"], ref: ref },
22
23
  React.createElement(RelatedDocument, null,
23
24
  React.createElement(Card, { className: "work-cash-report" },
24
- React.createElement(WorkCashReport, { id: params.typesId })),
25
+ React.createElement(WorkCashReport, { id: params.typesId, onFilterOutPut: (statusArr) => setStatusArr(statusArr) })),
25
26
  React.createElement("div", { className: "work-list-card" },
26
- React.createElement(WorkListCard, { style: { height: `${dashboardHeight - 463}px` }, status: params.status, active: params.active, typesId: params.typesId, dueDate: params.dueDate, workspaceId: params.id, onClickItem: (item) => {
27
+ React.createElement(WorkListCard, { style: { height: `${dashboardHeight - 463}px` }, filterVisible: false, statusArr: statusArr, active: params.active, typesId: params.typesId, workspaceId: params.id, onClickItem: (item) => {
27
28
  layout.history.replace(generatePath(props.path, {
28
29
  id: params.id,
29
- status: params.status || "",
30
30
  typesId: params.typesId || "",
31
- dueDate: params.dueDate || "",
32
31
  active: item.id,
33
32
  }));
34
- }, onTotal: (total) => {
35
- runInAction(() => {
36
- props.state.workStatusTotals[params.status] = total;
37
- props.state.workTypesTotals[params.typesId] = total;
38
- props.state.workTotals[params.dueDate] = total;
39
- });
40
- } }))))));
33
+ }, onTotal: (total) => runInAction(() => (props.state.workTypesTotals[params.typesId] = total)) }))))));
41
34
  };
42
35
  export default Dashboard;
43
36
  //# sourceMappingURL=WorkTypeWorksDashBoard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkTypeWorksDashBoard.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/WorkTypeWorksDashBoard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,YAAY,MAAM,uCAAuC,CAAC;AACjE,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,SAAS,GAAG,CAAC,KAAqC,EAAE,EAAE;IAC3D,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,EAAU,CAAC;IAEjE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CAAC,GAEzE,CACG,CACW,CACb,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.23",
3
+ "version": "6.0.24",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",