@titaui/pc 1.5.82 → 1.5.83

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 (319) hide show
  1. package/lib/components/avatar/icon-avatar/index.css +15 -0
  2. package/lib/components/avatar/icon-avatar/index.js +50 -0
  3. package/lib/components/avatar/index.js +9 -1
  4. package/lib/components/avatar/num-avatar/index.css +12 -0
  5. package/lib/components/avatar/num-avatar/index.js +34 -0
  6. package/lib/components/button/admin-button/default.js +35 -0
  7. package/lib/components/button/admin-button/drop-down-arrow.js +93 -0
  8. package/lib/components/button/admin-button/index.css +86 -0
  9. package/lib/components/button/admin-button/index.js +40 -0
  10. package/lib/components/button/admin-button/primary.js +33 -0
  11. package/lib/components/button/admin-button/secondary.js +35 -0
  12. package/lib/components/button/default-button/index.css +49 -0
  13. package/lib/components/button/default-button/index.js +51 -0
  14. package/lib/components/button/export-button/index.css +51 -0
  15. package/lib/components/button/export-button/index.js +81 -0
  16. package/lib/components/button/images/daoru.svg +18 -0
  17. package/lib/components/button/index.js +23 -0
  18. package/lib/components/button/interface.js +5 -0
  19. package/lib/components/change-okr/Filter.js +133 -65
  20. package/lib/components/change-okr/Item.js +6 -0
  21. package/lib/components/change-okr/filterTab.js +2 -0
  22. package/lib/components/change-okr/index.js +2 -2
  23. package/lib/components/checkbox/index.js +4 -3
  24. package/lib/components/communication/CommunicationRecord.js +116 -161
  25. package/lib/components/communication/ConvertUserName.js +1 -1
  26. package/lib/components/communication/index.css +63 -0
  27. package/lib/components/communication/index.js +53 -28
  28. package/lib/components/communication/style.js +21 -25
  29. package/lib/components/create-okr/animation/check-animation.js +2746 -0
  30. package/lib/components/create-okr/constant.js +27 -0
  31. package/lib/components/create-okr/createCycle.js +193 -0
  32. package/lib/components/create-okr/createSuccessCmp.js +233 -0
  33. package/lib/components/create-okr/createSuccessCmpWrapper.js +20 -0
  34. package/lib/components/create-okr/fields/date-cycle.js +98 -0
  35. package/lib/components/create-okr/fields/index.css +346 -0
  36. package/lib/components/create-okr/fields/index.js +17 -0
  37. package/lib/components/create-okr/fields/input-with-err-popup.js +57 -0
  38. package/lib/components/create-okr/fields/o-new-name.js +197 -0
  39. package/lib/components/create-okr/fields/okr-case.js +98 -0
  40. package/lib/components/create-okr/fields/okr-classify.js +51 -0
  41. package/lib/components/create-okr/fields/okr-create-suggest.js +147 -0
  42. package/lib/components/create-okr/fields/okr-new-user-selector.js +106 -0
  43. package/lib/components/create-okr/fields/okr-parent.js +157 -0
  44. package/lib/components/create-okr/fields/okr-type-detail.js +196 -0
  45. package/lib/components/create-okr/fields/okr-type.js +131 -0
  46. package/lib/components/create-okr/fields/okr-visibility-detail.js +224 -0
  47. package/lib/components/create-okr/fields/okr-visibility.js +169 -0
  48. package/lib/components/create-okr/img/check-normal.svg +29 -0
  49. package/lib/components/create-okr/img/check-right.svg +16 -0
  50. package/lib/components/create-okr/img/check-wrong.svg +29 -0
  51. package/lib/components/create-okr/img/create-success-head.png +0 -0
  52. package/lib/components/create-okr/img/create-success-left-quotation.svg +14 -0
  53. package/lib/components/create-okr/img/create-success-message.svg +1 -0
  54. package/lib/components/create-okr/img/create-success-right-quotation.svg +14 -0
  55. package/lib/components/create-okr/img/create-success-shadow.svg +23 -0
  56. package/lib/components/create-okr/img/example.svg +11 -0
  57. package/lib/components/create-okr/img/hand.svg +12 -0
  58. package/lib/components/create-okr/img/kr-add.svg +12 -0
  59. package/lib/components/create-okr/img/left-quotation.svg +12 -0
  60. package/lib/components/create-okr/img/light.svg +1 -0
  61. package/lib/components/create-okr/img/pack-up.js +28 -0
  62. package/lib/components/create-okr/img/qr-code.png +0 -0
  63. package/lib/components/create-okr/img/right-quotation.svg +12 -0
  64. package/lib/components/create-okr/img/shower.png +0 -0
  65. package/lib/components/create-okr/img/target.svg +19 -0
  66. package/lib/components/create-okr/img/teach-okr.svg +17 -0
  67. package/lib/components/create-okr/img/wave.png +0 -0
  68. package/lib/components/create-okr/img/weight.svg +12 -0
  69. package/lib/components/create-okr/index.css +446 -0
  70. package/lib/components/create-okr/index.js +911 -0
  71. package/lib/components/create-okr/interface.js +5 -0
  72. package/lib/components/create-okr/kr-items/index.css +180 -0
  73. package/lib/components/create-okr/kr-items/kr-item-weight.js +194 -0
  74. package/lib/components/create-okr/kr-items/krDatas.js +299 -0
  75. package/lib/components/create-okr/kr-items/krItem.js +167 -0
  76. package/lib/components/create-okr/objectType.js +273 -0
  77. package/lib/components/create-okr/request-api.js +220 -0
  78. package/lib/components/create-okr/style.js +100 -0
  79. package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +124 -0
  80. package/lib/components/create-okr/utils/helper.js +99 -0
  81. package/lib/components/create-okr/utils/index.js +23 -0
  82. package/lib/components/dropdown-layer/icon-item.js +5 -3
  83. package/lib/components/dropdown-layer/index.css +16 -0
  84. package/lib/components/dropdown-layer/index.js +21 -14
  85. package/lib/components/dynamic/components/condition-render/index.js +20 -0
  86. package/lib/components/dynamic/components/dangerous-html/index.js +22 -0
  87. package/lib/components/dynamic/components/dynamic-search-input/index.css +78 -0
  88. package/lib/components/dynamic/components/dynamic-search-input/index.js +192 -0
  89. package/lib/components/dynamic/components/obj-status/index.css +22 -0
  90. package/lib/components/dynamic/components/obj-status/index.js +38 -0
  91. package/lib/components/dynamic/components/percent/index.css +21 -0
  92. package/lib/components/dynamic/components/percent/index.js +38 -0
  93. package/lib/components/dynamic/components/title/index.css +35 -0
  94. package/lib/components/dynamic/components/title/index.js +59 -0
  95. package/lib/components/dynamic/constant.js +97 -0
  96. package/lib/components/dynamic/context/index.js +13 -0
  97. package/lib/components/dynamic/dynamic-item/components/header/index.css +101 -0
  98. package/lib/components/dynamic/dynamic-item/components/header/index.js +299 -0
  99. package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
  100. package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
  101. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
  102. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
  103. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
  104. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
  105. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +59 -0
  106. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
  107. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
  108. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
  109. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
  110. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
  111. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
  112. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
  113. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
  114. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
  115. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
  116. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
  117. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
  118. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
  119. package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
  120. package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
  121. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
  122. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
  123. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
  124. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
  125. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
  126. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
  127. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +183 -0
  128. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
  129. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
  130. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
  131. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
  132. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +59 -0
  133. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
  134. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +50 -0
  135. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
  136. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
  137. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
  138. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
  139. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
  140. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
  141. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
  142. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
  143. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
  144. package/lib/components/dynamic/dynamic-item/index.css +128 -0
  145. package/lib/components/dynamic/dynamic-item/index.js +352 -0
  146. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
  147. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  148. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  149. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  150. package/lib/components/dynamic/dynamic-like-ranking/index.css +126 -0
  151. package/lib/components/dynamic/dynamic-like-ranking/index.js +157 -0
  152. package/lib/components/dynamic/dynamic-like-ranking/item.js +107 -0
  153. package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  154. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
  155. package/lib/components/dynamic/dynamic-liking/index.css +81 -0
  156. package/lib/components/dynamic/dynamic-liking/index.js +76 -0
  157. package/lib/components/dynamic/dynamic-liking/item.js +91 -0
  158. package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
  159. package/lib/components/dynamic/dynamic-list/index.css +36 -0
  160. package/lib/components/dynamic/dynamic-list/index.js +61 -0
  161. package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +16 -0
  162. package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +30 -0
  163. package/lib/components/dynamic/dynamic-topping/index.css +148 -0
  164. package/lib/components/dynamic/dynamic-topping/index.js +80 -0
  165. package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
  166. package/lib/components/dynamic/dynamic-topping/item.js +140 -0
  167. package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
  168. package/lib/components/dynamic/dynamic.css +204 -0
  169. package/lib/components/dynamic/dynamic.js +391 -0
  170. package/lib/components/dynamic/export-module/index.js +33 -0
  171. package/lib/components/dynamic/img/dynamic-P1.svg +15 -0
  172. package/lib/components/dynamic/img/dynamic-P2.svg +15 -0
  173. package/lib/components/dynamic/img/dynamic-P3.svg +15 -0
  174. package/lib/components/dynamic/img/dynamic-P4.svg +15 -0
  175. package/lib/components/dynamic/img/dynamic-P5.svg +15 -0
  176. package/lib/components/dynamic/img/dynamic-delay.svg +17 -0
  177. package/lib/components/dynamic/img/dynamic-desire.svg +61 -0
  178. package/lib/components/dynamic/img/dynamic-empty.png +0 -0
  179. package/lib/components/dynamic/img/dynamic-end.svg +17 -0
  180. package/lib/components/dynamic/img/dynamic-left-quoto.svg +13 -0
  181. package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
  182. package/lib/components/dynamic/img/dynamic-normal.svg +17 -0
  183. package/lib/components/dynamic/img/dynamic-promise.svg +61 -0
  184. package/lib/components/dynamic/img/dynamic-reword.svg +24 -0
  185. package/lib/components/dynamic/img/dynamic-right-quoto.svg +13 -0
  186. package/lib/components/dynamic/img/dynamic-risk.svg +17 -0
  187. package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
  188. package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
  189. package/lib/components/dynamic/img/dynamic-top.svg +14 -0
  190. package/lib/components/dynamic/index.js +27 -0
  191. package/lib/components/dynamic/interface.js +5 -0
  192. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
  193. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +37 -0
  194. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
  195. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +37 -0
  196. package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
  197. package/lib/components/dynamic/quick-operation/components/create-share/index.js +37 -0
  198. package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
  199. package/lib/components/dynamic/quick-operation/components/create-task/index.js +42 -0
  200. package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
  201. package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
  202. package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
  203. package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
  204. package/lib/components/dynamic/quick-operation/index.css +51 -0
  205. package/lib/components/dynamic/quick-operation/index.js +112 -0
  206. package/lib/components/dynamic/request-api.js +92 -0
  207. package/lib/components/dynamic/util.js +140 -0
  208. package/lib/components/emotionsSelector/style.js +1 -1
  209. package/lib/components/file-list/components/single-file/index.css +84 -0
  210. package/lib/components/file-list/components/single-file/index.js +115 -0
  211. package/lib/components/file-list/img/new-file-list-doc.svg +1 -0
  212. package/lib/components/file-list/img/new-file-list-other.svg +1 -0
  213. package/lib/components/file-list/img/new-file-list-pdf.svg +1 -0
  214. package/lib/components/file-list/img/new-file-list-ppt.svg +1 -0
  215. package/lib/components/file-list/img/new-file-list-radio.svg +1 -0
  216. package/lib/components/file-list/img/new-file-list-video.svg +1 -0
  217. package/lib/components/file-list/img/new-file-list-xls.svg +1 -0
  218. package/lib/components/file-list/index.css +5 -0
  219. package/lib/components/file-list/index.js +61 -0
  220. package/lib/components/file-list/interface.js +5 -0
  221. package/lib/components/file-list/util.js +78 -0
  222. package/lib/components/form/form-fields/input/index.css +11 -0
  223. package/lib/components/form/form-fields/input/index.js +3 -1
  224. package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
  225. package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
  226. package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
  227. package/lib/components/grid-page/image/{UserManager.svg → userManager.svg} +0 -0
  228. package/lib/components/grid-page/personal-info/index.js +5 -5
  229. package/lib/components/img-viewer/icon/enlarge.js +30 -0
  230. package/lib/components/img-viewer/icon/left-rotate.js +46 -0
  231. package/lib/components/img-viewer/icon/right-rotate.js +44 -0
  232. package/lib/components/img-viewer/icon/shrink.js +37 -0
  233. package/lib/components/img-viewer/image/loading.gif +0 -0
  234. package/lib/components/img-viewer/index.css +155 -0
  235. package/lib/components/img-viewer/index.js +228 -0
  236. package/lib/components/img-viewer/interface.js +5 -0
  237. package/lib/components/img-viewer/util.js +16 -0
  238. package/lib/components/mblog/components/MblogAction.js +10 -6
  239. package/lib/components/mblog/index.js +24 -11
  240. package/lib/components/mblog/style.js +8 -8
  241. package/lib/components/okr-detail/components/header/index.css +4 -0
  242. package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
  243. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +15 -8
  244. package/lib/components/okr-flow/child-node/work-node.js +7 -1
  245. package/lib/components/okr-period-selector/select-cycle.js +139 -151
  246. package/lib/components/okr-progress-detail/index.css +1 -0
  247. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
  248. package/lib/components/okr-review/ReviewPop/index.js +4 -4
  249. package/lib/components/period-selector/common.js +168 -17
  250. package/lib/components/period-selector/components/selector/index.js +103 -38
  251. package/lib/components/period-selector/components/selector/style.js +23 -9
  252. package/lib/components/period-selector/index.js +29 -28
  253. package/lib/components/popup/index.js +3 -1
  254. package/lib/components/publish-dynamic-modal/index.js +13 -0
  255. package/lib/components/publish-dynamic-modal/interface.js +5 -0
  256. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +3 -0
  257. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +191 -0
  258. package/lib/components/publish-dynamic-modal/requist-api.js +48 -0
  259. package/lib/components/radio/index.css +5 -0
  260. package/lib/components/radio/radio.js +12 -4
  261. package/lib/components/search-key-handle/index.js +39 -0
  262. package/lib/components/table/index.css +0 -1
  263. package/lib/components/upload/components/uploadedPreview.js +62 -54
  264. package/lib/components/upload/img/doc.svg +1 -0
  265. package/lib/components/upload/img/other.svg +1 -0
  266. package/lib/components/upload/img/pdf.svg +1 -0
  267. package/lib/components/upload/img/ppt.svg +1 -0
  268. package/lib/components/upload/img/radio.svg +1 -0
  269. package/lib/components/upload/img/video.svg +1 -0
  270. package/lib/components/upload/img/xls.svg +1 -0
  271. package/lib/components/upload/index.css +26 -0
  272. package/lib/components/upload/index.js +89 -57
  273. package/lib/components/upload/style.js +7 -7
  274. package/lib/components/upload/type.js +15 -15
  275. package/lib/components/upload/util.js +102 -0
  276. package/lib/components/upvote/index.js +37 -14
  277. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
  278. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +50 -24
  279. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +11 -2
  280. package/lib/components/user-selector/layout/index.css +1 -1
  281. package/lib/components-v1/buttonv2/ButtonLinked.js +35 -0
  282. package/lib/components-v1/buttonv2/ButtonOutlined.js +64 -0
  283. package/lib/components-v1/buttonv2/ButtonRounded.js +101 -0
  284. package/lib/components-v1/buttonv2/DefaultButton.js +86 -0
  285. package/lib/components-v1/buttonv2/index.js +37 -0
  286. package/lib/components-v1/buttonv2/style/style.js +53 -0
  287. package/lib/components-v1/buttonv2/style/theme.css +3 -0
  288. package/lib/components-v1/confirm/index.js +158 -0
  289. package/lib/index.js +49 -5
  290. package/lib/pages/dynamic/index.css +5 -0
  291. package/lib/pages/dynamic/index.js +25 -0
  292. package/lib/pages/home-page/components/data-list/nav-selector/index.js +18 -0
  293. package/lib/pages/home-page/components/data-list/table/utils-function.js +6 -3
  294. package/lib/pages/like-ranking/column.js +141 -0
  295. package/lib/pages/like-ranking/filter-buttons/department.js +44 -0
  296. package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
  297. package/lib/pages/like-ranking/filter-buttons/index.css +19 -0
  298. package/lib/pages/like-ranking/filter-buttons/index.js +40 -0
  299. package/lib/pages/like-ranking/filter-buttons/modular.js +110 -0
  300. package/lib/pages/like-ranking/filter-buttons/name.js +73 -0
  301. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +27 -0
  302. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +38 -0
  303. package/lib/pages/like-ranking/filter-buttons/timer.js +56 -0
  304. package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
  305. package/lib/pages/like-ranking/image/loading.gif +0 -0
  306. package/lib/pages/like-ranking/image/ranking-1.png +0 -0
  307. package/lib/pages/like-ranking/image/ranking-2.png +0 -0
  308. package/lib/pages/like-ranking/image/ranking-3.png +0 -0
  309. package/lib/pages/like-ranking/index.css +185 -0
  310. package/lib/pages/like-ranking/index.js +252 -0
  311. package/lib/pages/like-ranking/mock.js +366 -0
  312. package/lib/pages/like-ranking/request-api.js +15 -0
  313. package/lib/utils/auth.js +46 -5
  314. package/lib/utils/bs-global.js +26 -2
  315. package/lib/utils/format-time.js +161 -0
  316. package/lib/utils/helpers.js +41 -0
  317. package/lib/utils/roundWeight.js +105 -0
  318. package/lib/utils/tools.js +140 -20
  319. package/package.json +2 -2
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DeleteKr = exports.DateLine = exports.CreateCycleWrapper = exports.TimeSapn = exports.DropDownContent = exports.SelectBtn = exports.WeightInputWrpper = exports.WeightWrapper = exports.KrNameInput = exports.InputWrapper = exports.KrEditWrapper = exports.KrItemWrapper = exports.AddKrBtn = exports.BlueBar = exports.Space = exports.ItemWrapper = exports.CaseLink = exports.TitleLine = exports.Line = exports.Wrapper = void 0;
7
+
8
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
+
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+
14
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
+
16
+ var Wrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 449px;\n padding: 0 32px;\n overflow: auto;\n"])));
17
+
18
+ exports.Wrapper = Wrapper;
19
+
20
+ var Line = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
21
+
22
+ exports.Line = Line;
23
+ var TitleLine = (0, _styledComponents["default"])(Line)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 14px;\n font-weight: 500;\n text-align: left;\n color: #3f4755;\n padding: 15px 0 2px;\n line-height: 22px;\n"])));
24
+ exports.TitleLine = TitleLine;
25
+
26
+ var CaseLink = _styledComponents["default"].a(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: #2879ff;\n font-weight: 400;\n font-size: 14px;\n margin-right: 34px;\n ::before {\n margin-right: 4px;\n }\n transition: color 0.5s;\n :hover {\n color: #5c8eff;\n }\n /* letter-spacing: 2px; */\n"])));
27
+
28
+ exports.CaseLink = CaseLink;
29
+
30
+ var ItemWrapper = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
31
+
32
+ exports.ItemWrapper = ItemWrapper;
33
+
34
+ var Space = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 12px;\n"])));
35
+
36
+ exports.Space = Space;
37
+
38
+ var BlueBar = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 4px;\n height: 16px;\n border-radius: 2px;\n margin-right: 6px;\n background: linear-gradient(90deg, #4e90ff, #2879ff);\n"])));
39
+
40
+ exports.BlueBar = BlueBar;
41
+
42
+ var AddKrBtn = _styledComponents["default"].a(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 14px;\n font-weight: 400;\n color: #2879ff;\n line-height: 22px;\n display: flex;\n align-items: center;\n ::before {\n margin-right: 6px;\n font-size: 12px;\n font-weight: 600;\n }\n"])));
43
+
44
+ exports.AddKrBtn = AddKrBtn;
45
+
46
+ var KrItemWrapper = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-bottom: 16px;\n display: flex;\n align-items: center;\n"])));
47
+
48
+ exports.KrItemWrapper = KrItemWrapper;
49
+
50
+ var KrEditWrapper = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n height: 36px;\n background: #ffffff;\n border: 1px solid ", ";\n border-radius: 4px;\n ", "\n display: flex;\n align-items: center;\n flex: 1;\n padding: 0 10px;\n transition: border 0.2s ease 0.2s, box-shadow 0.2s ease 0.2s;\n > span {\n font-size: 13px;\n font-weight: 400;\n text-align: left;\n color: #6f7886;\n margin-left: 18px;\n }\n :hover {\n border: 1px solid #2879ff;\n }\n"])), function (p) {
51
+ return p.active ? "#2879ff" : "#f0f2f5";
52
+ }, function (p) {
53
+ return p.active ? "box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3) inset;" : "";
54
+ });
55
+
56
+ exports.KrEditWrapper = KrEditWrapper;
57
+
58
+ var InputWrapper = _styledComponents["default"].div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n height: 36px;\n background: #ffffff;\n border: 1px solid ", ";\n border-radius: 4px;\n ", "\n display: flex;\n align-items: center;\n flex: 1;\n padding: 0 10px;\n transition: border 0.2s ease 0.2s, box-shadow 0.2s ease 0.2s;\n :hover {\n border: 1px solid #2879ff;\n }\n > input {\n flex: 1;\n border: none;\n padding: 0;\n margin: 0;\n }\n"])), function (p) {
59
+ return p.active ? "#2879ff" : "#f0f2f5";
60
+ }, function (p) {
61
+ return p.active ? "box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3) inset;" : "";
62
+ });
63
+
64
+ exports.InputWrapper = InputWrapper;
65
+
66
+ var KrNameInput = _styledComponents["default"].input(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n flex: 1;\n color: #3f4755;\n padding-left: 12px;\n border: none;\n ::-webkit-input-placeholder {\n color: #bfc7d5;\n }\n :-ms-input-placeholder {\n color: #bfc7d5;\n }\n :-moz-input-placeholder {\n color: #bfc7d5;\n }\n"])));
67
+
68
+ exports.KrNameInput = KrNameInput;
69
+
70
+ var WeightWrapper = _styledComponents["default"].div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-left: 18px;\n"])));
71
+
72
+ exports.WeightWrapper = WeightWrapper;
73
+
74
+ var WeightInputWrpper = _styledComponents["default"].div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n > span {\n color: transparent;\n }\n > input {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n border: none;\n padding: 0;\n margin: 0;\n }\n"])));
75
+
76
+ exports.WeightInputWrpper = WeightInputWrpper;
77
+
78
+ var SelectBtn = _styledComponents["default"].div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n height: 36px;\n width: 100%;\n border: 1px solid #e6eaef;\n border-radius: 3px;\n display: flex;\n padding: 0 12px;\n align-items: center;\n box-sizing: border-box;\n cursor: pointer;\n transition: border 0.2s ease;\n > .tu-icon-cross {\n color: #bfc7d5;\n margin: 0 20px;\n }\n :hover {\n border: 1px solid #2879ff;\n }\n > i {\n font-size: 12px;\n }\n > span {\n flex: 1;\n width: 0;\n text-align: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-break: break-all;\n overflow: hidden;\n }\n"])));
79
+
80
+ exports.SelectBtn = SelectBtn;
81
+
82
+ var DropDownContent = _styledComponents["default"].div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n /* \u5468\u671F\u9009\u62E9\u7EC4\u4EF6 */\n display: flex;\n align-items: center;\n padding-right: 28px;\n margin-bottom: 10px;\n transition: 300ms;\n .has-underline {\n border-bottom: 1px solid rgb(227, 230, 234);\n justify-content: space-between;\n height: 17px;\n }\n"])));
83
+
84
+ exports.DropDownContent = DropDownContent;
85
+
86
+ var TimeSapn = _styledComponents["default"].span(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n > i {\n margin-left: 12px;\n color: #bfc7d5;\n }\n"])));
87
+
88
+ exports.TimeSapn = TimeSapn;
89
+
90
+ var CreateCycleWrapper = _styledComponents["default"].div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n padding: 15px 20px 20px;\n width: 262px;\n"])));
91
+
92
+ exports.CreateCycleWrapper = CreateCycleWrapper;
93
+
94
+ var DateLine = _styledComponents["default"].div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n padding: 12px 0;\n font-size: 12px;\n color: #89919f;\n line-height: 17px;\n text-align: left;\n span {\n color: #3f4755;\n }\n"])));
95
+
96
+ exports.DateLine = DateLine;
97
+
98
+ var DeleteKr = _styledComponents["default"].a(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n color: #000000;\n font-size: 14px;\n margin-left: 7px;\n margin-right: 8px;\n :hover {\n color: #f05e5e;\n }\n"])));
99
+
100
+ exports.DeleteKr = DeleteKr;
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var getRandomNum = function getRandomNum(baseNum) {
9
+ return Math.floor(Math.random() * baseNum);
10
+ };
11
+
12
+ var getKrNumberAndMeasurableScore = function getKrNumberAndMeasurableScore(krNum, krMeasurableNums) {
13
+ if (krNum === 0) {
14
+ return 0;
15
+ }
16
+
17
+ if (krNum === 1) {
18
+ if (krMeasurableNums === 1) {
19
+ return 25;
20
+ }
21
+
22
+ return 20;
23
+ }
24
+
25
+ if (krNum === 2) {
26
+ if (krMeasurableNums === 1) {
27
+ return 40;
28
+ } else if (krMeasurableNums === 2) {
29
+ return 50;
30
+ }
31
+
32
+ return 35;
33
+ }
34
+
35
+ if (krNum === 3) {
36
+ if (krMeasurableNums === 1) {
37
+ return 50;
38
+ } else if (krMeasurableNums === 2) {
39
+ return 60;
40
+ } else if (krMeasurableNums === 3) {
41
+ return 60;
42
+ }
43
+
44
+ return 45;
45
+ }
46
+
47
+ if (krNum === 4) {
48
+ if (krMeasurableNums === 1) {
49
+ return 50;
50
+ } else if (krMeasurableNums === 2) {
51
+ return 55;
52
+ } else if (krMeasurableNums === 3) {
53
+ return 60;
54
+ } else if (krMeasurableNums === 4) {
55
+ return 70;
56
+ }
57
+
58
+ return 45;
59
+ }
60
+
61
+ if (krNum === 5) {
62
+ if (krMeasurableNums === 1) {
63
+ return 50;
64
+ } else if (krMeasurableNums === 2) {
65
+ return 55;
66
+ } else if (krMeasurableNums === 3) {
67
+ return 60;
68
+ } else if (krMeasurableNums === 4) {
69
+ return 65;
70
+ } else if (krMeasurableNums === 5) {
71
+ return 70;
72
+ }
73
+
74
+ return 45;
75
+ }
76
+
77
+ if (krNum > 5) {
78
+ if (krMeasurableNums === 0) {
79
+ return 40;
80
+ } else if (krMeasurableNums === 1) {
81
+ return 45;
82
+ } else if (krMeasurableNums === 2) {
83
+ return 50;
84
+ } else if (krMeasurableNums === 3) {
85
+ return 55;
86
+ }
87
+
88
+ return 60;
89
+ }
90
+ }; // 参考 https://doc.weixin.qq.com/txdoc/excel?scode=AOEAFQeYAA0Nbxe0lHABkAGgaGACY&docid=e2_AJcATAaKACYmPDc9BjaSnWjBmFCGo&type=1&tab=BB08J2
91
+
92
+
93
+ var _default = function _default(oNameLength, okrHasWtWords, krNum, krMeasurableNums, krAvarageLength) {
94
+ var totalScore = 0;
95
+
96
+ if (okrHasWtWords) {
97
+ totalScore += 5;
98
+ } // 计算目标名称长度
99
+
100
+
101
+ if (oNameLength < 5) {
102
+ totalScore += 2;
103
+ } else if (oNameLength < 9) {
104
+ totalScore += 15;
105
+ } else if (oNameLength < 31) {
106
+ totalScore += 20;
107
+ } else {
108
+ totalScore += 15;
109
+ }
110
+
111
+ totalScore += getKrNumberAndMeasurableScore(krNum, krMeasurableNums);
112
+
113
+ if (krAvarageLength < 5) {
114
+ return Number((totalScore * (getRandomNum(5) + 3) / 100).toFixed(1));
115
+ } else if (krAvarageLength < 9) {
116
+ return Number((totalScore * (getRandomNum(15) + 70) / 100).toFixed(1));
117
+ } else if (krAvarageLength < 31) {
118
+ return Number((totalScore * (getRandomNum(15) + 90) / 100).toFixed(1));
119
+ } else {
120
+ return Number((totalScore * (getRandomNum(10) + 80) / 100).toFixed(1));
121
+ }
122
+ };
123
+
124
+ exports["default"] = _default;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.taker = taker;
7
+ exports.getApiUrl = getApiUrl;
8
+
9
+ var _bsGlobal = require("../../../utils/bs-global");
10
+
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
12
+
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
+
15
+ 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; }
16
+
17
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
18
+
19
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
20
+
21
+ function taker(_x, _x2, _x3) {
22
+ return _taker.apply(this, arguments);
23
+ }
24
+
25
+ function _taker() {
26
+ _taker = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, method, body) {
27
+ var header,
28
+ settings,
29
+ bodyStr,
30
+ key,
31
+ response,
32
+ data,
33
+ _args = arguments;
34
+ return regeneratorRuntime.wrap(function _callee$(_context) {
35
+ while (1) {
36
+ switch (_context.prev = _context.next) {
37
+ case 0:
38
+ header = _args.length > 3 && _args[3] !== undefined ? _args[3] : {};
39
+ settings = {};
40
+
41
+ if (method) {
42
+ settings.headers = _objectSpread(_objectSpread({}, {
43
+ Accept: "application/json, application/xml, text/play, text/html, *.*",
44
+ "Content-Type": "application/json; charset=utf-8"
45
+ }), header);
46
+ settings.method = method;
47
+ }
48
+
49
+ if (body) settings.body = JSON.stringify(body);
50
+
51
+ if (settings.headers) {
52
+ if (settings.headers["Content-Type"] == "application/x-www-form-urlencoded") {
53
+ bodyStr = "";
54
+
55
+ for (key in body) {
56
+ bodyStr += "".concat(key, "=").concat(body[key], "&");
57
+ }
58
+
59
+ bodyStr.substring(0, bodyStr.length - 1);
60
+ settings.body = bodyStr;
61
+ }
62
+ }
63
+
64
+ settings.credentials = "same-origin";
65
+ _context.prev = 6;
66
+ _context.next = 9;
67
+ return fetch(url, settings);
68
+
69
+ case 9:
70
+ response = _context.sent;
71
+ _context.next = 12;
72
+ return response.json();
73
+
74
+ case 12:
75
+ data = _context.sent;
76
+ return _context.abrupt("return", data);
77
+
78
+ case 16:
79
+ _context.prev = 16;
80
+ _context.t0 = _context["catch"](6);
81
+ _context.next = 20;
82
+ return Promise.reject(_context.t0);
83
+
84
+ case 20:
85
+ case "end":
86
+ return _context.stop();
87
+ }
88
+ }
89
+ }, _callee, null, [[6, 16]]);
90
+ }));
91
+ return _taker.apply(this, arguments);
92
+ }
93
+
94
+ function getApiUrl(url) {
95
+ var uid = (0, _bsGlobal.getUserInfo)().Id;
96
+ var tid = (0, _bsGlobal.getTenantInfo)().Id;
97
+ var apiServer = (0, _bsGlobal.getBSGlobal)("apiPath");
98
+ return apiServer + "/api/v1/" + tid + "/" + uid + "/" + url;
99
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.KrWeightValidator = KrWeightValidator;
7
+
8
+ function KrWeightValidator(value) {
9
+ // 首先得是数字
10
+ var _value = Number(value); //
11
+
12
+
13
+ if ("".concat(value).trim() == "") return false; // required
14
+
15
+ if (isNaN(_value)) return false; // 不是数字
16
+
17
+ if (!Number.isInteger(_value) && "".concat(_value).split(".")[1].length > 1) return false; // 小数点超出一位
18
+
19
+ if (_value > 100) return false; // 允许输入超过 100 的数字
20
+
21
+ if (_value < 0) return false;
22
+ return true;
23
+ }
@@ -13,6 +13,8 @@ require("./index.css");
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
15
 
16
+ 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; }
17
+
16
18
  var preCls = 'titaui-dropdown-layer';
