@titaui/pc 1.10.21 → 1.10.24
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/communication/index.css +7 -7
- package/lib/components/communication/style.js +1 -1
- package/lib/components/dynamic/constant.js +10 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +24 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +1 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +5 -4
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +32 -2
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.css +11 -16
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +5 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/index.css +56 -1
- package/lib/components/dynamic/dynamic-item/index.js +12 -9
- package/lib/components/dynamic/img/dynamic-redenvelopes-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-redenvelopes-normal.svg +1 -0
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/superset-charts/components/index.js +15 -15
- package/lib/components/superset-charts/init/index.js +30 -11
- package/lib/components/superset-charts/init/use-get-assets.js +17 -85
- package/lib/components/video-modal/components/video-box/index.css +240 -0
- package/lib/components/video-modal/components/video-box/index.js +334 -0
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/close.png +0 -0
- package/lib/components/video-modal/img/full.svg +21 -0
- package/lib/components/video-modal/img/muted.svg +14 -0
- package/lib/components/video-modal/img/not-muted.svg +22 -0
- package/lib/components/video-modal/img/pause.svg +13 -0
- package/lib/components/video-modal/img/play.svg +18 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +83 -0
- package/lib/components/video-modal/index.js +182 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/index.js +9 -1
- package/package.json +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share-content/index.js +0 -42
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
.titaui-communication__communication-text {
|
|
7
7
|
font-size: 14px;
|
|
8
|
-
color: #
|
|
8
|
+
color: #3f4755;
|
|
9
9
|
line-height: 22px;
|
|
10
|
-
margin: 0
|
|
10
|
+
margin: 0 4px;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.titaui-communication__communication-content {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
color: #6f7886;
|
|
16
16
|
line-height: 22px;
|
|
17
17
|
position: relative;
|
|
18
|
+
margin-top: 4px;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.titaui-communication__communication-content .highlight {
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
.titaui-communication__communication-content__user-link {
|
|
29
30
|
font-size: 14px;
|
|
30
31
|
font-weight: 600;
|
|
31
|
-
color: #
|
|
32
|
+
color: #3f4755;
|
|
32
33
|
line-height: 22px;
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
.titaui-communication__communication-time {
|
|
48
49
|
font-size: 12px;
|
|
49
50
|
font-weight: 400;
|
|
50
|
-
color: #
|
|
51
|
+
color: #89919f;
|
|
51
52
|
line-height: 18px;
|
|
52
53
|
margin-left: 12px;
|
|
53
54
|
}
|
|
@@ -73,7 +74,6 @@
|
|
|
73
74
|
|
|
74
75
|
.titaui-communication__communication-total-icon {
|
|
75
76
|
margin-left: 4px;
|
|
76
|
-
margin-top: -2px;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.titaui-communication__reply-container-text {
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
flex: 1;
|
|
94
94
|
cursor: text;
|
|
95
95
|
font-size: 12px;
|
|
96
|
-
color: #
|
|
96
|
+
color: #bfc7d5;
|
|
97
97
|
line-height: 22px;
|
|
98
98
|
margin-left: 12px;
|
|
99
99
|
height: 32px;
|
|
100
100
|
border-radius: 16px;
|
|
101
101
|
border-radius: 16px;
|
|
102
|
-
border: 1px solid #
|
|
102
|
+
border: 1px solid #e9ecf0;
|
|
103
103
|
display: flex;
|
|
104
104
|
align-items: center;
|
|
105
105
|
box-sizing: border-box;
|
|
@@ -19,7 +19,7 @@ var CommunicationWrapper = _styledComponents["default"].div(_templateObject || (
|
|
|
19
19
|
|
|
20
20
|
exports.CommunicationWrapper = CommunicationWrapper;
|
|
21
21
|
|
|
22
|
-
var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size:
|
|
22
|
+
var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size: 12px;\n line-height: 22px;\n color: #8f9ca6;\n display: inline-block;\n cursor: pointer;\n\n &:hover {\n color: #2879ff;\n }\n"])));
|
|
23
23
|
|
|
24
24
|
exports.CommunicationRecordTotal = CommunicationRecordTotal;
|
|
25
25
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.OkrRiskMapping = exports.ObjectType = exports.ObjTypeMapText = exports.EStatusStatus2ClassType = exports.EObjType = exports.EFeedType = void 0;
|
|
6
|
+
exports.OkrRiskMapping = exports.ObjectType = exports.ObjTypeMapText = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
@@ -57,6 +57,15 @@ exports.EFeedType = EFeedType;
|
|
|
57
57
|
EFeedType[EFeedType["PlanCommunication"] = 103] = "PlanCommunication";
|
|
58
58
|
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
59
59
|
|
|
60
|
+
var EShareType;
|
|
61
|
+
exports.EShareType = EShareType;
|
|
62
|
+
|
|
63
|
+
(function (EShareType) {
|
|
64
|
+
EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
|
|
65
|
+
EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
|
|
66
|
+
EShareType[EShareType["BiShare"] = 3] = "BiShare";
|
|
67
|
+
})(EShareType || (exports.EShareType = EShareType = {}));
|
|
68
|
+
|
|
60
69
|
var EObjType;
|
|
61
70
|
exports.EObjType = EObjType;
|
|
62
71
|
|
|
@@ -41,7 +41,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
41
41
|
|
|
42
42
|
var prefix = "titaui-dynamic-assessment-item";
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var DynamicAssessment = function DynamicAssessment(_ref) {
|
|
45
45
|
var data = _ref.data,
|
|
46
46
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
47
47
|
|
|
@@ -97,5 +97,5 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
97
97
|
}), /*#__PURE__*/_react["default"].createElement("span", null, "".concat(data.startDate, "-").concat(data.deadline))))));
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
var _default =
|
|
100
|
+
var _default = DynamicAssessment;
|
|
101
101
|
exports["default"] = _default;
|
|
@@ -13,7 +13,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _supersetCharts = _interopRequireDefault(require("../../../superset-charts"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
17
|
+
|
|
18
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
19
|
+
|
|
20
|
+
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
17
21
|
|
|
18
22
|
var _context = require("../../context");
|
|
19
23
|
|
|
@@ -92,14 +96,27 @@ var DynamicChart = function DynamicChart(_ref) {
|
|
|
92
96
|
color: "#89919f"
|
|
93
97
|
}
|
|
94
98
|
}, "\u63A8\u9001\u4E86\u6D88\u606F")
|
|
95
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: "".concat(prefixCls, "__content")
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
102
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__content-quoto"), "".concat(prefixCls, "__content-quoto--left")),
|
|
103
|
+
src: _dynamicLeftQuoto["default"],
|
|
104
|
+
alt: "left"
|
|
105
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
ref: contentRef
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
108
|
+
htmlText: data.content
|
|
109
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
110
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__content-quoto"), "".concat(prefixCls, "__content-quoto--right")),
|
|
111
|
+
src: _dynamicRightQuoto["default"],
|
|
112
|
+
alt: "right"
|
|
113
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
114
|
className: "".concat(prefixCls, "__charts")
|
|
101
115
|
}, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], {
|
|
102
|
-
chartId: data.biId
|
|
116
|
+
chartId: data.biId,
|
|
117
|
+
layout: "feed-card",
|
|
118
|
+
width: 800,
|
|
119
|
+
height: 400
|
|
103
120
|
})));
|
|
104
121
|
};
|
|
105
122
|
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
|
|
75
75
|
.titaui-dynamic-create-o-item__kr {
|
|
76
76
|
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
77
|
margin-top: 6px;
|
|
79
78
|
}
|
|
80
79
|
|
|
@@ -83,7 +82,7 @@
|
|
|
83
82
|
color: #89919f;
|
|
84
83
|
line-height: 18px;
|
|
85
84
|
margin-right: 4px;
|
|
86
|
-
margin-top:
|
|
85
|
+
margin-top: 3px;
|
|
87
86
|
word-break: keep-all;
|
|
88
87
|
}
|
|
89
88
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css
RENAMED
|
File without changes
|
package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js
RENAMED
|
@@ -56,7 +56,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
56
56
|
var prefix = "titaui-dynamic-share-to-dynamic";
|
|
57
57
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var DynamicLearning = function DynamicLearning(_ref) {
|
|
60
60
|
var data = _ref.data,
|
|
61
61
|
_ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
|
|
62
62
|
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
@@ -103,8 +103,9 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
103
103
|
}, [data, searchKeyWord]);
|
|
104
104
|
(0, _react.useEffect)(function () {
|
|
105
105
|
if (data.shareContent && typeof data.shareContent === "string" && data.shareContent.substr(0, 1) === "{") {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
var shareContent = JSON.parse(data.shareContent);
|
|
107
|
+
setTitle(shareContent.title);
|
|
108
|
+
setContent(htmlToText(shareContent.content));
|
|
108
109
|
}
|
|
109
110
|
}, []);
|
|
110
111
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -139,5 +140,5 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
139
140
|
}, content))));
|
|
140
141
|
};
|
|
141
142
|
|
|
142
|
-
var _default =
|
|
143
|
+
var _default = DynamicLearning;
|
|
143
144
|
exports["default"] = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.MileStoneStatusClass2StatusTypeText = void 0;
|
|
6
|
+
exports.MileStoneStatusClass2StatusTypeText = exports.EStatusStatus2ClassType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../../../utils/getLocale");
|
|
9
9
|
|
|
@@ -13,4 +13,11 @@ var MileStoneStatusClass2StatusTypeText = {
|
|
|
13
13
|
4: (0, _getLocale.getLocale)("OKR_MyO_E_Overdue"),
|
|
14
14
|
3: (0, _getLocale.getLocale)("Pro_page_Sta_Completed")
|
|
15
15
|
};
|
|
16
|
-
exports.MileStoneStatusClass2StatusTypeText = MileStoneStatusClass2StatusTypeText;
|
|
16
|
+
exports.MileStoneStatusClass2StatusTypeText = MileStoneStatusClass2StatusTypeText;
|
|
17
|
+
var EStatusStatus2ClassType = {
|
|
18
|
+
3: "tu-icon-finished",
|
|
19
|
+
2: "tu-icon-running",
|
|
20
|
+
4: "tu-icon-deferred",
|
|
21
|
+
1: "tu-icon-notstart"
|
|
22
|
+
};
|
|
23
|
+
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
@@ -124,7 +124,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
124
124
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
125
|
className: "".concat(prefix, "__content-status-and-time-range")
|
|
126
126
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
127
|
-
className: (0, _classnames["default"])(
|
|
127
|
+
className: (0, _classnames["default"])(_constant.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
|
|
128
128
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
129
|
className: "".concat(prefix, "__content-status-text")
|
|
130
130
|
}, _constant.MileStoneStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
@@ -53,6 +53,18 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
53
53
|
|
|
54
54
|
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); }
|
|
55
55
|
|
|
56
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
|
+
|
|
58
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
59
|
+
|
|
60
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
61
|
+
|
|
62
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
63
|
+
|
|
64
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
65
|
+
|
|
66
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
|
+
|
|
56
68
|
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; }
|
|
57
69
|
|
|
58
70
|
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; }
|
|
@@ -80,6 +92,11 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
80
92
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
81
93
|
searchKeyWord = _useContext.searchKeyWord;
|
|
82
94
|
|
|
95
|
+
var _useState = (0, _react.useState)(null),
|
|
96
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
97
|
+
relatedImgUrl = _useState2[0],
|
|
98
|
+
setRelatedImgUrl = _useState2[1];
|
|
99
|
+
|
|
83
100
|
var handleClickTitle = function handleClickTitle(id, type) {
|
|
84
101
|
if (type === _constant.EObjType.Kr) {
|
|
85
102
|
_drawerManager["default"].open("krDetail", {
|
|
@@ -113,10 +130,23 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
113
130
|
text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Mod_Objective"));
|
|
114
131
|
}
|
|
115
132
|
|
|
133
|
+
if (relateObjType === _constant.EObjType.Project) {
|
|
134
|
+
text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Feed_Set_Project"));
|
|
135
|
+
}
|
|
136
|
+
|
|
116
137
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
117
138
|
className: "".concat(prefix, "__operate-desc")
|
|
118
139
|
}, text);
|
|
119
140
|
}, []);
|
|
141
|
+
(0, _react.useEffect)(function () {
|
|
142
|
+
if (relateObjType === _constant.EObjType.O) {
|
|
143
|
+
setRelatedImgUrl(_dynamicRelaO["default"]);
|
|
144
|
+
} else if (relateObjType === _constant.EObjType.Kr) {
|
|
145
|
+
setRelatedImgUrl(_dynamicRelaKr["default"]);
|
|
146
|
+
} else {
|
|
147
|
+
setRelatedImgUrl(_dynamicRelaProject["default"]);
|
|
148
|
+
}
|
|
149
|
+
}, []);
|
|
120
150
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
151
|
className: prefix
|
|
122
152
|
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
@@ -131,11 +161,11 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
131
161
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
162
|
className: "".concat(prefix, "__obj-base-info")
|
|
133
163
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
134
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), relateObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), relateObjType === _constant.EObjType.Kr), _classNames))
|
|
164
|
+
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), relateObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), relateObjType === _constant.EObjType.Kr), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--project"), relateObjType === _constant.EObjType.Project), _classNames))
|
|
135
165
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
136
166
|
alt: "",
|
|
137
167
|
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
138
|
-
src:
|
|
168
|
+
src: relatedImgUrl || ""
|
|
139
169
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
170
|
className: "".concat(prefix, "__obj-base-info-right")
|
|
141
171
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.titaui-dynamic-reply-item__detail {
|
|
15
|
-
margin-top:
|
|
15
|
+
margin-top: 12px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.titaui-dynamic-reply-item__detail-gain {
|
|
@@ -27,21 +27,25 @@
|
|
|
27
27
|
margin-bottom: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.titaui-dynamic-reply-item__detail-tasks {
|
|
31
|
+
margin-top: 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
.titaui-dynamic-reply-item__detail-tasks-item {
|
|
31
35
|
display: flex;
|
|
32
36
|
align-items: center;
|
|
33
|
-
margin-left: 8px;
|
|
34
37
|
font-size: 14px;
|
|
35
38
|
color: #6f7886;
|
|
36
39
|
line-height: 22px;
|
|
40
|
+
margin-top: 8px;
|
|
37
41
|
cursor: pointer;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
.titaui-dynamic-reply-item__detail-tasks-item::before {
|
|
41
45
|
content: '';
|
|
42
46
|
display: inline-block;
|
|
43
|
-
width:
|
|
44
|
-
height:
|
|
47
|
+
width: 5px;
|
|
48
|
+
height: 5px;
|
|
45
49
|
background: #2879ff;
|
|
46
50
|
border-radius: 50%;
|
|
47
51
|
margin-right: 6px;
|
|
@@ -69,18 +73,9 @@
|
|
|
69
73
|
font-weight: 600;
|
|
70
74
|
color: #3f4755;
|
|
71
75
|
line-height: 22px;
|
|
72
|
-
margin-left: 8px;
|
|
73
76
|
white-space: pre-wrap;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.titaui-dynamic-reply-item__detail-block-title--sub::before {
|
|
77
|
-
content: '';
|
|
78
|
-
display: inline-block;
|
|
79
|
-
width: 6px;
|
|
80
|
-
height: 6px;
|
|
81
|
-
background: #2879ff;
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
margin-right: 6px;
|
|
77
|
+
margin-left: 12px;
|
|
78
|
+
margin-top: 16px;
|
|
84
79
|
}
|
|
85
80
|
|
|
86
81
|
.titaui-dynamic-reply-item__detail-block-content {
|
|
@@ -97,7 +92,7 @@
|
|
|
97
92
|
}
|
|
98
93
|
|
|
99
94
|
.titaui-dynamic-reply-item__detail-block-content--sub {
|
|
100
|
-
margin-left:
|
|
95
|
+
margin-left: 12px;
|
|
101
96
|
}
|
|
102
97
|
|
|
103
98
|
.titaui-dynamic-reply-item__object-name {
|
|
@@ -163,7 +163,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
163
163
|
className: "".concat(prefix, "__detail-tasks")
|
|
164
164
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
165
|
className: "".concat(prefix, "__detail-block-title")
|
|
166
|
-
}, "\
|
|
166
|
+
}, "\u6539\u8FDB\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
|
|
167
167
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
168
|
key: task.taskId,
|
|
169
169
|
className: "".concat(prefix, "__detail-tasks-item"),
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-share-item__content {
|
|
6
|
-
display: flex;
|
|
7
6
|
font-size: 14px;
|
|
8
7
|
color: #3f4755;
|
|
9
8
|
line-height: 24px;
|
|
10
9
|
margin-left: 88px;
|
|
11
10
|
}
|
|
12
11
|
|
|
12
|
+
.titaui-dynamic-share-item__content-obj {
|
|
13
|
+
display: flex;
|
|
14
|
+
margin-bottom: 4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.titaui-dynamic-share-item__operate-desc {
|
|
14
18
|
font-size: 14px;
|
|
15
19
|
font-weight: 400;
|
|
@@ -21,8 +21,16 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
21
21
|
|
|
22
22
|
var _openData = require("../../../../utils/open-data");
|
|
23
23
|
|
|
24
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
25
|
+
|
|
26
|
+
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
27
|
+
|
|
28
|
+
var _utils = require("../dynamic-progress/utils");
|
|
29
|
+
|
|
24
30
|
require("./index.css");
|
|
25
31
|
|
|
32
|
+
var _constant = require("../../constant");
|
|
33
|
+
|
|
26
34
|
var _excluded = ["data", "dynamicShareIsShowToping", "hasDynamicOpereateAuth"];
|
|
27
35
|
|
|
28
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -47,16 +55,56 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
47
55
|
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
48
56
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
49
57
|
|
|
58
|
+
var obj = data.obj;
|
|
59
|
+
|
|
50
60
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
51
61
|
searchKeyWord = _useContext.searchKeyWord;
|
|
52
62
|
|
|
53
63
|
var contentRef = (0, _react.useRef)();
|
|
54
64
|
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
55
65
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
66
|
+
var text = (0, _getLocale.getLocale)("Mod_postedshare"); // const { obj } = data;
|
|
67
|
+
// if (obj && obj.objType === EObjType.Kr) {
|
|
68
|
+
// text = "";
|
|
69
|
+
// }
|
|
70
|
+
// if (obj && obj.objType === EObjType.O) {
|
|
71
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Mod_objectiveprog")}`;
|
|
72
|
+
// }
|
|
73
|
+
// if (obj && obj.objType === EObjType.Task) {
|
|
74
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Data_Taskprogress")}`;
|
|
75
|
+
// }
|
|
76
|
+
// if (obj && obj.objType === EObjType.Project) {
|
|
77
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Mod_ProjectProgress")}`;
|
|
78
|
+
// }
|
|
79
|
+
|
|
56
80
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
81
|
className: "".concat(prefix, "__operate-desc")
|
|
58
|
-
},
|
|
82
|
+
}, text);
|
|
59
83
|
}, []);
|
|
84
|
+
|
|
85
|
+
var handleClickTitle = function handleClickTitle() {
|
|
86
|
+
if (!obj) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
var objType = obj.objType,
|
|
91
|
+
objId = obj.objId;
|
|
92
|
+
|
|
93
|
+
if (objType === _constant.EObjType.Kr) {
|
|
94
|
+
_drawerManager["default"].open("krDetail", {
|
|
95
|
+
krId: objId
|
|
96
|
+
});
|
|
97
|
+
} else if (objType === _constant.EObjType.O) {
|
|
98
|
+
_drawerManager["default"].open("okrDetail", {
|
|
99
|
+
okrId: objId
|
|
100
|
+
});
|
|
101
|
+
} else if (objType === _constant.EObjType.Task) {
|
|
102
|
+
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
103
|
+
} else if (objType === _constant.EObjType.Project) {
|
|
104
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
60
108
|
(0, _react.useEffect)(function () {
|
|
61
109
|
(0, _tools.highLightWord)({
|
|
62
110
|
parentDom: contentRef.current,
|
|
@@ -73,7 +121,12 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
73
121
|
user: data.publishUser
|
|
74
122
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
123
|
className: "".concat(prefix, "__content")
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
}, obj && /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
+
className: "".concat(prefix, "__content-obj")
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
127
|
+
content: (0, _tools.htmlDecodeByRegExp)(obj === null || obj === void 0 ? void 0 : obj.objName),
|
|
128
|
+
onClickTitle: handleClickTitle
|
|
129
|
+
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
130
|
ref: contentRef
|
|
78
131
|
}, (0, _openData.parseTag)(data.content))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
132
|
className: "".concat(prefix, "__files")
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
align-items: center;
|
|
45
45
|
color: #89919f;
|
|
46
46
|
position: relative;
|
|
47
|
-
border-bottom: 1px solid #
|
|
47
|
+
border-bottom: 1px solid #f0f4fa;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.titaui-dynamic-item__footer-left {
|
|
@@ -98,6 +98,23 @@
|
|
|
98
98
|
color: #2879ff;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
.titaui-dynamic-item__footer-icon-redenvelopes::before {
|
|
102
|
+
content: '';
|
|
103
|
+
display: inline-block;
|
|
104
|
+
background: url("../img/dynamic-redenvelopes-normal.svg") no-repeat;
|
|
105
|
+
background-size: 20px 20px;
|
|
106
|
+
width: 20px;
|
|
107
|
+
height: 20px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.titaui-dynamic-item__footer-icon-redenvelopes:hover {
|
|
111
|
+
animation: redenvelopesRubberBand 1s;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.titaui-dynamic-item__footer-icon-redenvelopes:hover::before {
|
|
115
|
+
background: url("../img/dynamic-redenvelopes-hover.svg") no-repeat;
|
|
116
|
+
}
|
|
117
|
+
|
|
101
118
|
.titaui-dynamic-item__footer-number {
|
|
102
119
|
margin-left: 8px;
|
|
103
120
|
font-size: 14px;
|
|
@@ -122,8 +139,46 @@
|
|
|
122
139
|
.titaui-dynamic-item__upvote-btn {
|
|
123
140
|
color: #a4acb9;
|
|
124
141
|
font-size: 20px;
|
|
142
|
+
width: 20px !important;
|
|
125
143
|
}
|
|
126
144
|
|
|
127
145
|
.titaui-dynamic-item__upvote-btn:hover {
|
|
128
146
|
color: #2879ff;
|
|
129
147
|
}
|
|
148
|
+
|
|
149
|
+
@keyframes redenvelopesRubberBand {
|
|
150
|
+
0% {
|
|
151
|
+
-webkit-transform: scaleX(1);
|
|
152
|
+
transform: scaleX(1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
30% {
|
|
156
|
+
-webkit-transform: scale3d(1.25, 0.75, 1);
|
|
157
|
+
transform: scale3d(1.25, 0.75, 1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
40% {
|
|
161
|
+
-webkit-transform: scale3d(0.75, 1.25, 1);
|
|
162
|
+
transform: scale3d(0.75, 1.25, 1);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
50% {
|
|
166
|
+
-webkit-transform: scale3d(1.15, 0.85, 1);
|
|
167
|
+
transform: scale3d(1.15, 0.85, 1);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
65% {
|
|
171
|
+
-webkit-transform: scale3d(0.95, 1.05, 1);
|
|
172
|
+
transform: scale3d(0.95, 1.05, 1);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
75% {
|
|
176
|
+
-webkit-transform: scale3d(1.05, 0.95, 1);
|
|
177
|
+
transform: scale3d(1.05, 0.95, 1);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
to {
|
|
181
|
+
-webkit-transform: scaleX(1);
|
|
182
|
+
transform: scaleX(1);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -49,7 +49,7 @@ var _dynamicReward = _interopRequireDefault(require("./dynamic-reward"));
|
|
|
49
49
|
|
|
50
50
|
var _dynamicMilestone = _interopRequireDefault(require("./dynamic-milestone"));
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _dynamicLearning = _interopRequireDefault(require("./dynamic-learning"));
|
|
53
53
|
|
|
54
54
|
var _bsGlobal = require("../../../utils/bs-global");
|
|
55
55
|
|
|
@@ -242,8 +242,8 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
242
242
|
});
|
|
243
243
|
|
|
244
244
|
case _constant.EFeedType.Share:
|
|
245
|
-
if (data.shareType ===
|
|
246
|
-
//
|
|
245
|
+
if (data.shareType === _constant.EShareType.CommonShare) {
|
|
246
|
+
// 兼容一些 缺失shareType的 图表类型分享 过两天就会撤掉
|
|
247
247
|
if (data.biId) {
|
|
248
248
|
return /*#__PURE__*/_react["default"].createElement(_dynamicChart["default"], {
|
|
249
249
|
data: data,
|
|
@@ -257,13 +257,16 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
257
257
|
hasDynamicOpereateAuth: hasDynamicOpereateAuth,
|
|
258
258
|
dynamicShareIsShowToping: dynamicShareIsShowToping
|
|
259
259
|
});
|
|
260
|
-
}
|
|
261
|
-
// // 图表类型分享
|
|
262
|
-
// return <DynamicChart data={data} onDeleteFeed={onDeleteFeed} />;
|
|
263
|
-
// }
|
|
260
|
+
}
|
|
264
261
|
|
|
262
|
+
if (data.shareType === _constant.EShareType.BiShare) {
|
|
263
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicChart["default"], {
|
|
264
|
+
data: data,
|
|
265
|
+
onDeleteFeed: onDeleteFeed
|
|
266
|
+
});
|
|
267
|
+
}
|
|
265
268
|
|
|
266
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
269
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicLearning["default"], {
|
|
267
270
|
data: data
|
|
268
271
|
});
|
|
269
272
|
|
|
@@ -385,7 +388,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
385
388
|
className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"), "".concat(prefix, "__icon-up"))
|
|
386
389
|
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
387
390
|
onClick: handlePayReward,
|
|
388
|
-
className: (0, _classnames["default"])("
|
|
391
|
+
className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
|
|
389
392
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
390
393
|
onClick: handleCommentClick,
|
|
391
394
|
className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="74.137%" y1="76.285%" x2="7.656%" y2=".727%" id="a"><stop stop-color="#F05E5E" offset="0%"/><stop stop-color="#FFA5A5" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M16.905 4.805c0 .004.003.01.005.014.67 1.56 1.007 3.286 1.007 5.181s-.336 3.622-1.008 5.18v.001a3.5 3.5 0 0 1-1.814 1.823c-1.394.609-3.093.913-5.095.913s-3.7-.304-5.095-.912A3.5 3.5 0 0 1 3.09 15.18c-.67-1.56-1.007-3.286-1.007-5.181 0-1.75.287-3.355.86-4.818l.147-.363.006-.013c.356.213.797.408 1.306.58 1.433.482 3.412.78 5.598.78s4.165-.298 5.598-.78c.51-.172.95-.367 1.307-.58zm-8.143 4.63a.65.65 0 0 0-.895-.121.524.524 0 0 0-.098.735l1.08 1.413h-.646a.47.47 0 1 0 0 .94h1.176v.728H8.082a.595.595 0 0 0 0 1.19h1.297v.532a.648.648 0 1 0 1.296 0v-.532h1.313a.595.595 0 0 0 0-1.19h-1.313v-.728h1.192a.47.47 0 0 0 0-.94h-.641l.958-1.387a.555.555 0 0 0-.172-.79.638.638 0 0 0-.849.179l-1.123 1.594zM10 2.083c2.002 0 3.7.304 5.095.912a3.5 3.5 0 0 1 1.26.933c-.32.216-.88.412-1.64.574-1.244.264-2.922.415-4.715.415-1.793 0-3.471-.151-4.714-.415-.76-.162-1.32-.358-1.642-.573.342-.4.772-.72 1.26-.933v-.001c1.296-.564 2.853-.867 4.672-.907L10 2.083z" fill="url(#a)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M16.905 4.805c0 .004.003.01.005.014.67 1.56 1.007 3.286 1.007 5.181s-.336 3.622-1.008 5.18v.001a3.5 3.5 0 0 1-1.814 1.823c-1.394.609-3.093.913-5.095.913s-3.7-.304-5.095-.912A3.5 3.5 0 0 1 3.09 15.18c-.67-1.56-1.007-3.286-1.007-5.181 0-1.75.287-3.355.86-4.818l.147-.363.006-.013c.356.213.797.408 1.306.58 1.433.482 3.412.78 5.598.78s4.165-.298 5.598-.78c.51-.172.95-.367 1.307-.58zm-8.143 4.63a.65.65 0 0 0-.895-.121.524.524 0 0 0-.098.735l1.08 1.413h-.646a.47.47 0 1 0 0 .94h1.176v.728H8.082a.595.595 0 0 0 0 1.19h1.297v.532a.648.648 0 1 0 1.296 0v-.532h1.313a.595.595 0 0 0 0-1.19h-1.313v-.728h1.192a.47.47 0 0 0 0-.94h-.641l.958-1.387a.555.555 0 0 0-.172-.79.638.638 0 0 0-.849.179l-1.123 1.594zM10 2.083c2.002 0 3.7.304 5.095.912a3.5 3.5 0 0 1 1.26.933c-.32.216-.88.412-1.64.574-1.244.264-2.922.415-4.715.415-1.793 0-3.471-.151-4.714-.415-.76-.162-1.32-.358-1.642-.573.342-.4.772-.72 1.26-.933v-.001c1.296-.564 2.853-.867 4.672-.907L10 2.083z" fill="#A4ACB9"/></g></svg>
|