@voplus/morpho-workspace 6.0.141 → 6.0.142
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +3 -2
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.d.ts +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +4 -3
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -1
- package/package.json +1 -1
@@ -3,6 +3,7 @@ import { Button, DatePicker, InputNumber, Popover } from "antd";
|
|
3
3
|
import { State } from "./state";
|
4
4
|
import { faHourglassEnd, faHourglassStart, faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
+
import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
6
7
|
import { observe } from "@voplus/morpho-ui";
|
7
8
|
import { runInAction } from "mobx";
|
8
9
|
import { useTaskStore } from "@voplus/morpho-document-core";
|
@@ -35,8 +36,8 @@ const TaskEstimatedTime = (props) => {
|
|
35
36
|
React.createElement(DatePicker.RangePicker, { autoFocus: true, format: "YYYY-MM-DD",
|
36
37
|
// disabledDate={disabledDate}
|
37
38
|
allowEmpty: [true, true], value: [
|
38
|
-
state.startDate ?
|
39
|
-
state.dueDate ?
|
39
|
+
state.startDate ? utcdayjs(state.startDate) : undefined,
|
40
|
+
state.dueDate ? utcdayjs(state.dueDate) : undefined,
|
40
41
|
], onChange: state.changeSchedule })),
|
41
42
|
React.createElement("div", { className: "task-time-popover_footer" },
|
42
43
|
React.createElement(Button, { type: "link", className: "remove", onClick: () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD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SAAS,CAAC;YACvE,KAAK,CAAC,OAAO,GAAG,CAAC,cAAc,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QAClE,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,OAAO,IACP,KAAK,EAAC,EAAE,EACR,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,KAAK,CAAC,OAAO,EACnB,YAAY,EAAE,eAAe,EAC7B,gBAAgB,EAAC,mBAAmB,EACpC,OAAO,EACN;YACC,4CAAmB;YACnB;gBACC,oBAAC,WAAW,IACX,KAAK,EAAE,KAAK,CAAC,cAAc,EAC3B,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GACnC;wBAEG;YACN,6CAAoB;YACpB;gBACC,oBAAC,UAAU,CAAC,WAAW,IACtB,SAAS,QACT,MAAM,EAAC,YAAY;oBACnB,8BAA8B;oBAC9B,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EACxB,KAAK,EACJ;wBACC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,KAAK,EAA0B,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kC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AO,IAAI,CAC9C,8BAAM,SAAS,EAAC,eAAe,IAC7B,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAClD,CACP,CACe,CACjB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,8BAAM,SAAS,EAAC,gBAAgB;YAC/B,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAC,gBAAgB,GAAG;4BAElD,CACP,CAAC,CAAC,CAAC,IAAI,CACF,CACE,CACV,CAAC,CAAC;IACH,SAAS,eAAe,CAAC,OAAgB;QACxC,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,OAAO,IAAI,CAAC,CAAC,QAAQ,CAAC;YACtC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC;QAChD,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,iBAAiB,CAAC,YAAY,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAClF,eAAe,iBAAiB,CAAC"}
|
@@ -32,6 +32,6 @@ export declare class State {
|
|
32
32
|
/** edit estimatedHours */
|
33
33
|
changeEstimatedHours: (value: number) => void;
|
34
34
|
/** edit schedule */
|
35
|
-
changeSchedule: (
|
35
|
+
changeSchedule: (dates: any) => void;
|
36
36
|
get dateFormat(): "DD MMM YYYY" | "DD MMM";
|
37
37
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed, makeObservable, observable } from "mobx";
|
3
|
+
import { forceUTC } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
3
4
|
import { message } from "antd";
|
4
5
|
import dayjs from "dayjs";
|
5
6
|
export class State {
|
@@ -108,9 +109,9 @@ export class State {
|
|
108
109
|
enumerable: true,
|
109
110
|
configurable: true,
|
110
111
|
writable: true,
|
111
|
-
value: (
|
112
|
-
this.startDate =
|
113
|
-
this.dueDate =
|
112
|
+
value: (dates) => {
|
113
|
+
this.startDate = dates ? forceUTC(dates[0]) : undefined;
|
114
|
+
this.dueDate = dates ? forceUTC(dates[1]) : undefined;
|
114
115
|
this.estimatedHours = 0;
|
115
116
|
}
|
116
117
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,OAAO,KAAK;IAiBjB,YAA2B,SAAoB;QAA5B;;;;mBAAQ,SAAS;WAAW;QAhB5B;;;;;WAA8B;QACjD,iBAAiB;QACE;;;;mBAAK,EAAE;WAAC;QAC3B,iBAAiB;QACE;;;;mBAAuC,SAAS;WAAC;QACpE,gBAAgB;QACG;;;;mBAAqC,SAAS;WAAC;QAClE,6BAA6B;QACV;;;;mBAAiB,CAAC;WAAC;QACtC,iCAAiC;QACd;;;;mBAAoB,CAAC;WAAC;QACzC,uBAAuB;QACJ;;;;mBAAU,KAAK;WAAC;QACnC,uDAAuD;QACpC;;;;mBAAU,KAAK;WAAC;QAMnC,kDAAkD;QAE3C;;;;mBAAS,KAAK,IAAI,EAAE;gBAC1B,IAAI,CAAC,O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