17
19
 
18
20
  var _default = function _default(props) {
@@ -28,10 +30,10 @@ var _default = function _default(props) {
28
30
 
29
31
  return /*#__PURE__*/_react["default"].createElement("div", {
30
32
  key: name,
31
- className: (0, _classnames["default"])("".concat(preCls, "__icon-item")),
33
+ className: (0, _classnames["default"])("".concat(preCls, "__icon-item"), _defineProperty({}, "".concat(preCls, "__icon-item--noicon"), !icon)),
32
34
  onClick: onClickHandler
33
- }, /*#__PURE__*/_react["default"].createElement("span", {
34
- className: (0, _classnames["default"])(icon || name, "".concat(preCls, "__icon-item-icon"), exIconClass)
35
+ }, icon && /*#__PURE__*/_react["default"].createElement("span", {
36
+ className: (0, _classnames["default"])(icon, "".concat(preCls, "__icon-item-icon"), exIconClass)
35
37
  }), /*#__PURE__*/_react["default"].createElement("span", {
36
38
  className: (0, _classnames["default"])("".concat(preCls, "__icon-item-text"))
37
39
  }, children));
@@ -1,3 +1,15 @@
1
+ .titaui-dropdown-layer__radio {
2
+ margin-right: 0px;
3
+ }
4
+
5
+ .titaui-dropdown-layer__radio .titaui-radio-inner {
6
+ color: #2879FF;
7
+ }
8
+
9
+ .titaui-dropdown-layer__radio .titaui-radio-inner::after {
10
+ color: #2879FF;
11
+ }
12
+
1
13
  .titaui-dropdown-layer__icon-item {
2
14
  position: relative;
3
15
  height: 32px;
@@ -21,6 +33,10 @@
21
33
  vertical-align: text-bottom;
22
34
  }
23
35
 
36
+ .titaui-dropdown-layer__icon-item-icon--noicon {
37
+ margin-right: 0;
38
+ }
39
+
24
40
  .titaui-dropdown-layer__icon-item-text {
25
41
  font-size: 14px;
26
42
  font-weight: 400;
@@ -15,11 +15,14 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _checkbox = _interopRequireDefault(require("../checkbox"));
17
17
 
18
+ var _radio = _interopRequireDefault(require("../radio"));
19
+
18
20
  require("./index.css");
19
21
 
20
22
  var _iconItem = _interopRequireDefault(require("./icon-item"));
21
23
 
22
- var _excluded = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit"];
24
+ var _excluded = ["name", "multi", "children", "onClick", "className"],
25
+ _excluded2 = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit"];
23
26
 
24
27
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
28
 
@@ -27,18 +30,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
30
 
28
31
  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
32
 
30
- 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); }
31
-
32
- 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; }
33
-
34
- 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; }
35
-
36
33
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
37
34
 
