@titaui/pc 1.11.4-0 → 1.11.4-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.
Files changed (154) hide show
  1. package/lib/components/avatar/text-avatar/index.css +7 -0
  2. package/lib/components/avatar/text-avatar/index.js +32 -7
  3. package/lib/components/button/rect-btn/index.js +7 -7
  4. package/lib/components/change-okr-modal/Item.js +15 -15
  5. package/lib/components/communication/index.js +30 -29
  6. package/lib/components/drawer/index.js +7 -6
  7. package/lib/components/dynamic/constant.js +43 -36
  8. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
  9. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
  10. package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
  11. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
  12. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
  13. package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
  14. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
  15. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
  16. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
  17. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
  18. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
  19. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
  20. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
  21. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
  22. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
  23. package/lib/components/dynamic/dynamic-item/index.js +70 -41
  24. package/lib/components/dynamic/dynamic-list/index.js +5 -13
  25. package/lib/components/e-priority/index.js +18 -12
  26. package/lib/components/eReport/eReportShare/index.js +11 -11
  27. package/lib/components/file-list/components/single-file/index.js +11 -11
  28. package/lib/components/form/form-fields/date/index.css +24 -0
  29. package/lib/components/form/form-fields/date/index.js +102 -0
  30. package/lib/components/form/form-fields/input/index.js +10 -10
  31. package/lib/components/form/form-fields/user/index.css +23 -3
  32. package/lib/components/form/form-fields/user/index.js +18 -8
  33. package/lib/components/form/form-fields/user/user-input.js +15 -6
  34. package/lib/components/form/index.js +10 -3
  35. package/lib/components/icon-button-list/index.css +2 -57
  36. package/lib/components/icon-button-list/index.js +10 -7
  37. package/lib/components/img-viewer/index.css +10 -3
  38. package/lib/components/img-viewer/index.js +57 -18
  39. package/lib/components/mblog/index.js +31 -30
  40. package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
  41. package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
  42. package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
  43. package/lib/components/menus/components/menu-tree/index.css +4 -2
  44. package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
  45. package/lib/components/menus/export-modules/interview-menus/constant.js +23 -17
  46. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +5 -5
  47. package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
  48. package/lib/components/menus/export-modules/interview-menus/index.js +5 -4
  49. package/lib/components/nav-top/components/menu/index.js +14 -14
  50. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
  51. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
  52. package/lib/components/nav-top/components/user-message/constant.js +1 -0
  53. package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
  54. package/lib/components/nav-top/components/user-message/index.js +23 -20
  55. package/lib/components/nav-top/request.apis.js +3 -1
  56. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
  57. package/lib/components/okr-detail/detail-header/actions.js +62 -66
  58. package/lib/components/okr-detail/detail-header/index.css +2 -2
  59. package/lib/components/okr-detail/detail-header/index.js +205 -194
  60. package/lib/components/okr-detail/index.js +21 -19
  61. package/lib/components/okr-flow/child-node/index.css +67 -21
  62. package/lib/components/okr-flow/child-node/work-node.js +61 -24
  63. package/lib/components/okr-flow/empty/index.css +8 -1
  64. package/lib/components/okr-flow/export-modal/index.js +42 -18
  65. package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
  66. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
  67. package/lib/components/okr-flow/images/loading-light.gif +0 -0
  68. package/lib/components/okr-flow/okr-map/index.js +43 -22
  69. package/lib/components/okr-flow/request-apis.js +15 -8
  70. package/lib/components/okr-flow/root-node/index.css +2 -2
  71. package/lib/components/okr-flow/root-node/index.js +26 -25
  72. package/lib/components/okr-flow/utils/index.js +45 -29
  73. package/lib/components/okr-flow/utils/tree-handler.js +29 -18
  74. package/lib/components/okrcase-library/index.css +6 -4
  75. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
  76. package/lib/components/pagination/index.css +3 -3
  77. package/lib/components/pagination/select.css +58 -23
  78. package/lib/components/period-selector/index.css +9 -3
  79. package/lib/components/period-selector/index.js +14 -11
  80. package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
  81. package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
  82. package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
  83. package/lib/components/picker/components/picker-trigger/index.css +31 -0
  84. package/lib/components/picker/components/picker-trigger/index.js +24 -15
  85. package/lib/components/picker/picker-panels.js +1 -1
  86. package/lib/components/picker/picker.js +12 -13
  87. package/lib/components/popup/index.js +4 -4
  88. package/lib/components/radio/index.css +9 -9
  89. package/lib/components/scroll-container/index.js +423 -0
  90. package/lib/components/scroll-container/style.css +35 -0
  91. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  92. package/lib/components/superset-charts/components/chart/index.js +1 -1
  93. package/lib/components/superset-charts/utils/axios.js +5 -13
  94. package/lib/components/survey-model/contact.js +93 -0
  95. package/lib/components/survey-model/index.css +141 -0
  96. package/lib/components/survey-model/index.js +265 -0
  97. package/lib/components/survey-model/instance.js +86 -0
  98. package/lib/components/survey-model/request-api.js +80 -0
  99. package/lib/components/task-tree/helper.js +61 -0
  100. package/lib/components/task-tree/images/P1.svg +15 -0
  101. package/lib/components/task-tree/images/P2.svg +15 -0
  102. package/lib/components/task-tree/images/P3.svg +15 -0
  103. package/lib/components/task-tree/images/P4.svg +15 -0
  104. package/lib/components/task-tree/images/P5.svg +15 -0
  105. package/lib/components/task-tree/images/arrow.svg +9 -0
  106. package/lib/components/task-tree/images/empty-131.png +0 -0
  107. package/lib/components/task-tree/images/followed.svg +33 -0
  108. package/lib/components/task-tree/images/nice.svg +108 -0
  109. package/lib/components/task-tree/images/struc12.png +0 -0
  110. package/lib/components/task-tree/images/struc2.png +0 -0
  111. package/lib/components/task-tree/images/xialat-s.svg +13 -0
  112. package/lib/components/task-tree/index.js +22 -0
  113. package/lib/components/task-tree/mock.js +944 -0
  114. package/lib/components/task-tree/precls.js +8 -0
  115. package/lib/components/task-tree/request-apis.js +88 -0
  116. package/lib/components/task-tree/task-item-node/constant.js +45 -0
  117. package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
  118. package/lib/components/task-tree/task-item-node/e-project.js +212 -0
  119. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +94 -0
  120. package/lib/components/task-tree/task-item-node/e-task.js +426 -0
  121. package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
  122. package/lib/components/task-tree/task-item-node/index.css +289 -0
  123. package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
  124. package/lib/components/task-tree/task-tree.css +16 -0
  125. package/lib/components/task-tree/task-tree.js +49 -0
  126. package/lib/components/time-picker/index.css +24 -0
  127. package/lib/components/time-picker/time-picker-selector.js +8 -12
  128. package/lib/components/time-picker/time-picker.js +136 -108
  129. package/lib/components/time-picker/utils.js +13 -2
  130. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
  131. package/lib/components/wechat-btn/index.css +14 -0
  132. package/lib/components/wechat-btn/index.js +338 -0
  133. package/lib/components-v1/radio/radio.js +3 -3
  134. package/lib/components-v1/radio/style/index.css +8 -8
  135. package/lib/index.js +99 -91
  136. package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
  137. package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
  138. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
  139. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
  140. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
  141. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
  142. package/lib/pages/okr-map/number-select/index.css +12 -9
  143. package/lib/pages/okr-map/number-select/index.js +3 -3
  144. package/lib/utils/auth.js +65 -8
  145. package/lib/utils/bs-global.js +18 -6
  146. package/lib/utils/open-data.js +63 -43
  147. package/package.json +6 -2
  148. package/.eslintignore +0 -3
  149. package/.eslintrc.js +0 -223
  150. package/.husky/pre-commit +0 -4
  151. package/.prettierignore +0 -31
  152. package/.prettierrc.js +0 -90
  153. package/.vscode/settings.json +0 -5
  154. package/yarn-error.log +0 -22184
