@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,190 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.getKrItemData = exports.getIitData = exports.formatDataToOKRExcelTableData = exports.formatDataToOKRExcelData = void 0;
|
7
|
-
|
8
|
-
var _uuid = _interopRequireDefault(require("uuid"));
|
9
|
-
|
10
|
-
var _helpers = require("../../utils/helpers");
|
11
|
-
|
12
|
-
var _common = require("../period-selector/common");
|
13
|
-
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
15
|
-
|
16
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
17
|
-
|
18
|
-
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."); }
|
19
|
-
|
20
|
-
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); }
|
21
|
-
|
22
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
23
|
-
|
24
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
25
|
-
|
26
|
-
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; }
|
27
|
-
|
28
|
-
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; }
|
29
|
-
|
30
|
-
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; }
|
31
|
-
|
32
|
-
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; }
|
33
|
-
|
34
|
-
var loginUser = (0, _helpers.getLoginUserInfo)();
|
35
|
-
|
36
|
-
var getKrItemData = function getKrItemData() {
|
37
|
-
return {
|
38
|
-
uuid: (0, _uuid["default"])(),
|
39
|
-
mileStoneId: 0,
|
40
|
-
feedId: '',
|
41
|
-
workId: 0,
|
42
|
-
mileStoneName: '',
|
43
|
-
mileStoneNameRichText: '',
|
44
|
-
aiteUsers: [],
|
45
|
-
mileStoneDescription: '',
|
46
|
-
principalId: 0,
|
47
|
-
createUserId: loginUser.Id,
|
48
|
-
startDate: '',
|
49
|
-
endDate: '',
|
50
|
-
lastUpdatedDate: '',
|
51
|
-
user: {
|
52
|
-
userId: loginUser.Id,
|
53
|
-
userType: loginUser.Type,
|
54
|
-
name: loginUser.Name,
|
55
|
-
email: loginUser.Email,
|
56
|
-
managerId: loginUser.ManagerId,
|
57
|
-
jobState: loginUser.JobState,
|
58
|
-
departmentId: loginUser.DepartmentId,
|
59
|
-
departmentName: loginUser.Department,
|
60
|
-
postition: loginUser.Position,
|
61
|
-
subType: 0,
|
62
|
-
hasSubordinates: loginUser.HasSub,
|
63
|
-
avatar: _objectSpread({}, loginUser.UserAvatar),
|
64
|
-
staffCode: ''
|
65
|
-
},
|
66
|
-
counter: {
|
67
|
-
taskTotal: 0,
|
68
|
-
finishTaskTotal: 0,
|
69
|
-
workTotal: 0,
|
70
|
-
finishWrokTotal: 0,
|
71
|
-
eTotal: 0,
|
72
|
-
finishETotal: 0,
|
73
|
-
subWorkTotal: 0
|
74
|
-
},
|
75
|
-
departments: '',
|
76
|
-
status: 1,
|
77
|
-
remainingDays: 0,
|
78
|
-
progress: 0,
|
79
|
-
progressGrow: 0,
|
80
|
-
riskLevel: 0,
|
81
|
-
remainingContent: '',
|
82
|
-
progressDescription: '',
|
83
|
-
editable: false,
|
84
|
-
evaluateEditable: true,
|
85
|
-
krWeightEditable: false,
|
86
|
-
confidenceIndex: 5,
|
87
|
-
evaluateValue: 0,
|
88
|
-
remark: '',
|
89
|
-
confidenceIndexGrow: 0,
|
90
|
-
isEvaluate: false,
|
91
|
-
krWeight: 100.0,
|
92
|
-
okrInfo: '',
|
93
|
-
tasks: null,
|
94
|
-
mapkrVisible: true,
|
95
|
-
CreateDate: '2022/3/14 16:16:36',
|
96
|
-
SortNum: 0,
|
97
|
-
UpdateProgressWay: 0,
|
98
|
-
progressDescriptionDate: null,
|
99
|
-
applyState: 0,
|
100
|
-
krApprovalType: '',
|
101
|
-
KrApprovalTypes: []
|
102
|
-
};
|
103
|
-
};
|
104
|
-
|
105
|
-
exports.getKrItemData = getKrItemData;
|
106
|
-
|
107
|
-
var getIitData = function getIitData(_ref) {
|
108
|
-
var annualNum = _ref.annualNum,
|
109
|
-
cycleType = _ref.cycleType,
|
110
|
-
yqmNum = _ref.yqmNum;
|
111
|
-
return _objectSpread(_objectSpread({
|
112
|
-
uuid: (0, _uuid["default"])(),
|
113
|
-
workId: 0,
|
114
|
-
workName: '',
|
115
|
-
isSaved: false,
|
116
|
-
workNameRichText: '',
|
117
|
-
visibility: 1,
|
118
|
-
visibilityScope: undefined,
|
119
|
-
departmentId: loginUser.DepartmentId,
|
120
|
-
departmentName: loginUser.Department,
|
121
|
-
groupId: 0,
|
122
|
-
groupName: '',
|
123
|
-
krs: [_objectSpread({}, getKrItemData())],
|
124
|
-
okrClassify: 0,
|
125
|
-
cycleType: cycleType,
|
126
|
-
yqmNum: yqmNum
|
127
|
-
}, (0, _common.getDateRangeByCycle)({
|
128
|
-
annualNum: annualNum,
|
129
|
-
cycleType: cycleType,
|
130
|
-
yqmNum: yqmNum
|
131
|
-
}, 1) || {}), {}, {
|
132
|
-
parentId: 0,
|
133
|
-
parentKrId: 0,
|
134
|
-
annualNum: annualNum,
|
135
|
-
hasSub: false,
|
136
|
-
okrType: 1,
|
137
|
-
createUserId: loginUser.Id,
|
138
|
-
principalUser: {
|
139
|
-
userId: loginUser.Id,
|
140
|
-
userType: loginUser.Type,
|
141
|
-
name: loginUser.Name,
|
142
|
-
email: loginUser.Email,
|
143
|
-
managerId: loginUser.ManagerId,
|
144
|
-
jobState: loginUser.JobState,
|
145
|
-
departmentId: loginUser.DepartmentId,
|
146
|
-
departmentName: loginUser.Department,
|
147
|
-
postition: loginUser.Position,
|
148
|
-
subType: 0,
|
149
|
-
hasSubordinates: loginUser.HasSub,
|
150
|
-
avatar: _objectSpread({}, loginUser.UserAvatar),
|
151
|
-
staffCode: ''
|
152
|
-
},
|
153
|
-
parentPrincipal: null,
|
154
|
-
isShowApprovalOpinion: false
|
155
|
-
});
|
156
|
-
};
|
157
|
-
|
158
|
-
exports.getIitData = getIitData;
|
159
|
-
|
160
|
-
var formatDataToOKRExcelTableData = function formatDataToOKRExcelTableData(data) {
|
161
|
-
return data.map(function (detail) {
|
162
|
-
detail.childs = [].concat(_toConsumableArray(detail.krs), [{
|
163
|
-
isAddKR: true
|
164
|
-
}]);
|
165
|
-
return detail;
|
166
|
-
});
|
167
|
-
};
|
168
|
-
|
169
|
-
exports.formatDataToOKRExcelTableData = formatDataToOKRExcelTableData;
|
170
|
-
|
171
|
-
var formatDataToOKRExcelData = function formatDataToOKRExcelData(data) {
|
172
|
-
var okrExcelData = [];
|
173
|
-
data.forEach(function (detail) {
|
174
|
-
var tempData = JSON.parse(JSON.stringify(detail));
|
175
|
-
var krs = tempData.krs;
|
176
|
-
krs.forEach(function (item, index) {
|
177
|
-
okrExcelData.push(_objectSpread(_objectSpread({}, tempData), {}, {
|
178
|
-
kr: _objectSpread(_objectSpread({}, item), {}, {
|
179
|
-
mileStoneId: tempData.workId + '_' + (item.isAddKR ? 'addKR' : index)
|
180
|
-
}),
|
181
|
-
rowSpan: index === 0 ? krs.length : 0,
|
182
|
-
colSpan: item.isAddKR ? 4 : 0
|
183
|
-
}));
|
184
|
-
});
|
185
|
-
});
|
186
|
-
console.log(okrExcelData);
|
187
|
-
return okrExcelData;
|
188
|
-
};
|
189
|
-
|
190
|
-
exports.formatDataToOKRExcelData = formatDataToOKRExcelData;
|
@@ -1,159 +0,0 @@
|
|
1
|
-
.titaui-table-excel-v2 {
|
2
|
-
position: relative;
|
3
|
-
box-shadow: 0 0 0 1px #e2e2e2;
|
4
|
-
background-color: #fff;
|
5
|
-
overflow: auto;
|
6
|
-
}
|
7
|
-
|
8
|
-
.titaui-table-excel-v2__main {
|
9
|
-
width: max-content;
|
10
|
-
display: flex;
|
11
|
-
flex-direction: column;
|
12
|
-
}
|
13
|
-
|
14
|
-
.titaui-table-excel-v2--header-fixed .titaui-table-excel-v2__header {
|
15
|
-
position: sticky;
|
16
|
-
top: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
.titaui-table-excel-v2__header {
|
20
|
-
display: flex;
|
21
|
-
z-index: 3;
|
22
|
-
width: max-content;
|
23
|
-
transition: box-shadow .3s;
|
24
|
-
}
|
25
|
-
|
26
|
-
.titaui-table-excel-v2__header--shadow {
|
27
|
-
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
|
28
|
-
}
|
29
|
-
|
30
|
-
.titaui-table-excel-v2__header--fixed {
|
31
|
-
position: absolute;
|
32
|
-
top: 0;
|
33
|
-
}
|
34
|
-
|
35
|
-
.titaui-table-excel-v2__header__drag-size-bar {
|
36
|
-
position: absolute;
|
37
|
-
right: -2px;
|
38
|
-
height: 100%;
|
39
|
-
width: 5px;
|
40
|
-
z-index: 4;
|
41
|
-
cursor: col-resize;
|
42
|
-
}
|
43
|
-
|
44
|
-
.titaui-table-excel-v2__header__item {
|
45
|
-
position: relative;
|
46
|
-
display: flex;
|
47
|
-
flex-shrink: 0;
|
48
|
-
align-items: center;
|
49
|
-
min-height: 40px;
|
50
|
-
padding: 0 12px;
|
51
|
-
color: #89919F;
|
52
|
-
background-color: #fff;
|
53
|
-
font-size: 12px;
|
54
|
-
font-weight: 600;
|
55
|
-
box-sizing: border-box;
|
56
|
-
transition: background-color .3s;
|
57
|
-
white-space: nowrap;
|
58
|
-
text-overflow: ellipsis;
|
59
|
-
}
|
60
|
-
|
61
|
-
.titaui-table-excel-v2__header__item--aligin-left {
|
62
|
-
justify-content: flex-start;
|
63
|
-
}
|
64
|
-
|
65
|
-
.titaui-table-excel-v2__header__item--aligin-center {
|
66
|
-
justify-content: center;
|
67
|
-
}
|
68
|
-
|
69
|
-
.titaui-table-excel-v2__header__item--aligin-right {
|
70
|
-
justify-content: flex-end;
|
71
|
-
}
|
72
|
-
|
73
|
-
.titaui-table-excel-v2__header__item:hover {
|
74
|
-
background-color: #f2f2f2;
|
75
|
-
}
|
76
|
-
|
77
|
-
.titaui-table-excel-v2__isPinned::after {
|
78
|
-
content: '';
|
79
|
-
position: absolute;
|
80
|
-
width: 10px;
|
81
|
-
height: 100%;
|
82
|
-
transition: box-shadow .3s;
|
83
|
-
}
|
84
|
-
|
85
|
-
.titaui-table-excel-v2__isPinned--left::after {
|
86
|
-
content: '';
|
87
|
-
position: absolute;
|
88
|
-
transform: translate(100%);
|
89
|
-
width: 10px;
|
90
|
-
height: 100%;
|
91
|
-
transition: box-shadow .3s;
|
92
|
-
top: 0;
|
93
|
-
right: 0;
|
94
|
-
}
|
95
|
-
|
96
|
-
.titaui-table-excel-v2__isPinned--right::after {
|
97
|
-
content: '';
|
98
|
-
position: absolute;
|
99
|
-
transform: translate(-100%);
|
100
|
-
width: 10px;
|
101
|
-
height: 100%;
|
102
|
-
transition: box-shadow .3s;
|
103
|
-
top: 0;
|
104
|
-
left: 0;
|
105
|
-
}
|
106
|
-
|
107
|
-
.titaui-table-excel-v2__isPinned--left-shadow {
|
108
|
-
border-right: 0 !important;
|
109
|
-
}
|
110
|
-
|
111
|
-
.titaui-table-excel-v2__isPinned--left-shadow::after, .titaui-table-excel-v2__isPinned--right-shadow::after {
|
112
|
-
box-shadow: inset 10px 0 8px -8px #00000026;
|
113
|
-
}
|
114
|
-
|
115
|
-
.titaui-table-excel-v2__childs {
|
116
|
-
display: flex;
|
117
|
-
flex-direction: column;
|
118
|
-
}
|
119
|
-
|
120
|
-
.titaui-table-excel-v2__childs > div {
|
121
|
-
height: 100%;
|
122
|
-
}
|
123
|
-
|
124
|
-
.titaui-table-excel-v2__row {
|
125
|
-
display: flex;
|
126
|
-
z-index: 1;
|
127
|
-
}
|
128
|
-
|
129
|
-
.titaui-table-excel-v2__box {
|
130
|
-
position: relative;
|
131
|
-
border-right: 1px solid #e2e2e2;
|
132
|
-
border-top: 1px solid #e2e2e2;
|
133
|
-
box-sizing: border-box;
|
134
|
-
flex-shrink: 0;
|
135
|
-
background-color: #fff;
|
136
|
-
min-width: 24px;
|
137
|
-
}
|
138
|
-
|
139
|
-
.titaui-table-excel-v2__box-content {
|
140
|
-
position: relative;
|
141
|
-
height: 100%;
|
142
|
-
padding: 7px 12px;
|
143
|
-
display: flex;
|
144
|
-
align-items: center;
|
145
|
-
min-height: 30px;
|
146
|
-
box-sizing: border-box;
|
147
|
-
}
|
148
|
-
|
149
|
-
.titaui-table-excel-v2__box-content--aligin-left {
|
150
|
-
justify-content: flex-start;
|
151
|
-
}
|
152
|
-
|
153
|
-
.titaui-table-excel-v2__box-content--aligin-center {
|
154
|
-
justify-content: center;
|
155
|
-
}
|
156
|
-
|
157
|
-
.titaui-table-excel-v2__box-content--aligin-right {
|
158
|
-
justify-content: flex-end;
|
159
|
-
}
|