@titaui/pc 1.11.4-0 → 1.11.4-0.beta-2

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 (163) hide show
  1. package/lib/components/avatar/text-avatar/index.css +9 -2
  2. package/lib/components/avatar/text-avatar/index.js +34 -9
  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 +12 -12
  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/grid-layout/sub-employee-okr/person-okr.js +11 -5
  36. package/lib/components/icon-button-list/index.css +2 -57
  37. package/lib/components/icon-button-list/index.js +10 -7
  38. package/lib/components/img-viewer/index.css +10 -3
  39. package/lib/components/img-viewer/index.js +57 -18
  40. package/lib/components/mblog/components/MblogContent.js +5 -2
  41. package/lib/components/mblog/index.js +31 -30
  42. package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
  43. package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
  44. package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
  45. package/lib/components/menus/components/menu-tree/index.css +4 -2
  46. package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
  47. package/lib/components/menus/export-modules/interview-menus/constant.js +23 -17
  48. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +5 -5
  49. package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
  50. package/lib/components/menus/export-modules/interview-menus/index.js +5 -4
  51. package/lib/components/nav-top/components/menu/img/new.svg +30 -0
  52. package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
  53. package/lib/components/nav-top/components/menu/index.css +91 -0
  54. package/lib/components/nav-top/components/menu/index.js +80 -32
  55. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
  56. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
  57. package/lib/components/nav-top/components/user-message/constant.js +1 -0
  58. package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
  59. package/lib/components/nav-top/components/user-message/index.js +23 -20
  60. package/lib/components/nav-top/request.apis.js +3 -1
  61. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
  62. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +3 -2
  63. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
  64. package/lib/components/okr-detail/detail-header/actions.js +62 -66
  65. package/lib/components/okr-detail/detail-header/index.css +2 -2
  66. package/lib/components/okr-detail/detail-header/index.js +205 -194
  67. package/lib/components/okr-detail/index.js +21 -19
  68. package/lib/components/okr-detail/okr-list/index.js +5 -3
  69. package/lib/components/okr-flow/child-node/index.css +68 -22
  70. package/lib/components/okr-flow/child-node/work-node.js +61 -24
  71. package/lib/components/okr-flow/empty/index.css +8 -1
  72. package/lib/components/okr-flow/export-modal/index.js +108 -21
  73. package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
  74. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
  75. package/lib/components/okr-flow/images/loading-light.gif +0 -0
  76. package/lib/components/okr-flow/okr-map/index.js +43 -22
  77. package/lib/components/okr-flow/request-apis.js +15 -8
  78. package/lib/components/okr-flow/root-node/index.css +2 -2
  79. package/lib/components/okr-flow/root-node/index.js +26 -25
  80. package/lib/components/okr-flow/utils/index.js +45 -29
  81. package/lib/components/okr-flow/utils/tree-handler.js +29 -18
  82. package/lib/components/okrcase-library/index.css +6 -4
  83. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
  84. package/lib/components/pagination/index.css +3 -3
  85. package/lib/components/pagination/select.css +58 -23
  86. package/lib/components/period-selector/index.css +9 -3
  87. package/lib/components/period-selector/index.js +14 -11
  88. package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
  89. package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
  90. package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
  91. package/lib/components/picker/components/picker-trigger/index.css +31 -0
  92. package/lib/components/picker/components/picker-trigger/index.js +24 -15
  93. package/lib/components/picker/picker-panels.js +1 -1
  94. package/lib/components/picker/picker.js +12 -13
  95. package/lib/components/popup/index.js +4 -4
  96. package/lib/components/radio/index.css +9 -9
  97. package/lib/components/scroll-container/index.js +423 -0
  98. package/lib/components/scroll-container/style.css +35 -0
  99. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  100. package/lib/components/superset-charts/components/chart/index.js +1 -1
  101. package/lib/components/superset-charts/utils/axios.js +5 -13
  102. package/lib/components/survey-model/contact.js +93 -0
  103. package/lib/components/survey-model/index.css +141 -0
  104. package/lib/components/survey-model/index.js +268 -0
  105. package/lib/components/survey-model/instance.js +86 -0
  106. package/lib/components/survey-model/request-api.js +80 -0
  107. package/lib/components/task-relation-modal/index.js +0 -1
  108. package/lib/components/task-tree/helper.js +61 -0
  109. package/lib/components/task-tree/images/P1.svg +15 -0
  110. package/lib/components/task-tree/images/P2.svg +15 -0
  111. package/lib/components/task-tree/images/P3.svg +15 -0
  112. package/lib/components/task-tree/images/P4.svg +15 -0
  113. package/lib/components/task-tree/images/P5.svg +15 -0
  114. package/lib/components/task-tree/images/arrow.svg +9 -0
  115. package/lib/components/task-tree/images/empty-131.png +0 -0
  116. package/lib/components/task-tree/images/followed.svg +33 -0
  117. package/lib/components/task-tree/images/nice.svg +108 -0
  118. package/lib/components/task-tree/images/struc12.png +0 -0
  119. package/lib/components/task-tree/images/struc2.png +0 -0
  120. package/lib/components/task-tree/images/xialat-s.svg +13 -0
  121. package/lib/components/task-tree/index.js +16 -0
  122. package/lib/components/task-tree/precls.js +8 -0
  123. package/lib/components/task-tree/request-apis.js +88 -0
  124. package/lib/components/task-tree/task-item-node/constant.js +45 -0
  125. package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
  126. package/lib/components/task-tree/task-item-node/e-project.js +212 -0
  127. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +114 -0
  128. package/lib/components/task-tree/task-item-node/e-task.js +426 -0
  129. package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
  130. package/lib/components/task-tree/task-item-node/index.css +299 -0
  131. package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
  132. package/lib/components/task-tree/task-tree.css +16 -0
  133. package/lib/components/task-tree/task-tree.js +49 -0
  134. package/lib/components/time-picker/index.css +24 -0
  135. package/lib/components/time-picker/time-picker-selector.js +8 -12
  136. package/lib/components/time-picker/time-picker.js +94 -133
  137. package/lib/components/time-picker/timer-picker-input.js +3 -7
  138. package/lib/components/time-picker/utils.js +13 -2
  139. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
  140. package/lib/components/wechat-btn/index.css +14 -0
  141. package/lib/components/wechat-btn/index.js +338 -0
  142. package/lib/components-v1/radio/radio.js +3 -3
  143. package/lib/components-v1/radio/style/index.css +8 -8
  144. package/lib/index.js +99 -91
  145. package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
  146. package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
  147. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
  148. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
  149. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
  150. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
  151. package/lib/pages/okr-map/number-select/index.css +12 -9
  152. package/lib/pages/okr-map/number-select/index.js +3 -3
  153. package/lib/utils/auth.js +65 -8
  154. package/lib/utils/bs-global.js +18 -6
  155. package/lib/utils/open-data.js +63 -43
  156. package/package.json +6 -2
  157. package/.eslintignore +0 -3
  158. package/.eslintrc.js +0 -223
  159. package/.husky/pre-commit +0 -4
  160. package/.prettierignore +0 -31
  161. package/.prettierrc.js +0 -90
  162. package/.vscode/settings.json +0 -5
  163. package/yarn-error.log +0 -22184
