@titaui/pc 1.13.2-beta.15 → 1.13.2-beta.16

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 (180) hide show
  1. package/lib/components/change-okr-modal/index.js +1 -1
  2. package/lib/components/checkbox-list/index.css +31 -0
  3. package/lib/components/checkbox-list/index.js +68 -0
  4. package/lib/components/common-share/publishMblog.js +1 -1
  5. package/lib/components/create-okr-modal/fields/okr-type-detail.js +1 -1
  6. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +1 -1
  7. package/lib/components/create-okr-modal/index.js +5 -2
  8. package/lib/components/create-okr-modal/request-api.js +1 -1
  9. package/lib/components/create-okr-modal/utils/helper.js +1 -1
  10. package/lib/components/date-picker/BodyItem.js +3 -3
  11. package/lib/components/date-picker/CalendarHeader.js +3 -3
  12. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  13. package/lib/components/dialog-qq-docs/index.css +106 -0
  14. package/lib/components/dialog-qq-docs/index.js +501 -0
  15. package/lib/components/dialog-qq-docs/request-apis.js +16 -0
  16. package/lib/components/dialog-qq-docs/utils.js +83 -0
  17. package/lib/components/dialog-select/index.css +9 -0
  18. package/lib/components/dialog-select/index.js +48 -0
  19. package/lib/components/dialog-upload/img/folder.svg +40 -0
  20. package/lib/components/dialog-upload/img/form.svg +38 -0
  21. package/lib/components/dialog-upload/img/mind.svg +39 -0
  22. package/lib/components/dialog-upload/index.js +1 -1
  23. package/lib/components/dialog-upload/util.js +19 -1
  24. package/lib/components/dialog-upload-type/assets/folder.svg +20 -0
  25. package/lib/components/dialog-upload-type/assets/qq-docs.svg +20 -0
  26. package/lib/components/dialog-upload-type/components/upload-type-item/index.css +14 -0
  27. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +36 -0
  28. package/lib/components/dialog-upload-type/index.css +7 -0
  29. package/lib/components/dialog-upload-type/index.js +75 -0
  30. package/lib/components/drawer-manager/drawerWrapper.js +1 -1
  31. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +2 -3
  32. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +1 -1
  33. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +1 -5
  34. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +1 -1
  35. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -12
  36. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +2 -13
  37. package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +2 -2
  38. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +1 -16
  39. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +9 -51
  40. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +10 -27
  41. package/lib/components/dynamic/dynamic-item/index.js +3 -23
  42. package/lib/components/dynamic/request-api.js +2 -9
  43. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  44. package/lib/components/emotions-selector/selector-pop.js +3 -3
  45. package/lib/components/ereport-list/index.js +3 -3
  46. package/lib/components/file-list/components/single-file/index.css +29 -0
  47. package/lib/components/file-list/components/single-file/index.js +18 -28
  48. package/lib/components/file-list/index.js +2 -1
  49. package/lib/components/file-preview/index.css +43 -0
  50. package/lib/components/file-preview/index.js +68 -0
  51. package/lib/components/firework/index.js +1 -1
  52. package/lib/components/form/form-fields/input-verification-code/index.js +1 -1
  53. package/lib/components/grid-layout/util/network.js +1 -1
  54. package/lib/components/import-modal/tree/okr-tree/index.js +1 -1
  55. package/lib/components/loading/assets/loading.gif +0 -0
  56. package/lib/components/loading/index.css +28 -0
  57. package/lib/components/loading/index.js +64 -0
  58. package/lib/components/mblog/components/MblogAction.js +3 -3
  59. package/lib/components/nav/index.css +37 -0
  60. package/lib/components/nav/index.js +31 -0
  61. package/lib/components/nav-top/components/app-center/index.js +6 -1
  62. package/lib/components/nav-top/components/menu/index.js +44 -14
  63. package/lib/components/nav-top/index.css +6 -0
  64. package/lib/components/nav-top/index.js +138 -2
  65. package/lib/components/nav-top/request.apis.js +10 -2
  66. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -1
  67. package/lib/components/okr-detail/components/ao-nice/index.js +1 -1
  68. package/lib/components/okr-detail/components/header/edit-name.js +1 -1
  69. package/lib/components/okr-detail/components/header/o-avatar.js +1 -1
  70. package/lib/components/okr-detail/components/header/o-classify.js +1 -1
  71. package/lib/components/okr-detail/components/o-classify.js +1 -1
  72. package/lib/components/okr-detail/components/o-progress-update/index.js +1 -1
  73. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
  74. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +1 -1
  75. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +1 -1
  76. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
  77. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  78. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +1 -1
  79. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +1 -1
  80. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +1 -1
  81. package/lib/components/okr-detail/detail-footer/index.js +1 -1
  82. package/lib/components/okr-detail/detail-header/index.js +1 -1
  83. package/lib/components/okr-detail/okr-list/index.js +1 -1
  84. package/lib/components/okr-detail/request-apis.js +1 -1
  85. package/lib/components/okr-detail/schedule/components/kr-progress/index.js +4 -1
  86. package/lib/components/okr-flow/child-node/fields/creator.js +1 -1
  87. package/lib/components/okr-flow/child-node/work-node.js +1 -1
  88. package/lib/components/okr-flow/export-modal/index.js +40 -1
  89. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +1 -1
  90. package/lib/components/okr-flow/request-apis.js +1 -1
  91. package/lib/components/okr-flow/root-node/index.js +1 -1
  92. package/lib/components/okr-guide/constant.js +23 -0
  93. package/lib/components/okr-guide/img/left-img.jpg +0 -0
  94. package/lib/components/okr-guide/index.css +148 -0
  95. package/lib/components/okr-guide/index.js +244 -0
  96. package/lib/components/okr-guide/request-api.js +57 -0
  97. package/lib/components/okr-progress/components/o-progress-update/index.js +1 -1
  98. package/lib/components/okr-progress-modal/index.js +1 -1
  99. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +2 -2
  100. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  101. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  102. package/lib/components/okr-share/common-painter/darwAvatar.js +1 -1
  103. package/lib/components/okr-share/common-painter/openDataPainter.js +1 -1
  104. package/lib/components/okr-share/common-painter/utils.js +1 -1
  105. package/lib/components/okr-share/pink-card/drawDepartmentName.js +1 -1
  106. package/lib/components/okr-share/pink-card/drawKrs.js +1 -1
  107. package/lib/components/okr-share/pink-card/drawQuote.js +1 -1
  108. package/lib/components/okr-share/pink-card/drawUserName.js +1 -1
  109. package/lib/components/okr-share/pink-card/index.js +1 -1
  110. package/lib/components/okr-share/publishMblog.js +1 -1
  111. package/lib/components/okr-share/shareCardSelector.js +1 -1
  112. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +3 -1
  113. package/lib/components/okrcase-library/server/network.js +1 -1
  114. package/lib/components/open-data-painter/index.js +1 -1
  115. package/lib/components/period-selector/helper/index.js +1 -1
  116. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  117. package/lib/components/rich-editor/models/schema.js +6 -6
  118. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  119. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  120. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  121. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  122. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  123. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  124. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  125. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  126. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  127. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  128. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  129. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  130. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  131. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  132. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  133. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  134. package/lib/components/rich-editor-at/index.js +13 -85
  135. package/lib/components/scroll-container/index.js +27 -6
  136. package/lib/components/search-input/index.css +2 -2
  137. package/lib/components/search-input/index.js +4 -0
  138. package/lib/components/select/Option.js +3 -3
  139. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +1 -1
  140. package/lib/components/superset-charts/fetch-assets-and-append/index.js +1 -1
  141. package/lib/components/survey-model/request-api.js +1 -1
  142. package/lib/components/task-relation-modal/index.js +1 -1
  143. package/lib/components/task-relation-modal/tree/category-tree/index.js +1 -1
  144. package/lib/components/task-relation-modal/tree/okr-tree/index.js +1 -1
  145. package/lib/components/task-relation-modal/tree/work-tree/index.js +1 -1
  146. package/lib/components/task-relation-modal/work-relation/index.js +1 -1
  147. package/lib/components/task-tree/task-item-node/e-project.js +1 -1
  148. package/lib/components/task-tree/task-item-node/e-task.js +1 -1
  149. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  150. package/lib/components/toast/index.js +1 -1
  151. package/lib/components/upload/index.js +257 -455
  152. package/lib/components/upload/upload.js +555 -0
  153. package/lib/components/upvote/index.js +1 -1
  154. package/lib/components/version-change-modal/index.js +2 -4
  155. package/lib/components/version-change-modal/request-api.js +1 -1
  156. package/lib/components/weekly-report/card.js +11 -1
  157. package/lib/components/weekly-report/common-painter/darwAvatar.js +1 -1
  158. package/lib/components/weekly-report/common-painter/drawName.js +1 -1
  159. package/lib/components/weekly-report/common-painter/openDataPainter.js +1 -1
  160. package/lib/components/weekly-report/index.js +1 -1
  161. package/lib/components-v1/animate/AnimateChild.js +3 -3
  162. package/lib/components-v1/avatar/index.js +3 -3
  163. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  164. package/lib/components-v1/progress/CircleProgress.js +3 -3
  165. package/lib/components-v1/select/Option.js +3 -3
  166. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  167. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  168. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  169. package/lib/index.js +8 -0
  170. package/lib/pages/group-management/groupInterface.js +1 -1
  171. package/lib/pages/new-okr-list/request-api.js +1 -1
  172. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
  173. package/lib/pages/okr-map/request-apis.js +1 -1
  174. package/lib/utils/open-data.js +78 -69
  175. package/lib/utils/request-v1.js +1 -1
  176. package/lib/utils/request.js +1 -1
  177. package/lib/utils/tools.js +11 -1
  178. package/package.json +2 -2
  179. package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +0 -56
  180. package/lib/utils/mock-bsglobal.js +0 -1837
