@voplus/morpho-workspace 6.0.47 → 6.0.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/es/modules/meeting/components/MeetingProperties/index.js +9 -11
  2. package/es/modules/meeting/components/MeetingProperties/index.js.map +1 -1
  3. package/es/modules/pin/components/MyPinned/index.js +5 -14
  4. package/es/modules/pin/components/MyPinned/index.js.map +1 -1
  5. package/es/modules/pin/components/MyPinned/index.less +4 -0
  6. package/es/modules/pin/components/PinnedCardList/index.d.ts +3 -0
  7. package/es/modules/pin/components/PinnedCardList/index.js +9 -2
  8. package/es/modules/pin/components/PinnedCardList/index.js.map +1 -1
  9. package/es/modules/tasks/components/TaskProperties/index.js +16 -19
  10. package/es/modules/tasks/components/TaskProperties/index.js.map +1 -1
  11. package/es/modules/tasks/components/TaskSimpleProperties/index.js +22 -24
  12. package/es/modules/tasks/components/TaskSimpleProperties/index.js.map +1 -1
  13. package/es/modules/tasks/components/TaskSimpleProperties/index.less +5 -2
  14. package/es/modules/work/components/WorkErrorProperties/index.js +17 -21
  15. package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -1
  16. package/es/modules/work/components/WorksProperties/index.js +20 -24
  17. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  18. package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +26 -30
  19. package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js.map +1 -1
  20. package/es/modules/work/work-type/components/WorkTypeProperties/index.js +6 -2
  21. package/es/modules/work/work-type/components/WorkTypeProperties/index.js.map +1 -1
  22. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react";
2
2
  import { State } from "./state";
3
- import { DatePicker, Form, Tooltip } from "antd";
3
+ import { DatePicker, Tooltip } from "antd";
4
4
  import { InlineEdit, observe, PropertiesSection } from "@voplus/morpho-ui";
5
5
  import { faClock, faMapMarkerAlt, faStopwatch } from "@fortawesome/pro-light-svg-icons";
6
6
  import { useMeeting, useMeetingStore } from "../../../../data/meeting";
@@ -10,6 +10,7 @@ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
10
10
  import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
11
11
  import MeetingTasksProgressDataIcon from "../../controls/MeetingTasksProgressDataIcon";
12
12
  import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
13
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
13
14
  import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
14
15
  import relativeTime from "dayjs/plugin/relativeTime";
15
16
  import classnames from "classnames";
@@ -30,18 +31,16 @@ const MeetingProperties = (props) => {
30
31
  return observe(() => (React.createElement("div", { className: "properties-list" },
31
32
  headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
32
33
  React.createElement(Scrollbars, { autoHide: true },
33
- React.createElement(PropertiesSection, { title: mettingTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i)))))) }),
34
+ React.createElement(PropertiesSection, { title: mettingTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
34
35
  React.createElement(DocumentProperties, { id: id, fromLabelRequired: true, title: documentTitle, customProperties: documentProperties })))));
