@titaui/pc 1.16.43-beta.10 → 1.16.43-beta.11
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/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dynamic/dynamic-item/components/work-progress/constant.js +30 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/index.css +394 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/index.js +125 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/interface.js +22 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/mile-stone.js +71 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/render-row.js +84 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/request-api.js +35 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/utils.js +163 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/work-task.js +52 -0
- package/lib/components/dynamic/dynamic-item/components/work-progress/work.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +1 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +10 -0
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/picker/components/panels/date-panel/date-body.js +101 -27
- package/lib/components/picker/components/panels/date-panel/date-head.js +16 -8
- package/lib/components/picker/components/panels/date-panel/index.css +7 -26
- package/lib/components/picker/components/panels/date-panel/index.js +11 -46
- package/lib/components/picker/components/panels/month-panel/index.css +9 -19
- package/lib/components/picker/components/panels/month-panel/month-body.js +56 -14
- package/lib/components/picker/components/panels/month-panel/month-head.js +2 -19
- package/lib/components/picker/components/panels/panel-head/index.js +0 -4
- package/lib/components/picker/components/panels/week-panel/index.css +1 -1
- package/lib/components/picker/components/panels/year-panel/index.css +6 -28
- package/lib/components/picker/components/panels/year-panel/year-body.js +48 -19
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -20
- package/lib/components/picker/components/picker-trigger/index.js +1 -1
- package/lib/components/picker/context.js +9 -19
- package/lib/components/picker/index.css +2 -16
- package/lib/components/picker/picker-panels.js +26 -14
- package/lib/components/picker/picker.js +28 -27
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +3 -3
- package/lib/components/picker/range-picker/components/select-input/index.js +9 -3
- package/lib/components/picker/range-picker/index.js +18 -13
- package/lib/components/picker/utils.js +5 -11
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/select/Option.js +3 -3
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/package.json +1 -2
- package/lib/components/picker/components/panels/date-panel/date-rows.js +0 -145
- package/lib/components/picker/components/panels/date-panel/useRowsData.js +0 -77
- package/lib/components/picker/components/panels/month-panel/useRowsData.js +0 -61
- package/lib/components/picker/components/panels/year-panel/useRowsData.js +0 -63
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _assertThisInitialized(_this)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var
|
|
90
|
+
var _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (
|
|
98
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _assertThisInitialized(_this)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EStatusStatus2ClassType = exports.EObjType = void 0;
|
|
7
|
+
var EObjType;
|
|
8
|
+
exports.EObjType = EObjType;
|
|
9
|
+
|
|
10
|
+
(function (EObjType) {
|
|
11
|
+
EObjType[EObjType["Project"] = 4] = "Project";
|
|
12
|
+
EObjType[EObjType["Task"] = 7] = "Task";
|
|
13
|
+
EObjType[EObjType["O"] = 62] = "O";
|
|
14
|
+
EObjType[EObjType["Kr"] = 65] = "Kr";
|
|
15
|
+
EObjType[EObjType["Assess"] = 23] = "Assess";
|
|
16
|
+
EObjType[EObjType["MileStone"] = 27] = "MileStone";
|
|
17
|
+
EObjType[EObjType["KanBan"] = 66] = "KanBan";
|
|
18
|
+
EObjType[EObjType["Report"] = 8] = "Report";
|
|
19
|
+
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
20
|
+
|
|
21
|
+
var EStatusStatus2ClassType = {
|
|
22
|
+
2: "tu-icon-finished",
|
|
23
|
+
1: "tu-icon-running",
|
|
24
|
+
4: "tu-icon-canceled",
|
|
25
|
+
3: "tu-icon-deferred",
|
|
26
|
+
6: "tu-icon-paused",
|
|
27
|
+
0: "tu-icon-notstart",
|
|
28
|
+
5: "tu-icon-jiantou-right"
|
|
29
|
+
};
|
|
30
|
+
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
.tita-summary-work-progress:hover .tita-summary-work-progress__title-arrow {
|
|
2
|
+
opacity: 1;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.tita-summary-work-progress__title {
|
|
6
|
+
position: relative;
|
|
7
|
+
font-size: 18px;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
color: #141c28;
|
|
10
|
+
line-height: 26px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.tita-summary-work-progress__title-arrow {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
transition: all 0.3s;
|
|
19
|
+
position: absolute;
|
|
20
|
+
left: -28px;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
width: 24px;
|
|
25
|
+
height: 24px;
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tita-summary-work-progress__title-arrow--show {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.tita-summary-work-progress__title-arrow:hover {
|
|
35
|
+
background: #F0F4FA;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tita-summary-work-progress__title-arrow-icon {
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
transform: scale(0.5);
|
|
41
|
+
transition: all 0.3s;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tita-summary-work-progress__title-arrow-icon--rotate {
|
|
45
|
+
transform: rotate(-90deg) scale(0.5);
|
|
46
|
+
transition: all 0.3s;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tita-summary-work-progress__title-update {
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
color: #2879ff;
|
|
53
|
+
line-height: 22px;
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tita-summary-work-progress__title-update-icon {
|
|
59
|
+
margin-right: 4px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tita-summary-work-progress__title-update:hover {
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
opacity: 0.8;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.tita-summary-work-progress__table {
|
|
68
|
+
border: 1px solid #dfe3ea;
|
|
69
|
+
border-radius: 12px;
|
|
70
|
+
margin-top: 12px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tita-summary-work-progress__table--hide {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.tita-summary-work-progress__table-td--editable:hover {
|
|
78
|
+
border: 1px solid #2879ff;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tita-summary-work-progress__table-obj {
|
|
82
|
+
padding: 8px 4px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tita-summary-work-progress__table-row-title {
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
color: #141c28;
|
|
88
|
+
padding: 8px 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.tita-summary-work-progress__table-row-title-remain {
|
|
92
|
+
background: rgba(240, 94, 94, 0.16);
|
|
93
|
+
border-radius: 12px;
|
|
94
|
+
padding: 0 8px;
|
|
95
|
+
height: 20px;
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
font-size: 12px;
|
|
99
|
+
color: #3f4755;
|
|
100
|
+
line-height: 18px;
|
|
101
|
+
margin-left: 4px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.tita-summary-work-progress__table-row-title-worktime {
|
|
105
|
+
margin-left: 4px;
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
height: 20px;
|
|
109
|
+
padding: 0 8px;
|
|
110
|
+
border-radius: 12px;
|
|
111
|
+
background: rgba(240, 163, 38, 0.16);
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
color: #3f4755;
|
|
114
|
+
line-height: 18px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.tita-summary-work-progress__table-row-title-icon {
|
|
118
|
+
margin-right: 4px;
|
|
119
|
+
vertical-align: middle;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.tita-summary-work-progress__table-row-title-text {
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
color: #141c28;
|
|
126
|
+
line-height: 22px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.tita-summary-work-progress__table-row-title-text:hover {
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
color: #2879ff;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.tita-summary-work-progress__table table {
|
|
135
|
+
width: 100%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.tita-summary-work-progress__table table thead {
|
|
139
|
+
width: 100%;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.tita-summary-work-progress__table table tbody {
|
|
143
|
+
width: 100%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.tita-summary-work-progress__table table tbody tr {
|
|
147
|
+
position: relative;
|
|
148
|
+
border-bottom: 1px solid #dfe3ea;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.tita-summary-work-progress__table table tbody tr:hover {
|
|
152
|
+
background: rgba(240, 244, 250, 0.6);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.tita-summary-work-progress__table table tbody tr:hover .tita-summary-task-progress__table-row-del {
|
|
156
|
+
display: flex;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.tita-summary-work-progress__table table tbody tr:last-child {
|
|
160
|
+
border-bottom: unset;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.tita-summary-work-progress__table table tbody tr td {
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
padding: 0 12px;
|
|
166
|
+
border-left: 1px solid #dfe3ea;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.tita-summary-work-progress__table table tbody tr td:first-child {
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
width: 282px;
|
|
172
|
+
max-width: 282px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.tita-summary-work-progress__table table tbody tr td:first-child {
|
|
176
|
+
border-left: unset;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.tita-summary-work-progress__table table tbody tr td:nth-child(2) {
|
|
180
|
+
padding: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tita-summary-work-progress__table-title {
|
|
184
|
+
height: 40px;
|
|
185
|
+
background: #f0f4fa;
|
|
186
|
+
font-size: 13px;
|
|
187
|
+
color: #89919f;
|
|
188
|
+
line-height: 18px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.tita-summary-work-progress__table-title td {
|
|
192
|
+
text-align: center;
|
|
193
|
+
padding: 0 12px;
|
|
194
|
+
box-sizing: border-box;
|
|
195
|
+
border-right: 1px solid #dfe3ea;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.tita-summary-work-progress__table-title td:last-child {
|
|
199
|
+
border-right: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.tita-summary-work-progress__table-title-okrs {
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
border-top-left-radius: 12px;
|
|
205
|
+
width: 282px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tita-summary-work-progress__table-title-progress {
|
|
209
|
+
width: 102px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.tita-summary-work-progress__table-title-progress-desc {
|
|
213
|
+
overflow: hidden;
|
|
214
|
+
border-top-right-radius: 12px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.tita-summary-work-progress__table-title-progress-desc-icon {
|
|
218
|
+
font-size: 14px;
|
|
219
|
+
margin-left: 4px;
|
|
220
|
+
vertical-align: text-top;
|
|
221
|
+
color: #BFC7D5;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.tita-summary-work-progress__table-row-del {
|
|
225
|
+
width: 32px;
|
|
226
|
+
height: 32px;
|
|
227
|
+
background: #ffffff;
|
|
228
|
+
box-shadow: 0px 4px 8px 0px rgba(127, 145, 180, 0.2);
|
|
229
|
+
border-radius: 50%;
|
|
230
|
+
display: none;
|
|
231
|
+
align-items: center;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
position: absolute;
|
|
234
|
+
right: -15px;
|
|
235
|
+
top: 50%;
|
|
236
|
+
transform: translateY(-50%);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.tita-summary-work-progress__table-row-del-icon {
|
|
240
|
+
color: #141c28;
|
|
241
|
+
font-size: 16px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.tita-summary-work-progress__table-row-del-icon:hover {
|
|
245
|
+
cursor: pointer;
|
|
246
|
+
color: #f05e5e;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.tita-summary-work-progress__statistic {
|
|
250
|
+
display: flex;
|
|
251
|
+
margin-top: 12px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.tita-summary-work-progress__statistic--hide {
|
|
255
|
+
display: none;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.tita-summary-work-progress__statistic-item {
|
|
259
|
+
max-width: 320px;
|
|
260
|
+
flex: 1;
|
|
261
|
+
height: 48px;
|
|
262
|
+
border-radius: 12px;
|
|
263
|
+
display: flex;
|
|
264
|
+
align-items: center;
|
|
265
|
+
justify-content: space-between;
|
|
266
|
+
margin-right: 10px;
|
|
267
|
+
padding: 0 16px;
|
|
268
|
+
font-size: 14px;
|
|
269
|
+
font-weight: 600;
|
|
270
|
+
color: #141c28;
|
|
271
|
+
line-height: 22px;
|
|
272
|
+
position: relative;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.tita-summary-work-progress__statistic-item:last-child {
|
|
277
|
+
margin-right: 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.tita-summary-work-progress__statistic-item--finished {
|
|
281
|
+
background: rgba(0, 214, 133, 0.1);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.tita-summary-work-progress__statistic-item--finished-text {
|
|
285
|
+
color: #00d685;
|
|
286
|
+
font-size: 16px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.tita-summary-work-progress__statistic-item--finished-active {
|
|
290
|
+
background: rgba(0, 214, 133, 0.3);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.tita-summary-work-progress__statistic-item--finished-active::before {
|
|
294
|
+
content: "";
|
|
295
|
+
position: absolute;
|
|
296
|
+
top: 0;
|
|
297
|
+
left: 0;
|
|
298
|
+
width: 4px;
|
|
299
|
+
height: 48px;
|
|
300
|
+
background: rgba(0, 214, 133, 0.3);
|
|
301
|
+
border-radius: 12px 0 0 12px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.tita-summary-work-progress__statistic-item--processing {
|
|
305
|
+
background: rgba(40, 121, 255, 0.1);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.tita-summary-work-progress__statistic-item--processing-text {
|
|
309
|
+
color: #2879ff;
|
|
310
|
+
font-size: 16px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.tita-summary-work-progress__statistic-item--processing-active {
|
|
314
|
+
background: rgba(40, 121, 255, 0.3);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.tita-summary-work-progress__statistic-item--processing-active::before {
|
|
318
|
+
content: "";
|
|
319
|
+
position: absolute;
|
|
320
|
+
top: 0;
|
|
321
|
+
left: 0;
|
|
322
|
+
width: 4px;
|
|
323
|
+
height: 48px;
|
|
324
|
+
background: rgba(40, 121, 255, 0.3);
|
|
325
|
+
border-radius: 12px 0 0 12px;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.tita-summary-work-progress__statistic-item--overdue {
|
|
329
|
+
background: rgba(240, 94, 94, 0.1);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.tita-summary-work-progress__statistic-item--overdue-text {
|
|
333
|
+
color: #f05e5e;
|
|
334
|
+
font-size: 16px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.tita-summary-work-progress__statistic-item--overdue-active {
|
|
338
|
+
background: rgba(240, 94, 94, 0.3);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.tita-summary-work-progress__statistic-item--overdue-active::before {
|
|
342
|
+
content: "";
|
|
343
|
+
position: absolute;
|
|
344
|
+
top: 0;
|
|
345
|
+
left: 0;
|
|
346
|
+
width: 4px;
|
|
347
|
+
height: 48px;
|
|
348
|
+
background: rgba(240, 94, 94, 0.3);
|
|
349
|
+
border-radius: 12px 0 0 12px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.tita-summary-work-progress__import {
|
|
353
|
+
margin-top: 10px;
|
|
354
|
+
width: 60px;
|
|
355
|
+
height: 60px;
|
|
356
|
+
border-radius: 8px;
|
|
357
|
+
border: 1px solid #e9ecf0;
|
|
358
|
+
display: flex;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: center;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.tita-summary-work-progress__import-icon {
|
|
364
|
+
font-size: 24px;
|
|
365
|
+
color: #bfc7d5;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.tita-summary-work-progress__import:hover {
|
|
369
|
+
cursor: pointer;
|
|
370
|
+
border: 1px solid #2879ff;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.tita-summary-work-progress__import:hover .tu-icon-add1 {
|
|
374
|
+
color: #2879ff;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.tita-summary-work-progress__schedule-td {
|
|
378
|
+
position: relative;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.tita-summary-work-progress__schedule-td:hover {
|
|
382
|
+
border: 1px solid #2879FF;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.tita-summary-work-progress__schedule-td--border {
|
|
386
|
+
border: 1px solid #2879FF !important;
|
|
387
|
+
border-left: 2px solid #2879ff;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@media screen and (min-width: 1366px) {
|
|
391
|
+
.tita-summary-task-progress__statistic-item {
|
|
392
|
+
max-width: 350px;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
13
|
+
|
|
14
|
+
var _renderRow = _interopRequireDefault(require("./render-row"));
|
|
15
|
+
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
18
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
19
|
+
|
|
20
|
+
var _utils = require("./utils");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
+
|
|
34
|
+
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."); }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
+
|
|
44
|
+
var prefix = "tita-summary-work-progress";
|
|
45
|
+
|
|
46
|
+
var Item = function Item(props) {
|
|
47
|
+
var children = props.children;
|
|
48
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, children.map(function (item) {
|
|
49
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_renderRow["default"], {
|
|
50
|
+
item: item
|
|
51
|
+
}), item.children && item.children.length !== 0 && /*#__PURE__*/_react["default"].createElement(Item, null, item.children));
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var WorkProgress = function WorkProgress(_ref) {
|
|
56
|
+
var _tableData$Rows, _tableData$Rows2;
|
|
57
|
+
|
|
58
|
+
var data = _ref.data,
|
|
59
|
+
title = _ref.title,
|
|
60
|
+
reportType = _ref.reportType;
|
|
61
|
+
|
|
62
|
+
var _useState = (0, _react.useState)(true),
|
|
63
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
64
|
+
tableVisible = _useState2[0],
|
|
65
|
+
setTableVisible = _useState2[1];
|
|
66
|
+
|
|
67
|
+
var _useState3 = (0, _react.useState)(),
|
|
68
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
69
|
+
tableData = _useState4[0],
|
|
70
|
+
setTableData = _useState4[1];
|
|
71
|
+
|
|
72
|
+
var handleClickToHideTable = function handleClickToHideTable() {
|
|
73
|
+
setTableVisible(!tableVisible);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var renderTable = (0, _react.useMemo)(function () {
|
|
77
|
+
var _toTree;
|
|
78
|
+
|
|
79
|
+
return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
|
|
80
|
+
className: "".concat(prefix, "__table-title")
|
|
81
|
+
}, /*#__PURE__*/_react["default"].createElement("td", {
|
|
82
|
+
className: "".concat(prefix, "__table-title-okrs")
|
|
83
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_Title_Taskname")), /*#__PURE__*/_react["default"].createElement("td", {
|
|
84
|
+
className: "".concat(prefix, "__table-title-progress")
|
|
85
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Progresss1")), /*#__PURE__*/_react["default"].createElement("td", {
|
|
86
|
+
className: "".concat(prefix, "__table-title-progress-desc")
|
|
87
|
+
}, (0, _getLocale.getLocale)("Feed_Tab_Title_Progress"), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
88
|
+
overlay: (0, _getLocale.getLocale)("Rep_NewS_PrgreTask"),
|
|
89
|
+
placement: "top",
|
|
90
|
+
align: {
|
|
91
|
+
offset: [0, 5]
|
|
92
|
+
}
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
94
|
+
className: "tu-icon-wiki ".concat(prefix, "__table-title-progress-desc-icon")
|
|
95
|
+
}))))), /*#__PURE__*/_react["default"].createElement("tbody", null, (_toTree = (0, _utils.toTree)(tableData === null || tableData === void 0 ? void 0 : tableData.Rows)) === null || _toTree === void 0 ? void 0 : _toTree.map(function (item) {
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement(_renderRow["default"], {
|
|
97
|
+
item: item
|
|
98
|
+
});
|
|
99
|
+
})));
|
|
100
|
+
}, [tableData]);
|
|
101
|
+
(0, _react.useEffect)(function () {
|
|
102
|
+
setTableData(JSON.parse(data || '{}'));
|
|
103
|
+
}, [data]);
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
+
className: prefix
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
+
className: "".concat(prefix, "__title"),
|
|
108
|
+
onClick: handleClickToHideTable
|
|
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"], {
|
|
110
|
+
overlay: tableVisible ? (0, _getLocale.getLocale)('Mod_Fold') : (0, _getLocale.getLocale)('Mod_Unfold'),
|
|
111
|
+
placement: "top",
|
|
112
|
+
align: {
|
|
113
|
+
offset: [0, 5]
|
|
114
|
+
}
|
|
115
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
|
+
className: (0, _classnames["default"])("".concat(prefix, "__title-arrow"), _defineProperty({}, "".concat(prefix, "__title-arrow--show"), !tableVisible))
|
|
117
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
118
|
+
className: (0, _classnames["default"])('tu-icon-caret-down', "".concat(prefix, "__title-arrow-icon"), _defineProperty({}, "".concat(prefix, "__title-arrow-icon--rotate"), !tableVisible))
|
|
119
|
+
}))), title), (tableData === null || tableData === void 0 ? void 0 : (_tableData$Rows2 = tableData.Rows) === null || _tableData$Rows2 === void 0 ? void 0 : _tableData$Rows2.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
+
className: (0, _classnames["default"])("".concat(prefix, "__table"), _defineProperty({}, "".concat(prefix, "__table--hide"), !tableVisible))
|
|
121
|
+
}, renderTable));
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var _default = WorkProgress;
|
|
125
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EReportType = exports.EImportType = void 0;
|
|
7
|
+
var EReportType;
|
|
8
|
+
exports.EReportType = EReportType;
|
|
9
|
+
|
|
10
|
+
(function (EReportType) {
|
|
11
|
+
EReportType[EReportType["Daily"] = 8] = "Daily";
|
|
12
|
+
EReportType[EReportType["Weekly"] = 26] = "Weekly";
|
|
13
|
+
EReportType[EReportType["Month"] = 27] = "Month";
|
|
14
|
+
})(EReportType || (exports.EReportType = EReportType = {}));
|
|
15
|
+
|
|
16
|
+
var EImportType;
|
|
17
|
+
exports.EImportType = EImportType;
|
|
18
|
+
|
|
19
|
+
(function (EImportType) {
|
|
20
|
+
EImportType[EImportType["Imported"] = 1] = "Imported";
|
|
21
|
+
EImportType[EImportType["NotImported"] = 0] = "NotImported";
|
|
22
|
+
})(EImportType || (exports.EImportType = EImportType = {}));
|