@@ -35,7 +35,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
35
35
 
36
36
  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; }
37
37
 
38
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
38
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
39
39
 
40
40
  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); } }
41
41
 
@@ -27,11 +27,7 @@ var Schedule = function Schedule(_ref) {
27
27
  className: "".concat(prefix, "__content")
28
28
  }, /*#__PURE__*/_react["default"].createElement("div", {
29
29
  className: "".concat(prefix, "__content-text")
30
- }, /*#__PURE__*/_react["default"].createElement("span", {
31
- dangerouslySetInnerHTML: {
32
- __html: value
33
- }
34
- }))), !value && /*#__PURE__*/_react["default"].createElement("div", {
30
+ }, value)), !value && /*#__PURE__*/_react["default"].createElement("div", {
35
31
  className: "".concat(prefix, "__no-progress")
36
32
  }, "-")));
37
33
  };
@@ -55,7 +55,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
55
55
 
56
56
  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; }
57
57
 
58
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
58
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
59
59
 
60
60
  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); } }
61
61
 
@@ -20,18 +20,6 @@
20
20
  margin-top: 4px;
21
21
  }
22
22
 
23
- .titaui-dynamic-summary-table-row-okr__common-time {
24
- white-space: nowrap;
25
- padding: 1px 8px;
26
- background-color: rgba(40, 121, 255, 0.16);
27
- border-radius: 12px;
28
- font-size: 12px;
29
- font-weight: 400;
30
- color: #3F4755;
31
- line-height: 18px;
32
- margin-left: 4px;
33
- }
34
-
35
23
  .titaui-dynamic-summary-table-row-okr__kr {
36
24
  margin-left: 24px;
37
25
  overflow: hidden;
@@ -13,8 +13,6 @@ var _scrollbar = _interopRequireDefault(require("../../../../scrollbar"));
13
13
 
14
14
  var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
15
15
 
16
- var _utils = require("./utils");
17
-
18
16
  var _openData = require("../../../../../utils/open-data");
19
17
 
20
18
  require("./index.css");
@@ -31,8 +29,7 @@ var TableRowOKR = function TableRowOKR(_ref) {
31
29
  _ref$isFirstLevel = _ref.isFirstLevel,
32
30
  isFirstLevel = _ref$isFirstLevel === void 0 ? true : _ref$isFirstLevel,
33
31
  _ref$order = _ref.order,
34
- order = _ref$order === void 0 ? 1 : _ref$order,
35
- data = _ref.data;
32
+ order = _ref$order === void 0 ? 1 : _ref$order;
36
33
 
37
34
  var handleClickTitle = function handleClickTitle() {
38
35
  if (isO) {
@@ -57,15 +54,7 @@ var TableRowOKR = function TableRowOKR(_ref) {
57
54
  onClick: handleClickTitle
58
55
  }, /*#__PURE__*/_react["default"].createElement("i", {
59
56
  className: "tu-icon-H5-".concat(isO ? "O" : "KR", "-s ").concat(prefix, "__common-icon")
60
- }), /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement("span", null, (0, _openData.parseString)(text)), isO && /*#__PURE__*/_react["default"].createElement("span", {
61
- className: "".concat(prefix, "__common-time")
62
- }, (0, _utils.formatPeriod)({
63
- annualNum: data.AnnualNum,
64
- yqmNum: data.YqmNum,
65
- cycleType: data.CycleType,
66
- startDate: data.StartDate,
67
- endDate: data.EndDate
68
- })))), !isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
57
+ }), /*#__PURE__*/_react["default"].createElement("span", null, (0, _openData.parseString)(text))), !isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
69
58
  className: (0, _classnames["default"])("".concat(prefix, "__kr")),