35
36
  function renderProp(item) {
36
37
  switch (item.name) {
37
38
  case "Progress":
38
- return (React.createElement(Form.Item, { label: "Progress", className: classId + "-progress" },
39
- React.createElement(MeetingTasksProgressDataIcon, { id: id, width: "200px" })));
39
+ return React.createElement(MeetingTasksProgressDataIcon, { id: id, width: "190px" });
40
40
  case "Members":
41
- return (React.createElement(Form.Item, { label: "Members", className: classId + "-members" },
42
- React.createElement(AvatarList, { organizationId: user.info.organizationId, list: meeting.members || [], editable: !meeting.readonly, multiple: true, onChange: onChangeMember })));
41
+ return (React.createElement(AvatarList, { organizationId: user.info.organizationId, list: meeting.members || [], editable: !meeting.readonly, multiple: true, onChange: onChangeMember }));
43
42
  case "Due Date":
44
- return (React.createElement(Form.Item, { label: "Due Date", className: classId + "-dueDate" }, editable && !meeting.readonly ? (React.createElement("div", { style: { padding: "5px 0" } },
43
+ return (React.createElement(React.Fragment, null, editable && !meeting.readonly ? (React.createElement("div", { style: { padding: "5px 0" } },
45
44
  React.createElement(DatePicker.RangePicker, { autoFocus: true, showTime: { format: "HH:mm" }, format: "YYYY-MM-DD HH:mm", value: [dayjs(meeting.startTime), dayjs(meeting.endTime)], open: open, onChange: onChangeDate, onOpenChange: onOpenChange, onOk: onOk }))) : (React.createElement("div", null,
46
45
  React.createElement(Tooltip, { title: meeting.startTime
47
46
  ? dayjs(meeting.startTime).format("YYYY-MM-DD HH:mm") +
@@ -57,10 +56,9 @@ const MeetingProperties = (props) => {
57
56
  React.createElement(FAIcon, { icon: faStopwatch }),
58
57
  dayjs(meeting.startTime).from(dayjs(meeting.endTime), true)))))));
59
58
  case "Enter Place":
60
- return (React.createElement(Form.Item, { label: "Enter Place", className: classId + "-enterPlace" },
61
- React.createElement(InlineEdit, { editable: !meeting.readonly, defaultValue: meeting.venue || "", content: (v) => (React.createElement(React.Fragment, null,
62
- React.createElement(FAIcon, { icon: faMapMarkerAlt, className: "margin-right-10" }),
63
- v.store.value ? (React.createElement("span", { className: "properties-value" }, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "Add Venue")))), onSave: (value) => onSave(value, meeting.venue || "", { Venue: value }) })));
59
+ return (React.createElement(InlineEdit, { editable: !meeting.readonly, defaultValue: meeting.venue || "", content: (v) => (React.createElement(React.Fragment, null,
60
+ React.createElement(FAIcon, { icon: faMapMarkerAlt, className: "margin-right-10" }),
61
+ v.store.value ? (React.createElement("span", { className: "properties-value" }, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "Add Venue")))), onSave: (value) => onSave(value, meeting.venue || "", { Venue: value }) }));
64
62
  }
65
63
  }
66
64
  async function onChangeMember(ids) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAI3B,MAAM,iBAAiB,GAAG,CAAC,KAU1B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,oBAAoB,CAAC;IAErC,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,kBA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,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,aAAa,EAAE;KACvB;CACD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAI3B,MAAM,iBAAiB,GAAG,CAAC,KAU1B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,O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AAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC;gBACjF,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC;aAC7E;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,OAAO,CAAC,KAAK,CAAC,CAAC;QACf,WAAW,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IACD,SAAS,YAAY,CAAC,KAAU,EAAE,UAAoB;QACrD,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3B,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IACD,SAAS,UAAU;QAClB,OAAO,CAAC,IAAI,CAAC,CAAC;QACd,WAAW,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,SAAS,YAAY,CAAC,IAAa;QAClC,WAAW,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;AACF,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,YAAY,EAAE,oBAAoB;IAClC,aAAa,EAAE,qBAAqB;IACpC,iBAAiB,EAAE;QAClB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,aAAa,EAAE;KACvB;CACD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -6,10 +6,10 @@ import { useOnDeleteDocument, useDocumentListEffect, } from "@voplus/morpho-docu
6
6
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
7
7
  import { useOnPinDocument, useOnUnPinDocument, useOnFlagChange, } from "@voplus/morpho-document-core/es/data/DocumentStore/hooks/pin-events";
8
8
  import { faExclamationCircle, faStar } from "@fortawesome/free-solid-svg-icons";
9
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
10
9
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
11
10
  import PropertiesView from "@voplus/morpho-document-core/es/components/PropertiesView";
12
11
  import PinnedCardList from "../PinnedCardList";
12
+ import { Skeleton } from "antd";
13
13
  import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
14
14
  import styles from "./index.less";
15
15
  import { State } from "./state";
@@ -43,19 +43,10 @@ const MyPinned = (props) => {
43
43
  React.createElement(PageHeader, { addAble: false, titleView: "My Pinned", sortable: true, quickSearch: true })),
44
44
  React.createElement("div", { className: "pinned-content" },
45
45
  React.createElement(Scrollbars, { autoHide: true },
46
- React.createElement("div", { className: "pinned-list" },
47
- React.createElement("span", { className: "pinned-list-title text-gray-700" },
48
- React.createElement(FAIcon, { icon: faStar, className: "margin-right-10" }),
49
- "Starred"),
50
- React.createElement(PinnedCardList, { list: state.starredList, onItemClick: onItemClick, className: classId + "-star" })),
51
- React.createElement("div", { className: "pinned-list" },
52
- React.createElement("span", { className: "pinned-list-title text-gray-700" },
53
- React.createElement(FAIcon, { icon: faExclamationCircle, className: "margin-right-10" }),
54
- "Urgent"),
55
- React.createElement(PinnedCardList, { list: state.urgentList, onItemClick: onItemClick, className: classId + "-urgent" })),
56
- React.createElement("div", { className: "pinned-list" },
57
- React.createElement("span", { className: "pinned-list-title text-gray-700" }, "Others"),
58
- React.createElement(PinnedCardList, { list: state.othersList, onItemClick: onItemClick, className: classId + "-others" })))))))));
46
+ React.createElement(Skeleton, { loading: list.loading },
47
+ React.createElement(PinnedCardList, { icon: faStar, title: "Starred", list: state.starredList, onItemClick: onItemClick }),
48
+ React.createElement(PinnedCardList, { icon: faExclamationCircle, title: "Urgent", list: state.urgentList, onItemClick: onItemClick }),
49
+ React.createElement(PinnedCardList, { title: "Others", list: state.othersList, onItemClick: onItemClick })))))))));
59
50
  function onItemClick(id) {
60
51
  var _a;
61
52
  asideContext.openAside(React.createElement(PropertiesView, { id: id }), { span: 12 });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/pin/components/MyPinned/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAEN,mBAAmB,EACnB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EACN,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,GACf,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,cAAc,MAAM,2DAA2D,CAAC;AACvF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,QAAQ,GAAG,CAAC,KAIjB,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,aAAa,CAAC;IAC9B,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9D,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAA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Ae,QAAQ,CAAC"}
@@ -29,6 +29,10 @@
29
29
  padding: 0 12px;
30
30
  }
31
31
  }
32
+
33
+ .ant-skeleton {
34
+ padding: 20px;
35
+ }
32
36
  }
33
37
  }
34
38
  }
@@ -1,7 +1,10 @@
1
1
  import { IDocument } from "@voplus/morpho-document-core";
2
2
  import React from "react";
3
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
3
4
  declare const PinnedCardList: (props: {
4
5
  list: IDocument[];
6
+ title: string;
7
+ icon?: IconProp | undefined;
5
8
  onItemClick?: ((id: string) => void) | undefined;
6
9
  className?: string | undefined;
7
10
  }) => React.JSX.Element;
@@ -2,13 +2,20 @@ import { useMetaStore } from "@voplus/morpho-document-core";
2
2
  import React, { useState } from "react";
