@titaui/pc 1.11.1 → 1.11.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 (298) hide show
  1. package/lib/components/date-picker/BodyItem.js +3 -3
  2. package/lib/components/date-picker/CalendarHeader.js +3 -3
  3. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  4. package/lib/components/drawer-manager/index.js +25 -27
  5. package/lib/components/dynamic/online-broadcast/data.js +7 -1
  6. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  7. package/lib/components/emotions-selector/selector-pop.js +3 -3
  8. package/lib/components/ereport-list/index.js +3 -3
  9. package/lib/components/mblog/components/MblogAction.js +3 -3
  10. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  11. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  12. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  13. package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +14 -8
  14. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  15. package/lib/components/rich-editor/models/schema.js +6 -6
  16. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  17. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  18. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  19. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  20. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  21. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  22. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  23. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  24. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  25. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  26. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  27. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  28. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  29. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  30. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  31. package/lib/components/select/Option.js +3 -3
  32. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  33. package/lib/components-v1/animate/AnimateChild.js +3 -3
  34. package/lib/components-v1/avatar/index.js +3 -3
  35. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  36. package/lib/components-v1/progress/CircleProgress.js +3 -3
  37. package/lib/components-v1/select/Option.js +3 -3
  38. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  39. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  40. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  41. package/lib/index.js +0 -8
  42. package/package.json +1 -1
  43. package/es/components/cascader/time.js +0 -31
  44. package/es/components/common-share/request-apis.js +0 -56
  45. package/es/components/confidence/heart.js +0 -66
  46. package/es/components/create-okr-modal/fields/index.js +0 -17
  47. package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
  48. package/es/components/date-picker/BodyItem.js +0 -121
  49. package/es/components/date-picker/CalendarBody.js +0 -157
  50. package/es/components/date-picker/CalendarHeader.js +0 -187
  51. package/es/components/date-picker/index.js +0 -157
  52. package/es/components/date-range-picker/index.js +0 -210
  53. package/es/components/dialog/index.js +0 -119
  54. package/es/components/dialog-confirm/index.js +0 -154
  55. package/es/components/drop-selector/icon-item.js +0 -40
  56. package/es/components/drop-selector/index.js +0 -179
  57. package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
  58. package/es/components/dynamic/dynamic-liking/mock.js +0 -83
  59. package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
  60. package/es/components/e-priority/index.js +0 -88
  61. package/es/components/e-status-dropdown/index.js +0 -94
  62. package/es/components/grid-layout/commen-components/index.js +0 -73
  63. package/es/components/grid-layout/image/could.js +0 -8
  64. package/es/components/grid-layout/image/lv.js +0 -8
  65. package/es/components/grid-layout/image/tita-mask.js +0 -8
  66. package/es/components/help-card/request-api.js +0 -35
  67. package/es/components/icon-button-list/index.js +0 -65
  68. package/es/components/menus/context.js +0 -18
  69. package/es/components/menus/precls.js +0 -8
  70. package/es/components/okr-detail/auth.js +0 -197
  71. package/es/components/okr-detail/components/ao-nice/index.js +0 -245
  72. package/es/components/okr-detail/components/block-line/index.js +0 -20
  73. package/es/components/okr-detail/components/header/index.js +0 -211
  74. package/es/components/okr-detail/components/icon-text/index.js +0 -116
  75. package/es/components/okr-detail/components/okr-tree/index.js +0 -48
  76. package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
  77. package/es/components/okr-detail/components/okr-tree/tree-node/default-node.js +0 -22
  78. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
  79. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +0 -200
  80. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
  81. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +0 -412
  82. package/es/components/okr-detail/components/okr-tree/tree-node/get-process-color.js +0 -62
  83. package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
  84. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
  85. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
  86. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
  87. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
  88. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
  89. package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
  90. package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
  91. package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
  92. package/es/components/okr-detail/components/padding-layout.js +0 -22
  93. package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
  94. package/es/components/okr-detail/context.js +0 -30
  95. package/es/components/okr-detail/e-list/index.js +0 -243
  96. package/es/components/okr-detail/e-list/precls.js +0 -8
  97. package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
  98. package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
  99. package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
  100. package/es/components/okr-detail/e-list/search-form/index.js +0 -143
  101. package/es/components/okr-detail/error-page/index.js +0 -33
  102. package/es/components/okr-detail/index.js +0 -428
  103. package/es/components/okr-detail/loading/index.js +0 -28
  104. package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
  105. package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
  106. package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
  107. package/es/components/okr-detail/okr-list/empty/index.js +0 -48
  108. package/es/components/okr-detail/okr-list/index.js +0 -524
  109. package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
  110. package/es/components/okr-detail/store.js +0 -1
  111. package/es/components/okr-flow/child-node/fields/creator.js +0 -175
  112. package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
  113. package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
  114. package/es/components/okr-flow/child-node/helper.js +0 -35
  115. package/es/components/okr-flow/child-node/index.js +0 -110
  116. package/es/components/okr-flow/child-node/kr-node.js +0 -75
  117. package/es/components/okr-flow/child-node/work-node.js +0 -242
  118. package/es/components/okr-flow/context.js +0 -14
  119. package/es/components/okr-flow/empty/index.js +0 -29
  120. package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
  121. package/es/components/okr-flow/index.js +0 -24
  122. package/es/components/okr-flow/mini-map/index.js +0 -112
  123. package/es/components/okr-flow/mini-map/map.js +0 -145
  124. package/es/components/okr-flow/mini-map/mini-node.js +0 -57
  125. package/es/components/okr-flow/mini-map/utils.js +0 -79
  126. package/es/components/okr-flow/okr-map/index.js +0 -192
  127. package/es/components/okr-flow/open-data/index.js +0 -115
  128. package/es/components/okr-flow/precls.js +0 -8
  129. package/es/components/okr-flow/request-apis.js +0 -118
  130. package/es/components/okr-flow/root-node/index.js +0 -229
  131. package/es/components/okr-flow/utils/config.js +0 -18
  132. package/es/components/okr-flow/utils/helper.js +0 -36
  133. package/es/components/okr-flow/utils/index.js +0 -66
  134. package/es/components/okr-flow/utils/tree-handler.js +0 -323
  135. package/es/components/okr-progress-modal/helper.js +0 -156
  136. package/es/components/okr-progress-modal/request-apis.js +0 -34
  137. package/es/components/okr-share/request-apis.js +0 -56
  138. package/es/components/okrcase-library/server/network.js +0 -407
  139. package/es/components/pagination/locale/en_US.js +0 -22
  140. package/es/components/pagination/locale/zh_CN.js +0 -22
  141. package/es/components/point-demo/drop-down-box/index.js +0 -159
  142. package/es/components/point-demo/index.js +0 -533
  143. package/es/components/point-demo/input/index.js +0 -176
  144. package/es/components/point-demo/point-demo.js +0 -75
  145. package/es/components/point-demo/popup/index.js +0 -113
  146. package/es/components/point-demo/popup/placement.js +0 -44
  147. package/es/components/range-picker-pop/index.js +0 -273
  148. package/es/components/scrollbar/simplebar/helpers.js +0 -59
  149. package/es/components/scrollbar/simplebar/index.js +0 -91
  150. package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
  151. package/es/components/scrollbar/simplebar/simplebar.js +0 -852
  152. package/es/components/scrollbar/simplebar-react.js +0 -163
  153. package/es/components/search-dropdown/index.js +0 -40
  154. package/es/components/search-input/index.js +0 -126
  155. package/es/components/select/Option.js +0 -94
  156. package/es/components/select/index.js +0 -330
  157. package/es/components/selector-input/debounce.js +0 -36
  158. package/es/components/selector-input/index.js +0 -109
  159. package/es/components/slider-input/index.js +0 -119
  160. package/es/components/switch/index.js +0 -39
  161. package/es/components/table/index.js +0 -275
  162. package/es/components/tabs/index.js +0 -63
  163. package/es/components/task-relation-modal/tree-node/index.js +0 -58
  164. package/es/components/tita-chart/charts/img/could.js +0 -8
  165. package/es/components/tooltip/error-tip.js +0 -24
  166. package/es/components/tooltip/index.js +0 -21
  167. package/es/components/tree/index.js +0 -79
  168. package/es/components/tree/precls.js +0 -8
  169. package/es/components/upvote/request-apis.js +0 -45
  170. package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
  171. package/es/components/user-selector/action-btns/btn-ok.js +0 -21
  172. package/es/components/user-selector/action-btns/index.js +0 -27
  173. package/es/components/user-selector/context.js +0 -18
  174. package/es/components/user-selector/empty/group.js +0 -55
  175. package/es/components/user-selector/empty/index.js +0 -28
  176. package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
  177. package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
  178. package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
  179. package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
  180. package/es/components/user-selector/index.js +0 -25
  181. package/es/components/user-selector/layout/index.js +0 -25
  182. package/es/components/user-selector/loading/index.js +0 -18
  183. package/es/components/user-selector/request-apis.js +0 -180
  184. package/es/components/user-selector/searched-panel/index.js +0 -139
  185. package/es/components/user-selector/searched-panel/result-part.js +0 -43
  186. package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
  187. package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
  188. package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
  189. package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
  190. package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
  191. package/es/components/user-selector/utils.js +0 -139
  192. package/es/components/viewer/ImageListRender.js +0 -143
  193. package/es/components/viewer/index.js +0 -168
  194. package/es/components/word-cloud/index.js +0 -109
  195. package/es/components/word-cloud/request-apis.js +0 -26
  196. package/es/components-v1/animate/AnimateChild.js +0 -76
  197. package/es/components-v1/animate/animate.js +0 -148
  198. package/es/components-v1/animate/index.js +0 -13
  199. package/es/components-v1/dom/index.js +0 -30
  200. package/es/components-v1/placement/index.js +0 -13
  201. package/es/components-v1/placement/placement.js +0 -111
  202. package/es/components-v1/placement/placementInner.js +0 -139
  203. package/es/components-v1/pop/Pop.js +0 -246
  204. package/es/components-v1/pop/PopInner.js +0 -163
  205. package/es/components-v1/pop/index.js +0 -13
  206. package/es/components-v1/progress/CircleProgress.js +0 -152
  207. package/es/components-v1/progress/LineProgress.js +0 -83
  208. package/es/components-v1/progress/index.js +0 -80
  209. package/es/components-v1/select/Option.js +0 -94
  210. package/es/components-v1/select/index.js +0 -330
  211. package/es/components-v1/utils/animate/animate.js +0 -103
  212. package/es/components-v1/utils/animate/event.js +0 -79
  213. package/es/components-v1/utils/dom/index.js +0 -30
  214. package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
  215. package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
  216. package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
  217. package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
  218. package/es/components-v1/utils/placement/placement.js +0 -76
  219. package/es/index.js +0 -777
  220. package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
  221. package/es/pages/appointment-demo/index.js +0 -649
  222. package/es/pages/appointment-demo/input/index.js +0 -176
  223. package/es/pages/appointment-demo/popup/index.js +0 -113
  224. package/es/pages/appointment-demo/popup/placement.js +0 -44
  225. package/es/pages/group-management/components/checkbox/index.js +0 -28
  226. package/es/pages/group-management/components/input-form/index.js +0 -174
  227. package/es/pages/group-management/components/radio/index.js +0 -21
  228. package/es/pages/group-management/components/table/index.js +0 -174
  229. package/es/pages/group-management/groupInterface.js +0 -293
  230. package/es/pages/group-management/index.js +0 -13
  231. package/es/pages/group-management/page-view/empty.js +0 -111
  232. package/es/pages/group-management/page-view/group-empty.js +0 -66
  233. package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
  234. package/es/pages/group-management/page-view/index.js +0 -412
  235. package/es/pages/group-management/page-view/loading/index.js +0 -32
  236. package/es/pages/group-management/table/index.js +0 -104
  237. package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
  238. package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
  239. package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
  240. package/es/pages/group-management/tree/group-form/index.js +0 -207
  241. package/es/pages/group-management/tree/index.js +0 -168
  242. package/es/pages/group-management/tree/operation-panel.js +0 -41
  243. package/es/pages/group-management/tree/trigger-render.js +0 -99
  244. package/es/pages/like-ranking/mock.js +0 -366
  245. package/es/pages/okr-map/export-modules/index.js +0 -1
  246. package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
  247. package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
  248. package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
  249. package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
  250. package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
  251. package/es/pages/okr-map/hooks/useStorage.js +0 -96
  252. package/es/pages/okr-map/index.js +0 -18
  253. package/es/pages/okr-map/level2-search/depart.js +0 -53
  254. package/es/pages/okr-map/level2-search/group.js +0 -69
  255. package/es/pages/okr-map/level2-search/index.js +0 -51
  256. package/es/pages/okr-map/level2-search/level2-input.js +0 -46
  257. package/es/pages/okr-map/level2-search/user.js +0 -54
  258. package/es/pages/okr-map/no-okr/index.js +0 -24
  259. package/es/pages/okr-map/number-select/index.js +0 -81
  260. package/es/pages/okr-map/open-data/index.js +0 -115
  261. package/es/pages/okr-map/precls.js +0 -8
  262. package/es/pages/okr-map/request-apis.js +0 -76
  263. package/es/pages/okr-map/share-dialog/index.js +0 -122
  264. package/es/pages/okr-map/unsupport-ie/index.js +0 -83
  265. package/es/pages/okr-map/utils.js +0 -51
  266. package/es/utils/auth.js +0 -294
  267. package/es/utils/bs-global.js +0 -114
  268. package/es/utils/local-storage.js +0 -42
  269. package/es/utils/mblog.js +0 -33
  270. package/es/utils/mock-bsglobal.js +0 -1837
  271. package/es/utils/open-data.js +0 -341
  272. package/es/utils/request-v1.js +0 -115
  273. package/es/utils/request.js +0 -183
  274. package/es/utils/tools.js +0 -286
  275. package/lib/components/picker/components/panels/date-panel/date-body.js +0 -116
  276. package/lib/components/picker/components/panels/date-panel/date-head.js +0 -66
  277. package/lib/components/picker/components/panels/date-panel/index.css +0 -14
  278. package/lib/components/picker/components/panels/date-panel/index.js +0 -49
  279. package/lib/components/picker/components/panels/month-panel/index.css +0 -27
  280. package/lib/components/picker/components/panels/month-panel/index.js +0 -63
  281. package/lib/components/picker/components/panels/month-panel/month-body.js +0 -87
  282. package/lib/components/picker/components/panels/month-panel/month-head.js +0 -47
  283. package/lib/components/picker/components/panels/panel-body/index.js +0 -53
  284. package/lib/components/picker/components/panels/panel-head/index.js +0 -48
  285. package/lib/components/picker/components/panels/year-panel/index.css +0 -23
  286. package/lib/components/picker/components/panels/year-panel/index.js +0 -65
  287. package/lib/components/picker/components/panels/year-panel/year-body.js +0 -92
  288. package/lib/components/picker/components/panels/year-panel/year-head.js +0 -35
  289. package/lib/components/picker/components/picker-trigger/index.css +0 -26
  290. package/lib/components/picker/components/picker-trigger/index.js +0 -85
  291. package/lib/components/picker/context.js +0 -15
  292. package/lib/components/picker/index.css +0 -121
  293. package/lib/components/picker/index.js +0 -13
  294. package/lib/components/picker/picker-panels.js +0 -182
  295. package/lib/components/picker/picker.js +0 -133
  296. package/lib/components/picker/type.js +0 -5
  297. package/lib/components/picker/utils.js +0 -28
  298. package/yarn-error.log +0 -21252
