@titaui/pc 1.12.26-beta.6 → 1.12.28-beta.1
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.
- package/lib/components/change-okr-modal/Filter.js +1 -1
- package/lib/components/change-okr-modal/Item.js +1 -1
- package/lib/components/change-okr-modal/filterTab.js +1 -1
- package/lib/components/change-okr-modal/index.js +1 -1
- package/lib/components/communication/CommunicationAttachments.js +1 -1
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.js +1 -1
- package/lib/components/create-okr-modal/objectType.js +1 -1
- package/lib/components/date-picker/BodyItem.js +4 -4
- package/lib/components/date-picker/CalendarBody.js +1 -1
- package/lib/components/date-picker/CalendarHeader.js +4 -4
- package/lib/components/date-picker/index.js +1 -1
- package/lib/components/date-range-picker/index.js +1 -1
- package/lib/components/delete-confirm-pop/ConfirmPop.js +4 -4
- package/lib/components/dynamic/constant.js +2 -1
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/dynamic-footer.js +281 -0
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +44 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +5 -43
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +4 -26
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/index.js +10 -3
- package/lib/components/eReport/eReportListEmpty.js +1 -1
- package/lib/components/eReport/eReportLists/reportList.js +4 -4
- package/lib/components/eReport/eReportShare/index.js +1 -1
- package/lib/components/eReport/eReportShare/toast/index.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
- package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
- package/lib/components/emotions-selector/selector-content.js +1 -1
- package/lib/components/emotions-selector/selector-pop.js +4 -4
- package/lib/components/ereport-list/index.js +4 -4
- package/lib/components/error-boundary/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +1 -1
- package/lib/components/mblog/components/MblogAction.js +4 -4
- package/lib/components/mblog/components/MblogContent.js +1 -1
- package/lib/components/mblog/index.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/menus.js +7 -7
- package/lib/components/nav-top/components/menu/index.js +15 -11
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +4 -1
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +4 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +4 -1
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/index.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/index.js +4 -4
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +4 -4
- package/lib/components/okr-review/index.js +1 -1
- package/lib/components/operation-records/OperationRecordItem.js +1 -1
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/point-demo/input/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +1 -1
- package/lib/components/praise-record/index.js +1 -1
- package/lib/components/range-picker-pop/index.js +1 -1
- package/lib/components/range-selector-pop/RangeList.js +1 -1
- package/lib/components/range-selector-pop/RangeSelectorPop.js +4 -4
- package/lib/components/rich-editor/models/schema.js +7 -7
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +9 -9
- package/lib/components/rich-editor/plugins/block/heading/index.js +9 -9
- package/lib/components/rich-editor/plugins/block/lists/index.js +15 -15
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +6 -6
- package/lib/components/rich-editor/plugins/core/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +6 -6
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/color/index.js +12 -12
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +9 -9
- package/lib/components/rich-editor/plugins/inline/em/index.js +6 -6
- package/lib/components/rich-editor/plugins/inline/link/index.js +9 -9
- package/lib/components/rich-editor/plugins/inline/strong/index.js +9 -9
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +9 -9
- package/lib/components/rich-editor/react/reactNodeView.js +1 -1
- package/lib/components/rich-editor/react/uiProvider.js +4 -4
- package/lib/components/rich-editor/ui/Popup/index.js +4 -4
- package/lib/components/scroll-container/index.js +1 -1
- package/lib/components/select/Option.js +4 -4
- package/lib/components/select/index.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +4 -4
- package/lib/components/upload/components/uploadedPreview.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +4 -4
- package/lib/components-v1/animate/animate.js +1 -1
- package/lib/components-v1/avatar/index.js +4 -4
- package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
- package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
- package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
- package/lib/components-v1/confirm/index.js +1 -1
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +4 -4
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/placement/placement.js +1 -1
- package/lib/components-v1/placement/placementInner.js +1 -1
- package/lib/components-v1/pop/Pop.js +1 -1
- package/lib/components-v1/pop/PopInner.js +1 -1
- package/lib/components-v1/portals/Portals.js +1 -1
- package/lib/components-v1/progress/CircleProgress.js +4 -4
- package/lib/components-v1/progress/LineProgress.js +1 -1
- package/lib/components-v1/progress/index.js +1 -1
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/components-v1/radio/radioGroup.js +1 -1
- package/lib/components-v1/search/index.js +1 -1
- package/lib/components-v1/select/Option.js +4 -4
- package/lib/components-v1/select/index.js +1 -1
- package/lib/components-v1/tabs/index.js +1 -1
- package/lib/components-v1/textarea/index.js +1 -1
- package/lib/components-v1/transition/index.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +4 -4
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/index.js +4 -4
- package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
- package/lib/components-v1/userSelector/components/UserItem.js +4 -4
- package/lib/components-v1/userSelector/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +1 -1
- package/lib/utils/auth.js +1 -1
- package/package.json +2 -2
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
|
@@ -63,7 +63,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
63
63
|
|
|
64
64
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
65
65
|
|
|
66
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
66
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
67
67
|
|
|
68
68
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
69
69
|
|
|
@@ -33,7 +33,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
33
33
|
|
|
34
34
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
35
|
|
|
36
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
36
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
37
|
|
|
38
38
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
39
|
|
|
@@ -25,7 +25,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
25
25
|
|
|
26
26
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
27
|
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
30
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
|
@@ -63,7 +63,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
63
63
|
|
|
64
64
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
65
65
|
|
|
66
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
66
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
67
67
|
|
|
68
68
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
69
69
|
|
|
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
31
|
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
34
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -57,7 +57,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
57
57
|
|
|
58
58
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
59
59
|
|
|
60
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
60
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
61
61
|
|
|
62
62
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
63
63
|
|
|
@@ -49,7 +49,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
49
49
|
|
|
50
50
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
51
51
|
|
|
52
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
52
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
53
53
|
|
|
54
54
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
55
55
|
|
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _assertThisInitialized(_this)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
31
|
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
34
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
31
|
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
34
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var
|
|
90
|
+
var _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (
|
|
98
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _assertThisInitialized(_this)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
31
|
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
34
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
39
39
|
|
|
40
40
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
41
41
|
|
|
42
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
42
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
43
43
|
|
|
44
44
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
45
45
|
|
|
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -53,6 +53,7 @@ exports.EFeedType = EFeedType;
|
|
|
53
53
|
EFeedType[EFeedType["O"] = 101] = "O";
|
|
54
54
|
EFeedType[EFeedType["OKRsCommunication"] = 102] = "OKRsCommunication";
|
|
55
55
|
EFeedType[EFeedType["Interview"] = 103] = "Interview";
|
|
56
|
+
EFeedType[EFeedType["Discovery"] = 2] = "Discovery";
|
|
56
57
|
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
57
58
|
|
|
58
59
|
var EShareType;
|
|
@@ -119,7 +120,7 @@ var EStatusStatus2ClassType = {
|
|
|
119
120
|
5: "tu-icon-weijieshou-right"
|
|
120
121
|
};
|
|
121
122
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
122
|
-
var PlanReportType = ["titaPlanReport", "titaPlanManagerReport"];
|
|
123
|
+
var PlanReportType = ["titaPlanReport", "titaPlanManagerReport", "TeamCompletionNotice"];
|
|
123
124
|
exports.PlanReportType = PlanReportType;
|
|
124
125
|
var PlanReportTrackActionNameMap = {
|
|
125
126
|
titaPlanReport: "动态日报推送",
|
|
@@ -23,6 +23,8 @@ var _tableRowOkr = _interopRequireDefault(require("../table-row-okr"));
|
|
|
23
23
|
|
|
24
24
|
var _tableRowOProject = _interopRequireDefault(require("../table-row-o-project"));
|
|
25
25
|
|
|
26
|
+
var _openData = require("../../../../../utils/open-data");
|
|
27
|
+
|
|
26
28
|
var _constant = require("./constant");
|
|
27
29
|
|
|
28
30
|
var _interface = require("../task-progress/interface");
|
|
@@ -94,7 +96,7 @@ var OkrProgress = function OkrProgress(_ref) {
|
|
|
94
96
|
if (item.Type === _constant.OkrType.OType) {
|
|
95
97
|
krOrder = 0;
|
|
96
98
|
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_tableRowOkr["default"], {
|
|
97
|
-
text:
|
|
99
|
+
text: (0, _openData.parseString)(item.Name),
|
|
98
100
|
isO: true,
|
|
99
101
|
id: item.Id
|
|
100
102
|
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
@@ -109,7 +111,7 @@ var OkrProgress = function OkrProgress(_ref) {
|
|
|
109
111
|
} else if (item.Type === _constant.OkrType.KRType) {
|
|
110
112
|
krOrder += 1;
|
|
111
113
|
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_tableRowOkr["default"], {
|
|
112
|
-
text:
|
|
114
|
+
text: (0, _openData.parseString)(item.Name),
|
|
113
115
|
isO: false,
|
|
114
116
|
isFirstLevel: false,
|
|
115
117
|
id: item.Id,
|
|
@@ -132,7 +134,7 @@ var OkrProgress = function OkrProgress(_ref) {
|
|
|
132
134
|
}, /*#__PURE__*/_react["default"].createElement(_tableRowOProject["default"], {
|
|
133
135
|
id: item.Id,
|
|
134
136
|
extraClass: "".concat(prefix, "__table-obj"),
|
|
135
|
-
text: item.Name
|
|
137
|
+
text: (0, _openData.parseString)(item.Name)
|
|
136
138
|
})));
|
|
137
139
|
}
|
|
138
140
|
})));
|
|
@@ -17,6 +17,8 @@ var _schedule = _interopRequireDefault(require("../schedule"));
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
19
19
|
|
|
20
|
+
var _openData = require("../../../../../utils/open-data");
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -45,7 +47,7 @@ var RenderRow = function RenderRow(_ref) {
|
|
|
45
47
|
className: "".concat(prefix, "__table-row-title-icon ").concat(_constant.EStatusStatus2ClassType[item.IconStatus])
|
|
46
48
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
49
|
className: "".concat(prefix, "__table-row-title-text")
|
|
48
|
-
}, item.Name), item.RemainDay > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
50
|
+
}, (0, _openData.parseString)(item.Name)), item.RemainDay > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
49
51
|
className: "".concat(prefix, "__table-row-title-remain")
|
|
50
52
|
}, (0, _getLocale.getLocale)("Rep_NewS_PrgreDelay").replace("XX", item.RemainDay)), item.WorkTimes > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
51
53
|
className: "".concat(prefix, "__table-row-title-worktime")
|
|
@@ -0,0 +1,281 @@
|
|
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _conditionRender = _interopRequireDefault(require("../../../condition-render"));
|
|
15
|
+
|
|
16
|
+
var _bsGlobal = require("../../../../utils/bs-global");
|
|
17
|
+
|
|
18
|
+
var _communication = _interopRequireDefault(require("../../../communication"));
|
|
19
|
+
|
|
20
|
+
var _avatar = _interopRequireDefault(require("../../../avatar"));
|
|
21
|
+
|
|
22
|
+
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
23
|
+
|
|
24
|
+
var _upvote = _interopRequireDefault(require("../../../upvote"));
|
|
25
|
+
|
|
26
|
+
var _upvoteListModal = _interopRequireDefault(require("../../../upvote/upvoteListModal"));
|
|
27
|
+
|
|
28
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
29
|
+
|
|
30
|
+
var _context = require("../../context");
|
|
31
|
+
|
|
32
|
+
var _constant = require("../../constant");
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
41
|
+
|
|
42
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
47
|
+
|
|
48
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
49
|
+
|
|
50
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
51
|
+
|
|
52
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
53
|
+
|
|
54
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
55
|
+
|
|
56
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
57
|
+
|
|
58
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
59
|
+
|
|
60
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
61
|
+
|
|
62
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
63
|
+
|
|
64
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
65
|
+
|
|
66
|
+
var prefix = "titaui-dynamic-item";
|
|
67
|
+
|
|
68
|
+
var DynamicFooter = function DynamicFooter(_ref) {
|
|
69
|
+
var _getBSGlobal;
|
|
70
|
+
|
|
71
|
+
var data = _ref.data,
|
|
72
|
+
dailyReportType = _ref.dailyReportType;
|
|
73
|
+
var feedId = data.feedId,
|
|
74
|
+
feedComments = data.feedComments,
|
|
75
|
+
praiseType = data.praiseType,
|
|
76
|
+
praiseUsers = data.praiseUsers,
|
|
77
|
+
feedType = data.feedType,
|
|
78
|
+
publishUser = data.publishUser;
|
|
79
|
+
|
|
80
|
+
var _useState = (0, _react.useState)(true),
|
|
81
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
82
|
+
usePropsComment = _useState2[0],
|
|
83
|
+
setUsePropsComment = _useState2[1];
|
|
84
|
+
|
|
85
|
+
var _useState3 = (0, _react.useState)(feedComments.total > 0),
|
|
86
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
87
|
+
showComment = _useState4[0],
|
|
88
|
+
setShowComment = _useState4[1];
|
|
89
|
+
|
|
90
|
+
var _useState5 = (0, _react.useState)(praiseUsers || []),
|
|
91
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
92
|
+
praiseData = _useState6[0],
|
|
93
|
+
setPraiseData = _useState6[1];
|
|
94
|
+
|
|
95
|
+
var _useState7 = (0, _react.useState)(false),
|
|
96
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
97
|
+
upvoteModalVisible = _useState8[0],
|
|
98
|
+
setUpvoteModalVisible = _useState8[1];
|
|
99
|
+
|
|
100
|
+
var communicationRef = (0, _react.useRef)();
|
|
101
|
+
var productName = _constant.PlanReportTrackActionNameMap[dailyReportType];
|
|
102
|
+
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)("WebHead")) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
|
|
103
|
+
return item.AppId === "950";
|
|
104
|
+
}));
|
|
105
|
+
|
|
106
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
107
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
108
|
+
|
|
109
|
+
var handleCommentClick = function handleCommentClick() {
|
|
110
|
+
setShowComment(!showComment);
|
|
111
|
+
setUsePropsComment(false);
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
var onChangeParse = function onChangeParse(type) {
|
|
115
|
+
var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)("loginUserInfo"),
|
|
116
|
+
Id = _getBSGlobal2.Id;
|
|
117
|
+
|
|
118
|
+
var data = _toConsumableArray(praiseData).filter(function (item) {
|
|
119
|
+
return Number("".concat(item.userId)) !== Number("".concat(Id));
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
var actionName = "";
|
|
123
|
+
|
|
124
|
+
if (type) {
|
|
125
|
+
var avatar = (0, _bsGlobal.getBSGlobal)("loginUserInfo").UserAvatar;
|
|
126
|
+
var name = (0, _bsGlobal.getBSGlobal)("loginUserInfo").Name;
|
|
127
|
+
avatar.color = avatar.Color;
|
|
128
|
+
avatar.medium = avatar.Medium;
|
|
129
|
+
var parseUser = {
|
|
130
|
+
avatar: avatar,
|
|
131
|
+
name: name,
|
|
132
|
+
userId: Id,
|
|
133
|
+
praiseType: type
|
|
134
|
+
};
|
|
135
|
+
setPraiseData([parseUser].concat(_toConsumableArray(data)));
|
|
136
|
+
actionName = "点赞";
|
|
137
|
+
} else {
|
|
138
|
+
setPraiseData(data);
|
|
139
|
+
actionName = "取消点赞";
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (window.titaTracker) {
|
|
143
|
+
window.titaTracker("action").record({
|
|
144
|
+
actionName: actionName,
|
|
145
|
+
actionGroup: "互动",
|
|
146
|
+
productName: productName
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
var handlePayReward = function handlePayReward() {
|
|
152
|
+
var data = {
|
|
153
|
+
multi: false,
|
|
154
|
+
toUserInfo: _objectSpread(_objectSpread({}, publishUser), {}, {
|
|
155
|
+
id: publishUser.userId
|
|
156
|
+
}),
|
|
157
|
+
objId: feedId,
|
|
158
|
+
objType: feedType
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
if (window.util) {
|
|
162
|
+
if (window.titaTracker) {
|
|
163
|
+
window.titaTracker("action").record({
|
|
164
|
+
actionName: "打开打赏弹层",
|
|
165
|
+
actionGroup: "互动",
|
|
166
|
+
productName: productName
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
window.util.rewardGetFile(function (myReward) {
|
|
171
|
+
myReward.renderPayReward(data);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
var renderUpvoteCount = function renderUpvoteCount(type, count) {
|
|
177
|
+
if (count === 0) {
|
|
178
|
+
return "";
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return count || type;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
var handleReply = function handleReply(_ref2) {
|
|
185
|
+
var submitType = _ref2.submitType;
|
|
186
|
+
var actionName = submitType === "delete" ? "删除评论" : "评论";
|
|
187
|
+
|
|
188
|
+
if (window.titaTracker) {
|
|
189
|
+
window.titaTracker("action").record({
|
|
190
|
+
actionName: actionName,
|
|
191
|
+
actionGroup: "互动",
|
|
192
|
+
productName: productName
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
|
+
className: (0, _classnames["default"])("".concat(prefix, "__footer"))
|
|
199
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
200
|
+
className: "".concat(prefix, "__footer-left")
|
|
201
|
+
}, praiseData.map(function (item, index) {
|
|
202
|
+
if (index >= 8) return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
203
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
204
|
+
className: "".concat(prefix, "__footer-left-item"),
|
|
205
|
+
key: item.userId
|
|
206
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Icon, {
|
|
207
|
+
name: item.name,
|
|
208
|
+
userId: item.userId,
|
|
209
|
+
avatar: item.avatar,
|
|
210
|
+
type: item.praiseType,
|
|
211
|
+
size: {
|
|
212
|
+
width: 28,
|
|
213
|
+
textNum: 1,
|
|
214
|
+
fontSize: 12
|
|
215
|
+
}
|
|
216
|
+
}));
|
|
217
|
+
}), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
218
|
+
condition: praiseData && praiseData.length > 8
|
|
219
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Num, {
|
|
220
|
+
onClick: function onClick() {
|
|
221
|
+
return setUpvoteModalVisible(true);
|
|
222
|
+
},
|
|
223
|
+
num: praiseData.length - 8
|
|
224
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
|
+
className: "".concat(prefix, "__footer-right")
|
|
226
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
227
|
+
condition: hasRewardBtn
|
|
228
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
229
|
+
overlay: (0, _getLocale.getLocale)("Feed_Approval"),
|
|
230
|
+
align: {
|
|
231
|
+
offset: [0, 0]
|
|
232
|
+
},
|
|
233
|
+
placement: "top"
|
|
234
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
235
|
+
onClick: handlePayReward,
|
|
236
|
+
className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
|
|
237
|
+
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
238
|
+
onClick: handleCommentClick,
|
|
239
|
+
className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
|
|
240
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
241
|
+
condition: feedComments.total > 0
|
|
242
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
243
|
+
className: "".concat(prefix, "__footer-number")
|
|
244
|
+
}, feedComments.total))), /*#__PURE__*/_react["default"].createElement(_upvote["default"], {
|
|
245
|
+
type: praiseType,
|
|
246
|
+
count: praiseUsers ? praiseUsers.length : 0,
|
|
247
|
+
feedId: feedId,
|
|
248
|
+
onChange: onChangeParse,
|
|
249
|
+
style: {
|
|
250
|
+
marginLeft: 30
|
|
251
|
+
},
|
|
252
|
+
buttonType: "tu-icon-tyle-column",
|
|
253
|
+
customUpvoteBtnCls: "".concat(prefix, "__upvote-btn"),
|
|
254
|
+
renderCount: renderUpvoteCount
|
|
255
|
+
}), /*#__PURE__*/_react["default"].createElement(_upvoteListModal["default"], {
|
|
256
|
+
feedId: feedId,
|
|
257
|
+
visible: upvoteModalVisible,
|
|
258
|
+
onClose: function onClose() {
|
|
259
|
+
return setUpvoteModalVisible(false);
|
|
260
|
+
}
|
|
261
|
+
}))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
262
|
+
condition: showComment
|
|
263
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
264
|
+
className: (0, _classnames["default"])("".concat(prefix, "__communication"))
|
|
265
|
+
}, /*#__PURE__*/_react["default"].createElement(_communication["default"], {
|
|
266
|
+
feedId: feedId,
|
|
267
|
+
commentCount: 3,
|
|
268
|
+
ref: communicationRef,
|
|
269
|
+
highLightKeyWord: searchKeyWord,
|
|
270
|
+
autoFocus: feedComments.total === 0,
|
|
271
|
+
usePropsComment: usePropsComment,
|
|
272
|
+
communication: feedComments.comments,
|
|
273
|
+
totalCommunicationNum: feedComments.total,
|
|
274
|
+
onReplyChange: handleReply,
|
|
275
|
+
showUser: true,
|
|
276
|
+
showDefaultInput: true
|
|
277
|
+
}))));
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
var _default = DynamicFooter;
|
|
281
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _supersetCharts = _interopRequireDefault(require("../../../superset-charts"));
|
|
11
|
+
|
|
12
|
+
var _utils = require("../dynamic-chart/utils");
|
|
13
|
+
|
|
14
|
+
var _dynamicFooter = _interopRequireDefault(require("./dynamic-footer"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
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); }
|
|
19
|
+
|
|
20
|
+
var prefixCls = "titaui-dynamic-item";
|
|
21
|
+
|
|
22
|
+
var DynamicAIDialy = function DynamicAIDialy(_ref) {
|
|
23
|
+
var data = _ref.data;
|
|
24
|
+
|
|
25
|
+
var chartQuery = _react["default"].useMemo(function () {
|
|
26
|
+
return (0, _utils.getChartProps)(data.biId);
|
|
27
|
+
}, [data.biId]);
|
|
28
|
+
|
|
29
|
+
var feedComponent = chartQuery.feedComponent;
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
+
className: prefixCls
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], _extends({
|
|
33
|
+
feedData: data
|
|
34
|
+
}, chartQuery, {
|
|
35
|
+
type: feedComponent
|
|
36
|
+
})), /*#__PURE__*/_react["default"].createElement(_dynamicFooter["default"], {
|
|
37
|
+
data: data,
|
|
38
|
+
dailyReportType: feedComponent
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var _default = /*#__PURE__*/_react["default"].memo(DynamicAIDialy);
|
|
43
|
+
|
|
44
|
+
exports["default"] = _default;
|