@titaui/pc 1.12.6 → 1.12.7-beta.1

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.
Files changed (191) hide show
  1. package/lib/components/attachments-preview/index.css +11 -0
  2. package/lib/components/attachments-preview/index.js +112 -0
  3. package/lib/components/auto-save/img/failed.svg +17 -0
  4. package/lib/components/auto-save/img/success.svg +16 -0
  5. package/lib/components/auto-save/index.css +39 -0
  6. package/lib/components/auto-save/index.js +78 -0
  7. package/lib/components/auto-save/interface.js +5 -0
  8. package/lib/components/dialog-upload/img/doc.svg +1 -0
  9. package/lib/components/dialog-upload/img/other.svg +1 -0
  10. package/lib/components/dialog-upload/img/pdf.svg +1 -0
  11. package/lib/components/dialog-upload/img/ppt.svg +1 -0
  12. package/lib/components/dialog-upload/img/radio.svg +1 -0
  13. package/lib/components/dialog-upload/img/video.svg +1 -0
  14. package/lib/components/dialog-upload/img/xls.svg +1 -0
  15. package/lib/components/dialog-upload/index.css +77 -0
  16. package/lib/components/dialog-upload/index.js +330 -0
  17. package/lib/components/dialog-upload/type.js +35 -0
  18. package/lib/components/dialog-upload/uploaded-preview.css +77 -0
  19. package/lib/components/dialog-upload/uploaded-preview.js +132 -0
  20. package/lib/components/dialog-upload/util.js +131 -0
  21. package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +119 -0
  22. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
  23. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
  24. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
  25. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
  26. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
  27. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
  28. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
  29. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
  30. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
  31. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
  32. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
  33. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +14 -0
  34. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +68 -0
  35. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +116 -0
  36. package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +143 -0
  37. package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
  38. package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
  39. package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
  40. package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
  41. package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
  42. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +170 -0
  43. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +120 -0
  44. package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +5 -0
  45. package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +10 -0
  46. package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +10 -0
  47. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +8 -0
  48. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +26 -0
  49. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +8 -0
  50. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +26 -0
  51. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +197 -0
  52. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +220 -0
  53. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +20 -0
  54. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +134 -0
  55. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +10 -0
  56. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +60 -0
  57. package/lib/components/dynamic/dynamic-item/components/progress/index.css +25 -0
  58. package/lib/components/dynamic/dynamic-item/components/progress/index.js +71 -0
  59. package/lib/components/dynamic/dynamic-item/components/progress/interface.js +5 -0
  60. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +31 -0
  61. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +59 -0
  62. package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +5 -0
  63. package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
  64. package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
  65. package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
  66. package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
  67. package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
  68. package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +136 -0
  69. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +348 -0
  70. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +24 -0
  71. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +52 -0
  72. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +5 -0
  73. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +50 -0
  74. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +65 -0
  75. package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +5 -0
  76. package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +201 -0
  77. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +95 -0
  78. package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +5 -0
  79. package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +10 -0
  80. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
  81. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
  82. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
  83. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
  84. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
  85. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
  86. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
  87. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +32 -0
  88. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +43 -0
  89. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +37 -0
  90. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +79 -0
  91. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
  92. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
  93. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
  94. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
  95. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
  96. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +155 -0
  97. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +155 -0
  98. package/lib/components/dynamic/dynamic-item/index.js +4 -3
  99. package/lib/components/import-modal/helper.js +179 -0
  100. package/lib/components/import-modal/image/loading.gif +0 -0
  101. package/lib/components/import-modal/import-okr-modal/index.css +18 -0
  102. package/lib/components/import-modal/import-okr-modal/index.js +132 -0
  103. package/lib/components/import-modal/import-task-modal/index.css +18 -0
  104. package/lib/components/import-modal/import-task-modal/index.js +240 -0
  105. package/lib/components/import-modal/import-task-modal/search-form.js +135 -0
  106. package/lib/components/import-modal/index.css +30 -0
  107. package/lib/components/import-modal/index.js +20 -0
  108. package/lib/components/import-modal/radio.js +62 -0
  109. package/lib/components/import-modal/request-api.js +204 -0
  110. package/lib/components/import-modal/search/category-select.js +74 -0
  111. package/lib/components/import-modal/search/okr-classify-select.js +74 -0
  112. package/lib/components/import-modal/search/okr-status-select.js +74 -0
  113. package/lib/components/import-modal/search/okr-type-select.js +87 -0
  114. package/lib/components/import-modal/search/principal.js +135 -0
  115. package/lib/components/import-modal/search/relation.js +77 -0
  116. package/lib/components/import-modal/search/search-dropdown/index.css +50 -0
  117. package/lib/components/import-modal/search/search-dropdown/index.js +32 -0
  118. package/lib/components/import-modal/search/task-relation.js +83 -0
  119. package/lib/components/import-modal/search/task-status-select.js +87 -0
  120. package/lib/components/import-modal/search/work-relation.js +83 -0
  121. package/lib/components/import-modal/search/work-status-select.js +74 -0
  122. package/lib/components/import-modal/tree/okr-tree/index.css +61 -0
  123. package/lib/components/import-modal/tree/okr-tree/index.js +265 -0
  124. package/lib/components/import-modal/tree/okr-tree/search-form.js +161 -0
  125. package/lib/components/import-modal/tree/task-work-tree/index.css +123 -0
  126. package/lib/components/import-modal/tree/task-work-tree/index.js +187 -0
  127. package/lib/components/import-modal/tree-node/index.css +0 -0
  128. package/lib/components/import-modal/tree-node/index.js +51 -0
  129. package/lib/components/import-modal/tree-node/kr-node/index.css +58 -0
  130. package/lib/components/import-modal/tree-node/kr-node/index.js +108 -0
  131. package/lib/components/import-modal/tree-node/milestone-node/index.css +61 -0
  132. package/lib/components/import-modal/tree-node/milestone-node/index.js +118 -0
  133. package/lib/components/import-modal/tree-node/o-node/index.css +46 -0
  134. package/lib/components/import-modal/tree-node/o-node/index.js +138 -0
  135. package/lib/components/import-modal/tree-node/work-node/index.css +51 -0
  136. package/lib/components/import-modal/tree-node/work-node/index.js +108 -0
  137. package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +14 -0
  138. package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +18 -0
  139. package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +15 -0
  140. package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +15 -0
  141. package/lib/components/menus/components/menu-tree/tree-node/index.css +120 -0
  142. package/lib/components/menus/components/menu-tree/tree-node/index.js +22 -2
  143. package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +74 -0
  144. package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +74 -0
  145. package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +56 -0
  146. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +32 -0
  147. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +201 -0
  148. package/lib/components/menus/export-modules/summary-menus/index.css +9 -0
  149. package/lib/components/menus/export-modules/summary-menus/index.js +134 -0
  150. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +76 -0
  151. package/lib/components/menus/export-modules/summary-menus/menus.js +199 -0
  152. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +199 -0
  153. package/lib/components/menus/i18n.js +8 -0
  154. package/lib/components/menus/index.js +6 -0
  155. package/lib/components/nav-top/components/menu/index.js +1 -1
  156. package/lib/components/new-confidence/constant.js +53 -0
  157. package/lib/components/new-confidence/img/1.svg +40 -0
  158. package/lib/components/new-confidence/img/10.svg +33 -0
  159. package/lib/components/new-confidence/img/2.svg +40 -0
  160. package/lib/components/new-confidence/img/3.svg +40 -0
  161. package/lib/components/new-confidence/img/4.svg +40 -0
  162. package/lib/components/new-confidence/img/5.svg +40 -0
  163. package/lib/components/new-confidence/img/6.svg +40 -0
  164. package/lib/components/new-confidence/img/7.svg +40 -0
  165. package/lib/components/new-confidence/img/8.svg +40 -0
  166. package/lib/components/new-confidence/img/9.svg +40 -0
  167. package/lib/components/new-confidence/index.css +62 -0
  168. package/lib/components/new-confidence/index.js +115 -0
  169. package/lib/components/new-confidence/interface.js +5 -0
  170. package/lib/components/okr-detail/components/o-progress-update/index.js +8 -4
  171. package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
  172. package/lib/components/picker/components/panels/week-panel/index.css +42 -0
  173. package/lib/components/picker/components/panels/week-panel/index.js +49 -0
  174. package/lib/components/picker/components/panels/week-panel/week-body.js +127 -0
  175. package/lib/components/picker/components/panels/week-panel/week-head.js +80 -0
  176. package/lib/components/picker/components/picker-trigger/index.js +3 -2
  177. package/lib/components/picker/picker-panels.js +45 -4
  178. package/lib/components/picker/picker.js +7 -3
  179. package/lib/components/rate/index.js +52 -0
  180. package/lib/components/rich-editor-at/components/index.css +66 -0
  181. package/lib/components/rich-editor-at/components/index.js +188 -0
  182. package/lib/components/rich-editor-at/index.css +40 -0
  183. package/lib/components/rich-editor-at/index.js +108 -0
  184. package/lib/components/rich-editor-upload/index.css +11 -0
  185. package/lib/components/rich-editor-upload/index.js +84 -0
  186. package/lib/components/search-input/index.js +5 -0
  187. package/lib/components/textarea/index.js +7 -5
  188. package/lib/index.js +40 -0
  189. package/lib/utils/bs-global.js +1 -1
  190. package/lib/utils/helpers.js +8 -0
  191. package/package.json +2 -1