@@ -49,7 +49,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
49
49
  var _super = _createSuper(StrongSchema);
50
50
 
51
51
  function StrongSchema() {
52
- var _temp, _this;
52
+ var _this;
53
53
 
54
54
  _classCallCheck(this, StrongSchema);
55
55
 
@@ -57,7 +57,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
57
57
  args[_key] = arguments[_key];
58
58
  }
59
59
 
60
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.group = 'fontStyle', _this.parseDOM = [{
60
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.group = 'fontStyle', _this.parseDOM = [{
61
61
  tag: "strong"
62
62
  }, {
63
63
  tag: "b",
@@ -69,7 +69,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
69
69
  getAttrs: function getAttrs(value) {
70
70
  return /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null;
71
71
  }
72
- }], _temp));
72
+ }], _assertThisInitialized(_this)));
73
73
  }
74
74
 
75
75
  _createClass(StrongSchema, [{
@@ -90,7 +90,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
90
90
  var _super2 = _createSuper(StrongController);
91
91
 
92
92
  function StrongController() {
93
- var _temp2, _this2;
93
+ var _this2;
94
94
 
95
95
  _classCallCheck(this, StrongController);
96
96
 
@@ -98,7 +98,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
98
98
  args[_key2] = arguments[_key2];
99
99
  }
100
100
 
101
- return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
101
+ return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
102
102
  title: (0, _getLocale.getLocale)('Rtx_Bold'),
103
103
  icon: 'tu-icon-text-blod',
104
104
  handler: function handler(editor) {
@@ -108,7 +108,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
108
108
  active: function active(state) {
109
109
  return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
110
110
  }
111
- }, _temp2));
111
+ }, _assertThisInitialized(_this2)));
112
112
  }