@@ -0,0 +1,289 @@
1
+ .titaui-task-tree__e-task-node {
2
+ display: flex;
3
+ align-items: center;
4
+ padding: 2px 0;
5
+ width: 100%;
6
+ }
7
+
8
+ .titaui-task-tree__e-task-node-prefix {
9
+ position: relative;
10
+ top: 2px;
11
+ display: inline-block;
12
+ vertical-align: top;
13
+ }
14
+
15
+ .titaui-task-tree__e-task-node-prefix .tu-icon-jiantou-right:before {
16
+ color: #89919f;
17
+ }
18
+
19
+ .titaui-task-tree__e-task-node-title {
20
+ height: 22px;
21
+ font-size: 14px;
22
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
23
+ color: #3f4755;
24
+ line-height: 22px;
25
+ overflow: hidden;
26
+ white-space: nowrap;
27
+ word-break: keep-all;
28
+ padding-top: 1px;
29
+ flex: 1;
30
+ }
31
+
32
+ .titaui-task-tree__e-task-node-priority {
33
+ display: inline-block;
34
+ margin-right: 4px;
35
+ vertical-align: top;
36
+ }
37
+
38
+ .titaui-task-tree__e-task-node-priority > span {
39
+ position: relative;
40
+ top: 1px;
41
+ display: inline-block;
42
+ vertical-align: text-bottom;
43
+ height: 16px;
44
+ width: 16px;
45
+ }
46
+
47
+ .titaui-task-tree__e-task-node-priority-p1 {
48
+ background: url(../images/P1.svg) transparent no-repeat 50% 50%;
49
+ }
50
+
51
+ .titaui-task-tree__e-task-node-priority-p2 {
52
+ background: url(../images/P2.svg) transparent no-repeat 50% 50%;
53
+ }
54
+
55
+ .titaui-task-tree__e-task-node-priority-p3 {
56
+ background: url(../images/P3.svg) transparent no-repeat 50% 50%;
57
+ }
58
+
59
+ .titaui-task-tree__e-task-node-priority-p4 {
60
+ background: url(../images/P4.svg) transparent no-repeat 50% 50%;
61
+ }
62
+
63
+ .titaui-task-tree__e-task-node-priority-p5 {
64
+ background: url(../images/P5.svg) transparent no-repeat 50% 50%;
65
+ }
66
+
67
+ .titaui-task-tree__e-task-node-actions {
68
+ display: flex;
69
+ align-items: center;
70
+ float: right;
71
+ }
72
+
73
+ .titaui-task-tree__e-task-node-actions-user {
74
+ display: inline-block;
75
+ width: 64px;
76
+ margin-left: 16px;
77
+ }
78
+
79
+ .titaui-task-tree__e-task-node-actions-date {
80
+ font-size: 12px;
81
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
82
+ color: #89919f;
83
+ line-height: 18px;
84
+ display: inline-flex;
85
+ align-items: center;
86
+ justify-content: flex-end;
87
+ box-sizing: border-box;
88
+ width: 78px;
89
+ height: 26px;
90
+ padding: 4px;
91
+ text-align: left;
92
+ line-height: 26px;
93
+ }
94
+
95
+ .titaui-task-tree__e-task-node-actions-date > span {
96
+ vertical-align: text-bottom;
97
+ }
98
+
99
+ .titaui-task-tree__e-task-node-actions-progress {
100
+ position: relative;
101
+ top: 3px;
102
+ color: #89919f;
103
+ cursor: auto;
104
+ width: 64px;
105
+ margin-left: 16px;
106
+ margin-right: 4px;
107
+ }
108
+
109
+ .titaui-task-tree__e-task-node-actions-progress .tooltip-text-wrapper {
110
+ margin-left: 4px;
111
+ }
112
+
113
+ .titaui-task-tree__e-task-node-actions-connect {
114
+ display: inline-block;
115
+ color: #cccccc;
116
+ margin-left: 27px;
117
+ margin-right: 10px;
118
+ }
119
+
120
+ .titaui-task-tree__e-task-node-actions-connect:hover {
121
+ color: #2879ff;
122
+ }
123
+
124
+ .titaui-task-tree__e-task-node-select-priority {
125
+ display: inline-block;
126
+ width: 16px;
127
+ height: 16px;
128
+ margin-right: 10px;
129
+ vertical-align: text-bottom;
130
+ }
131
+
132
+ .titaui-task-tree__e-project-node {
133
+ position: relative;
134
+ display: flex;
135
+ align-items: center;
136
+ width: 100%;
137
+ padding: 2px 0;
138
+ }
139
+
140
+ .titaui-task-tree__e-project-node-prefix {
141
+ display: inline-block;
142
+ font-size: 14px;
143
+ width: 21px;
144
+ color: #89919f;
145
+ line-height: 1;
146
+ }
147
+
148
+ .titaui-task-tree__e-project-node-title {
149
+ display: inline-flex;
150
+ font-size: 14px;
151
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
152
+ color: #3f4755;
153
+ line-height: 22px;
154
+ overflow: hidden;
155
+ white-space: nowrap;
156
+ word-break: keep-all;
157
+ flex: 1;
158
+ }
159
+
160
+ .titaui-task-tree__e-project-node-title-name {
161
+ overflow: hidden;
162
+ }
163
+
164
+ .titaui-task-tree__e-project-node-title-approvaling {
165
+ display: inline-flex;
166
+ align-items: center;
167
+ justify-content: center;
168
+ min-width: 36px;
169
+ padding: 0 6px;
170
+ height: 20px;
171
+ font-size: 12px;
172
+ font-weight: 400;
173
+ color: #f05e5e;
174
+ background: rgba(240, 94, 94, 0.1);
175
+ border-radius: 10px;
176
+ margin-left: 8px;
177
+ }
178
+
179
+ .titaui-task-tree__e-project-node-gray {
180
+ color: #bfc7d5 !important;
181
+ }
182
+
183
+ .titaui-task-tree__e-project-node-priority {
184
+ display: inline-block;
185
+ margin-right: 4px;
186
+ vertical-align: top;
187
+ }
188
+
189
+ .titaui-task-tree__e-project-node-priority > span {
190
+ position: relative;
191
+ top: 1px;
192
+ display: inline-block;
193
+ vertical-align: text-bottom;
194
+ height: 16px;
195
+ width: 16px;
196
+ }
197
+
198
+ .titaui-task-tree__e-project-node-priority-p1 {
199
+ background: url(../images/P1.svg) transparent no-repeat 50% 50%;
200
+ }
201
+
202
+ .titaui-task-tree__e-project-node-priority-p2 {
203
+ background: url(../images/P2.svg) transparent no-repeat 50% 50%;
204
+ }
205
+
206
+ .titaui-task-tree__e-project-node-priority-p3 {
207
+ background: url(../images/P3.svg) transparent no-repeat 50% 50%;
208
+ }
209
+
210
+ .titaui-task-tree__e-project-node-priority-p4 {
211
+ background: url(../images/P4.svg) transparent no-repeat 50% 50%;
212
+ }
213
+
214
+ .titaui-task-tree__e-project-node-priority-p5 {
215
+ background: url(../images/P5.svg) transparent no-repeat 50% 50%;
216
+ }
217
+
218
+ .titaui-task-tree__e-project-node-actions {
219
+ display: flex;
220
+ align-items: center;
221
+ float: right;
222
+ }
223
+
224
+ .titaui-task-tree__e-project-node-actions-user {
225
+ display: inline-block;
226
+ width: 64px;
227
+ margin-left: 16px;
228
+ }
229
+
230
+ .titaui-task-tree__e-project-node-actions-date {
231
+ font-size: 12px;
232
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
233
+ color: #89919f;
234
+ line-height: 18px;
235
+ display: inline-flex;
236
+ align-items: center;
237
+ justify-content: flex-end;
238
+ box-sizing: border-box;
239
+ width: 78px;
240
+ height: 26px;
241
+ padding: 4px;
242
+ text-align: left;
243
+ line-height: 26px;
244
+ }
245
+
246
+ .titaui-task-tree__e-project-node-actions-date > span {
247
+ vertical-align: text-bottom;
248
+ }
249
+
250
+ .titaui-task-tree__e-project-node-actions-progress {
251
+ position: relative;
252
+ top: 3px;
253
+ color: #89919f;
254
+ cursor: auto;
255
+ width: 64px;
256
+ margin-left: 16px;
257
+ margin-right: 4px;
258
+ }
259
+
260
+ .titaui-task-tree__e-project-node-actions-progress .tooltip-text-wrapper {
261
+ margin-left: 4px;
262
+ }
263
+
264
+ .titaui-task-tree__e-project-node-actions-connect {
265
+ display: inline-block;
266
+ color: #cccccc;
267
+ margin-left: 27px;
268
+ margin-right: 10px;
269
+ }
270
+
271
+ .titaui-task-tree__e-project-node-actions-connect:hover {
272
+ color: #2879ff;
273
+ }
274
+
275
+ .titaui-task-tree__e-empty-node {
276
+ font-size: 12px;
277
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
278
+ color: #a4acb9;
279
+ line-height: 18px;
280
+ padding-left: 12px;
281
+ }
282
+
283
+ .titaui-task-tree__e-empty-node:hover {
284
+ cursor: text;
285
+ }
286
+
287
+ .e-node-status-icon {
288
+ color: #89919f;
289
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _eTask = _interopRequireDefault(require("./e-task"));
11
+
12
+ var _eProject = _interopRequireDefault(require("./e-project"));
13
+
14
+ var _eEmpty = _interopRequireDefault(require("./e-empty"));
15
+
16
+ require("./index.css");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ var _default = function _default(node, level) {
23
+ switch (node.nodeType) {
24
+ case "e-task":
25
+ return /*#__PURE__*/_react["default"].createElement(_eTask["default"], _extends({}, node, {
26
+ level: level
27
+ }));
28
+
29
+ case "e-project":
30
+ return /*#__PURE__*/_react["default"].createElement(_eProject["default"], _extends({}, node, {
31
+ level: level
32
+ }));
33
+
34
+ case "e-empty":
35
+ return /*#__PURE__*/_react["default"].createElement(_eEmpty["default"], _extends({}, node, {
36
+ level: level
37
+ }));
38
+
39
+ default:
40
+ }
41
+ };
42
+
43
+ exports["default"] = _default;
@@ -0,0 +1,16 @@
1
+ .titaui-task-tree {
2
+ position: relative;
3
+ overflow: hidden;
4
+ }
5
+
6
+ .titaui-task-tree .rc-tree-treenode {
7
+ padding: 0 4px;
8
+ }
9
+
10
+ .titaui-task-tree .rc-tree-treenode .rc-tree-node-content-wrapper {
11
+ width: 100% !important;
12
+ }
13
+
14
+ .titaui-task-tree .rc-tree-treenode-switcher-close:hover {
15
+ background: #f7f8fa;
16
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _taskNodeRender = _interopRequireDefault(require("./task-item-node/task-node-render"));
11
+
12
+ var _tree = _interopRequireDefault(require("../tree"));
13
+
14
+ var _precls = _interopRequireDefault(require("./precls"));
15
+
16
+ require("./task-tree.css");
17
+
18
+ var _excluded = ["dataSource", "defaultExpandedKeys", "draggable"];
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ 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); }
23
+
24
+ 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; }
25
+
26
+ 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; }
27
+
28
+ var TaskTree = function TaskTree(props) {
29
+ var dataSource = props.dataSource,
30
+ defaultExpandedKeys = props.defaultExpandedKeys,
31
+ _props$draggable = props.draggable,
32
+ draggable = _props$draggable === void 0 ? false : _props$draggable,
33
+ restProps = _objectWithoutProperties(props, _excluded);
34
+
35
+ return /*#__PURE__*/_react["default"].createElement("div", {
36
+ className: _precls["default"]
37
+ }, /*#__PURE__*/_react["default"].createElement(_tree["default"], _extends({
38
+ draggable: draggable,
39
+ defaultExpandedKeys: defaultExpandedKeys,
40
+ treeData: dataSource,
41
+ titleRender: _taskNodeRender["default"],
42
+ allowDrop: function allowDrop() {
43
+ return true;
44
+ }
45
+ }, restProps)));
46
+ };
47
+
48
+ var _default = TaskTree;
49
+ exports["default"] = _default;
@@ -19,10 +19,28 @@
19
19
  border-color: #2879ff;
