@titaui/pc 1.10.6 → 1.10.7-2.beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +6 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +31 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +8 -6
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +10 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -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-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/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 +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +31 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/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/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -23,9 +23,11 @@ var _dynamicAssessment = _interopRequireDefault(require("./dynamic-assessment"))
|
|
|
23
23
|
|
|
24
24
|
var _dynamicShare = _interopRequireDefault(require("./dynamic-share"));
|
|
25
25
|
|
|
26
|
+
var _dynamicChart = _interopRequireDefault(require("./dynamic-chart"));
|
|
27
|
+
|
|
26
28
|
var _dynamicAnnouncement = _interopRequireDefault(require("./dynamic-announcement"));
|
|
27
29
|
|
|
28
|
-
var
|
|
30
|
+
var _dynamicReply = _interopRequireDefault(require("./dynamic-reply"));
|
|
29
31
|
|
|
30
32
|
var _dynamicReport = _interopRequireDefault(require("./dynamic-report"));
|
|
31
33
|
|
|
@@ -47,7 +49,7 @@ var _dynamicReward = _interopRequireDefault(require("./dynamic-reward"));
|
|
|
47
49
|
|
|
48
50
|
var _dynamicMilestone = _interopRequireDefault(require("./dynamic-milestone"));
|
|
49
51
|
|
|
50
|
-
var
|
|
52
|
+
var _dynamicLearning = _interopRequireDefault(require("./dynamic-learning"));
|
|
51
53
|
|
|
52
54
|
var _bsGlobal = require("../../../utils/bs-global");
|
|
53
55
|
|
|
@@ -61,6 +63,10 @@ var _auth = require("../../../utils/auth");
|
|
|
61
63
|
|
|
62
64
|
var _getLocale = require("../../../utils/getLocale");
|
|
63
65
|
|
|
66
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
67
|
+
|
|
68
|
+
var _feedOperate = _interopRequireDefault(require("./components/feed-operate"));
|
|
69
|
+
|
|
64
70
|
require("./index.css");
|
|
65
71
|
|
|
66
72
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -69,6 +75,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
69
75
|
|
|
70
76
|
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; }
|
|
71
77
|
|
|
78
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
79
|
+
|
|
80
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
81
|
+
|
|
82
|
+
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; }
|
|
83
|
+
|
|
72
84
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
73
85
|
|
|
74
86
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -92,13 +104,18 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
92
104
|
var prefix = "titaui-dynamic-item";
|
|
93
105
|
|
|
94
106
|
var DynamicItem = function DynamicItem(_ref) {
|
|
107
|
+
var _getBSGlobal;
|
|
108
|
+
|
|
95
109
|
var data = _ref.data,
|
|
96
110
|
onDeleteFeed = _ref.onDeleteFeed,
|
|
97
111
|
dynamicShareIsShowToping = _ref.dynamicShareIsShowToping;
|
|
98
112
|
var feedId = data.feedId,
|
|
99
113
|
feedComments = data.feedComments,
|
|
100
114
|
praiseType = data.praiseType,
|
|
101
|
-
praiseUsers = data.praiseUsers
|
|
115
|
+
praiseUsers = data.praiseUsers,
|
|
116
|
+
feedType = data.feedType,
|
|
117
|
+
publishUser = data.publishUser,
|
|
118
|
+
feedOperations = data.feedOperations;
|
|
102
119
|
|
|
103
120
|
var _useState = (0, _react.useState)(feedComments.total > 0),
|
|
104
121
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -134,6 +151,9 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
134
151
|
searchKeyWord = _useContext.searchKeyWord;
|
|
135
152
|
|
|
136
153
|
var hasDynamicOpereateAuth = new _auth.DynamicManagerAuth().hasAuth();
|
|
154
|
+
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)("WebHead")) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
|
|
155
|
+
return item.AppId === "950";
|
|
156
|
+
}));
|
|
137
157
|
var dynamicContentRef = (0, _react.useRef)();
|
|
138
158
|
var communicationRef = (0, _react.useRef)();
|
|
139
159
|
|
|
@@ -147,17 +167,30 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
147
167
|
};
|
|
148
168
|
|
|
149
169
|
var handleShowMore = function handleShowMore() {
|
|
170
|
+
if (data.feedType === _constant.EFeedType.Report) {
|
|
171
|
+
if (window.titaTracker) {
|
|
172
|
+
window.titaTracker("planAction").record({
|
|
173
|
+
actionName: "查看日报",
|
|
174
|
+
actionGroup: "动态-查看更多",
|
|
175
|
+
productName: "动态",
|
|
176
|
+
feedId: feedId
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
150
181
|
setIsFold(false);
|
|
151
182
|
};
|
|
152
183
|
|
|
153
184
|
var onChangeParse = function onChangeParse(type) {
|
|
154
|
-
var
|
|
155
|
-
Id =
|
|
185
|
+
var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)("loginUserInfo"),
|
|
186
|
+
Id = _getBSGlobal2.Id;
|
|
156
187
|
|
|
157
188
|
var data = _toConsumableArray(praiseData).filter(function (item) {
|
|
158
189
|
return Number("".concat(item.userId)) !== Number("".concat(Id));
|
|
159
190
|
});
|
|
160
191
|
|
|
192
|
+
var actionName = "";
|
|
193
|
+
|
|
161
194
|
if (type) {
|
|
162
195
|
var avatar = (0, _bsGlobal.getBSGlobal)("loginUserInfo").UserAvatar;
|
|
163
196
|
var name = (0, _bsGlobal.getBSGlobal)("loginUserInfo").Name;
|
|
@@ -170,8 +203,19 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
170
203
|
praiseType: type
|
|
171
204
|
};
|
|
172
205
|
setPraiseData([parseUser].concat(_toConsumableArray(data)));
|
|
206
|
+
actionName = "点赞日报";
|
|
173
207
|
} else {
|
|
174
208
|
setPraiseData(data);
|
|
209
|
+
actionName = "取消日报点赞";
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (window.titaTracker) {
|
|
213
|
+
window.titaTracker("planAction").record({
|
|
214
|
+
actionName: actionName,
|
|
215
|
+
actionGroup: "动态-日报",
|
|
216
|
+
productName: "动态",
|
|
217
|
+
feedId: feedId
|
|
218
|
+
});
|
|
175
219
|
}
|
|
176
220
|
};
|
|
177
221
|
|
|
@@ -226,13 +270,21 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
226
270
|
});
|
|
227
271
|
|
|
228
272
|
case _constant.EFeedType.Reply:
|
|
229
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
273
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicReply["default"], {
|
|
230
274
|
data: data,
|
|
231
275
|
onDeleteFeed: onDeleteFeed
|
|
232
276
|
});
|
|
233
277
|
|
|
234
278
|
case _constant.EFeedType.Share:
|
|
235
|
-
if (data.shareType ===
|
|
279
|
+
if (data.shareType === _constant.EShareType.CommonShare) {
|
|
280
|
+
// 兼容一些 缺失shareType的 图表类型分享 过两天就会撤掉
|
|
281
|
+
if (data.biId) {
|
|
282
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicChart["default"], {
|
|
283
|
+
data: data,
|
|
284
|
+
onDeleteFeed: onDeleteFeed
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
|
|
236
288
|
return /*#__PURE__*/_react["default"].createElement(_dynamicShare["default"], {
|
|
237
289
|
data: data,
|
|
238
290
|
onDeleteFeed: onDeleteFeed,
|
|
@@ -241,7 +293,14 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
241
293
|
});
|
|
242
294
|
}
|
|
243
295
|
|
|
244
|
-
|
|
296
|
+
if (data.shareType === _constant.EShareType.BiShare) {
|
|
297
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicChart["default"], {
|
|
298
|
+
data: data,
|
|
299
|
+
onDeleteFeed: onDeleteFeed
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicLearning["default"], {
|
|
245
304
|
data: data
|
|
246
305
|
});
|
|
247
306
|
|
|
@@ -281,24 +340,51 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
281
340
|
}
|
|
282
341
|
|
|
283
342
|
return count || type;
|
|
284
|
-
};
|
|
285
|
-
// const data = {
|
|
286
|
-
// multi: false,
|
|
287
|
-
// toUserInfo: publishUser,
|
|
288
|
-
// objId: feedId,
|
|
289
|
-
// objType: feedType,
|
|
290
|
-
// };
|
|
291
|
-
// if (window.util) {
|
|
292
|
-
// window.util.rewardGetFile((myReward) => {
|
|
293
|
-
// myReward.renderPayReward(data);
|
|
294
|
-
// });
|
|
295
|
-
// }
|
|
296
|
-
// };
|
|
343
|
+
};
|
|
297
344
|
|
|
345
|
+
var handlePayReward = function handlePayReward() {
|
|
346
|
+
var data = {
|
|
347
|
+
multi: false,
|
|
348
|
+
toUserInfo: _objectSpread(_objectSpread({}, publishUser), {}, {
|
|
349
|
+
id: publishUser.userId
|
|
350
|
+
}),
|
|
351
|
+
objId: feedId,
|
|
352
|
+
objType: feedType
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
if (window.util) {
|
|
356
|
+
if (window.titaTracker) {
|
|
357
|
+
window.titaTracker("planAction").record({
|
|
358
|
+
actionName: "打开打赏弹层",
|
|
359
|
+
actionGroup: "动态-日报",
|
|
360
|
+
productName: "动态",
|
|
361
|
+
feedId: feedId
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
window.util.rewardGetFile(function (myReward) {
|
|
366
|
+
myReward.renderPayReward(data);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
var handleReply = function handleReply(_ref2) {
|
|
372
|
+
var submitType = _ref2.submitType;
|
|
373
|
+
var actionName = submitType === "delete" ? "删除日报评论" : "评论日报";
|
|
374
|
+
|
|
375
|
+
if (window.titaTracker) {
|
|
376
|
+
window.titaTracker("planAction").record({
|
|
377
|
+
actionName: actionName,
|
|
378
|
+
actionGroup: "动态-日报",
|
|
379
|
+
productName: "动态",
|
|
380
|
+
feedId: feedId
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
};
|
|
298
384
|
|
|
299
385
|
(0, _react.useEffect)(function () {
|
|
300
386
|
setTimeout(function () {
|
|
301
|
-
if (dynamicContentRef.current && dynamicContentRef.current.offsetHeight >
|
|
387
|
+
if (dynamicContentRef.current && dynamicContentRef.current.offsetHeight > 334) {
|
|
302
388
|
setContentIsOverflow(true);
|
|
303
389
|
}
|
|
304
390
|
}, 0);
|
|
@@ -321,7 +407,10 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
321
407
|
onClick: handleShowMore
|
|
322
408
|
}, (0, _getLocale.getLocale)("Tasks_Tab_MyS_Butt_Seemoral"), /*#__PURE__*/_react["default"].createElement("i", {
|
|
323
409
|
className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"))
|
|
324
|
-
})))), /*#__PURE__*/_react["default"].createElement("
|
|
410
|
+
})))), feedOperations.total > 0 && /*#__PURE__*/_react["default"].createElement(_feedOperate["default"], {
|
|
411
|
+
feedOperations: feedOperations,
|
|
412
|
+
data: data
|
|
413
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
414
|
className: (0, _classnames["default"])("".concat(prefix, "__footer"))
|
|
326
415
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
327
416
|
className: "".concat(prefix, "__footer-left")
|
|
@@ -357,6 +446,17 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
357
446
|
onClick: handleFold
|
|
358
447
|
}, (0, _getLocale.getLocale)("Mod_Fold"), /*#__PURE__*/_react["default"].createElement("i", {
|
|
359
448
|
className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"), "".concat(prefix, "__icon-up"))
|
|
449
|
+
}))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
450
|
+
condition: hasRewardBtn
|
|
451
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
452
|
+
overlay: (0, _getLocale.getLocale)("Feed_Approval"),
|
|
453
|
+
align: {
|
|
454
|
+
offset: [0, 0]
|
|
455
|
+
},
|
|
456
|
+
placement: "top"
|
|
457
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
458
|
+
onClick: handlePayReward,
|
|
459
|
+
className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
|
|
360
460
|
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
361
461
|
onClick: handleCommentClick,
|
|
362
462
|
className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
|
|
@@ -394,6 +494,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
394
494
|
usePropsComment: usePropsComment,
|
|
395
495
|
communication: feedComments.comments,
|
|
396
496
|
totalCommunicationNum: feedComments.total,
|
|
497
|
+
onReplyChange: handleReply,
|
|
397
498
|
showUser: true,
|
|
398
499
|
showDefaultInput: true
|
|
399
500
|
}))));
|
|
@@ -78,7 +78,7 @@ var Item = function Item(_ref) {
|
|
|
78
78
|
className: "".concat(preCls, "-avatar")
|
|
79
79
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
80
80
|
name: name,
|
|
81
|
-
src: avatar.
|
|
81
|
+
src: avatar.original,
|
|
82
82
|
color: avatar.color,
|
|
83
83
|
userId: userId,
|
|
84
84
|
size: {
|
|
@@ -11,6 +11,8 @@ var _rcQueueAnim = _interopRequireDefault(require("rc-queue-anim"));
|
|
|
11
11
|
|
|
12
12
|
var _dynamicItem = _interopRequireDefault(require("../dynamic-item"));
|
|
13
13
|
|
|
14
|
+
var _dynamicAiDialy = _interopRequireDefault(require("../dynamic-item/dynamic-ai-dialy"));
|
|
15
|
+
|
|
14
16
|
var _dynamicEmpty = _interopRequireDefault(require("../img/dynamic-empty.png"));
|
|
15
17
|
|
|
16
18
|
var _conditionRender = _interopRequireDefault(require("../../condition-render"));
|
|
@@ -19,6 +21,8 @@ var _getLocale = require("../../../utils/getLocale");
|
|
|
19
21
|
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
24
|
+
var _constant = require("../constant");
|
|
25
|
+
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
27
|
|
|
24
28
|
// @ts-ignore
|
|
@@ -64,9 +68,14 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
64
68
|
display: "none"
|
|
65
69
|
}]
|
|
66
70
|
}, data.map(function (item) {
|
|
71
|
+
var _JSON$parse;
|
|
72
|
+
|
|
67
73
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
-
className: "".concat(prefix, "__item-wrapper")
|
|
69
|
-
|
|
74
|
+
className: "".concat(prefix, "__item-wrapper"),
|
|
75
|
+
key: item.feedId
|
|
76
|
+
}, item.shareType === _constant.EShareType.BiShare && item.biId && ((_JSON$parse = JSON.parse(item.biId)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.type) === "AIDialyFeed" ? /*#__PURE__*/_react["default"].createElement(_dynamicAiDialy["default"], {
|
|
77
|
+
data: item
|
|
78
|
+
}) : /*#__PURE__*/_react["default"].createElement(_dynamicItem["default"], {
|
|
70
79
|
data: item,
|
|
71
80
|
onDeleteFeed: handleDeleteFeed,
|
|
72
81
|
dynamicShareIsShowToping: dynamicShareIsShowToping
|
|
@@ -21,10 +21,12 @@ var _auth = require("../../../utils/auth");
|
|
|
21
21
|
|
|
22
22
|
var _toast = _interopRequireDefault(require("../../toast"));
|
|
23
23
|
|
|
24
|
-
var _dangerousHtml = _interopRequireDefault(require("
|
|
24
|
+
var _dangerousHtml = _interopRequireDefault(require("../../dangerous-html"));
|
|
25
25
|
|
|
26
26
|
var _getLocale = require("../../../utils/getLocale");
|
|
27
27
|
|
|
28
|
+
var _quotationMark = _interopRequireDefault(require("./image/quotation-mark.svg"));
|
|
29
|
+
|
|
28
30
|
require("./index.css");
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -68,11 +70,13 @@ var Item = function Item(_ref) {
|
|
|
68
70
|
|
|
69
71
|
var onHandlerCancel = function onHandlerCancel(userId) {
|
|
70
72
|
(0, _requestApi.delDynamicTop)(userId).then(function (res) {
|
|
71
|
-
if (res.Code
|
|
73
|
+
if (res.Code === 1) {
|
|
72
74
|
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"));
|
|
73
75
|
|
|
74
76
|
setTimeout(function () {
|
|
75
|
-
|
|
77
|
+
if (refresh) {
|
|
78
|
+
refresh();
|
|
79
|
+
}
|
|
76
80
|
}, 1000);
|
|
77
81
|
} else {
|
|
78
82
|
_toast["default"].Error(res.Message);
|
|
@@ -136,7 +140,7 @@ var Item = function Item(_ref) {
|
|
|
136
140
|
className: (0, _classnames["default"])("tu-icon-diot ".concat(preCls, "-header-right-diot"))
|
|
137
141
|
})))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
138
142
|
className: (0, _classnames["default"])("".concat(preCls, "-mark")),
|
|
139
|
-
src:
|
|
143
|
+
src: _quotationMark["default"],
|
|
140
144
|
alt: ""
|
|
141
145
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
146
|
className: (0, _classnames["default"])("".concat(preCls, "-content"))
|
|
@@ -221,7 +221,10 @@ var Dynamic = function Dynamic() {
|
|
|
221
221
|
setNoMoreData(resp.Data.isEnd);
|
|
222
222
|
|
|
223
223
|
if (needResetValue) {
|
|
224
|
-
setDynamicData(
|
|
224
|
+
setDynamicData([]);
|
|
225
|
+
setTimeout(function () {
|
|
226
|
+
setDynamicData(resp.Data.feeds);
|
|
227
|
+
}, 0);
|
|
225
228
|
} else {
|
|
226
229
|
setDynamicData(JSON.parse(JSON.stringify([].concat(_toConsumableArray(dynamicData), _toConsumableArray(resp.Data.feeds)))));
|
|
227
230
|
}
|
|
@@ -269,7 +272,7 @@ var Dynamic = function Dynamic() {
|
|
|
269
272
|
} // 滚动到距离底部40px之后加载新的数据
|
|
270
273
|
|
|
271
274
|
|
|
272
|
-
if (contentDom.scrollHeight - contentDom.scrollTop <= contentDom.offsetHeight) {
|
|
275
|
+
if (contentDom.scrollHeight - contentDom.scrollTop <= contentDom.offsetHeight + 40) {
|
|
273
276
|
// 滚动加载防止重复请求
|
|
274
277
|
if (noMoreData || isLoadingMore) {
|
|
275
278
|
return;
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="3px" height="3px" viewBox="0 0 3 3" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>椭圆形</title>
|
|
4
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="动态-OKR" transform="translate(-214.000000, -342.000000)" fill="#8791A0">
|
|
6
|
+
<g id="新建目标-负责目标" transform="translate(16.000000, 196.000000)">
|
|
7
|
+
<g id="编组-9" transform="translate(88.000000, 94.000000)">
|
|
8
|
+
<circle id="椭圆形" cx="111.5" cy="53.5" r="1.5"></circle>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="74.137%" y1="76.285%" x2="7.656%" y2=".727%" id="a"><stop stop-color="#F05E5E" offset="0%"/><stop stop-color="#FFA5A5" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M2.88 4.641c.366.221.82.422 1.345.599 1.478.498 3.52.806 5.775.806 2.255 0 4.296-.308 5.775-.806.42-.142.795-.299 1.117-.469l.228-.129.14.332c.604 1.524.907 3.2.907 5.026 0 1.979-.355 3.78-1.066 5.403h.001a3.5 3.5 0 0 1-1.78 1.793c-1.45.647-3.225.97-5.322.97s-3.872-.323-5.323-.969v-.001a3.5 3.5 0 0 1-1.779-1.792C2.188 13.78 1.833 11.979 1.833 10c0-1.96.349-3.747 1.046-5.359zm5.843 4.776a.67.67 0 0 0-.924-.125.54.54 0 0 0-.1.758l1.114 1.459h-.667a.485.485 0 1 0 0 .97h1.213v.75H8.021a.614.614 0 0 0 0 1.227h1.338v.55a.668.668 0 0 0 1.337 0v-.55h1.355a.614.614 0 0 0 0-1.227h-1.355v-.75h1.23a.485.485 0 1 0 0-.97h-.662l.989-1.431a.572.572 0 0 0-.177-.817.658.658 0 0 0-.876.186l-1.159 1.645zM10 1.833c2.097 0 3.872.324 5.323.97v.001a3.5 3.5 0 0 1 1.24.929c-.33.224-.911.428-1.7.595-1.282.273-3.013.428-4.863.428-1.85 0-3.58-.155-4.863-.428-.79-.168-1.37-.372-1.7-.595.338-.396.76-.714 1.24-.929v-.001c1.348-.6 2.974-.922 4.878-.965L10 1.833z" fill="url(#a)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M2.88 4.641c.366.221.82.422 1.345.599 1.478.498 3.52.806 5.775.806 2.255 0 4.296-.308 5.775-.806.42-.142.795-.299 1.117-.469l.228-.129.14.332c.604 1.524.907 3.2.907 5.026 0 1.979-.355 3.78-1.066 5.403h.001a3.5 3.5 0 0 1-1.78 1.793c-1.45.647-3.225.97-5.322.97s-3.872-.323-5.323-.969v-.001a3.5 3.5 0 0 1-1.779-1.792C2.188 13.78 1.833 11.979 1.833 10c0-1.96.349-3.747 1.046-5.359zm5.843 4.776a.67.67 0 0 0-.924-.125.54.54 0 0 0-.1.758l1.114 1.459h-.667a.485.485 0 1 0 0 .97h1.213v.75H8.021a.614.614 0 0 0 0 1.227h1.338v.55a.668.668 0 0 0 1.337 0v-.55h1.355a.614.614 0 0 0 0-1.227h-1.355v-.75h1.23a.485.485 0 1 0 0-.97h-.662l.989-1.431a.572.572 0 0 0-.177-.817.658.658 0 0 0-.876.186l-1.159 1.645zM10 1.833c2.097 0 3.872.324 5.323.97v.001a3.5 3.5 0 0 1 1.24.929c-.33.224-.911.428-1.7.595-1.282.273-3.013.428-4.863.428-1.85 0-3.58-.155-4.863-.428-.79-.168-1.37-.372-1.7-.595.338-.396.76-.714 1.24-.929v-.001c1.348-.6 2.974-.922 4.878-.965L10 1.833z" fill="#A4ACB9"/></g></svg>
|
|
@@ -18,10 +18,22 @@ exports.onlineBroadcastData = exports["default"] = void 0;
|
|
|
18
18
|
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
|
|
19
19
|
// }
|
|
20
20
|
var onlineBroadcastData = [{
|
|
21
|
+
hasOnline: true,
|
|
22
|
+
preContent: "「OKR 工作法」体验优化 ",
|
|
23
|
+
preHref: "https://wiki.tita.com/x/jIOeAQ",
|
|
24
|
+
isNew: true,
|
|
25
|
+
date: "3/29"
|
|
26
|
+
}, {
|
|
27
|
+
hasOnline: true,
|
|
28
|
+
preContent: "新增「同步钉钉待办」,工作实时掌握",
|
|
29
|
+
preHref: "https://wiki.tita.com/x/DIOeAQ",
|
|
30
|
+
isNew: true,
|
|
31
|
+
date: "3/18"
|
|
32
|
+
}, {
|
|
21
33
|
hasOnline: true,
|
|
22
34
|
preContent: "「考核」支持建立企业指标库",
|
|
23
35
|
preHref: "https://wiki.tita.com/x/vYGeAQ",
|
|
24
|
-
isNew:
|
|
36
|
+
isNew: false,
|
|
25
37
|
date: "2/17"
|
|
26
38
|
}, {
|
|
27
39
|
hasOnline: true,
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = _default;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _dropSelector = _interopRequireWildcard(require("../drop-selector"));
|
|
15
|
+
|
|
16
|
+
var _getLocale = require("../../utils/getLocale");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
+
|
|
28
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
+
|
|
30
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
+
|
|
32
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
33
|
+
|
|
34
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
+
|
|
36
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
+
|
|
38
|
+
function _default(props) {
|
|
39
|
+
var onChange = props.onChange,
|
|
40
|
+
checked = props.checked,
|
|
41
|
+
hasAuth = props.hasAuth;
|
|
42
|
+
|
|
43
|
+
var _useState = (0, _react.useState)("tu-icon-notstart"),
|
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
+
status = _useState2[0],
|
|
46
|
+
setStatus = _useState2[1];
|
|
47
|
+
|
|
48
|
+
var onMenuClickHandler = function onMenuClickHandler(name) {
|
|
49
|
+
setStatus(name);
|
|
50
|
+
onChange && onChange(name);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
(0, _react.useEffect)(function () {
|
|
54
|
+
setStatus(checked);
|
|
55
|
+
}, [checked]);
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
57
|
+
onChange: onMenuClickHandler,
|
|
58
|
+
checked: status,
|
|
59
|
+
canEdit: hasAuth,
|
|
60
|
+
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
|
+
style: {
|
|
62
|
+
color: "#89919F",
|
|
63
|
+
fontSize: 14,
|
|
64
|
+
marginRight: 4,
|
|
65
|
+
verticalAlign: "baseline"
|
|
66
|
+
},
|
|
67
|
+
className: (0, _classnames["default"])(status)
|
|
68
|
+
})
|
|
69
|
+
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
70
|
+
name: "tu-icon-finished",
|
|
71
|
+
icon: "tu-icon-finished",
|
|
72
|
+
exIconClass: "e-node-status-icon"
|
|
73
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
74
|
+
name: "tu-icon-running",
|
|
75
|
+
icon: "tu-icon-running",
|
|
76
|
+
exIconClass: "e-node-status-icon"
|
|
77
|
+
}, (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
78
|
+
name: "tu-icon-canceled",
|
|
79
|
+
icon: "tu-icon-canceled",
|
|
80
|
+
exIconClass: "e-node-status-icon"
|
|
81
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_From_Cancelled")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
82
|
+
name: "tu-icon-deferred",
|
|
83
|
+
icon: "tu-icon-deferred",
|
|
84
|
+
exIconClass: "e-node-status-icon"
|
|
85
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
86
|
+
name: "tu-icon-paused",
|
|
87
|
+
icon: "tu-icon-paused",
|
|
88
|
+
exIconClass: "e-node-status-icon"
|
|
89
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_From_Suspended")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
90
|
+
name: "tu-icon-notstart",
|
|
91
|
+
icon: "tu-icon-notstart",
|
|
92
|
+
exIconClass: "e-node-status-icon"
|
|
93
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_From_NotStarted")));
|
|
94
|
+
}
|
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var EditWightContent = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: #fff;\n padding-top: 21px;\n padding: 32px 32px 0 32px;\n"])));
|
|
16
|
+
var EditWightContent = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: #fff;\n padding-top: 21px;\n padding: 32px 32px 0 32px;\n max-height: 600px;\n overflow-y: scroll;\n"])));
|
|
17
17
|
|
|
18
18
|
exports.EditWightContent = EditWightContent;
|
|
19
19
|
|
|
@@ -37,7 +37,7 @@ var FormItemWrapper = _styledComponents["default"].div(_templateObject6 || (_tem
|
|
|
37
37
|
|
|
38
38
|
exports.FormItemWrapper = FormItemWrapper;
|
|
39
39
|
|
|
40
|
-
var ItemLabel = _styledComponents["default"].label.attrs(function (
|
|
40
|
+
var ItemLabel = _styledComponents["default"].label.attrs(function () {// console.log(props);
|
|
41
41
|
})(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n text-align: right;\n display: inline-block;\n min-width: 60px;\n position: relative;\n right: 5px;\n bottom: 2px;\n font-size: 13px;\n color: #83898f;\n opacity: 0.7;\n &::before {\n font-family: SimSun, sans-serif;\n content: '*';\n font-size: 12px;\n position: absolute;\n top: 50%;\n left: 45%;\n transform: translate(-50%, -50%);\n color: ", ";\n }\n"])), function (props) {
|
|
42
42
|
return props.required ? "#cc2929" : "transparent";
|
|
43
43
|
});
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
margin-right: 10px;
|
|
14
|
-
background: #
|
|
14
|
+
background: #f0f2f5;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.titaui-new-file-list-single-file__file-preview-img {
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
.titaui-new-file-list-single-file__file-name {
|
|
29
29
|
text-align: center;
|
|
30
30
|
margin-top: 8px;
|
|
31
|
-
color: #
|
|
31
|
+
color: #3f4755;
|
|
32
|
+
margin-right: 10px;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.titaui-new-file-list-single-file__operate {
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
.titaui-new-file-list-single-file__operate-item {
|
|
48
49
|
font-size: 12px;
|
|
49
50
|
font-weight: 400;
|
|
50
|
-
color: #
|
|
51
|
+
color: #ffffff;
|
|
51
52
|
line-height: 18px;
|
|
52
53
|
display: flex;
|
|
53
54
|
flex-direction: column;
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
|
|
61
62
|
.titaui-new-file-list-single-file__operate-item-icon {
|
|
62
63
|
margin-bottom: 4px;
|
|
63
|
-
color: #
|
|
64
|
+
color: #3f4755;
|
|
64
65
|
width: 32px;
|
|
65
66
|
height: 32px;
|
|
66
67
|
display: flex;
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
|
|
74
75
|
.titaui-new-file-list-single-file__operate-item:hover {
|
|
75
76
|
cursor: pointer;
|
|
76
|
-
color: #
|
|
77
|
+
color: #ffffff;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
.titaui-new-file-list-single-file__operate-item--only {
|
|
@@ -110,7 +110,7 @@ var SingleFile = function SingleFile(_ref) {
|
|
|
110
110
|
className: "".concat(prefix, "__file-name")
|
|
111
111
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
112
112
|
text: data.fileName,
|
|
113
|
-
maxWidth:
|
|
113
|
+
maxWidth: 120
|
|
114
114
|
})));
|
|
115
115
|
};
|
|
116
116
|
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _requestApi = require("./request-api");
|
|
13
15
|
|
|
14
16
|
var _openData = require("../../utils/open-data");
|
|
@@ -19,9 +21,9 @@ var _followerVisitorFollower = _interopRequireDefault(require("./img/follower-vi
|
|
|
19
21
|
|
|
20
22
|
var _followerVisitorVisitor = _interopRequireDefault(require("./img/follower-visitor-visitor.png"));
|
|
21
23
|
|
|
22
|
-
require("
|
|
24
|
+
var _getLocale = require("../../utils/getLocale");
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
require("./index.css");
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
29
|
|
|
@@ -135,14 +137,14 @@ var FollowerVisitor = function FollowerVisitor() {
|
|
|
135
137
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
136
138
|
className: (0, _classnames["default"])("".concat(prefix, "__follower-icon")),
|
|
137
139
|
src: _followerVisitorFollower["default"]
|
|
138
|
-
}), renderPerson(followerInofs), getPrefixStrDesc(followerInofs),
|
|
140
|
+
}), renderPerson(followerInofs), getPrefixStrDesc(followerInofs), (0, _getLocale.getLocale)('OKR_MyO_Followedyou'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
141
|
className: "".concat(prefix, "__info-wrapper")
|
|
140
142
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
141
143
|
condition: visitorInofs && visitorInofs.length > 0
|
|
142
144
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
143
145
|
className: (0, _classnames["default"])("".concat(prefix, "__visitor-icon")),
|
|
144
146
|
src: _followerVisitorVisitor["default"]
|
|
145
|
-
}), renderPerson(visitorInofs), getPrefixStrDesc(visitorInofs),
|
|
147
|
+
}), renderPerson(visitorInofs), getPrefixStrDesc(visitorInofs), (0, _getLocale.getLocale)('OKR_MyO_Visitedyou'))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
148
|
className: (0, _classnames["default"])("tu-icon-canceled", "".concat(prefix, "__close")),
|
|
147
149
|
onClick: handleCloseMessage
|
|
148
150
|
}));
|