113
113
 
114
114
  return _createClass(StrongController);
@@ -122,7 +122,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
122
122
  var _super3 = _createSuper(StrongPlugin);
123
123
 
124
124
  function StrongPlugin() {
125
- var _temp3, _this3;
125
+ var _this3;
126
126
 
127
127
  _classCallCheck(this, StrongPlugin);
128
128
 
@@ -130,7 +130,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
130
130
  args[_key3] = arguments[_key3];
131
131
  }
132
132
 
133
- return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = StrongSchema, _this3.controller = StrongController, _temp3));
133
+ return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = StrongSchema, _this3.controller = StrongController, _assertThisInitialized(_this3)));
134
134
  }
135
135
 
136
136
  return _createClass(StrongPlugin);
@@ -60,7 +60,7 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
60
60
  var _super = _createSuper(UnderLineSchema);
61
61
 
62
62
  function UnderLineSchema() {
63
- var _temp, _this;
63
+ var _this;
64
64
 
65
65
  _classCallCheck(this, UnderLineSchema);
66
66
 
@@ -68,14 +68,14 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
68
68
  args[_key] = arguments[_key];
69
69
  }
70
70
 
71
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
71
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
72
72
  tag: 'ins'
73
73
  }, {
74
74
  tag: 'u'
75
75
  }, {
76
76
  tag: 'span',
77
77
  getAttrs: getAttrs
78
- }], _temp));
78
+ }], _assertThisInitialized(_this)));
79
79
  }