70
59
  onClick: handleClickTitle
71
60
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -36,7 +36,7 @@ var RenderRow = function RenderRow(_ref) {
36
36
 
37
37
  var render = function render() {
38
38
  if (item.IsImport) {
39
- var _item$LastRichContent;
39
+ var _item$LastContent;
40
40
 
41
41
  return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
42
42
  className: "".concat(prefix, "__table-row-title"),
@@ -58,7 +58,7 @@ var RenderRow = function RenderRow(_ref) {
58
58
  value: item.Progress,
59
59
  editable: false
60
60
  })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
61
- value: (item === null || item === void 0 ? void 0 : (_item$LastRichContent = item.LastRichContent) === null || _item$LastRichContent === void 0 ? void 0 : _item$LastRichContent.trim()) || "",
61
+ value: (item === null || item === void 0 ? void 0 : (_item$LastContent = item.LastContent) === null || _item$LastContent === void 0 ? void 0 : _item$LastContent.trim()) || "",
62
62
  editable: false,
63
63
  id: item.Id
64
64
  })));
@@ -27,12 +27,11 @@
27
27
  height: 32px;
28
28
  background: #f0f4fa;
29
29
  border-radius: 16px;
30
- padding: 5px 12px 5px 4px;
30
+ padding: 5px 8px 5px 4px;
31
31
  box-sizing: border-box;
