@voplus/morpho-workspace 6.0.69 → 6.0.71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/es/controls/filters/WorkStatusFilter/index.js +2 -8
  2. package/es/controls/filters/WorkStatusFilter/index.js.map +1 -1
  3. package/es/controls/filters/WorkStatusFilter/state.d.ts +10 -2
  4. package/es/controls/filters/WorkStatusFilter/state.js +46 -1
  5. package/es/controls/filters/WorkStatusFilter/state.js.map +1 -1
  6. package/es/data/notification/NotificationStore.d.ts +2 -0
  7. package/es/data/notification/NotificationStore.js +9 -0
  8. package/es/data/notification/NotificationStore.js.map +1 -1
  9. package/es/data/work/WorkStore.d.ts +1 -4
  10. package/es/data/work/WorkStore.js +0 -4
  11. package/es/data/work/WorkStore.js.map +1 -1
  12. package/es/data/work/interfaces.d.ts +0 -11
  13. package/es/data/work-report/WorkReportStore.d.ts +19 -0
  14. package/es/data/work-report/WorkReportStore.js +52 -0
  15. package/es/data/work-report/WorkReportStore.js.map +1 -0
  16. package/es/data/work-report/hooks.d.ts +8 -0
  17. package/es/data/work-report/hooks.js +13 -0
  18. package/es/data/work-report/hooks.js.map +1 -0
  19. package/es/data/work-report/index.d.ts +3 -0
  20. package/es/data/work-report/index.js +4 -0
  21. package/es/data/work-report/index.js.map +1 -0
  22. package/es/data/work-report/interfaces.d.ts +16 -0
  23. package/es/data/work-report/interfaces.js +2 -0
  24. package/es/data/work-report/interfaces.js.map +1 -0
  25. package/es/modules/notification/components/NotificationProperties/index.js +3 -3
  26. package/es/modules/notification/components/NotificationProperties/index.js.map +1 -1
  27. package/es/modules/work/components/WorkCashReport/index.d.ts +1 -0
  28. package/es/modules/work/components/WorkCashReport/index.js +54 -42
  29. package/es/modules/work/components/WorkCashReport/index.js.map +1 -1
  30. package/es/modules/work/components/WorkCashReport/index.less +8 -12
  31. package/es/modules/work/components/WorkCashReport/state.d.ts +3 -8
  32. package/es/modules/work/components/WorkCashReport/state.js +3 -47
  33. package/es/modules/work/components/WorkCashReport/state.js.map +1 -1
  34. package/es/modules/work/components/WorkList/index.js +2 -2
  35. package/es/modules/work/components/WorkList/index.js.map +1 -1
  36. package/es/modules/work/work-schedule/components/WorkScheduleList/index.js +10 -1
  37. package/es/modules/work/work-schedule/components/WorkScheduleList/index.js.map +1 -1
  38. package/es/modules/workspace/pages/WorkspacePage/WorkTypeWorksDashBoard.js +1 -1
  39. package/es/modules/workspace/pages/WorkspacePage/WorkTypeWorksDashBoard.js.map +1 -1
  40. package/package.json +1 -1
  41. package/es/modules/work/work-type/controls/SelectedFilterLabel/index.d.ts +0 -4
  42. package/es/modules/work/work-type/controls/SelectedFilterLabel/index.js +0 -23
  43. package/es/modules/work/work-type/controls/SelectedFilterLabel/index.js.map +0 -1
  44. package/es/modules/work/work-type/controls/SelectedFilterLabel/index.less +0 -31
@@ -1,4 +1,4 @@
1
- import React, { useEffect } from "react";
1
+ import React from "react";
2
2
  import { State } from "./state";
3
3
  import { Badge } from "antd";
4
4
  import { observe } from "@voplus/morpho-ui";
@@ -6,13 +6,7 @@ import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
6
6
  import classnames from "classnames";