@@ -0,0 +1,299 @@
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: 92px;
76
+ margin-left: 24px;
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
+ box-sizing: border-box;
87
+ width: 82px;
88
+ height: 32px;
89
+ padding: 4px;
90
+ text-align: left;
91
+ line-height: 32px;
92
+ margin-left: 28px;
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-date--canedit:hover {
100
+ border-radius: 8px;
101
+ border: 1px solid #DFE3EA;
102
+ padding: 3px;
103
+ }
104
+
105
+ .titaui-task-tree__e-task-node-actions-progress {
106
+ position: relative;
107
+ top: 3px;
108
+ color: #89919f;
109
+ cursor: auto;
110
+ width: 68px;
111
+ margin-left: 20px;
112
+ }
113
+
114
+ .titaui-task-tree__e-task-node-actions-progress .tooltip-text-wrapper {
115
+ margin-left: 4px;
116
+ }
117
+
118
+ .titaui-task-tree__e-task-node-actions-connect {
119
+ display: inline-block;
120
+ color: #cccccc;
121
+ margin-left: 27px;
122
+ margin-right: 10px;
123
+ }
124
+
125
+ .titaui-task-tree__e-task-node-actions-connect:hover {
126
+ color: #2879ff;
127
+ }
128
+
129
+ .titaui-task-tree__e-task-node-select-priority {
130
+ display: inline-block;
131
+ width: 16px;
132
+ height: 16px;
133
+ margin-right: 10px;
134
+ vertical-align: text-bottom;
135
+ }
136
+
137
+ .titaui-task-tree__e-project-node {
138
+ position: relative;
139
+ display: flex;
140
+ align-items: center;
141
+ width: 100%;
142
+ padding: 2px 0;
143
+ }
144
+
145
+ .titaui-task-tree__e-project-node-prefix {
146
+ display: inline-block;
147
+ font-size: 14px;
148
+ width: 21px;
149
+ color: #89919f;
150
+ line-height: 1;
151
+ }
152
+
153
+ .titaui-task-tree__e-project-node-title {
154
+ display: inline-flex;
155
+ font-size: 14px;
156
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
157
+ color: #3f4755;
158
+ line-height: 22px;
159
+ overflow: hidden;
160
+ white-space: nowrap;
161
+ word-break: keep-all;
162
+ flex: 1;
163
+ }
164
+
165
+ .titaui-task-tree__e-project-node-title-name {
166
+ overflow: hidden;
167
+ }
168
+
169
+ .titaui-task-tree__e-project-node-title-approvaling {
170
+ display: inline-flex;
171
+ align-items: center;
172
+ justify-content: center;
173
+ min-width: 36px;
174
+ padding: 0 6px;
175
+ height: 20px;
176
+ font-size: 12px;
177
+ font-weight: 400;
178
+ color: #f05e5e;
179
+ background: rgba(240, 94, 94, 0.1);
180
+ border-radius: 10px;
181
+ margin-left: 8px;
182
+ }
183
+
184
+ .titaui-task-tree__e-project-node-gray {
185
+ color: #bfc7d5 !important;
186
+ }
187
+
188
+ .titaui-task-tree__e-project-node-priority {
189
+ display: inline-block;
190
+ margin-right: 4px;
191
+ vertical-align: top;
192
+ }
193
+
194
+ .titaui-task-tree__e-project-node-priority > span {
195
+ position: relative;
196
+ top: 1px;
197
+ display: inline-block;
198
+ vertical-align: text-bottom;
199
+ height: 16px;
200
+ width: 16px;
201
+ }
202
+
203
+ .titaui-task-tree__e-project-node-priority-p1 {
204
+ background: url(../images/P1.svg) transparent no-repeat 50% 50%;
205
+ }
206
+
207
+ .titaui-task-tree__e-project-node-priority-p2 {
208
+ background: url(../images/P2.svg) transparent no-repeat 50% 50%;
209
+ }
210
+
211
+ .titaui-task-tree__e-project-node-priority-p3 {
212
+ background: url(../images/P3.svg) transparent no-repeat 50% 50%;
213
+ }
214
+
215
+ .titaui-task-tree__e-project-node-priority-p4 {
216
+ background: url(../images/P4.svg) transparent no-repeat 50% 50%;
217
+ }
218
+
219
+ .titaui-task-tree__e-project-node-priority-p5 {
220
+ background: url(../images/P5.svg) transparent no-repeat 50% 50%;
221
+ }
222
+
223
+ .titaui-task-tree__e-project-node-actions {
224
+ display: flex;
225
+ align-items: center;
226
+ float: right;
227
+ }
228
+
229
+ .titaui-task-tree__e-project-node-actions-user {
230
+ display: inline-block;
231
+ width: 92px;
232
+ margin-left: 24px;
233
+ }
234
+
235
+ .titaui-task-tree__e-project-node-actions-date {
236
+ font-size: 12px;
237
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
238
+ color: #89919f;
239
+ line-height: 18px;
240
+ display: inline-flex;
241
+ align-items: center;
242
+ box-sizing: border-box;
243
+ width: 82px;
244
+ height: 32px;
245
+ padding: 4px;
246
+ text-align: left;
247
+ line-height: 32px;
248
+ margin-left: 28px;
249
+ }
250
+
251
+ .titaui-task-tree__e-project-node-actions-date > span {
252
+ vertical-align: text-bottom;
253
+ }
254
+
255
+ .titaui-task-tree__e-project-node-actions-date--canedit:hover {
256
+ border-radius: 8px;
257
+ border: 1px solid #DFE3EA;
258
+ padding: 3px;
259
+ }
260
+
261
+ .titaui-task-tree__e-project-node-actions-progress {
262
+ position: relative;
263
+ top: 3px;
264
+ color: #89919f;
265
+ cursor: auto;
266
+ width: 68px;
267
+ margin-left: 20px;
268
+ }
269
+
270
+ .titaui-task-tree__e-project-node-actions-progress .tooltip-text-wrapper {
271
+ margin-left: 4px;
272
+ }
273
+
274
+ .titaui-task-tree__e-project-node-actions-connect {
275
+ display: inline-block;
276
+ color: #cccccc;
277
+ margin-left: 27px;
278
+ margin-right: 10px;
279
+ }
280
+
281
+ .titaui-task-tree__e-project-node-actions-connect:hover {
282
+ color: #2879ff;
283
+ }
284
+
285
+ .titaui-task-tree__e-empty-node {
286
+ font-size: 12px;
287
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
288
+ color: #a4acb9;
289
+ line-height: 18px;
290
+ padding-left: 12px;
291
+ }
292
+
293
+ .titaui-task-tree__e-empty-node:hover {
294
+ cursor: text;
295
+ }
296
+
297
+ .e-node-status-icon {
298
+ color: #89919f;
299
+ }
@@ -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: #f0f4fa;
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", {