80
80
 
81
81
  _createClass(UnderLineSchema, [{
@@ -98,7 +98,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
98
98
  var _super2 = _createSuper(UnderLineController);
99
99
 
100
100
  function UnderLineController() {
101
- var _temp2, _this2;
101
+ var _this2;
102
102
 
103
103
  _classCallCheck(this, UnderLineController);
104
104
 
@@ -106,7 +106,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
106
106
  args[_key2] = arguments[_key2];
107
107
  }
108
108
 
109
- return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
109
+ return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
110
110
  title: (0, _getLocale.getLocale)('Rtx_Underline'),
111
111
  icon: 'tu-icon-text-underline',
112
112
  handler: function handler(editor) {
@@ -116,7 +116,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
116
116
  active: function active(state) {
117
117
  return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
118
118
  }
119
- }, _temp2));
119
+ }, _assertThisInitialized(_this2)));
120
120
  }
121
121
 
122
122
  return _createClass(UnderLineController);
@@ -130,7 +130,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
130
130
  var _super3 = _createSuper(UnderLinePlugin);
131
131
 
132
132
  function UnderLinePlugin() {
133
- var _temp3, _this3;
133
+ var _this3;
134
134
 
135
135
  _classCallCheck(this, UnderLinePlugin);
136
136
 
@@ -138,7 +138,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
138
138
  args[_key3] = arguments[_key3];
139
139
  }
