@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
|
@@ -0,0 +1,102 @@
|
|
|
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"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _supersetCharts = _interopRequireDefault(require("../../../superset-charts"));
|
|
15
|
+
|
|
16
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
17
|
+
|
|
18
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
19
|
+
|
|
20
|
+
var _dangerousHtml = _interopRequireDefault(require("../../../dangerous-html"));
|
|
21
|
+
|
|
22
|
+
var _context = require("../../context");
|
|
23
|
+
|
|
24
|
+
var _tools = require("../../../../utils/tools");
|
|
25
|
+
|
|
26
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
27
|
+
|
|
28
|
+
var _utils = require("./utils");
|
|
29
|
+
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
32
|
+
var _excluded = ["data"];
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
|
+
|
|
42
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
+
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
+
|
|
46
|
+
var prefixCls = "titaui-dynamic-chart";
|
|
47
|
+
|
|
48
|
+
var DynamicChart = function DynamicChart(_ref) {
|
|
49
|
+
var data = _ref.data,
|
|
50
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
+
|
|
52
|
+
var contentRef = (0, _react.useRef)();
|
|
53
|
+
|
|
54
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
55
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
56
|
+
|
|
57
|
+
var chartQuery = (0, _utils.getChartProps)(data.biId); // const chartQuery = getChartProps('{"type":"diaryFeedChart","id":"43","timeRange":"2022/03/01T00:00:00 : 2022/03/05T00:00:00"}');
|
|
58
|
+
// console.log(chartQuery);
|
|
59
|
+
|
|
60
|
+
(0, _react.useEffect)(function () {
|
|
61
|
+
(0, _tools.highLightWord)({
|
|
62
|
+
parentDom: contentRef.current,
|
|
63
|
+
keyWord: searchKeyWord
|
|
64
|
+
});
|
|
65
|
+
}, [data, searchKeyWord]);
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: (0, _classnames["default"])(prefixCls)
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
69
|
+
data: data
|
|
70
|
+
}, restProps, {
|
|
71
|
+
user: _utils.systemPublisher,
|
|
72
|
+
desc: /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
style: {
|
|
74
|
+
marginLeft: "4px",
|
|
75
|
+
color: "#89919f"
|
|
76
|
+
}
|
|
77
|
+
}, "\u63A8\u9001\u4E86\u6D88\u606F")
|
|
78
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: "".concat(prefixCls, "__content")
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
81
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__content-quoto"), "".concat(prefixCls, "__content-quoto--left")),
|
|
82
|
+
src: _dynamicLeftQuoto["default"],
|
|
83
|
+
alt: "left"
|
|
84
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
ref: contentRef
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
87
|
+
htmlText: data.content
|
|
88
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
89
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__content-quoto"), "".concat(prefixCls, "__content-quoto--right")),
|
|
90
|
+
src: _dynamicRightQuoto["default"],
|
|
91
|
+
alt: "right"
|
|
92
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
className: "".concat(prefixCls, "__charts")
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], _extends({
|
|
95
|
+
width: 800,
|
|
96
|
+
height: 400,
|
|
97
|
+
layout: "feed-card"
|
|
98
|
+
}, chartQuery))));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var _default = DynamicChart;
|
|
102
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.systemPublisher = exports.safeParse = exports.getChartProps = void 0;
|
|
7
|
+
var systemPublisher = {
|
|
8
|
+
avatar: {
|
|
9
|
+
big: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_b.png",
|
|
10
|
+
color: "#f0c75a",
|
|
11
|
+
hasAvatar: true,
|
|
12
|
+
large: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_l.png",
|
|
13
|
+
medium: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_m.png",
|
|
14
|
+
normal: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_n.png",
|
|
15
|
+
original: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_o.png",
|
|
16
|
+
small: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_s.png"
|
|
17
|
+
},
|
|
18
|
+
blessingType: 0,
|
|
19
|
+
decorationType: 0,
|
|
20
|
+
departmentId: 0,
|
|
21
|
+
departmentName: null,
|
|
22
|
+
jobState: 0,
|
|
23
|
+
medalPosition: null,
|
|
24
|
+
medalUrl: null,
|
|
25
|
+
name: "Tita小助手",
|
|
26
|
+
postition: null,
|
|
27
|
+
praiseType: 0,
|
|
28
|
+
tag: null,
|
|
29
|
+
userId: 100000,
|
|
30
|
+
userMark: null,
|
|
31
|
+
userType: 0
|
|
32
|
+
};
|
|
33
|
+
exports.systemPublisher = systemPublisher;
|
|
34
|
+
|
|
35
|
+
var safeParse = function safeParse(json) {
|
|
36
|
+
var parsed = {};
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
parsed = JSON.parse(json);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
throw new Error(e);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return parsed;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
exports.safeParse = safeParse;
|
|
48
|
+
|
|
49
|
+
var getChartProps = function getChartProps(json) {
|
|
50
|
+
var parsed = safeParse(json);
|
|
51
|
+
|
|
52
|
+
if (typeof parsed === "number") {
|
|
53
|
+
return {
|
|
54
|
+
id: parsed
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return parsed;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.getChartProps = getChartProps;
|
|
@@ -58,22 +58,23 @@
|
|
|
58
58
|
line-height: 18px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.titaui-dynamic-create-o-item__okr-type {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
.titaui-dynamic-create-o-item__okr-type::after {
|
|
62
|
+
content: '';
|
|
63
|
+
width: 1px;
|
|
64
|
+
height: 14px;
|
|
65
|
+
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
|
|
66
|
+
display: inline-block;
|
|
67
|
+
margin: 0 8px;
|
|
68
|
+
vertical-align: text-top;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
.titaui-dynamic-create-o-item__okr-krs {
|
|
70
|
-
margin-top:
|
|
72
|
+
margin-top: 12px;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
.titaui-dynamic-create-o-item__kr {
|
|
74
76
|
display: flex;
|
|
75
|
-
|
|
76
|
-
margin-top: 8px;
|
|
77
|
+
margin-top: 6px;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
.titaui-dynamic-create-o-item__kr-order {
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
color: #89919f;
|
|
82
83
|
line-height: 18px;
|
|
83
84
|
margin-right: 4px;
|
|
84
|
-
margin-top:
|
|
85
|
+
margin-top: 3px;
|
|
85
86
|
word-break: keep-all;
|
|
86
87
|
}
|
|
87
88
|
|
|
@@ -97,7 +98,7 @@
|
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
.titaui-dynamic-create-o-item__operate-desc {
|
|
100
|
-
font-size:
|
|
101
|
+
font-size: 14px;
|
|
101
102
|
font-weight: 400;
|
|
102
103
|
color: #89919f;
|
|
103
104
|
line-height: 24px;
|
|
@@ -29,6 +29,8 @@ var _progress = _interopRequireDefault(require("../../../progress"));
|
|
|
29
29
|
|
|
30
30
|
var _util = require("../../util");
|
|
31
31
|
|
|
32
|
+
var _tools = require("../../../../utils/tools");
|
|
33
|
+
|
|
32
34
|
require("./index.css");
|
|
33
35
|
|
|
34
36
|
var _excluded = ["data"];
|
|
@@ -60,8 +62,9 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
60
62
|
okrTypeId = data.okrTypeId,
|
|
61
63
|
principalUser = data.principalUser,
|
|
62
64
|
_data$riskLevel = data.riskLevel,
|
|
63
|
-
riskLevel = _data$riskLevel === void 0 ?
|
|
64
|
-
okrStatus = data.okrStatus,
|
|
65
|
+
riskLevel = _data$riskLevel === void 0 ? 1 : _data$riskLevel,
|
|
66
|
+
_data$okrStatus = data.okrStatus,
|
|
67
|
+
okrStatus = _data$okrStatus === void 0 ? 1 : _data$okrStatus,
|
|
65
68
|
_data$okrProgress = data.okrProgress,
|
|
66
69
|
okrProgress = _data$okrProgress === void 0 ? 0 : _data$okrProgress;
|
|
67
70
|
|
|
@@ -150,7 +153,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
150
153
|
onClick: handleClickOTitle
|
|
151
154
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
152
155
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
153
|
-
str: okrName,
|
|
156
|
+
str: (0, _tools.htmlDecodeByRegExp)(okrName),
|
|
154
157
|
keyWord: searchKeyWord
|
|
155
158
|
}),
|
|
156
159
|
isPercent: true
|
|
@@ -160,7 +163,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
160
163
|
className: "".concat(prefix, "__okr")
|
|
161
164
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
162
165
|
className: "".concat(prefix, "__okr-type")
|
|
163
|
-
}, okrTypeInfo.text), /*#__PURE__*/_react["default"].createElement("span",
|
|
166
|
+
}, okrTypeInfo.text), /*#__PURE__*/_react["default"].createElement("span", {
|
|
164
167
|
className: "".concat(prefix, "__okr-cycle")
|
|
165
168
|
}, cycleName)), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
169
|
className: "".concat(prefix, "__okr-krs")
|
|
@@ -176,7 +179,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
176
179
|
handleClickKrTitle(kr.krId);
|
|
177
180
|
}
|
|
178
181
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
179
|
-
str: kr.krName,
|
|
182
|
+
str: (0, _tools.htmlDecodeByRegExp)(kr.krName),
|
|
180
183
|
keyWord: searchKeyWord
|
|
181
184
|
})));
|
|
182
185
|
}))))));
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.titaui-dynamic-kr-item__object-name {
|
|
54
|
-
font-size:
|
|
54
|
+
font-size: 14px;
|
|
55
55
|
color: #2879ff;
|
|
56
56
|
line-height: 24px;
|
|
57
57
|
margin: 0 4px;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.titaui-dynamic-kr-item__operate-desc {
|
|
67
|
-
font-size:
|
|
67
|
+
font-size: 14px;
|
|
68
68
|
font-weight: 400;
|
|
69
69
|
color: #89919f;
|
|
70
70
|
line-height: 24px;
|
|
@@ -21,10 +21,12 @@ var _constant = require("../../constant");
|
|
|
21
21
|
|
|
22
22
|
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
23
23
|
|
|
24
|
-
require("./index.css");
|
|
25
|
-
|
|
26
24
|
var _context = require("../../context");
|
|
27
25
|
|
|
26
|
+
var _tools = require("../../../../utils/tools");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
28
30
|
var _excluded = ["data"];
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -95,7 +97,7 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
95
97
|
onClick: handleClickKrTitle
|
|
96
98
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
97
99
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
98
|
-
str: name,
|
|
100
|
+
str: (0, _tools.htmlDecodeByRegExp)(name),
|
|
99
101
|
keyWord: searchKeyWord
|
|
100
102
|
}),
|
|
101
103
|
isPercent: true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.titaui-dynamic-share-to-dynamic__operate-desc {
|
|
2
2
|
margin-left: 4px;
|
|
3
|
-
font-size:
|
|
3
|
+
font-size: 14px;
|
|
4
4
|
font-weight: normal;
|
|
5
5
|
color: #89919f;
|
|
6
6
|
line-height: 24px;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
height: 104px;
|
|
39
39
|
display: flex;
|
|
40
40
|
border-radius: 18px;
|
|
41
|
-
background: rgba(
|
|
41
|
+
background: rgba(40, 121, 255, 0.06);
|
|
42
42
|
padding: 12px;
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
margin-left: 88px;
|
package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js
RENAMED
|
@@ -15,7 +15,7 @@ var _context = require("../../context");
|
|
|
15
15
|
|
|
16
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
17
|
|
|
18
|
-
var _dangerousHtml = _interopRequireDefault(require("
|
|
18
|
+
var _dangerousHtml = _interopRequireDefault(require("../../../dangerous-html"));
|
|
19
19
|
|
|
20
20
|
var _tools = require("../../../../utils/tools");
|
|
21
21
|
|
|
@@ -56,7 +56,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
56
56
|
var prefix = "titaui-dynamic-share-to-dynamic";
|
|
57
57
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var DynamicLearning = function DynamicLearning(_ref) {
|
|
60
60
|
var data = _ref.data,
|
|
61
61
|
_ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
|
|
62
62
|
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
@@ -103,8 +103,9 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
103
103
|
}, [data, searchKeyWord]);
|
|
104
104
|
(0, _react.useEffect)(function () {
|
|
105
105
|
if (data.shareContent && typeof data.shareContent === "string" && data.shareContent.substr(0, 1) === "{") {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
var shareContent = JSON.parse(data.shareContent);
|
|
107
|
+
setTitle(shareContent.title);
|
|
108
|
+
setContent(htmlToText(shareContent.content));
|
|
108
109
|
}
|
|
109
110
|
}, []);
|
|
110
111
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -139,5 +140,5 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
139
140
|
}, content))));
|
|
140
141
|
};
|
|
141
142
|
|
|
142
|
-
var _default =
|
|
143
|
+
var _default = DynamicLearning;
|
|
143
144
|
exports["default"] = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.MileStoneStatusClass2StatusTypeText = void 0;
|
|
6
|
+
exports.MileStoneStatusClass2StatusTypeText = exports.EStatusStatus2ClassType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../../../utils/getLocale");
|
|
9
9
|
|
|
@@ -13,4 +13,11 @@ var MileStoneStatusClass2StatusTypeText = {
|
|
|
13
13
|
4: (0, _getLocale.getLocale)("OKR_MyO_E_Overdue"),
|
|
14
14
|
3: (0, _getLocale.getLocale)("Pro_page_Sta_Completed")
|
|
15
15
|
};
|
|
16
|
-
exports.MileStoneStatusClass2StatusTypeText = MileStoneStatusClass2StatusTypeText;
|
|
16
|
+
exports.MileStoneStatusClass2StatusTypeText = MileStoneStatusClass2StatusTypeText;
|
|
17
|
+
var EStatusStatus2ClassType = {
|
|
18
|
+
3: "tu-icon-finished",
|
|
19
|
+
2: "tu-icon-running",
|
|
20
|
+
4: "tu-icon-deferred",
|
|
21
|
+
1: "tu-icon-notstart"
|
|
22
|
+
};
|
|
23
|
+
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.titaui-dynamic-milestone-item__object-name {
|
|
96
|
-
font-size:
|
|
96
|
+
font-size: 14px;
|
|
97
97
|
color: #2879ff;
|
|
98
98
|
line-height: 24px;
|
|
99
99
|
margin: 0 4px;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.titaui-dynamic-milestone-item__operate-desc {
|
|
109
|
-
font-size:
|
|
109
|
+
font-size: 14px;
|
|
110
110
|
font-weight: 400;
|
|
111
111
|
color: #89919f;
|
|
112
112
|
line-height: 24px;
|
|
@@ -25,6 +25,8 @@ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
|
25
25
|
|
|
26
26
|
var _getLocale = require("../../../../utils/getLocale");
|
|
27
27
|
|
|
28
|
+
var _tools = require("../../../../utils/tools");
|
|
29
|
+
|
|
28
30
|
require("./index.css");
|
|
29
31
|
|
|
30
32
|
var _excluded = ["data"];
|
|
@@ -81,7 +83,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
81
83
|
className: "".concat(prefix, "__content-title-text"),
|
|
82
84
|
onClick: handleClickTaskTitle
|
|
83
85
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
84
|
-
str: name,
|
|
86
|
+
str: (0, _tools.htmlDecodeByRegExp)(name),
|
|
85
87
|
keyWord: searchKeyWord
|
|
86
88
|
}));
|
|
87
89
|
}, [name, searchKeyWord]);
|
|
@@ -122,7 +124,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
122
124
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
125
|
className: "".concat(prefix, "__content-status-and-time-range")
|
|
124
126
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
125
|
-
className: (0, _classnames["default"])(
|
|
127
|
+
className: (0, _classnames["default"])(_constant.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
|
|
126
128
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
127
129
|
className: "".concat(prefix, "__content-status-text")
|
|
128
130
|
}, _constant.MileStoneStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
@@ -28,12 +28,8 @@
|
|
|
28
28
|
margin-top: 12px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.titaui-dynamic-progress-item__status-percent {
|
|
32
|
-
margin-left: 8px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
31
|
.titaui-dynamic-progress-item__object-name {
|
|
36
|
-
font-size:
|
|
32
|
+
font-size: 14px;
|
|
37
33
|
color: #2879ff;
|
|
38
34
|
line-height: 24px;
|
|
39
35
|
margin: 0 4px;
|
|
@@ -50,7 +46,7 @@
|
|
|
50
46
|
}
|
|
51
47
|
|
|
52
48
|
.titaui-dynamic-progress-item__operate-desc {
|
|
53
|
-
font-size:
|
|
49
|
+
font-size: 14px;
|
|
54
50
|
font-weight: 400;
|
|
55
51
|
color: #89919f;
|
|
56
52
|
line-height: 24px;
|
|
@@ -33,6 +33,8 @@ var _conditionRender = _interopRequireDefault(require("../../../condition-render
|
|
|
33
33
|
|
|
34
34
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
35
35
|
|
|
36
|
+
var _tools = require("../../../../utils/tools");
|
|
37
|
+
|
|
36
38
|
require("./index.css");
|
|
37
39
|
|
|
38
40
|
var _excluded = ["data"];
|
|
@@ -142,12 +144,12 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
142
144
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
145
|
className: "".concat(prefix, "__title")
|
|
144
146
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
145
|
-
content: obj === null || obj === void 0 ? void 0 : obj.objName,
|
|
147
|
+
content: (0, _tools.htmlDecodeByRegExp)(obj === null || obj === void 0 ? void 0 : obj.objName),
|
|
146
148
|
onClickTitle: handleClickTitle
|
|
147
149
|
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
150
|
className: "".concat(prefix, "__status")
|
|
149
151
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
150
|
-
condition: obj &&
|
|
152
|
+
condition: obj && obj.objType !== _constant.EObjType.Task && obj.objType !== _constant.EObjType.Project
|
|
151
153
|
}, /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
|
|
152
154
|
oStatus: 1,
|
|
153
155
|
riskLevel: riskLevel,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-project-item__content {
|
|
11
|
-
height:
|
|
11
|
+
height: 68px;
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
border-radius: 12px;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.titaui-dynamic-project-item__operate-desc {
|
|
96
|
-
font-size:
|
|
96
|
+
font-size: 14px;
|
|
97
97
|
font-weight: 400;
|
|
98
98
|
color: #89919f;
|
|
99
99
|
line-height: 24px;
|
|
@@ -25,6 +25,8 @@ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
|
25
25
|
|
|
26
26
|
var _getLocale = require("../../../../utils/getLocale");
|
|
27
27
|
|
|
28
|
+
var _tools = require("../../../../utils/tools");
|
|
29
|
+
|
|
28
30
|
require("./index.css");
|
|
29
31
|
|
|
30
32
|
var _excluded = ["data"];
|
|
@@ -65,7 +67,7 @@ var DynamicProject = function DynamicProject(_ref) {
|
|
|
65
67
|
className: "".concat(prefix, "__content-title-text"),
|
|
66
68
|
onClick: handleClickTitle
|
|
67
69
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
68
|
-
str: workName,
|
|
70
|
+
str: (0, _tools.htmlDecodeByRegExp)(workName),
|
|
69
71
|
keyWord: searchKeyWord
|
|
70
72
|
}));
|
|
71
73
|
}, [workName, searchKeyWord]);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
|
|
3
1
|
.titaui-dynamic-relative-item {
|
|
4
2
|
position: relative;
|
|
5
3
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
@@ -15,6 +13,10 @@
|
|
|
15
13
|
flex-direction: column;
|
|
16
14
|
}
|
|
17
15
|
|
|
16
|
+
.titaui-dynamic-relative-item__obj-other-info {
|
|
17
|
+
line-height: 18px;
|
|
18
|
+
}
|
|
19
|
+
|
|
18
20
|
.titaui-dynamic-relative-item__obj-base-info {
|
|
19
21
|
display: flex;
|
|
20
22
|
align-items: center;
|
|
@@ -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;
|
|
@@ -80,9 +82,13 @@
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
.titaui-dynamic-relative-item__obj-principal-user::after {
|
|
83
|
-
content: '
|
|
85
|
+
content: '';
|
|
86
|
+
width: 1px;
|
|
87
|
+
height: 14px;
|
|
88
|
+
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
|
|
84
89
|
display: inline-block;
|
|
85
|
-
margin: 0
|
|
90
|
+
margin: 0 8px;
|
|
91
|
+
vertical-align: text-top;
|
|
86
92
|
}
|
|
87
93
|
|
|
88
94
|
.titaui-dynamic-relative-item__obj-cycle {
|
|
@@ -99,11 +105,11 @@
|
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
.titaui-dynamic-relative-item__space {
|
|
102
|
-
height:
|
|
108
|
+
height: 30px;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
.titaui-dynamic-relative-item__operate-desc {
|
|
106
|
-
font-size:
|
|
112
|
+
font-size: 14px;
|
|
107
113
|
font-weight: 400;
|
|
108
114
|
color: #89919f;
|
|
109
115
|
line-height: 24px;
|