@titaui/pc 1.10.4 → 1.10.6-3.beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.prettierignore +1 -1
- 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 +108 -87
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +22 -16
- package/lib/components/communication/index.css +50 -10
- package/lib/components/communication/index.js +86 -30
- package/lib/components/communication/style.js +8 -6
- 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-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 +3 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- 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 +8 -7
- package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +44 -27
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +43 -31
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +5 -33
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +58 -18
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +31 -21
- 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 +56 -44
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +52 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +39 -27
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +25 -29
- package/lib/components/dynamic/dynamic-item/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 +10 -18
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +15 -30
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +31 -14
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +14 -25
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +13 -55
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +33 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +13 -24
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +56 -31
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +78 -34
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +29 -32
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +12 -18
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +20 -22
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +42 -29
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +8 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +23 -66
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +8 -19
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +59 -36
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +32 -28
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +11 -25
- package/lib/components/dynamic/dynamic-item/index.css +59 -4
- package/lib/components/dynamic/dynamic-item/index.js +148 -17
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +2 -1
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +1 -1
- 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/util.js +41 -81
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/file-list/components/single-file/index.css +14 -12
- 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/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +45 -9
- package/lib/components/mblog/style.js +4 -4
- 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/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 +8 -2
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- 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 +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +27 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +8 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +7 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +20 -1
- package/lib/components/okr-detail/e-list/index.js +23 -7
- package/lib/components/okr-detail/e-list/util.js +7 -2
- package/lib/components/okr-detail/index.js +2 -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-progress-detail/index.js +5 -1
- 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.css +1 -0
- package/lib/components/progress/circle-progress/index.js +8 -3
- 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/search-key-handle/index.js +7 -2
- 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 +131 -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 +94 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/video-modal/components/video-box/index.css +240 -0
- package/lib/components/video-modal/components/video-box/index.js +334 -0
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/close.png +0 -0
- package/lib/components/video-modal/img/full.svg +21 -0
- package/lib/components/video-modal/img/muted.svg +14 -0
- package/lib/components/video-modal/img/not-muted.svg +22 -0
- package/lib/components/video-modal/img/pause.svg +13 -0
- package/lib/components/video-modal/img/play.svg +18 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +83 -0
- package/lib/components/video-modal/index.js +182 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +40 -0
- 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/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- 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/utils/bs-global.js +13 -9
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +2 -1
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDynamicTitleProps = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _constant = require("../../constant");
|
|
9
|
+
|
|
10
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
11
|
+
|
|
12
|
+
var getDynamicTitleProps = function getDynamicTitleProps(obj) {
|
|
13
|
+
if (!obj) {
|
|
14
|
+
return {
|
|
15
|
+
type: "",
|
|
16
|
+
typeBgColor: "#ffffff",
|
|
17
|
+
titleBgColor: "#ffffff",
|
|
18
|
+
contentColor: ""
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var objType = obj.objType;
|
|
23
|
+
|
|
24
|
+
if (objType === _constant.EObjType.Kr) {
|
|
25
|
+
return {
|
|
26
|
+
type: "KR",
|
|
27
|
+
typeBgColor: "rgba(90, 216, 166, 0.5)",
|
|
28
|
+
titleBgColor: "rgba(90, 216, 166, 0.1)",
|
|
29
|
+
contentColor: "#5AD8A6"
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (objType === _constant.EObjType.O) {
|
|
34
|
+
return {
|
|
35
|
+
type: (0, _getLocale.getLocale)("Mod_Objective"),
|
|
36
|
+
typeBgColor: "rgba(40, 121, 255, 0.5)",
|
|
37
|
+
titleBgColor: "rgba(40, 121, 255, 0.1)",
|
|
38
|
+
contentColor: "#2879FF"
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (objType === _constant.EObjType.Task) {
|
|
43
|
+
return {
|
|
44
|
+
type: (0, _getLocale.getLocale)("Mod_Tasks"),
|
|
45
|
+
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
46
|
+
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
47
|
+
contentColor: "#5C8EFF"
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (objType === _constant.EObjType.Project) {
|
|
52
|
+
return {
|
|
53
|
+
type: (0, _getLocale.getLocale)("Mod_Project"),
|
|
54
|
+
typeBgColor: "rgba(98, 77, 255, 0.5)",
|
|
55
|
+
titleBgColor: "rgba(98, 77, 255, 0.1)",
|
|
56
|
+
contentColor: "#624DFF"
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
type: "",
|
|
62
|
+
typeBgColor: "#ffffff",
|
|
63
|
+
titleBgColor: "#ffffff",
|
|
64
|
+
contentColor: ""
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.getDynamicTitleProps = getDynamicTitleProps;
|
|
69
|
+
var _default = {
|
|
70
|
+
getDynamicTitleProps: getDynamicTitleProps
|
|
71
|
+
};
|
|
72
|
+
exports["default"] = _default;
|
|
@@ -8,30 +8,27 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-project-item__content {
|
|
11
|
-
height:
|
|
11
|
+
height: 68px;
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
|
-
border-radius:
|
|
15
|
-
background: rgba(
|
|
16
|
-
padding:
|
|
14
|
+
border-radius: 12px;
|
|
15
|
+
background: rgba(98, 77, 255, 0.06);
|
|
16
|
+
padding: 8px 12px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
|
-
margin-left:
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-dynamic-project-item__content-img {
|
|
22
|
-
display: inline-block;
|
|
23
|
-
width: 36px;
|
|
24
|
-
border-radius: 6px;
|
|
18
|
+
margin-left: 88px;
|
|
25
19
|
}
|
|
26
20
|
|
|
27
21
|
.titaui-dynamic-project-item__content-info {
|
|
28
22
|
flex: 1;
|
|
29
23
|
display: flex;
|
|
30
24
|
flex-direction: column;
|
|
31
|
-
margin-left: 16px;
|
|
32
25
|
overflow: hidden;
|
|
33
26
|
}
|
|
34
27
|
|
|
28
|
+
.titaui-dynamic-project-item__content-status-icon {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
35
32
|
.titaui-dynamic-project-item__content-status-and-time-range {
|
|
36
33
|
display: flex;
|
|
37
34
|
align-items: center;
|
|
@@ -59,10 +56,33 @@
|
|
|
59
56
|
font-weight: 600;
|
|
60
57
|
color: #3f4755;
|
|
61
58
|
line-height: 24px;
|
|
59
|
+
display: flex;
|
|
60
|
+
margin-bottom: 4px;
|
|
61
|
+
align-items: center;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.titaui-dynamic-project-item__content-title-
|
|
64
|
+
.titaui-dynamic-project-item__content-title-type {
|
|
65
|
+
border-radius: 18px;
|
|
66
|
+
background: rgba(98, 77, 255, 0.5);
|
|
67
|
+
color: #ffffff;
|
|
68
|
+
margin-right: 8px;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
padding: 0 6px;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
height: 20px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.titaui-dynamic-project-item__content-title-text {
|
|
80
|
+
flex: 1;
|
|
65
81
|
cursor: pointer;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.titaui-dynamic-project-item__content-title-text:hover {
|
|
66
86
|
color: #2879ff;
|
|
67
87
|
}
|
|
68
88
|
|
|
@@ -76,20 +96,7 @@
|
|
|
76
96
|
font-size: 14px;
|
|
77
97
|
font-weight: 400;
|
|
78
98
|
color: #89919f;
|
|
79
|
-
line-height:
|
|
80
|
-
margin:
|
|
99
|
+
line-height: 24px;
|
|
100
|
+
margin-left: 4px;
|
|
81
101
|
overflow: hidden;
|
|
82
102
|
}
|
|
83
|
-
|
|
84
|
-
.titaui-dynamic-project-item-desc-operate-type {
|
|
85
|
-
display: inline-flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
padding: 0 6px;
|
|
89
|
-
height: 18px;
|
|
90
|
-
min-width: 40px;
|
|
91
|
-
border-radius: 10px 10px 10px 2px;
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
color: #ffffff;
|
|
94
|
-
line-height: 18px;
|
|
95
|
-
}
|
|
@@ -23,12 +23,10 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
23
23
|
|
|
24
24
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
25
25
|
|
|
26
|
-
var _dynamicProject = _interopRequireDefault(require("./img/dynamic-project.png"));
|
|
27
|
-
|
|
28
|
-
var _util = require("../../util");
|
|
29
|
-
|
|
30
26
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
27
|
|
|
28
|
+
var _tools = require("../../../../utils/tools");
|
|
29
|
+
|
|
32
30
|
require("./index.css");
|
|
33
31
|
|
|
34
32
|
var _excluded = ["data"];
|
|
@@ -60,10 +58,6 @@ var DynamicProject = function DynamicProject(_ref) {
|
|
|
60
58
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
61
59
|
searchKeyWord = _useContext.searchKeyWord;
|
|
62
60
|
|
|
63
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
64
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
65
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
66
|
-
|
|
67
61
|
var handleClickTitle = function handleClickTitle() {
|
|
68
62
|
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(data.obj.objId)));
|
|
69
63
|
};
|
|
@@ -73,19 +67,14 @@ var DynamicProject = function DynamicProject(_ref) {
|
|
|
73
67
|
className: "".concat(prefix, "__content-title-text"),
|
|
74
68
|
onClick: handleClickTitle
|
|
75
69
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
76
|
-
str: workName,
|
|
70
|
+
str: (0, _tools.htmlDecodeByRegExp)(workName),
|
|
77
71
|
keyWord: searchKeyWord
|
|
78
72
|
}));
|
|
79
73
|
}, [workName, searchKeyWord]);
|
|
80
74
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
81
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
76
|
className: "".concat(prefix, "__operate-desc")
|
|
83
|
-
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Feed_Set_Project"))
|
|
84
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
85
|
-
style: {
|
|
86
|
-
background: feedTypeColor
|
|
87
|
-
}
|
|
88
|
-
}, feedTypeText));
|
|
77
|
+
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Feed_Set_Project"));
|
|
89
78
|
}, []);
|
|
90
79
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
80
|
className: prefix
|
|
@@ -96,26 +85,26 @@ var DynamicProject = function DynamicProject(_ref) {
|
|
|
96
85
|
user: principalUser
|
|
97
86
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
87
|
className: "".concat(prefix, "__content")
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
100
|
-
className: "".concat(prefix, "__content-img"),
|
|
101
|
-
src: _dynamicProject["default"],
|
|
102
|
-
alt: ""
|
|
103
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
89
|
className: "".concat(prefix, "__content-info")
|
|
105
90
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
91
|
className: "".concat(prefix, "__content-title")
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
|
+
className: "".concat(prefix, "__content-title-type")
|
|
94
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Project")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
|
+
className: "".concat(prefix, "__content-title-text")
|
|
107
96
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
108
97
|
isPercent: true,
|
|
109
98
|
text: renderName,
|
|
110
99
|
minusWidth: 30
|
|
111
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
101
|
className: "".concat(prefix, "__content-status-and-time-range")
|
|
113
102
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
114
|
-
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
|
|
103
|
+
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
|
|
115
104
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
105
|
className: "".concat(prefix, "__content-status-text")
|
|
117
106
|
}, (0, _constant.getEStatusClass2StatusTypeText)()[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
118
|
-
className: (0, _classnames["default"])("tu-icon-deferred")
|
|
107
|
+
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__content-status-icon"))
|
|
119
108
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
120
109
|
className: "".concat(prefix, "__content-time-range")
|
|
121
110
|
}, startDate, "-", deadline)))));
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!-- Generator: Sketch 64 (93537) - https://sketch.com -->
|
|
4
|
+
<title>形状结合</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<defs>
|
|
7
|
+
<radialGradient cx="50%" cy="50%" fx="50%" fy="50%" r="65.0566151%" gradientTransform="translate(0.500000,0.500000),scale(0.777778,1.000000),rotate(88.840962),scale(1.000000,1.351545),translate(-0.500000,-0.500000)" id="radialGradient-1">
|
|
8
|
+
<stop stop-color="#A7B2C4" offset="0%"></stop>
|
|
9
|
+
<stop stop-color="#BFC7D5" stop-opacity="0" offset="100%"></stop>
|
|
10
|
+
</radialGradient>
|
|
11
|
+
</defs>
|
|
12
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
+
<g id="动态-任务" transform="translate(-115.000000, -865.000000)" fill="url(#radialGradient-1)" fill-rule="nonzero">
|
|
14
|
+
<g id="新建目标-负责目标" transform="translate(11.000000, 715.000000)">
|
|
15
|
+
<g id="编组-3" transform="translate(93.000000, 102.000000)">
|
|
16
|
+
<g id="形状结合-2" transform="translate(11.000000, 48.000000)">
|
|
17
|
+
<path d="M3.8056793,2.14936144 C3.96786934,2.33036776 3.94952786,2.60864824 3.764451,2.76625129 C1.94131475,4.32153569 0.893246686,6.5928146 0.893246686,8.9999467 C0.893246686,11.4071772 1.94131475,13.680267 3.764451,15.2328548 C3.8652491,15.3211141 3.9174703,15.4417521 3.9174703,15.5624689 C3.9174703,15.6633451 3.88172841,15.7695948 3.8056793,15.85065 C3.64354933,16.0325618 3.36135866,16.0505916 3.17445966,15.8921028 C1.1552737,14.1719719 -1.11185559e-15,11.661149 -1.6007069e-15,8.99996636 C-2.08888207e-15,6.34246451 1.15525366,3.82894496 3.17353858,2.10971955 C3.36043758,1.94943961 3.64352929,1.96654427 3.8056793,2.14936144 Z M14.1943207,2.14936144 C14.3564707,1.96654427 14.6395624,1.94943961 14.8264614,2.10971955 C16.8447463,3.82894496 18,6.34246451 18,8.99996636 C18,11.661149 16.8447263,14.1719719 14.8255403,15.8921028 C14.6386413,16.0505916 14.3564507,16.0325618 14.1943207,15.85065 C14.1182716,15.7695948 14.0825297,15.6633451 14.0825297,15.5624689 C14.0825297,15.4417521 14.1347509,15.3211141 14.235549,15.2328548 C16.0586852,13.680267 17.1067533,11.4071772 17.1067533,8.9999467 C17.1067533,6.5928146 16.0586852,4.32153569 14.235549,2.76625129 C14.0504721,2.60864824 14.0321307,2.33036776 14.1943207,2.14936144 Z M5.60410658,3.96491623 C5.76079018,4.15042999 5.73237689,4.42601388 5.53999147,4.57908979 C4.18682589,5.6543807 3.40903452,7.26824215 3.40903452,8.99994668 C3.40903452,10.7326747 4.18682589,12.3437806 5.53999147,13.4226932 C5.65082133,13.5073504 5.7049047,13.6352122 5.7049047,13.7613025 C5.7049047,13.858557 5.67190603,13.9549061 5.60594876,14.035981 C5.45018624,14.2260022 5.16803563,14.251236 4.97563018,14.098101 C3.41085666,12.8571173 2.5130046,11.0001295 2.5130046,8.9999467 C2.5130046,7.00346433 3.41085666,5.14287449 4.97378801,3.90096565 C5.16619345,3.74696462 5.44838412,3.77578077 5.60410658,3.96491623 Z M12.3958934,3.96491623 C12.5516159,3.77578077 12.8338065,3.74696462 13.026212,3.90096565 C14.5891433,5.14287449 15.4869954,7.00346433 15.4869954,8.9999467 C15.4869954,11.0001295 14.5891433,12.8571173 13.0243698,14.098101 C12.8319644,14.251236 12.5498138,14.2260022 12.3940512,14.035981 C12.328094,13.9549061 12.2950953,13.858557 12.2950953,13.7613025 C12.2950953,13.6352122 12.3491787,13.5073504 12.4600085,13.4226932 C13.8131741,12.3437806 14.5909655,10.7326747 14.5909655,8.99994668 C14.5909655,7.26824215 13.8131741,5.6543807 12.4600085,4.57908979 C12.2676231,4.42601388 12.2392098,4.15042999 12.3958934,3.96491623 Z M7.42724285,5.80389397 C7.48036509,5.88136688 7.50421303,5.96783499 7.50421303,6.05066172 C7.50421303,6.19116011 7.43455141,6.32894221 7.30816331,6.41450489 C6.43964564,6.98905627 5.92292017,7.95630632 5.92292017,8.9999467 C5.92292017,10.0293168 6.4304749,10.9883983 7.2760657,11.5639142 C7.48036509,11.7008106 7.52894201,11.9763354 7.3869356,12.1744857 C7.2476524,12.3726164 6.96546175,12.4194426 6.7639256,12.2798694 C5.67557032,11.5423021 5.02693028,10.3138762 5.02693028,8.9999467 C5.02693028,7.66629467 5.6902275,6.42891296 6.80609501,5.69042057 C7.00853222,5.5535242 7.28705858,5.60759385 7.42724285,5.80389397 Z M10.5727572,5.80389397 C10.7129414,5.60759385 10.9914678,5.5535242 11.193905,5.69042057 C12.3097725,6.42891296 12.9730697,7.66629467 12.9730697,8.9999467 C12.9730697,10.3138762 12.3244297,11.5423021 11.2360744,12.2798694 C11.0345383,12.4194426 10.7523476,12.3726164 10.6130644,12.1744857 C10.471058,11.9763354 10.5196349,11.7008106 10.7239343,11.5639142 C11.5695251,10.9883983 12.0770798,10.0293168 12.0770798,8.9999467 C12.0770798,7.95630632 11.5603544,6.98905627 10.6918367,6.41450489 C10.5654486,6.32894221 10.495787,6.19116011 10.495787,6.05066172 C10.495787,5.96783499 10.5196349,5.88136688 10.5727572,5.80389397 Z M8.97643591,8.12261234 C9.46179035,8.12261234 9.85567513,8.51609834 9.85567513,8.99786332 C9.85567513,9.4814785 9.46179033,9.87230728 8.97643591,9.87230728 C8.48930362,9.87230728 8.09535892,9.48149818 8.09535892,8.99786332 C8.09535892,8.51609834 8.48930364,8.12261234 8.97643591,8.12261234 Z" id="形状结合" transform="translate(9.000000, 9.000000) rotate(-90.000000) translate(-9.000000, -9.000000) "></path>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
|
|
3
1
|
.titaui-dynamic-relative-item {
|
|
4
2
|
position: relative;
|
|
5
3
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
4
|
}
|
|
7
5
|
|
|
8
6
|
.titaui-dynamic-relative-item__content {
|
|
9
|
-
margin-left:
|
|
7
|
+
margin-left: 88px;
|
|
10
8
|
position: relative;
|
|
11
9
|
}
|
|
12
10
|
|
|
@@ -15,16 +13,51 @@
|
|
|
15
13
|
flex-direction: column;
|
|
16
14
|
}
|
|
17
15
|
|
|
16
|
+
.titaui-dynamic-relative-item__obj-other-info {
|
|
17
|
+
line-height: 18px;
|
|
18
|
+
}
|
|
19
|
+
|
|
18
20
|
.titaui-dynamic-relative-item__obj-base-info {
|
|
19
21
|
display: flex;
|
|
20
22
|
align-items: center;
|
|
21
23
|
width: 100%;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
.titaui-dynamic-relative-item__obj-base-info-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
.titaui-dynamic-relative-item__obj-base-info-left {
|
|
27
|
+
width: 40px;
|
|
28
|
+
height: 40px;
|
|
29
|
+
min-width: 40px;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
margin-right: 12px;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-relative-item__obj-base-info-left--o {
|
|
38
|
+
background: rgba(40, 121, 255, 0.16);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-relative-item__obj-base-info-left--kr {
|
|
42
|
+
background: rgba(90, 216, 166, 0.16);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-relative-item__obj-base-info-left--task {
|
|
46
|
+
background: rgba(40, 121, 255, 0.16);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.titaui-dynamic-relative-item__obj-base-info-left--project {
|
|
50
|
+
background: rgba(98, 77, 255, 0.16);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.titaui-dynamic-relative-item__obj-base-info-left-img {
|
|
54
|
+
width: 20px;
|
|
55
|
+
height: 20px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-dynamic-relative-item__obj-base-info-right {
|
|
59
|
+
flex: 1;
|
|
60
|
+
overflow: hidden;
|
|
28
61
|
}
|
|
29
62
|
|
|
30
63
|
.titaui-dynamic-relative-item__obj-title {
|
|
@@ -33,7 +66,7 @@
|
|
|
33
66
|
word-break: keep-all;
|
|
34
67
|
font-size: 14px;
|
|
35
68
|
font-weight: 600;
|
|
36
|
-
color: #
|
|
69
|
+
color: #3f4755;
|
|
37
70
|
line-height: 22px;
|
|
38
71
|
}
|
|
39
72
|
|
|
@@ -44,50 +77,42 @@
|
|
|
44
77
|
|
|
45
78
|
.titaui-dynamic-relative-item__obj-principal-user {
|
|
46
79
|
font-size: 12px;
|
|
47
|
-
color: #
|
|
80
|
+
color: #89919f;
|
|
48
81
|
line-height: 18px;
|
|
49
|
-
margin-left: 26px;
|
|
50
82
|
}
|
|
51
83
|
|
|
52
84
|
.titaui-dynamic-relative-item__obj-principal-user::after {
|
|
53
|
-
content: '
|
|
85
|
+
content: '';
|
|
86
|
+
width: 1px;
|
|
87
|
+
height: 14px;
|
|
88
|
+
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
|
|
54
89
|
display: inline-block;
|
|
55
|
-
margin: 0
|
|
90
|
+
margin: 0 8px;
|
|
91
|
+
vertical-align: text-top;
|
|
56
92
|
}
|
|
57
93
|
|
|
58
94
|
.titaui-dynamic-relative-item__obj-cycle {
|
|
59
95
|
font-size: 12px;
|
|
60
|
-
color: #
|
|
96
|
+
color: #89919f;
|
|
61
97
|
line-height: 18px;
|
|
62
98
|
}
|
|
63
99
|
|
|
64
|
-
.titaui-dynamic-relative-
|
|
100
|
+
.titaui-dynamic-relative-item__rela-img {
|
|
65
101
|
position: absolute;
|
|
66
|
-
top:
|
|
102
|
+
top: 51px;
|
|
103
|
+
width: 18px;
|
|
104
|
+
left: 10px;
|
|
67
105
|
}
|
|
68
106
|
|
|
69
107
|
.titaui-dynamic-relative-item__space {
|
|
70
|
-
height:
|
|
108
|
+
height: 30px;
|
|
71
109
|
}
|
|
72
110
|
|
|
73
111
|
.titaui-dynamic-relative-item__operate-desc {
|
|
74
112
|
font-size: 14px;
|
|
75
113
|
font-weight: 400;
|
|
76
114
|
color: #89919f;
|
|
77
|
-
line-height:
|
|
78
|
-
margin:
|
|
115
|
+
line-height: 24px;
|
|
116
|
+
margin-left: 4px;
|
|
79
117
|
overflow: hidden;
|
|
80
118
|
}
|
|
81
|
-
|
|
82
|
-
.titaui-dynamic-relative-item-desc-operate-type {
|
|
83
|
-
display: inline-flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
padding: 0 6px;
|
|
87
|
-
height: 18px;
|
|
88
|
-
min-width: 40px;
|
|
89
|
-
border-radius: 10px 10px 10px 2px;
|
|
90
|
-
font-size: 12px;
|
|
91
|
-
color: #ffffff;
|
|
92
|
-
line-height: 18px;
|
|
93
|
-
}
|
|
@@ -19,18 +19,26 @@ var _openData = require("../../../../utils/open-data");
|
|
|
19
19
|
|
|
20
20
|
var _constant = require("../../constant");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _dynamicRela = _interopRequireDefault(require("./img/dynamic-rela.svg"));
|
|
23
23
|
|
|
24
24
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
25
25
|
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
26
|
var _context = require("../../context");
|
|
29
27
|
|
|
30
28
|
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
31
29
|
|
|
32
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
33
31
|
|
|
32
|
+
var _dynamicRelaO = _interopRequireDefault(require("./img/dynamic-rela-o.png"));
|
|
33
|
+
|
|
34
|
+
var _dynamicRelaKr = _interopRequireDefault(require("./img/dynamic-rela-kr.png"));
|
|
35
|
+
|
|
36
|
+
var _dynamicRelaProject = _interopRequireDefault(require("./img/dynamic-rela-project.png"));
|
|
37
|
+
|
|
38
|
+
var _dynamicRelaTask = _interopRequireDefault(require("./img/dynamic-rela-task.png"));
|
|
39
|
+
|
|
40
|
+
var _tools = require("../../../../utils/tools");
|
|
41
|
+
|
|
34
42
|
require("./index.css");
|
|
35
43
|
|
|
36
44
|
var _excluded = ["data"];
|
|
@@ -41,8 +49,22 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
41
49
|
|
|
42
50
|
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; }
|
|
43
51
|
|
|
52
|
+
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; }
|
|
53
|
+
|
|
44
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); }
|
|
45
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
|
+
|
|
46
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; }
|
|
47
69
|
|
|
48
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; }
|
|
@@ -50,6 +72,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
50
72
|
var prefix = "titaui-dynamic-relative-item";
|
|
51
73
|
|
|
52
74
|
var DynamicRelative = function DynamicRelative(_ref) {
|
|
75
|
+
var _classNames, _classNames2;
|
|
76
|
+
|
|
53
77
|
var data = _ref.data,
|
|
54
78
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
55
79
|
|
|
@@ -68,9 +92,10 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
68
92
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
69
93
|
searchKeyWord = _useContext.searchKeyWord;
|
|
70
94
|
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
95
|
+
var _useState = (0, _react.useState)(null),
|
|
96
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
97
|
+
relatedImgUrl = _useState2[0],
|
|
98
|
+
setRelatedImgUrl = _useState2[1];
|
|
74
99
|
|
|
75
100
|
var handleClickTitle = function handleClickTitle(id, type) {
|
|
76
101
|
if (type === _constant.EObjType.Kr) {
|
|
@@ -86,7 +111,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
86
111
|
}
|
|
87
112
|
|
|
88
113
|
if (type === _constant.EObjType.Project) {
|
|
89
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(id)));
|
|
114
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(id)));
|
|
90
115
|
}
|
|
91
116
|
|
|
92
117
|
if (type === _constant.EObjType.Task) {
|
|
@@ -105,14 +130,22 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
105
130
|
text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Mod_Objective"));
|
|
106
131
|
}
|
|
107
132
|
|
|
108
|
-
|
|
133
|
+
if (relateObjType === _constant.EObjType.Project) {
|
|
134
|
+
text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Feed_Set_Project"));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
138
|
className: "".concat(prefix, "__operate-desc")
|
|
110
|
-
}, text)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
139
|
+
}, text);
|
|
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
|
+
}
|
|
116
149
|
}, []);
|
|
117
150
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
118
151
|
className: prefix
|
|
@@ -127,12 +160,15 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
127
160
|
className: "".concat(prefix, "__obj")
|
|
128
161
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
162
|
className: "".concat(prefix, "__obj-base-info")
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
131
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
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))
|
|
165
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
166
|
+
alt: "",
|
|
167
|
+
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
168
|
+
src: relatedImgUrl || ""
|
|
169
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "".concat(prefix, "__obj-base-info-right")
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
136
172
|
className: "".concat(prefix, "__obj-title"),
|
|
137
173
|
onClick: function onClick() {
|
|
138
174
|
handleClickTitle(relateObjId, relateObjType);
|
|
@@ -140,46 +176,54 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
140
176
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
141
177
|
isPercent: true,
|
|
142
178
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
143
|
-
str: relateObjName,
|
|
179
|
+
str: (0, _tools.htmlDecodeByRegExp)(relateObjName),
|
|
144
180
|
keyWord: searchKeyWord
|
|
145
181
|
})
|
|
146
|
-
}))
|
|
182
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
|
+
className: "".concat(prefix, "__obj-other-info")
|
|
184
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
147
185
|
className: "".concat(prefix, "__obj-principal-user")
|
|
148
186
|
}, rObjprincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
149
187
|
id: rObjprincipalUser.userId,
|
|
150
188
|
name: rObjprincipalUser.name
|
|
151
189
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
190
|
className: "".concat(prefix, "__obj-cycle")
|
|
153
|
-
}, rObjCycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
154
|
-
className: "".concat(prefix, "
|
|
155
|
-
src:
|
|
191
|
+
}, rObjCycleName))))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
192
|
+
className: "".concat(prefix, "__rela-img"),
|
|
193
|
+
src: _dynamicRela["default"],
|
|
194
|
+
alt: ""
|
|
156
195
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
196
|
className: "".concat(prefix, "__space")
|
|
158
197
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
198
|
className: "".concat(prefix, "__obj")
|
|
160
199
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
200
|
className: "".concat(prefix, "__obj-base-info")
|
|
162
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
163
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
201
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
202
|
+
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "__obj-base-info-left--task"), objType === _constant.EObjType.Task), _defineProperty(_classNames2, "".concat(prefix, "__obj-base-info-left--project"), objType === _constant.EObjType.Project), _classNames2))
|
|
203
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
204
|
+
alt: "",
|
|
205
|
+
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
206
|
+
src: objType === _constant.EObjType.Task ? _dynamicRelaTask["default"] : _dynamicRelaProject["default"]
|
|
207
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
208
|
+
className: "".concat(prefix, "__obj-base-info-right")
|
|
209
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
168
210
|
className: "".concat(prefix, "__obj-title"),
|
|
169
211
|
onClick: function onClick() {
|
|
170
212
|
handleClickTitle(objId, objType);
|
|
171
213
|
}
|
|
172
214
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
173
215
|
isPercent: true,
|
|
174
|
-
text: objName
|
|
175
|
-
}))
|
|
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", {
|
|
176
220
|
className: "".concat(prefix, "__obj-principal-user")
|
|
177
221
|
}, objPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
178
222
|
id: objPrincipalUser.userId,
|
|
179
223
|
name: objPrincipalUser.name
|
|
180
224
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
181
225
|
className: "".concat(prefix, "__obj-cycle")
|
|
182
|
-
}, objCycleName)))));
|
|
226
|
+
}, objCycleName)))))));
|
|
183
227
|
};
|
|
184
228
|
|
|
185
229
|
var _default = DynamicRelative;
|