@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,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
13
|
+
|
|
14
|
+
var _openData = require("../../../../../utils/open-data");
|
|
15
|
+
|
|
16
|
+
var _dynamicOperate = _interopRequireDefault(require("../../../img/dynamic-operate.png"));
|
|
17
|
+
|
|
18
|
+
var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
|
|
19
|
+
|
|
20
|
+
var _constant = require("../../../constant");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
var prefix = "titaui-dynamic-operation";
|
|
27
|
+
|
|
28
|
+
var DynamicOperation = function DynamicOperation(_ref) {
|
|
29
|
+
var feedOperations = _ref.feedOperations,
|
|
30
|
+
data = _ref.data;
|
|
31
|
+
var feedType = data.feedType,
|
|
32
|
+
krId = data.krId,
|
|
33
|
+
okrId = data.okrId,
|
|
34
|
+
taskId = data.taskId,
|
|
35
|
+
workId = data.workId,
|
|
36
|
+
mileStoneId = data.mileStoneId;
|
|
37
|
+
|
|
38
|
+
if (!(feedType === _constant.EFeedType.O || feedType === _constant.EFeedType.Kr || feedType === _constant.EFeedType.MileStone || feedType === _constant.EFeedType.Project || feedType === _constant.EFeedType.Task)) {
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var handleClickShowAll = function handleClickShowAll() {
|
|
43
|
+
if (feedType === _constant.EFeedType.Kr) {
|
|
44
|
+
_drawerManager["default"].open("krDetail", {
|
|
45
|
+
krId: krId
|
|
46
|
+
});
|
|
47
|
+
} else if (feedType === _constant.EFeedType.O) {
|
|
48
|
+
_drawerManager["default"].open("okrDetail", {
|
|
49
|
+
okrId: okrId,
|
|
50
|
+
activeTabKey: "cooperation"
|
|
51
|
+
});
|
|
52
|
+
} else if (feedType === _constant.EFeedType.Task) {
|
|
53
|
+
window.Talent.app.vent.trigger("global-pull-screen", taskId, "task");
|
|
54
|
+
} else if (feedType === _constant.EFeedType.Project) {
|
|
55
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(workId)));
|
|
56
|
+
} else if (feedType === _constant.EFeedType.MileStone) {
|
|
57
|
+
window.Talent.app.vent.trigger("global-pull-screen", mileStoneId, "milestone", new window.Talent.Model(data), {
|
|
58
|
+
option: true,
|
|
59
|
+
width: 465,
|
|
60
|
+
React: _react["default"],
|
|
61
|
+
ReactDom: window.ReactDom,
|
|
62
|
+
ReactComponents: window.ReactComponents
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return feedOperations.comments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
+
className: "".concat(prefix, "__operate")
|
|
69
|
+
}, feedOperations.comments.map(function (comment, index) {
|
|
70
|
+
var createTime = comment.createTime,
|
|
71
|
+
content = comment.content;
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: "".concat(prefix, "__operate-item")
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
+
className: "".concat(prefix, "__operate-item-left")
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
77
|
+
className: "".concat(prefix, "__operate-icon"),
|
|
78
|
+
src: _dynamicOperate["default"],
|
|
79
|
+
alt: ""
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
81
|
+
className: "".concat(prefix, "__operate-time")
|
|
82
|
+
}, createTime)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
+
className: "".concat(prefix, "__operate-item-right")
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
|
+
className: "".concat(prefix, "__operate-user")
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
87
|
+
maxWidth: 98,
|
|
88
|
+
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
89
|
+
name: comment.publishUser.name,
|
|
90
|
+
id: comment.publishUser.userId
|
|
91
|
+
})
|
|
92
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
|
+
className: "".concat(prefix, "__operate-content")
|
|
94
|
+
}, content))), index === 2 && feedOperations.total > 3 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
|
+
className: "".concat(prefix, "__operate-item")
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
97
|
+
className: "".concat(prefix, "__operate-icon"),
|
|
98
|
+
src: _dynamicOperate["default"],
|
|
99
|
+
alt: ""
|
|
100
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
|
+
className: "".concat(prefix, "__operate-item-total"),
|
|
102
|
+
onClick: handleClickShowAll
|
|
103
|
+
}, "\u5168\u90E8\u64CD\u4F5C", /*#__PURE__*/_react["default"].createElement("span", {
|
|
104
|
+
className: "".concat(prefix, "__operate-item-total-num")
|
|
105
|
+
}, feedOperations.total), /*#__PURE__*/_react["default"].createElement("i", {
|
|
106
|
+
className: (0, _classnames["default"])("tu-icon-APP-xi")
|
|
107
|
+
}))));
|
|
108
|
+
}));
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
var _default = DynamicOperation;
|
|
112
|
+
exports["default"] = _default;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
5
|
-
margin-bottom:
|
|
6
|
-
padding:
|
|
5
|
+
margin-bottom: 16px;
|
|
6
|
+
padding: 26px 0 0 24px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-item-header-left {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.titaui-dynamic-item-header-right {
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 24px;
|
|
23
23
|
width: 24px;
|
|
24
24
|
height: 24px;
|
|
25
25
|
display: flex;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
.titaui-dynamic-item-header-desc {
|
|
38
38
|
flex: 1;
|
|
39
|
-
margin-left:
|
|
39
|
+
margin-left: 12px;
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.titaui-dynamic-item-header-desc-user {
|
|
63
|
-
font-size:
|
|
63
|
+
font-size: 16px;
|
|
64
64
|
font-weight: 600;
|
|
65
65
|
color: #3f4755;
|
|
66
|
-
line-height:
|
|
66
|
+
line-height: 24px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.titaui-dynamic-item-header-desc-user--not-link:hover {
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
font-size: 12px;
|
|
76
76
|
color: #89919f;
|
|
77
77
|
line-height: 18px;
|
|
78
|
+
margin-top: 4px;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.titaui-dynamic-item-header-desc-avatar:hover {
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
|
|
88
89
|
.titaui-dynamic-item-header__more-operate {
|
|
89
90
|
font-size: 14px;
|
|
90
|
-
color: #
|
|
91
|
+
color: #89919f;
|
|
91
92
|
line-height: 22px;
|
|
92
93
|
}
|
|
93
94
|
|
|
@@ -63,8 +63,11 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
63
63
|
_ref$showTopping = _ref.showTopping,
|
|
64
64
|
showTopping = _ref$showTopping === void 0 ? false : _ref$showTopping,
|
|
65
65
|
data = _ref.data,
|
|
66
|
-
desc = _ref.desc,
|
|
67
|
-
|
|
66
|
+
_ref$desc = _ref.desc,
|
|
67
|
+
desc = _ref$desc === void 0 ? "" : _ref$desc,
|
|
68
|
+
user = _ref.user,
|
|
69
|
+
_ref$suffixContent = _ref.suffixContent,
|
|
70
|
+
suffixContent = _ref$suffixContent === void 0 ? "" : _ref$suffixContent;
|
|
68
71
|
var createDate = data.createDate,
|
|
69
72
|
feedId = data.feedId,
|
|
70
73
|
_data$isTop = data.isTop,
|
|
@@ -99,7 +102,7 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
99
102
|
|
|
100
103
|
var url = "";
|
|
101
104
|
|
|
102
|
-
var onChangeHandler = function onChangeHandler(name
|
|
105
|
+
var onChangeHandler = function onChangeHandler(name) {
|
|
103
106
|
if (name === "collect") {
|
|
104
107
|
if (nowIsCollect) {
|
|
105
108
|
(0, _requestApi.cancelCollectDynamic)({
|
|
@@ -197,7 +200,10 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
197
200
|
});
|
|
198
201
|
|
|
199
202
|
setShowDialogConfirm(false);
|
|
200
|
-
|
|
203
|
+
|
|
204
|
+
if (onDeleteFeed) {
|
|
205
|
+
onDeleteFeed(feedId);
|
|
206
|
+
}
|
|
201
207
|
}
|
|
202
208
|
});
|
|
203
209
|
};
|
|
@@ -241,10 +247,10 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
241
247
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
242
248
|
name: user.name,
|
|
243
249
|
userId: user.id || user.userId,
|
|
244
|
-
src: user.avatar.medium,
|
|
250
|
+
src: user.avatar.original || user.avatar.medium,
|
|
245
251
|
color: user.avatar.color,
|
|
246
252
|
size: {
|
|
247
|
-
width:
|
|
253
|
+
width: 48,
|
|
248
254
|
textNum: 1,
|
|
249
255
|
fontSize: 18
|
|
250
256
|
}
|
|
@@ -263,7 +269,7 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
263
269
|
name: user.name,
|
|
264
270
|
id: user.userId
|
|
265
271
|
})
|
|
266
|
-
})), desc), /*#__PURE__*/_react["default"].createElement("div", {
|
|
272
|
+
})), desc, suffixContent), /*#__PURE__*/_react["default"].createElement("div", {
|
|
267
273
|
className: "".concat(prefix, "__more-operate")
|
|
268
274
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
269
275
|
popupPlacement: "bottomRight",
|
|
Binary file
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
|
|
3
1
|
.titaui-dynamic-align-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-align-item__content {
|
|
9
|
-
margin-left:
|
|
7
|
+
margin-left: 88px;
|
|
10
8
|
position: relative;
|
|
11
9
|
}
|
|
12
10
|
|
|
@@ -15,16 +13,43 @@
|
|
|
15
13
|
flex-direction: column;
|
|
16
14
|
}
|
|
17
15
|
|
|
16
|
+
.titaui-dynamic-align-item__obj-other-info {
|
|
17
|
+
line-height: 18px;
|
|
18
|
+
}
|
|
19
|
+
|
|
18
20
|
.titaui-dynamic-align-item__obj-base-info {
|
|
19
21
|
display: flex;
|
|
20
22
|
align-items: center;
|
|
21
23
|
width: 100%;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
.titaui-dynamic-align-item__obj-base-info-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
.titaui-dynamic-align-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-align-item__obj-base-info-left--o {
|
|
38
|
+
background: rgba(40, 121, 255, 0.16);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-align-item__obj-base-info-left--kr {
|
|
42
|
+
background: rgba(90, 216, 166, 0.16);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-align-item__obj-base-info-left-img {
|
|
46
|
+
width: 20px;
|
|
47
|
+
height: 20px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.titaui-dynamic-align-item__obj-base-info-right {
|
|
51
|
+
flex: 1;
|
|
52
|
+
overflow: hidden;
|
|
28
53
|
}
|
|
29
54
|
|
|
30
55
|
.titaui-dynamic-align-item__obj-title {
|
|
@@ -46,13 +71,16 @@
|
|
|
46
71
|
font-size: 12px;
|
|
47
72
|
color: #89919f;
|
|
48
73
|
line-height: 18px;
|
|
49
|
-
margin-left: 26px;
|
|
50
74
|
}
|
|
51
75
|
|
|
52
76
|
.titaui-dynamic-align-item__obj-principal-user::after {
|
|
53
|
-
content:
|
|
77
|
+
content: '';
|
|
78
|
+
width: 1px;
|
|
79
|
+
height: 14px;
|
|
80
|
+
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
|
|
54
81
|
display: inline-block;
|
|
55
|
-
margin: 0
|
|
82
|
+
margin: 0 8px;
|
|
83
|
+
vertical-align: text-top;
|
|
56
84
|
}
|
|
57
85
|
|
|
58
86
|
.titaui-dynamic-align-item__obj-cycle {
|
|
@@ -63,31 +91,20 @@
|
|
|
63
91
|
|
|
64
92
|
.titaui-dynamic-align-item__align-img {
|
|
65
93
|
position: absolute;
|
|
66
|
-
top:
|
|
94
|
+
top: 51px;
|
|
95
|
+
width: 18px;
|
|
96
|
+
left: 11px;
|
|
67
97
|
}
|
|
68
98
|
|
|
69
99
|
.titaui-dynamic-align-item__space {
|
|
70
|
-
height:
|
|
100
|
+
height: 30px;
|
|
71
101
|
}
|
|
72
102
|
|
|
73
103
|
.titaui-dynamic-align-item__operate-desc {
|
|
74
104
|
font-size: 14px;
|
|
75
105
|
font-weight: 400;
|
|
76
106
|
color: #89919f;
|
|
77
|
-
line-height:
|
|
78
|
-
margin:
|
|
107
|
+
line-height: 24px;
|
|
108
|
+
margin-left: 4px;
|
|
79
109
|
overflow: hidden;
|
|
80
110
|
}
|
|
81
|
-
|
|
82
|
-
.titaui-dynamic-align-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,22 @@ var _openData = require("../../../../utils/open-data");
|
|
|
19
19
|
|
|
20
20
|
var _constant = require("../../constant");
|
|
21
21
|
|
|
22
|
-
var _dynamicAlign = _interopRequireDefault(require("./img/dynamic-align.
|
|
22
|
+
var _dynamicAlign = _interopRequireDefault(require("./img/dynamic-align.png"));
|
|
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 _dynamicAlignO = _interopRequireDefault(require("./img/dynamic-align-o.png"));
|
|
33
|
+
|
|
34
|
+
var _dynamicAlignKr = _interopRequireDefault(require("./img/dynamic-align-kr.png"));
|
|
35
|
+
|
|
36
|
+
var _tools = require("../../../../utils/tools");
|
|
37
|
+
|
|
34
38
|
require("./index.css");
|
|
35
39
|
|
|
36
40
|
var _excluded = ["data"];
|
|
@@ -41,6 +45,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
41
45
|
|
|
42
46
|
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
47
|
|
|
48
|
+
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; }
|
|
49
|
+
|
|
44
50
|
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
51
|
|
|
46
52
|
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; }
|
|
@@ -50,6 +56,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
50
56
|
var prefix = "titaui-dynamic-align-item";
|
|
51
57
|
|
|
52
58
|
var DynamicAlign = function DynamicAlign(_ref) {
|
|
59
|
+
var _classNames;
|
|
60
|
+
|
|
53
61
|
var data = _ref.data,
|
|
54
62
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
55
63
|
|
|
@@ -62,16 +70,11 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
62
70
|
parentPrincipalUser = data.parentPrincipalUser,
|
|
63
71
|
parentcycleName = data.parentcycleName,
|
|
64
72
|
cycleName = data.cycleName,
|
|
65
|
-
feedType = data.feedType,
|
|
66
73
|
publishUser = data.publishUser;
|
|
67
74
|
|
|
68
75
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
69
76
|
searchKeyWord = _useContext.searchKeyWord;
|
|
70
77
|
|
|
71
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
72
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
73
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
74
|
-
|
|
75
78
|
var handleClickTitle = function handleClickTitle(id, type) {
|
|
76
79
|
if (type === _constant.EObjType.Kr) {
|
|
77
80
|
_drawerManager["default"].open("krDetail", {
|
|
@@ -97,14 +100,9 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
97
100
|
text = "".concat((0, _getLocale.getLocale)("Mod_Aligned")).concat((0, _getLocale.getLocale)("Mod_Objective"));
|
|
98
101
|
}
|
|
99
102
|
|
|
100
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
104
|
className: "".concat(prefix, "__operate-desc")
|
|
102
|
-
}, text)
|
|
103
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
104
|
-
style: {
|
|
105
|
-
background: feedTypeColor
|
|
106
|
-
}
|
|
107
|
-
}, feedTypeText));
|
|
105
|
+
}, text);
|
|
108
106
|
}, []);
|
|
109
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
108
|
className: prefix
|
|
@@ -119,12 +117,15 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
119
117
|
className: "".concat(prefix, "__obj")
|
|
120
118
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
119
|
className: "".concat(prefix, "__obj-base-info")
|
|
122
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
123
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
121
|
+
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), parentObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), parentObjType === _constant.EObjType.Kr), _classNames))
|
|
122
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
123
|
+
alt: "",
|
|
124
|
+
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
125
|
+
src: parentObjType === _constant.EObjType.O ? _dynamicAlignO["default"] : _dynamicAlignKr["default"]
|
|
126
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
|
+
className: "".concat(prefix, "__obj-base-info-right")
|
|
128
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
129
|
className: "".concat(prefix, "__obj-title"),
|
|
129
130
|
onClick: function onClick() {
|
|
130
131
|
handleClickTitle(parentObjId, parentObjType);
|
|
@@ -132,43 +133,54 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
132
133
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
133
134
|
isPercent: true,
|
|
134
135
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
135
|
-
str: parentObjName,
|
|
136
|
+
str: (0, _tools.htmlDecodeByRegExp)(parentObjName),
|
|
136
137
|
keyWord: searchKeyWord
|
|
137
138
|
})
|
|
138
|
-
}))
|
|
139
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
|
+
className: "".concat(prefix, "__obj-other-info")
|
|
141
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
139
142
|
className: "".concat(prefix, "__obj-principal-user")
|
|
140
143
|
}, parentPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
141
144
|
id: parentPrincipalUser.userId,
|
|
142
145
|
name: parentPrincipalUser.name
|
|
143
146
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
147
|
className: "".concat(prefix, "__obj-cycle")
|
|
145
|
-
}, parentcycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
148
|
+
}, parentcycleName))))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
146
149
|
className: "".concat(prefix, "__align-img"),
|
|
147
|
-
src: _dynamicAlign["default"]
|
|
150
|
+
src: _dynamicAlign["default"],
|
|
151
|
+
alt: ""
|
|
148
152
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
153
|
className: "".concat(prefix, "__space")
|
|
150
154
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
155
|
className: "".concat(prefix, "__obj")
|
|
152
156
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
157
|
className: "".concat(prefix, "__obj-base-info")
|
|
154
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
155
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-
|
|
156
|
-
}
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
159
|
+
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), "".concat(prefix, "__obj-base-info-left--o"))
|
|
160
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
161
|
+
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
162
|
+
src: _dynamicAlignO["default"],
|
|
163
|
+
alt: ""
|
|
164
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
|
+
className: "".concat(prefix, "__obj-base-info-right")
|
|
166
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
157
167
|
className: "".concat(prefix, "__obj-title"),
|
|
158
168
|
onClick: function onClick() {
|
|
159
169
|
handleClickTitle(okrId, _constant.EObjType.O);
|
|
160
170
|
}
|
|
161
171
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
162
172
|
isPercent: true,
|
|
163
|
-
text: okrName
|
|
164
|
-
}))
|
|
173
|
+
text: (0, _tools.htmlDecodeByRegExp)(okrName)
|
|
174
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
+
className: "".concat(prefix, "__obj-other-info")
|
|
176
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
165
177
|
className: "".concat(prefix, "__obj-principal-user")
|
|
166
178
|
}, principalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
167
179
|
id: principalUser.userId,
|
|
168
180
|
name: principalUser.name
|
|
169
181
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
170
182
|
className: "".concat(prefix, "__obj-cycle")
|
|
171
|
-
}, cycleName)))));
|
|
183
|
+
}, cycleName)))))));
|
|
172
184
|
};
|
|
173
185
|
|
|
174
186
|
var _default = DynamicAlign;
|
|
@@ -4,25 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-announcement-item__content {
|
|
6
6
|
font-size: 14px;
|
|
7
|
-
color: #
|
|
7
|
+
color: #3f4755;
|
|
8
8
|
line-height: 22px;
|
|
9
9
|
display: flex;
|
|
10
|
-
margin-left:
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-announcement-item__content-quoto {
|
|
14
|
-
width: 12px;
|
|
15
|
-
height: 12px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-dynamic-announcement-item__content-quoto--left {
|
|
19
|
-
margin-right: 8px;
|
|
20
|
-
margin-top: -6px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-announcement-item__content-quoto--right {
|
|
24
|
-
margin-left: 8px;
|
|
25
|
-
margin-top: 4px;
|
|
10
|
+
margin-left: 88px;
|
|
26
11
|
}
|
|
27
12
|
|
|
28
13
|
.titaui-dynamic-announcement-item__content b {
|
|
@@ -33,26 +18,13 @@
|
|
|
33
18
|
font-size: 14px;
|
|
34
19
|
font-weight: 400;
|
|
35
20
|
color: #89919f;
|
|
36
|
-
line-height:
|
|
37
|
-
margin:
|
|
21
|
+
line-height: 24px;
|
|
22
|
+
margin-left: 4px;
|
|
38
23
|
overflow: hidden;
|
|
39
24
|
}
|
|
40
25
|
|
|
41
|
-
.titaui-dynamic-announcement-item-desc-operate-type {
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
padding: 0 6px;
|
|
46
|
-
height: 18px;
|
|
47
|
-
min-width: 40px;
|
|
48
|
-
border-radius: 10px 10px 10px 2px;
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
color: #ffffff;
|
|
51
|
-
line-height: 18px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
26
|
.titaui-dynamic-announcement-item__files {
|
|
55
|
-
margin-left:
|
|
27
|
+
margin-left: 88px;
|
|
56
28
|
margin-top: 12px;
|
|
57
29
|
}
|
|
58
30
|
|
|
@@ -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 _fileList = _interopRequireDefault(require("../../../file-list"));
|
|
19
13
|
|
|
20
14
|
var _context = require("../../context");
|
|
@@ -23,12 +17,10 @@ var _tools = require("../../../../utils/tools");
|
|
|
23
17
|
|
|
24
18
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
25
19
|
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
|
-
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
29
|
-
|
|
30
20
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
21
|
|
|
22
|
+
var _openData = require("../../../../utils/open-data");
|
|
23
|
+
|
|
32
24
|
require("./index.css");
|
|
33
25
|
|
|
34
26
|
var _excluded = ["data", "hasDynamicOpereateAuth"];
|
|
@@ -57,20 +49,10 @@ var DynamicAnnouncement = function DynamicAnnouncement(_ref) {
|
|
|
57
49
|
searchKeyWord = _useContext.searchKeyWord;
|
|
58
50
|
|
|
59
51
|
var contentRef = (0, _react.useRef)();
|
|
60
|
-
|
|
61
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
62
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
63
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
64
|
-
|
|
65
52
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
66
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
53
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
54
|
className: "".concat(prefix, "__operate-desc")
|
|
68
|
-
}, (0, _getLocale.getLocale)("Feed_SsAnnounce"))
|
|
69
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
70
|
-
style: {
|
|
71
|
-
background: feedTypeColor
|
|
72
|
-
}
|
|
73
|
-
}, feedTypeText));
|
|
55
|
+
}, (0, _getLocale.getLocale)("Feed_SsAnnounce"));
|
|
74
56
|
}, []);
|
|
75
57
|
(0, _react.useEffect)(function () {
|
|
76
58
|
(0, _tools.highLightWord)({
|
|
@@ -88,17 +70,9 @@ var DynamicAnnouncement = function DynamicAnnouncement(_ref) {
|
|
|
88
70
|
user: data.publishUser
|
|
89
71
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
72
|
className: "".concat(prefix, "__content")
|
|
91
|
-
}, /*#__PURE__*/_react["default"].createElement("div",
|
|
92
|
-
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--left")),
|
|
93
|
-
src: _dynamicLeftQuoto["default"]
|
|
94
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
74
|
ref: contentRef
|
|
96
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
97
|
-
htmlText: data.content
|
|
98
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
99
|
-
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--right")),
|
|
100
|
-
src: _dynamicRightQuoto["default"]
|
|
101
|
-
}))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
+
}, (0, _openData.parseTag)(data.content))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
76
|
className: "".concat(prefix, "__files")
|
|
103
77
|
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
104
78
|
data: data.attachments
|