7
7
  const WorkStatusFilter = (props) => {
8
8
  const context = useFilterOptionsContext();
9
- const state = context.getFilterState("WorkStatus", () => new State());
10
- // defaultValue 为传入的预选状态
11
- useEffect(() => {
12
- var _a;
13
- state.reset();
14
- (_a = props.defaultValue) === null || _a === void 0 ? void 0 : _a.map((value) => state.onChangeStatus(value));
15
- }, [props.defaultValue]);
9
+ const state = context.getFilterState("WorkStatus", () => new State(props.defaultValue));
16
10
  return observe(() => (React.createElement("div", null,
17
11
  React.createElement("div", { className: "menu-item-title" }, "WorkStatus"),
18
12
  state.menus.map((item, index) => (React.createElement("div", { key: index, className: classnames("filter-menu-item", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/filters/WorkStatusFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OA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AK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI;gBAC3B,IAAI,CAAC,IAAI,CACL;YACN,kCAAO,IAAI,CAAC,MAAM,CAAQ,CACrB,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { FilterOption } from "@voplus/morpho-data";
2
- import { DefaultFilterState } from "@voplus/morpho-ui/es/data";
2
+ import { DefaultFilterState, ISelectedLabel } from "@voplus/morpho-ui/es/data";
3
3
  export declare class State extends DefaultFilterState {
4
+ private defaultFilter?;
4
5
  /** Status of filter */
5
6
  status: Map<string, boolean>;
6
- constructor();
7
+ selectedLabels: {
8
+ name: string;
9
+ v1: string;
10
+ }[];
11
+ constructor(defaultFilter?: string[] | undefined);
12
+ onInit(): void;
7
13
  /** update status */
8
14
  onChangeStatus(value: string): void;
9
15
  get menus(): {
@@ -13,5 +19,7 @@ export declare class State extends DefaultFilterState {
13
19
  color: string;
14
20
  }[];
15
21
  get filters(): FilterOption[];
22
+ getSelectedLabels(): ISelectedLabel[];
23
+ removeSelected(value: string): ISelectedLabel[];
16
24
  reset(): void;
17
25
  }
@@ -2,8 +2,15 @@ import { __decorate } from "tslib";
2
2
  import { action, makeObservable, observable } from "mobx";
3
3
  import { DefaultFilterState } from "@voplus/morpho-ui/es/data";
4
4
  export class State extends DefaultFilterState {
5
- constructor() {
5
+ constructor(defaultFilter) {
6
+ var _a;
6
7
  super();
8
+ Object.defineProperty(this, "defaultFilter", {
9
+ enumerable: true,
10
+ configurable: true,
11
+ writable: true,
12
+ value: defaultFilter
13
+ });
7
14
  /** Status of filter */
8
15
  Object.defineProperty(this, "status", {
9
16
  enumerable: true,
@@ -11,11 +18,27 @@ export class State extends DefaultFilterState {
11
18
  writable: true,
12
19
  value: new Map()
13
20
  });
21
+ Object.defineProperty(this, "selectedLabels", {
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true,
25
+ value: void 0
26
+ });
14
27
  makeObservable(this);
28
+ if ((_a = this.defaultFilter) === null || _a === void 0 ? void 0 : _a.length)
29
+ this.onInit();
30
+ }
31
+ onInit() {
32
+ var _a;
33
+ this.reset();
34
+ (_a = this.defaultFilter) === null || _a === void 0 ? void 0 : _a.map((f) => this.onChangeStatus(f));
15
35
  }
16
36
  /** update status */
17
37
  onChangeStatus(value) {
38
+ var _a;
39
+ this.selectedLabels = [];
18
40
  this.status.has(value) ? this.status.delete(value) : this.status.set(value, true);
41
+ this.selectedLabels = (_a = Array.from(this.status.keys())) === null || _a === void 0 ? void 0 : _a.map((i) => ({ name: i, v1: i }));
19
42
  }
20
43
  get menus() {
21
44
  return [
@@ -37,6 +60,22 @@ export class State extends DefaultFilterState {
37
60
  },
38
61
  ];
39
62
  }
63
+ getSelectedLabels() {
64
+ return [
65
+ {
66
+ state: this,
67
+ key: "WorkStatus",
68
+ label: this.selectedLabels,
69
+ },
70
+ ];
71
+ }
72
+ removeSelected(value) {
73
+ var _a;
74
+ this.onChangeStatus(value);
75
+ if (!((_a = this.selectedLabels) === null || _a === void 0 ? void 0 : _a.length))
76
+ this.onInit();
77
+ return this.getSelectedLabels();
78
+ }
40
79
  reset() {
41
80
  this.status.clear();
42
81
  }
@@ -44,6 +83,12 @@ export class State extends DefaultFilterState {
44
83
  __decorate([
45
84
  observable
46
85
  ], State.prototype, "status", void 0);
86
+ __decorate([
87
+ observable
88
+ ], State.prototype, "selectedLabels", void 0);
89
+ __decorate([
90
+ action
91
+ ], State.prototype, "onInit", null);
47
92
  __decorate([
48
93
  action
49
94
  ], State.prototype, "onChangeStatus", null);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/controls/filters/WorkStatusFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AA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AAK;aACQ;SACjB,CAAC;IACH,CAAC;IAEM,iBAAiB;QACvB,OAAO;YACN;gBACC,KAAK,EAAE,IAAI;gBACX,GAAG,EAAE,YAAY;gBACjB,KAAK,EAAE,IAAI,CAAC,cAAc;aAC1B;SACD,CAAC;IACH,CAAC;IAEM,cAAc,CAAC,KAAa;;QAClC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,cAAc,0CAAE,MAAM,CAAA;YAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAEhD,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACD;AAnEmB;IAAlB,UAAU;qCAAiD;AACzC;IAAlB,UAAU;6CAAuD;AAU3D;IADN,MAAM;mCAIN;AAIM;IADN,MAAM;2CAON"}
@@ -41,6 +41,8 @@ export declare class NotificationStore extends Store {
41
41
  newLoadList(options?: LoadDocumentListOptions): Promise<INewNotification[]>;
42
42
  /** Edit an existing item on server. */
43
43
  edit(id: string, options: NotificationEditOptions): Promise<any>;
44
+ /** Edit an existing item on server. */
45
+ newEdit(id: string, options: NotificationEditOptions): Promise<any>;
44
46
  /** send work.
45
47
  * @param {string} id - id of the work.
46
48
  */
@@ -123,6 +123,15 @@ export class NotificationStore extends Store {
123
123
  }
124
124
  /** Edit an existing item on server. */
125
125
  async edit(id, options) {
126
+ return this.action(async () => {
127
+ const r = await this.endpoint.post(`/api/myspace/notifications/${id}`, new RequestBuilder().json(options.data));
128
+ const t = (await r.json());
129
+ this.items.overwrite(t.id, t);
130
+ return t;
131
+ }, options);
132
+ }
133
+ /** Edit an existing item on server. */
134
+ async newEdit(id, options) {
126
135
  return this.action(async () => {
127
136
  const r = await this.endpoint.post(`/api/notifications/${id}`, new RequestBuilder().json(options.data));
128
137
  const t = (await r.json());
@@ -1 +1 @@
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,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAClC,IAAI,IAAI,EAAE,CAAC;oBACV,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACpC,CAAC;YACF,CAAC;YACD,OAAO,OAAO,CAAC;QAChB,CAAC,EAAE,OAAQ,CAAC,CAAC;IACd,CAAC;CACD;AAjBa;IADZ,MAAM;+CAiBN;AAGF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACxC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAuB,CAAC;AAC5D,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
2
2
  import { CreateWorkOptions, IWork, IWorkEditOptions, WorkSendFormOptions } from "./interfaces";
3
- import { StoreActionOptions, FilterOption } from "@voplus/morpho-data";
3
+ import { StoreActionOptions } from "@voplus/morpho-data";
4
4
  import { ApiEndPoint } from "@voplus/api";
5
5
  export declare class WorkStore extends DocumentTypeStore<IWork, LoadDocumentOptions, LoadDocumentListOptions, CreateWorkOptions, IWorkEditOptions, any> {
6
6
  /** Name of the store */
@@ -18,9 +18,6 @@ export declare class WorkStore extends DocumentTypeStore<IWork, LoadDocumentOpti
18
18
  * @param {string} id - id of the work.
19
19
  */
20
20
  reject(id: string, options: StoreActionOptions): Promise<any>;
21
- loadWorkReport(options?: {
22
- Filters?: FilterOption[];
23
- }): Promise<any>;
24
21
  }
25
22
  /** 响应钩子检索 PageStore */
26
23
  export declare const useWorkStore: () => WorkStore;
@@ -49,10 +49,6 @@ export class WorkStore extends DocumentTypeStore {
49
49
  }
50
50
  }, options);
51
51
  }
52
- async loadWorkReport(options) {
53
- const r = await this.endpoint.post(`/api/works/reports/monthly`, new RequestBuilder().json(options ? options : { Filters: [] }));
54
- return await r.json();
55
- }
56
52
  }
57
53
  /** 响应钩子检索 PageStore */
58
54
  export const useWorkStore = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"WorkStore.js","sourceRoot":"","sources":["../../../src/data/work/WorkStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAsB,UAAU,EAAgB,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B,MAAM,OAAO,SAAU,SAAQ,iBAO9B;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;QAJ1C,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;IAIzC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,OAA4B;QACzD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YAC3F,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;gBACnC,IAAI,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,EAA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SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,UAAU,CAChB,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAClE,CAAC;AACH,CAAC,CAAC"}
@@ -66,14 +66,3 @@ export type WorkSendFormOptions = {
66
66
  Message: string;
67
67
  };
68
68
  } & StoreActionOptions;
69
- export interface IWorkReport {
70
- id: string;
71
- start: string;
72
- end: string;
73
- items: IWorkReportItem[];
74
- }
75
- export interface IWorkReportItem {
76
- year: number;
77
- month: number;
78
- total: number;
79
- }
@@ -0,0 +1,19 @@
1
+ import { ApiEndPoint } from "@voplus/api";
2
+ import { CountedMap, Store } from "@voplus/morpho-data";
3
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
4
+ import { IWorkReport, IWorkReportItem } from "./interfaces";
5
+ /** WorkReport store supply backend functions. */
6
+ export declare class WorkReportStore extends Store {
7
+ readonly endpoint: ApiEndPoint;
8
+ /** Name of the store */
9
+ readonly name: string;
10
+ constructor(endpoint: ApiEndPoint);
11
+ /** All currently used corporate. */
12
+ readonly items: CountedMap<string, IWorkReportItem>;
13
+ /** Load a list of documents from server.
14
+ * @param {LoadDocumentListOptions}
15
+ */
16
+ loadList(options?: LoadDocumentListOptions): Promise<IWorkReport>;
17
+ }
18
+ /** 响应钩子检索 WorkReportStore */
19
+ export declare const useWorkReportStore: () => WorkReportStore;
@@ -0,0 +1,52 @@
1
+ import { RequestBuilder } from "@voplus/api";
2
+ import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
3
+ import { observable } from "mobx";
4
+ const StoreName = "WorkReportStore";
5
+ /** WorkReport store supply backend functions. */
6
+ export class WorkReportStore extends Store {
7
+ constructor(endpoint) {
8
+ super();
9
+ Object.defineProperty(this, "endpoint", {
10
+ enumerable: true,
11
+ configurable: true,
12
+ writable: true,
13
+ value: endpoint
14
+ });
15
+ /** Name of the store */
16
+ Object.defineProperty(this, "name", {
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true,
20
+ value: StoreName
21
+ });
22
+ /** All currently used corporate. */
23
+ Object.defineProperty(this, "items", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
28
+ });
29
+ }
30
+ /** Load a list of documents from server.
31
+ * @param {LoadDocumentListOptions}
32
+ */
33
+ async loadList(options) {
34
+ let query = "";
35
+ if (options === null || options === void 0 ? void 0 : options.Includes) {
36
+ query = query.concat(`includes=${options.Includes}`);
37
+ }
38
+ if (query)
39
+ query = "?".concat(query);
40
+ const r = await this.endpoint.post(`/api/works/reports/monthly`, new RequestBuilder().json(options ? options : { Filters: [] }));
41
+ return (await r.json());
42
+ }
43
+ }
44
+ /** 响应钩子检索 WorkReportStore */
45
+ export const useWorkReportStore = () => {
46
+ const context = useApplicationContext();
47
+ if (!context.getService(StoreName)) {
48
+ context.registerService(new WorkReportStore(context.api.currentEndPoint));
49
+ }
50
+ return context.getService(StoreName);
51
+ };
52
+ //# sourceMappingURL=WorkReportStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkReportStore.js","sourceRoot":"","sources":["../../../src/data/work-report/WorkReportStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,SAAS,GAAG,iBAAiB,CAAC;AAEpC,iDAAiD;AACjD,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAIzC,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QADU;;;;mBAAgB,QAAQ;WAAa;QAHxD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;QAMzC,oCAAoC;QACpB;;;;mBA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LoadDocumentListOptions } from "@voplus/morpho-document-core";
2
+ import { IWorkReportData, IWorkReportItem } from ".";
3
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
+ /** React hook to retrieve a list of ledgers
5
+ * @param effect - Effect callback to be ran after successful retrieved the list.
6
+ * @param options - Optional ledger list loading options.
7
+ */
8
+ export declare const useWorkReportListEffect: (list: ListDataContextState<IWorkReportItem> | null, effect: (list: IWorkReportItem[], total: number, data: IWorkReportData) => void, options?: LoadDocumentListOptions) => void;
@@ -0,0 +1,13 @@
1
+ import { useWorkReportStore } from ".";
2
+ import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
3
+ /** React hook to retrieve a list of ledgers
4
+ * @param effect - Effect callback to be ran after successful retrieved the list.
5
+ * @param options - Optional ledger list loading options.
6
+ */
7
+ export const useWorkReportListEffect = (list, effect, options) => {
8
+ const deps = options ? options : {};
9
+ const store = useWorkReportStore();
10
+ // Call useDocumentListEffect and ensure won't load twice for same loading options.
11
+ return useListLoaderEffect(list, store.items, effect, () => store.loadList(options), [deps]);
12
+ };
13
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/work-report/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAoC,MAAM,GAAG,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACtC,IAAkD,EAClD,MAA+E,EAC/E,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IAEnC,mFAAmF;IACnF,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./WorkReportStore";
2
+ export * from "./hooks";
3
+ export * from "./interfaces";
@@ -0,0 +1,4 @@
1
+ export * from "./WorkReportStore";
2
+ export * from "./hooks";
3
+ export * from "./interfaces";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/work-report/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ILoadable } from "@voplus/morpho-data";
2
+ export interface IWorkReportData {
3
+ end: string;
4
+ start: string;
5
+ }
6
+ export interface IWorkReportItem extends ILoadable {
7
+ id: string;
8
+ year?: number;
9
+ month?: number;
10
+ total?: number;
11
+ }
12
+ export interface IWorkReport extends ILoadable {
13
+ data: IWorkReportData;
14
+ list: IWorkReportItem[];
15
+ total: number;
16
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/work-report/interfaces.ts"],"names":[],"mappings":""}
@@ -28,11 +28,11 @@ const NotificationProperties = (props) => {
28
28
  function renderProp(item) {
29
29
  switch (item.name) {
30
30
  case "Subject":
31
- return (React.createElement(InlineEdit, { defaultValue: notification.subject, content: (v) => notification.subject ? (React.createElement("span", { className: "properties-value" }, notification.subject)) : (React.createElement("span", { className: "add-info-style" }, "Add Number")), onSave: (value) => store.edit(id, { data: { Subject: value }, error: "message" }) }));
31
+ return (React.createElement(InlineEdit, { defaultValue: notification.subject, content: (v) => notification.subject ? (React.createElement("span", { className: "properties-value" }, notification.subject)) : (React.createElement("span", { className: "add-info-style" }, "Add Number")), onSave: (value) => store.newEdit(id, { data: { Subject: value }, error: "message" }) }));
32
32
  case "Channels":
33
33
  return (React.createElement(InlineEdit, { defaultValue: notification.channels, editor: (v) => (React.createElement(Radio.Group, { onChange: (e) => {
34
34
  v.store.value = e.target.value;
35
- store.edit(id, { data: { Channels: e.target.value }, error: "message" });
35
+ store.newEdit(id, { data: { Channels: e.target.value }, error: "message" });
36
36
  v.store.cancel();
37
37
  }, value: notification.channels },
38
38
  React.createElement(Radio, { value: "Email" }, "Email"),
@@ -41,7 +41,7 @@ const NotificationProperties = (props) => {
41
41
  return (React.createElement(InlineEdit, { defaultValue: notification.date ? dayjs(notification.date) : undefined, content: (v) => notification.date ? (React.createElement("span", { className: "properties-value" }, dayjs(notification.date).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Date")), editor: DateInputEditor, onSave: (date) => {
42
42
  if (notification.date && dayjs(date).isSame(notification.date, "day"))
43
43
  return;
44
- store.edit(id, {
44
+ store.newEdit(id, {
45
45
  data: { Date: date !== null ? date : "" },
46
46
  });
47
47
  } }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,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YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAI,CACtE,CAAC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,iBAAiB,EAAE,yBAAyB;IAC5C,sBAAsB,EAAE;QACvB,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/B,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,wBAAwB;QACxB,EAAE,IAAI,EAAE,MAAM,EAAE;KAChB;CACD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,uBAAuB,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,O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C/B,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,wBAAwB;QACxB,EAAE,IAAI,EAAE,MAAM,EAAE;KAChB;CACD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  declare const WorkCashReport: (props: {
3
3
  id: string;
4
+ workspaceId: string;
4
5
  onFilterOutPut?: ((filterStatus: string[]) => void) | undefined;
5
6
  }) => React.JSX.Element;
6
7
  export default WorkCashReport;
@@ -1,56 +1,68 @@
1
- import React, { useEffect, useState } from "react";
2
- import { observe } from "@voplus/morpho-ui";
1
+ import React, { useState } from "react";
2
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
3
+ import { SelectedFilterLabel } from "@voplus/morpho-ui/es/controls";
3
4
  import { FilterOptionsContext, ListDataContext, useCreateListDataState, } from "@voplus/morpho-ui/es/data";
4
- import { useWorkStore } from "../../../../data/work";
5
+ import { useWorkReportListEffect } from "../../../../data/work-report";
6
+ import { useAutoUpdateListData } from "@voplus/morpho-document-core";
5
7
  import { State } from "./state";
6
8
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
9
  import { faBarsFilter } from "@fortawesome/pro-light-svg-icons";
8
- import { runInAction } from "mobx";
9
10
  import { Skeleton } from "antd";
10
- import { CloseOutlined } from "@ant-design/icons";
11
+ import { State as WorkStatusState } from "../../../../controls/filters/WorkStatusFilter/state";
11
12
  import { WorkStatusFilter } from "../../../../controls/filters";
12
13
  import WorkCashReportTemplate from "./WorkCashReportTemplate";
13
14
  import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
14
15
  import styles from "./index.less";
15
16
  const WorkCashReport = (props) => {
16
- const list = useCreateListDataState();
17
- const store = useWorkStore();
18
- const [state] = useState(new State(store));
19
- useEffect(() => {
20
- state.filter[1].v1 = props.id;
21
- state.onLoad();
17
+ const [state] = useState(new State());
18
+ const defaultFilter = [
19
+ {
20
+ c: "WorkStatus",
21
+ o: "contains",
22
+ l: "And",
23
+ v1: JSON.stringify(["Active"]),
24
+ },
25
+ { c: "WorkType", o: "=", l: "And", v1: props.id },
26
+ { c: "Workspace", o: "=", l: "And", v1: props.workspaceId },
27
+ ];
28
+ const list = useCreateListDataState({
29
+ filterDefaults: {
30
+ filters: defaultFilter,
31
+ page: { Page: 1, PageSize: 50 },
32
+ },
33
+ filterStateDefault: [
34
+ {
35
+ key: "WorkStatus",
36
+ factory: () => new WorkStatusState(["Active"]),
37
+ },
38
+ ],
22
39
  }, [props.id]);
23
- const onResetFilter = (item) => runInAction(() => { var _a; return onFilter((_a = state.filterV1Val) === null || _a === void 0 ? void 0 : _a.filter((v) => v !== item)); });
24
- const onFilter = (filterV1Val) => runInAction(() => {
25
- var _a;
26
- state.filterV1Val = filterV1Val;
27
- state.filter[0].v1 = JSON.stringify(filterV1Val);
28
- state.onLoad(state.filter);
29
- (_a = props.onFilterOutPut) === null || _a === void 0 ? void 0 : _a.call(props, state.filterV1Val);
30
- });
31
- return observe(() => {
32
- var _a;
33
- return (React.createElement(ListDataContext.Provider, { value: list },
34
- React.createElement("div", { className: styles["work-report-g2"] },
35
- React.createElement(FilterOptionsContext.Provider, { value: list.filters },
36
- React.createElement("div", { className: "work-report-header" },
37
- 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" },
38
- React.createElement("span", { className: "prosemirror-mention-node" }, type),
39
- React.createElement(CloseOutlined, { className: "selected-filter-item-del", onClick: () => onResetFilter(type) }))))),
40
- React.createElement("div", { className: "filter-component" },
41
- React.createElement(FilterView, { className: "ml-2.5", icon: React.createElement(FAIcon, { icon: faBarsFilter, size: "lg" }), columns: [
42
- React.createElement(WorkStatusFilter, { key: "WorkStatusFilter", defaultValue: state.filterV1Val }),
43
- ], onFilter: (c) => {
44
- var _a, _b;
45
- c.filter();
46
- onFilter((state.filterV1Val = ((_a = c === null || c === void 0 ? void 0 : c.options) === null || _a === void 0 ? void 0 : _a.Filters)
47
- ? JSON.parse((_b = c === null || c === void 0 ? void 0 : c.options) === null || _b === void 0 ? void 0 : _b.Filters[0].v1)
48
- : []));
49
- }, onReset: () => onFilter(["Active"]) })))),
50
- React.createElement("div", { className: "work-report-content" },
51
- React.createElement(Skeleton, { loading: state.loading, active: true },
52
- React.createElement(WorkCashReportTemplate, { data: state.dataList }))))));
53
- });
40
+ useWorkReportListEffect(list, async (result, total, data) => {
41
+ state.loading = true;
42
+ list.union(result);
43
+ await state.loadCashList(result);
44
+ state.loading = false;
45
+ }, list.filters.options);
46
+ useAutoUpdateListData(list, (d) => true);
47
+ useRenderOnChange(() => list.filters.options);
48
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
49
+ React.createElement("div", { className: styles["work-report-g2"] },
50
+ React.createElement(FilterOptionsContext.Provider, { value: list.filters },
51
+ React.createElement("div", { className: "work-report-header" },
52
+ React.createElement(SelectedFilterLabel, { filterKey: "WorkStatus" }),
53
+ React.createElement("div", { className: "filter-component" },
54
+ React.createElement(FilterView, { className: "ml-2.5", icon: React.createElement(FAIcon, { icon: faBarsFilter, size: "lg" }), columns: [React.createElement(WorkStatusFilter, { key: "WorkStatusFilter", defaultValue: ["Active"] })], onFilter: onFilter, onReset: onReset })))),
55
+ React.createElement("div", { className: "work-report-content" },
56
+ React.createElement(Skeleton, { loading: state.loading, active: true },
57
+ React.createElement(WorkCashReportTemplate, { data: state.dataList })))))));
58
+ function onFilter(context) {
59
+ context.paging.Page = 1;
60
+ context.filter();
61
+ }
62
+ function onReset(context) {
63
+ context.paging.Page = 1;
64
+ context.filter();
65
+ }
54
66
  };
55
67
  export default WorkCashReport;
56
68
  //# sourceMappingURL=index.js.map
@@ -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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AAI,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,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,CAAC,QAAQ,CAAC,CAAC,GAClC,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,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAA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AAC,GAAG,EAAC,kBAAkB,EAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,GAAI,CAAC,EAChF,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GACf,CACG,CACD,CACyB;YAEhC,6BAAK,SAAS,EAAC,qBAAqB;gBACnC,oBAAC,QAAQ,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM;oBACvC,oBAAC,sBAAsB,IAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAI,CACtC,CACN,CACD,CACoB,CAC3B,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,SAAS,OAAO,CAAC,OAAY;QAC5B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -6,14 +6,14 @@
6
6
  margin-bottom: 40px;
7
7
  }
8
8
 
9
- .selected-filter {
10
- }
11
-
12
9
  .selected-filter-item {
13
- position: relative;
14
- display: inline-block;
15
10
 
16
- .selected-filter-item-del {
11
+ .prosemirror-mention-node {
12
+ line-height: unit((24/18), em);
13
+ margin-top: 0;
14
+ }
15
+
16
+ .selected-filter-item-delete {
17
17
  position: absolute;
18
18
  font-size: 12px;
19
19
  right: 12px;
@@ -22,14 +22,10 @@
22
22
  }
23
23
 
24
24
  &:hover {
25
- .prosemirror-mention-node {
26
- padding-right: 24px;
27
- }
28
-
29
- .selected-filter-item-del {
25
+ .selected-filter-item-delete {
30
26
  display: block;
31
27
  }
32
28
  }
33
29
  }
34
30
  }
35
- }
31
+ }
@@ -1,15 +1,10 @@
1
- import { WorkStore, IWorkReport } from "../../../../data/work";
2
- import { FilterOption } from "@voplus/morpho-data";
1
+ import { IWorkReportItem } from "../../../../data/work-report";
3
2
  export declare class State {
4
- private store;
5
3
  loading: boolean;
6
- filterV1Val: string[];
7
- filter: FilterOption[];
8
4
  dataList: {
9
5
  date: string;
10
6
  total: number;
11
7
  }[];
12
- constructor(store: WorkStore);
13
- onLoad(filterOption?: FilterOption[]): void;
14
- loadCashList(workReport: IWorkReport): void;
8
+ constructor();
9
+ loadCashList(workReport: IWorkReportItem[]): Promise<void>;
15
10
  }
@@ -2,39 +2,13 @@ import { __decorate } from "tslib";
2
2
  import { makeObservable, observable, action } from "mobx";
3
3
  import dayjs from "dayjs";
4
4
  export class State {
5
- constructor(store) {
6
- Object.defineProperty(this, "store", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: store
11
- });
5
+ constructor() {
12
6
  Object.defineProperty(this, "loading", {
13
7
  enumerable: true,
14
8
  configurable: true,
15
9
  writable: true,
16
10
  value: false
17
11
  });
18
- Object.defineProperty(this, "filterV1Val", {
19
- enumerable: true,
20
- configurable: true,
21
- writable: true,
22
- value: ["Active"]
23
- });
24
- Object.defineProperty(this, "filter", {
25
- enumerable: true,
26
- configurable: true,
27
- writable: true,
28
- value: [
29
- {
30
- c: "WorkStatus",
31
- o: "contains",
32
- l: "And",
33
- v1: JSON.stringify(this.filterV1Val),
34
- },
35
- { c: "WorkType", o: "=", l: "And", v1: "" },
36
- ]
37
- });
38
12
  // 柱状图的数据列表
39
13
  Object.defineProperty(this, "dataList", {
40
14
  enumerable: true,
@@ -44,18 +18,9 @@ export class State {
44
18
  });
45
19
  makeObservable(this);
46
20
  }
47
- onLoad(filterOption) {
48
- this.loading = true;
49
- this.store
50
- .loadWorkReport({ Filters: filterOption !== null && filterOption !== void 0 ? filterOption : this.filter })
51
- .then((res) => this.loadCashList(res))
52
- .finally(() => (this.loading = false));
53
- }
54
- // 把后台返回的值转成柱状图所需要的数据
55
- loadCashList(workReport) {
56
- var _a;
21
+ async loadCashList(workReport) {
57
22
  this.dataList = [];
58
- (_a = workReport === null || workReport === void 0 ? void 0 : workReport.items) === null || _a === void 0 ? void 0 : _a.map((i) => this.dataList.push({
23
+ workReport === null || workReport === void 0 ? void 0 : workReport.map((i) => this.dataList.push({
59
24
  date: dayjs(`${i.year}-${i.month}`).format("YYYY MMM"),
60
25
  total: i.total,
61
26
  }));
@@ -64,18 +29,9 @@ export class State {
64
29
  __decorate([
65
30
  observable
66
31
  ], State.prototype, "loading", void 0);
67
- __decorate([
68
- observable
69
- ], State.prototype, "filterV1Val", void 0);
70
- __decorate([
71
- observable
72
- ], State.prototype, "filter", void 0);
73
32
  __decorate([
74
33
  observable
75
34
  ], State.prototype, "dataList", void 0);
76
- __decorate([
77
- action
78
- ], State.prototype, "onLoad", null);
79
35
  __decorate([
80
36
  action
81
37
  ], State.prototype, "loadCashList", null);
@@ -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,KAAgB;QAAxB;;;;mBAAQ,KAAK;WAAW;QAjBxB;;;;mBAAU,KAAK;WAAC;QAEhB;;;;mBAAwB,CAAC,QAAQ,CAAC;WAAC;QAEnC;;;;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,EAAE,EAAE;aAC3C;WAAC;QAEF,WAAW;QACC;;;;mBAA8C,EAAE;WAAC;QAG5D,cAAc,CAAC,IAAI,CAAC,CAAC;I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;QAE5B,WAAW;QACC;;;;mBAA8C,EAAE;WAAC;QAG5D,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEoB,AAAN,KAAK,CAAC,YAAY,CAAC,UAA6B;QAC9D,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QAEnB,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACrB,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,KAAM;SACf,CAAC,CACF,CAAC;IACH,CAAC;CACD;AAnBY;IAAX,UAAU;sCAAiB;AAGhB;IAAX,UAAU;uCAAkD;AAMxC;IAApB,MAAM;yCASN"}
@@ -1,5 +1,6 @@
1
1
  import React, { useState } from "react";
2
2
  import { useWorkListEffect } from "../../../../data/work";
3
+ import { SelectedFilterLabel } from "@voplus/morpho-ui/es/controls";
3
4
  import { useWorkType, useWorkTypeListEffect } from "../../../../data/worktype";
4
5
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
5
6
  import { WorkStatusFilter, WorkTypesFilter } from "../../../../controls/filters";
@@ -8,7 +9,6 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
8
9
  import { Badge } from "antd";
9
10
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
10
11
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
11
- import SelectedFilterLabel from "../../work-type/controls/SelectedFilterLabel";
12
12
  import NewWorkForm from "../NewWorkForm";
13
13
  import WorkItem from "../WorkItem";
14
14
  import dayjs from "dayjs";
@@ -58,7 +58,7 @@ const WorkList = (props) => {
58
58
  viewTitle: (React.createElement(React.Fragment, null,
59
59
  React.createElement("span", { className: "margin-right-10" }, viewTitle || (workType === null || workType === void 0 ? void 0 : workType.name) || "My Works"),
60
60
  total && workTotal ? React.createElement(Badge, { count: workTotal }) : null,
61
- React.createElement(SelectedFilterLabel, null))),
61
+ React.createElement(SelectedFilterLabel, { filterKey: "WorkTypes" }))),
62
62
  sortable: false,
63
63
  quickSearch: true,
64
64
  addAble: addAble || (dueDate === "requested" ? true : false),
@@ -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,uBAAuB,CAAC;AACjE,OAAO,EAAa,WAAW,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,mBAAmB,MAAM,8CAA8C,CAAC;AAC/E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,cAAc,CAAC;AAuCtB,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IACzC,MAAM,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAA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AAO,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"}
@@ -2,10 +2,12 @@ import React, { useState } from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
3
  import { useRenderOnChange } from "@voplus/morpho-ui";
4
4
  import { useWorkScheduleListEffect } from "../../../../../data/work-schedule";
5
+ import { useWorkTypeListEffect } from "../../../../../data/worktype";
5
6
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
6
7
  import { useAutoUpdateListData } from "../../../../../data/work-schedule/work-schedule-events";
7
8
  import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
8
9
  import WorkScheduleFilter from "../../controls/WorkScheduleFilter";
10
+ import WorkTypesFilter from "../../../../../controls/filters/WorkTypesFilter";
9
11
  import NewWorkScheduleForm from "../NewWorkScheduleForm";
10
12
  import NewWorkScheduleFormDialog from "../NewWorkScheduleForm/NewWorkScheduleFormDialog";
11
13
  import WorkSchedulePropertiesView from "../WorkSchedulePropertiesView";
@@ -20,6 +22,7 @@ const WorkScheduleList = (props) => {
20
22
  const { contact, viewTitle, asideable, scheduleDate } = props;
21
23
  const [activeId, setActiveId] = useState("");
22
24
  const [addAble, setAddAble] = useState(false);
25
+ const [workTypeList, setWorkTypeList] = useState([]);
23
26
  const view = useViewContext();
24
27
  const list = useCreateListDataState({
25
28
  filterDefaults: {
@@ -45,6 +48,9 @@ const WorkScheduleList = (props) => {
45
48
  Total: true,
46
49
  ...list.filters.options,
47
50
  });
51
+ useWorkTypeListEffect(null, (result) => setWorkTypeList(result), {
52
+ Filters: [],
53
+ });
48
54
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
49
55
  React.createElement("div", { className: styles["work-schedule-list"] },
50
56
  React.createElement(ListView, { headerProps: {
@@ -53,7 +59,10 @@ const WorkScheduleList = (props) => {
53
59
  quickSearch: true,
54
60
  onAdd: () => (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" && setAddAble(!addAble),
55
61
  filterViewProps: {
56
- columns: [React.createElement(WorkScheduleFilter, { key: "WorkScheduleFilter", defaultValue: "Empty" })],
62
+ columns: [
63
+ React.createElement(WorkScheduleFilter, { key: "WorkScheduleFilter", defaultValue: "Empty" }),
64
+ React.createElement(WorkTypesFilter, { key: "WorkTypesFilter", workTypeList: workTypeList }),
65
+ ],
57
66
  onFilter,
58
67
  },
59
68
  }, 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: () => {
@@ -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,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,0BAA0B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BACjB,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,GAAG;CACd,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,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAa,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM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;IAC/B,SAAS,EAAE,GAAG;CACd,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -22,7 +22,7 @@ const Dashboard = (props) => {
22
22
  return observe(() => (React.createElement("div", { className: styles["worktype-works-dashboard"], ref: ref },
23
23
  React.createElement(RelatedDocument, null,
24
24
  React.createElement(Card, { className: "work-cash-report" },
25
- React.createElement(WorkCashReport, { id: params.typesId, onFilterOutPut: (statusArr) => setStatusArr(statusArr) })),
25
+ React.createElement(WorkCashReport, { id: params.typesId, workspaceId: params.id, onFilterOutPut: (statusArr) => setStatusArr(statusArr) })),
26
26
  React.createElement("div", { className: "work-list-card" },
27
27
  React.createElement(WorkListCard, { style: { height: `${dashboardHeight - 463}px` }, filterVisible: false, statusArr: statusArr, active: params.active, typesId: params.typesId, workspaceId: params.id, onClickItem: (item) => {
28
28
  layout.history.replace(generatePath(props.path, {
@@ -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,G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E,MAAM,CAAC,OAAO,IAAI,EAAE;4BAC7B,MAAM,EAAE,IAAI,CAAC,EAAE;yBACf,CAAC,CACF,CAAC;oBACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAClB,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,OAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,GAEzE,CACG,CACW,CACb,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
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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AAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,OAAQ,CAAC,GAAG,KAAK,CAAC,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.69",
3
+ "version": "6.0.71",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import "./index.less";
3
- declare const SelectedFilterLabel: () => React.JSX.Element;
4
- export default SelectedFilterLabel;
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import { CloseOutlined } from "@ant-design/icons";
3
- import { observe } from "@voplus/morpho-ui";
4
- import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
5
- import "./index.less";
6
- const SelectedFilterLabel = () => {
7
- const context = useFilterOptionsContext();
8
- return observe(() => {
9
- var _a;
10
- const selectedLabel = (_a = context.selectedLabels) === null || _a === void 0 ? void 0 : _a.filter((i) => i.key === "WorkTypes");
11
- return (React.createElement("div", { className: "selected-filter-label-list" }, (selectedLabel === null || selectedLabel === void 0 ? void 0 : selectedLabel.length) > 0
12
- ? selectedLabel[0].label.map((label) => (React.createElement("div", { className: "selected-filter-item", key: label.v1 },
13
- React.createElement("span", { className: "prosemirror-mention-node" }, label.name),
14
- React.createElement(CloseOutlined, { className: "selected-filter-item-delete", onClick: () => {
15
- var _a, _b;
16
- (_b = (_a = selectedLabel[0]) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.removeSelected(label.v1);
17
- context.filter();
18
- } }))))
19
- : null));
20
- });
21
- };
22
- export default SelectedFilterLabel;
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type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"}
@@ -1,31 +0,0 @@
1
- :global {
2
- .selected-filter-label-list {
3
- .selected-filter-item {
4
- position: relative;
5
- display: inline-block;
6
-
7
- .prosemirror-mention-node {
8
- line-height: 1em;
9
- margin-top: 8px;
10
- }
11
-
12
- .selected-filter-item-delete {
13
- position: absolute;
14
- font-size: 12px;
15
- right: 12px;
16
- top: 20px;
17
- display: none;
18
- }
19
-
20
- &:hover {
21
- .prosemirror-mention-node {
22
- padding-right: 24px;
23
- }
24
-
25
- .selected-filter-item-delete {
26
- display: block;
27
- }
28
- }
29
- }
30
- }
31
- }