38
35
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
39
36
 
40
37
  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; }
41
38
 
39
+ 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); }
40
+
42
41
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
43
42
 
44
43
  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."); }
@@ -51,6 +50,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
51
50
 
52
51
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
52
 
53
+ 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; }
54
+
55
+ 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; }
56
+
54
57
  var preCls = 'titaui-dropdown-layer';
55
58
  var IconItem = _iconItem["default"];
56
59
  exports.IconItem = IconItem;
@@ -59,7 +62,9 @@ var Item = function Item(props) {
59
62
  var name = props.name,
60
63
  multi = props.multi,
61
64
  children = props.children,
62
- onClick = props.onClick;
65
+ onClick = props.onClick,
66
+ className = props.className,
67
+ restProps = _objectWithoutProperties(props, _excluded);
63
68
 
64
69
  var _useState = (0, _react.useState)(props.checked),
65
70
  _useState2 = _slicedToArray(_useState, 2),
@@ -75,11 +80,11 @@ var Item = function Item(props) {
75
80
  onClick && onClick(name, !checked);
76
81
  };
77
82
 
78
- return /*#__PURE__*/_react["default"].createElement("div", {
83
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
79
84
  key: name,
80
- className: (0, _classnames["default"])("".concat(preCls, "__operation-item")),
85
+ className: (0, _classnames["default"])("".concat(preCls, "__operation-item"), className),
81
86
  onClick: onClickHandler
82
- }, multi && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
87
+ }, restProps), multi && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
83
88
  checked: checked
