@voplus/morpho-workspace 6.0.53 → 6.0.55

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,7 +77,12 @@ const SubDocumentList = (props) => {
77
77
  useOnNewDocument((s, doc) => {
78
78
  if (doc.parentNodeId === props.id && doc.parentNodeId !== (destination === null || destination === void 0 ? void 0 : destination.parentId)) {
79
79
  runInAction(() => {
80
- docList.insert(doc, state.destination.index);
80
+ if (state.destination) {
81
+ docList.insert(doc, state.destination.index);
82
+ }
83
+ else {
84
+ docList.union([doc]);
85
+ }
81
86
  state.total++;
82
87
  });
83
88
  props.onDocumentData(docData());
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAwB,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEvF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;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C,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;gBACtC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACd,KAAK,CAAC,cAAe,CAAC,OAAO,EAAE,CAAC,CAAC;YAClC,CAAC;QACF,CAAC;QAED,IAAI,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,MAAK,KAAK,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,GAAG,GAAG;gBACX,EAAE,EAAE,WAAW,CAAC,EAAE;aAClB,CAAC;YACF,OAAO,CAAC,MAAM,CAAC,GAAgB,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;YACpD,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,KAAK,CAAC,cAAe,CAAC,OAAO,EAAE,CAAC,CAAC;QAClC,CAAC;QACD;wEACgE;QAChE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACtB,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;QAEhC,MAAM,GAAG,IAAI,CAAC;QACd,WAAW,GAAG,IAAI,CAAC;IACpB,CAAC;IAED,kCAAkC;IAClC,SAAS,OAAO;QACf,MAAM,GAAG,GAAa,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KA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AC,cAAe,CAAC,OAAO,EAAE,CAAC,CAAC;QAClC,CAAC;QACD;wEACgE;QAChE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACtB,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;QAEhC,MAAM,GAAG,IAAI,CAAC;QACd,WAAW,GAAG,IAAI,CAAC;IACpB,CAAC;IAED,kCAAkC;IAClC,SAAS,OAAO;QACf,MAAM,GAAG,GAAa,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC,eAAe,CAAC,CAAC"}
@@ -62,9 +62,9 @@ const TaskCheckList = (props) => {
62
62
  React.createElement(TaskCheckDoneTab, { parentId: props.id, taskCheckState: state }))),
63
63
  },
64
64
  ] }),
65
- state.addAble && (React.createElement(TaskCheckNewForm, { parentId: props.id, onCancel: () => (state.addAble = false), onSave: () => (state.addAble = false) }))))));
65
+ state.addAble && (React.createElement(TaskCheckNewForm, { parentId: props.id, onCancel: () => (state.addAble = false) }))))));
66
66
  function onCreate() {
67
- state.addAble = true;
67
+ state.addAble = !state.addAble;
68
68
  state.activeKey = "Active";
69
69
  }