3
3
  import { observe } from "@voplus/morpho-ui";
4
4
  import classnames from "classnames";
5
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
6
  import CustomIcon from "@voplus/morpho-ui/es/controls/CustomIconList/CustomIcon";
6
7
  import { Empty } from "antd";
7
8
  const PinnedCardList = (props) => {
8
- const { list } = props;
9
+ /** 加class name 为了方便做integration tests */
10
+ const classId = "pinned-list";
11
+ const { list, icon, title } = props;
9
12
  const [active, setActive] = useState("");
10
13
  const meta = useMetaStore();
11
- return observe(() => (React.createElement("div", { className: classnames("custom-icon-list", props.className) }, list.length !== 0 ? (list.map((item) => (React.createElement(CustomIcon, { key: item.id, id: item.id, name: item.name, icon: meta.getIcon(item), onClickItem: onClickItem, className: active === item.id ? "active" : "" })))) : (React.createElement(Empty, { className: "empty-style" })))));
14
+ return observe(() => (React.createElement("div", { className: "pinned-list" },
15
+ React.createElement("span", { className: "pinned-list-title text-gray-700" },
16
+ icon && React.createElement(FAIcon, { icon: icon, className: "margin-right-10" }),
17
+ title),
18
+ React.createElement("div", { className: classnames("custom-icon-list", `${classId}-${title}`) }, list.length ? (list.map((item) => (React.createElement(CustomIcon, { key: item.id, id: item.id, name: item.name, icon: meta.getIcon(item), onClickItem: onClickItem, className: active === item.id ? "active" : "" })))) : (React.createElement(Empty, { className: "empty-style" }))))));
12
19
  function onClickItem(id) {
13
20
  var _a;
14
21
  setActive(id);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/pin/components/PinnedCardList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,UAAU,MAAM,yDAAyD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,MAAM,cAAc,GAAG,CAAC,KAIvB,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEzC,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAE5B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,IAC7D,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CACpB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAClB,oBAAC,UAAU,IACV,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAG,EACZ,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EACxB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC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iBAAiB,GAAG;YAC1D,KAAK,CACA;QACP,6BAAK,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE,GAAG,OAAO,IAAI,KAAK,EAAE,CAAC,IACnE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAClB,oBAAC,UAAU,IACV,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EACxB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAC5C,CACF,CAAC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,SAAS,EAAC,aAAa,GAAG,CACjC,CACI,CACD,CACN,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,EAAU;;QAC9B,SAAS,CAAC,EAAE,CAAC,CAAC;QACd,MAAA,KAAK,CAAC,WAAW,sDAAG,EAAE,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import React, { useEffect, useState } from "react";
2
- import { Form, message } from "antd";
2
+ import { message } from "antd";
3
3
  import { useTask, useTaskStore } from "@voplus/morpho-document-core";
4
4
  import { autorun } from "mobx";
5
5
  import { observe, PropertiesSection } from "@voplus/morpho-ui";
6
6
  import { useApplicationContext } from "@voplus/morpho-data";
7
7
  import { Scrollbars } from "react-custom-scrollbars-2";
8
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
8
9
  import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
9
10
  import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
10
11
  import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
@@ -26,30 +27,26 @@ const TaskProperties = (props) => {
26
27
  headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
27
28
  React.createElement(Scrollbars, { autoHide: true },
28
29
  React.createElement(DescriptionEditor, { id: id, description: task.description, readonly: task.readonly }),
29
- React.createElement(PropertiesSection, { title: taskTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i)))))) }),
30
+ React.createElement(PropertiesSection, { title: taskTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
30
31
  React.createElement(DocumentProperties, { id: id, fromLabelRequired: true, title: documentTitle, customProperties: documentProperties })))));
31
32
  function renderProp(item) {
32
33
  switch (item.name) {
33
34
  case "Status":
34
- return task.taskNumbers > 0 ? (React.createElement(Form.Item, { label: "Progress", className: classId + "-progress" },
35
- React.createElement(TasksProgressDataIcon, { id: id }))) : (React.createElement(Form.Item, { label: "Status", className: classId + "-status" },
36
- React.createElement(TaskStatusLabel, { status: taskStatus, editable: !task.readonly, onChange: (TaskStatus) => onEdit(TaskStatus) })));
35
+ return task.taskNumbers > 0 ? (React.createElement(TasksProgressDataIcon, { id: id })) : (React.createElement(TaskStatusLabel, { status: taskStatus, editable: !task.readonly, onChange: (TaskStatus) => onEdit(TaskStatus) }));
37
36
  case "Members":
38
- return (React.createElement(Form.Item, { label: "Members", className: classId + "-members" },
39
- React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: !task.readonly, multiple: true, list: [
40
- ...(task.members || []),
41
- ...(task.childMembers || [])
42
- .filter((item) => !(task.members || []).some((member) => member.id === item.id))
43
- .map((item) => ({
44
- ...item,
45
- disabled: true,
46
- })),
47
- ], onChange: (ids) => {
48
- taskStore.edit(id, { data: { MemberIds: ids }, error: "message" });
49
- } })));
37
+ return (React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: !task.readonly, multiple: true, list: [
38
+ ...(task.members || []),
39
+ ...(task.childMembers || [])
40
+ .filter((item) => !(task.members || []).some((member) => member.id === item.id))
41
+ .map((item) => ({
42
+ ...item,
43
+ disabled: true,
44
+ })),
45
+ ], onChange: (ids) => {
46
+ taskStore.edit(id, { data: { MemberIds: ids }, error: "message" });
47
+ } }));
50
48
  case "Due":
