@titaui/pc 1.11.4-1 → 1.11.4-10
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/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/rect-btn/index.js +7 -7
- package/lib/components/change-okr-modal/Item.js +15 -15
- package/lib/components/communication/index.js +30 -29
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/dynamic/constant.js +13 -6
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +22 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/index.js +34 -13
- package/lib/components/dynamic/dynamic-list/index.js +5 -13
- package/lib/components/e-priority/index.js +18 -12
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +11 -11
- package/lib/components/form/form-fields/date/index.js +15 -11
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +22 -2
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/icon-button-list/index.css +2 -57
- package/lib/components/icon-button-list/index.js +10 -7
- package/lib/components/img-viewer/index.css +10 -3
- package/lib/components/img-viewer/index.js +57 -18
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/index.js +31 -30
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/detail-header/actions.js +62 -66
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +205 -194
- package/lib/components/okr-detail/index.js +21 -19
- package/lib/components/okr-flow/child-node/index.css +67 -21
- package/lib/components/okr-flow/child-node/work-node.js +61 -24
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +42 -18
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +43 -22
- package/lib/components/okr-flow/request-apis.js +15 -8
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/root-node/index.js +26 -25
- package/lib/components/okr-flow/utils/index.js +45 -29
- package/lib/components/okr-flow/utils/tree-handler.js +29 -18
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okrcase-library/index.css +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +9 -3
- package/lib/components/period-selector/index.js +14 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
- package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
- package/lib/components/picker/components/picker-trigger/index.css +15 -0
- package/lib/components/picker/components/picker-trigger/index.js +8 -8
- package/lib/components/popup/index.js +4 -4
- package/lib/components/radio/index.css +9 -9
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/scroll-container/index.js +423 -0
- package/lib/components/scroll-container/style.css +35 -0
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/components/chart/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -13
- package/{es/pages/group-management/page-view/group-empty.js → lib/components/survey-model/contact.js} +54 -27
- package/lib/components/survey-model/index.css +141 -0
- package/lib/components/survey-model/index.js +265 -0
- package/lib/components/survey-model/instance.js +86 -0
- package/lib/components/survey-model/request-api.js +80 -0
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +63 -51
- package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +13 -13
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +138 -124
- package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
- package/lib/components/time-picker/index.css +6 -0
- package/lib/components/time-picker/time-picker.js +27 -27
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components/wechat-btn/index.css +14 -0
- package/lib/components/wechat-btn/index.js +338 -0
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +99 -91
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
- package/lib/pages/okr-map/number-select/index.css +12 -9
- package/lib/pages/okr-map/number-select/index.js +3 -3
- package/lib/utils/auth.js +65 -8
- package/lib/utils/bs-global.js +18 -6
- package/lib/utils/open-data.js +63 -43
- package/package.json +6 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/es/components/cascader/time.js +0 -31
- package/es/components/common-share/request-apis.js +0 -56
- package/es/components/confidence/heart.js +0 -66
- package/es/components/create-okr-modal/fields/index.js +0 -17
- package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
- package/es/components/date-picker/BodyItem.js +0 -121
- package/es/components/date-picker/CalendarBody.js +0 -157
- package/es/components/date-picker/CalendarHeader.js +0 -187
- package/es/components/date-picker/index.js +0 -157
- package/es/components/date-range-picker/index.js +0 -210
- package/es/components/dialog/index.js +0 -119
- package/es/components/dialog-confirm/index.js +0 -154
- package/es/components/drop-selector/icon-item.js +0 -40
- package/es/components/drop-selector/index.js +0 -179
- package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/es/components/dynamic/dynamic-liking/mock.js +0 -83
- package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/es/components/e-priority/index.js +0 -88
- package/es/components/grid-layout/commen-components/index.js +0 -73
- package/es/components/grid-layout/image/could.js +0 -8
- package/es/components/grid-layout/image/lv.js +0 -8
- package/es/components/grid-layout/image/tita-mask.js +0 -8
- package/es/components/help-card/request-api.js +0 -35
- package/es/components/icon-button-list/index.js +0 -65
- package/es/components/menus/context.js +0 -18
- package/es/components/menus/precls.js +0 -8
- package/es/components/okr-detail/auth.js +0 -197
- package/es/components/okr-detail/components/ao-nice/index.js +0 -245
- package/es/components/okr-detail/components/block-line/index.js +0 -20
- package/es/components/okr-detail/components/header/index.js +0 -211
- package/es/components/okr-detail/components/icon-text/index.js +0 -116
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
- package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
- package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
- package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
- package/es/components/okr-detail/components/padding-layout.js +0 -22
- package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
- package/es/components/okr-detail/context.js +0 -30
- package/es/components/okr-detail/e-list/index.js +0 -243
- package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
- package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
- package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
- package/es/components/okr-detail/e-list/search-form/index.js +0 -143
- package/es/components/okr-detail/error-page/index.js +0 -33
- package/es/components/okr-detail/index.js +0 -428
- package/es/components/okr-detail/loading/index.js +0 -28
- package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
- package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
- package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
- package/es/components/okr-detail/okr-list/empty/index.js +0 -48
- package/es/components/okr-detail/okr-list/index.js +0 -524
- package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
- package/es/components/okr-detail/store.js +0 -1
- package/es/components/okr-flow/child-node/fields/creator.js +0 -175
- package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
- package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
- package/es/components/okr-flow/child-node/helper.js +0 -35
- package/es/components/okr-flow/child-node/index.js +0 -110
- package/es/components/okr-flow/child-node/kr-node.js +0 -75
- package/es/components/okr-flow/child-node/work-node.js +0 -242
- package/es/components/okr-flow/context.js +0 -14
- package/es/components/okr-flow/empty/index.js +0 -29
- package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
- package/es/components/okr-flow/index.js +0 -24
- package/es/components/okr-flow/mini-map/index.js +0 -112
- package/es/components/okr-flow/mini-map/map.js +0 -145
- package/es/components/okr-flow/mini-map/mini-node.js +0 -57
- package/es/components/okr-flow/mini-map/utils.js +0 -79
- package/es/components/okr-flow/okr-map/index.js +0 -192
- package/es/components/okr-flow/open-data/index.js +0 -115
- package/es/components/okr-flow/precls.js +0 -8
- package/es/components/okr-flow/request-apis.js +0 -118
- package/es/components/okr-flow/root-node/index.js +0 -229
- package/es/components/okr-flow/utils/config.js +0 -18
- package/es/components/okr-flow/utils/helper.js +0 -36
- package/es/components/okr-flow/utils/index.js +0 -66
- package/es/components/okr-flow/utils/tree-handler.js +0 -323
- package/es/components/okr-progress-modal/helper.js +0 -156
- package/es/components/okr-progress-modal/request-apis.js +0 -34
- package/es/components/okr-share/request-apis.js +0 -56
- package/es/components/okrcase-library/server/network.js +0 -407
- package/es/components/pagination/locale/en_US.js +0 -22
- package/es/components/pagination/locale/zh_CN.js +0 -22
- package/es/components/point-demo/drop-down-box/index.js +0 -159
- package/es/components/point-demo/index.js +0 -533
- package/es/components/point-demo/input/index.js +0 -176
- package/es/components/point-demo/point-demo.js +0 -75
- package/es/components/point-demo/popup/index.js +0 -113
- package/es/components/point-demo/popup/placement.js +0 -44
- package/es/components/range-picker-pop/index.js +0 -273
- package/es/components/scrollbar/simplebar/helpers.js +0 -59
- package/es/components/scrollbar/simplebar/index.js +0 -91
- package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
- package/es/components/scrollbar/simplebar/simplebar.js +0 -852
- package/es/components/scrollbar/simplebar-react.js +0 -163
- package/es/components/search-dropdown/index.js +0 -40
- package/es/components/search-input/index.js +0 -126
- package/es/components/select/Option.js +0 -94
- package/es/components/select/index.js +0 -330
- package/es/components/selector-input/debounce.js +0 -36
- package/es/components/selector-input/index.js +0 -109
- package/es/components/slider-input/index.js +0 -119
- package/es/components/switch/index.js +0 -39
- package/es/components/table/index.js +0 -275
- package/es/components/tabs/index.js +0 -63
- package/es/components/task-relation-modal/tree-node/index.js +0 -58
- package/es/components/tita-chart/charts/img/could.js +0 -8
- package/es/components/tooltip/error-tip.js +0 -24
- package/es/components/tooltip/index.js +0 -21
- package/es/components/tree/index.js +0 -79
- package/es/components/tree/precls.js +0 -8
- package/es/components/upvote/request-apis.js +0 -45
- package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/es/components/user-selector/action-btns/btn-ok.js +0 -21
- package/es/components/user-selector/action-btns/index.js +0 -27
- package/es/components/user-selector/context.js +0 -18
- package/es/components/user-selector/empty/group.js +0 -55
- package/es/components/user-selector/empty/index.js +0 -28
- package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
- package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
- package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
- package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
- package/es/components/user-selector/index.js +0 -25
- package/es/components/user-selector/layout/index.js +0 -25
- package/es/components/user-selector/loading/index.js +0 -18
- package/es/components/user-selector/request-apis.js +0 -180
- package/es/components/user-selector/searched-panel/index.js +0 -139
- package/es/components/user-selector/searched-panel/result-part.js +0 -43
- package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
- package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
- package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
- package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
- package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
- package/es/components/user-selector/utils.js +0 -139
- package/es/components/viewer/ImageListRender.js +0 -143
- package/es/components/viewer/index.js +0 -168
- package/es/components/word-cloud/index.js +0 -109
- package/es/components/word-cloud/request-apis.js +0 -26
- package/es/components-v1/animate/AnimateChild.js +0 -76
- package/es/components-v1/animate/animate.js +0 -148
- package/es/components-v1/animate/index.js +0 -13
- package/es/components-v1/dom/index.js +0 -30
- package/es/components-v1/placement/index.js +0 -13
- package/es/components-v1/placement/placement.js +0 -111
- package/es/components-v1/placement/placementInner.js +0 -139
- package/es/components-v1/pop/Pop.js +0 -246
- package/es/components-v1/pop/PopInner.js +0 -163
- package/es/components-v1/pop/index.js +0 -13
- package/es/components-v1/progress/CircleProgress.js +0 -152
- package/es/components-v1/progress/LineProgress.js +0 -83
- package/es/components-v1/progress/index.js +0 -80
- package/es/components-v1/select/Option.js +0 -94
- package/es/components-v1/select/index.js +0 -330
- package/es/components-v1/utils/animate/animate.js +0 -103
- package/es/components-v1/utils/animate/event.js +0 -79
- package/es/components-v1/utils/dom/index.js +0 -30
- package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
- package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
- package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
- package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
- package/es/components-v1/utils/placement/placement.js +0 -76
- package/es/index.js +0 -777
- package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
- package/es/pages/appointment-demo/index.js +0 -649
- package/es/pages/appointment-demo/input/index.js +0 -176
- package/es/pages/appointment-demo/popup/index.js +0 -113
- package/es/pages/appointment-demo/popup/placement.js +0 -44
- package/es/pages/group-management/components/checkbox/index.js +0 -28
- package/es/pages/group-management/components/input-form/index.js +0 -174
- package/es/pages/group-management/components/radio/index.js +0 -21
- package/es/pages/group-management/components/table/index.js +0 -174
- package/es/pages/group-management/groupInterface.js +0 -293
- package/es/pages/group-management/index.js +0 -13
- package/es/pages/group-management/page-view/empty.js +0 -111
- package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
- package/es/pages/group-management/page-view/index.js +0 -412
- package/es/pages/group-management/table/index.js +0 -104
- package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
- package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
- package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
- package/es/pages/group-management/tree/group-form/index.js +0 -207
- package/es/pages/group-management/tree/index.js +0 -168
- package/es/pages/group-management/tree/operation-panel.js +0 -41
- package/es/pages/group-management/tree/trigger-render.js +0 -99
- package/es/pages/like-ranking/mock.js +0 -366
- package/es/pages/okr-map/export-modules/index.js +0 -1
- package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
- package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
- package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
- package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
- package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
- package/es/pages/okr-map/hooks/useStorage.js +0 -96
- package/es/pages/okr-map/index.js +0 -18
- package/es/pages/okr-map/level2-search/depart.js +0 -53
- package/es/pages/okr-map/level2-search/group.js +0 -69
- package/es/pages/okr-map/level2-search/index.js +0 -51
- package/es/pages/okr-map/level2-search/level2-input.js +0 -46
- package/es/pages/okr-map/level2-search/user.js +0 -54
- package/es/pages/okr-map/no-okr/index.js +0 -24
- package/es/pages/okr-map/number-select/index.js +0 -81
- package/es/pages/okr-map/open-data/index.js +0 -115
- package/es/pages/okr-map/precls.js +0 -8
- package/es/pages/okr-map/request-apis.js +0 -76
- package/es/pages/okr-map/share-dialog/index.js +0 -122
- package/es/pages/okr-map/unsupport-ie/index.js +0 -83
- package/es/pages/okr-map/utils.js +0 -51
- package/es/utils/auth.js +0 -294
- package/es/utils/bs-global.js +0 -114
- package/es/utils/local-storage.js +0 -42
- package/es/utils/mblog.js +0 -33
- package/es/utils/mock-bsglobal.js +0 -1837
- package/es/utils/open-data.js +0 -341
- package/es/utils/request-v1.js +0 -115
- package/es/utils/request.js +0 -183
- package/es/utils/tools.js +0 -286
- package/yarn-error.log +0 -21252
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.updateTaskStatus = exports.updateTaskPrincipal = exports.updateTaskDate = exports.setTaskPriority = exports.cancelRel = void 0;
|
|
7
|
+
|
|
8
|
+
var _qs = _interopRequireDefault(require("qs"));
|
|
9
|
+
|
|
10
|
+
var _request = require("../../utils/request");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
var updateTaskPrincipal = function updateTaskPrincipal(_ref) {
|
|
15
|
+
var taskId = _ref.taskId,
|
|
16
|
+
toUserId = _ref.toUserId;
|
|
17
|
+
return (0, _request.rpost)("v1")("task/UpdatePrincipal", {
|
|
18
|
+
task_id: taskId,
|
|
19
|
+
to_user_id: toUserId
|
|
20
|
+
}, {
|
|
21
|
+
headers: {
|
|
22
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
23
|
+
},
|
|
24
|
+
transformRequest: _qs["default"].stringify
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.updateTaskPrincipal = updateTaskPrincipal;
|
|
29
|
+
|
|
30
|
+
var updateTaskDate = function updateTaskDate(_ref2) {
|
|
31
|
+
var taskId = _ref2.taskId,
|
|
32
|
+
endDate = _ref2.endDate,
|
|
33
|
+
startDate = _ref2.startDate,
|
|
34
|
+
isLongTerm = _ref2.isLongTerm;
|
|
35
|
+
return (0, _request.rpost)("v1")("task/UpdateTaskDate?task_id=".concat(taskId), {
|
|
36
|
+
task_id: taskId,
|
|
37
|
+
Deadline: endDate,
|
|
38
|
+
StartDate: startDate,
|
|
39
|
+
IsLongTerm: isLongTerm
|
|
40
|
+
}, {
|
|
41
|
+
headers: {
|
|
42
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
43
|
+
},
|
|
44
|
+
transformRequest: _qs["default"].stringify
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
exports.updateTaskDate = updateTaskDate;
|
|
49
|
+
|
|
50
|
+
var updateTaskStatus = function updateTaskStatus(_ref3) {
|
|
51
|
+
var taskId = _ref3.taskId,
|
|
52
|
+
status = _ref3.status;
|
|
53
|
+
return (0, _request.rput)("v1")("PlanV2/UpdateStatus?plan_item_id=".concat(taskId, "&Status=").concat(status), {
|
|
54
|
+
plan_item_id: taskId,
|
|
55
|
+
Status: status
|
|
56
|
+
}, {
|
|
57
|
+
headers: {
|
|
58
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
59
|
+
},
|
|
60
|
+
transformRequest: _qs["default"].stringify
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.updateTaskStatus = updateTaskStatus;
|
|
65
|
+
|
|
66
|
+
var cancelRel = function cancelRel(_ref4) {
|
|
67
|
+
var krId = _ref4.krId,
|
|
68
|
+
objType = _ref4.objType,
|
|
69
|
+
okrId = _ref4.okrId,
|
|
70
|
+
taskId = _ref4.taskId;
|
|
71
|
+
return (0, _request.rpost)("v1")("okr/task/cancelrel", {
|
|
72
|
+
krId: krId,
|
|
73
|
+
objType: objType,
|
|
74
|
+
okrId: okrId,
|
|
75
|
+
taskId: taskId
|
|
76
|
+
});
|
|
77
|
+
}; // priority:5 非常低 4 低 3 中 2 高 1 最高
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
exports.cancelRel = cancelRel;
|
|
81
|
+
|
|
82
|
+
var setTaskPriority = function setTaskPriority(_ref5) {
|
|
83
|
+
var taskId = _ref5.taskId,
|
|
84
|
+
priority = _ref5.priority;
|
|
85
|
+
return (0, _request.rpost)("v2")("task/SetTaskPriority?task_id=".concat(taskId, "&priority=").concat(priority), {});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.setTaskPriority = setTaskPriority;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TASK_NDOE_TYPE = exports.EStatusStatus2ClassType = exports.EStatusClass2StatusTypeText = exports.EStatusClass2StatusType = void 0;
|
|
7
|
+
|
|
8
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
9
|
+
|
|
10
|
+
var EStatusClass2StatusType = {
|
|
11
|
+
'tu-icon-finished': 2,
|
|
12
|
+
'tu-icon-running': 1,
|
|
13
|
+
'tu-icon-canceled': 4,
|
|
14
|
+
'tu-icon-deferred': 3,
|
|
15
|
+
'tu-icon-paused': 6,
|
|
16
|
+
'tu-icon-notstart': 0,
|
|
17
|
+
'tu-icon-jiantou-right': 5
|
|
18
|
+
};
|
|
19
|
+
exports.EStatusClass2StatusType = EStatusClass2StatusType;
|
|
20
|
+
var EStatusStatus2ClassType = {
|
|
21
|
+
2: 'tu-icon-finished',
|
|
22
|
+
1: 'tu-icon-running',
|
|
23
|
+
4: 'tu-icon-canceled',
|
|
24
|
+
3: 'tu-icon-deferred',
|
|
25
|
+
6: 'tu-icon-paused',
|
|
26
|
+
0: 'tu-icon-notstart',
|
|
27
|
+
5: 'tu-icon-weijieshou-right'
|
|
28
|
+
};
|
|
29
|
+
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
30
|
+
var EStatusClass2StatusTypeText = {
|
|
31
|
+
'tu-icon-finished': (0, _getLocale.getLocale)('OKR_MyO_E_From_Completed'),
|
|
32
|
+
'tu-icon-running': (0, _getLocale.getLocale)('Per_MyRe_text_Inprogress'),
|
|
33
|
+
'tu-icon-canceled': (0, _getLocale.getLocale)('OKR_MyO_E_From_Cancelled'),
|
|
34
|
+
'tu-icon-deferred': (0, _getLocale.getLocale)('OKR_MyO_E_From_Delayed'),
|
|
35
|
+
'tu-icon-paused': (0, _getLocale.getLocale)('OKR_MyO_E_From_Suspended'),
|
|
36
|
+
'tu-icon-notstart': (0, _getLocale.getLocale)('OKR_MyO_E_From_NotStarted')
|
|
37
|
+
};
|
|
38
|
+
exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
|
|
39
|
+
var TASK_NDOE_TYPE;
|
|
40
|
+
exports.TASK_NDOE_TYPE = TASK_NDOE_TYPE;
|
|
41
|
+
|
|
42
|
+
(function (TASK_NDOE_TYPE) {
|
|
43
|
+
TASK_NDOE_TYPE[TASK_NDOE_TYPE["E_TASK"] = 0] = "E_TASK";
|
|
44
|
+
TASK_NDOE_TYPE[TASK_NDOE_TYPE["E_PROJECT"] = 1] = "E_PROJECT";
|
|
45
|
+
})(TASK_NDOE_TYPE || (exports.TASK_NDOE_TYPE = TASK_NDOE_TYPE = {}));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,12 +11,19 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _precls = _interopRequireDefault(require("../precls"));
|
|
13
13
|
|
|
14
|
-
require("
|
|
14
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
19
|
|
|
18
|
-
function
|
|
20
|
+
var EEmpty = function EEmpty(props) {
|
|
21
|
+
var index = props.index;
|
|
19
22
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
+
key: index,
|
|
24
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-empty-node"))
|
|
25
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject"));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var _default = EEmpty;
|
|
29
|
+
exports["default"] = _default;
|
|
@@ -5,43 +5,39 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _avatar = _interopRequireDefault(require("../../avatar"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _progress = _interopRequireDefault(require("../../progress"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
21
21
|
|
|
22
|
-
var _statusTime = _interopRequireDefault(require("
|
|
22
|
+
var _statusTime = _interopRequireDefault(require("../../status-time"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _drawerManager = _interopRequireDefault(require("../../drawer-manager"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _dialogConfirm = _interopRequireWildcard(require("../../dialog-confirm"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _requestApis = require("../request-apis");
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _getProcessColor = _interopRequireDefault(require("./get-process-color"));
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _platform = require("../../../utils/platform");
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _helpers = require("../../../utils/helpers");
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _auth = require("../../../utils/auth");
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var _getLocale = require("../../../../../../utils/getLocale");
|
|
43
|
-
|
|
44
|
-
require("./index.scss");
|
|
40
|
+
require("./index.css");
|
|
45
41
|
|
|
46
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
47
43
|
|
|
@@ -49,6 +45,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
49
45
|
|
|
50
46
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
51
47
|
|
|
48
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
49
|
+
|
|
50
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
51
|
+
|
|
52
52
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
53
53
|
|
|
54
54
|
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."); }
|
|
@@ -61,8 +61,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
61
61
|
|
|
62
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
var TooltipText = _tooltip["default"].Text;
|
|
65
|
+
|
|
66
|
+
var _default = function _default(props) {
|
|
67
|
+
var _okrInfo$authority, _data$principalUser, _data$principalUser2, _data$principalUser3;
|
|
66
68
|
|
|
67
69
|
var index = props.index,
|
|
68
70
|
title = props.title,
|
|
@@ -84,12 +86,7 @@ function _default(props) {
|
|
|
84
86
|
_useState4 = _slicedToArray(_useState3, 1),
|
|
85
87
|
isGray = _useState4[0];
|
|
86
88
|
|
|
87
|
-
var
|
|
88
|
-
okrInfo = _useContext.okrInfo;
|
|
89
|
-
|
|
90
|
-
var _useContext2 = (0, _react.useContext)(_context.EListContext),
|
|
91
|
-
refreshEList = _useContext2.refreshEList;
|
|
92
|
-
|
|
89
|
+
var okrInfo = {};
|
|
93
90
|
var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
|
|
94
91
|
var hasRelativeAuth = new _auth.KRAuth({
|
|
95
92
|
user: data.user,
|
|
@@ -97,26 +94,37 @@ function _default(props) {
|
|
|
97
94
|
}).hasAuth() || new _auth.OAuth({
|
|
98
95
|
principalUser: okrInfo.principalUser,
|
|
99
96
|
createUserId: okrInfo.createUserId
|
|
100
|
-
}).hasAuth();
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
97
|
+
}).hasAuth();
|
|
98
|
+
|
|
99
|
+
var onSureUnConnectHandler = /*#__PURE__*/function () {
|
|
100
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
101
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
102
|
+
while (1) {
|
|
103
|
+
switch (_context.prev = _context.next) {
|
|
104
|
+
case 0:
|
|
105
|
+
_context.next = 2;
|
|
106
|
+
return (0, _requestApis.cancelRel)({
|
|
107
|
+
krId: data.mileStoneId,
|
|
108
|
+
objType: data.objType,
|
|
109
|
+
okrId: okrInfo.workId,
|
|
110
|
+
taskId: data.id
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
case 2:
|
|
114
|
+
setUnConnectVisible(false);
|
|
115
|
+
|
|
116
|
+
case 3:
|
|
117
|
+
case "end":
|
|
118
|
+
return _context.stop();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}, _callee);
|
|
122
|
+
}));
|
|
123
|
+
|
|
124
|
+
return function onSureUnConnectHandler() {
|
|
125
|
+
return _ref.apply(this, arguments);
|
|
126
|
+
};
|
|
127
|
+
}();
|
|
120
128
|
|
|
121
129
|
var openProjectDetail = function openProjectDetail() {
|
|
122
130
|
if ((0, _platform.isPlatform)("dd")) {
|
|
@@ -141,19 +149,21 @@ function _default(props) {
|
|
|
141
149
|
onClick: openProjectDetail
|
|
142
150
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
143
151
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-name "))
|
|
144
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
152
|
+
}, /*#__PURE__*/_react["default"].createElement(TooltipText, {
|
|
145
153
|
text: (0, _helpers.escapeHtml)(title),
|
|
146
154
|
isPercent: true
|
|
147
155
|
})), isCreate && /*#__PURE__*/_react["default"].createElement("span", {
|
|
148
156
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-approvaling"))
|
|
149
|
-
}, (0, _getLocale.getLocale)(
|
|
157
|
+
}, (0, _getLocale.getLocale)("Pro_MyS_Establishment"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
158
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions"))
|
|
151
159
|
}, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
160
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-user"))
|
|
153
161
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
|
|
154
162
|
name: data === null || data === void 0 ? void 0 : (_data$principalUser = data.principalUser) === null || _data$principalUser === void 0 ? void 0 : _data$principalUser.name,
|
|
155
163
|
id: data === null || data === void 0 ? void 0 : (_data$principalUser2 = data.principalUser) === null || _data$principalUser2 === void 0 ? void 0 : _data$principalUser2.userId,
|
|
156
|
-
width:
|
|
164
|
+
width: 92,
|
|
165
|
+
showAvatar: true,
|
|
166
|
+
avatar: data === null || data === void 0 ? void 0 : (_data$principalUser3 = data.principalUser) === null || _data$principalUser3 === void 0 ? void 0 : _data$principalUser3.avatar,
|
|
157
167
|
extraCls: isGray && "".concat(_precls["default"], "__e-project-node-gray")
|
|
158
168
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
159
169
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-date"))
|
|
@@ -197,4 +207,6 @@ function _default(props) {
|
|
|
197
207
|
type: "button",
|
|
198
208
|
onClick: onSureUnConnectHandler
|
|
199
209
|
}, (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine"))));
|
|
200
|
-
}
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
exports["default"] = _default;
|
|
@@ -11,11 +11,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var _dropSelector = _interopRequireWildcard(require("
|
|
14
|
+
var _dropSelector = _interopRequireWildcard(require("../../drop-selector"));
|
|
15
15
|
|
|
16
|
-
var _getLocale = require("
|
|
16
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
17
17
|
|
|
18
|
-
require("./index.
|
|
18
|
+
require("./index.css");
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
@@ -40,7 +40,7 @@ function _default(props) {
|
|
|
40
40
|
checked = props.checked,
|
|
41
41
|
hasAuth = props.hasAuth;
|
|
42
42
|
|
|
43
|
-
var _useState = (0, _react.useState)(
|
|
43
|
+
var _useState = (0, _react.useState)('tu-icon-notstart'),
|
|
44
44
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45
45
|
status = _useState2[0],
|
|
46
46
|
setStatus = _useState2[1];
|
|
@@ -59,10 +59,10 @@ function _default(props) {
|
|
|
59
59
|
canEdit: hasAuth,
|
|
60
60
|
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
61
|
style: {
|
|
62
|
-
color:
|
|
63
|
-
fontSize:
|
|
62
|
+
color: '#89919F',
|
|
63
|
+
fontSize: 16,
|
|
64
64
|
marginRight: 4,
|
|
65
|
-
verticalAlign:
|
|
65
|
+
verticalAlign: 'baseline'
|
|
66
66
|
},
|
|
67
67
|
className: (0, _classnames["default"])(status)
|
|
68
68
|
})
|
|
@@ -70,25 +70,25 @@ function _default(props) {
|
|
|
70
70
|
name: "tu-icon-finished",
|
|
71
71
|
icon: "tu-icon-finished",
|
|
72
72
|
exIconClass: "e-node-status-icon"
|
|
73
|
-
}, (0, _getLocale.getLocale)(
|
|
73
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Completed')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
74
74
|
name: "tu-icon-running",
|
|
75
75
|
icon: "tu-icon-running",
|
|
76
76
|
exIconClass: "e-node-status-icon"
|
|
77
|
-
}, (0, _getLocale.getLocale)(
|
|
77
|
+
}, (0, _getLocale.getLocale)('Per_MyRe_text_Inprogress')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
78
78
|
name: "tu-icon-canceled",
|
|
79
79
|
icon: "tu-icon-canceled",
|
|
80
80
|
exIconClass: "e-node-status-icon"
|
|
81
|
-
}, (0, _getLocale.getLocale)(
|
|
81
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Cancelled')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
82
82
|
name: "tu-icon-deferred",
|
|
83
83
|
icon: "tu-icon-deferred",
|
|
84
84
|
exIconClass: "e-node-status-icon"
|
|
85
|
-
}, (0, _getLocale.getLocale)(
|
|
85
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Delayed')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
86
86
|
name: "tu-icon-paused",
|
|
87
87
|
icon: "tu-icon-paused",
|
|
88
88
|
exIconClass: "e-node-status-icon"
|
|
89
|
-
}, (0, _getLocale.getLocale)(
|
|
89
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Suspended')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
90
90
|
name: "tu-icon-notstart",
|
|
91
91
|
icon: "tu-icon-notstart",
|
|
92
92
|
exIconClass: "e-node-status-icon"
|
|
93
|
-
}, (0, _getLocale.getLocale)(
|
|
93
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_NotStarted')));
|
|
94
94
|
}
|