32
32
  font-size: 14px;
33
33
  color: #3f4755;
34
34
  line-height: 22px;
35
- position: relative;
36
35
  }
37
36
 
38
37
  .titaui-dynamic-summary__remind-view__user-avatar {
@@ -42,17 +41,3 @@
42
41
  .titaui-dynamic-summary__remind-view__user-name {
43
42
  margin-left: 6px;
44
43
  }
45
-
46
- .titaui-dynamic-summary__remind-view__user-name-icon {
47
- position: absolute;
48
- right: 6px;
49
- top: 8px;
50
- width: 5px;
51
- height: 5px;
52
- border-radius: 50%;
53
- background-color: #A4ACB9;
54
- }
55
-
56
- .titaui-dynamic-summary__remind-view__user-name .hasRead {
57
- background-color: #5AD8A6;
58
- }
@@ -20,70 +20,28 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
20
20
  var preCls = 'titaui-dynamic-summary__remind-view';
21
21
 
22
22
  var RemindUserView = function RemindUserView(props) {
23
- var data = props.data,
24
- curAtUser = props.curAtUser;
25
-
26
- var _ref = data || {},
27
- _ref$Departments = _ref.Departments,
28
- Departments = _ref$Departments === void 0 ? [] : _ref$Departments,
29
- _ref$Groups = _ref.Groups,
30
- Groups = _ref$Groups === void 0 ? [] : _ref$Groups,
31
- _ref$Users = _ref.Users,
32
- Users = _ref$Users === void 0 ? [] : _ref$Users;
33
-
34
- if (!data || !Departments.length && !Groups.length && !Users.length) return null;
23
+ var data = props.data;
24
+ if (!data || !data.length) return null;
35
25
  return /*#__PURE__*/_react["default"].createElement("div", {
36
26
  className: preCls
37
27
  }, /*#__PURE__*/_react["default"].createElement("div", {
38
28
  className: "".concat(preCls, "__title")
39
- }, (0, _getLocale.getLocale)("OKR_MyO_himher")), /*#__PURE__*/_react["default"].createElement("div", {
29
+ }, (0, _getLocale.getLocale)('OKR_MyO_himher')), /*#__PURE__*/_react["default"].createElement("div", {
40
30
  className: "".concat(preCls, "__list")
41
- }, Users === null || Users === void 0 ? void 0 : Users.map(function (item) {
42
- return /*#__PURE__*/_react["default"].createElement("div", {
43
- className: "".concat(preCls, "__user")
44
- }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
45
- userId: item.User.UserId,
46
- name: item.User.Name,
47
- src: item.User.Avatar.Medium,
48
- color: item.User.Avatar.Color
49
- }), /*#__PURE__*/_react["default"].createElement("span", {
50
- className: "".concat(preCls, "__user-name")
51
- }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
52
- name: item.User.Name,
53
- id: item.User.UserId
54
- }), /*#__PURE__*/_react["default"].createElement("i", {
55
- className: "".concat(preCls, "__user-name-icon ").concat((item.User.UserId === curAtUser || item.HasRead) && "hasRead")
56
- })));
57
- }), Departments === null || Departments === void 0 ? void 0 : Departments.map(function (item) {
58
- return /*#__PURE__*/_react["default"].createElement("div", {
59
- className: "".concat(preCls, "__user")
60
- }, /*#__PURE__*/_react["default"].createElement("span", {
61
- className: "".concat(preCls, "__user-departments")
62
- }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
63
- userId: item.Id,
64
- name: item === null || item === void 0 ? void 0 : item.Name,
65
- color: "#3296fa"
66
- }), /*#__PURE__*/_react["default"].createElement("span", {
67
- className: "".concat(preCls, "__user-name")
68
- }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
69
- name: item === null || item === void 0 ? void 0 : item.Name,
70
- id: item.Id
71
- }))));
72
- }), Groups === null || Groups === void 0 ? void 0 : Groups.map(function (item) {
31
+ }, data.map(function (item) {
73
32
  return /*#__PURE__*/_react["default"].createElement("div", {
74
33
  className: "".concat(preCls, "__user")
75
- }, /*#__PURE__*/_react["default"].createElement("span", {
76
- className: "".concat(preCls, "__user-groups")
77
34
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
78
- userId: item.id,
35
+ userId: item.userId,
79
36
  name: item.name,
80
- color: "rgb(90, 216, 166)"
37
+ src: item.avatar.medium,
38
+ color: item.avatar.color
81
39
  }), /*#__PURE__*/_react["default"].createElement("span", {
82
40
  className: "".concat(preCls, "__user-name")
83
41
  }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
84
42
  name: item.name,
85
- id: item.id
86
- }))));
43
+ id: item.userId
44
+ })));
87
45
  })));