51
- return (React.createElement(Form.Item, { label: "Due", className: classId + "-due" },
52
- React.createElement(TaskEstimatedTime, { id: id, estimatedHours: task.estimatedHours || 0, startDate: task.startDate, dueDate: task.dueDate, editable: !task.readonly })));
49
+ return (React.createElement(TaskEstimatedTime, { id: id, estimatedHours: task.estimatedHours || 0, startDate: task.startDate, dueDate: task.dueDate, editable: !task.readonly }));
53
50
  }
54
51
  }
55
52
  /** task edit TaskStatus */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,iBAAiB,MAAM,uDAAuD,C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AE;YACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAChC,CAAC;AACF,CAAC,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG;IAC7B,SAAS,EAAE,iBAAiB;IAC5B,aAAa,EAAE,qBAAqB;IACpC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;CAC1E,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import React from "react";
2
- import { Form, message, Row, Col, Checkbox } from "antd";
2
+ import { message, Row, Col, Checkbox } from "antd";
3
3
  import { useTask, useTaskStore } from "@voplus/morpho-document-core";
4
4
  import { observe, PropertiesSection } from "@voplus/morpho-ui";
5
5
  import { useApplicationContext } from "@voplus/morpho-data";
6
6
  import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
7
7
  import TaskEstimatedTime from "../TaskEstimatedTime";
8
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
8
9
  import "./index.less";
9
10
  const TaskSimpleProperties = (props) => {
10
11
  /** 加class name 为了方便做integration tests */
@@ -15,34 +16,31 @@ const TaskSimpleProperties = (props) => {
15
16
  const taskStore = useTaskStore();
16
17
  const filterPro = taskProperties === null || taskProperties === void 0 ? void 0 : taskProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
17
18
  return observe(() => (React.createElement("div", { className: "properties-list task-simple-properties" },
18
- React.createElement(PropertiesSection, { title: taskTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", layout: "vertical", colon: false },
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))))))) }))));
19
+ React.createElement(PropertiesSection, { title: taskTitle, properties: () => (React.createElement(Row, null, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Col, { key: i.name, span: 8 },
20
+ React.createElement(Prop, { key: i.name, label: i.name, flow: "vertical", className: `${classId}-${i.name}` }, renderProp(i))))))) }))));
20
21
  function renderProp(item) {
21
22
  switch (item.name) {
22
23
  case "Done":
23
- return (React.createElement(Form.Item, { label: "Done", className: classId + "-done" },
24
- React.createElement(Checkbox, { checked: task.taskStatus === "Done", onChange: async (e) => {
25
- await taskStore.edit(task.id, {
26
- data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
27
- error: (error) => message.error(error.message),
28
- });
29
- } })));
24
+ return (React.createElement(Checkbox, { checked: task.taskStatus === "Done", onChange: async (e) => {
25
+ await taskStore.edit(task.id, {
26
+ data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
27
+ error: (error) => message.error(error.message),
28
+ });
29
+ } }));
30
30
  case "Members":
31
- return (React.createElement(Form.Item, { label: "Members", className: classId + "-members" },
32
- React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: !task.readonly, multiple: true, list: [
33
- ...(task.members || []),
34
- ...(task.childMembers || [])
35
- .filter((item) => !(task.members || []).some((member) => member.id === item.id))
36
- .map((item) => ({
37
- ...item,
38
- disabled: true,
39
- })),
40
- ], onChange: (ids) => {
41
- taskStore.edit(id, { data: { MemberIds: ids }, error: "message" });
42
- } })));
31
+ return (React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: !task.readonly, multiple: true, list: [
32
+ ...(task.members || []),
33
+ ...(task.childMembers || [])
34
+ .filter((item) => !(task.members || []).some((member) => member.id === item.id))
35
+ .map((item) => ({
36
+ ...item,
37
+ disabled: true,
38
+ })),
39
+ ], onChange: (ids) => {
40
+ taskStore.edit(id, { data: { MemberIds: ids }, error: "message" });
41
+ } }));
43
42
  case "Due":
44
- return (React.createElement(Form.Item, { label: "Due", className: classId + "-due" },
45
- React.createElement(TaskEstimatedTime, { id: id, estimatedHours: task.estimatedHours || 0, startDate: task.startDate, dueDate: task.dueDate, editable: !task.readonly })));
43
+ return (React.createElement(TaskEstimatedTime, { id: id, estimatedHours: task.estimatedHours || 0, startDate: task.startDate, dueDate: task.dueDate, editable: !task.readonly }));
46
44
  }
47
45
  }
48
46
  };
@@ -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;AACzD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,cAAc,CAAC;AAItB,MAAM,oBAAoB,GAAG,CAAC,KAU7B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,iBAAiB,CAAC;IAElC,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,0BAA0B,EAAE,CAAC,CAAC;IACjF,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,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J,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,SAAS,EAAE,iBAAiB;IAC5B,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CACxE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -8,8 +8,11 @@
8
8
  .properties-section-icon {
9
9
  display: none;
10
10
  }
11
- .ant-form-item {
12
- margin: 0;
11
+ .prop-item {
12
+ margin-bottom: 0;
13
+ .prop-item-label {
14
+ margin-bottom: 5px;
15
+ }
13
16
  }
14
17
  }
15
18
  }
@@ -1,11 +1,11 @@
1
1
  import React, { useEffect, useState } from "react";
2
- import { Form } from "antd";
3
2
  import { InlineEdit, observe, PropertiesSection } from "@voplus/morpho-ui";
4
3
  import { useWorkError, useWorkErrorStore } from "../../../../data/workerror";