140
140
 
141
- return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _temp3));
141
+ return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _assertThisInitialized(_this3)));
142
142
  }
143
143
 
144
144
  return _createClass(UnderLinePlugin);
@@ -55,7 +55,7 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
55
55
  var _super = _createSuper(PortalProviderAPI);
56
56
 
57
57
  function PortalProviderAPI() {
58
- var _temp, _this;
58
+ var _this;
59
59
 
60
60
  _classCallCheck(this, PortalProviderAPI);
61
61
 
@@ -63,9 +63,9 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
63
63
  args[_key] = arguments[_key];
64
64
  }
65
65
 
66
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
66
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
67
67
  _this.context = context;
68
- }, _temp));
68
+ }, _assertThisInitialized(_this)));
69
69
  }
70
70
 
71
71
  _createClass(PortalProviderAPI, [{
@@ -53,7 +53,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
53
53
  var _super = _createSuper(EditorPopup);
54
54
 
55
55
  function EditorPopup() {
56
- var _temp, _this;
56
+ var _this;
57
57
 
58
58
  _classCallCheck(this, EditorPopup);
59
59
 
@@ -61,7 +61,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
61
61
  args[_key] = arguments[_key];
62
62
  }
63
63
 
64
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
64
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
65
65
  overflowScrollParent: false,
66
66
  validPosition: true
67
67
  }, _this.placement = ['', ''], _this.handleRef = function (popup) {
@@ -74,7 +74,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
74
74
  return _this.updatePosition(props);
75
75
  }), _this.onResize = function () {
76
76
  return _this.scheduledUpdatePosition();
77
- }, _temp));
77
+ }, _assertThisInitialized(_this)));
78
78
  }
79
79
 
80
80
  _createClass(EditorPopup, [{
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
47
47
  var _super = _createSuper(Option);
48
48
 
49
49
  function Option() {
50
- var _temp, _this;
50
+ var _this;
51
51
 
52
52
  _classCallCheck(this, Option);
53
53
 
@@ -55,7 +55,7 @@ var Option = /*#__PURE__*/function (_Component) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
58
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
59
59
  e.stopPropagation();
60
60
  e.nativeEvent.stopImmediatePropagation();
61
61
  var onSelect = _this.props.onSelect;
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
65
65
  height: _this.props.height,
66
66
  lineHeight: _this.props.height
67
67
  };
68
- }, _temp));
68
+ }, _assertThisInitialized(_this)));
69
69
  }
70
70
 
71
71
  _createClass(Option, [{
@@ -37,7 +37,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
37
37
  var _super = _createSuper(ErrorBoundary);
38
38
 
39
39
  function ErrorBoundary() {
40
- var _temp, _this;
40
+ var _this;
41
41
 
42
42
  _classCallCheck(this, ErrorBoundary);
43
43
 
@@ -45,7 +45,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
45
45
  args[_key] = arguments[_key];
46
46
  }
47
47
 
48
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
48
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
49
49
  hasError: false
50
50
  }, _this.renderError = function (e) {
51
51
  var errorTemplate = _this.props.errorTemplate;
@@ -55,7 +55,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
55
55
  // fallback
56
56
  return errorTemplate && typeof errorTemplate === "function" ? errorTemplate(e) : /*#__PURE__*/_react["default"].createElement("h5", null, "\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A", e.message);
57
57
  }
58
- }, _temp));
58
+ }, _assertThisInitialized(_this)));
59
59
  }