@@ -0,0 +1,170 @@
1
+ .titaui-okr-progress__title {
2
+ font-size: 18px;
3
+ font-weight: 600;
4
+ color: #141c28;
5
+ line-height: 26px;
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ }
10
+
11
+ .titaui-okr-progress__title-update {
12
+ font-size: 14px;
13
+ font-weight: 400;
14
+ color: #2879ff;
15
+ line-height: 22px;
16
+ display: inline-flex;
17
+ align-items: center;
18
+ }
19
+
20
+ .titaui-okr-progress__title-update-icon {
21
+ margin-right: 4px;
22
+ }
23
+
24
+ .titaui-okr-progress__title-update:hover {
25
+ cursor: pointer;
26
+ opacity: 0.8;
27
+ }
28
+
29
+ .titaui-okr-progress__table {
30
+ border: 1px solid #dfe3ea;
31
+ border-radius: 12px;
32
+ margin-top: 12px;
33
+ }
34
+
35
+ .titaui-okr-progress__table-obj {
36
+ padding: 8px 0;
37
+ }
38
+
39
+ .titaui-okr-progress__table .tita-ui-new-confidence {
40
+ display: inline-flex;
41
+ align-items: center;
42
+ }
43
+
44
+ .titaui-okr-progress__table table {
45
+ width: 100%;
46
+ }
47
+
48
+ .titaui-okr-progress__table table thead {
49
+ width: 100%;
50
+ }
51
+
52
+ .titaui-okr-progress__table table tbody {
53
+ width: 100%;
54
+ }
55
+
56
+ .titaui-okr-progress__table table tbody tr {
57
+ position: relative;
58
+ border-bottom: 1px solid #dfe3ea;
59
+ }
60
+
61
+ .titaui-okr-progress__table table tbody tr:hover {
62
+ background: #f0f4fa;
63
+ }
64
+
65
+ .titaui-okr-progress__table table tbody tr:last-child {
66
+ border-bottom: unset;
67
+ }
68
+
69
+ .titaui-okr-progress__table table tbody tr td {
70
+ box-sizing: border-box;
71
+ padding: 0 12px;
72
+ border-right: 1px solid #dfe3ea;
73
+ }
74
+
75
+ .titaui-okr-progress__table table tbody tr td:first-child {
76
+ overflow: hidden;
77
+ width: 282px;
78
+ max-width: 282px;
79
+ }
80
+
81
+ .titaui-okr-progress__table table tbody tr td:last-child {
82
+ border-right: unset;
83
+ }
84
+
85
+ .titaui-okr-progress__table table tbody tr td:nth-child(2) {
86
+ padding: 0;
87
+ }
88
+
89
+ .titaui-okr-progress__table table tbody tr td:nth-child(3) {
90
+ text-align: center;
91
+ }
92
+
93
+ .titaui-okr-progress__table-title {
94
+ height: 40px;
95
+ background: #f0f4fa;
96
+ font-size: 13px;
97
+ color: #89919f;
98
+ line-height: 18px;
99
+ }
100
+
101
+ .titaui-okr-progress__table-title td {
102
+ text-align: center;
103
+ padding: 0 12px;
104
+ box-sizing: border-box;
105
+ border-right: 1px solid #dfe3ea;
106
+ }
107
+
108
+ .titaui-okr-progress__table-title td:last-child {
109
+ border-right: none;
110
+ }
111
+
112
+ .titaui-okr-progress__table-title-okrs {
113
+ overflow: hidden;
114
+ border-top-left-radius: 12px;
115
+ width: 282px;
116
+ }
117
+
118
+ .titaui-okr-progress__table-title-progress {
119
+ width: 102px;
120
+ }
121
+
122
+ .titaui-okr-progress__table-title-confidence {
123
+ width: 78px;
124
+ }
125
+
126
+ .titaui-okr-progress__table-title-progress-desc {
127
+ overflow: hidden;
128
+ border-top-right-radius: 12px;
129
+ cursor: pointer;
130
+ }
131
+
132
+ .titaui-okr-progress__table-title-progress-desc-icon {
133
+ font-size: 14px;
134
+ margin-left: 4px;
135
+ vertical-align: text-top;
136
+ }
137
+
138
+ .titaui-okr-progress__import {
139
+ margin-top: 10px;
140
+ width: 60px;
141
+ height: 60px;
142
+ border-radius: 8px;
143
+ border: 1px solid #e9ecf0;
144
+ display: flex;
145
+ align-items: center;
146
+ justify-content: center;
147
+ }
148
+
149
+ .titaui-okr-progress__import-icon {
150
+ font-size: 24px;
151
+ color: #BFC7D5;
152
+ }
153
+
154
+ .titaui-okr-progress__import:hover {
155
+ cursor: pointer;
156
+ border: 1px solid #2879ff;
157
+ }
158
+
159
+ .titaui-okr-progress__import:hover .tu-icon-add1 {
160
+ color: #2879ff;
161
+ }
162
+
163
+ .titaui-okr-progress__progress {
164
+ position: relative;
165
+ z-index: 2;
166
+ display: flex;
167
+ align-items: center;
168
+ justify-content: center;
169
+ height: 34px;
170
+ }
@@ -0,0 +1,120 @@
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 _newConfidence = _interopRequireDefault(require("../../../../new-confidence"));
15
+
16
+ var _getLocale = require("../../../../../utils/getLocale");
17
+
18
+ var _progress = _interopRequireDefault(require("../progress"));
19
+
20
+ var _schedule = _interopRequireDefault(require("../schedule"));
21
+
22
+ var _tableRowOkr = _interopRequireDefault(require("../table-row-okr"));
23
+
24
+ var _tableRowOProject = _interopRequireDefault(require("../table-row-o-project"));
25
+
26
+ require("./index.css");
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
+
30
+ 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); }
31
+
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; }
33
+
34
+ var prefix = "titaui-okr-progress";
35
+
36
+ var OkrProgress = function OkrProgress(_ref) {
37
+ var _ref$type = _ref.type,
38
+ type = _ref$type === void 0 ? "day" : _ref$type;
39
+ var renderTitle = (0, _react.useMemo)(function () {
40
+ if (type === "day") {
41
+ return (0, _getLocale.getLocale)("Rep_NewS_ToOKRpro");
42
+ } else if (type === "week") {
43
+ return (0, _getLocale.getLocale)("Rep_NewS_ThisOKRprogr");
44
+ } else if (type === "month") {
45
+ return (0, _getLocale.getLocale)("Rep_NewS_TmonOKRpro");
46
+ }
47
+
48
+ return "";
49
+ }, [type]);
50
+ var renderTable = (0, _react.useMemo)(function () {
51
+ return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
52
+ className: "".concat(prefix, "__table-title")
53
+ }, /*#__PURE__*/_react["default"].createElement("td", {
54
+ className: "".concat(prefix, "__table-title-okrs")
55
+ }, "OKRs"), /*#__PURE__*/_react["default"].createElement("td", {
56
+ className: "".concat(prefix, "__table-title-progress")
57
+ }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Progresss1")), /*#__PURE__*/_react["default"].createElement("td", {
58
+ className: "".concat(prefix, "__table-title-confidence")
59
+ }, (0, _getLocale.getLocale)("OKR_MyO_KRP_Confidence")), /*#__PURE__*/_react["default"].createElement("td", {
60
+ className: "".concat(prefix, "__table-title-progress-desc")
61
+ }, (0, _getLocale.getLocale)("Feed_Tab_Title_Progress"), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
62
+ overlay: (0, _getLocale.getLocale)("Rep_Tab_Mys_FillOKRsync"),
63
+ placement: "top",
64
+ align: {
65
+ offset: [0, 5]
66
+ }
67
+ }, /*#__PURE__*/_react["default"].createElement("i", {
68
+ className: "tu-icon-wiki ".concat(prefix, "__table-title-progress-desc-icon")
69
+ }))))), /*#__PURE__*/_react["default"].createElement("tbody", null, /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_tableRowOkr["default"], {
70
+ text: "\u6D4B\u8BD5\u7684kr\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F",
71
+ isO: false,
72
+ isFirstLevel: false,
73
+ id: 12234
74
+ })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
75
+ type: "kr",
76
+ status: "normal",
77
+ value: 50
78
+ })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_newConfidence["default"], {
79
+ value: 3,
80
+ editable: false
81
+ })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
82
+ value: "\u6D4B\u8BD5\u7684\u8FDB\u5C55",
83
+ date: "2021/03/03",
84
+ id: 1231
85
+ }))), /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", {
86
+ colSpan: 4
87
+ }, /*#__PURE__*/_react["default"].createElement(_tableRowOProject["default"], {
88
+ id: 12234,
89
+ extraClass: "".concat(prefix, "__table-obj"),
90
+ text: "\u6D4B\u8BD5\u7684kr\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684kr\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F"
91
+ }))), /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", {
92
+ colSpan: 4
93
+ }, "1111")), /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_tableRowOkr["default"], {
94
+ text: "\u6D4B\u8BD5\u7684kr\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F\u6D4B\u8BD5\u7684\u76EE\u6807\u540D\u5B57\u5F88\u957F\u5F88\u957F\u5F88\u957F",
95
+ isO: false,
96
+ id: 12404
97
+ })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
98
+ type: "o",
99
+ status: "risk",
100
+ value: 80
101
+ })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_newConfidence["default"], {
102
+ value: 9,
103
+ editable: false
104
+ })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
105
+ value: "",
106
+ date: "2021/03/03",
107
+ id: 12311
108
+ })))));
109
+ }, []);
110
+ return /*#__PURE__*/_react["default"].createElement("div", {
111
+ className: prefix
112
+ }, /*#__PURE__*/_react["default"].createElement("div", {
113
+ className: "".concat(prefix, "__title")
114
+ }, renderTitle), /*#__PURE__*/_react["default"].createElement("div", {
115
+ className: "".concat(prefix, "__table")
116
+ }, renderTable));
117
+ };
118
+
119
+ var _default = OkrProgress;
120
+ exports["default"] = _default;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getSummaryOkrProgressData = void 0;
7
+
8
+ var getSummaryOkrProgressData = function getSummaryOkrProgressData() {};
9
+
10
+ exports.getSummaryOkrProgressData = getSummaryOkrProgressData;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.formatOkrsData = void 0;
7
+
8
+ var formatOkrsData = function formatOkrsData(data) {};
9
+
10
+ exports.formatOkrsData = formatOkrsData;
@@ -0,0 +1,8 @@
1
+ .titaui-dynamic-summary-progress-kr {
2
+ position: relative;
3
+ z-index: 2;
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ height: 34px;
8
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _classnames = _interopRequireDefault(require("classnames"));
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ require("./index.css");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ var prefix = 'titaui-dynamic-summary-progress-kr';
17
+
18
+ var KRProgress = function KRProgress(_ref) {
19
+ var value = _ref.value;
20
+ return /*#__PURE__*/_react["default"].createElement("div", {
21
+ className: (0, _classnames["default"])(prefix)
22
+ }, value, "%");
23
+ };
24
+
25
+ var _default = KRProgress;
26
+ exports["default"] = _default;
@@ -0,0 +1,8 @@
1
+ .titaui-dynamic-summary-progress-o {
2
+ position: relative;
3
+ z-index: 2;
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ height: 34px;
8
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _classnames = _interopRequireDefault(require("classnames"));
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ require("./index.css");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ var prefix = 'titaui-dynamic-summary-progress-o';
17
+
18
+ var OProgress = function OProgress(_ref) {
19
+ var value = _ref.value;
20
+ return /*#__PURE__*/_react["default"].createElement("div", {
21
+ className: (0, _classnames["default"])(prefix)
22
+ }, value, "%");
23
+ };
24
+
25
+ var _default = OProgress;
26
+ exports["default"] = _default;
@@ -0,0 +1,197 @@
1
+ .titaui-dynamic-summary-progress-okr {
2
+ position: relative;
3
+ height: 34px;
4
+ }
5
+
6
+ .titaui-dynamic-summary-progress-okr__content {
7
+ width: 296px;
8
+ min-height: 280px;
9
+ background: #ffffff;
10
+ box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.2);
11
+ border-radius: 12px;
12
+ padding: 16px 24px 20px 24px;
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ .titaui-dynamic-summary-progress-okr__content-title {
17
+ display: flex;
18
+ align-items: center;
19
+ height: 36px;
20
+ font-size: 14px;
21
+ font-weight: 600;
22
+ color: #141c28;
23
+ line-height: 22px;
24
+ }
25
+
26
+ .titaui-dynamic-summary-progress-okr__content-title-icon {
27
+ font-size: 16px;
28
+ margin-left: 4px;
29
+ font-weight: 400;
30
+ color: #89919f;
31
+ }
32
+
33
+ .titaui-dynamic-summary-progress-okr__content-input {
34
+ width: 248px;
35
+ height: 32px;
36
+ background: #ffffff;
37
+ border-radius: 8px;
38
+ border: 1px solid #dfe3ea;
39
+ padding: 0 12px;
40
+ box-sizing: border-box;
41
+ display: flex;
42
+ justify-content: space-between;
43
+ align-items: center;
44
+ font-size: 14px;
45
+ color: #89919f;
46
+ }
47
+
48
+ .titaui-dynamic-summary-progress-okr__content-input--disable {
49
+ background: #f7f8fa;
50
+ opacity: 0.78;
51
+ border: 1px solid #dfe3ea;
52
+ }
53
+
54
+ .titaui-dynamic-summary-progress-okr__content-input--error {
55
+ border: 1px solid #f05e5e;
56
+ }
57
+
58
+ .titaui-dynamic-summary-progress-okr__content-input-el {
59
+ border-radius: 8px;
60
+ background: #ffffff;
61
+ outline: none;
62
+ border: none;
63
+ flex: 1;
64
+ padding: 0;
65
+ height: 22px;
66
+ color: #3f4755;
67
+ }
68
+
69
+ .titaui-dynamic-summary-progress-okr__content-input-el--disable {
70
+ background: #f7f8fa;
71
+ opacity: 0.78;
72
+ }
73
+
74
+ .titaui-dynamic-summary-progress-okr__content-input-el ::-webkit-input-placeholder {
75
+ color: #8f959e;
76
+ }
77
+
78
+ .titaui-dynamic-summary-progress-okr__content-input-el :-ms-input-placeholder {
79
+ color: #8f959e;
80
+ }
81
+
82
+ .titaui-dynamic-summary-progress-okr__content-input-el :-moz-input-placeholder {
83
+ color: #8f959e;
84
+ }
85
+
86
+ .titaui-dynamic-summary-progress-okr__content-input-error-text {
87
+ font-size: 12px;
88
+ color: #f05e5e;
89
+ line-height: 18px;
90
+ margin-top: 2px;
91
+ margin-left: 12px;
92
+ }
93
+
94
+ .titaui-dynamic-summary-progress-okr__content-status-title {
95
+ width: 248px;
96
+ height: 36px;
97
+ background: #ffffff;
98
+ border-radius: 8px;
99
+ display: flex;
100
+ align-items: center;
101
+ font-size: 14px;
102
+ font-weight: 600;
103
+ color: #141c28;
104
+ line-height: 22px;
105
+ }
106
+
107
+ .titaui-dynamic-summary-progress-okr__content-status-item {
108
+ width: 248px;
109
+ height: 32px;
110
+ background: #ffffff;
111
+ border-radius: 8px;
112
+ display: flex;
113
+ align-items: center;
114
+ cursor: pointer;
115
+ }
116
+
117
+ .titaui-dynamic-summary-progress-okr__content-status-item-text {
118
+ font-size: 14px;
119
+ color: #3f4755;
120
+ line-height: 22px;
121
+ margin-left: 12px;
122
+ }
123
+
124
+ .titaui-dynamic-summary-progress-okr__content-switch {
125
+ font-size: 14px;
126
+ font-weight: 600;
127
+ color: #141c28;
128
+ line-height: 22px;
129
+ }
130
+
131
+ .titaui-dynamic-summary-progress-okr__content .titaui-switch {
132
+ margin-top: 4px;
133
+ width: 264px;
134
+ height: 36px;
135
+ display: flex;
136
+ align-items: center;
137
+ }
138
+
139
+ .titaui-dynamic-summary-progress-okr__content-auto-update-option {
140
+ display: flex;
141
+ align-items: center;
142
+ cursor: pointer;
143
+ width: 248px;
144
+ min-height: 32px;
145
+ background: #ffffff;
146
+ border-radius: 8px;
147
+ }
148
+
149
+ .titaui-dynamic-summary-progress-okr__content-auto-update-option-radio {
150
+ display: inline-flex;
151
+ align-items: center;
152
+ justify-content: center;
153
+ width: 14px;
154
+ height: 14px;
155
+ border-radius: 50%;
156
+ border: 1px solid #bfc7d5;
157
+ margin-right: 12px;
158
+ vertical-align: text-top;
159
+ text-align: center;
160
+ font-size: 14px;
161
+ color: #3f4755;
162
+ line-height: 22px;
163
+ }
164
+
165
+ .titaui-dynamic-summary-progress-okr__content-auto-update-option-radio--selected {
166
+ border-color: #2879ff;
167
+ }
168
+
169
+ .titaui-dynamic-summary-progress-okr__content-auto-update-option-radio--selected:before {
170
+ display: inline-block;
171
+ content: "";
172
+ width: 10px;
173
+ height: 10px;
174
+ border-radius: 50%;
175
+ background: #2879ff;
176
+ }
177
+
178
+ .titaui-dynamic-summary-progress-okr__content-auto-update-option-icon {
179
+ font-size: 14px;
180
+ margin-left: 4px;
181
+ color: #89919f;
182
+ }
183
+
184
+ .titaui-dynamic-summary-progress-okr__content-auto-update-option-label {
185
+ display: inline-flex;
186
+ align-items: center;
187
+ }
188
+
189
+ .titaui-dynamic-summary-progress-okr__content-bottom {
190
+ display: flex;
191
+ justify-content: flex-end;
192
+ margin-top: 12px;
193
+ }
194
+
195
+ .titaui-dynamic-summary-progress-okr__content-bottom .titaui-rect-btn:first-child {
196
+ margin-right: 12px;
197
+ }