@titaui/pc 1.10.4 → 1.10.7
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/lib/components/change-okr-modal/index.js +108 -88
- package/lib/components/communication/CommunicationRecord.js +18 -12
- package/lib/components/communication/index.css +48 -9
- package/lib/components/communication/index.js +67 -28
- package/lib/components/communication/style.js +7 -5
- package/lib/components/dynamic/components/obj-status/index.css +2 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
- package/lib/components/dynamic/dynamic-item/components/header/index.js +12 -6
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +35 -24
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +35 -29
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +6 -34
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +59 -19
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +27 -19
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +49 -38
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +49 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +41 -29
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +23 -29
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +33 -16
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -24
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +16 -54
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +31 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +10 -23
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +45 -26
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +41 -33
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +19 -6
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +11 -17
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -23
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +31 -27
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +8 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -21
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +6 -36
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +10 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +9 -25
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +34 -30
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -24
- package/lib/components/dynamic/dynamic-item/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/index.js +38 -8
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/file-list/components/single-file/index.css +9 -8
- package/lib/components/float-fixed-video-modal/img/close.png +0 -0
- package/lib/components/float-fixed-video-modal/img/full.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/muted.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/pause.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/play.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/small.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +21 -0
- package/lib/components/float-fixed-video-modal/index.css +243 -0
- package/lib/components/float-fixed-video-modal/index.js +334 -0
- package/lib/components/float-fixed-video-modal/utils.js +25 -0
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +31 -4
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +21 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/progress/circle-progress/index.css +1 -0
- package/lib/components/progress/circle-progress/index.js +7 -2
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/muted.svg +16 -0
- package/lib/components/video-modal/img/not-muted.svg +16 -0
- package/lib/components/video-modal/img/pause.svg +17 -0
- package/lib/components/video-modal/img/play.png +0 -0
- package/lib/components/video-modal/img/play.svg +16 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +213 -0
- package/lib/components/video-modal/index.js +322 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/index.js +16 -0
- package/lib/utils/bs-global.js +8 -4
- package/lib/utils/tools.js +11 -2
- package/package.json +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
|
@@ -23,8 +23,6 @@ var _constant = require("../../constant");
|
|
|
23
23
|
|
|
24
24
|
var _title = _interopRequireDefault(require("../../components/title"));
|
|
25
25
|
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
26
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
29
27
|
|
|
30
28
|
var _getLocale = require("../../../../utils/getLocale");
|
|
@@ -57,13 +55,8 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
57
55
|
searchKeyWord = _useContext.searchKeyWord;
|
|
58
56
|
|
|
59
57
|
var replayObjType = data.replayObjType,
|
|
60
|
-
feedType = data.feedType,
|
|
61
58
|
publishUser = data.publishUser;
|
|
62
59
|
|
|
63
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
64
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
65
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
66
|
-
|
|
67
60
|
var handleShowTaskDrawer = function handleShowTaskDrawer(taskId) {
|
|
68
61
|
window.Talent.app.vent.trigger("global-pull-screen", taskId, "task");
|
|
69
62
|
};
|
|
@@ -107,14 +100,9 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
107
100
|
})), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
|
|
108
101
|
}
|
|
109
102
|
|
|
110
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
104
|
className: "".concat(prefix, "__operate-desc")
|
|
112
|
-
}, dom)
|
|
113
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
114
|
-
style: {
|
|
115
|
-
background: feedTypeColor
|
|
116
|
-
}
|
|
117
|
-
}, feedTypeText));
|
|
105
|
+
}, dom);
|
|
118
106
|
}, []);
|
|
119
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
108
|
className: prefix
|
|
@@ -125,10 +113,16 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
125
113
|
user: publishUser
|
|
126
114
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
115
|
className: "".concat(prefix, "__content")
|
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
className: "".concat(prefix, "__content-title")
|
|
128
118
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
129
|
-
content:
|
|
130
|
-
onClickTitle: handleClickTitle
|
|
131
|
-
|
|
119
|
+
content: data.replayObjName,
|
|
120
|
+
onClickTitle: handleClickTitle,
|
|
121
|
+
type: "".concat(data.replayObjType === 65 ? "KR" : (0, _getLocale.getLocale)("Mod_Objective")),
|
|
122
|
+
typeBgColor: "".concat(data.replayObjType === 65 ? "rgba(90, 216, 166, 0.5)" : "rgba(40, 121, 255, 0.5)"),
|
|
123
|
+
titleBgColor: "".concat(data.replayObjType === 65 ? "rgba(90, 216, 166, 0.1)" : "rgba(40, 121, 255, 0.1)"),
|
|
124
|
+
contentColor: "".concat(data.replayObjType === 65 ? "#5AD8A6" : "#2879FF")
|
|
125
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
126
|
className: "".concat(prefix, "__detail")
|
|
133
127
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
128
|
className: "".concat(prefix, "__detail-gain")
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-report-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 88px;
|
|
7
7
|
line-height: 24px;
|
|
8
8
|
word-wrap: break-word;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.titaui-dynamic-report-item__content-title {
|
|
12
|
+
display: flex;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
.titaui-dynamic-report-item__content ul {
|
|
12
17
|
list-style-type: disc;
|
|
13
18
|
padding-left: 20px;
|
|
@@ -81,11 +86,11 @@
|
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
.titaui-dynamic-report-item__block-title::before {
|
|
84
|
-
content:
|
|
89
|
+
content: '';
|
|
85
90
|
display: inline-block;
|
|
86
91
|
width: 4px;
|
|
87
92
|
height: 12px;
|
|
88
|
-
background:
|
|
93
|
+
background: #2879ff;
|
|
89
94
|
border-radius: 2px;
|
|
90
95
|
margin-right: 4px;
|
|
91
96
|
}
|
|
@@ -97,32 +102,38 @@
|
|
|
97
102
|
.titaui-dynamic-report-item__complete-type {
|
|
98
103
|
display: flex;
|
|
99
104
|
align-items: center;
|
|
100
|
-
font-size:
|
|
101
|
-
line-height:
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
line-height: 18px;
|
|
102
107
|
margin-left: 8px;
|
|
108
|
+
border-radius: 12px;
|
|
109
|
+
padding: 2px 8px;
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
.titaui-dynamic-report-item__complete-type-icon {
|
|
106
113
|
margin-right: 4px;
|
|
107
114
|
display: inline-block;
|
|
108
|
-
width:
|
|
109
|
-
height:
|
|
115
|
+
width: 14px;
|
|
116
|
+
height: 14px;
|
|
110
117
|
}
|
|
111
118
|
|
|
112
119
|
.titaui-dynamic-report-item__complete-type-icon--normal {
|
|
113
120
|
background: url("../../img/dynamic-submit-normal.svg") no-repeat;
|
|
121
|
+
background-size: 14px;
|
|
114
122
|
}
|
|
115
123
|
|
|
116
124
|
.titaui-dynamic-report-item__complete-type-icon--delay {
|
|
117
125
|
background: url("../../img/dynamic-submit-delay.svg") no-repeat;
|
|
126
|
+
background-size: 14px;
|
|
118
127
|
}
|
|
119
128
|
|
|
120
129
|
.titaui-dynamic-report-item__complete-type--normal {
|
|
121
130
|
color: #5ad8a6;
|
|
131
|
+
background-color: rgba(90, 216, 166, 0.16);
|
|
122
132
|
}
|
|
123
133
|
|
|
124
134
|
.titaui-dynamic-report-item__complete-type--delay {
|
|
125
135
|
color: #624dff;
|
|
136
|
+
background-color: rgba(98, 77, 255, 0.16);
|
|
126
137
|
}
|
|
127
138
|
|
|
128
139
|
.titaui-dynamic-report-item .highlight {
|
|
@@ -130,23 +141,10 @@
|
|
|
130
141
|
}
|
|
131
142
|
|
|
132
143
|
.titaui-dynamic-report-item__operate-desc {
|
|
133
|
-
font-size:
|
|
144
|
+
font-size: 16px;
|
|
134
145
|
font-weight: 400;
|
|
135
146
|
color: #89919f;
|
|
136
|
-
line-height:
|
|
137
|
-
margin:
|
|
147
|
+
line-height: 24px;
|
|
148
|
+
margin-left: 4px;
|
|
138
149
|
overflow: hidden;
|
|
139
150
|
}
|
|
140
|
-
|
|
141
|
-
.titaui-dynamic-report-item-desc-operate-type {
|
|
142
|
-
display: inline-flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
padding: 0 6px;
|
|
146
|
-
height: 18px;
|
|
147
|
-
min-width: 40px;
|
|
148
|
-
border-radius: 10px 10px 10px 2px;
|
|
149
|
-
font-size: 12px;
|
|
150
|
-
color: #ffffff;
|
|
151
|
-
line-height: 18px;
|
|
152
|
-
}
|
|
@@ -21,12 +21,10 @@ var _tools = require("../../../../utils/tools");
|
|
|
21
21
|
|
|
22
22
|
var _title = _interopRequireDefault(require("../../components/title"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
25
25
|
|
|
26
26
|
require("./index.css");
|
|
27
27
|
|
|
28
|
-
var _getLocale = require("../../../../utils/getLocale");
|
|
29
|
-
|
|
30
28
|
var _excluded = ["data"];
|
|
31
29
|
|
|
32
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,11 +41,15 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
43
41
|
|
|
44
42
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
43
|
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
var getEReportType = function getEReportType(type) {
|
|
45
|
+
var reportTextMap = {
|
|
46
|
+
8: (0, _getLocale.getLocale)("Rep_Tab_Dailynewspaper"),
|
|
47
|
+
26: (0, _getLocale.getLocale)("Rep_Tab_Weeklynewspaper"),
|
|
48
|
+
27: (0, _getLocale.getLocale)("Rep_Tab_MonthlyReport")
|
|
49
|
+
};
|
|
50
|
+
return reportTextMap[type];
|
|
50
51
|
};
|
|
52
|
+
|
|
51
53
|
var prefix = "titaui-dynamic-report-item";
|
|
52
54
|
|
|
53
55
|
var DynamicReply = function DynamicReply(_ref) {
|
|
@@ -56,21 +58,17 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
56
58
|
|
|
57
59
|
var submitState = data.submitState,
|
|
58
60
|
feedId = data.feedId,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
publishUser = data.publishUser,
|
|
62
|
+
reportType = data.reportType;
|
|
61
63
|
var contentRichTextRef = (0, _react.useRef)();
|
|
62
64
|
var workPlanRichTextRef = (0, _react.useRef)();
|
|
63
65
|
|
|
64
66
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
65
67
|
searchKeyWord = _useContext.searchKeyWord;
|
|
66
68
|
|
|
67
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
68
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
69
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
70
|
-
|
|
71
69
|
var handleClickTitle = function handleClickTitle() {
|
|
72
70
|
// @ts-ignore
|
|
73
|
-
Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
71
|
+
window.Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
74
72
|
};
|
|
75
73
|
|
|
76
74
|
var renderSuffix = (0, _react.useMemo)(function () {
|
|
@@ -80,17 +78,17 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
80
78
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
|
|
81
79
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
80
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type-icon"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--normal"), submitState === 1), _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--delay"), submitState === 2), _classNames2))
|
|
83
|
-
}), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("
|
|
81
|
+
}), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("Tasks_Tab_DelaSubmission"));
|
|
84
82
|
}, []);
|
|
85
83
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
86
|
-
|
|
84
|
+
var reportTextMap = {
|
|
85
|
+
8: (0, _getLocale.getLocale)("Rep_Tab_Mys_Dailynewsp"),
|
|
86
|
+
26: (0, _getLocale.getLocale)("Rep_Tab_Mys_sweeklyReport"),
|
|
87
|
+
27: (0, _getLocale.getLocale)("Rep_Tab_Sub_monthlyeport")
|
|
88
|
+
};
|
|
89
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
90
|
className: "".concat(prefix, "__operate-desc")
|
|
88
|
-
},
|
|
89
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
90
|
-
style: {
|
|
91
|
-
background: feedTypeColor
|
|
92
|
-
}
|
|
93
|
-
}, feedTypeText));
|
|
91
|
+
}, reportTextMap[reportType]);
|
|
94
92
|
}, []);
|
|
95
93
|
(0, _react.useEffect)(function () {
|
|
96
94
|
(0, _tools.highLightWord)({
|
|
@@ -108,14 +106,20 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
108
106
|
data: data
|
|
109
107
|
}, restProps, {
|
|
110
108
|
desc: renderDesc,
|
|
111
|
-
user: publishUser
|
|
109
|
+
user: publishUser,
|
|
110
|
+
suffixContent: renderSuffix
|
|
112
111
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
112
|
className: "".concat(prefix, "__content")
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
+
className: "".concat(prefix, "__content-title")
|
|
114
115
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
115
|
-
content:
|
|
116
|
+
content: data.name,
|
|
116
117
|
onClickTitle: handleClickTitle,
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
type: getEReportType(reportType),
|
|
119
|
+
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
120
|
+
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
121
|
+
contentColor: "#5C8EFF"
|
|
122
|
+
})), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
123
|
className: "".concat(prefix, "__summary")
|
|
120
124
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
125
|
className: "".concat(prefix, "__block-title")
|
|
@@ -128,7 +132,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
128
132
|
className: "".concat(prefix, "__work-plan")
|
|
129
133
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
134
|
className: "".concat(prefix, "__block-title")
|
|
131
|
-
}, "
|
|
135
|
+
}, (0, _getLocale.getLocale)("Rep_Tab_Mys_NextWorkPlans")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
136
|
className: "".concat(prefix, "__content-text"),
|
|
133
137
|
ref: workPlanRichTextRef
|
|
134
138
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-reward-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 88px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-reward-item__title {
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.titaui-dynamic-reward-item__operate-desc {
|
|
56
|
-
font-size:
|
|
56
|
+
font-size: 16px;
|
|
57
57
|
font-weight: 400;
|
|
58
58
|
color: #89919f;
|
|
59
|
-
line-height:
|
|
60
|
-
margin:
|
|
59
|
+
line-height: 24px;
|
|
60
|
+
margin-left: 4px;
|
|
61
61
|
overflow: hidden;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -31,8 +31,6 @@ var _tools = require("../../../../utils/tools");
|
|
|
31
31
|
|
|
32
32
|
var _openData = require("../../../../utils/open-data");
|
|
33
33
|
|
|
34
|
-
var _util = require("../../util");
|
|
35
|
-
|
|
36
34
|
var _getLocale = require("../../../../utils/getLocale");
|
|
37
35
|
|
|
38
36
|
require("./index.css");
|
|
@@ -63,17 +61,12 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
63
61
|
rewardTags = data.rewardTags,
|
|
64
62
|
obj = data.obj,
|
|
65
63
|
classify = data.classify,
|
|
66
|
-
feedType = data.feedType,
|
|
67
64
|
rewardUser = data.rewardUser,
|
|
68
65
|
publishUser = data.publishUser;
|
|
69
66
|
|
|
70
67
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
71
68
|
searchKeyWord = _useContext.searchKeyWord;
|
|
72
69
|
|
|
73
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
74
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
75
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
76
|
-
|
|
77
70
|
var handleClickTitle = function handleClickTitle() {
|
|
78
71
|
if (!obj) {
|
|
79
72
|
return;
|
|
@@ -93,10 +86,10 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
93
86
|
} else if (objType === _constant.EObjType.Task) {
|
|
94
87
|
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
95
88
|
} else if (objType === _constant.EObjType.Project) {
|
|
96
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
89
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
97
90
|
} else if (objType === _constant.EObjType.Assess) {
|
|
98
91
|
var assessId = data.url.split("assessId=")[1];
|
|
99
|
-
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
92
|
+
window.open(window.location.href.replace(window.location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
100
93
|
}
|
|
101
94
|
};
|
|
102
95
|
|
|
@@ -133,8 +126,8 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
133
126
|
var Classify = (0, _react.useMemo)(function () {
|
|
134
127
|
var _classNames;
|
|
135
128
|
|
|
136
|
-
if (!classify || Number(classify)
|
|
137
|
-
return;
|
|
129
|
+
if (!classify || Number(classify) === 0) {
|
|
130
|
+
return "";
|
|
138
131
|
}
|
|
139
132
|
|
|
140
133
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -152,7 +145,7 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
152
145
|
window.open(url, "_blank");
|
|
153
146
|
};
|
|
154
147
|
|
|
155
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
148
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
149
|
className: "".concat(prefix, "__operate-desc")
|
|
157
150
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
158
151
|
className: "".concat(prefix, "__reward")
|
|
@@ -162,12 +155,7 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
162
155
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
163
156
|
name: rewardUser.name,
|
|
164
157
|
id: rewardUser.userId
|
|
165
|
-
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward")))
|
|
166
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
167
|
-
style: {
|
|
168
|
-
background: feedTypeColor
|
|
169
|
-
}
|
|
170
|
-
}, feedTypeText));
|
|
158
|
+
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward")));
|
|
171
159
|
}, []);
|
|
172
160
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
161
|
className: prefix
|
|
@@ -190,12 +178,14 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
190
178
|
}
|
|
191
179
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
192
180
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
|
|
181
|
+
alt: "",
|
|
193
182
|
src: _dynamicLeftQuoto["default"]
|
|
194
183
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
195
184
|
str: rewardContent,
|
|
196
185
|
keyWord: searchKeyWord
|
|
197
186
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
198
187
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
|
|
188
|
+
alt: "",
|
|
199
189
|
src: _dynamicRightQuoto["default"]
|
|
200
190
|
}), rewardTags && rewardTags.length && rewardTags.map(function (reward) {
|
|
201
191
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -6,31 +6,16 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
font-size: 14px;
|
|
8
8
|
color: #3f4755;
|
|
9
|
-
line-height:
|
|
10
|
-
margin-left:
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-share-item__content-quoto {
|
|
14
|
-
width: 12px;
|
|
15
|
-
height: 12px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-dynamic-share-item__content-quoto--left {
|
|
19
|
-
margin-right: 8px;
|
|
20
|
-
margin-top: -6px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-share-item__content-quoto--right {
|
|
24
|
-
margin-left: 8px;
|
|
25
|
-
margin-top: 4px;
|
|
9
|
+
line-height: 24px;
|
|
10
|
+
margin-left: 88px;
|
|
26
11
|
}
|
|
27
12
|
|
|
28
13
|
.titaui-dynamic-share-item__operate-desc {
|
|
29
|
-
font-size:
|
|
14
|
+
font-size: 16px;
|
|
30
15
|
font-weight: 400;
|
|
31
16
|
color: #89919f;
|
|
32
|
-
line-height:
|
|
33
|
-
margin:
|
|
17
|
+
line-height: 24px;
|
|
18
|
+
margin-left: 4px;
|
|
34
19
|
overflow: hidden;
|
|
35
20
|
}
|
|
36
21
|
|
|
@@ -48,7 +33,7 @@
|
|
|
48
33
|
}
|
|
49
34
|
|
|
50
35
|
.titaui-dynamic-share-item__files {
|
|
51
|
-
margin-left:
|
|
36
|
+
margin-left: 88px;
|
|
52
37
|
margin-top: 12px;
|
|
53
38
|
}
|
|
54
39
|
|
|
@@ -9,26 +9,18 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
-
|
|
16
|
-
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
-
|
|
18
12
|
var _fileList = _interopRequireDefault(require("../../../file-list"));
|
|
19
13
|
|
|
20
14
|
var _context = require("../../context");
|
|
21
15
|
|
|
22
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
23
17
|
|
|
24
|
-
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
25
|
-
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
18
|
var _tools = require("../../../../utils/tools");
|
|
29
19
|
|
|
30
20
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
21
|
|
|
22
|
+
var _openData = require("../../../../utils/open-data");
|
|
23
|
+
|
|
32
24
|
require("./index.css");
|
|
33
25
|
|
|
34
26
|
var _excluded = ["data", "dynamicShareIsShowToping", "hasDynamicOpereateAuth"];
|
|
@@ -39,8 +31,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
39
31
|
|
|
40
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
33
|
|
|
42
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
|
-
|
|
44
34
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
45
35
|
|
|
46
36
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -61,21 +51,11 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
61
51
|
searchKeyWord = _useContext.searchKeyWord;
|
|
62
52
|
|
|
63
53
|
var contentRef = (0, _react.useRef)();
|
|
64
|
-
|
|
65
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
66
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
-
|
|
69
54
|
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
70
55
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
57
|
className: "".concat(prefix, "__operate-desc")
|
|
73
|
-
}, (0, _getLocale.getLocale)("Mod_postedshare"))
|
|
74
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
75
|
-
style: {
|
|
76
|
-
background: feedTypeColor
|
|
77
|
-
}
|
|
78
|
-
}, feedTypeText));
|
|
58
|
+
}, (0, _getLocale.getLocale)("Mod_postedshare"));
|
|
79
59
|
}, []);
|
|
80
60
|
(0, _react.useEffect)(function () {
|
|
81
61
|
(0, _tools.highLightWord)({
|
|
@@ -93,19 +73,9 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
93
73
|
user: data.publishUser
|
|
94
74
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
75
|
className: "".concat(prefix, "__content")
|
|
96
|
-
}, /*#__PURE__*/_react["default"].createElement("div",
|
|
97
|
-
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--left")),
|
|
98
|
-
alt: "",
|
|
99
|
-
src: _dynamicLeftQuoto["default"]
|
|
100
|
-
}, "alt", "left"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
101
77
|
ref: contentRef
|
|
102
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
103
|
-
htmlText: data.content
|
|
104
|
-
}), /*#__PURE__*/_react["default"].createElement("img", _defineProperty({
|
|
105
|
-
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--right")),
|
|
106
|
-
alt: "",
|
|
107
|
-
src: _dynamicRightQuoto["default"]
|
|
108
|
-
}, "alt", "right")))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
+
}, (0, _openData.parseTag)(data.content))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
79
|
className: "".concat(prefix, "__files")
|
|
110
80
|
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
111
81
|
data: data.attachments
|
package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png
ADDED
|
Binary file
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
.titaui-dynamic-share-to-dynamic__operate-desc {
|
|
2
2
|
margin-left: 4px;
|
|
3
|
-
font-size:
|
|
3
|
+
font-size: 16px;
|
|
4
4
|
font-weight: normal;
|
|
5
5
|
color: #89919f;
|
|
6
|
-
line-height:
|
|
6
|
+
line-height: 24px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-share-to-dynamic__content {
|
|
10
|
-
height: 24px;
|
|
11
10
|
display: flex;
|
|
12
|
-
padding: 0 50px;
|
|
13
11
|
box-sizing: border-box;
|
|
14
12
|
margin-top: 16px;
|
|
15
13
|
font-size: 14px;
|
|
@@ -20,14 +18,7 @@
|
|
|
20
18
|
overflow: hidden;
|
|
21
19
|
text-overflow: ellipsis;
|
|
22
20
|
white-space: nowrap;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
.titaui-dynamic-share-to-dynamic__content-quoto {
|
|
26
|
-
vertical-align: text-top;
|
|
27
|
-
margin-right: 6px;
|
|
28
|
-
width: 12px;
|
|
29
|
-
width: 12px;
|
|
30
|
-
height: 12px;
|
|
21
|
+
margin-left: 88px;
|
|
31
22
|
}
|
|
32
23
|
|
|
33
24
|
.titaui-dynamic-share-to-dynamic__content-title {
|
|
@@ -37,7 +28,8 @@
|
|
|
37
28
|
white-space: nowrap;
|
|
38
29
|
}
|
|
39
30
|
|
|
40
|
-
.titaui-dynamic-share-to-dynamic__content-title a,
|
|
31
|
+
.titaui-dynamic-share-to-dynamic__content-title a,
|
|
32
|
+
.titaui-dynamic-share-to-dynamic__content-title b {
|
|
41
33
|
color: #2879ff;
|
|
42
34
|
}
|
|
43
35
|
|
|
@@ -49,16 +41,16 @@
|
|
|
49
41
|
background: rgba(240, 244, 250, 0.5);
|
|
50
42
|
padding: 12px;
|
|
51
43
|
box-sizing: border-box;
|
|
52
|
-
margin-left:
|
|
44
|
+
margin-left: 88px;
|
|
53
45
|
margin-top: 12px;
|
|
54
46
|
}
|
|
55
47
|
|
|
56
48
|
.titaui-dynamic-share-to-dynamic__share-img {
|
|
57
49
|
width: 80px;
|
|
58
50
|
height: 80px;
|
|
59
|
-
border-radius:
|
|
51
|
+
border-radius: 12px;
|
|
60
52
|
margin-right: 12px;
|
|
61
|
-
background-color: #
|
|
53
|
+
background-color: #ffffff;
|
|
62
54
|
box-sizing: border-box;
|
|
63
55
|
padding: 16px;
|
|
64
56
|
}
|
|
@@ -75,10 +67,10 @@
|
|
|
75
67
|
.titaui-dynamic-share-to-dynamic__share-right-title {
|
|
76
68
|
display: block;
|
|
77
69
|
font-size: 16px;
|
|
78
|
-
font-weight:
|
|
70
|
+
font-weight: 600;
|
|
79
71
|
color: #141c28;
|
|
80
72
|
line-height: 24px;
|
|
81
|
-
margin-bottom:
|
|
73
|
+
margin-bottom: 6px;
|
|
82
74
|
}
|
|
83
75
|
|
|
84
76
|
.titaui-dynamic-share-to-dynamic__share-right-content {
|