@voplus/morpho-workspace 6.0.184 → 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/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,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,UAAU,MAAM,2CAA2C,CA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AAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IAAC,SAAS,EAAC,+DAA+D;QAC9E,oBAAC,UAAU,IACV,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,EACnC,KAAK,EAAC,OAAO,EACb,WAAW,EAAC,aAAa,EACzB,SAAS,EAAC,OAAO,EACjB,GAAG,EAAE,oBAAoB,OAAO,cAAc,GAC7C;QACF,oBAAC,UAAU,IACV,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,EACjC,KAAK,EAAC,KAAK,EACX,WAAW,EAAC,aAAa,EACzB,GAAG,EAAE,oBAAoB,OAAO,YAAY,GAC3C;QACF,oBAAC,UAAU,IACV,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,EACpC,KAAK,EAAC,QAAQ,EACd,WAAW,EAAC,aAAa,EACzB,SAAS,EAAC,QAAQ,EAClB,GAAG,EAAE,oBAAoB,OAAO,eAAe,GAC9C;QACF,oBAAC,UAAU,IACV,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,EACnC,KAAK,EAAC,KAAK,EACX,WAAW,EAAC,UAAU,EACtB,SAAS,EAAC,KAAK,EACf,GAAG,EAAE,oBAAoB,OAAO,YAAY,GAC3C;QACF,6BAAK,SAAS,EAAC,aAAa,qCAAqC,CAC3D,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -6,62 +6,23 @@
|
|
6
6
|
border-radius: @border-radius;
|
7
7
|
padding: 10px;
|
8
8
|
|
9
|
-
.
|
10
|
-
height: 60px;
|
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
|
|
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,MAA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