5
4
  import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
6
5
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
6
  import { useApplicationContext } from "@voplus/morpho-data";
8
7
  import { State } from "./state";
8
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
9
9
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
10
10
  import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
11
11
  import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
@@ -30,35 +30,31 @@ const WorkErrorProperties = (props) => {
30
30
  React.createElement("div", { className: "title" }, workerror.type),
31
31
  React.createElement(ToolBar, { id: id, showMenu: false },
32
32
  React.createElement(WorkErrorMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
33
- React.createElement(PropertiesSection, { title: workErrorTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i)))))) }))));
33
+ React.createElement(PropertiesSection, { title: workErrorTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }))));
34
34
  async function save(params) {
35
35
  await store.edit(id, { data: params, error: "message" });
36
36
  }
37
37
  function renderProp(item) {
38
38
  switch (item.name) {
39
39
  case "Type":
40
- return (React.createElement(Form.Item, { label: "Type", className: classId + "-type" },
41
- React.createElement(InlineEdit, { showEditIcon: state.showEditIcon, defaultValue: workerror.type, editable: false, content: (v) => state.editType ? (React.createElement(WorkErrorSelect, { open: true, autoFocus: true, workTypeId: workerror === null || workerror === void 0 ? void 0 : workerror.workTypeId, defaultValue: workerror.type, onChange: async (value) => {
42
- await save({ Type: value });
43
- state.onBulurType();
44
- }, onBlur: () => state.onBulurType() })) : workerror.type ? (React.createElement("span", { className: "properties-value" }, workerror.type)) : (React.createElement("span", { className: "add-info-style" }, "ADD Type")), onEditIconClick: () => state.onEditType() })));
40
+ return (React.createElement(InlineEdit, { showEditIcon: state.showEditIcon, defaultValue: workerror.type, editable: false, content: (v) => state.editType ? (React.createElement(WorkErrorSelect, { open: true, autoFocus: true, workTypeId: workerror === null || workerror === void 0 ? void 0 : workerror.workTypeId, defaultValue: workerror.type, onChange: async (value) => {
41
+ await save({ Type: value });
42
+ state.onBulurType();
43
+ }, onBlur: () => state.onBulurType() })) : workerror.type ? (React.createElement("span", { className: "properties-value" }, workerror.type)) : (React.createElement("span", { className: "add-info-style" }, "ADD Type")), onEditIconClick: () => state.onEditType() }));
45
44
  case "Severity":
46
- return (React.createElement(Form.Item, { label: "Severity", className: classId + "-severity" },
47
- React.createElement(InlineEdit, { showEditIcon: state.showEditIcon, defaultValue: workerror.severity, editable: false, content: (v) => state.editSeverity ? (React.createElement(SeveritySelect, { open: true, autoFocus: true, defaultValue: workerror.severity, onChange: async (value) => {
48
- await save({ Severity: value });
49
- state.onBulurSeverity();
50
- }, onBlur: () => state.onBulurSeverity() })) : workerror.severity ? (React.createElement("span", { className: "properties-value" }, workerror.severity)) : (React.createElement("span", { className: "add-info-style" }, "ADD Severity")), onEditIconClick: () => state.onEditSeverity() })));
45
+ return (React.createElement(InlineEdit, { showEditIcon: state.showEditIcon, defaultValue: workerror.severity, editable: false, content: (v) => state.editSeverity ? (React.createElement(SeveritySelect, { open: true, autoFocus: true, defaultValue: workerror.severity, onChange: async (value) => {
46
+ await save({ Severity: value });
47
+ state.onBulurSeverity();
48
+ }, onBlur: () => state.onBulurSeverity() })) : workerror.severity ? (React.createElement("span", { className: "properties-value" }, workerror.severity)) : (React.createElement("span", { className: "add-info-style" }, "ADD Severity")), onEditIconClick: () => state.onEditSeverity() }));
51
49
  case "Incident Date":
52
- return (React.createElement(Form.Item, { label: "Incident Date", className: classId + "-incidentDate" },
53
- React.createElement(InlineEdit, { defaultValue: workerror.incidentDate ? dayjs(workerror.incidentDate) : undefined, content: (v) => workerror.incidentDate ? (React.createElement("span", { className: "properties-value" }, dayjs(workerror.incidentDate).format("DD MMM YYYY"))) : (React.createElement("span", { className: "add-info-style" }, "Add Date")), editor: DateInputEditor, onSave: (v) => {
54
- // date未变更不保存
55
- if (dayjs(v).isSame(workerror.incidentDate, "day"))
56
- return;
57
- save({ IncidentDate: dayjs(v).format("YYYY-MM-DD") });
58
- } })));
50
+ return (React.createElement(InlineEdit, { defaultValue: workerror.incidentDate ? dayjs(workerror.incidentDate) : undefined, content: (v) => workerror.incidentDate ? (React.createElement("span", { className: "properties-value" }, dayjs(workerror.incidentDate).format("DD MMM YYYY"))) : (React.createElement("span", { className: "add-info-style" }, "Add Date")), editor: DateInputEditor, onSave: (v) => {
51
+ // date未变更不保存
52
+ if (dayjs(v).isSame(workerror.incidentDate, "day"))
53
+ return;
54
+ save({ IncidentDate: dayjs(v).format("YYYY-MM-DD") });
55
+ } }));
59
56
  case "Causers":
60
- return (React.createElement(Form.Item, { label: "Causers", className: classId + "-causers" },
61
- React.createElement(AvatarList, { list: workerror.causers || [], multiple: true, buttonText: "Ok", organizationId: user.info.organizationId, onChange: (ids) => save({ CauserIds: ids }) })));
57
+ return (React.createElement(AvatarList, { list: workerror.causers || [], multiple: true, buttonText: "Ok", organizationId: user.info.organizationId, onChange: (ids) => save({ CauserIds: ids }) }));
62
58
  }
63
59
  }
