@titaui/pc 1.16.14 → 1.17.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/button/index.js +4 -5
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +6 -19
- package/lib/components/change-okr-modal/Item.js +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +6 -4
- package/lib/components/common-share/publishMblog.js +4 -2
- package/lib/components/communication/CommunicationAttachments.js +32 -22
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +2 -2
- package/lib/components/create-okr-modal/createCycle.js +1 -6
- package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +10 -6
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +16 -12
- package/lib/components/create-okr-modal/fields/okr-visibility.js +21 -17
- package/lib/components/create-okr-modal/index.js +4 -2
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +16 -12
- package/lib/components/create-okr-modal/utils/helper.js +6 -2
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.js +1 -1
- package/lib/components/dialog-qq-docs/index.js +11 -9
- package/lib/components/dialog-qq-docs/utils.js +6 -2
- package/lib/components/dialog-select/index.js +1 -1
- package/lib/components/dialog-upload/index.js +4 -2
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
- package/lib/components/dialog-upload-type/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +5 -3
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +6 -4
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +0 -8
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +1 -1
- package/lib/components/e-priority/index.js +3 -3
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +2 -2
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +18 -28
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +2 -2
- package/lib/components/ereport-list/index.js +2 -2
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/file-preview/index.js +6 -4
- package/lib/components/filter-buttons/department.js +1 -1
- package/lib/components/filter-buttons/index.js +1 -1
- package/lib/components/filter-buttons/name.js +1 -1
- package/lib/components/firework/index.js +6 -2
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/input-verification-code/index.js +4 -2
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +10 -6
- package/lib/components/guide-order/index.js +1 -1
- package/lib/components/guide-tip/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-okr-modal/index.js +1 -3
- package/lib/components/import-modal/import-task-modal/index.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +10 -13
- package/lib/components/import-modal/tree-node/index.js +1 -1
- package/lib/components/magnet/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +26 -22
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
- package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/edit-name.js +4 -2
- package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
- package/lib/components/okr-detail/components/header/o-classify.js +4 -2
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +4 -2
- package/lib/components/okr-detail/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +7 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +4 -2
- package/lib/components/okr-detail/detail-footer/index.js +4 -2
- package/lib/components/okr-detail/detail-header/index.js +13 -11
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +15 -8
- package/lib/components/okr-detail/okr-list/index.js +4 -2
- package/lib/components/okr-detail/request-apis.js +6 -2
- package/lib/components/okr-excel/renders.js +8 -4
- package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
- package/lib/components/okr-flow/child-node/work-node.js +4 -2
- package/lib/components/okr-flow/export-modal/index.js +6 -43
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
- package/lib/components/okr-flow/request-apis.js +6 -2
- package/lib/components/okr-flow/root-node/index.js +4 -2
- package/lib/components/okr-guide/index.css +17 -15
- package/lib/components/okr-guide/index.js +1 -3
- package/lib/components/okr-period-selector/select-cycle.js +5 -5
- package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-progress-modal/index.js +35 -32
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +91 -98
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/okr-share/common-painter/darwAvatar.js +8 -4
- package/lib/components/okr-share/common-painter/openDataPainter.js +6 -2
- package/lib/components/okr-share/common-painter/utils.js +8 -4
- package/lib/components/okr-share/pink-card/card.js +2 -2
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
- package/lib/components/okr-share/pink-card/drawKrs.js +6 -2
- package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
- package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
- package/lib/components/okr-share/pink-card/index.js +6 -2
- package/lib/components/okr-share/publishMblog.js +4 -2
- package/lib/components/okr-share/shareCardSelector.js +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +24 -20
- package/lib/components/open-data-painter/index.js +6 -2
- package/lib/components/operation-records/OperationRecordItem.js +6 -10
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +6 -2
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/picker/range-picker/index.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/popup-select/index.css +0 -10
- package/lib/components/popup-select/index.js +3 -9
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
- package/lib/components/rate/index.js +1 -1
- package/lib/components/rich-editor/models/schema.js +2 -2
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
- package/lib/components/rich-editor/plugins/core/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +2 -2
- package/lib/components/rich-editor/ui/Popup/index.js +2 -2
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +6 -2
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
- package/lib/components/survey-model/request-api.js +6 -2
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tag/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +7 -5
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +7 -5
- package/lib/components/task-tree/task-item-node/e-project.js +4 -2
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +5 -5
- package/lib/components/task-tree/task-item-node/e-task.js +4 -2
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +2 -2
- package/lib/components/toast/index.js +12 -8
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +51 -31
- package/lib/components/upload/index.js +13 -9
- package/lib/components/upload/index2.js +6 -4
- package/lib/components/upload-photo-modal/index.js +14 -2
- package/lib/components/upvote/index.js +7 -5
- package/lib/components/upvote/upvoteListModal.js +8 -4
- package/lib/components/user-selector/action-btns/index.js +15 -9
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/version-change-modal/index.js +6 -4
- package/lib/components/version-change-modal/request-api.js +6 -2
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/weekly-report/card.js +4 -12
- package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
- package/lib/components/weekly-report/common-painter/drawName.js +6 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
- package/lib/components/weekly-report/index.js +6 -4
- package/lib/components-v1/animate/AnimateChild.js +2 -2
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +2 -2
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +2 -2
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/index.js +0 -8
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +6 -2
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.css +0 -44
- package/lib/pages/new-okr-list/header/index.js +17 -116
- package/lib/pages/new-okr-list/header/operate-record.js +49 -9
- package/lib/pages/new-okr-list/request-api.js +18 -14
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +5 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +6 -2
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/pages/okr-map/utils.js +4 -23
- package/lib/utils/auth.js +2 -8
- package/lib/utils/helpers.js +6 -2
- package/lib/utils/open-data.js +6 -4
- package/lib/utils/request-v1.js +6 -2
- package/lib/utils/request.js +6 -2
- package/package.json +1 -1
- package/lib/components/okr-excel-create/components/kr-confidence/index.css +0 -18
- package/lib/components/okr-excel-create/components/kr-confidence/index.js +0 -61
- package/lib/components/okr-excel-create/components/kr-weight/index.css +0 -10
- package/lib/components/okr-excel-create/components/kr-weight/index.js +0 -114
- package/lib/components/okr-excel-create/components/okr-align/index.css +0 -49
- package/lib/components/okr-excel-create/components/okr-align/index.js +0 -139
- package/lib/components/okr-excel-create/components/okr-classify/index.css +0 -74
- package/lib/components/okr-excel-create/components/okr-classify/index.js +0 -117
- package/lib/components/okr-excel-create/components/okr-cycle/index.css +0 -40
- package/lib/components/okr-excel-create/components/okr-cycle/index.js +0 -85
- package/lib/components/okr-excel-create/components/okr-name/index.css +0 -48
- package/lib/components/okr-excel-create/components/okr-name/index.js +0 -116
- package/lib/components/okr-excel-create/components/okr-principal/index.css +0 -17
- package/lib/components/okr-excel-create/components/okr-principal/index.js +0 -107
- package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.js +0 -46
- package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.js +0 -47
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.css +0 -196
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +0 -317
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/request-api.js +0 -20
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/util.js +0 -134
- package/lib/components/okr-excel-create/components/okr-progress/index.css +0 -25
- package/lib/components/okr-excel-create/components/okr-progress/index.js +0 -90
- package/lib/components/okr-excel-create/components/okr-progress/interface.js +0 -5
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +0 -108
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +0 -166
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.css +0 -20
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.js +0 -76
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +0 -275
- package/lib/components/okr-excel-create/components/okr-type/index.css +0 -30
- package/lib/components/okr-excel-create/components/okr-type/index.js +0 -196
- package/lib/components/okr-excel-create/components/okr-visibility/index.css +0 -53
- package/lib/components/okr-excel-create/components/okr-visibility/index.js +0 -236
- package/lib/components/okr-excel-create/components-new/kr-confidence/index.css +0 -17
- package/lib/components/okr-excel-create/components-new/kr-confidence/index.js +0 -75
- package/lib/components/okr-excel-create/components-new/kr-weight/index.css +0 -25
- package/lib/components/okr-excel-create/components-new/kr-weight/index.js +0 -237
- package/lib/components/okr-excel-create/components-new/okr-align/index.css +0 -53
- package/lib/components/okr-excel-create/components-new/okr-align/index.js +0 -170
- package/lib/components/okr-excel-create/components-new/okr-classify/index.css +0 -74
- package/lib/components/okr-excel-create/components-new/okr-classify/index.js +0 -126
- package/lib/components/okr-excel-create/components-new/okr-cycle/index.css +0 -48
- package/lib/components/okr-excel-create/components-new/okr-cycle/index.js +0 -80
- package/lib/components/okr-excel-create/components-new/okr-name/index.css +0 -93
- package/lib/components/okr-excel-create/components-new/okr-name/index.js +0 -222
- package/lib/components/okr-excel-create/components-new/okr-principal/index.css +0 -20
- package/lib/components/okr-excel-create/components-new/okr-principal/index.js +0 -116
- package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.js +0 -46
- package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.js +0 -47
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.css +0 -196
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +0 -317
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/request-api.js +0 -20
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/util.js +0 -134
- package/lib/components/okr-excel-create/components-new/okr-progress/index.css +0 -25
- package/lib/components/okr-excel-create/components-new/okr-progress/index.js +0 -90
- package/lib/components/okr-excel-create/components-new/okr-progress/interface.js +0 -5
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +0 -108
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +0 -166
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.css +0 -20
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.js +0 -76
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +0 -275
- package/lib/components/okr-excel-create/components-new/okr-type/index.css +0 -30
- package/lib/components/okr-excel-create/components-new/okr-type/index.js +0 -205
- package/lib/components/okr-excel-create/components-new/okr-visibility/index.css +0 -63
- package/lib/components/okr-excel-create/components-new/okr-visibility/index.js +0 -262
- package/lib/components/okr-excel-create/constant.js +0 -14
- package/lib/components/okr-excel-create/hooks.js +0 -314
- package/lib/components/okr-excel-create/img/base-info-add.svg +0 -19
- package/lib/components/okr-excel-create/img/desire.svg +0 -61
- package/lib/components/okr-excel-create/img/promise.svg +0 -61
- package/lib/components/okr-excel-create/index-old.js +0 -258
- package/lib/components/okr-excel-create/index.css +0 -88
- package/lib/components/okr-excel-create/index.js +0 -359
- package/lib/components/okr-excel-create/mock.js +0 -169
- package/lib/components/okr-excel-create/setting.js +0 -24
- package/lib/components/okr-excel-create/type.js +0 -5
- package/lib/components/okr-excel-create/utils.js +0 -190
- package/lib/components/table-excel-v2/index.css +0 -159
- package/lib/components/table-excel-v2/index.js +0 -599
- package/lib/components/table-excel-v2/utils.js +0 -22
- package/lib/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/lib/components/user-selector/action-btns/btn-ok.js +0 -21
- package/lib/components/user-selector/action-btns/index.css +0 -55
- package/lib/pages/new-okr-list/header/okr-import.js +0 -207
- package/lib/pages/new-okr-list/img/excel.svg +0 -32
- package/lib/utils/array.js +0 -26
package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js
DELETED
@@ -1,275 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
11
|
-
|
12
|
-
var _radio = require("../../../../../components-v1/radio");
|
13
|
-
|
14
|
-
var _bsGlobal = require("../../../../../utils/bs-global");
|
15
|
-
|
16
|
-
var _StatelessDropdown = _interopRequireDefault(require("../../../../../components-v1/dropDownSelector/StatelessDropdown"));
|
17
|
-
|
18
|
-
var _openData = require("../../../../../utils/open-data");
|
19
|
-
|
20
|
-
var _userSelector = _interopRequireDefault(require("../../../../user-selector"));
|
21
|
-
|
22
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
23
|
-
|
24
|
-
require("./index.css");
|
25
|
-
|
26
|
-
var _auth = require("../../../../../utils/auth");
|
27
|
-
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
29
|
-
|
30
|
-
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); }
|
31
|
-
|
32
|
-
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; }
|
33
|
-
|
34
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
35
|
-
|
36
|
-
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."); }
|
37
|
-
|
38
|
-
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); }
|
39
|
-
|
40
|
-
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; }
|
41
|
-
|
42
|
-
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; }
|
43
|
-
|
44
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
45
|
-
|
46
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
47
|
-
|
48
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
49
|
-
|
50
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
51
|
-
|
52
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
53
|
-
|
54
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
55
|
-
|
56
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
57
|
-
|
58
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
59
|
-
|
60
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
61
|
-
|
62
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
63
|
-
|
64
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
65
|
-
|
66
|
-
var getRadios = function getRadios() {
|
67
|
-
return [{
|
68
|
-
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Company"),
|
69
|
-
value: 3
|
70
|
-
}, {
|
71
|
-
label: (0, _getLocale.getLocale)("Mod_Department"),
|
72
|
-
value: 2
|
73
|
-
}, {
|
74
|
-
label: (0, _getLocale.getLocale)("OKR_MyO_Text_Team"),
|
75
|
-
value: 4
|
76
|
-
}, {
|
77
|
-
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Individual"),
|
78
|
-
value: 1
|
79
|
-
}];
|
80
|
-
};
|
81
|
-
|
82
|
-
var ObjectType = /*#__PURE__*/function (_Component) {
|
83
|
-
_inherits(ObjectType, _Component);
|
84
|
-
|
85
|
-
var _super = _createSuper(ObjectType);
|
86
|
-
|
87
|
-
function ObjectType(props) {
|
88
|
-
var _this;
|
89
|
-
|
90
|
-
_classCallCheck(this, ObjectType);
|
91
|
-
|
92
|
-
_this = _super.call(this, props);
|
93
|
-
|
94
|
-
_this.onTeamSelect = function (_ref) {
|
95
|
-
var _ref2 = _slicedToArray(_ref, 1),
|
96
|
-
info = _ref2[0];
|
97
|
-
|
98
|
-
_this.setState({
|
99
|
-
groupName: info.data.name,
|
100
|
-
groupId: info.data.id
|
101
|
-
}); // @ts-ignore
|
102
|
-
|
103
|
-
|
104
|
-
_this.popup.current.close();
|
105
|
-
};
|
106
|
-
|
107
|
-
_this.onDepartSelect = function (_nodeKey, _ref3) {
|
108
|
-
var node = _ref3.node;
|
109
|
-
var data = node.data;
|
110
|
-
|
111
|
-
_this.setState({
|
112
|
-
departmentName: data.name,
|
113
|
-
departmentId: data.id,
|
114
|
-
okrType: 2,
|
115
|
-
label: ""
|
116
|
-
}); // @ts-ignore
|
117
|
-
|
118
|
-
|
119
|
-
_this.departPopup.current.close();
|
120
|
-
};
|
121
|
-
|
122
|
-
_this.renderTeamType = function () {
|
123
|
-
return /*#__PURE__*/_react["default"].createElement(_userSelector["default"].Group, {
|
124
|
-
// @ts-ignore
|
125
|
-
ref: _this.popup // @ts-ignore
|
126
|
-
,
|
127
|
-
onSelect: _this.onTeamSelect,
|
128
|
-
position: "bottom",
|
129
|
-
trigger: /*#__PURE__*/_react["default"].createElement("div", {
|
130
|
-
onClick: function onClick() {
|
131
|
-
return _this.popup.current.open();
|
132
|
-
},
|
133
|
-
style: {
|
134
|
-
width: "100%"
|
135
|
-
}
|
136
|
-
}, /*#__PURE__*/_react["default"].createElement(_StatelessDropdown["default"], {
|
137
|
-
className: "mx-w-240",
|
138
|
-
overlayClassName: "okr-detail-okrtype__selector--has-underline",
|
139
|
-
labelText: (0, _getLocale.getLocale)("OKR_MyO_Text_Team")
|
140
|
-
}, _this.state.groupName || (0, _getLocale.getLocale)("OKR_MyO_Text_Team")))
|
141
|
-
});
|
142
|
-
};
|
143
|
-
|
144
|
-
_this.renderType = function () {
|
145
|
-
// 只有存在选择部门的情况
|
146
|
-
if (_this.state.okrType === 2) {
|
147
|
-
return /*#__PURE__*/_react["default"].createElement(_userSelector["default"].Depart, {
|
148
|
-
// @ts-ignore
|
149
|
-
onSelect: _this.onDepartSelect // @ts-ignore
|
150
|
-
,
|
151
|
-
ref: _this.departPopup,
|
152
|
-
position: "bottom",
|
153
|
-
isGetRoot: false,
|
154
|
-
trigger: /*#__PURE__*/_react["default"].createElement("div", {
|
155
|
-
onClick: function onClick() {
|
156
|
-
return _this.departPopup.current.open();
|
157
|
-
},
|
158
|
-
style: {
|
159
|
-
width: "100%"
|
160
|
-
}
|
161
|
-
}, /*#__PURE__*/_react["default"].createElement(_StatelessDropdown["default"], {
|
162
|
-
className: "mx-w-240",
|
163
|
-
overlayClassName: "okr-detail-okrtype__selector--has-underline",
|
164
|
-
labelText: (0, _getLocale.getLocale)("Mod_Department")
|
165
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
166
|
-
id: _this.state.departmentId,
|
167
|
-
name: _this.state.departmentName
|
168
|
-
})))
|
169
|
-
});
|
170
|
-
}
|
171
|
-
|
172
|
-
if (_this.state.okrType === 4) {
|
173
|
-
return _this.renderTeamType();
|
174
|
-
}
|
175
|
-
|
176
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
177
|
-
style: {
|
178
|
-
height: 10
|
179
|
-
}
|
180
|
-
});
|
181
|
-
};
|
182
|
-
|
183
|
-
_this.handleChange = function (okrType, label) {
|
184
|
-
var _getUserInfo = (0, _bsGlobal.getUserInfo)(),
|
185
|
-
Department = _getUserInfo.Department,
|
186
|
-
DepartmentId = _getUserInfo.DepartmentId;
|
187
|
-
|
188
|
-
if (okrType === 2) {
|
189
|
-
_this.setState({
|
190
|
-
okrType: okrType,
|
191
|
-
label: "",
|
192
|
-
departmentId: DepartmentId,
|
193
|
-
departmentName: Department
|
194
|
-
});
|
195
|
-
} else {
|
196
|
-
_this.setState({
|
197
|
-
okrType: okrType,
|
198
|
-
label: label,
|
199
|
-
departmentId: _this.props.departmentId,
|
200
|
-
departmentName: _this.props.departmentName
|
201
|
-
});
|
202
|
-
}
|
203
|
-
};
|
204
|
-
|
205
|
-
_this.state = {
|
206
|
-
okrType: 0,
|
207
|
-
departmentName: "",
|
208
|
-
departmentId: 0,
|
209
|
-
depth: [],
|
210
|
-
label: "",
|
211
|
-
groupId: 0,
|
212
|
-
groupName: "",
|
213
|
-
auth: false
|
214
|
-
}; // @ts-ignore
|
215
|
-
|
216
|
-
_this.popup = /*#__PURE__*/_react["default"].createRef(); // @ts-ignore
|
217
|
-
|
218
|
-
_this.departPopup = /*#__PURE__*/_react["default"].createRef();
|
219
|
-
return _this;
|
220
|
-
}
|
221
|
-
|
222
|
-
_createClass(ObjectType, [{
|
223
|
-
key: "componentWillMount",
|
224
|
-
value: function componentWillMount() {
|
225
|
-
var _this$props = this.props,
|
226
|
-
okrType = _this$props.okrType,
|
227
|
-
okrTypeName = _this$props.okrTypeName,
|
228
|
-
departmentName = _this$props.departmentName,
|
229
|
-
departmentId = _this$props.departmentId,
|
230
|
-
groupId = _this$props.groupId,
|
231
|
-
groupName = _this$props.groupName;
|
232
|
-
var baseAuth = new _auth.BaseAuth();
|
233
|
-
var auth = baseAuth.isBoss() || baseAuth.isManager();
|
234
|
-
this.setState({
|
235
|
-
departmentName: okrType == 2 ? departmentName : "",
|
236
|
-
departmentId: okrType == 2 ? departmentId : 0,
|
237
|
-
okrType: okrType,
|
238
|
-
label: okrTypeName,
|
239
|
-
groupName: okrType == 4 ? groupName : "",
|
240
|
-
groupId: okrType == 4 ? groupId : 0,
|
241
|
-
auth: auth
|
242
|
-
});
|
243
|
-
}
|
244
|
-
}, {
|
245
|
-
key: "render",
|
246
|
-
value: function render() {
|
247
|
-
var _this2 = this;
|
248
|
-
|
249
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_radio.RadioGroup, {
|
250
|
-
name: "okrType",
|
251
|
-
className: "confim-radio",
|
252
|
-
labelText: (0, _getLocale.getLocale)("Mod_Type"),
|
253
|
-
style: {
|
254
|
-
marginBottom: 8
|
255
|
-
}
|
256
|
-
}, getRadios().map(function (_ref4) {
|
257
|
-
var label = _ref4.label,
|
258
|
-
value = _ref4.value;
|
259
|
-
return /*#__PURE__*/_react["default"].createElement(_radio.Radio, {
|
260
|
-
key: value,
|
261
|
-
value: value,
|
262
|
-
onChange: _this2.handleChange,
|
263
|
-
checked: value === _this2.state.okrType
|
264
|
-
}, label) // Radio 切换的时候就直接把默认值带上
|
265
|
-
;
|
266
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
267
|
-
className: "okr-detail-okrtype__dropdown-content"
|
268
|
-
}, this.renderType()));
|
269
|
-
}
|
270
|
-
}]);
|
271
|
-
|
272
|
-
return ObjectType;
|
273
|
-
}(_react.Component);
|
274
|
-
|
275
|
-
exports["default"] = ObjectType;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
.tita-okr-excel-create-okr-type__inner-content {
|
2
|
-
width: 100%;
|
3
|
-
height: 100%;
|
4
|
-
display: flex;
|
5
|
-
align-items: center;
|
6
|
-
padding-left: 12px;
|
7
|
-
box-sizing: border-box;
|
8
|
-
}
|
9
|
-
|
10
|
-
.tita-okr-excel-create-okr-type__inner-content-label {
|
11
|
-
font-size: 14px;
|
12
|
-
color: #141c28;
|
13
|
-
line-height: 18px;
|
14
|
-
padding: 2px 6px;
|
15
|
-
border-radius: 12px;
|
16
|
-
}
|
17
|
-
|
18
|
-
.tita-okr-excel-create-okr-type__okr-type {
|
19
|
-
position: absolute;
|
20
|
-
left: 0;
|
21
|
-
top: 0;
|
22
|
-
width: 100%;
|
23
|
-
height: 100%;
|
24
|
-
display: flex;
|
25
|
-
align-items: center;
|
26
|
-
background-color: #ffffff;
|
27
|
-
font-size: 14px;
|
28
|
-
color: #141c28;
|
29
|
-
line-height: 18px;
|
30
|
-
}
|
@@ -1,205 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.getOkrTypeOption = exports["default"] = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
11
|
-
|
12
|
-
var _openData = require("../../../../utils/open-data");
|
13
|
-
|
14
|
-
var _baseOkrType = _interopRequireDefault(require("./base-okr-type"));
|
15
|
-
|
16
|
-
var _getLocale = require("../../../../utils/getLocale");
|
17
|
-
|
18
|
-
require("./index.css");
|
19
|
-
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
21
|
-
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
23
|
-
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
25
|
-
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
27
|
-
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
29
|
-
|
30
|
-
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; }
|
31
|
-
|
32
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
33
|
-
|
34
|
-
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."); }
|
35
|
-
|
36
|
-
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); }
|
37
|
-
|
38
|
-
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; }
|
39
|
-
|
40
|
-
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; }
|
41
|
-
|
42
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
43
|
-
|
44
|
-
var prefix = 'tita-okr-excel-create-okr-type';
|
45
|
-
var typeMapColor = {
|
46
|
-
1: 'rgba(0,214,132,0.1600)',
|
47
|
-
2: 'rgba(240,163,38,0.1600)',
|
48
|
-
3: 'rgba(240,94,94,0.1600)',
|
49
|
-
4: 'rgba(40,121,255,0.1600)'
|
50
|
-
};
|
51
|
-
|
52
|
-
var getOkrTypeOption = function getOkrTypeOption(data) {
|
53
|
-
var okrType = data.okrType,
|
54
|
-
departmentId = data.departmentId,
|
55
|
-
departmentName = data.departmentName,
|
56
|
-
groupName = data.groupName;
|
57
|
-
return {
|
58
|
-
1: {
|
59
|
-
icon: 'tu-icon-liebiao-geren',
|
60
|
-
text: (0, _getLocale.getLocale)('OKR_MyO_Pop_Individual')
|
61
|
-
},
|
62
|
-
// 个人目标
|
63
|
-
2: {
|
64
|
-
icon: 'tu-icon-liebiao-xiashu',
|
65
|
-
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
66
|
-
name: departmentName,
|
67
|
-
id: departmentId
|
68
|
-
})
|
69
|
-
},
|
70
|
-
// 部门级目标
|
71
|
-
3: {
|
72
|
-
icon: 'tu-icon-gong_si',
|
73
|
-
text: (0, _getLocale.getLocale)('OKR_MyO_Pop_Company')
|
74
|
-
},
|
75
|
-
// 公司级目标
|
76
|
-
4: {
|
77
|
-
icon: 'tu-icon-liebiao-tuandui',
|
78
|
-
text: groupName || (0, _getLocale.getLocale)('OKR_MyO_Text_Team')
|
79
|
-
} // 团队目标
|
80
|
-
|
81
|
-
}[okrType];
|
82
|
-
};
|
83
|
-
|
84
|
-
exports.getOkrTypeOption = getOkrTypeOption;
|
85
|
-
|
86
|
-
function OType(props) {
|
87
|
-
var _props$editable = props.editable,
|
88
|
-
editable = _props$editable === void 0 ? true : _props$editable,
|
89
|
-
workId = props.workId,
|
90
|
-
type = props.type,
|
91
|
-
_props$onTypeChange = props.onTypeChange,
|
92
|
-
onTypeChange = _props$onTypeChange === void 0 ? function () {} : _props$onTypeChange;
|
93
|
-
var okrType = type.okrType,
|
94
|
-
departmentId = type.departmentId,
|
95
|
-
departmentName = type.departmentName,
|
96
|
-
groupId = type.groupId,
|
97
|
-
groupName = type.groupName;
|
98
|
-
|
99
|
-
var _useState = (0, _react.useState)(function () {
|
100
|
-
return (// @ts-ignore
|
101
|
-
window.BSGlobal.OkrAdvancedSetting.KRSetting.OkrTypeSetting
|
102
|
-
);
|
103
|
-
}),
|
104
|
-
_useState2 = _slicedToArray(_useState, 1),
|
105
|
-
OkrTypeSetting = _useState2[0];
|
106
|
-
|
107
|
-
var okrTypeMap = {
|
108
|
-
1: {
|
109
|
-
icon: 'tu-icon-liebiao-geren',
|
110
|
-
text: (0, _getLocale.getLocale)('OKR_MyO_Pop_Individual')
|
111
|
-
},
|
112
|
-
// 个人
|
113
|
-
2: {
|
114
|
-
icon: 'tu-icon-liebiao-xiashu',
|
115
|
-
text: departmentId > 0 ? /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
116
|
-
id: departmentId,
|
117
|
-
name: departmentName
|
118
|
-
}) : '默认部门'
|
119
|
-
},
|
120
|
-
// 部门
|
121
|
-
3: {
|
122
|
-
icon: 'tu-icon-gong_si',
|
123
|
-
text: (0, _getLocale.getLocale)('OKR_MyO_Pop_Company')
|
124
|
-
},
|
125
|
-
// 公司
|
126
|
-
4: {
|
127
|
-
icon: 'tu-icon-liebiao-tuandui',
|
128
|
-
text: groupName || (0, _getLocale.getLocale)('OKR_MyO_Text_Team')
|
129
|
-
} // 团队
|
130
|
-
|
131
|
-
};
|
132
|
-
|
133
|
-
var triggerContent = function triggerContent() {
|
134
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
135
|
-
className: "".concat(prefix, "__inner-content")
|
136
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
137
|
-
style: {
|
138
|
-
background: typeMapColor[okrType]
|
139
|
-
},
|
140
|
-
className: "".concat(prefix, "__inner-content-label")
|
141
|
-
}, okrTypeMap[okrType].text));
|
142
|
-
};
|
143
|
-
|
144
|
-
if (!OkrTypeSetting) return null;
|
145
|
-
if (!editable) return triggerContent();
|
146
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
147
|
-
style: {
|
148
|
-
display: 'inline-block',
|
149
|
-
width: '100%',
|
150
|
-
height: '100%'
|
151
|
-
}
|
152
|
-
}, /*#__PURE__*/_react["default"].createElement(_baseOkrType["default"], {
|
153
|
-
dept: {
|
154
|
-
departmentId: departmentId,
|
155
|
-
departmentName: departmentId == -1 ? '默认部门' : departmentName
|
156
|
-
},
|
157
|
-
type: {
|
158
|
-
typeId: okrType,
|
159
|
-
typeName: okrTypeMap[okrType].text
|
160
|
-
},
|
161
|
-
team: {
|
162
|
-
groupId: groupId,
|
163
|
-
groupName: groupName
|
164
|
-
},
|
165
|
-
okrId: workId,
|
166
|
-
renderInnerContent: triggerContent,
|
167
|
-
onTypeChange: onTypeChange
|
168
|
-
}));
|
169
|
-
}
|
170
|
-
|
171
|
-
var _default = function _default(update) {
|
172
|
-
return function (_ref) {
|
173
|
-
var data = _ref.data,
|
174
|
-
rootIdx = _ref.rootIdx,
|
175
|
-
rootData = _ref.rootData;
|
176
|
-
var type = (0, _react.useMemo)(function () {
|
177
|
-
return {
|
178
|
-
okrType: data.okrType,
|
179
|
-
departmentId: data.departmentId,
|
180
|
-
departmentName: data.departmentName,
|
181
|
-
groupId: data.groupId,
|
182
|
-
groupName: data.groupName
|
183
|
-
};
|
184
|
-
}, [data]);
|
185
|
-
|
186
|
-
var handleTypeChange = function handleTypeChange(data) {
|
187
|
-
rootData = _objectSpread(_objectSpread({}, rootData), data);
|
188
|
-
update({
|
189
|
-
type: 'update',
|
190
|
-
rootIdx: rootIdx,
|
191
|
-
itemData: rootData
|
192
|
-
});
|
193
|
-
};
|
194
|
-
|
195
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
196
|
-
className: "".concat(prefix, "__okr-type")
|
197
|
-
}, /*#__PURE__*/_react["default"].createElement(OType, {
|
198
|
-
workId: 1,
|
199
|
-
type: type,
|
200
|
-
onTypeChange: handleTypeChange
|
201
|
-
}));
|
202
|
-
};
|
203
|
-
};
|
204
|
-
|
205
|
-
exports["default"] = _default;
|
@@ -1,63 +0,0 @@
|
|
1
|
-
.tita-okr-excel-create-visibility {
|
2
|
-
left: 0;
|
3
|
-
top: 0;
|
4
|
-
width: 100%;
|
5
|
-
height: 100%;
|
6
|
-
cursor: pointer;
|
7
|
-
}
|
8
|
-
|
9
|
-
.tita-okr-excel-create-visibility__content {
|
10
|
-
box-sizing: border-box;
|
11
|
-
width: 100%;
|
12
|
-
height: 100%;
|
13
|
-
display: flex;
|
14
|
-
align-items: center;
|
15
|
-
}
|
16
|
-
|
17
|
-
.tita-okr-excel-create-visibility__content-text {
|
18
|
-
border-radius: 12px;
|
19
|
-
font-size: 14px;
|
20
|
-
color: #141c28;
|
21
|
-
line-height: 18px;
|
22
|
-
padding: 2px 6px;
|
23
|
-
}
|
24
|
-
|
25
|
-
.tita-okr-excel-create-visibility__item {
|
26
|
-
border-radius: 12px;
|
27
|
-
font-size: 14px;
|
28
|
-
color: #141c28;
|
29
|
-
line-height: 18px;
|
30
|
-
padding: 2px 6px;
|
31
|
-
display: inline-block;
|
32
|
-
margin-bottom: 2px;
|
33
|
-
white-space: nowrap;
|
34
|
-
margin-right: 4px;
|
35
|
-
}
|
36
|
-
|
37
|
-
.tita-okr-excel-create-visibility__selector {
|
38
|
-
background: #ffffff;
|
39
|
-
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
40
|
-
border: 1px solid #f0f2f5;
|
41
|
-
padding: 16px 16px;
|
42
|
-
border-radius: 12px;
|
43
|
-
}
|
44
|
-
|
45
|
-
.tita-okr-excel-create-visibility__selector-item {
|
46
|
-
height: 32px;
|
47
|
-
width: 98px;
|
48
|
-
background: #ffffff;
|
49
|
-
border-radius: 8px;
|
50
|
-
display: flex;
|
51
|
-
align-items: center;
|
52
|
-
padding: 5px 6px;
|
53
|
-
font-size: 14px;
|
54
|
-
color: #141C28;
|
55
|
-
line-height: 22px;
|
56
|
-
}
|
57
|
-
|
58
|
-
.tita-okr-excel-create-visibility__selector-item:hover {
|
59
|
-
background: #f7f8fa;
|
60
|
-
border-radius: 8px;
|
61
|
-
color: #2879ff;
|
62
|
-
cursor: pointer;
|
63
|
-
}
|