@voplus/morpho-workspace 6.0.118 → 6.0.119

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const NotificationItem: (props: {
4
+ id: string;
5
+ onClick?: () => void;
6
+ }) => React.JSX.Element;
7
+ export default NotificationItem;
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { useNotifications } from "../../../../data/notification";
4
+ import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
5
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
6
+ import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
7
+ import NotificationMenu from "../../controls/NotificationMenu";
8
+ import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
9
+ import NotificationStatusLabel from "../../controls/NotificationStatusLabel";
10
+ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
11
+ import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
12
+ import Routes from "../../../Routes";
13
+ import "./index.less";
14
+ const NotificationItem = (props) => {
15
+ const { id } = props;
16
+ const notification = useNotifications(id);
17
+ return observe(() => (React.createElement(ItemFunction, { className: "all-new-notification-item", onClick: props.onClick },
18
+ React.createElement(ColumnItem, { className: "notification-column-item" },
19
+ React.createElement(ColumnItemCol, { span: 8 },
20
+ React.createElement("div", { className: "notification-item-name" }, notification.subject)),
21
+ React.createElement(ColumnItemCol, { span: 4 },
22
+ React.createElement(AvatarList, { editable: false, list: [], maxCount: 4 })),
23
+ React.createElement(ColumnItemCol, { span: 4 },
24
+ React.createElement(UTCShortDate, { value: notification.createDate, format: "DD MMM YYYY" })),
25
+ React.createElement(ColumnItemCol, { span: 4 }, notification.draft ? (React.createElement(NotificationStatusLabel, { status: notification.draft ? "Draft" : "" })) : null),
26
+ React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
27
+ React.createElement(ToolBar, { more: false, id: id },
28
+ React.createElement(Open, { url: Routes.NotificationDefaultView.getUrl(id) }),
29
+ notification.draft && React.createElement(NotificationMenu, { id: id, closeAside: true })))))));
30
+ };
31
+ export default NotificationItem;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/AllNewNotificationItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,uBAAuB,MAAM,wCAAwC,CAAC;AAC7E,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAA2C,EAAE,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,YAAY,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE1C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,SAAS,EAAC,2BAA2B,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO;QACzE,oBAAC,UAAU,IAAC,SAAS,EAAC,0BAA0B;YAC/C,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC;gBACrB,6BAAK,SAAS,EAAC,wBAAwB,IAAE,YAAY,CAAC,OAAO,CAAO,CACrD;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC;gBACrB,oBAAC,UAAU,IAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAI,CACvC;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC;gBACrB,oBAAC,YAAY,IAAC,KAAK,EAAE,YAAY,CAAC,UAAU,EAAE,MAAM,EAAC,aAAa,GAAG,CACtD;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,IACpB,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CACrB,oBAAC,uBAAuB,IAAC,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAI,CACtE,CAAC,CAAC,CAAC,IAAI,CACO;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;gBACvC,oBAAC,OAAO,IAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;oBAC3B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;oBACvD,YAAY,CAAC,KAAK,IAAI,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC5D,CACK,CACJ,CACC,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,24 @@
1
+ :global {
2
+ .all-new-notification-item {
3
+ cursor: pointer;
4
+
5
+ &:hover {
6
+ background-color: #f5f8fd;
7
+ }
8
+
9
+ :global {
10
+ .notification-item-name {
11
+ color: #5D5D5D;
12
+ font: normal normal bold 14px/19px Open Sans;
13
+ }
14
+
15
+ .notification-column-item {
16
+ padding: 7px 20px;
17
+
18
+ .ant-row {
19
+ height: 50px;
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ export type AllNewNotificationListProps = {
4
+ /** 需要 corporate 或者 customer id */
5
+ parentId: string;
6
+ recipient?: {
7
+ id: string;
8
+ name: string;
9
+ };
10
+ };
11
+ declare const AllNewNotificationList: (props: AllNewNotificationListProps) => React.JSX.Element;
12
+ export default AllNewNotificationList;
@@ -0,0 +1,63 @@
1
+ import React, { useState } from "react";
2
+ import { Row, Col } from "antd";
3
+ import { useAutoUpdateListData, useNotificationsListEffect, } from "../../../../data/notification";
4
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
5
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
6
+ import { faBarsProgress, faThumbtack, faUserGroup, faCalendarDays, } from "@fortawesome/pro-solid-svg-icons";
7
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
8
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
9
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
10
+ import AllNewNotificationListHeader from "../AllNewNotificationListHeader";
11
+ import NotificationForm from "../NewNotificationForm/NotificationForm";
12
+ import AllNewNotificationItem from "../AllNewNotificationItem";
13
+ import PropertiesView from "../NotificationPropertiesView";
14
+ import "./index.less";
15
+ const AllNewNotificationList = (props) => {
16
+ const { parentId } = props;
17
+ const [asideContext] = useState(AsideContent.createContext());
18
+ const list = useCreateListDataState({
19
+ filterDefaults: {
20
+ includes: "recipients",
21
+ filters: [{ c: "Target", o: "=", l: "And", v1: parentId }],
22
+ },
23
+ }, [parentId]);
24
+ useAutoUpdateListData(list, (d) => d.target.id === parentId);
25
+ useRenderOnChange(() => list.filters.options);
26
+ useNotificationsListEffect(list, (result, total) => {
27
+ list.union(result);
28
+ }, {
29
+ Total: false,
30
+ ...list.filters.options,
31
+ });
32
+ return observe(() => {
33
+ return (React.createElement(ListDataContext.Provider, { value: list },
34
+ React.createElement(AsideContent, { context: asideContext },
35
+ React.createElement("div", { className: "all-new-notification-list" },
36
+ React.createElement(AllNewNotificationListHeader, { onAdd: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NotificationForm, { showView: true, targetId: props.parentId, recipient: props.recipient }), {
37
+ span: 12,
38
+ }) }),
39
+ React.createElement(Row, { align: "middle", className: "all-new-list-fixed-header" },
40
+ React.createElement(Col, { span: 8 },
41
+ React.createElement(FAIcon, { icon: faThumbtack }),
42
+ " ",
43
+ React.createElement("span", { className: "sub-title" }, "Subject")),
44
+ React.createElement(Col, { span: 4 },
45
+ React.createElement(FAIcon, { icon: faUserGroup }),
46
+ " ",
47
+ React.createElement("span", { className: "sub-title" }, "Create by")),
48
+ React.createElement(Col, { span: 4 },
49
+ React.createElement(FAIcon, { icon: faCalendarDays }),
50
+ " ",
51
+ React.createElement("span", { className: "sub-title" }, "Date")),
52
+ React.createElement(Col, { span: 4 },
53
+ React.createElement(FAIcon, { icon: faBarsProgress }),
54
+ " ",
55
+ React.createElement("span", { className: "sub-title" }, "Status")),
56
+ React.createElement(Col, { span: 4 })),
57
+ React.createElement(ListView, { className: "all-new-notification-list", headerProps: { visible: false }, renderItem: ({ item }) => (React.createElement(AllNewNotificationItem, { key: item.id, id: item.id, onClick: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(PropertiesView, { id: item.id }), {
58
+ span: 12,
59
+ }) })) })))));
60
+ });
61
+ };
62
+ export default AllNewNotificationList;
63
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/AllNewNotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAGN,qBAAqB,EACrB,0BAA0B,GAC1B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BAAC,8BAAM,SAAS,EAAC,WAAW,aAAc,CACrE;wBACN,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,GAAQ,CACf;oBACN,oBAAC,QAAQ,IACR,SAAS,EAAC,2BAA2B,EACrC,WAAW,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAA2B,EAAE,EAAE,CAAC,CAClD,oBAAC,sBAAsB,IACtB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,OAAO,EAAE,GAAG,EAAE,CACb,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,cAAc,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EAAE;gCACxD,IAAI,EAAE,EAAE;6BACR,CAAC,GAEF,CACF,GACA,CACG,CACQ,CACW,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,87 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .all-new-notification-list {
5
+ height: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+
9
+ .all-new-notifications-header {
10
+ .header-top-half-part {
11
+ display: flex;
12
+ padding: 30px 0 20px;
13
+ padding-left: 20px;
14
+
15
+ .header-icon {
16
+ font-size: 30px;
17
+ width: 51px;
18
+ height: 51px;
19
+ color: #1680ea;
20
+ background: #e5fbff;
21
+ border: 2px solid #1780ea;
22
+ border-radius: @border-radius;
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ margin-right: 15px;
27
+
28
+ > svg {
29
+ width: 19px;
30
+ height: 20px;
31
+ }
32
+ }
33
+
34
+ .header-title {
35
+ .title {
36
+ color: #5d5d5d;
37
+ font: normal normal bold 20px/27px Open Sans;
38
+ }
39
+
40
+ .sub-title {
41
+ color: #868686;
42
+ font: normal normal 600 14px/19px Open Sans;
43
+ }
44
+ }
45
+ }
46
+
47
+ .list-view-header-tool {
48
+ background: #f7fbff;
49
+
50
+ .header-tool-space {
51
+ align-items: center;
52
+ }
53
+
54
+ .all-new-notifications-info {
55
+ width: 60%;
56
+
57
+ .title {
58
+ color: #217eb2;
59
+ font: normal normal bold 20px/27px Open Sans;
60
+ }
61
+
62
+ .last-updated-time {
63
+ color: #868686;
64
+ font: normal normal 600 14px/19px Open Sans;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ .all-new-list-fixed-header {
71
+ margin-top: 10px;
72
+ padding: 10px 20px;
73
+ background: #f7fbff;
74
+ border-bottom: 1px solid #E6E6E6;
75
+
76
+ .svg-inline--fa {
77
+ color: #5D5D5D;
78
+ font-size: 14px;
79
+ }
80
+
81
+ .sub-title {
82
+ color: #217eb2;
83
+ font: normal normal bold 14px/19px Open Sans;
84
+ }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ declare const AllNewNotificationListHeader: (props: {
3
+ onAdd?: () => void;
4
+ }) => React.JSX.Element;
5
+ export default AllNewNotificationListHeader;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { faBell } from "@fortawesome/pro-solid-svg-icons";
4
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
+ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
6
+ const AllNewNotificationListHeader = (props) => {
7
+ return observe(() => {
8
+ return (React.createElement("div", { className: "all-new-notifications-header" },
9
+ React.createElement("div", { className: "header-top-half-part" },
10
+ React.createElement("div", { className: "header-icon" },
11
+ React.createElement(FAIcon, { icon: faBell })),
12
+ React.createElement("div", { className: "header-title" },
13
+ React.createElement("div", { className: "title" }, "Notification Creation"),
14
+ React.createElement("div", { className: "sub-title" }, "Set up your notification list effortlessly."))),
15
+ React.createElement(ListHeaderTool, { addAble: true, searchHeader: true, sortable: false, onAdd: props.onAdd, searchOptions: { placeholder: "Search in notifications" }, preExtra: () => (React.createElement("div", { className: "all-new-notifications-info" },
16
+ React.createElement("div", { className: "title" }, "Notification List"),
17
+ React.createElement("div", { className: "last-updated-time" },
18
+ "Lates Update on ",
19
+ `13 August 2024`))) })));
20
+ });
21
+ };
22
+ export default AllNewNotificationListHeader;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/AllNewNotificationListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,cAAc,MAAM,wEAAwE,CAAC;AAEpG,MAAM,4BAA4B,GAAG,CAAC,KAA6B,EAAE,EAAE;IACtE,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,OAAO,CACN,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,6BAAK,SAAS,EAAC,sBAAsB;gBACpC,6BAAK,SAAS,EAAC,aAAa;oBAC3B,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI,CACnB;gBACN,6BAAK,SAAS,EAAC,cAAc;oBAC5B,6BAAK,SAAS,EAAC,OAAO,4BAA4B;oBAClD,6BAAK,SAAS,EAAC,WAAW,kDAAkD,CACvE,CACD;YAEN,oBAAC,cAAc,IACd,OAAO,QACP,YAAY,QACZ,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,aAAa,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE,EACzD,QAAQ,EAAE,GAAG,EAAE,CAAC,CACf,6BAAK,SAAS,EAAC,4BAA4B;oBAC1C,6BAAK,SAAS,EAAC,OAAO,wBAAwB;oBAC9C,6BAAK,SAAS,EAAC,mBAAmB;;wBAAkB,gBAAgB,CAAO,CACtE,CACN,GACA,CACG,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -9,16 +9,7 @@ const WorkCashReportTemplate = (props) => {
9
9
  autoFit: true,
10
10
  height: 280,
11
11
  });
12
- chart.data(props.data);
13
- chart.scale("total", {
14
- nice: true,
15
- });
16
- chart.axis("total", {
17
- title: { text: "Monthly Works" },
18
- });
19
- chart.interval().position("date*total");
20
- chart.interaction("active-region");
21
- chart.interaction("element-active");
12
+ chart.interval().data(props.data).encode("x", "date").encode("y", "total");
22
13
  chart.render();
23
14
  };
24
15
  return observe(() => React.createElement("div", { id: "work-report-container" }));
@@ -1 +1 @@
1
- {"version":3,"file":"WorkCashReportTemplate.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/WorkCashReportTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,sBAAsB,GAAG,CAAC,KAAkD,EAAE,EAAE;IACrF,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAE5B,MAAM,IAAI,GAAG,GAAG,EAAE;QACjB,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;YACvB,SAAS,EAAE,uBAAuB;YAClC,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvB,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE;YACpB,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE;YACnB,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;SAChC,CAAC,CAAC;QAEH,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAExC,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACnC,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAEpC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,6BAAK,EAAE,EAAC,uBAAuB,GAAG,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"WorkCashReportTemplate.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/WorkCashReportTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,sBAAsB,GAAG,CAAC,KAAkD,EAAE,EAAE;IACrF,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAE5B,MAAM,IAAI,GAAG,GAAG,EAAE;QACjB,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;YACvB,SAAS,EAAE,uBAAuB;YAClC,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,GAAG;SACX,CAAC,CAAC;QACH,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAE3E,KAAK,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,6BAAK,EAAE,EAAC,uBAAuB,GAAG,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -3,7 +3,7 @@ import { InlineEdit, observe, useAutorunEffect, NavPanel } from "@voplus/morpho-
3
3
  import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
4
4
  import React, { useMemo, useState } from "react";
5
5
  import { TabItemContext, TabItemStore, useLayout, useTabItem } from "@voplus/morpho-data";
6
- import { faCalendarCheck, faEllipsisVertical, faGear, faListTimeline, faTableRows, } from "@fortawesome/pro-light-svg-icons";
6
+ import { faCalendarCheck, faEllipsisVertical, faGear, faListTimeline, faTableRows, } from "@fortawesome/pro-solid-svg-icons";
7
7
  import { useDocumentListEffect, useTaskListEffect } from "@voplus/morpho-document-core";
8
8
  import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
9
9
  import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useState } from "react";
2
2
  import { Badge, Menu } from "antd";
3
3
  import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
4
- import { faAlignLeft, faCalendarCheck, faCalendarDay, faCalendarEdit, faFolders, faHome, faGear, } from "@fortawesome/pro-light-svg-icons";
4
+ import { faAlignLeft, faCalendarCheck, faCalendarDay, faCalendarEdit, faFolders, faHome, faGear, } from "@fortawesome/pro-solid-svg-icons";
5
5
  import { observe, useRenderOnChange, NavPanel, useAutorunEffect } from "@voplus/morpho-ui";
6
6
  import { useLayout, useTabItem } from "@voplus/morpho-data";
7
7
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.118",
3
+ "version": "6.0.119",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",