88
46
  };
89
47
 
@@ -98,7 +98,6 @@ var DynamicReply = function DynamicReply(_ref) {
98
98
  attachments = data.attachments,
99
99
  evaluates = data.evaluates,
100
100
  canEvaluate = data.canEvaluate;
101
- var curAtUser = restProps.curAtUser;
102
101
  var files = (0, _util.formatAttachments)(attachments);
103
102
 
104
103
  var _useState = (0, _react.useState)(),
@@ -106,20 +105,15 @@ var DynamicReply = function DynamicReply(_ref) {
106
105
  motionValue = _useState2[0],
107
106
  setMotionValue = _useState2[1];
108
107
 
109
- var _useState3 = (0, _react.useState)(null),
108
+ var _useState3 = (0, _react.useState)(false),
110
109
  _useState4 = _slicedToArray(_useState3, 2),
111
- atValue = _useState4[0],
112
- setAtValue = _useState4[1];
110
+ showDelete = _useState4[0],
111
+ setShowDelete = _useState4[1];
113
112
 
114
113
  var _useState5 = (0, _react.useState)(false),
115
114
  _useState6 = _slicedToArray(_useState5, 2),
116
- showDelete = _useState6[0],
117
- setShowDelete = _useState6[1];
118
-
119
- var _useState7 = (0, _react.useState)(false),
120
- _useState8 = _slicedToArray(_useState7, 2),
121
- showEdit = _useState8[0],
122
- setShowEdit = _useState8[1];
115
+ showEdit = _useState6[0],
116
+ setShowEdit = _useState6[1];
123
117
 
124
118
  var contentRichTextRef = (0, _react.useRef)();
125
119
  var workPlanRichTextRef = (0, _react.useRef)();
@@ -127,10 +121,10 @@ var DynamicReply = function DynamicReply(_ref) {
127
121
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
128
122
  searchKeyWord = _useContext.searchKeyWord;
129
123
 
130
- var _useState9 = (0, _react.useState)(evaluates || []),
131
- _useState10 = _slicedToArray(_useState9, 2),
132
- currentEvalutes = _useState10[0],
133
- setCurrentEvalutes = _useState10[1];
124
+ var _useState7 = (0, _react.useState)(evaluates || []),
125
+ _useState8 = _slicedToArray(_useState7, 2),
126
+ currentEvalutes = _useState8[0],
127
+ setCurrentEvalutes = _useState8[1];
134
128
 
135
129
  var renderSuffix = /*#__PURE__*/_react["default"].createElement("span", {
136
130
  className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
@@ -175,16 +169,6 @@ var DynamicReply = function DynamicReply(_ref) {
175
169
  setMotionValue(motion);
176
170
  }
177
171
  }, [dailyContent]);
178
- (0, _react.useEffect)(function () {
179
- if (dailyContent) {
180
- var atData = dailyContent.find(function (item) {
181
- return item.contentType === 5;
182
- });
183
- if (!(atData !== null && atData !== void 0 && atData.content)) return;
184
- var atMotion = JSON.parse(atData.content || "{}");
185
- setAtValue(atMotion);
186
- }
187
- }, [dailyContent]);
188
172
  (0, _react.useEffect)(function () {
189
173
  if (loginUserId === publishUser.userId) {
190
174
  setShowDelete(true);
@@ -266,8 +250,7 @@ var DynamicReply = function DynamicReply(_ref) {
266
250
  editable: false,
267
251
  enableDelete: false
268
252
  })), /*#__PURE__*/_react["default"].createElement(_remindUserView["default"], {
269
- data: atValue,
270
- curAtUser: curAtUser
253
+ data: atUsers
271
254
  }), currentEvalutes && currentEvalutes.length !== 0 && /*#__PURE__*/_react["default"].createElement(_evalute["default"], {
272
255
  evaluation: currentEvalutes[0],
273
256
  feedId: feedId,
@@ -79,9 +79,7 @@ var _dynamicNewReport = _interopRequireDefault(require("./dynamic-new-report"));
79
79
 
80
80
  var _dynamicDiscovery = _interopRequireDefault(require("./dynamic-discovery"));
81
81
 
82
- var _requestApi = require("../request-api");
83
-
84
- var _excluded = ["data", "onDeleteFeed", "dynamicShareIsShowToping", "detailCurAtUser"];
82
+ var _excluded = ["data", "onDeleteFeed", "dynamicShareIsShowToping"];
85
83
 
86
84
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
87
85
 
@@ -122,7 +120,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
122
120
  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; }
123
121
 
124
122
  var prefix = "titaui-dynamic-item";
125
- var loginUserId = (0, _bsGlobal.getUserInfo)().Id;
126
123
 
127
124
  var DynamicItem = function DynamicItem(_ref) {
128
125
  var _getBSGlobal, _JSON$parse;
@@ -130,7 +127,6 @@ var DynamicItem = function DynamicItem(_ref) {
130
127
  var data = _ref.data,
131
128
  onDeleteFeed = _ref.onDeleteFeed,
132
129
  dynamicShareIsShowToping = _ref.dynamicShareIsShowToping,
133
- detailCurAtUser = _ref.detailCurAtUser,
134
130
  restProps = _objectWithoutProperties(_ref, _excluded);
135
131
 
136
132
  var feedId = data.feedId,
@@ -171,11 +167,6 @@ var DynamicItem = function DynamicItem(_ref) {
171
167
  upvoteModalVisible = _useState12[0],
172
168
  setUpvoteModalVisible = _useState12[1];
173
169
 
174
- var _useState13 = (0, _react.useState)(detailCurAtUser),
175
- _useState14 = _slicedToArray(_useState13, 2),
176
- curAtUser = _useState14[0],
177
- setCurAtUser = _useState14[1];
178
-
179
170
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
180
171
  searchKeyWord = _useContext.searchKeyWord,
181
172
  atAllText = _useContext.atAllText,
@@ -214,16 +205,6 @@ var DynamicItem = function DynamicItem(_ref) {
214
205
  });
215
206
  }
216
207
 
217
- if (data.feedType === _constant.EFeedType.Report && data.newSummary) {
218
- (0, _requestApi.setSummaryAlreadyRead)({
219
- feedId: feedId
220
- }).then(function (res) {
221
- if (res.Code === 1) {
222
- setCurAtUser(+loginUserId);
223
- }
224
- });
225
- }
226
-
227
208
  setIsFold(false);
228
209
  };
229
210
 
@@ -313,8 +294,7 @@ var DynamicItem = function DynamicItem(_ref) {
313
294
  if (data.newSummary) {
314
295
  return /*#__PURE__*/_react["default"].createElement(_dynamicNewReport["default"], _extends({
315
296
  data: data,
316
- onDeleteFeed: onDeleteFeed,
317
- curAtUser: curAtUser
297
+ onDeleteFeed: onDeleteFeed
318
298
  }, restProps));
319
299
  }
320
300
 
@@ -400,7 +380,7 @@ var DynamicItem = function DynamicItem(_ref) {
400
380
  default:
401
381
  return null;
402
382
  }
403
- }, [data, curAtUser]);
383
+ }, [data]);
404
384
 
405
385
  var renderUpvoteCount = function renderUpvoteCount(type, count) {
406
386
  if (count === 0) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.topDynamic = exports.setSummaryAlreadyRead = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
6
+ exports.topDynamic = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
7
7
 
8
8
  var _request = require("../../utils/request");
9
9
 
@@ -43,11 +43,4 @@ var deleteDynamic = function deleteDynamic(_ref5) {
43
43
  return (0, _request.rdelete)('v2')("user/feed/Delete?feed_id=".concat(feedId));
44
44
  };
45
45
 
46
- exports.deleteDynamic = deleteDynamic;
47
-
48
- var setSummaryAlreadyRead = function setSummaryAlreadyRead(_ref6) {
49
- var feedId = _ref6.feedId;
50
- return (0, _request.rpost)('v1')("summary/remind/read/".concat(feedId));
51
- };
52
-
53
- exports.setSummaryAlreadyRead = setSummaryAlreadyRead;
46
+ exports.deleteDynamic = deleteDynamic;
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
55
55
  var _super = _createSuper(EReportList);
56
56
 
57
57
  function EReportList() {
58
- var _this;
58
+ var _temp, _this;
59
59
 
60
60
  _classCallCheck(this, EReportList);
61
61
 
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
63
63
  args[_key] = arguments[_key];
64
64
  }
65
65
 
66
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
66
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
67
67
  selectedPeriodValue: '',
68
68
  showDatePick: false,
69
69
  eReportWeekList: [],
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
178
178
  return _this.handlerEReportShareSubmit(submitStatus);
179
179
  }
180
180
  })));
