@titaui/pc 1.10.7 → 1.10.8-2.beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +3 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer/index.js +3 -2
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +27 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +34 -12
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-name.js +11 -4
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +40 -44
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +207 -195
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -2
- package/lib/components/okr-detail/index.js +4 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/scrollbar/index.js +67 -9
- package/lib/components/scrollbar/scroll-mask/index.css +29 -0
- package/lib/components/scrollbar/scroll-mask/index.js +152 -0
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +142 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/wechat-btn/index.css +10 -0
- package/lib/components/wechat-btn/index.js +232 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +39 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +10 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/package.json +121 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -108,7 +108,7 @@ function _default(props) {
|
|
|
108
108
|
visible: visible,
|
|
109
109
|
className: (0, _classnames["default"])(preCls, _toConsumableArray(extraClass), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(preCls, "-no-head-line"), noHeadLine), _defineProperty(_classNames2, "".concat(preCls, "-no-footer-line"), noFooterLine), _defineProperty(_classNames2, "".concat(preCls, "-no-close"), noCloseIcon), _defineProperty(_classNames2, "".concat(preCls, "-no-footer"), noFooter), _classNames2)),
|
|
110
110
|
closeIcon: /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
|
-
className: "tu-icon-
|
|
111
|
+
className: "tu-icon-canceled"
|
|
112
112
|
}),
|
|
113
113
|
animation: "slide-fade",
|
|
114
114
|
maskAnimation: "fade",
|
|
@@ -122,7 +122,8 @@ function DrawerHeader(_ref) {
|
|
|
122
122
|
actionMaxCount = _ref$actionMaxCount === void 0 ? 4 : _ref$actionMaxCount,
|
|
123
123
|
content = _ref.content,
|
|
124
124
|
style = _ref.style,
|
|
125
|
-
onClose = _ref.onClose
|
|
125
|
+
onClose = _ref.onClose,
|
|
126
|
+
actionComponent = _ref.actionComponent;
|
|
126
127
|
var drawer = (0, _react.useContext)(DrawerContext);
|
|
127
128
|
var manager = (0, _react.useContext)(_context["default"]);
|
|
128
129
|
var showClose = closable && (!!onClose || !!drawer);
|
|
@@ -151,7 +152,7 @@ function DrawerHeader(_ref) {
|
|
|
151
152
|
style: {
|
|
152
153
|
flex: 1
|
|
153
154
|
}
|
|
154
|
-
}), displayActions.map(function (action) {
|
|
155
|
+
}), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
|
|
155
156
|
return /*#__PURE__*/_react["default"].createElement(_headerAction["default"], action);
|
|
156
157
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
157
158
|
title: (0, _getLocale.getLocale)("Mod_MoreOperate"),
|
|
@@ -159,7 +159,12 @@ var DrawerManager = /*#__PURE__*/function () {
|
|
|
159
159
|
saveProps: function saveProps() {
|
|
160
160
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
161
161
|
var current = _this2.history[_this2.history.length - 1];
|
|
162
|
-
|
|
162
|
+
|
|
163
|
+
if (current) {
|
|
164
|
+
current.props = _objectSpread(_objectSpread({}, current.props), props);
|
|
165
|
+
} else {
|
|
166
|
+
current.props = _objectSpread({}, props);
|
|
167
|
+
}
|
|
163
168
|
}
|
|
164
169
|
}
|
|
165
170
|
}, /*#__PURE__*/_react["default"].createElement(_drawerWrapper["default"], {
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
margin-right: 36px;
|
|
16
16
|
white-space: nowrap;
|
|
17
17
|
word-break: keep-all;
|
|
18
|
-
overflow: hidden;
|
|
19
18
|
text-overflow: ellipsis;
|
|
20
19
|
font-weight: 400;
|
|
21
20
|
}
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.titaui-dynamic-first-level-tabs__tab--active::before {
|
|
29
|
-
content:
|
|
28
|
+
content: '';
|
|
30
29
|
display: inline-block;
|
|
31
30
|
position: absolute;
|
|
32
31
|
bottom: 0;
|
|
@@ -38,6 +37,17 @@
|
|
|
38
37
|
border-radius: 2px;
|
|
39
38
|
}
|
|
40
39
|
|
|
40
|
+
.titaui-dynamic-first-level-tabs__tab--point {
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: 6px;
|
|
43
|
+
height: 6px;
|
|
44
|
+
background: #f05e5e;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
right: -6px;
|
|
47
|
+
top: 22px;
|
|
48
|
+
border: 2px solid #ffffff;
|
|
49
|
+
}
|
|
50
|
+
|
|
41
51
|
.titaui-dynamic-first-level-tabs__hide-first-level-tabs {
|
|
42
52
|
display: flex;
|
|
43
53
|
flex-direction: column;
|
|
@@ -15,6 +15,8 @@ var _conditionRender = _interopRequireDefault(require("../../../condition-render
|
|
|
15
15
|
|
|
16
16
|
var _popup = _interopRequireDefault(require("../../../popup"));
|
|
17
17
|
|
|
18
|
+
var _useGlobalValue3 = _interopRequireDefault(require("../../../nav-top/useGlobalValue"));
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -57,9 +59,16 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
57
59
|
popupVisible = _useState2[0],
|
|
58
60
|
setPopupVisible = _useState2[1];
|
|
59
61
|
|
|
62
|
+
var _useGlobalValue = (0, _useGlobalValue3["default"])(),
|
|
63
|
+
_useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
|
|
64
|
+
feedNum = _useGlobalValue2[0];
|
|
65
|
+
|
|
60
66
|
var handleTabsChange = function handleTabsChange(id) {
|
|
61
67
|
setPopupVisible(false);
|
|
62
|
-
|
|
68
|
+
|
|
69
|
+
if (onTabsChange) {
|
|
70
|
+
onTabsChange(id);
|
|
71
|
+
}
|
|
63
72
|
};
|
|
64
73
|
|
|
65
74
|
var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
|
|
@@ -69,7 +78,7 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
69
78
|
var renderFoldFirstLevelTab = (0, _react.useMemo)(function () {
|
|
70
79
|
var foldTabs = tabsInfo.slice(3);
|
|
71
80
|
var isActiveHideMeun = foldTabs.filter(function (item) {
|
|
72
|
-
return item.CodeId
|
|
81
|
+
return item.CodeId === activeTab;
|
|
73
82
|
}).length > 0;
|
|
74
83
|
|
|
75
84
|
var popContent = /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -77,7 +86,7 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
77
86
|
}, foldTabs.map(function (item) {
|
|
78
87
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
88
|
key: item.CodeId + item.MenuName,
|
|
80
|
-
className: (0, _classnames["default"])("".concat(prefix, "__hide-first-level-tab"), _defineProperty({}, "".concat(prefix, "__hide-first-level-tab--active"), item.CodeId
|
|
89
|
+
className: (0, _classnames["default"])("".concat(prefix, "__hide-first-level-tab"), _defineProperty({}, "".concat(prefix, "__hide-first-level-tab--active"), item.CodeId === activeTab)),
|
|
81
90
|
onClick: function onClick() {
|
|
82
91
|
handleTabsChange(item.CodeId);
|
|
83
92
|
}
|
|
@@ -101,14 +110,18 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
101
110
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
102
111
|
condition: !!tabsInfo
|
|
103
112
|
}, tabsInfo.map(function (item, index) {
|
|
104
|
-
if (index >= 3) return;
|
|
113
|
+
if (index >= 3) return null;
|
|
105
114
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
115
|
key: item.CodeId + item.MenuName,
|
|
107
116
|
className: (0, _classnames["default"])("".concat(prefix, "__tab"), _defineProperty({}, "".concat(prefix, "__tab--active"), item.CodeId === activeTab)),
|
|
108
117
|
onClick: function onClick() {
|
|
109
|
-
|
|
118
|
+
if (onTabsChange) {
|
|
119
|
+
onTabsChange(item.CodeId);
|
|
120
|
+
}
|
|
110
121
|
}
|
|
111
|
-
}, item.MenuName
|
|
122
|
+
}, item.MenuName, item.CodeId === 1001 && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
|
+
className: "".concat(prefix, "__tab--point")
|
|
124
|
+
}));
|
|
112
125
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
113
126
|
className: "".concat(prefix, "__fold-tab")
|
|
114
127
|
}, renderFoldFirstLevelTab));
|
|
@@ -9,7 +9,7 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
9
9
|
|
|
10
10
|
var getStatusTextMapping = function getStatusTextMapping(status) {
|
|
11
11
|
var statusMapText = {
|
|
12
|
-
delay: (0, _getLocale.getLocale)("
|
|
12
|
+
delay: (0, _getLocale.getLocale)("OKR_MyO_Postoned"),
|
|
13
13
|
normal: (0, _getLocale.getLocale)("Pro_page_Mil_Normal"),
|
|
14
14
|
risk: (0, _getLocale.getLocale)("Pro_page_Mil_Existingrisk"),
|
|
15
15
|
end: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.OkrRiskMapping = exports.ObjectType = exports.ObjTypeMapText = exports.EStatusStatus2ClassType = exports.EObjType = exports.EFeedType = void 0;
|
|
6
|
+
exports.OkrRiskMapping = exports.ObjectType = exports.ObjTypeMapText = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
@@ -57,6 +57,15 @@ exports.EFeedType = EFeedType;
|
|
|
57
57
|
EFeedType[EFeedType["PlanCommunication"] = 103] = "PlanCommunication";
|
|
58
58
|
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
59
59
|
|
|
60
|
+
var EShareType;
|
|
61
|
+
exports.EShareType = EShareType;
|
|
62
|
+
|
|
63
|
+
(function (EShareType) {
|
|
64
|
+
EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
|
|
65
|
+
EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
|
|
66
|
+
EShareType[EShareType["BiShare"] = 3] = "BiShare";
|
|
67
|
+
})(EShareType || (exports.EShareType = EShareType = {}));
|
|
68
|
+
|
|
60
69
|
var EObjType;
|
|
61
70
|
exports.EObjType = EObjType;
|
|
62
71
|
|
|
@@ -68,9 +77,10 @@ exports.EObjType = EObjType;
|
|
|
68
77
|
EObjType[EObjType["Assess"] = 23] = "Assess";
|
|
69
78
|
EObjType[EObjType["MileStone"] = 27] = "MileStone";
|
|
70
79
|
EObjType[EObjType["KanBan"] = 66] = "KanBan";
|
|
80
|
+
EObjType[EObjType["Report"] = 8] = "Report";
|
|
71
81
|
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
72
82
|
|
|
73
|
-
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_ObjTypeMapText, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_ObjTypeMapText, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_ObjTypeMapText, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_ObjTypeMapText, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_ObjTypeMapText, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _ObjTypeMapText);
|
|
83
|
+
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_ObjTypeMapText, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_ObjTypeMapText, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_ObjTypeMapText, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_ObjTypeMapText, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_ObjTypeMapText, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_ObjTypeMapText, EObjType.Report, "总结"), _ObjTypeMapText);
|
|
74
84
|
exports.ObjTypeMapText = ObjTypeMapText;
|
|
75
85
|
|
|
76
86
|
var ObjectType = function ObjectType() {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.titaui-dynamic-operation__operate {
|
|
2
|
+
margin: 14px 24px 12px 88px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-operation__operate-item {
|
|
6
|
+
display: flex;
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
line-height: 18px;
|
|
9
|
+
margin-top: 8px;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-operation__operate-item::before {
|
|
14
|
+
content: '';
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 1px;
|
|
17
|
+
height: 100%;
|
|
18
|
+
background: rgba(164, 172, 185, 0.2);
|
|
19
|
+
top: 16px;
|
|
20
|
+
left: 8px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-operation__operate-item:last-child::before {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-operation__operate-item-total {
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
color: #89919f;
|
|
30
|
+
line-height: 18px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-operation__operate-item-total-num {
|
|
36
|
+
margin: 0 4px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.titaui-dynamic-operation__operate-item-total:hover {
|
|
40
|
+
color: #2879ff;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.titaui-dynamic-operation__operate-item-left {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
margin-right: 12px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.titaui-dynamic-operation__operate-item-right {
|
|
50
|
+
flex: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.titaui-dynamic-operation__operate-icon {
|
|
54
|
+
width: 18px;
|
|
55
|
+
height: 18px;
|
|
56
|
+
margin-right: 8px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-dynamic-operation__operate-time {
|
|
60
|
+
color: #89919f;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.titaui-dynamic-operation__operate-user {
|
|
64
|
+
color: #3f4755;
|
|
65
|
+
margin-right: 8px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dynamic-operation__operate-content {
|
|
69
|
+
color: #6f7886;
|
|
70
|
+
white-space: pre-wrap;
|
|
71
|
+
}
|
|
@@ -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
|
+
}, (0, _openData.parseHtmlAndTextTag)(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,7 +2,7 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
5
|
-
margin-bottom:
|
|
5
|
+
margin-bottom: 16px;
|
|
6
6
|
padding: 26px 0 0 24px;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -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 {
|
|
@@ -247,10 +247,10 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
247
247
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
248
248
|
name: user.name,
|
|
249
249
|
userId: user.id || user.userId,
|
|
250
|
-
src: user.avatar.medium,
|
|
250
|
+
src: user.avatar.original || user.avatar.medium,
|
|
251
251
|
color: user.avatar.color,
|
|
252
252
|
size: {
|
|
253
|
-
width:
|
|
253
|
+
width: 48,
|
|
254
254
|
textNum: 1,
|
|
255
255
|
fontSize: 18
|
|
256
256
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 _supersetCharts = _interopRequireDefault(require("../../../superset-charts"));
|
|
11
|
+
|
|
12
|
+
var _utils = require("../dynamic-chart/utils");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var prefixCls = "titaui-dynamic-item";
|
|
17
|
+
|
|
18
|
+
var DynamicAIDialy = function DynamicAIDialy(_ref) {
|
|
19
|
+
var data = _ref.data;
|
|
20
|
+
var chartQuery = (0, _utils.getChartProps)(data.biId);
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
+
className: prefixCls
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], chartQuery));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var _default = DynamicAIDialy;
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -1,5 +1,3 @@
|
|
|
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;
|
|
@@ -15,6 +13,10 @@
|
|
|
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;
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
height: 40px;
|
|
27
29
|
min-width: 40px;
|
|
28
30
|
border-radius: 50%;
|
|
29
|
-
margin-right:
|
|
31
|
+
margin-right: 12px;
|
|
30
32
|
display: flex;
|
|
31
33
|
align-items: center;
|
|
32
34
|
justify-content: center;
|
|
@@ -72,9 +74,13 @@
|
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
.titaui-dynamic-align-item__obj-principal-user::after {
|
|
75
|
-
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%);
|
|
76
81
|
display: inline-block;
|
|
77
|
-
margin: 0
|
|
82
|
+
margin: 0 8px;
|
|
83
|
+
vertical-align: text-top;
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
.titaui-dynamic-align-item__obj-cycle {
|
|
@@ -91,11 +97,11 @@
|
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
.titaui-dynamic-align-item__space {
|
|
94
|
-
height:
|
|
100
|
+
height: 30px;
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
.titaui-dynamic-align-item__operate-desc {
|
|
98
|
-
font-size:
|
|
104
|
+
font-size: 14px;
|
|
99
105
|
font-weight: 400;
|
|
100
106
|
color: #89919f;
|
|
101
107
|
line-height: 24px;
|
|
@@ -33,6 +33,8 @@ var _dynamicAlignO = _interopRequireDefault(require("./img/dynamic-align-o.png")
|
|
|
33
33
|
|
|
34
34
|
var _dynamicAlignKr = _interopRequireDefault(require("./img/dynamic-align-kr.png"));
|
|
35
35
|
|
|
36
|
+
var _tools = require("../../../../utils/tools");
|
|
37
|
+
|
|
36
38
|
require("./index.css");
|
|
37
39
|
|
|
38
40
|
var _excluded = ["data"];
|
|
@@ -131,10 +133,12 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
131
133
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
132
134
|
isPercent: true,
|
|
133
135
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
134
|
-
str: parentObjName,
|
|
136
|
+
str: (0, _tools.htmlDecodeByRegExp)(parentObjName),
|
|
135
137
|
keyWord: searchKeyWord
|
|
136
138
|
})
|
|
137
|
-
})), /*#__PURE__*/_react["default"].createElement("div",
|
|
139
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
|
+
className: "".concat(prefix, "__obj-other-info")
|
|
141
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
142
|
className: "".concat(prefix, "__obj-principal-user")
|
|
139
143
|
}, parentPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
140
144
|
id: parentPrincipalUser.userId,
|
|
@@ -166,8 +170,10 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
166
170
|
}
|
|
167
171
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
168
172
|
isPercent: true,
|
|
169
|
-
text: okrName
|
|
170
|
-
})), /*#__PURE__*/_react["default"].createElement("div",
|
|
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", {
|
|
171
177
|
className: "".concat(prefix, "__obj-principal-user")
|
|
172
178
|
}, principalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
173
179
|
id: principalUser.userId,
|
|
@@ -21,6 +21,8 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
21
21
|
|
|
22
22
|
var _context = require("../../context");
|
|
23
23
|
|
|
24
|
+
var _tools = require("../../../../utils/tools");
|
|
25
|
+
|
|
24
26
|
require("./index.css");
|
|
25
27
|
|
|
26
28
|
var _excluded = ["data"];
|
|
@@ -39,7 +41,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
39
41
|
|
|
40
42
|
var prefix = "titaui-dynamic-assessment-item";
|
|
41
43
|
|
|
42
|
-
var
|
|
44
|
+
var DynamicAssessment = function DynamicAssessment(_ref) {
|
|
43
45
|
var data = _ref.data,
|
|
44
46
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
45
47
|
|
|
@@ -80,7 +82,7 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
80
82
|
onClick: handleClickTitle
|
|
81
83
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
82
84
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
83
|
-
str: data.assessName,
|
|
85
|
+
str: (0, _tools.htmlDecodeByRegExp)(data.assessName),
|
|
84
86
|
keyWord: searchKeyWord
|
|
85
87
|
}),
|
|
86
88
|
isPercent: true
|
|
@@ -95,5 +97,5 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
95
97
|
}), /*#__PURE__*/_react["default"].createElement("span", null, "".concat(data.startDate, "-").concat(data.deadline))))));
|
|
96
98
|
};
|
|
97
99
|
|
|
98
|
-
var _default =
|
|
100
|
+
var _default = DynamicAssessment;
|
|
99
101
|
exports["default"] = _default;
|