64
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,mBAAmB,GAAG,CAAC,KAW5B,EAAE,EAAE;IACJ,yCA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C,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,GACpD,CACS,CACZ,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,cAAc,EAAE,uBAAuB;IACvC,aAAa,EAAE,qBAAqB;IACpC,mBAAmB,EAAE;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,eAAe,EAAE;QACzB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,MAAM,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react";
2
- import { Avatar, Form } from "antd";
2
+ import { Avatar } from "antd";
3
3
  import { InlineEdit, observe, PropertiesSection, UTCDatePicker as DatePicker, } 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";
7
7
  import { runInAction } from "mobx";
8
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
8
9
  import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
9
10
  import NodeLink from "../../../../controls/NodeLink";
10
11
  import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
@@ -35,7 +36,7 @@ const WorksProperties = (props) => {
35
36
  headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
36
37
  React.createElement(Scrollbars, { autoHide: true },
37
38
  React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly }),
38
- React.createElement(PropertiesSection, { title: workTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i)))))) }),
39
+ React.createElement(PropertiesSection, { title: workTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
39
40
  React.createElement(DocumentProperties, { id: id, fromLabelRequired: true, title: documentTitle, customProperties: documentProperties })),
40
41
  state.ownerEditable && (React.createElement(ChangeAvatarDialog, { title: "Change Owner Dialog", person: work.owners || [], onCancel: () => runInAction(() => (state.ownerEditable = false)), onSave: (ids) => state.ownerEdit(ids) })),
41
42
  state.contactEditable && (
@@ -53,34 +54,29 @@ const WorksProperties = (props) => {
53
54
  var _a, _b;
54
55
  switch (item.name) {
55
56
  case "Status":
56
- return (React.createElement(Form.Item, { label: "Status", className: classId + "-status" },
57
- React.createElement(WorkStatusLabel, { status: work.workStatus, editable: !work.readonly, onChange: (workStatus) => state.workStatusEdit(workStatus) })));
57
+ return (React.createElement(WorkStatusLabel, { status: work.workStatus, editable: !work.readonly, onChange: (workStatus) => state.workStatusEdit(workStatus) }));
58
58
  case "Contact":
59
- return (React.createElement(Form.Item, { label: "Contact", className: classId + "-contact" },
60
- React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.contactEditable = true)), content: (v) => {
61
- var _a, _b;
62
- return work.contact ? (React.createElement(ToolBar, { id: (_a = work.contact) === null || _a === void 0 ? void 0 : _a.id, moreProps: {
63
- id: (_b = work.contact) === null || _b === void 0 ? void 0 : _b.id,
64
- children: (context) => (React.createElement(UnitReference, { unit: work.contact, symbol: true, onClick: () => (context.open = false) })),
65
- } })) : (noData);
66
- } })));
59
+ return (React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.contactEditable = true)), content: (v) => {
60
+ var _a, _b;
61
+ return work.contact ? (React.createElement(ToolBar, { id: (_a = work.contact) === null || _a === void 0 ? void 0 : _a.id, moreProps: {
62
+ id: (_b = work.contact) === null || _b === void 0 ? void 0 : _b.id,
63
+ children: (context) => (React.createElement(UnitReference, { unit: work.contact, symbol: true, onClick: () => (context.open = false) })),
64
+ } })) : (noData);
65
+ } }));
67
66
  case "Document":
68
- return (React.createElement(Form.Item, { label: "Document", className: classId + "-document" }, ((_a = work.document) === null || _a === void 0 ? void 0 : _a.id) ? React.createElement(DocumentReference, { file: work.document }) : noData));
67
+ return ((_a = work.document) === null || _a === void 0 ? void 0 : _a.id) ? React.createElement(DocumentReference, { file: work.document }) : noData;
69
68
  case "Due":
70
- return (React.createElement(Form.Item, { label: "Due", className: classId + "-due" }, state.dueDateEditable ? (React.createElement(DatePicker, { defaultValue: dayjs(work.due), bordered: false, onChange: (date, dateString) => state.dueDateEdit(date, dateString) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.dueDateEditable = true)) }, work.due ? (React.createElement("span", { className: "properties-value" }, dayjs(work.due).format("DD MMM YYYY"))) : (noData)))));
69
+ return state.dueDateEditable ? (React.createElement(DatePicker, { defaultValue: dayjs(work.due), bordered: false, onChange: (date, dateString) => state.dueDateEdit(date, dateString) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.dueDateEditable = true)) }, work.due ? (React.createElement("span", { className: "properties-value" }, dayjs(work.due).format("DD MMM YYYY"))) : (noData)));
71
70
  case "Owner":
72
- return (React.createElement(Form.Item, { label: "Owner", className: classId + "-owner" },
73
- React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.ownerEditable = true)), content: (v) => {
74
- var _a;
75
- return work.owners || state.ownerEditable ? (React.createElement(Avatar.Group, null, (_a = work.owners) === null || _a === void 0 ? void 0 : _a.map((item, index) => (React.createElement(UnitReference, { key: item.id, unit: item },
76
- React.createElement(AvatarItem, { unit: item, index: index })))))) : (noData);
77
- } })));
71
+ return (React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.ownerEditable = true)), content: (v) => {
72
+ var _a;
73
+ return work.owners || state.ownerEditable ? (React.createElement(Avatar.Group, null, (_a = work.owners) === null || _a === void 0 ? void 0 : _a.map((item, index) => (React.createElement(UnitReference, { key: item.id, unit: item },
74
+ React.createElement(AvatarItem, { unit: item, index: index })))))) : (noData);
75
+ } }));
78
76
  case "Work Type":