181
- }, _assertThisInitialized(_this)));
181
+ }, _temp));
182
182
  }
183
183
 
184
184
  _createClass(EReportList, [{
@@ -47,7 +47,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
47
47
  var _super = _createSuper(EmotionsSelectorPop);
48
48
 
49
49
  function EmotionsSelectorPop() {
50
- var _this;
50
+ var _temp, _this;
51
51
 
52
52
  _classCallCheck(this, EmotionsSelectorPop);
53
53
 
@@ -55,7 +55,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
58
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
59
59
  setTimeout(function () {
60
60
  // @ts-ignore
61
61
  _this.refs.pop.show(_this.refs.trigger);
@@ -63,7 +63,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
63
63
  }, _this.handleHide = function () {
64
64
  // @ts-ignore
65
65
  _this.refs.pop.hide();
66
- }, _assertThisInitialized(_this)));
66
+ }, _temp));
67
67
  }
68
68
 
69
69
  _createClass(EmotionsSelectorPop, [{
@@ -57,7 +57,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
57
57
  var _super = _createSuper(EReportList);
58
58
 
59
59
  function EReportList() {
60
- var _this;
60
+ var _temp, _this;
61
61
 
62
62
  _classCallCheck(this, EReportList);
63
63
 
@@ -65,7 +65,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
65
65
  args[_key] = arguments[_key];
66
66
  }
67
67
 
68
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
68
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
69
69
  selectedPeriodValue: "",
70
70
  showDatePick: false,
71
71
  eReportWeekList: [],
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
178
178
  return _this.handlerEReportShareSubmit(submitStatus);
179
179
  }
180
180
  })));