60
60
 
61
61
  _createClass(ErrorBoundary, [{
@@ -45,7 +45,7 @@ var AnimateChild = /*#__PURE__*/function (_Component) {
45
45
  var _super = _createSuper(AnimateChild);
46
46
 
47
47
  function AnimateChild() {
48
- var _temp, _this;
48
+ var _this;
49
49
 
50
50
  _classCallCheck(this, AnimateChild);
51
51
 
@@ -53,14 +53,14 @@ var AnimateChild = /*#__PURE__*/function (_Component) {
53
53
  args[_key] = arguments[_key];
54
54
  }
55
55
 
56
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.componentWillEnter = function (done) {
56
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.componentWillEnter = function (done) {
57
57
  _this.transition("enter", done);
58
58
  }, _this.componentWillLeave = function (done) {
59
59
  _this.transition("leave", done);
60
60
  }, _this.transition = function (animationType, done) {
61
61
  var name = _typeof(_this.props.transitionName) === "object" ? _this.props.transitionName[animationType] : "".concat(_this.props.transitionName, "-").concat(animationType);
62
62
  (0, _animate["default"])((0, _reactDom.findDOMNode)(_assertThisInitialized(_this)), name, done);
63
- }, _temp));
63
+ }, _assertThisInitialized(_this)));
64
64
  }
65
65
 
66
66
  _createClass(AnimateChild, [{
@@ -45,7 +45,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
45
45
  var _super = _createSuper(Avatar);
46
46
 
47
47
  function Avatar() {
48
- var _temp, _this;
48
+ var _this;
49
49
 
50
50
  _classCallCheck(this, Avatar);
51
51
 
@@ -53,7 +53,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
53
53
  args[_key] = arguments[_key];
54
54
  }
55
55
 
56
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.renderImgAvatar = function () {
56
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.renderImgAvatar = function () {
57
57
  var src = _this.props.src;
58
58
  return /*#__PURE__*/_react["default"].createElement("img", {
59
59
  style: {
@@ -103,7 +103,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
103
103
  height: size.width,
104
104
  background: color
105
105
  }, cuttedName);
106
- }, _temp));
106
+ }, _assertThisInitialized(_this)));
107
107
  }
108
108
 
109
109
  _createClass(Avatar, [{
@@ -47,7 +47,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
47
47
  var _super = _createSuper(StatelessDropdown);
48
48
 
49
49
  function StatelessDropdown() {
50
- var _temp, _this;
50
+ var _this;
51
51
 
52
52
  _classCallCheck(this, StatelessDropdown);
53
53
 
@@ -55,7 +55,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.renderLabel = function () {
58
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.renderLabel = function () {
59
59
  if (_this.props.labelText) {
60
60
  return /*#__PURE__*/_react["default"].createElement("span", {
61
61
  className: "drop-down-label"
@@ -63,7 +63,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
63
63
  }
64
64
 
65
65
  return "";
66
- }, _temp));
66
+ }, _assertThisInitialized(_this)));
67
67
  }
68
68
 
69
69
  _createClass(StatelessDropdown, [{
@@ -41,7 +41,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
41
41
  var _super = _createSuper(CircleProgress);
42
42
 
43
43
  function CircleProgress() {
44
- var _temp, _this;
44
+ var _this;
45
45
 
46
46
  _classCallCheck(this, CircleProgress);
47
47
 
@@ -49,7 +49,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
49
49
  args[_key] = arguments[_key];
50
50
  }
51
51
 
52
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.getTextContent = function () {
52
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getTextContent = function () {
53
53
  var _this$props = _this.props,
54
54
  formatText = _this$props.formatText,
55
55
  percent = _this$props.percent;
@@ -59,7 +59,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
59
59
  }
60
60
 
61
61
  return percent + getLocale("OKR_MyO_Pop_Upd_Percentage");
62
- }, _temp));
62
+ }, _assertThisInitialized(_this)));
63
63
  }
64
64
 
65
65
  _createClass(CircleProgress, [{
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
47
47
  var _super = _createSuper(Option);
48
48
 
49
49
  function Option() {
50
- var _temp, _this;
50
+ var _this;
51
51
 
52
52
  _classCallCheck(this, Option);
53
53
 
@@ -55,7 +55,7 @@ var Option = /*#__PURE__*/function (_Component) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
58
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
59
59
  e.stopPropagation();
60
60
  e.nativeEvent.stopImmediatePropagation();
61
61
  var onSelect = _this.props.onSelect;
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
65
65
  height: _this.props.height,
66
66
  lineHeight: _this.props.height
67
67
  };
68
- }, _temp));
68
+ }, _assertThisInitialized(_this)));
69
69
  }
