@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
|
@@ -8,31 +8,18 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-okrs-communication-item__content {
|
|
11
|
-
|
|
11
|
+
margin-left: 88px;
|
|
12
|
+
background: rgba(90, 216, 166, 0.1);
|
|
13
|
+
border-radius: 12px;
|
|
12
14
|
display: flex;
|
|
13
15
|
align-items: center;
|
|
14
|
-
|
|
15
|
-
background: rgba(240, 244, 250, 0.5);
|
|
16
|
-
padding: 16px 12px 16px 16px;
|
|
16
|
+
padding: 8px 12px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
|
-
margin-left: 69px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-dynamic-okrs-communication-item__content-img {
|
|
22
|
-
display: inline-block;
|
|
23
|
-
width: 36px;
|
|
24
|
-
border-radius: 6px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.titaui-dynamic-okrs-communication-item__content-info {
|
|
28
|
-
flex: 1;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
margin-left: 16px;
|
|
32
|
-
overflow: hidden;
|
|
33
18
|
}
|
|
34
19
|
|
|
35
20
|
.titaui-dynamic-okrs-communication-item__content-title {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
36
23
|
flex: 1;
|
|
37
24
|
word-break: keep-all;
|
|
38
25
|
white-space: nowrap;
|
|
@@ -43,42 +30,40 @@
|
|
|
43
30
|
line-height: 24px;
|
|
44
31
|
}
|
|
45
32
|
|
|
33
|
+
.titaui-dynamic-okrs-communication-item__content-title-type {
|
|
34
|
+
border-radius: 18px;
|
|
35
|
+
background: rgba(90, 216, 166, 0.5);
|
|
36
|
+
color: #ffffff;
|
|
37
|
+
margin-right: 8px;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
padding: 0 6px;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
height: 20px;
|
|
46
|
+
}
|
|
47
|
+
|
|
46
48
|
.titaui-dynamic-okrs-communication-item__content-title-text {
|
|
49
|
+
flex: 1;
|
|
47
50
|
cursor: pointer;
|
|
51
|
+
overflow: hidden;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
.titaui-dynamic-okrs-communication-item__content-title-text:hover {
|
|
51
55
|
color: #2879ff;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
.titaui-dynamic-okrs-communication-item__content-title-priority {
|
|
55
|
-
width: 18px;
|
|
56
|
-
height: 26px;
|
|
57
|
-
margin-right: 4px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
58
|
.titaui-dynamic-okrs-communication-item__operate-desc {
|
|
61
59
|
font-size: 14px;
|
|
62
60
|
font-weight: 400;
|
|
63
61
|
color: #89919f;
|
|
64
|
-
line-height:
|
|
65
|
-
margin:
|
|
62
|
+
line-height: 24px;
|
|
63
|
+
margin-left: 4px;
|
|
66
64
|
overflow: hidden;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
.titaui-dynamic-okrs-communication-item__operate-desc-wrapper {
|
|
70
68
|
display: flex;
|
|
71
69
|
}
|
|
72
|
-
|
|
73
|
-
.titaui-dynamic-okrs-communication-item-desc-operate-type {
|
|
74
|
-
display: inline-flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
padding: 0 6px;
|
|
78
|
-
height: 18px;
|
|
79
|
-
min-width: 40px;
|
|
80
|
-
border-radius: 10px 10px 10px 2px;
|
|
81
|
-
font-size: 12px;
|
|
82
|
-
color: #ffffff;
|
|
83
|
-
line-height: 18px;
|
|
84
|
-
}
|
|
@@ -11,15 +11,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
13
13
|
|
|
14
|
-
var _okrsIcon = _interopRequireDefault(require("./img/okrs-icon.png"));
|
|
15
|
-
|
|
16
14
|
var _context = require("../../context");
|
|
17
15
|
|
|
18
16
|
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
19
17
|
|
|
20
|
-
var _tooltip = require("../../../tooltip");
|
|
21
|
-
|
|
22
|
-
var _util = require("../../util");
|
|
18
|
+
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
23
19
|
|
|
24
20
|
require("./index.css");
|
|
25
21
|
|
|
@@ -43,20 +39,12 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
43
39
|
var data = _ref.data,
|
|
44
40
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
45
41
|
|
|
46
|
-
var
|
|
47
|
-
taskName = data.taskName,
|
|
48
|
-
startDate = data.startDate,
|
|
49
|
-
deadline = data.deadline,
|
|
50
|
-
feedType = data.feedType,
|
|
42
|
+
var taskName = data.taskName,
|
|
51
43
|
principalUser = data.principalUser;
|
|
52
44
|
|
|
53
45
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
54
46
|
searchKeyWord = _useContext.searchKeyWord;
|
|
55
47
|
|
|
56
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
57
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
-
|
|
60
48
|
var handleClickPlanTitle = function handleClickPlanTitle() {
|
|
61
49
|
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
62
50
|
};
|
|
@@ -71,14 +59,9 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
71
59
|
}));
|
|
72
60
|
}, [taskName, searchKeyWord]);
|
|
73
61
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
74
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
63
|
className: "".concat(prefix, "__operate-desc")
|
|
76
|
-
}, "\
|
|
77
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
78
|
-
style: {
|
|
79
|
-
background: feedTypeColor
|
|
80
|
-
}
|
|
81
|
-
}, feedTypeText));
|
|
64
|
+
}, "\u7684OKR");
|
|
82
65
|
}, []);
|
|
83
66
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
67
|
className: prefix
|
|
@@ -89,17 +72,15 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
89
72
|
user: principalUser
|
|
90
73
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
74
|
className: "".concat(prefix, "__content")
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
93
|
-
className: "".concat(prefix, "__content-img"),
|
|
94
|
-
src: _okrsIcon["default"]
|
|
95
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
-
className: "".concat(prefix, "__content-info")
|
|
97
75
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
76
|
className: "".concat(prefix, "__content-title")
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
100
|
-
|
|
77
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
|
+
className: "".concat(prefix, "__content-title-type")
|
|
79
|
+
}, "OKR"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
+
className: "".concat(prefix, "__content-title-text")
|
|
81
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
101
82
|
text: renderName,
|
|
102
|
-
|
|
83
|
+
isPercent: true
|
|
103
84
|
})))));
|
|
104
85
|
};
|
|
105
86
|
|
|
@@ -8,31 +8,18 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-plan-communication-item__content {
|
|
11
|
-
|
|
11
|
+
margin-left: 88px;
|
|
12
|
+
background: rgba(90, 216, 166, 0.1);
|
|
13
|
+
border-radius: 12px;
|
|
12
14
|
display: flex;
|
|
13
15
|
align-items: center;
|
|
14
|
-
|
|
15
|
-
background: rgba(240, 244, 250, 0.5);
|
|
16
|
-
padding: 16px 12px 16px 16px;
|
|
16
|
+
padding: 8px 12px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
|
-
margin-left: 69px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-dynamic-plan-communication-item__content-img {
|
|
22
|
-
display: inline-block;
|
|
23
|
-
width: 36px;
|
|
24
|
-
border-radius: 6px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.titaui-dynamic-plan-communication-item__content-info {
|
|
28
|
-
flex: 1;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
margin-left: 16px;
|
|
32
|
-
overflow: hidden;
|
|
33
18
|
}
|
|
34
19
|
|
|
35
20
|
.titaui-dynamic-plan-communication-item__content-title {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
36
23
|
flex: 1;
|
|
37
24
|
word-break: keep-all;
|
|
38
25
|
white-space: nowrap;
|
|
@@ -43,42 +30,40 @@
|
|
|
43
30
|
line-height: 24px;
|
|
44
31
|
}
|
|
45
32
|
|
|
33
|
+
.titaui-dynamic-plan-communication-item__content-title-type {
|
|
34
|
+
border-radius: 18px;
|
|
35
|
+
background: rgba(90, 216, 166, 0.5);
|
|
36
|
+
color: #ffffff;
|
|
37
|
+
margin-right: 8px;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
padding: 0 6px;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
height: 20px;
|
|
46
|
+
}
|
|
47
|
+
|
|
46
48
|
.titaui-dynamic-plan-communication-item__content-title-text {
|
|
49
|
+
flex: 1;
|
|
47
50
|
cursor: pointer;
|
|
51
|
+
overflow: hidden;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
.titaui-dynamic-plan-communication-item__content-title-text:hover {
|
|
51
55
|
color: #2879ff;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
.titaui-dynamic-plan-communication-item__content-title-priority {
|
|
55
|
-
width: 18px;
|
|
56
|
-
height: 26px;
|
|
57
|
-
margin-right: 4px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
58
|
.titaui-dynamic-plan-communication-item__operate-desc {
|
|
61
59
|
font-size: 14px;
|
|
62
60
|
font-weight: 400;
|
|
63
61
|
color: #89919f;
|
|
64
|
-
line-height:
|
|
65
|
-
margin:
|
|
62
|
+
line-height: 24px;
|
|
63
|
+
margin-left: 4px;
|
|
66
64
|
overflow: hidden;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
.titaui-dynamic-plan-communication-item__operate-desc-wrapper {
|
|
70
68
|
display: flex;
|
|
71
69
|
}
|
|
72
|
-
|
|
73
|
-
.titaui-dynamic-plan-communication-item-desc-operate-type {
|
|
74
|
-
display: inline-flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
padding: 0 6px;
|
|
78
|
-
height: 18px;
|
|
79
|
-
min-width: 40px;
|
|
80
|
-
border-radius: 10px 10px 10px 2px;
|
|
81
|
-
font-size: 12px;
|
|
82
|
-
color: #ffffff;
|
|
83
|
-
line-height: 18px;
|
|
84
|
-
}
|
|
@@ -9,17 +9,15 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var _planIcon = _interopRequireDefault(require("./img/plan-icon.png"));
|
|
12
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
15
13
|
|
|
16
14
|
var _context = require("../../context");
|
|
17
15
|
|
|
18
|
-
var
|
|
16
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
19
17
|
|
|
20
|
-
var _tooltip = require("../../../tooltip");
|
|
18
|
+
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
21
19
|
|
|
22
|
-
var
|
|
20
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
23
21
|
|
|
24
22
|
require("./index.css");
|
|
25
23
|
|
|
@@ -43,20 +41,12 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
43
41
|
var data = _ref.data,
|
|
44
42
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
45
43
|
|
|
46
|
-
var
|
|
47
|
-
taskName = data.taskName,
|
|
48
|
-
startDate = data.startDate,
|
|
49
|
-
deadline = data.deadline,
|
|
50
|
-
feedType = data.feedType,
|
|
44
|
+
var taskName = data.taskName,
|
|
51
45
|
principalUser = data.principalUser;
|
|
52
46
|
|
|
53
47
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
54
48
|
searchKeyWord = _useContext.searchKeyWord;
|
|
55
49
|
|
|
56
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
57
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
-
|
|
60
50
|
var handleClickPlanTitle = function handleClickPlanTitle() {
|
|
61
51
|
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
62
52
|
};
|
|
@@ -71,14 +61,9 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
71
61
|
}));
|
|
72
62
|
}, [taskName, searchKeyWord]);
|
|
73
63
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
74
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
64
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
65
|
className: "".concat(prefix, "__operate-desc")
|
|
76
|
-
}, "\u7684\u8BA1\u5212\u8868")
|
|
77
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
78
|
-
style: {
|
|
79
|
-
background: feedTypeColor
|
|
80
|
-
}
|
|
81
|
-
}, feedTypeText));
|
|
66
|
+
}, "\u7684\u8BA1\u5212\u8868");
|
|
82
67
|
}, []);
|
|
83
68
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
69
|
className: prefix
|
|
@@ -89,17 +74,15 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
89
74
|
user: principalUser
|
|
90
75
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
76
|
className: "".concat(prefix, "__content")
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
93
|
-
className: "".concat(prefix, "__content-img"),
|
|
94
|
-
src: _planIcon["default"]
|
|
95
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
-
className: "".concat(prefix, "__content-info")
|
|
97
77
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
78
|
className: "".concat(prefix, "__content-title")
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
100
|
-
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
+
className: "".concat(prefix, "__content-title-type")
|
|
81
|
+
}, (0, _getLocale.getLocale)("Menu_Title_Tasks")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
|
+
className: "".concat(prefix, "__content-title-text")
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
101
84
|
text: renderName,
|
|
102
|
-
|
|
85
|
+
isPercent: true
|
|
103
86
|
})))));
|
|
104
87
|
};
|
|
105
88
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-progress-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 88px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-progress-item__title {
|
|
@@ -14,57 +14,24 @@
|
|
|
14
14
|
|
|
15
15
|
.titaui-dynamic-progress-item__description {
|
|
16
16
|
font-size: 14px;
|
|
17
|
-
color: #
|
|
18
|
-
line-height:
|
|
19
|
-
display: flex;
|
|
20
|
-
margin-top: 12px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-progress-item__description-quoto {
|
|
24
|
-
width: 12px;
|
|
25
|
-
height: 12px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.titaui-dynamic-progress-item__description-quoto--left {
|
|
29
|
-
margin-right: 8px;
|
|
30
|
-
margin-top: -6px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.titaui-dynamic-progress-item__description-quoto--right {
|
|
34
|
-
margin-left: 8px;
|
|
17
|
+
color: #3f4755;
|
|
18
|
+
line-height: 24px;
|
|
35
19
|
margin-top: 4px;
|
|
20
|
+
display: flex;
|
|
36
21
|
}
|
|
37
22
|
|
|
38
23
|
.titaui-dynamic-progress-item__description-text {
|
|
39
24
|
white-space: pre-wrap;
|
|
40
25
|
}
|
|
41
26
|
|
|
42
|
-
.titaui-dynamic-progress-item__status
|
|
43
|
-
margin-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.titaui-dynamic-progress-item__percent-left {
|
|
47
|
-
margin-left: 8px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.titaui-dynamic-progress-item__classify {
|
|
51
|
-
display: flex;
|
|
52
|
-
width: 18px;
|
|
53
|
-
margin-left: 8px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.titaui-dynamic-progress-item__classify--desire {
|
|
57
|
-
background: url("../../img/dynamic-desire.svg") no-repeat;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.titaui-dynamic-progress-item__classify--promise {
|
|
61
|
-
background: url("../../img/dynamic-promise.svg") no-repeat;
|
|
27
|
+
.titaui-dynamic-progress-item__status {
|
|
28
|
+
margin-top: 12px;
|
|
62
29
|
}
|
|
63
30
|
|
|
64
31
|
.titaui-dynamic-progress-item__object-name {
|
|
65
32
|
font-size: 14px;
|
|
66
33
|
color: #2879ff;
|
|
67
|
-
line-height:
|
|
34
|
+
line-height: 24px;
|
|
68
35
|
margin: 0 4px;
|
|
69
36
|
overflow: hidden;
|
|
70
37
|
}
|
|
@@ -74,24 +41,15 @@
|
|
|
74
41
|
color: #5c8eff;
|
|
75
42
|
}
|
|
76
43
|
|
|
44
|
+
.titaui-dynamic-progress-item__obj-wrapper {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
|
|
77
48
|
.titaui-dynamic-progress-item__operate-desc {
|
|
78
49
|
font-size: 14px;
|
|
79
50
|
font-weight: 400;
|
|
80
51
|
color: #89919f;
|
|
81
|
-
line-height:
|
|
82
|
-
margin:
|
|
52
|
+
line-height: 24px;
|
|
53
|
+
margin-left: 4px;
|
|
83
54
|
overflow: hidden;
|
|
84
55
|
}
|
|
85
|
-
|
|
86
|
-
.titaui-dynamic-progress-item-desc-operate-type {
|
|
87
|
-
display: inline-flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
padding: 0 6px;
|
|
91
|
-
height: 18px;
|
|
92
|
-
min-width: 40px;
|
|
93
|
-
border-radius: 10px 10px 10px 2px;
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
color: #ffffff;
|
|
96
|
-
line-height: 18px;
|
|
97
|
-
}
|
|
@@ -9,12 +9,6 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
-
|
|
16
|
-
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
-
|
|
18
12
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
19
13
|
|
|
20
14
|
var _context = require("../../context");
|
|
@@ -31,10 +25,16 @@ var _objStatus = _interopRequireDefault(require("../../components/obj-status"));
|
|
|
31
25
|
|
|
32
26
|
var _constant = require("../../constant");
|
|
33
27
|
|
|
34
|
-
var _util = require("../../util");
|
|
35
|
-
|
|
36
28
|
var _getLocale = require("../../../../utils/getLocale");
|
|
37
29
|
|
|
30
|
+
var _utils = require("./utils");
|
|
31
|
+
|
|
32
|
+
var _conditionRender = _interopRequireDefault(require("../../../condition-render"));
|
|
33
|
+
|
|
34
|
+
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
35
|
+
|
|
36
|
+
var _tools = require("../../../../utils/tools");
|
|
37
|
+
|
|
38
38
|
require("./index.css");
|
|
39
39
|
|
|
40
40
|
var _excluded = ["data"];
|
|
@@ -47,8 +47,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
47
47
|
|
|
48
48
|
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); }
|
|
49
49
|
|
|
50
|
-
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; }
|
|
51
|
-
|
|
52
50
|
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; }
|
|
53
51
|
|
|
54
52
|
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; }
|
|
@@ -64,7 +62,6 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
64
62
|
progressGrow = data.progressGrow,
|
|
65
63
|
riskLevel = data.riskLevel,
|
|
66
64
|
obj = data.obj,
|
|
67
|
-
classify = data.classify,
|
|
68
65
|
relationParentName = data.relationParentName,
|
|
69
66
|
relationParentId = data.relationParentId,
|
|
70
67
|
publishUser = data.publishUser;
|
|
@@ -72,10 +69,6 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
72
69
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
73
70
|
searchKeyWord = _useContext.searchKeyWord;
|
|
74
71
|
|
|
75
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
76
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
77
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
78
|
-
|
|
79
72
|
var handleClickTitle = function handleClickTitle() {
|
|
80
73
|
if (!obj) {
|
|
81
74
|
return;
|
|
@@ -95,7 +88,7 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
95
88
|
} else if (objType === _constant.EObjType.Task) {
|
|
96
89
|
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
97
90
|
} else if (objType === _constant.EObjType.Project) {
|
|
98
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
91
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
99
92
|
}
|
|
100
93
|
};
|
|
101
94
|
|
|
@@ -105,53 +98,21 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
105
98
|
});
|
|
106
99
|
};
|
|
107
100
|
|
|
108
|
-
var renderTitle = (0, _react.useMemo)(function () {
|
|
109
|
-
if (!obj) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
var objType = obj.objType,
|
|
114
|
-
objName = obj.objName;
|
|
115
|
-
|
|
116
|
-
if (objType === _constant.EObjType.Kr) {
|
|
117
|
-
return "KR\uFF1A".concat(objName);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (objType === _constant.EObjType.O) {
|
|
121
|
-
return "O\uFF1A".concat(objName);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (objType === _constant.EObjType.Task) {
|
|
125
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Tasks"), "\uFF1A").concat(objName);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (objType === _constant.EObjType.Project) {
|
|
129
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Project"), "\uFF1A").concat(objName);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return "";
|
|
133
|
-
}, []);
|
|
134
|
-
var Classify = (0, _react.useMemo)(function () {
|
|
135
|
-
var _classNames;
|
|
136
|
-
|
|
137
|
-
if (!classify || Number(classify) == 0) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
-
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))
|
|
143
|
-
});
|
|
144
|
-
}, [classify]);
|
|
145
101
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
146
102
|
var dom;
|
|
147
103
|
|
|
148
104
|
if (obj && obj.objType === _constant.EObjType.Kr) {
|
|
149
|
-
dom = /*#__PURE__*/_react["default"].createElement("span",
|
|
105
|
+
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
+
className: "".concat(prefix, "__obj-wrapper")
|
|
107
|
+
}, (0, _getLocale.getLocale)("Mod_Updated"), (0, _getLocale.getLocale)("Mod_Objective"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
150
108
|
className: "".concat(prefix, "__object-name"),
|
|
151
109
|
onClick: handleClickOTitle
|
|
152
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
153
|
-
|
|
154
|
-
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
111
|
+
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
112
|
+
str: relationParentName,
|
|
113
|
+
keyWord: searchKeyWord
|
|
114
|
+
}),
|
|
115
|
+
isPercent: true
|
|
155
116
|
})), (0, _getLocale.getLocale)("Mod_skeyrprogress"));
|
|
156
117
|
}
|
|
157
118
|
|
|
@@ -167,14 +128,9 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
167
128
|
dom = "".concat((0, _getLocale.getLocale)("Mod_Updated")).concat((0, _getLocale.getLocale)("Mod_ProjectProgress"));
|
|
168
129
|
}
|
|
169
130
|
|
|
170
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
131
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
171
132
|
className: "".concat(prefix, "__operate-desc")
|
|
172
|
-
}, dom)
|
|
173
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
174
|
-
style: {
|
|
175
|
-
background: feedTypeColor
|
|
176
|
-
}
|
|
177
|
-
}, feedTypeText));
|
|
133
|
+
}, dom);
|
|
178
134
|
}, [searchKeyWord]);
|
|
179
135
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
136
|
className: prefix
|
|
@@ -187,32 +143,29 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
187
143
|
className: "".concat(prefix, "__content")
|
|
188
144
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
189
145
|
className: "".concat(prefix, "__title")
|
|
190
|
-
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
191
|
-
content:
|
|
192
|
-
onClickTitle: handleClickTitle
|
|
193
|
-
|
|
194
|
-
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
147
|
+
content: (0, _tools.htmlDecodeByRegExp)(obj === null || obj === void 0 ? void 0 : obj.objName),
|
|
148
|
+
onClickTitle: handleClickTitle
|
|
149
|
+
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
+
className: "".concat(prefix, "__status")
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
152
|
+
condition: obj && obj.objType !== _constant.EObjType.Task && obj.objType !== _constant.EObjType.Project
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
|
|
195
154
|
oStatus: 1,
|
|
196
155
|
riskLevel: riskLevel,
|
|
197
|
-
extraClass: "".concat(prefix, "__status-
|
|
198
|
-
}), /*#__PURE__*/_react["default"].createElement(_percent["default"], {
|
|
156
|
+
extraClass: "".concat(prefix, "__status-text")
|
|
157
|
+
})), /*#__PURE__*/_react["default"].createElement(_percent["default"], {
|
|
199
158
|
percent: progress,
|
|
200
159
|
growPercent: progressGrow,
|
|
201
|
-
extraClass: "".concat(prefix, "
|
|
160
|
+
extraClass: "".concat(prefix, "__status-percent")
|
|
202
161
|
})), progressDescription && /*#__PURE__*/_react["default"].createElement("div", {
|
|
203
162
|
className: "".concat(prefix, "__description")
|
|
204
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("
|
|
205
|
-
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
|
|
206
|
-
src: _dynamicLeftQuoto["default"]
|
|
207
|
-
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
208
164
|
className: "".concat(prefix, "__description-text")
|
|
209
165
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
210
166
|
str: progressDescription,
|
|
211
167
|
keyWord: searchKeyWord
|
|
212
|
-
}))
|
|
213
|
-
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
|
|
214
|
-
src: _dynamicRightQuoto["default"]
|
|
215
|
-
})))));
|
|
168
|
+
}))))));
|
|
216
169
|
};
|
|
217
170
|
|
|
218
171
|
var _default = DynamicProgress;
|