@voplus/morpho-workspace 6.0.86 → 6.0.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  import { EditDocumentDataOptions, IDocument } from "@voplus/morpho-document-core";
2
2
  import { StoreActionOptions } from "@voplus/morpho-data";
3
+ import dayjs from "dayjs";
3
4
  import { ICheckListItem } from "../worktype";
4
5
  export type WorkStatus = "Draft" | "New" | "Rejected" | "Active" | "Closed" | "Done";
5
6
  export interface IWork extends IDocument {
@@ -57,7 +58,7 @@ export interface IWorkEditOptions extends EditDocumentDataOptions {
57
58
  Checked: boolean;
58
59
  Item: string;
59
60
  }[];
60
- DueDate?: string;
61
+ DueDate?: dayjs.Dayjs | string;
61
62
  OwnerIds?: string[];
62
63
  ContactId?: string;
63
64
  }
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useMemo } from "react";
2
2
  import { Avatar } from "antd";
3
- import { InlineEdit, observe, PropertiesSection, UTCDatePicker as DatePicker, } from "@voplus/morpho-ui";
3
+ import { InlineEdit, observe, PropertiesSection } from "@voplus/morpho-ui";
4
4
  import { useWork, useWorkStore } from "../../../../data/work";
5
5
  import { Scrollbars } from "react-custom-scrollbars-2";
6
6
  import { State } from "./state";
@@ -16,11 +16,12 @@ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialo
16
16
  import AvatarItem from "@voplus/morpho-org/es/components/AvatarList/AvatarItem/LoadedAvatarItem";
17
17
  import ChangeAvatarDialog from "@voplus/morpho-org/es/controls/ChangeAvatarDialog";
18
18
  import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
19
+ import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
20
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
19
21
  import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference/LoadedDocumentReference";
20
22
  import WorkStatusLabel from "../../controls/WorkStatusLabel";
21
23
  import classnames from "classnames";
22
24
  import styles from "./index.less";
23
- import dayjs from "dayjs";
24
25
  const WorksProperties = (props) => {
25
26
  /** 加class name 为了方便做integration tests */
26
27
  const classId = "work-properties";
@@ -67,7 +68,7 @@ const WorksProperties = (props) => {
67
68
  case "Document":
68
69
  return ((_a = work.document) === null || _a === void 0 ? void 0 : _a.id) ? React.createElement(DocumentReference, { file: work.document }) : noData;
69
70
  case "Due":
70
- return state.dueDateEditable ? (React.createElement(DatePicker, { defaultValue: dayjs(work.due), variant: "borderless", onChange: (date, dateString) => state.dueDateEdit(date, dateString) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.dueDateEditable = true)) }, work.due ? (React.createElement(UTCShortDate, { className: "properties-value", value: work.due, format: "DD MMM YYYY" })) : (noData)));
71
+ return (React.createElement(InlineEdit, { defaultValue: work.due ? utcdayjs(work.due) : undefined, content: (v) => work.due ? (React.createElement(UTCShortDate, { className: "properties-value", value: work.due, format: "DD MMM YYYY" })) : (React.createElement("span", { className: "add-info-style" }, "noData")), editor: DateInputEditor, onSave: (date) => state.dueDateEdit(date !== null && date !== void 0 ? date : undefined) }));
71
72
  case "Owner":
72
73
  return (React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.ownerEditable = true)), content: (v) => {
73
74
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EACN,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,aAAa,IAAI,UAAU,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,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AI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,KAAK,EAAE;QACf,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,QAAQ,MAAM,+BAA+B,CAAC;AACrD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,yEAAyE,CAAC;AACjG,OAAO,kBAAkB,MAAM,mDAAmD,CAAC;AACnF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAA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AAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,oBAAC,aAAa,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI;4BACtC,oBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,CACzB,CAChB,CAAC,CACY,CACf,CAAC,CAAC,CAAC,CACH,MAAM,CACN,CAAA;qBAAA,GAED,CACF,CAAC;YACH,KAAK,WAAW;gBACf,OAAO,oBAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,CAAC,QAAS,EAAE,GAAG,EAAE,oBAAoB,MAAA,IAAI,CAAC,QAAQ,0CAAE,EAAE,EAAE,GAAI,CAAC;YACzF,KAAK,QAAQ;gBACZ,OAAO,8BAAM,SAAS,EAAC,kBAAkB,IAAE,IAAI,CAAC,MAAM,CAAQ,CAAC;QACjE,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,SAAS,EAAE,iBAAiB;IAC5B,aAAa,EAAE,qBAAqB;IACpC,cAAc,EAAE;QACf,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,KAAK,EAAE;QACf,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,3 +1,4 @@
1
+ import dayjs from "dayjs";
1
2
  import { WorkStore } from "../../../../data/work";
2
3
  export declare class State {
3
4
  private id;
@@ -10,5 +11,5 @@ export declare class State {
10
11
  workStatusEdit(workStatus: string): void;
11
12
  ownerEdit(ids: string[]): Promise<void>;
12
13
  contactEdit(ids: string): Promise<void>;
13
- dueDateEdit(date: any, dateString: string): Promise<void>;
14
+ dueDateEdit(date?: dayjs.Dayjs): Promise<void>;
14
15
  }
@@ -56,8 +56,8 @@ export class State {
56
56
  await this.store.edit(this.id, { data: { ContactId: ids }, error: "message" });
57
57
  this.contactEditable = false;
58
58
  }
59
- async dueDateEdit(date, dateString) {
60
- await this.store.edit(this.id, { data: { DueDate: dateString }, error: "message" });
59
+ async dueDateEdit(date) {
60
+ await this.store.edit(this.id, { data: { DueDate: date }, error: "message" });
61
61
  this.dueDateEditable = false;
62
62
  }
63
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,MAAM,OAAO,KAAK;IAKjB,YAAoB,EAAU,EAAU,KAAgB;QAA5C;;;;mBAAQ,EAAE;WAAQ;QAAE;;;;mBAAQ,KAAK;WAAW;QAJrC;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAgB,KAAK;WAAC;QACtB;;;;mBAAkB,KAAK;WAAC;QAG1C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,KAAK;QACnB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC9B,CAAC;IAEc,cAAc,CAAC,UAAkB;QAC/C,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACxB,IAAI,EAAE,EAAE,UAAU,EAAE;YACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;gBACvB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC9B,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;IAEoB,AAA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AAW,CAAC,IAAkB;QAClD,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC9E,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC9B,CAAC;CACD;AArCmB;IAAlB,UAAU;8CAAgC;AACxB;IAAlB,UAAU;4CAA8B;AACtB;IAAlB,UAAU;8CAAgC;AAM5B;IAAd,MAAM;kCAIN;AAEc;IAAd,MAAM;2CAON;AAEoB;IAApB,MAAM;sCAGN;AAEoB;IAApB,MAAM;wCAGN;AAEoB;IAApB,MAAM;wCAGN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.86",
3
+ "version": "6.0.87",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",