@voplus/morpho-workspace 6.0.43 → 6.0.44

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,13 +9,13 @@ import "./index.less";
9
9
  const TaskSimpleProperties = (props) => {
10
10
  /** 加class name 为了方便做integration tests */
11
11
  const classId = "task-properties";
12
- const { id, taskProperties } = props;
12
+ const { id, taskTitle, taskProperties } = props;
13
13
  const { user } = useApplicationContext();
14
14
  const task = useTask(id, { reload: true, includes: "tags,task-number-reports" });
15
15
  const taskStore = useTaskStore();
16
16
  const filterPro = taskProperties === null || taskProperties === void 0 ? void 0 : taskProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
17
17
  return observe(() => (React.createElement("div", { className: "properties-list task-simple-properties" },
18
- React.createElement(PropertiesSection, { properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", layout: "vertical", colon: false },
18
+ React.createElement(PropertiesSection, { title: taskTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", layout: "vertical", colon: false },
19
19
  React.createElement(Row, null, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Col, { key: i.name, span: 8 }, renderProp(i))))))) }))));
20
20
  function renderProp(item) {
21
21
  switch (item.name) {
@@ -48,7 +48,7 @@ const TaskSimpleProperties = (props) => {
48
48
  };
49
49
  TaskSimpleProperties.defaultProps = {
50
50
  taskTitle: "Task Properties",
51
- taskProperties: [{ name: "Done" }, { name: "Members" }, { name: "Due" }],
51
+ taskProperties: [{ name: "Members" }, { name: "Due" }, { name: "Done" }],
52
52
  };
53
53
  export default TaskSimpleProperties;
54
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskSimpleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;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AAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC;iCAC/E,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gCACf,GAAG,IAAI;gCACP,QAAQ,EAAE,IAAI;6BACd,CAAC,CAAC;yBACJ,EACD,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;4BACjB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;wBACpE,CAAC,GACA,CACS,CACZ,CAAC;YACH,KAAK,KAAK;gBACT,OAAO,CACN,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,KAAK,EAAC,SAAS,EAAE,OAAO,GAAG,MAAM;oBACjD,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,CAAC,EACxC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,GACvB,CACS,CACZ,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,SAAS,EAAE,iBAAiB;IAC5B,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;CACxE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskSimpleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B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1,6 +1,7 @@
1
1
  :global {
2
2
  .task-simple-properties.properties-list {
3
3
  height: auto;
4
+ padding-bottom: 8px;
4
5
  .properties-section-header {
5
6
  margin: 0 0 8px 0;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.43",
3
+ "version": "6.0.44",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",