70
70
 
71
71
  _createClass(Option, [{
@@ -52,7 +52,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
52
52
  var _super = _createSuper(UserSelectorPop);
53
53
 
54
54
  function UserSelectorPop() {
55
- var _temp, _this;
55
+ var _this;
56
56
 
57
57
  _classCallCheck(this, UserSelectorPop);
58
58
 
@@ -60,7 +60,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
60
60
  args[_key] = arguments[_key];
61
61
  }
62
62
 
63
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function (e) {
63
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function (e) {
64
64
  if (_this.props.stopPropagation && !!e) {
65
65
  e.stopPropagation();
66
66
  e.nativeEvent.stopImmediatePropagation();
@@ -74,7 +74,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
74
74
  }, _this.show = function (el) {
75
75
  // @ts-ignore
76
76
  _this.refs.pop.show(el);
77
- }, _temp));
77
+ }, _assertThisInitialized(_this)));
78
78
  }
79
79
 
80
80
  _createClass(UserSelectorPop, [{
@@ -61,7 +61,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
61
61
  var _super = _createSuper(MutiMode);
62
62
 
63
63
  function MutiMode() {
64
- var _temp, _this;
64
+ var _this;
65
65
 
66
66
  _classCallCheck(this, MutiMode);
67
67
 
@@ -69,7 +69,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
69
69
  args[_key] = arguments[_key];
70
70
  }
71
71
 
72
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleDepartment = function (d) {
72
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleDepartment = function (d) {
73
73
  var _this$props = _this.props,
74
74
  selectedDept = _this$props.selectedDept,
75
75
  onSelectDept = _this$props.onSelectDept;
@@ -90,7 +90,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
90
90
  });
91
91
  if (!filterdUsers.length) return;
92
92
  onSelectUser(filterdUsers);
93
- }, _temp));
93
+ }, _assertThisInitialized(_this)));
94
94
  }
95
95
 
96
96
  _createClass(MutiMode, [{
@@ -47,7 +47,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
47
47
  var _super = _createSuper(UserItem);
48
48
 
49
49
  function UserItem() {
50
- var _temp, _this;
50
+ var _this;
51
51
 
52
52
  _classCallCheck(this, UserItem);
53
53
 
@@ -55,7 +55,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleClick = function () {
58
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleClick = function () {
59
59
  var _this$props = _this.props,
60
60
  onClick = _this$props.onClick,
61
61
  user = _this$props.user;
@@ -71,7 +71,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
71
71
  }
72
72
  }, keyword)];
73
73
  }));
74
- }, _temp));
74
+ }, _assertThisInitialized(_this)));
75
75
  }
76
76
 