20
20
  }
21
21
 
22
+ .tita-ui__time-picker-trigger--disabled {
23
+ cursor: not-allowed;
24
+ }
25
+
26
+ .tita-ui__time-picker-trigger--disabled .tita-ui__time-picker-input {
27
+ cursor: not-allowed;
28
+ }
29
+
30
+ .tita-ui__time-picker-trigger--disabled:hover {
31
+ border-color: #e9ecf0;
32
+ }
33
+
22
34
  .tita-ui__time-picker-inputs {
23
35
  flex: 1;
24
36
  }
25
37
 
38
+ .tita-ui__time-picker-inputs--placeholder input,
39
+ .tita-ui__time-picker-inputs--placeholder span {
40
+ text-shadow: 0 0 0 #bfc7d5;
41
+ color: transparent;
42
+ }
43
+
26
44
  .tita-ui__time-picker-input {
27
45
  width: 16px;
28
46
  padding: 0;
@@ -44,9 +62,15 @@
44
62
 
45
63
  .tita-ui__time-picker-icon {
46
64
  font-size: 16px;
65
+ color: #3f4755;
47
66
  cursor: pointer;
48
67
  }
49
68
 
69
+ .tita-ui__time-picker-icon::before {
70
+ transform: scale(0.5);
71
+ display: inline-block;
72
+ }
73
+
50
74
  .tita-ui__time-picker-icon:hover {
51
75
  color: #2879ff;
52
76
  }
@@ -47,9 +47,8 @@ var TimePickerSelector = function TimePickerSelector(props) {
47
47
  minutes = _props$timeData.minutes,
48
48
  _props$timeSetting = props.timeSetting,
49
49
  hour = _props$timeSetting.hour,
50
- setHour = _props$timeSetting.setHour,
51
50
  minute = _props$timeSetting.minute,
52
- setMinute = _props$timeSetting.setMinute,
51
+ setTime = _props$timeSetting.setTime,
53
52
  _props$visibleSetting = props.visibleSetting,
54
53
  visible = _props$visibleSetting.visible,
55
54
  setVisible = _props$visibleSetting.setVisible,
@@ -59,11 +58,10 @@ var TimePickerSelector = function TimePickerSelector(props) {
59
58
  var pickerMenuItemActiveIndexRef = (0, _react.useRef)(0);
60
59
  var timerRef = (0, _react.useRef)();
61
60
 
62
- var onItemClickHandler = function onItemClickHandler(_ref) {
63
- var hour = _ref.hour,
64
- minute = _ref.minute;
65
- setHour(hour);
66
- setMinute(minute);
61
+ var onItemClickHandler = function onItemClickHandler(time) {
62
+ // setHour(hour);
63
+ // setMinute(minute);
64
+ setTime(time);
67
65
  setVisible(false);
68
66
  };
69
67
 
@@ -84,6 +82,7 @@ var TimePickerSelector = function TimePickerSelector(props) {
84
82
  pickerMenuItemActiveIndexRef.current = hIndex + mIndex + 1 + hIndex * (minutes.length - 1);
85
83
  }
86
84
 
85
+ var time = "".concat(h, ":").concat(m);
87
86
  return (
88
87
  /*#__PURE__*/
89
88
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
@@ -93,12 +92,9 @@ var TimePickerSelector = function TimePickerSelector(props) {
93
92
  }),
94
93
  key: m,
95
94
  onClick: function onClick() {
96
- return onItemClickHandler({
97
- hour: h,
98
- minute: m
99
- });
95
+ return onItemClickHandler(time);
100
96
  }
101
- }, "".concat(h, ":").concat(m))
97
+ }, time)
102
98
  );
103
99
  });
104
100
  }), /*#__PURE__*/_react["default"].createElement("p", {