@titaui/pc 1.16.43-beta.7 → 1.16.43-beta.8
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/dynamic/dynamic-item/components/work-progress/index.js +5 -17
- package/lib/components/dynamic/dynamic-item/components/work-progress/mile-stone.js +2 -2
- package/lib/components/dynamic/dynamic-item/components/work-progress/work-task.js +2 -2
- package/lib/components/dynamic/dynamic-item/components/work-progress/work.js +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
13
13
|
|
|
14
14
|
var _renderRow = _interopRequireDefault(require("./render-row"));
|
|
15
15
|
|
|
@@ -44,22 +44,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
44
44
|
var prefix = "tita-summary-work-progress";
|
|
45
45
|
|
|
46
46
|
var Item = function Item(props) {
|
|
47
|
-
var children = props.children
|
|
48
|
-
feedId = props.feedId,
|
|
49
|
-
moduleId = props.moduleId,
|
|
50
|
-
getWorkData = props.getWorkData,
|
|
51
|
-
editable = props.editable,
|
|
52
|
-
setLoading = props.setLoading,
|
|
53
|
-
setIsSaveSuccess = props.setIsSaveSuccess;
|
|
47
|
+
var children = props.children;
|
|
54
48
|
return /*#__PURE__*/_react["default"].createElement("div", null, children.map(function (item) {
|
|
55
49
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_renderRow["default"], {
|
|
56
|
-
item: item
|
|
57
|
-
feedId: feedId,
|
|
58
|
-
moduleId: moduleId,
|
|
59
|
-
getWorkData: getWorkData,
|
|
60
|
-
editable: editable,
|
|
61
|
-
setLoading: setLoading,
|
|
62
|
-
setIsSaveSuccess: setIsSaveSuccess
|
|
50
|
+
item: item
|
|
63
51
|
}), item.children && item.children.length !== 0 && /*#__PURE__*/_react["default"].createElement(Item, null, item.children));
|
|
64
52
|
}));
|
|
65
53
|
};
|
|
@@ -96,7 +84,7 @@ var WorkProgress = function WorkProgress(_ref) {
|
|
|
96
84
|
className: "".concat(prefix, "__table-title-progress")
|
|
97
85
|
}, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Progresss1")), /*#__PURE__*/_react["default"].createElement("td", {
|
|
98
86
|
className: "".concat(prefix, "__table-title-progress-desc")
|
|
99
|
-
}, (0, _getLocale.getLocale)("Feed_Tab_Title_Progress"), /*#__PURE__*/_react["default"].createElement(
|
|
87
|
+
}, (0, _getLocale.getLocale)("Feed_Tab_Title_Progress"), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
100
88
|
overlay: (0, _getLocale.getLocale)("Rep_NewS_PrgreTask"),
|
|
101
89
|
placement: "top",
|
|
102
90
|
align: {
|
|
@@ -118,7 +106,7 @@ var WorkProgress = function WorkProgress(_ref) {
|
|
|
118
106
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
107
|
className: "".concat(prefix, "__title"),
|
|
120
108
|
onClick: handleClickToHideTable
|
|
121
|
-
}, (tableData === null || tableData === void 0 ? void 0 : (_tableData$Rows = tableData.Rows) === null || _tableData$Rows === void 0 ? void 0 : _tableData$Rows.length) > 0 && /*#__PURE__*/_react["default"].createElement(
|
|
109
|
+
}, (tableData === null || tableData === void 0 ? void 0 : (_tableData$Rows = tableData.Rows) === null || _tableData$Rows === void 0 ? void 0 : _tableData$Rows.length) > 0 && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
122
110
|
overlay: tableVisible ? (0, _getLocale.getLocale)('Mod_Fold') : (0, _getLocale.getLocale)('Mod_Unfold'),
|
|
123
111
|
placement: "top",
|
|
124
112
|
align: {
|
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _openData = _interopRequireDefault(require("../../../../../utils/open-data"));
|
|
13
13
|
|
|
14
14
|
var _progress = _interopRequireDefault(require("../progress"));
|
|
15
15
|
|
|
@@ -53,7 +53,7 @@ var MileStone = function MileStone(_ref) {
|
|
|
53
53
|
className: "".concat(preCls, "__table-row-title-icon tu-icon-licheng-s")
|
|
54
54
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
55
55
|
className: "".concat(preCls, "__table-row-title-text")
|
|
56
|
-
},
|
|
56
|
+
}, _openData["default"].parseString((0, _tools.htmlDecodeByRegExp)(data.MilestoneName))))), /*#__PURE__*/_react["default"].createElement("td", null, !!data.MilestoneId && /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
57
57
|
id: "".concat(data.MilestoneId),
|
|
58
58
|
type: "task",
|
|
59
59
|
status: _constant.OkrRiskMapping[data.RiskLevel],
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _openData = _interopRequireDefault(require("../../../../../utils/open-data"));
|
|
11
11
|
|
|
12
12
|
var _progress = _interopRequireDefault(require("../progress"));
|
|
13
13
|
|
|
@@ -36,7 +36,7 @@ var WorkTask = function WorkTask(_ref) {
|
|
|
36
36
|
className: "".concat(preCls, "__table-row-title-icon ").concat(_constant.EStatusStatus2ClassType[data.iconStatus])
|
|
37
37
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
38
38
|
className: "".concat(preCls, "__table-row-title-text")
|
|
39
|
-
},
|
|
39
|
+
}, _openData["default"].parseString((0, _tools.htmlDecodeByRegExp)(data.name))))), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
40
40
|
id: "".concat(data.id),
|
|
41
41
|
type: "task",
|
|
42
42
|
status: data.status === 1 || data.status === 2 && data.riskLevel === 4 ? "normal" : "risk",
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _openData = _interopRequireDefault(require("../../../../../utils/open-data"));
|
|
11
11
|
|
|
12
12
|
var _progress = _interopRequireDefault(require("../progress"));
|
|
13
13
|
|
|
@@ -43,7 +43,7 @@ var Work = function Work(_ref) {
|
|
|
43
43
|
className: "".concat(preCls, "__table-row-title-icon tu-icon-project-s")
|
|
44
44
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
45
|
className: "".concat(preCls, "__table-row-title-text")
|
|
46
|
-
},
|
|
46
|
+
}, _openData["default"].parseString((0, _tools.htmlDecodeByRegExp)(data.Name))), Number(data.RemainDay) > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
47
|
className: "".concat(preCls, "__table-row-title-remain")
|
|
48
48
|
}, (0, _getLocale.getLocale)("Rep_NewS_PrgreDelay").replace("XX", data.RemainDay)))), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
49
49
|
id: "".concat(data.Id),
|