77
77
  _createClass(UserItem, [{
package/lib/index.js CHANGED
@@ -357,12 +357,6 @@ Object.defineProperty(exports, "PhotoCard", {
357
357
  return _photoCard["default"];
358
358
  }
359
359
  });
360
- Object.defineProperty(exports, "Picker", {
361
- enumerable: true,
362
- get: function get() {
363
- return _picker["default"];
364
- }
365
- });
366
360
  Object.defineProperty(exports, "PointDemo", {
367
361
  enumerable: true,
368
362
  get: function get() {
@@ -772,6 +766,4 @@ var _videoModal = _interopRequireDefault(require("./components/video-modal"));
772
766
 
773
767
  var _supersetCharts = _interopRequireDefault(require("./components/superset-charts"));
774
768
 
775
- var _picker = _interopRequireDefault(require("./components/picker"));
776
-
777
769
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _index = _interopRequireDefault(require("./index"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
- 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; }
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
- function TimeCascader(_ref) {
23
- var restProps = _extends({}, _ref);
24
-
25
- return /*#__PURE__*/_react["default"].createElement(_index["default"], _extends({
26
- popupClassName: " titaui-cascader-time-popup"
27
- }, restProps));
28
- }
29
-
30
- var _default = TimeCascader;
31
- exports["default"] = _default;
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.uploadBase64 = exports.getImageBase64ByUrl = exports.getBase64DownloadUrl = exports.addShare = void 0;
7
-
8
- var _axios = _interopRequireDefault(require("axios"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
13
- var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
14
-
15
- var requestDomain = function requestDomain() {
16
- if (!window.location.hostname.match(/dev/)) return "";
17
- return "http://www.tita.gift";
18
- };
19
-
20
- var getImageBase64ByUrl = function getImageBase64ByUrl(toUserId) {
21
- return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/okr/share/getBase64Str"), {
22
- toUserId: toUserId
23
- }).then(function (getBase64Str) {
24
- return getBase64Str.data;
25
- });
26
- };
27
-
28
- exports.getImageBase64ByUrl = getImageBase64ByUrl;
29
-
30
- var getBase64DownloadUrl = function getBase64DownloadUrl(base64) {
31
- return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/okr/share/imageDownLoadDfs"), {
32
- SharePicLink: base64
33
- }).then(function (dfs) {
34
- return dfs.data;
35
- });
36
- };
37
-
38
- exports.getBase64DownloadUrl = getBase64DownloadUrl;
39
-
40
- var uploadBase64 = function uploadBase64(base64) {
41
- return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/okr/share/imagedfs"), {
42
- SharePicLink: base64
43
- }).then(function (dfs) {
44
- return dfs.data;
45
- });
46
- };
47
-
48
- exports.uploadBase64 = uploadBase64;
49
-
50
- var addShare = function addShare(data) {
51
- return _axios["default"].post("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/user/feed/AddShare"), data).then(function (dfs) {
52
- return dfs.data;
53
- });
54
- };
55
-
56
- exports.addShare = addShare;
@@ -1,66 +0,0 @@
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
- require("./index.scss");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- function Heart(_ref) {
15
- var con = _ref.con,
16
- i = _ref.i,
17
- confidence = _ref.confidence;
18
- var fill1 = "#F69E17";
19
- var fill2 = "#E3E6E8";
20
- var fill3 = "#F8F8F8";
21
- var fill = "";
22
- var item = [];
23
- var confidenceIndex = 0;
24
-
25
- if (confidence == 0) {
26
- confidenceIndex = 5;
27
- } else {
28
- confidenceIndex = confidence;
29
- }
30
-
31
- for (var index = 0; index < 10; index++) {
32
- if (con == "true") {
33
- if (index < confidenceIndex) {
34
- fill = fill1;
35
- } else fill = fill2;
36
- } else if (index < i && i != confidenceIndex) fill = fill2;else if (index < i && i == confidenceIndex) fill = fill1;else fill = fill3;
37
-
38
- if (index % 2 == 0) {
39
- item.push( /*#__PURE__*/_react["default"].createElement("svg", {
40
- width: "8px",
41
- height: "16px"
42
- }, /*#__PURE__*/_react["default"].createElement("path", {
43
- d: "M8.49990233,2.27708832 C8.02421795,1.56919071 7.03146287,0.426082896 5.42425753,0.0894335405 C5.14104532,0.030070613 4.84684102,0 4.54975959,0 C3.37788514,0 2.2348557,0.466200631 1.4136952,1.27902699 C0.732554704,1.95331626 -0.0649248561,3.19618775 0.00419987544,5.2881826 C0.138686946,9.36568695 5.56014628,13.8041802 8.33052092,14.9609436 C8.3813501,14.9859906 8.43874502,15 8.49901706,15 L8.50093515,15 C8.50145155,15 8.50204173,15 8.50241059,15",
44
- id: "left",
45
- fill: fill
46
- })));
47
- } else {
48
- item.push( /*#__PURE__*/_react["default"].createElement("svg", {
49
- width: "8px",
50
- height: "16px",
51
- style: {
52
- transform: "scaleX(1.1)"
53
- }
54
- }, /*#__PURE__*/_react["default"].createElement("path", {
55
- d: "M0,15 L0.00191808214,15 C0.00243448894,15 0.00302466802,15 0.00339352993,15 C0.0672066492,15 0.127183604,14.984434 0.17948823,14.9571936 C2.95274,13.7944868 8.36246952,9.36115867 8.49680904,5.28825336 C8.56571246,3.19625851 7.7682329,1.95338701 7.08701863,1.27909774 C6.26585813,0.466200631 5.12282869,0 3.95110178,0 C3.65402036,0 3.35974229,0.0300706128 3.07660384,0.0894335405 C1.46939851,0.426082896 0.476643426,1.56919071 0.000885268706,2.27708832",
56
- id: "right",
57
- fill: fill
58
- })));
59
- }
60
- }
61
-
62
- return /*#__PURE__*/_react["default"].createElement("div", null, item);
63
- }
64
-
65
- var _default = Heart;
66
- exports["default"] = _default;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.OkrFieldVisibility = exports.OkrFieldType = void 0;
7
-
8
- var _okrVisibilityDetail = _interopRequireDefault(require("./okr-visibility-detail"));
9
-
10
- var _okrTypeDetail = _interopRequireDefault(require("./okr-type-detail"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- var OkrFieldVisibility = _okrVisibilityDetail["default"];
15
- exports.OkrFieldVisibility = OkrFieldVisibility;
16
- var OkrFieldType = _okrTypeDetail["default"];
17
- exports.OkrFieldType = OkrFieldType;