@titaui/pc 1.16.16 → 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 +15 -23
- 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 -126
- 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 -231
- package/lib/pages/new-okr-list/img/excel.svg +0 -32
- package/lib/utils/array.js +0 -26
@@ -1,48 +0,0 @@
|
|
1
|
-
.tita-okr-excel-create-okr-cycle {
|
2
|
-
position: absolute;
|
3
|
-
left: 0;
|
4
|
-
top: 0;
|
5
|
-
width: 100%;
|
6
|
-
height: 100%;
|
7
|
-
display: flex;
|
8
|
-
align-items: center;
|
9
|
-
cursor: pointer;
|
10
|
-
}
|
11
|
-
|
12
|
-
.tita-okr-excel-create-okr-cycle__inner {
|
13
|
-
width: 100%;
|
14
|
-
height: 100%;
|
15
|
-
display: flex;
|
16
|
-
align-items: center;
|
17
|
-
padding: 0 12px;
|
18
|
-
box-sizing: border-box;
|
19
|
-
}
|
20
|
-
|
21
|
-
.tita-okr-excel-create-okr-cycle__inner-item {
|
22
|
-
border-radius: 12px;
|
23
|
-
padding: 2px 6px;
|
24
|
-
font-size: 14px;
|
25
|
-
color: #141c28;
|
26
|
-
line-height: 18px;
|
27
|
-
}
|
28
|
-
|
29
|
-
.tita-okr-excel-create-okr-cycle__period-selector {
|
30
|
-
width: 262px;
|
31
|
-
box-sizing: border-box;
|
32
|
-
min-height: 80px;
|
33
|
-
padding: 16px 0px;
|
34
|
-
border: 1px solid #f7f8fa;
|
35
|
-
border-radius: 4px;
|
36
|
-
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
37
|
-
background: #ffffff;
|
38
|
-
box-sizing: content-box;
|
39
|
-
border-radius: 12px;
|
40
|
-
}
|
41
|
-
|
42
|
-
.tita-okr-excel-create-okr-cycle__cycle-com {
|
43
|
-
border: 0 !important;
|
44
|
-
}
|
45
|
-
|
46
|
-
.tita-okr-excel-create-okr-cycle__cycle-com:hover {
|
47
|
-
border: 0 !important;
|
48
|
-
}
|
@@ -1,80 +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 _createCycle = _interopRequireDefault(require("../../../create-okr-modal/createCycle"));
|
13
|
-
|
14
|
-
require("./index.css");
|
15
|
-
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
17
|
-
|
18
|
-
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); }
|
19
|
-
|
20
|
-
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; }
|
21
|
-
|
22
|
-
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; }
|
23
|
-
|
24
|
-
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; }
|
25
|
-
|
26
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
27
|
-
|
28
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
29
|
-
|
30
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
31
|
-
|
32
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
33
|
-
|
34
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
35
|
-
|
36
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
37
|
-
|
38
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
39
|
-
|
40
|
-
var preCls = 'tita-okr-excel-create-okr-cycle';
|
41
|
-
|
42
|
-
var OKRCycle = function OKRCycle(update) {
|
43
|
-
return function (_ref) {
|
44
|
-
var data = _ref.data,
|
45
|
-
rootIdx = _ref.rootIdx,
|
46
|
-
rootData = _ref.rootData;
|
47
|
-
|
48
|
-
var _useState = (0, _react.useState)({
|
49
|
-
annualNum: data.annualNum,
|
50
|
-
cycleType: data.cycleType,
|
51
|
-
yqmNum: data.yqmNum || data.yqMnum,
|
52
|
-
startDate: data.startDate,
|
53
|
-
endDate: data.endDate
|
54
|
-
}),
|
55
|
-
_useState2 = _slicedToArray(_useState, 2),
|
56
|
-
cycle = _useState2[0],
|
57
|
-
setCycle = _useState2[1];
|
58
|
-
|
59
|
-
var handleChangeCycle = function handleChangeCycle(value) {
|
60
|
-
setCycle(value);
|
61
|
-
rootData = _objectSpread(_objectSpread({}, rootData), value);
|
62
|
-
update({
|
63
|
-
type: 'update',
|
64
|
-
rootIdx: rootIdx,
|
65
|
-
itemData: rootData
|
66
|
-
});
|
67
|
-
};
|
68
|
-
|
69
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
70
|
-
className: "".concat(preCls)
|
71
|
-
}, /*#__PURE__*/_react["default"].createElement(_createCycle["default"], {
|
72
|
-
className: "".concat(preCls, "__cycle-com"),
|
73
|
-
onChange: handleChangeCycle,
|
74
|
-
cycle: cycle
|
75
|
-
}));
|
76
|
-
};
|
77
|
-
};
|
78
|
-
|
79
|
-
var _default = OKRCycle;
|
80
|
-
exports["default"] = _default;
|
@@ -1,93 +0,0 @@
|
|
1
|
-
.tita-okr-excel-create-okr-name {
|
2
|
-
position: relative;
|
3
|
-
color: #141c28;
|
4
|
-
font-size: 14px;
|
5
|
-
display: flex;
|
6
|
-
align-items: center;
|
7
|
-
font-weight: 400;
|
8
|
-
cursor: pointer;
|
9
|
-
width: 100%;
|
10
|
-
height: 100%;
|
11
|
-
box-sizing: border-box;
|
12
|
-
}
|
13
|
-
|
14
|
-
.tita-okr-excel-create-okr-name:hover .tita-okr-excel-create-okr-name__close {
|
15
|
-
transform: scale(1);
|
16
|
-
opacity: 1;
|
17
|
-
}
|
18
|
-
|
19
|
-
.tita-okr-excel-create-okr-name__close {
|
20
|
-
position: absolute;
|
21
|
-
right: -28px;
|
22
|
-
width: 32px;
|
23
|
-
height: 32px;
|
24
|
-
background-color: #fff;
|
25
|
-
box-shadow: 0px 4px 8px 0px rgba(127, 145, 180, 0.2);
|
26
|
-
border-radius: 50%;
|
27
|
-
display: flex;
|
28
|
-
justify-content: center;
|
29
|
-
align-items: center;
|
30
|
-
z-index: 4;
|
31
|
-
cursor: pointer;
|
32
|
-
transform: scale(0.5);
|
33
|
-
transition: transform .3s, opacity .2s;
|
34
|
-
opacity: 0;
|
35
|
-
}
|
36
|
-
|
37
|
-
.tita-okr-excel-create-okr-name__close:hover {
|
38
|
-
transform: scale(1);
|
39
|
-
opacity: 1;
|
40
|
-
}
|
41
|
-
|
42
|
-
.tita-okr-excel-create-okr-name .tita-rich-editor__inline-editor {
|
43
|
-
min-height: 22px !important;
|
44
|
-
border-radius: 0;
|
45
|
-
}
|
46
|
-
|
47
|
-
.tita-okr-excel-create-okr-name .tita-rich-editor__inline-editor {
|
48
|
-
width: calc(100% - 40px);
|
49
|
-
padding: 0;
|
50
|
-
min-height: 32px;
|
51
|
-
}
|
52
|
-
|
53
|
-
.tita-okr-excel-create-okr-name .tita-rich-editor__inline-editor .ProseMirror.ProseMirror-focused {
|
54
|
-
border: 0;
|
55
|
-
}
|
56
|
-
|
57
|
-
.tita-okr-excel-create-okr-name--isO .tita-rich-editor p {
|
58
|
-
font-weight: 500 !important;
|
59
|
-
}
|
60
|
-
|
61
|
-
.tita-okr-excel-create-okr-name .tita-rich-editor p {
|
62
|
-
padding: 0;
|
63
|
-
font-size: 14px;
|
64
|
-
font-weight: 400;
|
65
|
-
color: #141C28;
|
66
|
-
line-height: 22px;
|
67
|
-
white-space: pre-wrap;
|
68
|
-
}
|
69
|
-
|
70
|
-
.tita-okr-excel-create-okr-name__icon {
|
71
|
-
color: #2879ff;
|
72
|
-
margin-right: 4px;
|
73
|
-
font-weight: 550;
|
74
|
-
}
|
75
|
-
|
76
|
-
.tita-okr-excel-create-okr-name__add-kr {
|
77
|
-
width: 100%;
|
78
|
-
height: 100%;
|
79
|
-
display: flex;
|
80
|
-
align-items: center;
|
81
|
-
font-size: 14px;
|
82
|
-
color: #6f7886;
|
83
|
-
line-height: 22px;
|
84
|
-
cursor: pointer;
|
85
|
-
}
|
86
|
-
|
87
|
-
.tita-okr-excel-create-okr-name__add-kr:hover {
|
88
|
-
color: #2879ff;
|
89
|
-
}
|
90
|
-
|
91
|
-
.tita-okr-excel-create-okr-name__add-kr-icon {
|
92
|
-
margin-right: 4px;
|
93
|
-
}
|
@@ -1,222 +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 _richEditor = require("@titaui/rich-editor");
|
13
|
-
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
15
|
-
|
16
|
-
var _inputWithErrPopup = _interopRequireDefault(require("../../../create-okr-modal/fields/input-with-err-popup"));
|
17
|
-
|
18
|
-
var _getLocale = require("../../../../utils/getLocale");
|
19
|
-
|
20
|
-
var _i18nFrontTranslate = require("../../../../utils/i18n-front-translate");
|
21
|
-
|
22
|
-
var _utils = require("../../utils");
|
23
|
-
|
24
|
-
require("./index.css");
|
25
|
-
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
27
|
-
|
28
|
-
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); }
|
29
|
-
|
30
|
-
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; }
|
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 _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
37
|
-
|
38
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
39
|
-
|
40
|
-
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; }
|
41
|
-
|
42
|
-
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; }
|
43
|
-
|
44
|
-
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; }
|
45
|
-
|
46
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
47
|
-
|
48
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
49
|
-
|
50
|
-
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); }
|
51
|
-
|
52
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
53
|
-
|
54
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
55
|
-
|
56
|
-
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; }
|
57
|
-
|
58
|
-
var preCls = 'tita-okr-excel-create-okr-name';
|
59
|
-
|
60
|
-
var OkrNameRenderer = function OkrNameRenderer(update, isO) {
|
61
|
-
return function (_ref) {
|
62
|
-
var _okrNameData$pureText;
|
63
|
-
|
64
|
-
var data = _ref.data,
|
65
|
-
rowIdx = _ref.rowIdx,
|
66
|
-
rootIdx = _ref.rootIdx,
|
67
|
-
rootData = _ref.rootData;
|
68
|
-
var rootDataRef = (0, _react.useRef)(rootData);
|
69
|
-
(0, _react.useEffect)(function () {
|
70
|
-
rootDataRef.current = rootData;
|
71
|
-
}, [rootData]);
|
72
|
-
|
73
|
-
if (data.isAddKR && !isO) {
|
74
|
-
var handleAddKR = function handleAddKR() {
|
75
|
-
// 自动计算权重
|
76
|
-
// 如果所有 kr 权重值一样,说明是均分的,那么新增加的 kr 也自动均分
|
77
|
-
// 如果不一致,则新增加的 kr 权重设置为 0
|
78
|
-
var preKrWeight = -1;
|
79
|
-
var updated = false;
|
80
|
-
rootDataRef.current.krs.findIndex(function (_ref2) {
|
81
|
-
var krWeight = _ref2.krWeight;
|
82
|
-
|
83
|
-
if (preKrWeight === -1) {
|
84
|
-
preKrWeight = krWeight;
|
85
|
-
return;
|
86
|
-
}
|
87
|
-
|
88
|
-
if (preKrWeight !== krWeight) updated = true;
|
89
|
-
return updated;
|
90
|
-
});
|
91
|
-
rootDataRef.current.krs = [].concat(_toConsumableArray(rootDataRef.current.krs.map(function (item) {
|
92
|
-
return _objectSpread({}, item);
|
93
|
-
})), [_objectSpread(_objectSpread({}, (0, _utils.getKrItemData)()), {}, {
|
94
|
-
krWeight: 0
|
95
|
-
})]);
|
96
|
-
|
97
|
-
if (!updated) {
|
98
|
-
var krWeight = parseFloat((100 / rootDataRef.current.krs.length).toFixed(1));
|
99
|
-
rootDataRef.current.krs = rootDataRef.current.krs.map(function (item) {
|
100
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
101
|
-
krWeight: krWeight
|
102
|
-
});
|
103
|
-
});
|
104
|
-
}
|
105
|
-
|
106
|
-
update({
|
107
|
-
type: 'update',
|
108
|
-
rootIdx: rootIdx,
|
109
|
-
itemData: rootDataRef.current
|
110
|
-
});
|
111
|
-
};
|
112
|
-
|
113
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
114
|
-
className: "".concat(preCls, "__add-kr"),
|
115
|
-
onClick: handleAddKR
|
116
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
117
|
-
className: "".concat(preCls, "__add-kr-icon tu-icon-add1")
|
118
|
-
}), (0, _getLocale.getLocale)('OKR_MyO_Pop_Butt_AddKR'));
|
119
|
-
}
|
120
|
-
|
121
|
-
var _useState = (0, _react.useState)({
|
122
|
-
richText: '',
|
123
|
-
pureTextExcludeAt: '',
|
124
|
-
editorState: 'normal'
|
125
|
-
}),
|
126
|
-
_useState2 = _slicedToArray(_useState, 2),
|
127
|
-
okrNameData = _useState2[0],
|
128
|
-
setOkrNameData = _useState2[1];
|
129
|
-
|
130
|
-
var _useState3 = (0, _react.useState)(''),
|
131
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
132
|
-
errorTip = _useState4[0],
|
133
|
-
setErrorTip = _useState4[1];
|
134
|
-
|
135
|
-
var mentionInputRef = (0, _react.useRef)();
|
136
|
-
|
137
|
-
var checkError = function checkError(val) {
|
138
|
-
if (val.length == 0) {
|
139
|
-
setErrorTip((0, _getLocale.getLocale)('OKR_MyO_Pop_Targetname'));
|
140
|
-
return;
|
141
|
-
}
|
142
|
-
|
143
|
-
if (val.length > 500) {
|
144
|
-
setErrorTip((0, _i18nFrontTranslate.inputWordTrans)(val.length, 500));
|
145
|
-
return;
|
146
|
-
}
|
147
|
-
|
148
|
-
setErrorTip('');
|
149
|
-
};
|
150
|
-
|
151
|
-
var onRemoveHanlder = function onRemoveHanlder() {
|
152
|
-
if (isO) {
|
153
|
-
update({
|
154
|
-
type: 'removeO',
|
155
|
-
rootIdx: rootIdx,
|
156
|
-
uuid: data.uuid
|
157
|
-
});
|
158
|
-
} else {
|
159
|
-
update({
|
160
|
-
type: 'removeKr',
|
161
|
-
rootIdx: rootIdx,
|
162
|
-
rowIdx: rowIdx,
|
163
|
-
rootUuid: rootDataRef.current.uuid,
|
164
|
-
uuid: data.uuid
|
165
|
-
});
|
166
|
-
}
|
167
|
-
};
|
168
|
-
|
169
|
-
var onChangeHandler = function onChangeHandler(value) {
|
170
|
-
setOkrNameData(function (prevData) {
|
171
|
-
return _objectSpread(_objectSpread({}, prevData), value);
|
172
|
-
});
|
173
|
-
checkError(value.pureTextExcludeAt);
|
174
|
-
|
175
|
-
if (isO) {
|
176
|
-
rootDataRef.current.workName = value.pureText;
|
177
|
-
rootDataRef.current.aiteUsers = value.mentionUsers.map(function (_ref3) {
|
178
|
-
var mentionId = _ref3.mentionId;
|
179
|
-
return mentionId;
|
180
|
-
});
|
181
|
-
rootDataRef.current.workNameRichText = value.richText;
|
182
|
-
} else {
|
183
|
-
rootDataRef.current.krs[rowIdx].mileStoneName = value.pureText;
|
184
|
-
rootDataRef.current.krs[rowIdx].aiteUsers = value.mentionUsers.map(function (_ref4) {
|
185
|
-
var mentionId = _ref4.mentionId;
|
186
|
-
return mentionId;
|
187
|
-
});
|
188
|
-
rootDataRef.current.krs[rowIdx].mileStoneNameRichText = value.richText;
|
189
|
-
}
|
190
|
-
|
191
|
-
update({
|
192
|
-
type: 'update',
|
193
|
-
rootIdx: rootIdx,
|
194
|
-
itemData: rootDataRef.current
|
195
|
-
});
|
196
|
-
};
|
197
|
-
|
198
|
-
var length = ((_okrNameData$pureText = okrNameData.pureTextExcludeAt) === null || _okrNameData$pureText === void 0 ? void 0 : _okrNameData$pureText.length) | 0;
|
199
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
200
|
-
className: (0, _classnames["default"])("".concat(preCls), _defineProperty({}, "".concat(preCls, "--isO"), isO))
|
201
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
202
|
-
className: "".concat(preCls, "__icon")
|
203
|
-
}, isO ? 'O:' : "KR".concat(rowIdx + 1, ":")), /*#__PURE__*/_react["default"].createElement("span", {
|
204
|
-
onClick: onRemoveHanlder,
|
205
|
-
className: "".concat(preCls, "__close tu-icon-del")
|
206
|
-
}), /*#__PURE__*/_react["default"].createElement(_inputWithErrPopup["default"], {
|
207
|
-
strLength: length,
|
208
|
-
maxLength: 500,
|
209
|
-
position: "top"
|
210
|
-
}, /*#__PURE__*/_react["default"].createElement(_richEditor.TitaInlineRichEditor, {
|
211
|
-
key: okrNameData.editorState,
|
212
|
-
editable: true,
|
213
|
-
initialState: JSON.parse(data.workNameRichText || data.mileStoneNameRichText || '{}'),
|
214
|
-
onDocChange: onChangeHandler,
|
215
|
-
ref: mentionInputRef,
|
216
|
-
placeholder: isO ? (0, _getLocale.getLocale)('OKR_MyO_Enteobjname') : (0, _getLocale.getLocale)('OKR_MyO_Pop_FillKeyR')
|
217
|
-
})));
|
218
|
-
};
|
219
|
-
};
|
220
|
-
|
221
|
-
var _default = OkrNameRenderer;
|
222
|
-
exports["default"] = _default;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
.tita-okr-excel-create-okr-principal {
|
2
|
-
position: absolute;
|
3
|
-
left: 0;
|
4
|
-
top: 0;
|
5
|
-
width: 100%;
|
6
|
-
height: 100%;
|
7
|
-
display: flex;
|
8
|
-
align-items: center;
|
9
|
-
padding: 0 12px;
|
10
|
-
box-sizing: border-box;
|
11
|
-
cursor: pointer;
|
12
|
-
}
|
13
|
-
|
14
|
-
.tita-okr-excel-create-okr-principal .titaui-pc-avator-container {
|
15
|
-
margin-right: 7px;
|
16
|
-
}
|
17
|
-
|
18
|
-
.tita-okr-excel-create-okr-principal .titaui-pc-avator-wrapper {
|
19
|
-
height: 20px;
|
20
|
-
}
|
@@ -1,116 +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 _bsGlobal = require("../../../../utils/bs-global");
|
13
|
-
|
14
|
-
var _userSelector = _interopRequireDefault(require("../../../user-selector"));
|
15
|
-
|
16
|
-
var _nameAvatar = _interopRequireDefault(require("../../../avatar/name-avatar"));
|
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 preCls = 'tita-okr-excel-create-okr-principal';
|
45
|
-
var loginUser = (0, _bsGlobal.getUserInfo)();
|
46
|
-
|
47
|
-
var principalRenderer = function principalRenderer(update, isO) {
|
48
|
-
return function (_ref) {
|
49
|
-
var data = _ref.data,
|
50
|
-
rowIdx = _ref.rowIdx,
|
51
|
-
rootIdx = _ref.rootIdx,
|
52
|
-
rootData = _ref.rootData;
|
53
|
-
if (data.isAddKR) return null;
|
54
|
-
|
55
|
-
var _useState = (0, _react.useState)(data.principalUser || data.user || _objectSpread(_objectSpread({}, loginUser), {}, {
|
56
|
-
avatar: loginUser.UserAvatar,
|
57
|
-
name: loginUser.Name,
|
58
|
-
userId: loginUser.Id
|
59
|
-
})),
|
60
|
-
_useState2 = _slicedToArray(_useState, 2),
|
61
|
-
user = _useState2[0],
|
62
|
-
setUser = _useState2[1];
|
63
|
-
|
64
|
-
var handleSelected = function handleSelected(_ref2) {
|
65
|
-
var _ref3 = _slicedToArray(_ref2, 1),
|
66
|
-
user = _ref3[0];
|
67
|
-
|
68
|
-
setUser(user.data);
|
69
|
-
if (isO) rootData.principalUser = user.data;else rootData.krs[rowIdx].user = user.data;
|
70
|
-
update({
|
71
|
-
type: 'update',
|
72
|
-
rootIdx: rootIdx,
|
73
|
-
itemData: rootData
|
74
|
-
});
|
75
|
-
};
|
76
|
-
|
77
|
-
return /*#__PURE__*/_react["default"].createElement(_userSelector["default"] // @ts-ignore
|
78
|
-
, {
|
79
|
-
position: "bottom",
|
80
|
-
selectNodes: {},
|
81
|
-
onSelect: handleSelected,
|
82
|
-
destroyPopupOnHide: true,
|
83
|
-
disabledDepartSelect: true,
|
84
|
-
panes: {
|
85
|
-
depart: true,
|
86
|
-
group: false,
|
87
|
-
subordinate: false
|
88
|
-
},
|
89
|
-
popupAlign: {
|
90
|
-
offset: [0, 40],
|
91
|
-
overflow: {
|
92
|
-
adjustX: true,
|
93
|
-
adjustY: true
|
94
|
-
},
|
95
|
-
targetOffset: [0, 0]
|
96
|
-
},
|
97
|
-
trigger: /*#__PURE__*/_react["default"].createElement("div", {
|
98
|
-
className: "".concat(preCls)
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement(_nameAvatar["default"], {
|
100
|
-
src: user.avatar.small,
|
101
|
-
name: user.name,
|
102
|
-
userId: user.userId,
|
103
|
-
showNameTips: true,
|
104
|
-
color: user.avatar.color,
|
105
|
-
size: {
|
106
|
-
width: 20,
|
107
|
-
textNum: 1,
|
108
|
-
fontSize: 12
|
109
|
-
}
|
110
|
-
}))
|
111
|
-
});
|
112
|
-
};
|
113
|
-
};
|
114
|
-
|
115
|
-
var _default = principalRenderer;
|
116
|
-
exports["default"] = _default;
|
package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.js
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports["default"] = void 0;
|
7
|
-
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
9
|
-
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
11
|
-
|
12
|
-
var _okrProgress = _interopRequireDefault(require("../okr-progress"));
|
13
|
-
|
14
|
-
require("./index.css");
|
15
|
-
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
17
|
-
|
18
|
-
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; }
|
19
|
-
|
20
|
-
var prefix = 'tita-okr-excel-progress-kr';
|
21
|
-
|
22
|
-
var KRProgress = function KRProgress(_ref) {
|
23
|
-
var id = _ref.id,
|
24
|
-
value = _ref.value,
|
25
|
-
onChange = _ref.onChange,
|
26
|
-
autoUpdate = _ref.autoUpdate,
|
27
|
-
autoUpdateItem = _ref.autoUpdateItem,
|
28
|
-
editable = _ref.editable,
|
29
|
-
riskLevel = _ref.riskLevel,
|
30
|
-
getPopupContainer = _ref.getPopupContainer;
|
31
|
-
return /*#__PURE__*/_react["default"].createElement(_okrProgress["default"], {
|
32
|
-
id: Number(id),
|
33
|
-
value: value,
|
34
|
-
onChange: onChange,
|
35
|
-
autoUpdate: autoUpdate,
|
36
|
-
autoUpdateItem: autoUpdateItem,
|
37
|
-
editable: editable,
|
38
|
-
riskLevel: riskLevel,
|
39
|
-
getPopupContainer: getPopupContainer
|
40
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
41
|
-
className: (0, _classnames["default"])(prefix, _defineProperty({}, "".concat(prefix, "--editable"), editable))
|
42
|
-
}, value, "%"));
|
43
|
-
};
|
44
|
-
|
45
|
-
var _default = KRProgress;
|
46
|
-
exports["default"] = _default;
|