@voplus/morpho-workspace 6.0.183 → 6.0.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/index.js +5 -5
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/index.less +12 -51
- package/es/modules/workspace/pages/WorkspacePage/SettingPage.js +39 -27
- package/es/modules/workspace/pages/WorkspacePage/SettingPage.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.less +4 -0
- package/package.json +1 -1
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/StatsItem.d.ts +0 -11
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/StatsItem.js +0 -21
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/StatsItem.js.map +0 -1
@@ -4,7 +4,7 @@ import { faPlus, faPen, faCheck, faBarsProgress } from "@fortawesome/pro-solid-s
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
5
5
|
import { useWorkListEffect } from "../../../../../data/work";
|
6
6
|
import { State } from "../../pages/WorkTypePage/state";
|
7
|
-
import
|
7
|
+
import StatsLabel from "@voplus/morpho-org/es/controls/StatsLabel";
|
8
8
|
import { runInAction } from "mobx";
|
9
9
|
import "./index.less";
|
10
10
|
const WorkTypeStatsLabel = (props) => {
|
@@ -23,10 +23,10 @@ const WorkTypeStatsLabel = (props) => {
|
|
23
23
|
runInAction(() => (state.workStatusTotals.works = total || 0));
|
24
24
|
}, state.nWorksOptions);
|
25
25
|
return observe(() => (React.createElement(Card, { className: "work-type-stats-label shadow ring-1 ring-black ring-opacity-5" },
|
26
|
-
React.createElement(
|
27
|
-
React.createElement(
|
28
|
-
React.createElement(
|
29
|
-
React.createElement(
|
26
|
+
React.createElement(StatsLabel, { icon: faPen, total: state.workStatusTotals.draft, title: "Draft", description: "Total Works", className: "draft", url: `/work-types-page/${typesId}/works/draft` }),
|
27
|
+
React.createElement(StatsLabel, { icon: faPlus, total: state.workStatusTotals.new, title: "New", description: "Total Works", url: `/work-types-page/${typesId}/works/new` }),
|
28
|
+
React.createElement(StatsLabel, { icon: faCheck, total: state.workStatusTotals.active, title: "Active", description: "Total Works", className: "active", url: `/work-types-page/${typesId}/works/active` }),
|
29
|
+
React.createElement(StatsLabel, { icon: faBarsProgress, total: state.workStatusTotals.works, title: "All", description: "In Total", className: "all", url: `/work-types-page/${typesId}/works/all` }),
|
30
30
|
React.createElement("div", { className: "description" }, "Lates Update on 13 August 2024"))));
|
31
31
|
};
|
32
32
|
export default WorkTypeStatsLabel;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStatsLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStatsLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,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;
|
9
|
+
.draft {
|
11
10
|
background: #fff4f4;
|
12
|
-
border-radius: 5px;
|
13
|
-
padding: 10px;
|
14
|
-
display: flex;
|
15
|
-
margin-bottom: 15px;
|
16
|
-
&.new {
|
17
|
-
background: #f4f9ff;
|
18
|
-
.stats-icon {
|
19
|
-
color: #217eb4;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
&.active {
|
23
|
-
background: #eaffee;
|
24
|
-
.stats-icon {
|
25
|
-
color: #217eb4;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
&.all {
|
29
|
-
background: #fffdea;
|
30
|
-
margin-bottom: 8px;
|
31
|
-
.stats-icon {
|
32
|
-
color: #b2a722;
|
33
|
-
}
|
34
|
-
}
|
35
11
|
.stats-icon {
|
36
|
-
width: 37px;
|
37
|
-
height: 37px;
|
38
12
|
color: #b22121;
|
39
|
-
font-size: 15px;
|
40
|
-
background: #ffffff;
|
41
|
-
border-radius: 50%;
|
42
|
-
display: flex;
|
43
|
-
justify-content: center;
|
44
|
-
align-items: center;
|
45
|
-
margin-right: 15px;
|
46
13
|
}
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
.total {
|
53
|
-
font-size: 20px;
|
54
|
-
line-height: 25px;
|
55
|
-
font-weight: bold;
|
56
|
-
margin-right: 6px;
|
57
|
-
}
|
14
|
+
}
|
15
|
+
.active {
|
16
|
+
background: #eaffee;
|
17
|
+
.stats-icon {
|
18
|
+
color: #217eb4;
|
58
19
|
}
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
20
|
+
}
|
21
|
+
.all {
|
22
|
+
background: #fffdea;
|
23
|
+
margin-bottom: 8px;
|
24
|
+
.stats-icon {
|
25
|
+
color: #b2a722;
|
65
26
|
}
|
66
27
|
}
|
67
28
|
|
@@ -1,37 +1,49 @@
|
|
1
1
|
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
3
|
-
import SettingPage from "@voplus/morpho-ui/es/controls/SettingPage";
|
4
|
-
import Setting from "@voplus/morpho-ui/es/controls/SettingPage/Setting";
|
5
|
-
import SettingSection from "@voplus/morpho-ui/es/controls/SettingPage/SettingSection";
|
6
3
|
import React from "react";
|
4
|
+
import { Form } from "antd";
|
5
|
+
import { faHardDrive } from "@fortawesome/pro-solid-svg-icons";
|
6
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
7
7
|
import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
|
8
|
+
import { SettingFormPage, SettingItem, SettingFormItem, } from "@voplus/morpho-ui/es/controls/SettingFormPage";
|
9
|
+
import classnames from "classnames";
|
8
10
|
const WorkSpaceSettingPage = (props) => {
|
9
11
|
const store = useWorkspaceStore();
|
10
|
-
const
|
12
|
+
const workspace = useWorkspace(props.id);
|
11
13
|
return observe(() => {
|
12
|
-
var _a, _b, _c, _d;
|
13
|
-
return (React.createElement(
|
14
|
-
React.createElement(
|
15
|
-
React.createElement(
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
},
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
Owners:
|
32
|
-
|
33
|
-
|
34
|
-
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
15
|
+
return (React.createElement(SettingFormPage, { className: "workSpace-setting-page" },
|
16
|
+
React.createElement(Form, { layout: "vertical" },
|
17
|
+
React.createElement(SettingItem, { title: React.createElement(React.Fragment, null,
|
18
|
+
React.createElement(FAIcon, { icon: faHardDrive }),
|
19
|
+
"CENTER DETAILS"), description: "This information will be displayed publicly." },
|
20
|
+
React.createElement(SettingFormItem, { item1: React.createElement(Form.Item, { label: "Members", extra: "Has all general permissions (including creating, changing, and reading reports, etc.)" },
|
21
|
+
React.createElement("div", { className: classnames({
|
22
|
+
"form-item-contacts": !((_b = (_a = workspace.settings) === null || _a === void 0 ? void 0 : _a.members) === null || _b === void 0 ? void 0 : _b.length),
|
23
|
+
"form-item-border": !((_d = (_c = workspace.settings) === null || _c === void 0 ? void 0 : _c.members) === null || _d === void 0 ? void 0 : _d.length),
|
24
|
+
}) },
|
25
|
+
React.createElement(MentionList, { contacts: ((_e = workspace.settings) === null || _e === void 0 ? void 0 : _e.members) ? (_f = workspace.settings) === null || _f === void 0 ? void 0 : _f.members : [], canEdit: true, multiple: true, defaultSelection: "Users", placeholder: "Select an Members", position: "back", onChange: (list) => {
|
26
|
+
const ids = [];
|
27
|
+
list.map((i) => ids.push(i.id));
|
28
|
+
onEdit({
|
29
|
+
Settings: {
|
30
|
+
Members: ids,
|
31
|
+
},
|
32
|
+
});
|
33
|
+
} }))), item2: React.createElement(Form.Item, { label: "Owners", extra: "Principal manager endowed with full permissions, including the ability to change settings." },
|
34
|
+
React.createElement("div", { className: classnames({
|
35
|
+
"form-item-contacts": !((_h = (_g = workspace.settings) === null || _g === void 0 ? void 0 : _g.owners) === null || _h === void 0 ? void 0 : _h.length),
|
36
|
+
"form-item-border": !((_k = (_j = workspace.settings) === null || _j === void 0 ? void 0 : _j.owners) === null || _k === void 0 ? void 0 : _k.length),
|
37
|
+
}) },
|
38
|
+
React.createElement(MentionList, { contacts: ((_l = workspace.settings) === null || _l === void 0 ? void 0 : _l.owners) ? (_m = workspace.settings) === null || _m === void 0 ? void 0 : _m.owners : [], canEdit: true, multiple: true, defaultSelection: "Users", placeholder: "Select an Owners", position: "back", onChange: (list) => {
|
39
|
+
const ids = [];
|
40
|
+
list.map((i) => ids.push(i.id));
|
41
|
+
onEdit({
|
42
|
+
Settings: {
|
43
|
+
Owners: ids,
|
44
|
+
},
|
45
|
+
});
|
46
|
+
} }))) })))));
|
35
47
|
});
|
36
48
|
function onEdit(data) {
|
37
49
|
store.edit(props.id, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,
|
1
|
+
{"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EACN,eAAe,EACf,WAAW,EACX,eAAe,GACf,MAAM,+CAA+C,CAAC;AACvD,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,eAAe,IAAC,SAAS,EAAC,wBAAwB;YAClD,oBAAC,IAAI,IAAC,MAAM,EAAC,UAAU;gBACtB,oBAAC,WAAW,IACX,KAAK,EACJ;wBACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;yCAE3B,EAEJ,WAAW,EAAC,8CAA8C;oBAE1D,oBAAC,eAAe,IACf,KAAK,EACJ,oBAAC,IAAI,CAAC,IAAI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WAAW,IACX,QAAQ,EAAE,CAAA,MAAA,SAAS,CAAC,QAAQ,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,SAAS,CAAC,QAAQ,0CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EACtE,OAAO,QACP,QAAQ,QACR,gBAAgB,EAAC,OAAO,EACxB,WAAW,EAAC,kBAAkB,EAC9B,QAAQ,EAAC,MAAM,EACf,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;wCAClB,MAAM,GAAG,GAAa,EAAE,CAAC;wCACzB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;wCAChC,MAAM,CAAC;4CACN,QAAQ,EAAE;gDACT,MAAM,EAAE,GAAG;6CACX;yCACD,CAAC,CAAC;oCACJ,CAAC,GACA,CACG,CACK,GAEZ,CACW,CACR,CACU,CAClB,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,MAAM,CAAC,IAAS;QACxB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;YACpB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/package.json
CHANGED
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
3
|
-
import "./index.less";
|
4
|
-
declare const StatsItem: (props: {
|
5
|
-
className?: string;
|
6
|
-
icon: IconProp;
|
7
|
-
total: number;
|
8
|
-
status: string;
|
9
|
-
typesId: string;
|
10
|
-
}) => React.JSX.Element;
|
11
|
-
export default StatsItem;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { observe } from "@voplus/morpho-ui";
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
4
|
-
import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
|
5
|
-
import classnames from "classnames";
|
6
|
-
import "./index.less";
|
7
|
-
const StatsItem = (props) => {
|
8
|
-
const { className, icon, total, status, typesId } = props;
|
9
|
-
return observe(() => (React.createElement("div", { className: classnames("stats-item", className, status.charAt(0).toLowerCase() + status.slice(1)) },
|
10
|
-
React.createElement("div", { className: "stats-icon" },
|
11
|
-
React.createElement(FAIcon, { icon: icon })),
|
12
|
-
React.createElement("div", { className: "stats-content" },
|
13
|
-
React.createElement("div", { className: "stats-info" },
|
14
|
-
React.createElement("span", { className: "total" }, total),
|
15
|
-
status === "all" ? "Works" : status,
|
16
|
-
React.createElement("div", null, status === "all" ? "In Total" : "Total Works"))),
|
17
|
-
React.createElement("div", { className: "stats-open" },
|
18
|
-
React.createElement(Open, { url: `/work-types-page/${typesId}/works/${status.charAt(0).toLowerCase() + status.slice(1)}` })))));
|
19
|
-
};
|
20
|
-
export default StatsItem;
|
21
|
-
//# sourceMappingURL=StatsItem.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"StatsItem.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStatsLabel/StatsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,SAAS,GAAG,CAAC,KAMlB,EAAE,EAAE;IACJ,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC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