70
70
  function onMore() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,gBAAgB,MAA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nB,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,GAAI,CACnD,CACb;qBACD;iBACD,GACA;YACD,KAAK,CAAC,OAAO,IAAI,CACjB,oBAAC,gBAAgB,IAChB,QAAQ,EAAE,KAAK,CAAC,EAAE,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,GAGtC,CACF,CACI,CACgB,CACvB,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;QAC/B,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED,SAAS,MAAM;QACd,KAAK,CAAC,UAAU,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,UAAU;YAAE,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IACnD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -20,14 +20,14 @@ const TaskCheckNewForm = (props) => {
20
20
  React.createElement(Form.Item, null,
21
21
  React.createElement(Row, { justify: "space-between" },
22
22
  React.createElement(Col, { flex: 1 },
23
- React.createElement(Input, { autoFocus: true, value: state.params.Name, className: "task-name-input", placeholder: `Enter a title for this task`, onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: onSubmit, onKeyDown: onKeyDown })),
23
+ React.createElement(Input, { autoFocus: true, value: state.name, className: "task-name-input", placeholder: `Enter a title for this task`, onChange: (e) => runInAction(() => (state.name = e.target.value)), onPressEnter: onSubmit, onKeyDown: onKeyDown })),
24
24
  React.createElement(Col, null,
25
25
  React.createElement("div", { className: "task-due-date-content" },
26
26
  state.dueDateString ? (React.createElement("div", { className: "due-val-content", onClick: () => (state.openDate = true) },
27
27
  React.createElement("div", { className: "dueDate" }, "Due"),
28
28
  React.createElement(React.Fragment, null, state.dueDateString))) : (React.createElement(Icon, { className: "task-due-date-bnt", icon: faCalendar, hover: faCalendarSolid, onClick: () => (state.openDate = true) })),
29
29
  React.createElement(PresetDatePicker, { className: "task-preset-date-picker", open: state.openDate, onChange: (preset, date) => {
30
- state.params.DueDate = date ? dayjs(date).format("YYYY-MM-DD") : "";
30
+ state.dueDate = date ? dayjs(date).format("YYYY-MM-DD") : "";
31
31
  state.dueDateString = preset
32
32
  ? preset
33
33
  : date
@@ -46,16 +46,16 @@ const TaskCheckNewForm = (props) => {
46
46
  }
47
47
  async function onSubmit() {
48
48
  var _a;
49
- if (!state.params.Name)
49
+ if (!state.name)
50
50
  return message.warning("Title is required");
51
51
  runInAction(() => (state.loading = true));
52
52
  await tasks.create({
53
- data: { ...state.params, ParentId: props.parentId },
53
+ data: { Name: state.name, DueDate: state.dueDate, ParentId: props.parentId },
54
54
  error: "message",
55
55
  });
56
56
  runInAction(() => {
57
57
  state.loading = false;
58
- state.params = state.Params;
58
+ state.name = "";
59
59
  });
60
60
  (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
61
61
  return;
@@ -63,7 +63,8 @@ const TaskCheckNewForm = (props) => {
63
63
  // cancel add task
64
64
  function onCancel() {
65
65
  var _a;
66
- state.params = state.Params;
66
+ state.name = "";
67
+ state.dueDate = "";
67
68
  (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
68
69
  }
69
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EA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C9B,CAAC;oCACF,CAAC,EACD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,EACnD,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GACvB,CACG,CACD,CACD,CACK,CACN,CACD,CACF,CACN,CAAC,CAAC;IAEH,SAAS,SAAS,CAAC,CAAM;QACxB,IAAI,CAAC,CAAC,OAAO,KAAK,EAAE;YAAE,OAAO;QAC7B,QAAQ,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,UAAU,QAAQ;;QACtB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;YAAE,OAAO,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QACpE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC1C,MAAM,KAAK,CAAC,MAAM,CAAC;YAClB,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAS;YAC1D,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,MAAA,KAAK,CAAC,MAAM,qDAAI,CAAC;QACjB,OAAO;IACR,CAAC;IACD,kBAAkB;IAClB,SAAS,QAAQ;;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/index.tsx"],"names":[],"mappings":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IAAI,GAAG,EAAE,CAAC;QAChB,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;QACnB,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
@@ -1,16 +1,8 @@
1
1
  import { Dayjs } from "dayjs";
2
2
  export declare class State {
3
3
  constructor();
4
- Params: {
5
- Name: string;
6
- DueDate: string;
7
- InheritMembers: boolean;
8
- };
9
- params: {
10
- Name: string;
11
- DueDate: string;
12
- InheritMembers: boolean;
13
- };
4
+ name: string;
5
+ dueDate: string;
14
6
  loading: boolean;
15
7
  openDate: boolean;
16
8
  dueDateString?: string | Dayjs;
@@ -2,21 +2,17 @@ import { __decorate } from "tslib";
2
2
  import { makeObservable, observable } from "mobx";
3
3
  export class State {
4
4
  constructor() {
5
- Object.defineProperty(this, "Params", {
5
+ Object.defineProperty(this, "name", {
6
6
  enumerable: true,
7
7
  configurable: true,
8
8
  writable: true,
9
- value: {
10
- Name: "",
11
- DueDate: "",
12
- InheritMembers: false,
13
- }
9
+ value: ""
14
10
  });
15
- Object.defineProperty(this, "params", {
11
+ Object.defineProperty(this, "dueDate", {
16
12
  enumerable: true,
17
13
  configurable: true,
18
14
  writable: true,
19
- value: this.Params
15
+ value: ""
20
16
  });
21
17
  Object.defineProperty(this, "loading", {
22
18
  enumerable: true,
@@ -41,7 +37,10 @@ export class State {
41
37
  }
42
38
  __decorate([
43
39
  observable
44
- ], State.prototype, "params", void 0);
40
+ ], State.prototype, "name", void 0);
41
+ __decorate([
42
+ observable
43
+ ], State.prototype, "dueDate", void 0);
45
44
  __decorate([
46
45
  observable
47
46
  ], State.prototype, "loading", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,IAAI,EAAE,EAAE;gBACR,OAAO,EAAE,EAAE;gBACX,cAAc,EAAE,KAAK;aACrB;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAU,KAAK;WAAC;QAChB;;;;mBAAW,KAAK;WAAC;QACjB;;;;;WAA+B;QAVjD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAJmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;uCAAyB;AACjB;IAAlB,UAAU;4CAAuC"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGmB;;;;mBAAO,EAAE;WAAC;QACV;;;;mBAAU,EAAE;WAAC;QACb;;;;mBAAU,KAAK;WAAC;QAChB;;;;mBAAW,KAAK;WAAC;QACjB;;;;;WAA+B;QANjD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAMD;AALmB;IAAlB,UAAU;mCAAkB;AACV;IAAlB,UAAU;sCAAqB;AACb;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;uCAAyB;AACjB;IAAlB,UAAU;4CAAuC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.53",
3
+ "version": "6.0.55",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",