84
89
  }), /*#__PURE__*/_react["default"].createElement("span", {
85
90
  className: (0, _classnames["default"])("".concat(preCls, "__operation-item-text"))
@@ -99,7 +104,9 @@ var DropSelectorLayer = function DropSelectorLayer(props) {
99
104
  trigger = props.trigger,
100
105
  children = props.children,
101
106
  _props$limitHeight = props.limitHeight,
102
- limitHeight = _props$limitHeight === void 0 ? false : _props$limitHeight;
107
+ limitHeight = _props$limitHeight === void 0 ? false : _props$limitHeight,
108
+ _props$footerBtn = props.footerBtn,
109
+ footerBtn = _props$footerBtn === void 0 ? null : _props$footerBtn;
103
110
 
104
111
  var onMenuClickHandler = function onMenuClickHandler(name, checked) {
105
112
  onItemClick && onItemClick(name, checked);
@@ -116,7 +123,7 @@ var DropSelectorLayer = function DropSelectorLayer(props) {
116
123
  'onClick': onMenuClickHandler,
117
124
  'multi': multi
118
125
  }, child.props));
119
- }));
126
+ }), footerBtn);
120
127
  };
121
128
 
122
129
  exports.DropSelectorLayer = DropSelectorLayer;
@@ -133,7 +140,7 @@ var _default = function _default(props) {
133
140
  onChange = props.onChange,
134
141
  _props$canEdit = props.canEdit,
135
142
  canEdit = _props$canEdit === void 0 ? true : _props$canEdit,
136
- restProps = _objectWithoutProperties(props, _excluded);
143
+ restProps = _objectWithoutProperties(props, _excluded2);
137
144
 
138
145
  var _useState3 = (0, _react.useState)(false),
139
146
  _useState4 = _slicedToArray(_useState3, 2),
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var ConditionRender = function ConditionRender(_ref) {
9
+ var condition = _ref.condition,
10
+ children = _ref.children;
11
+
12
+ if (!condition) {
13
+ return null;
14
+ }
15
+
16
+ return children;
17
+ };
18
+
19
+ var _default = ConditionRender;
20
+ exports["default"] = _default;
@@ -0,0 +1,22 @@
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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var DangerousHtml = function DangerousHtml(_ref) {
13
+ var htmlText = _ref.htmlText;
14
+ return /*#__PURE__*/_react["default"].createElement("span", {
15
+ dangerouslySetInnerHTML: {
16
+ __html: htmlText
17
+ }
18
+ });
19
+ };
20
+
21
+ var _default = DangerousHtml;
22
+ exports["default"] = _default;
@@ -0,0 +1,78 @@
1
+ .titaui-dynamic-search-input {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 240px;
5
+ height: 32px;
6
+ background: #FFFFFF;
7
+ border-radius: 16px;
8
+ border: 1px solid #E9ECF0;
9
+ padding: 5px 12px 5px 14px;
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ .titaui-dynamic-search-input__popup {
14
+ width: 68px;
15
+ height: 96px;
16
+ background: #FFFFFF;
17
+ box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
18
+ border: 1px solid #F0F2F5;
19
+ padding: 16px 0px 16px 0px;
20
+ box-sizing: border-box;
21
+ border-radius: 6px;
22
+ user-select: none;
23
+ }
24
+
25
+ .titaui-dynamic-search-input__popup-item {
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ height: 32px;
30
+ font-size: 14px;
31
+ color: #3F4755;
32
+ line-height: 22px;
33
+ cursor: pointer;
34
+ }
35
+
36
+ .titaui-dynamic-search-input__popup-item--active {
37
+ color: #2879FF;
38
+ }
39
+
40
+ .titaui-dynamic-search-input__popup-item:hover {
41
+ color: #2879FF;
42
+ background: #f7f8fa;
43
+ }
44
+
45
+ .titaui-dynamic-search-input__icon {
46
+ margin: 0 8px;
47
+ }
48
+
49
+ .titaui-dynamic-search-input__select-type {
50
+ display: flex;
51
+ align-items: center;
52
+ cursor: pointer;
53
+ }
54
+
55
+ .titaui-dynamic-search-input__input {
56
+ border: none;
57
+ outline: none;
58
+ width: 130px;
59
+ margin-right: 4px;
60
+ overflow: hidden;
61
+ text-overflow: ellipsis;
62
+ }
63
+
64
+ .titaui-dynamic-search-input__input::placeholder {
65
+ font-size: 14px;
66
+ color: #BFC7D5;
67
+ line-height: 22px;
68
+ }
69
+
70
+ .titaui-dynamic-search-input__input-clear {
71
+ color: #BFC7D5;
72
+ font-size: 14px;
73
+ }
74
+
75
+ .titaui-dynamic-search-input__input-clear:hover {
76
+ cursor: pointer;
77
+ color: #f05e5e;
78
+ }