@titaui/pc 1.5.82 → 1.5.83
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/lib/components/avatar/icon-avatar/index.css +15 -0
- package/lib/components/avatar/icon-avatar/index.js +50 -0
- package/lib/components/avatar/index.js +9 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/button/admin-button/default.js +35 -0
- package/lib/components/button/admin-button/drop-down-arrow.js +93 -0
- package/lib/components/button/admin-button/index.css +86 -0
- package/lib/components/button/admin-button/index.js +40 -0
- package/lib/components/button/admin-button/primary.js +33 -0
- package/lib/components/button/admin-button/secondary.js +35 -0
- package/lib/components/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/export-button/index.css +51 -0
- package/lib/components/button/export-button/index.js +81 -0
- package/lib/components/button/images/daoru.svg +18 -0
- package/lib/components/button/index.js +23 -0
- package/lib/components/button/interface.js +5 -0
- package/lib/components/change-okr/Filter.js +133 -65
- package/lib/components/change-okr/Item.js +6 -0
- package/lib/components/change-okr/filterTab.js +2 -0
- package/lib/components/change-okr/index.js +2 -2
- package/lib/components/checkbox/index.js +4 -3
- package/lib/components/communication/CommunicationRecord.js +116 -161
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.css +63 -0
- package/lib/components/communication/index.js +53 -28
- package/lib/components/communication/style.js +21 -25
- package/lib/components/create-okr/animation/check-animation.js +2746 -0
- package/lib/components/create-okr/constant.js +27 -0
- package/lib/components/create-okr/createCycle.js +193 -0
- package/lib/components/create-okr/createSuccessCmp.js +233 -0
- package/lib/components/create-okr/createSuccessCmpWrapper.js +20 -0
- package/lib/components/create-okr/fields/date-cycle.js +98 -0
- package/lib/components/create-okr/fields/index.css +346 -0
- package/lib/components/create-okr/fields/index.js +17 -0
- package/lib/components/create-okr/fields/input-with-err-popup.js +57 -0
- package/lib/components/create-okr/fields/o-new-name.js +197 -0
- package/lib/components/create-okr/fields/okr-case.js +98 -0
- package/lib/components/create-okr/fields/okr-classify.js +51 -0
- package/lib/components/create-okr/fields/okr-create-suggest.js +147 -0
- package/lib/components/create-okr/fields/okr-new-user-selector.js +106 -0
- package/lib/components/create-okr/fields/okr-parent.js +157 -0
- package/lib/components/create-okr/fields/okr-type-detail.js +196 -0
- package/lib/components/create-okr/fields/okr-type.js +131 -0
- package/lib/components/create-okr/fields/okr-visibility-detail.js +224 -0
- package/lib/components/create-okr/fields/okr-visibility.js +169 -0
- package/lib/components/create-okr/img/check-normal.svg +29 -0
- package/lib/components/create-okr/img/check-right.svg +16 -0
- package/lib/components/create-okr/img/check-wrong.svg +29 -0
- package/lib/components/create-okr/img/create-success-head.png +0 -0
- package/lib/components/create-okr/img/create-success-left-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-message.svg +1 -0
- package/lib/components/create-okr/img/create-success-right-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-shadow.svg +23 -0
- package/lib/components/create-okr/img/example.svg +11 -0
- package/lib/components/create-okr/img/hand.svg +12 -0
- package/lib/components/create-okr/img/kr-add.svg +12 -0
- package/lib/components/create-okr/img/left-quotation.svg +12 -0
- package/lib/components/create-okr/img/light.svg +1 -0
- package/lib/components/create-okr/img/pack-up.js +28 -0
- package/lib/components/create-okr/img/qr-code.png +0 -0
- package/lib/components/create-okr/img/right-quotation.svg +12 -0
- package/lib/components/create-okr/img/shower.png +0 -0
- package/lib/components/create-okr/img/target.svg +19 -0
- package/lib/components/create-okr/img/teach-okr.svg +17 -0
- package/lib/components/create-okr/img/wave.png +0 -0
- package/lib/components/create-okr/img/weight.svg +12 -0
- package/lib/components/create-okr/index.css +446 -0
- package/lib/components/create-okr/index.js +911 -0
- package/lib/components/create-okr/interface.js +5 -0
- package/lib/components/create-okr/kr-items/index.css +180 -0
- package/lib/components/create-okr/kr-items/kr-item-weight.js +194 -0
- package/lib/components/create-okr/kr-items/krDatas.js +299 -0
- package/lib/components/create-okr/kr-items/krItem.js +167 -0
- package/lib/components/create-okr/objectType.js +273 -0
- package/lib/components/create-okr/request-api.js +220 -0
- package/lib/components/create-okr/style.js +100 -0
- package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +124 -0
- package/lib/components/create-okr/utils/helper.js +99 -0
- package/lib/components/create-okr/utils/index.js +23 -0
- package/lib/components/dropdown-layer/icon-item.js +5 -3
- package/lib/components/dropdown-layer/index.css +16 -0
- package/lib/components/dropdown-layer/index.js +21 -14
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dangerous-html/index.js +22 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +78 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +192 -0
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/components/title/index.js +59 -0
- package/lib/components/dynamic/constant.js +97 -0
- package/lib/components/dynamic/context/index.js +13 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +101 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.js +299 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +183 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +50 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
- package/lib/components/dynamic/dynamic-item/index.css +128 -0
- package/lib/components/dynamic/dynamic-item/index.js +352 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +126 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +157 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +107 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/dynamic/dynamic-liking/index.js +76 -0
- package/lib/components/dynamic/dynamic-liking/item.js +91 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.css +36 -0
- package/lib/components/dynamic/dynamic-list/index.js +61 -0
- package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +148 -0
- package/lib/components/dynamic/dynamic-topping/index.js +80 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +140 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +204 -0
- package/lib/components/dynamic/dynamic.js +391 -0
- package/lib/components/dynamic/export-module/index.js +33 -0
- package/lib/components/dynamic/img/dynamic-P1.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P2.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P3.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P4.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P5.svg +15 -0
- package/lib/components/dynamic/img/dynamic-delay.svg +17 -0
- package/lib/components/dynamic/img/dynamic-desire.svg +61 -0
- package/lib/components/dynamic/img/dynamic-empty.png +0 -0
- package/lib/components/dynamic/img/dynamic-end.svg +17 -0
- package/lib/components/dynamic/img/dynamic-left-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
- package/lib/components/dynamic/img/dynamic-normal.svg +17 -0
- package/lib/components/dynamic/img/dynamic-promise.svg +61 -0
- package/lib/components/dynamic/img/dynamic-reword.svg +24 -0
- package/lib/components/dynamic/img/dynamic-right-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-risk.svg +17 -0
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +27 -0
- package/lib/components/dynamic/interface.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +42 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +112 -0
- package/lib/components/dynamic/request-api.js +92 -0
- package/lib/components/dynamic/util.js +140 -0
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +84 -0
- package/lib/components/file-list/components/single-file/index.js +115 -0
- package/lib/components/file-list/img/new-file-list-doc.svg +1 -0
- package/lib/components/file-list/img/new-file-list-other.svg +1 -0
- package/lib/components/file-list/img/new-file-list-pdf.svg +1 -0
- package/lib/components/file-list/img/new-file-list-ppt.svg +1 -0
- package/lib/components/file-list/img/new-file-list-radio.svg +1 -0
- package/lib/components/file-list/img/new-file-list-video.svg +1 -0
- package/lib/components/file-list/img/new-file-list-xls.svg +1 -0
- package/lib/components/file-list/index.css +5 -0
- package/lib/components/file-list/index.js +61 -0
- package/lib/components/file-list/interface.js +5 -0
- package/lib/components/file-list/util.js +78 -0
- package/lib/components/form/form-fields/input/index.css +11 -0
- package/lib/components/form/form-fields/input/index.js +3 -1
- package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
- package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
- package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
- package/lib/components/grid-page/image/{UserManager.svg → userManager.svg} +0 -0
- package/lib/components/grid-page/personal-info/index.js +5 -5
- package/lib/components/img-viewer/icon/enlarge.js +30 -0
- package/lib/components/img-viewer/icon/left-rotate.js +46 -0
- package/lib/components/img-viewer/icon/right-rotate.js +44 -0
- package/lib/components/img-viewer/icon/shrink.js +37 -0
- package/lib/components/img-viewer/image/loading.gif +0 -0
- package/lib/components/img-viewer/index.css +155 -0
- package/lib/components/img-viewer/index.js +228 -0
- package/lib/components/img-viewer/interface.js +5 -0
- package/lib/components/img-viewer/util.js +16 -0
- package/lib/components/mblog/components/MblogAction.js +10 -6
- package/lib/components/mblog/index.js +24 -11
- package/lib/components/mblog/style.js +8 -8
- package/lib/components/okr-detail/components/header/index.css +4 -0
- package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +15 -8
- package/lib/components/okr-flow/child-node/work-node.js +7 -1
- package/lib/components/okr-period-selector/select-cycle.js +139 -151
- package/lib/components/okr-progress-detail/index.css +1 -0
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/index.js +4 -4
- package/lib/components/period-selector/common.js +168 -17
- package/lib/components/period-selector/components/selector/index.js +103 -38
- package/lib/components/period-selector/components/selector/style.js +23 -9
- package/lib/components/period-selector/index.js +29 -28
- package/lib/components/popup/index.js +3 -1
- package/lib/components/publish-dynamic-modal/index.js +13 -0
- package/lib/components/publish-dynamic-modal/interface.js +5 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +3 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +191 -0
- package/lib/components/publish-dynamic-modal/requist-api.js +48 -0
- package/lib/components/radio/index.css +5 -0
- package/lib/components/radio/radio.js +12 -4
- package/lib/components/search-key-handle/index.js +39 -0
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/components/uploadedPreview.js +62 -54
- package/lib/components/upload/img/doc.svg +1 -0
- package/lib/components/upload/img/other.svg +1 -0
- package/lib/components/upload/img/pdf.svg +1 -0
- package/lib/components/upload/img/ppt.svg +1 -0
- package/lib/components/upload/img/radio.svg +1 -0
- package/lib/components/upload/img/video.svg +1 -0
- package/lib/components/upload/img/xls.svg +1 -0
- package/lib/components/upload/index.css +26 -0
- package/lib/components/upload/index.js +89 -57
- package/lib/components/upload/style.js +7 -7
- package/lib/components/upload/type.js +15 -15
- package/lib/components/upload/util.js +102 -0
- package/lib/components/upvote/index.js +37 -14
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +50 -24
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +11 -2
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components-v1/buttonv2/ButtonLinked.js +35 -0
- package/lib/components-v1/buttonv2/ButtonOutlined.js +64 -0
- package/lib/components-v1/buttonv2/ButtonRounded.js +101 -0
- package/lib/components-v1/buttonv2/DefaultButton.js +86 -0
- package/lib/components-v1/buttonv2/index.js +37 -0
- package/lib/components-v1/buttonv2/style/style.js +53 -0
- package/lib/components-v1/buttonv2/style/theme.css +3 -0
- package/lib/components-v1/confirm/index.js +158 -0
- package/lib/index.js +49 -5
- package/lib/pages/dynamic/index.css +5 -0
- package/lib/pages/dynamic/index.js +25 -0
- package/lib/pages/home-page/components/data-list/nav-selector/index.js +18 -0
- package/lib/pages/home-page/components/data-list/table/utils-function.js +6 -3
- package/lib/pages/like-ranking/column.js +141 -0
- package/lib/pages/like-ranking/filter-buttons/department.js +44 -0
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +19 -0
- package/lib/pages/like-ranking/filter-buttons/index.js +40 -0
- package/lib/pages/like-ranking/filter-buttons/modular.js +110 -0
- package/lib/pages/like-ranking/filter-buttons/name.js +73 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +27 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +38 -0
- package/lib/pages/like-ranking/filter-buttons/timer.js +56 -0
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/image/ranking-1.png +0 -0
- package/lib/pages/like-ranking/image/ranking-2.png +0 -0
- package/lib/pages/like-ranking/image/ranking-3.png +0 -0
- package/lib/pages/like-ranking/index.css +185 -0
- package/lib/pages/like-ranking/index.js +252 -0
- package/lib/pages/like-ranking/mock.js +366 -0
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +46 -5
- package/lib/utils/bs-global.js +26 -2
- package/lib/utils/format-time.js +161 -0
- package/lib/utils/helpers.js +41 -0
- package/lib/utils/roundWeight.js +105 -0
- package/lib/utils/tools.js +140 -20
- package/package.json +2 -2
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _popup = _interopRequireDefault(require("../../../popup"));
|
|
15
|
+
|
|
16
|
+
var _userSelector = require("../../../user-selector");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
|
+
|
|
28
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
+
|
|
30
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31
|
+
|
|
32
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
33
|
+
|
|
34
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
35
|
+
|
|
36
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
37
|
+
|
|
38
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
+
|
|
40
|
+
var prefix = "titaui-dynamic-search-input";
|
|
41
|
+
var SearchType = {
|
|
42
|
+
dynamic: "动态",
|
|
43
|
+
person: "姓名"
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var DynamicSearchInput = function DynamicSearchInput(_ref) {
|
|
47
|
+
var setSearchKey = _ref.setSearchKey,
|
|
48
|
+
setSearchKeyType = _ref.setSearchKeyType,
|
|
49
|
+
setSearchUser = _ref.setSearchUser;
|
|
50
|
+
|
|
51
|
+
var _useState = (0, _react.useState)("dynamic"),
|
|
52
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53
|
+
searchDynamicType = _useState2[0],
|
|
54
|
+
setSearchDynamicType = _useState2[1];
|
|
55
|
+
|
|
56
|
+
var _useState3 = (0, _react.useState)(""),
|
|
57
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
|
+
searchInputValue = _useState4[0],
|
|
59
|
+
setSearchInputValue = _useState4[1];
|
|
60
|
+
|
|
61
|
+
var _useState5 = (0, _react.useState)(false),
|
|
62
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
63
|
+
isMouseEnter = _useState6[0],
|
|
64
|
+
setIsMouseEnter = _useState6[1];
|
|
65
|
+
|
|
66
|
+
var popupRef = (0, _react.useRef)();
|
|
67
|
+
var selectorRef = (0, _react.useRef)();
|
|
68
|
+
var inputRef = (0, _react.useRef)();
|
|
69
|
+
|
|
70
|
+
var handleInputChange = function handleInputChange(e) {
|
|
71
|
+
setSearchInputValue(e.target.value);
|
|
72
|
+
|
|
73
|
+
if (searchDynamicType === "person") {
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
selectorRef.current && selectorRef.current.open();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
var handleKeyUp = function handleKeyUp(e) {
|
|
80
|
+
// 按回车
|
|
81
|
+
if (e.keyCode === 13 && searchDynamicType !== 'person') {
|
|
82
|
+
setSearchKey(searchInputValue);
|
|
83
|
+
setSearchKeyType(searchDynamicType);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var handleChangeSearchDynamicType = function handleChangeSearchDynamicType(type) {
|
|
88
|
+
setSearchDynamicType(type);
|
|
89
|
+
setSearchKeyType; // @ts-ignore
|
|
90
|
+
|
|
91
|
+
popupRef.current && popupRef.current.close();
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
var handleSelected = function handleSelected(_ref2) {
|
|
95
|
+
var _ref3 = _slicedToArray(_ref2, 1),
|
|
96
|
+
user = _ref3[0];
|
|
97
|
+
|
|
98
|
+
setSearchInputValue(user.data.name);
|
|
99
|
+
setSearchUser(user.data);
|
|
100
|
+
setSearchKeyType(searchDynamicType);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var handleMouseEnter = function handleMouseEnter() {
|
|
104
|
+
setIsMouseEnter(true);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
108
|
+
setIsMouseEnter(false);
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
var handleClearSearchValue = function handleClearSearchValue() {
|
|
112
|
+
setSearchInputValue('');
|
|
113
|
+
setSearchKey('');
|
|
114
|
+
setSearchUser(null);
|
|
115
|
+
setSearchKeyType(searchDynamicType);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var PopupContent = function PopupContent() {
|
|
119
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
+
className: prefix + "__popup"
|
|
121
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
className: (0, _classnames["default"])(prefix + "__popup-item", _defineProperty({}, prefix + "__popup-item--active", searchDynamicType === "dynamic")),
|
|
123
|
+
onClick: function onClick() {
|
|
124
|
+
handleChangeSearchDynamicType("dynamic");
|
|
125
|
+
}
|
|
126
|
+
}, "\u52A8\u6001"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
|
+
className: (0, _classnames["default"])(prefix + "__popup-item", _defineProperty({}, prefix + "__popup-item--active", searchDynamicType === "person")),
|
|
128
|
+
onClick: function onClick() {
|
|
129
|
+
handleChangeSearchDynamicType("person");
|
|
130
|
+
}
|
|
131
|
+
}, "\u59D3\u540D"));
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: prefix,
|
|
136
|
+
ref: inputRef,
|
|
137
|
+
onMouseEnter: handleMouseEnter,
|
|
138
|
+
onMouseLeave: handleMouseLeave
|
|
139
|
+
}, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
140
|
+
popup: PopupContent,
|
|
141
|
+
popupPlacement: "bottom",
|
|
142
|
+
ref: popupRef,
|
|
143
|
+
popupAlign: {
|
|
144
|
+
offset: [-10, 2],
|
|
145
|
+
overflow: {
|
|
146
|
+
adjustX: true,
|
|
147
|
+
adjustY: true
|
|
148
|
+
},
|
|
149
|
+
targetOffset: [0, 0]
|
|
150
|
+
}
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
|
+
className: prefix + "__select-type"
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, SearchType[searchDynamicType]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
154
|
+
className: (0, _classnames["default"])("tu-icon-sort-down", prefix + "__icon")
|
|
155
|
+
}))), /*#__PURE__*/_react["default"].createElement("input", {
|
|
156
|
+
className: prefix + "__input",
|
|
157
|
+
value: searchInputValue,
|
|
158
|
+
onChange: handleInputChange,
|
|
159
|
+
onKeyUp: handleKeyUp,
|
|
160
|
+
placeholder: searchDynamicType === 'dynamic' ? '按关键词搜索' : '按姓名搜索'
|
|
161
|
+
}), isMouseEnter && searchInputValue && /*#__PURE__*/_react["default"].createElement("i", {
|
|
162
|
+
onClick: handleClearSearchValue,
|
|
163
|
+
className: (0, _classnames["default"])("tu-icon-circle", prefix + "__input-clear")
|
|
164
|
+
}), /*#__PURE__*/_react["default"].createElement(_userSelector.FieldPersonSelector, {
|
|
165
|
+
ref: selectorRef,
|
|
166
|
+
multiple: false,
|
|
167
|
+
position: "bottomRight",
|
|
168
|
+
onSelect: handleSelected,
|
|
169
|
+
disabledDepartSelect: true,
|
|
170
|
+
showSearchInput: false,
|
|
171
|
+
searchWord: searchInputValue,
|
|
172
|
+
trigger: /*#__PURE__*/_react["default"].createElement("span", null),
|
|
173
|
+
getPopupContainer: function getPopupContainer() {
|
|
174
|
+
return inputRef.current;
|
|
175
|
+
},
|
|
176
|
+
panes: {
|
|
177
|
+
depart: false,
|
|
178
|
+
group: false
|
|
179
|
+
},
|
|
180
|
+
popupAlign: {
|
|
181
|
+
offset: [17, 15],
|
|
182
|
+
overflow: {
|
|
183
|
+
adjustX: true,
|
|
184
|
+
adjustY: true
|
|
185
|
+
},
|
|
186
|
+
targetOffset: [0, 0]
|
|
187
|
+
}
|
|
188
|
+
}));
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
var _default = DynamicSearchInput;
|
|
192
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.titaui-dynamic-obj-status {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: 18px;
|
|
4
|
+
height: 18px;
|
|
5
|
+
min-width: 18px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.titaui-dynamic-obj-status--delay {
|
|
9
|
+
background: url("../../img/dynamic-delay.svg");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.titaui-dynamic-obj-status--normal {
|
|
13
|
+
background: url("../../img/dynamic-normal.svg");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-obj-status--risk {
|
|
17
|
+
background: url("../../img/dynamic-risk.svg");
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.titaui-dynamic-obj-status--end {
|
|
21
|
+
background: url("../../img/dynamic-end.svg");
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 _util = require("../../util");
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-dynamic-obj-status";
|
|
19
|
+
var StateIconMapping = {
|
|
20
|
+
delay: "".concat(prefix, "--delay"),
|
|
21
|
+
normal: "".concat(prefix, "--normal"),
|
|
22
|
+
risk: "".concat(prefix, "--risk"),
|
|
23
|
+
end: "".concat(prefix, "--end")
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var DynamicObjStatus = function DynamicObjStatus(_ref) {
|
|
27
|
+
var _ref$oStatus = _ref.oStatus,
|
|
28
|
+
oStatus = _ref$oStatus === void 0 ? 1 : _ref$oStatus,
|
|
29
|
+
_ref$riskLevel = _ref.riskLevel,
|
|
30
|
+
riskLevel = _ref$riskLevel === void 0 ? 1 : _ref$riskLevel,
|
|
31
|
+
extraClass = _ref.extraClass;
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
33
|
+
className: (0, _classnames["default"])(extraClass, prefix, StateIconMapping[(0, _util.getProgressState)(oStatus, riskLevel)])
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var _default = DynamicObjStatus;
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.titaui-dynamic-percent {
|
|
2
|
+
font-size: 16px;
|
|
3
|
+
font-weight: 600;
|
|
4
|
+
color: #3f4755;
|
|
5
|
+
line-height: 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.titaui-dynamic-percent__grow {
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
margin-left: 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-dynamic-percent__grow--increase {
|
|
16
|
+
color: #5ad8a6;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-dynamic-percent__grow--decrease {
|
|
20
|
+
color: #f05e5e;
|
|
21
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-dynamic-percent";
|
|
19
|
+
|
|
20
|
+
var DynamicPercent = function DynamicPercent(_ref) {
|
|
21
|
+
var _classNames;
|
|
22
|
+
|
|
23
|
+
var _ref$percent = _ref.percent,
|
|
24
|
+
percent = _ref$percent === void 0 ? 0 : _ref$percent,
|
|
25
|
+
_ref$growPercent = _ref.growPercent,
|
|
26
|
+
growPercent = _ref$growPercent === void 0 ? 0 : _ref$growPercent,
|
|
27
|
+
extraClass = _ref.extraClass;
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
29
|
+
className: (0, _classnames["default"])(extraClass, prefix)
|
|
30
|
+
}, percent, "%", growPercent !== 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
31
|
+
className: (0, _classnames["default"])(prefix + "__grow", (_classNames = {}, _defineProperty(_classNames, prefix + "__grow--increase", growPercent > 0), _defineProperty(_classNames, prefix + "__grow--decrease", growPercent < 0), _classNames))
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
33
|
+
className: growPercent > 0 ? "tu-icon-simple-sort-up" : "tu-icon-simple-sort-down"
|
|
34
|
+
}), Math.abs(growPercent), "%"));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var _default = DynamicPercent;
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.titaui-dynamic-title {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.titaui-dynamic-title__content {
|
|
7
|
+
display: flex;
|
|
8
|
+
height: 36px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
background: #f6f7f9;
|
|
12
|
+
border-radius: 18px 18px 18px 1px;
|
|
13
|
+
word-break: keep-all;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
padding: 7px 12px;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
line-height: 22px;
|
|
18
|
+
color: #3f4755;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-dynamic-title__content-symbol {
|
|
23
|
+
color: #2879ff;
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-title__content-text {
|
|
28
|
+
flex: 1;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-title__content-text:hover {
|
|
34
|
+
color: #2879ff !important;
|
|
35
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _tooltip = require("../../../tooltip");
|
|
13
|
+
|
|
14
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
15
|
+
|
|
16
|
+
var _context = require("../../context");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
var prefix = "titaui-dynamic-title";
|
|
27
|
+
|
|
28
|
+
var DynamicTitle = function DynamicTitle(_ref) {
|
|
29
|
+
var content = _ref.content,
|
|
30
|
+
onClickTitle = _ref.onClickTitle,
|
|
31
|
+
suffixContent = _ref.suffixContent;
|
|
32
|
+
|
|
33
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
34
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
35
|
+
|
|
36
|
+
var onTitleClick = function onTitleClick() {
|
|
37
|
+
onClickTitle && onClickTitle();
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
+
className: prefix
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
|
+
className: "".concat(prefix, "__content")
|
|
44
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
|
+
className: "".concat(prefix, "__content-symbol")
|
|
46
|
+
}, "#"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
|
+
className: "".concat(prefix, "__content-text"),
|
|
48
|
+
onClick: onTitleClick
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
50
|
+
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
51
|
+
str: content,
|
|
52
|
+
keyWord: searchKeyWord
|
|
53
|
+
}),
|
|
54
|
+
isPercent: true
|
|
55
|
+
})), suffixContent));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var _default = DynamicTitle;
|
|
59
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EStatusStatus2ClassType = exports.ObjectType = exports.ObjTypeMapText = exports.EObjType = exports.EFeedType = exports.OkrRiskMapping = void 0;
|
|
7
|
+
|
|
8
|
+
var _ObjTypeMapText;
|
|
9
|
+
|
|
10
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
|
|
12
|
+
var OkrRiskMapping = {
|
|
13
|
+
0: 'normal',
|
|
14
|
+
// 正常推进
|
|
15
|
+
1: 'normal',
|
|
16
|
+
// 正常推进
|
|
17
|
+
2: 'risk',
|
|
18
|
+
// 注意风险
|
|
19
|
+
3: 'delay',
|
|
20
|
+
// 已有风险
|
|
21
|
+
4: 'end',
|
|
22
|
+
// kr及o全都完成
|
|
23
|
+
5: 'delay',
|
|
24
|
+
// 延期完成
|
|
25
|
+
6: 'normal' // 正常推进
|
|
26
|
+
|
|
27
|
+
};
|
|
28
|
+
exports.OkrRiskMapping = OkrRiskMapping;
|
|
29
|
+
var EFeedType;
|
|
30
|
+
exports.EFeedType = EFeedType;
|
|
31
|
+
|
|
32
|
+
(function (EFeedType) {
|
|
33
|
+
EFeedType[EFeedType["Unknow"] = 0] = "Unknow";
|
|
34
|
+
EFeedType[EFeedType["Share"] = 1] = "Share";
|
|
35
|
+
EFeedType[EFeedType["Plan"] = 4] = "Plan";
|
|
36
|
+
EFeedType[EFeedType["Report"] = 5] = "Report";
|
|
37
|
+
EFeedType[EFeedType["Assessment"] = 7] = "Assessment";
|
|
38
|
+
EFeedType[EFeedType["Project"] = 10] = "Project";
|
|
39
|
+
EFeedType[EFeedType["Reward"] = 11] = "Reward";
|
|
40
|
+
EFeedType[EFeedType["WorkHour"] = 13] = "WorkHour";
|
|
41
|
+
EFeedType[EFeedType["Bless"] = 14] = "Bless";
|
|
42
|
+
EFeedType[EFeedType["Kr"] = 15] = "Kr";
|
|
43
|
+
EFeedType[EFeedType["MileStone"] = 16] = "MileStone";
|
|
44
|
+
EFeedType[EFeedType["OkrEStatistics"] = 17] = "OkrEStatistics";
|
|
45
|
+
EFeedType[EFeedType["Reply"] = 18] = "Reply";
|
|
46
|
+
EFeedType[EFeedType["OkrCycle"] = 19] = "OkrCycle";
|
|
47
|
+
EFeedType[EFeedType["Task"] = 20] = "Task";
|
|
48
|
+
EFeedType[EFeedType["Progress"] = 21] = "Progress";
|
|
49
|
+
EFeedType[EFeedType["Align"] = 22] = "Align";
|
|
50
|
+
EFeedType[EFeedType["Relative"] = 23] = "Relative";
|
|
51
|
+
EFeedType[EFeedType["Announcement"] = 24] = "Announcement";
|
|
52
|
+
EFeedType[EFeedType["Signin"] = 80] = "Signin";
|
|
53
|
+
EFeedType[EFeedType["O"] = 101] = "O";
|
|
54
|
+
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
55
|
+
|
|
56
|
+
var EObjType;
|
|
57
|
+
exports.EObjType = EObjType;
|
|
58
|
+
|
|
59
|
+
(function (EObjType) {
|
|
60
|
+
EObjType[EObjType["Project"] = 4] = "Project";
|
|
61
|
+
EObjType[EObjType["Task"] = 7] = "Task";
|
|
62
|
+
EObjType[EObjType["O"] = 62] = "O";
|
|
63
|
+
EObjType[EObjType["Kr"] = 65] = "Kr";
|
|
64
|
+
EObjType[EObjType["Assess"] = 23] = "Assess";
|
|
65
|
+
EObjType[EObjType["MileStone"] = 27] = "MileStone";
|
|
66
|
+
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
67
|
+
|
|
68
|
+
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, '项目'), _defineProperty(_ObjTypeMapText, EObjType.Task, '任务'), _defineProperty(_ObjTypeMapText, EObjType.O, '目标'), _defineProperty(_ObjTypeMapText, EObjType.Kr, '关键成果'), _defineProperty(_ObjTypeMapText, EObjType.MileStone, '里程碑'), _ObjTypeMapText);
|
|
69
|
+
exports.ObjTypeMapText = ObjTypeMapText;
|
|
70
|
+
var ObjectType = {
|
|
71
|
+
1: '公告/分享',
|
|
72
|
+
4: '项目',
|
|
73
|
+
5: '绩效考核表',
|
|
74
|
+
6: '绩效目标',
|
|
75
|
+
7: '任务',
|
|
76
|
+
8: '日报(总结)',
|
|
77
|
+
10: 'Feed',
|
|
78
|
+
11: '计划',
|
|
79
|
+
12: '计划表的操作记录',
|
|
80
|
+
62: '目标',
|
|
81
|
+
65: '关键成果',
|
|
82
|
+
70: '复盘',
|
|
83
|
+
79: '关键成果进展',
|
|
84
|
+
80: '公告',
|
|
85
|
+
42: '打赏'
|
|
86
|
+
};
|
|
87
|
+
exports.ObjectType = ObjectType;
|
|
88
|
+
var EStatusStatus2ClassType = {
|
|
89
|
+
2: 'tu-icon-finished',
|
|
90
|
+
1: 'tu-icon-running',
|
|
91
|
+
4: 'tu-icon-canceled',
|
|
92
|
+
3: 'tu-icon-deferred',
|
|
93
|
+
6: 'tu-icon-paused',
|
|
94
|
+
0: 'tu-icon-notstart',
|
|
95
|
+
5: 'tu-icon-jiantou-right'
|
|
96
|
+
};
|
|
97
|
+
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SearchKeyContext = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var SearchKeyContext = /*#__PURE__*/(0, _react.createContext)({
|
|
11
|
+
searchKeyWord: ''
|
|
12
|
+
});
|
|
13
|
+
exports.SearchKeyContext = SearchKeyContext;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.titaui-dynamic-item-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: center;
|
|
5
|
+
margin-bottom: 20px;
|
|
6
|
+
padding: 24px 0 0 20px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-item-header-left {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex: 1;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-item-header-left .titaui-pc-avator-container {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-item-header-right {
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
width: 24px;
|
|
24
|
+
height: 24px;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
transform: rotate(90deg);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
border-radius: 4px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-item-header-right:hover {
|
|
34
|
+
background: #f0f4fa;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-item-header-desc {
|
|
38
|
+
flex: 1;
|
|
39
|
+
margin-left: 8px;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-item-header-desc-title {
|
|
46
|
+
word-break: keep-all;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
flex: 1;
|
|
53
|
+
margin-right: 60px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.titaui-dynamic-item-header-desc-user {
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
color: #3f4755;
|
|
60
|
+
line-height: 22px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.titaui-dynamic-item-header-desc-user:hover {
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
color: #2879ff;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dynamic-item-header-desc-user--not-link:hover {
|
|
69
|
+
cursor: default !important;
|
|
70
|
+
color: #3f4755 !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-item-header-desc-time {
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
color: #89919f;
|
|
76
|
+
line-height: 18px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.titaui-dynamic-item-header-desc-avatar:hover {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.titaui-dynamic-item-header-desc-avatar--not-link:hover {
|
|
84
|
+
cursor: default !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.titaui-dynamic-item-header__more-operate {
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
color: #3F4755;
|
|
90
|
+
line-height: 22px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.titaui-dynamic-item-header__more-operate-selection {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
height: 32px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.titaui-dynamic-item-header__more-operate-selection-icon {
|
|
100
|
+
margin-right: 10px;
|
|
101
|
+
}
|