181
- }, _assertThisInitialized(_this)));
181
+ }, _temp));
182
182
  }
183
183
 
184
184
  _createClass(EReportList, [{
@@ -4,6 +4,7 @@
4
4
  }
5
5
 
6
6
  .titaui-new-file-list-single-file__file-preview {
7
+ position: relative;
7
8
  width: 120px;
8
9
  height: 120px;
9
10
  border-radius: 12px;
@@ -12,6 +13,7 @@
12
13
  justify-content: center;
13
14
  margin-right: 10px;
14
15
  background: #f0f2f5;
16
+ cursor: pointer;
15
17
  }
16
18
 
17
19
  .titaui-new-file-list-single-file__file-preview-img {
@@ -32,6 +34,33 @@
32
34
  margin-right: 10px;
33
35
  }
34
36
 
37
+ .titaui-new-file-list-single-file__file-preview:hover .titaui-new-file-list-single-file__download-line {
38
+ height: 30px;
39
+ opacity: 1;
40
+ }
41
+
42
+ .titaui-new-file-list-single-file__download-line {
43
+ position: absolute;
44
+ width: 100%;
45
+ bottom: 0;
46
+ color: #fff;
47
+ background: rgba(20, 28, 40, 0.2);
48
+ backdrop-filter: blur(2px);
49
+ line-height: 30px;
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ border-radius: 0px 0px 10px 10px;
54
+ cursor: pointer;
55
+ height: 0;
56
+ opacity: 0;
57
+ transition: height .2s, opacity .3s;
58
+ }
59
+
60
+ .titaui-new-file-list-single-file__download-line__icon {
61
+ font-size: 16px;
62
+ }
63
+
35
64
  .titaui-new-file-list-single-file__operate {
36
65
  position: absolute;
37
66
  top: 0;