@titaui/pc 1.10.7 → 1.10.8-2.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/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +3 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer/index.js +3 -2
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +27 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +34 -12
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-name.js +11 -4
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +40 -44
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +207 -195
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -2
- package/lib/components/okr-detail/index.js +4 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/scrollbar/index.js +67 -9
- package/lib/components/scrollbar/scroll-mask/index.css +29 -0
- package/lib/components/scrollbar/scroll-mask/index.js +152 -0
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +142 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/wechat-btn/index.css +10 -0
- package/lib/components/wechat-btn/index.js +232 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +39 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +10 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/package.json +121 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -37,6 +37,8 @@ var _dynamicRelaProject = _interopRequireDefault(require("./img/dynamic-rela-pro
|
|
|
37
37
|
|
|
38
38
|
var _dynamicRelaTask = _interopRequireDefault(require("./img/dynamic-rela-task.png"));
|
|
39
39
|
|
|
40
|
+
var _tools = require("../../../../utils/tools");
|
|
41
|
+
|
|
40
42
|
require("./index.css");
|
|
41
43
|
|
|
42
44
|
var _excluded = ["data"];
|
|
@@ -51,6 +53,18 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
51
53
|
|
|
52
54
|
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); }
|
|
53
55
|
|
|
56
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
|
+
|
|
58
|
+
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."); }
|
|
59
|
+
|
|
60
|
+
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); }
|
|
61
|
+
|
|
62
|
+
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; }
|
|
63
|
+
|
|
64
|
+
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; }
|
|
65
|
+
|
|
66
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
|
+
|
|
54
68
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
55
69
|
|
|
56
70
|
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; }
|
|
@@ -78,6 +92,11 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
78
92
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
79
93
|
searchKeyWord = _useContext.searchKeyWord;
|
|
80
94
|
|
|
95
|
+
var _useState = (0, _react.useState)(null),
|
|
96
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
97
|
+
relatedImgUrl = _useState2[0],
|
|
98
|
+
setRelatedImgUrl = _useState2[1];
|
|
99
|
+
|
|
81
100
|
var handleClickTitle = function handleClickTitle(id, type) {
|
|
82
101
|
if (type === _constant.EObjType.Kr) {
|
|
83
102
|
_drawerManager["default"].open("krDetail", {
|
|
@@ -111,10 +130,23 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
111
130
|
text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Mod_Objective"));
|
|
112
131
|
}
|
|
113
132
|
|
|
133
|
+
if (relateObjType === _constant.EObjType.Project) {
|
|
134
|
+
text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Feed_Set_Project"));
|
|
135
|
+
}
|
|
136
|
+
|
|
114
137
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
138
|
className: "".concat(prefix, "__operate-desc")
|
|
116
139
|
}, text);
|
|
117
140
|
}, []);
|
|
141
|
+
(0, _react.useEffect)(function () {
|
|
142
|
+
if (relateObjType === _constant.EObjType.O) {
|
|
143
|
+
setRelatedImgUrl(_dynamicRelaO["default"]);
|
|
144
|
+
} else if (relateObjType === _constant.EObjType.Kr) {
|
|
145
|
+
setRelatedImgUrl(_dynamicRelaKr["default"]);
|
|
146
|
+
} else {
|
|
147
|
+
setRelatedImgUrl(_dynamicRelaProject["default"]);
|
|
148
|
+
}
|
|
149
|
+
}, []);
|
|
118
150
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
151
|
className: prefix
|
|
120
152
|
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
@@ -129,11 +161,11 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
129
161
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
162
|
className: "".concat(prefix, "__obj-base-info")
|
|
131
163
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), relateObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), relateObjType === _constant.EObjType.Kr), _classNames))
|
|
164
|
+
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), relateObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), relateObjType === _constant.EObjType.Kr), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--project"), relateObjType === _constant.EObjType.Project), _classNames))
|
|
133
165
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
134
166
|
alt: "",
|
|
135
167
|
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
136
|
-
src:
|
|
168
|
+
src: relatedImgUrl || ""
|
|
137
169
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
170
|
className: "".concat(prefix, "__obj-base-info-right")
|
|
139
171
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -144,10 +176,12 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
144
176
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
145
177
|
isPercent: true,
|
|
146
178
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
147
|
-
str: relateObjName,
|
|
179
|
+
str: (0, _tools.htmlDecodeByRegExp)(relateObjName),
|
|
148
180
|
keyWord: searchKeyWord
|
|
149
181
|
})
|
|
150
|
-
})), /*#__PURE__*/_react["default"].createElement("div",
|
|
182
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
|
+
className: "".concat(prefix, "__obj-other-info")
|
|
184
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
151
185
|
className: "".concat(prefix, "__obj-principal-user")
|
|
152
186
|
}, rObjprincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
153
187
|
id: rObjprincipalUser.userId,
|
|
@@ -179,8 +213,10 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
179
213
|
}
|
|
180
214
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
181
215
|
isPercent: true,
|
|
182
|
-
text: objName
|
|
183
|
-
})), /*#__PURE__*/_react["default"].createElement("div",
|
|
216
|
+
text: (0, _tools.htmlDecodeByRegExp)(objName)
|
|
217
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
218
|
+
className: "".concat(prefix, "__obj-other-info")
|
|
219
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
184
220
|
className: "".concat(prefix, "__obj-principal-user")
|
|
185
221
|
}, objPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
186
222
|
id: objPrincipalUser.userId,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.titaui-dynamic-reply-item__detail {
|
|
15
|
-
margin-top:
|
|
15
|
+
margin-top: 12px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.titaui-dynamic-reply-item__detail-gain {
|
|
@@ -27,21 +27,25 @@
|
|
|
27
27
|
margin-bottom: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.titaui-dynamic-reply-item__detail-tasks {
|
|
31
|
+
margin-top: 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
.titaui-dynamic-reply-item__detail-tasks-item {
|
|
31
35
|
display: flex;
|
|
32
36
|
align-items: center;
|
|
33
|
-
margin-left: 8px;
|
|
34
37
|
font-size: 14px;
|
|
35
38
|
color: #6f7886;
|
|
36
39
|
line-height: 22px;
|
|
40
|
+
margin-top: 8px;
|
|
37
41
|
cursor: pointer;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
.titaui-dynamic-reply-item__detail-tasks-item::before {
|
|
41
45
|
content: '';
|
|
42
46
|
display: inline-block;
|
|
43
|
-
width:
|
|
44
|
-
height:
|
|
47
|
+
width: 5px;
|
|
48
|
+
height: 5px;
|
|
45
49
|
background: #2879ff;
|
|
46
50
|
border-radius: 50%;
|
|
47
51
|
margin-right: 6px;
|
|
@@ -52,25 +56,15 @@
|
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
.titaui-dynamic-reply-item__detail-block-title {
|
|
55
|
-
font-size:
|
|
59
|
+
font-size: 16px;
|
|
56
60
|
font-weight: 600;
|
|
57
61
|
color: #3f4755;
|
|
58
|
-
line-height:
|
|
62
|
+
line-height: 24px;
|
|
59
63
|
display: flex;
|
|
60
64
|
align-items: center;
|
|
61
65
|
margin-bottom: 8px;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
|
-
.titaui-dynamic-reply-item__detail-block-title::before {
|
|
65
|
-
content: '';
|
|
66
|
-
display: inline-block;
|
|
67
|
-
width: 4px;
|
|
68
|
-
height: 12px;
|
|
69
|
-
background: #2879ff;
|
|
70
|
-
border-radius: 2px;
|
|
71
|
-
margin-right: 4px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
68
|
.titaui-dynamic-reply-item__detail-block-title--sub {
|
|
75
69
|
display: flex;
|
|
76
70
|
align-items: center;
|
|
@@ -79,18 +73,9 @@
|
|
|
79
73
|
font-weight: 600;
|
|
80
74
|
color: #3f4755;
|
|
81
75
|
line-height: 22px;
|
|
82
|
-
margin-left: 8px;
|
|
83
76
|
white-space: pre-wrap;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
.titaui-dynamic-reply-item__detail-block-title--sub::before {
|
|
87
|
-
content: '';
|
|
88
|
-
display: inline-block;
|
|
89
|
-
width: 6px;
|
|
90
|
-
height: 6px;
|
|
91
|
-
background: #2879ff;
|
|
92
|
-
border-radius: 50%;
|
|
93
|
-
margin-right: 6px;
|
|
77
|
+
margin-left: 12px;
|
|
78
|
+
margin-top: 16px;
|
|
94
79
|
}
|
|
95
80
|
|
|
96
81
|
.titaui-dynamic-reply-item__detail-block-content {
|
|
@@ -99,7 +84,6 @@
|
|
|
99
84
|
color: #6f7886;
|
|
100
85
|
line-height: 22px;
|
|
101
86
|
margin-bottom: 4px;
|
|
102
|
-
margin-left: 8px;
|
|
103
87
|
white-space: pre-wrap;
|
|
104
88
|
}
|
|
105
89
|
|
|
@@ -108,7 +92,7 @@
|
|
|
108
92
|
}
|
|
109
93
|
|
|
110
94
|
.titaui-dynamic-reply-item__detail-block-content--sub {
|
|
111
|
-
margin-left:
|
|
95
|
+
margin-left: 12px;
|
|
112
96
|
}
|
|
113
97
|
|
|
114
98
|
.titaui-dynamic-reply-item__object-name {
|
|
@@ -125,7 +109,7 @@
|
|
|
125
109
|
}
|
|
126
110
|
|
|
127
111
|
.titaui-dynamic-reply-item__operate-desc {
|
|
128
|
-
font-size:
|
|
112
|
+
font-size: 14px;
|
|
129
113
|
font-weight: 400;
|
|
130
114
|
color: #89919f;
|
|
131
115
|
line-height: 24px;
|
|
@@ -163,7 +163,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
163
163
|
className: "".concat(prefix, "__detail-tasks")
|
|
164
164
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
165
|
className: "".concat(prefix, "__detail-block-title")
|
|
166
|
-
}, "\
|
|
166
|
+
}, "\u6539\u8FDB\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
|
|
167
167
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
168
|
key: task.taskId,
|
|
169
169
|
className: "".concat(prefix, "__detail-tasks-item"),
|
|
@@ -15,7 +15,7 @@ var _context = require("../../context");
|
|
|
15
15
|
|
|
16
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
17
|
|
|
18
|
-
var _dangerousHtml = _interopRequireDefault(require("
|
|
18
|
+
var _dangerousHtml = _interopRequireDefault(require("../../../dangerous-html"));
|
|
19
19
|
|
|
20
20
|
var _tools = require("../../../../utils/tools");
|
|
21
21
|
|
|
@@ -67,7 +67,16 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
67
67
|
searchKeyWord = _useContext.searchKeyWord;
|
|
68
68
|
|
|
69
69
|
var handleClickTitle = function handleClickTitle() {
|
|
70
|
-
|
|
70
|
+
if (window.titaTracker) {
|
|
71
|
+
window.titaTracker("planAction").record({
|
|
72
|
+
actionName: "查看日报",
|
|
73
|
+
actionGroup: "动态-推屏",
|
|
74
|
+
productName: "动态",
|
|
75
|
+
feedId: feedId
|
|
76
|
+
});
|
|
77
|
+
} // @ts-ignore
|
|
78
|
+
|
|
79
|
+
|
|
71
80
|
window.Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
72
81
|
};
|
|
73
82
|
|
|
@@ -113,7 +122,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
113
122
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
123
|
className: "".concat(prefix, "__content-title")
|
|
115
124
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
116
|
-
content: data.name,
|
|
125
|
+
content: (0, _tools.htmlDecodeByRegExp)(data.name),
|
|
117
126
|
onClickTitle: handleClickTitle,
|
|
118
127
|
type: getEReportType(reportType),
|
|
119
128
|
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.titaui-dynamic-reward-item__operate-desc {
|
|
56
|
-
font-size:
|
|
56
|
+
font-size: 14px;
|
|
57
57
|
font-weight: 400;
|
|
58
58
|
color: #89919f;
|
|
59
59
|
line-height: 24px;
|
|
@@ -96,3 +96,8 @@
|
|
|
96
96
|
cursor: default !important;
|
|
97
97
|
color: #3f4755 !important;
|
|
98
98
|
}
|
|
99
|
+
|
|
100
|
+
.titaui-dynamic-reward-item__reward-img {
|
|
101
|
+
width: 25px;
|
|
102
|
+
margin-left: 8px;
|
|
103
|
+
}
|
|
@@ -33,6 +33,12 @@ var _openData = require("../../../../utils/open-data");
|
|
|
33
33
|
|
|
34
34
|
var _getLocale = require("../../../../utils/getLocale");
|
|
35
35
|
|
|
36
|
+
var _utils = require("../dynamic-progress/utils");
|
|
37
|
+
|
|
38
|
+
var _reward = _interopRequireDefault(require("./img/reward.png"));
|
|
39
|
+
|
|
40
|
+
var _utils2 = require("./utils");
|
|
41
|
+
|
|
36
42
|
require("./index.css");
|
|
37
43
|
|
|
38
44
|
var _excluded = ["data"];
|
|
@@ -60,7 +66,6 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
60
66
|
var rewardContent = data.rewardContent,
|
|
61
67
|
rewardTags = data.rewardTags,
|
|
62
68
|
obj = data.obj,
|
|
63
|
-
classify = data.classify,
|
|
64
69
|
rewardUser = data.rewardUser,
|
|
65
70
|
publishUser = data.publishUser;
|
|
66
71
|
|
|
@@ -93,47 +98,6 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
93
98
|
}
|
|
94
99
|
};
|
|
95
100
|
|
|
96
|
-
var renderTitle = (0, _react.useMemo)(function () {
|
|
97
|
-
if (!obj) {
|
|
98
|
-
return "";
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
var objType = obj.objType,
|
|
102
|
-
objName = obj.objName;
|
|
103
|
-
|
|
104
|
-
if (objType === _constant.EObjType.Kr) {
|
|
105
|
-
return "KR\uFF1A".concat(objName);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (objType === _constant.EObjType.O) {
|
|
109
|
-
return "O\uFF1A".concat(objName);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (objType === _constant.EObjType.Task) {
|
|
113
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Tasks"), "\uFF1A").concat(objName);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
if (objType === _constant.EObjType.Project) {
|
|
117
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Project"), "\uFF1A").concat(objName);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (objType === _constant.EObjType.Assess) {
|
|
121
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Performance"), "\uFF1A").concat(objName);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return "";
|
|
125
|
-
}, []);
|
|
126
|
-
var Classify = (0, _react.useMemo)(function () {
|
|
127
|
-
var _classNames;
|
|
128
|
-
|
|
129
|
-
if (!classify || Number(classify) === 0) {
|
|
130
|
-
return "";
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
134
|
-
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify === 1), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify === 2), _classNames))
|
|
135
|
-
});
|
|
136
|
-
}, [classify]);
|
|
137
101
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
138
102
|
var url = ""; // const url = getUrlForUserPage({
|
|
139
103
|
// userId: rewardUser.name,
|
|
@@ -155,7 +119,11 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
155
119
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
156
120
|
name: rewardUser.name,
|
|
157
121
|
id: rewardUser.userId
|
|
158
|
-
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward")
|
|
122
|
+
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
123
|
+
alt: "",
|
|
124
|
+
src: _reward["default"],
|
|
125
|
+
className: "".concat(prefix, "__reward-img")
|
|
126
|
+
})));
|
|
159
127
|
}, []);
|
|
160
128
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
129
|
className: prefix
|
|
@@ -167,28 +135,27 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
167
135
|
className: "".concat(prefix, "__content")
|
|
168
136
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
137
|
className: "".concat(prefix, "__title")
|
|
170
|
-
},
|
|
171
|
-
content:
|
|
172
|
-
onClickTitle: handleClickTitle
|
|
173
|
-
|
|
174
|
-
})), rewardContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
}, obj && obj.objName && (0, _utils2.isShowRewardObj)(obj.objType) && /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
139
|
+
content: (0, _tools.htmlDecodeByRegExp)(obj.objName),
|
|
140
|
+
onClickTitle: handleClickTitle
|
|
141
|
+
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
142
|
className: "".concat(prefix, "__description"),
|
|
176
143
|
style: {
|
|
177
|
-
marginTop:
|
|
144
|
+
marginTop: obj && obj.objName ? "12px" : "0"
|
|
178
145
|
}
|
|
179
146
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
180
147
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
|
|
181
148
|
alt: "",
|
|
182
149
|
src: _dynamicLeftQuoto["default"]
|
|
183
150
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
184
|
-
str: rewardContent,
|
|
151
|
+
str: rewardContent || "赐予你力量!",
|
|
185
152
|
keyWord: searchKeyWord
|
|
186
153
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
187
154
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
|
|
188
155
|
alt: "",
|
|
189
156
|
src: _dynamicRightQuoto["default"]
|
|
190
157
|
}), rewardTags && rewardTags.length && rewardTags.map(function (reward) {
|
|
191
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
158
|
+
return reward.tagName && /*#__PURE__*/_react["default"].createElement("span", {
|
|
192
159
|
className: "".concat(prefix, "__reward-tag"),
|
|
193
160
|
style: {
|
|
194
161
|
background: (0, _tools.hexToRgba)(reward.color, 0.2),
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isShowRewardObj = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _constant = require("../../constant");
|
|
9
|
+
|
|
10
|
+
var _NeedShowObj;
|
|
11
|
+
|
|
12
|
+
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; }
|
|
13
|
+
|
|
14
|
+
var NeedShowObj = (_NeedShowObj = {}, _defineProperty(_NeedShowObj, _constant.EObjType.Assess, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Kr, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.MileStone, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.O, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Project, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Report, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Task, "1"), _NeedShowObj);
|
|
15
|
+
|
|
16
|
+
var isShowRewardObj = function isShowRewardObj(type) {
|
|
17
|
+
if (NeedShowObj[type]) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return false;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.isShowRewardObj = isShowRewardObj;
|
|
25
|
+
var _default = {
|
|
26
|
+
isShowRewardObj: isShowRewardObj
|
|
27
|
+
};
|
|
28
|
+
exports["default"] = _default;
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-share-item__content {
|
|
6
|
-
display: flex;
|
|
7
6
|
font-size: 14px;
|
|
8
7
|
color: #3f4755;
|
|
9
8
|
line-height: 24px;
|
|
10
9
|
margin-left: 88px;
|
|
11
10
|
}
|
|
12
11
|
|
|
12
|
+
.titaui-dynamic-share-item__content-obj {
|
|
13
|
+
display: flex;
|
|
14
|
+
margin-bottom: 4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.titaui-dynamic-share-item__operate-desc {
|
|
14
|
-
font-size:
|
|
18
|
+
font-size: 14px;
|
|
15
19
|
font-weight: 400;
|
|
16
20
|
color: #89919f;
|
|
17
21
|
line-height: 24px;
|
|
@@ -21,8 +21,16 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
21
21
|
|
|
22
22
|
var _openData = require("../../../../utils/open-data");
|
|
23
23
|
|
|
24
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
25
|
+
|
|
26
|
+
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
27
|
+
|
|
28
|
+
var _utils = require("../dynamic-progress/utils");
|
|
29
|
+
|
|
24
30
|
require("./index.css");
|
|
25
31
|
|
|
32
|
+
var _constant = require("../../constant");
|
|
33
|
+
|
|
26
34
|
var _excluded = ["data", "dynamicShareIsShowToping", "hasDynamicOpereateAuth"];
|
|
27
35
|
|
|
28
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -47,16 +55,56 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
47
55
|
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
48
56
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
49
57
|
|
|
58
|
+
var obj = data.obj;
|
|
59
|
+
|
|
50
60
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
51
61
|
searchKeyWord = _useContext.searchKeyWord;
|
|
52
62
|
|
|
53
63
|
var contentRef = (0, _react.useRef)();
|
|
54
64
|
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
55
65
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
66
|
+
var text = (0, _getLocale.getLocale)("Mod_postedshare"); // const { obj } = data;
|
|
67
|
+
// if (obj && obj.objType === EObjType.Kr) {
|
|
68
|
+
// text = "";
|
|
69
|
+
// }
|
|
70
|
+
// if (obj && obj.objType === EObjType.O) {
|
|
71
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Mod_objectiveprog")}`;
|
|
72
|
+
// }
|
|
73
|
+
// if (obj && obj.objType === EObjType.Task) {
|
|
74
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Data_Taskprogress")}`;
|
|
75
|
+
// }
|
|
76
|
+
// if (obj && obj.objType === EObjType.Project) {
|
|
77
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Mod_ProjectProgress")}`;
|
|
78
|
+
// }
|
|
79
|
+
|
|
56
80
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
81
|
className: "".concat(prefix, "__operate-desc")
|
|
58
|
-
},
|
|
82
|
+
}, text);
|
|
59
83
|
}, []);
|
|
84
|
+
|
|
85
|
+
var handleClickTitle = function handleClickTitle() {
|
|
86
|
+
if (!obj) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
var objType = obj.objType,
|
|
91
|
+
objId = obj.objId;
|
|
92
|
+
|
|
93
|
+
if (objType === _constant.EObjType.Kr) {
|
|
94
|
+
_drawerManager["default"].open("krDetail", {
|
|
95
|
+
krId: objId
|
|
96
|
+
});
|
|
97
|
+
} else if (objType === _constant.EObjType.O) {
|
|
98
|
+
_drawerManager["default"].open("okrDetail", {
|
|
99
|
+
okrId: objId
|
|
100
|
+
});
|
|
101
|
+
} else if (objType === _constant.EObjType.Task) {
|
|
102
|
+
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
103
|
+
} else if (objType === _constant.EObjType.Project) {
|
|
104
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
60
108
|
(0, _react.useEffect)(function () {
|
|
61
109
|
(0, _tools.highLightWord)({
|
|
62
110
|
parentDom: contentRef.current,
|
|
@@ -73,7 +121,12 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
73
121
|
user: data.publishUser
|
|
74
122
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
123
|
className: "".concat(prefix, "__content")
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
}, obj && /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
+
className: "".concat(prefix, "__content-obj")
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
127
|
+
content: (0, _tools.htmlDecodeByRegExp)(obj === null || obj === void 0 ? void 0 : obj.objName),
|
|
128
|
+
onClickTitle: handleClickTitle
|
|
129
|
+
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
130
|
ref: contentRef
|
|
78
131
|
}, (0, _openData.parseTag)(data.content))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
132
|
className: "".concat(prefix, "__files")
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.titaui-dynamic-task-item__object-name {
|
|
96
|
-
font-size:
|
|
96
|
+
font-size: 14px;
|
|
97
97
|
color: #2879ff;
|
|
98
98
|
line-height: 24px;
|
|
99
99
|
margin: 0 4px;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.titaui-dynamic-task-item__operate-desc {
|
|
109
|
-
font-size:
|
|
109
|
+
font-size: 14px;
|
|
110
110
|
font-weight: 400;
|
|
111
111
|
color: #89919f;
|
|
112
112
|
line-height: 24px;
|
|
@@ -109,7 +109,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
109
109
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
110
110
|
var dom;
|
|
111
111
|
|
|
112
|
-
if (obj === null) {
|
|
112
|
+
if (obj === null || !obj.objName) {
|
|
113
113
|
dom = "".concat((0, _getLocale.getLocale)("Mod_InChargeof")).concat((0, _getLocale.getLocale)("Mod_Tasks"));
|
|
114
114
|
} else {
|
|
115
115
|
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.titaui-dynamic-item__footer {
|
|
39
|
-
margin:
|
|
39
|
+
margin: 8px 24px 0 88px;
|
|
40
40
|
height: 54px;
|
|
41
41
|
border-radius: 0px 0px 6px 6px;
|
|
42
42
|
display: flex;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
align-items: center;
|
|
45
45
|
color: #89919f;
|
|
46
46
|
position: relative;
|
|
47
|
-
border-bottom: 1px solid #
|
|
47
|
+
border-bottom: 1px solid #f0f4fa;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.titaui-dynamic-item__footer-left {
|
|
@@ -98,6 +98,23 @@
|
|
|
98
98
|
color: #2879ff;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
.titaui-dynamic-item__footer-icon-redenvelopes::before {
|
|
102
|
+
content: '';
|
|
103
|
+
display: inline-block;
|
|
104
|
+
background: url("../img/dynamic-reward-normal.svg") no-repeat;
|
|
105
|
+
background-size: 20px 20px;
|
|
106
|
+
width: 20px;
|
|
107
|
+
height: 20px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.titaui-dynamic-item__footer-icon-redenvelopes:hover {
|
|
111
|
+
animation: redenvelopesRubberBand 1s;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.titaui-dynamic-item__footer-icon-redenvelopes:hover::before {
|
|
115
|
+
background: url("../img/dynamic-reward-hover.svg") no-repeat;
|
|
116
|
+
}
|
|
117
|
+
|
|
101
118
|
.titaui-dynamic-item__footer-number {
|
|
102
119
|
margin-left: 8px;
|
|
103
120
|
font-size: 14px;
|
|
@@ -116,14 +133,52 @@
|
|
|
116
133
|
}
|
|
117
134
|
|
|
118
135
|
.titaui-dynamic-item__communication {
|
|
119
|
-
padding: 8px 20px
|
|
136
|
+
padding: 8px 20px 24px 88px;
|
|
120
137
|
}
|
|
121
138
|
|
|
122
139
|
.titaui-dynamic-item__upvote-btn {
|
|
123
140
|
color: #a4acb9;
|
|
124
141
|
font-size: 20px;
|
|
142
|
+
width: 20px !important;
|
|
125
143
|
}
|
|
126
144
|
|
|
127
145
|
.titaui-dynamic-item__upvote-btn:hover {
|
|
128
146
|
color: #2879ff;
|
|
129
147
|
}
|
|
148
|
+
|
|
149
|
+
@keyframes redenvelopesRubberBand {
|
|
150
|
+
0% {
|
|
151
|
+
-webkit-transform: scaleX(1);
|
|
152
|
+
transform: scaleX(1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
30% {
|
|
156
|
+
-webkit-transform: scale3d(1.25, 0.75, 1);
|
|
157
|
+
transform: scale3d(1.25, 0.75, 1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
40% {
|
|
161
|
+
-webkit-transform: scale3d(0.75, 1.25, 1);
|
|
162
|
+
transform: scale3d(0.75, 1.25, 1);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
50% {
|
|
166
|
+
-webkit-transform: scale3d(1.15, 0.85, 1);
|
|
167
|
+
transform: scale3d(1.15, 0.85, 1);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
65% {
|
|
171
|
+
-webkit-transform: scale3d(0.95, 1.05, 1);
|
|
172
|
+
transform: scale3d(0.95, 1.05, 1);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
75% {
|
|
176
|
+
-webkit-transform: scale3d(1.05, 0.95, 1);
|
|
177
|
+
transform: scale3d(1.05, 0.95, 1);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
to {
|
|
181
|
+
-webkit-transform: scaleX(1);
|
|
182
|
+
transform: scaleX(1);
|
|
183
|
+
}
|
|
184
|
+
}
|