79
- return (React.createElement(Form.Item, { label: "Work Type", className: classId + "-workType" },
80
- React.createElement(NodeLink, { node: work.workType, url: `/work-types-page/${(_b = work.workType) === null || _b === void 0 ? void 0 : _b.id}` })));
77
+ return React.createElement(NodeLink, { node: work.workType, url: `/work-types-page/${(_b = work.workType) === null || _b === void 0 ? void 0 : _b.id}` });
81
78
  case "Number":
82
- return (React.createElement(Form.Item, { label: "Number", className: classId + "-number" },
83
- React.createElement("span", { className: "properties-value" }, work.number)));
79
+ return React.createElement("span", { className: "properties-value" }, work.number);
84
80
  }
85
81
  }
86
82
  };
@@ -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,IAAI,EAAE,MAAM,MAAM,CAAC;AACpC,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,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,QAAQ,MAAM,+BAA+B,CAAC;AACrD,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,iBAAiB,MAAM,+EAA+E,CAAC;AAC9G,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,eAAe,GAAG,CAAC,KAUxB,EAAE,EAAE;IACJ,yCAAyC;IACzC,MA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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
+ {"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,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,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,mD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MAAM,CAAC,KAAK,QACX,MAAA,IAAI,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,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"}
@@ -4,7 +4,7 @@ import { useWorkSchedule, useWorkScheduleStore } from "../../../../../data/work-
4
4
  import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
5
5
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
6
  import { Scrollbars } from "react-custom-scrollbars-2";
7
- import { Form } from "antd";
7
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
8
8
  import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
9
9
  import ReferenceList from "@voplus/morpho-document/es/controls/ReferenceList";
10
10
  import MentionList from "@voplus/morpho-org/es/controls/MentionList";
@@ -34,43 +34,39 @@ const WorkScheduleProperties = (props) => {
34
34
  React.createElement(ToolBar, { id: id, showMenu: false },
35
35
  React.createElement(WorkScheduleMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
36
36
  React.createElement(Scrollbars, { autoHide: true },
37
- React.createElement(PropertiesSection, { title: "Verification Information", properties: (labelCol) => React.createElement(VerificationInformation, { id: id, labelCol: labelCol }) }),
38
- React.createElement(PropertiesSection, { title: workScheduleTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i)))))) }))));
37
+ React.createElement(VerificationInformation, { id: id }),
38
+ React.createElement(PropertiesSection, { title: workScheduleTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }))));
39
39
  });
40
40
  function renderProp(item) {
41
41
  var _a, _b, _c;
42
42
  switch (item.name) {
43
43
  case "Schedule":
44
- return (React.createElement(Form.Item, { label: "Schedule", className: classId + "-schedule" },
45
- React.createElement(InlineEdit, { defaultValue: workSchedule.schedule ? dayjs(workSchedule.schedule) : undefined, content: (v) => workSchedule.schedule ? (React.createElement("span", { className: "properties-value" }, dayjs(workSchedule.schedule).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Schedule")), editor: DateInputEditor, onSave: (date) => {
46
- if (workSchedule.schedule && dayjs(date).isSame(workSchedule.schedule, "day"))
47
- return;
48
- store.edit(props.id, {
49
- data: { Schedule: date !== null ? dayjs(date).format("YYYY-MM-DD") : "" },
50
- });
51
- } })));
44
+ return (React.createElement(InlineEdit, { defaultValue: workSchedule.schedule ? dayjs(workSchedule.schedule) : undefined, content: (v) => workSchedule.schedule ? (React.createElement("span", { className: "properties-value" }, dayjs(workSchedule.schedule).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Schedule")), editor: DateInputEditor, onSave: (date) => {
45
+ if (workSchedule.schedule && dayjs(date).isSame(workSchedule.schedule, "day"))
46
+ return;
47
+ store.edit(props.id, {
48
+ data: { Schedule: date !== null ? dayjs(date).format("YYYY-MM-DD") : "" },
49
+ });
50
+ } }));
52
51
  case "WorkType":
53
- return (React.createElement(Form.Item, { label: "Work Type", className: classId + "-workType" },
54
- React.createElement(FolderEdit, { showEditIcon: showWorkTypeEditIcon, onEditIconClick: onEditWorkType }, workTypeEditable ? (React.createElement(WorkTypeSelect, { open: true, autoFocus: true, onChange: (_, data) => store
55
- .edit(id, {
56
- data: { WorkTypeId: data.id },
57
- error: "message",
58
- })
59
- .then(onBulurWorkType), onBlur: onBulurWorkType })) : (React.createElement("span", { className: classnames("properties-value", {
60
- "add-info-style": !((_a = workSchedule.workType) === null || _a === void 0 ? void 0 : _a.name),
61
- }) }, ((_b = workSchedule.workType) === null || _b === void 0 ? void 0 : _b.name) || "Select Work Type")))));
52
+ return (React.createElement(FolderEdit, { showEditIcon: showWorkTypeEditIcon, onEditIconClick: onEditWorkType }, workTypeEditable ? (React.createElement(WorkTypeSelect, { open: true, autoFocus: true, onChange: (_, data) => store
53
+ .edit(id, {
54
+ data: { WorkTypeId: data.id },
55
+ error: "message",
56
+ })
57
+ .then(onBulurWorkType), onBlur: onBulurWorkType })) : (React.createElement("span", { className: classnames("properties-value", {
58
+ "add-info-style": !((_a = workSchedule.workType) === null || _a === void 0 ? void 0 : _a.name),
59
+ }) }, ((_b = workSchedule.workType) === null || _b === void 0 ? void 0 : _b.name) || "Select Work Type"))));
62
60
  case "Work":
63
- return (React.createElement(Form.Item, { label: "Work", className: classId + "-work" },
64
- React.createElement(ReferenceList, { canEdit: false, placeholder: "no work", document: workSchedule.work ? [workSchedule.work] : [] })));
61
+ return (React.createElement(ReferenceList, { canEdit: false, placeholder: "no work", document: workSchedule.work ? [workSchedule.work] : [] }));
65
62
  case "Owner":
66
- return (React.createElement(Form.Item, { label: "Owner", className: classId + "-owner" },
67
- React.createElement(MentionList, { placeholder: "Select WorkSchedule Owner", contacts: ((_c = workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.owners) === null || _c === void 0 ? void 0 : _c.length) ? workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.owners : [], onChange: (list) => {
68
- list.map((i) => ownerIds.push(i.id));
69
- store.edit(id, {
70
- data: { OwnerIds: ownerIds },
71
- error: "message",
72
- });
73
- } })));
63
+ return (React.createElement(MentionList, { placeholder: "Select WorkSchedule Owner", contacts: ((_c = workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.owners) === null || _c === void 0 ? void 0 : _c.length) ? workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.owners : [], onChange: (list) => {
64
+ list.map((i) => ownerIds.push(i.id));
65
+ store.edit(id, {
66
+ data: { OwnerIds: ownerIds },
67
+ error: "message",
68
+ });
69
+ } }));
74
70
  }
75
71
  }
76
72
  function onEditWorkType() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAA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aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAClE,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;4BACH,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;4BACrC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;gCACd,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;gCAC5B,KAAK,EAAE,SAAS;6BAChB,CAAC,CAAC;wBACJ,CAAC,GACA,CACS,CACZ,CAAC;QACJ,CAAC;IACF,CAAC;IAED,SAAS,cAAc;QACtB,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC1B,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,SAAS,eAAe;QACvB,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC9B,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;AACF,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,iBAAiB,EAAE,yBAAyB;IAC5C,sBAAsB,EAAE;QACvB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE;KAChB;CACD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAA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C,CAAC;IAC5B,CAAC;AACF,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,iBAAiB,EAAE,yBAAyB;IAC5C,sBAAsB,EAAE;QACvB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE;KAChB;CACD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -2,11 +2,15 @@ import { InlineEdit, observe } from "@voplus/morpho-ui";
2
2
  import Properties from "./Properties";
3
3
  import React, { useState } from "react";
4
4
  import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
5
+ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
6
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
5
7
  import { Form } from "antd";
6
8
  import { Scrollbars } from "react-custom-scrollbars-2";
7
9
  import { State } from "./state";
8
10
  import classnames from "classnames";
9
11
  const WorkTypeProperties = (props) => {
12
+ /** 加class name 为了方便做integration tests */
13
+ const classId = "workType-properties";
10
14
  const { id, workTypeProperties } = props;
11
15
  const store = useWorkTypeStore();
12
16
  const [state] = useState(new State(store));
@@ -18,8 +22,8 @@ const WorkTypeProperties = (props) => {
18
22
  React.createElement("div", { className: "title" },
19
23
  React.createElement(InlineEdit, { defaultValue: worktype === null || worktype === void 0 ? void 0 : worktype.name, content: (v) => React.createElement("div", null, worktype === null || worktype === void 0 ? void 0 : worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) })))),
20
24
  React.createElement(Scrollbars, { autoHide: true },
21
- React.createElement(Form, { form: form, labelAlign: "left", colon: false, labelCol: { span: 6 }, scrollToFirstError: true }, workTypeProperties === null || workTypeProperties === void 0 ? void 0 : workTypeProperties.map((i) => (React.createElement(Form.Item, { key: i, label: i, className: `workType-properties-${titleCase(i)}` },
22
- React.createElement(Properties, { id: id, propertiesName: i })))))))));
25
+ React.createElement(PropertiesSection, { properties: () => workTypeProperties === null || workTypeProperties === void 0 ? void 0 : workTypeProperties.map((i) => (React.createElement(Prop, { key: i, label: i, className: `${classId}-${i}` },
26
+ React.createElement(Properties, { id: id, propertiesName: i })))) })))));
23
27
  /** 转换 */
24
28
  function titleCase(str) {
25
29
  const str1 = str.replace(" ", "");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,UAAsC,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,kBAAkB,GAAG,CAAC,KAI3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3C,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEvB,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAE9B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,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,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,MAAM,EAAE,IAAI;IACZ,kBAAkB,EAAE;QACnB,YAAY;QACZ,eAAe;QACf,QAAQ;QACR,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,WAAW;QACX,WAAW;QACX,eAAe;QACf,aAAa;KACb;CACD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,UAAsC,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,kBAAkB,GAAG,CAAC,KAI3B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,qBAAqB,CAAC;IACtC,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAA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AAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,MAAM,EAAE,IAAI;IACZ,kBAAkB,EAAE;QACnB,YAAY;QACZ,eAAe;QACf,QAAQ;QACR,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,WAAW;QACX,WAAW;QACX,eAAe;QACf,aAAa;KACb;CACD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.47",
3
+ "version": "6.0.48",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",