@titaui/pc 1.12.46 → 1.12.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/attachments-preview/index.css +4 -0
- package/lib/components/attachments-preview/index.js +116 -0
- package/lib/components/auto-save/img/failed.svg +17 -0
- package/lib/components/auto-save/img/success.svg +16 -0
- package/lib/components/auto-save/index.css +39 -0
- package/lib/components/auto-save/index.js +78 -0
- package/lib/components/auto-save/interface.js +5 -0
- package/lib/components/avatar/default.js +5 -2
- package/lib/components/avatar/index.css +2 -0
- package/lib/components/change-okr-modal/Filter.js +1 -1
- package/lib/components/change-okr-modal/Item.js +1 -1
- package/lib/components/change-okr-modal/filterTab.js +1 -1
- package/lib/components/change-okr-modal/index.js +1 -1
- package/lib/components/color-date-picker/index.css +69 -0
- package/lib/components/color-date-picker/index.js +129 -0
- package/lib/components/color-date-picker/interface.js +14 -0
- package/lib/components/communication/CommunicationAttachments.js +1 -1
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.js +1 -1
- package/lib/components/create-okr-modal/objectType.js +1 -1
- package/lib/components/date-picker/BodyItem.js +4 -4
- package/lib/components/date-picker/CalendarBody.js +1 -1
- package/lib/components/date-picker/CalendarHeader.js +4 -4
- package/lib/components/date-picker/index.js +1 -1
- package/lib/components/date-range-picker/index.js +1 -1
- package/lib/components/delete-confirm-pop/ConfirmPop.js +4 -4
- package/lib/components/dialog-confirm/index.css +1 -0
- package/lib/components/dialog-confirm/index.js +8 -4
- package/lib/components/dialog-upload/img/doc.svg +1 -0
- package/lib/components/dialog-upload/img/other.svg +1 -0
- package/lib/components/dialog-upload/img/pdf.svg +1 -0
- package/lib/components/dialog-upload/img/ppt.svg +1 -0
- package/lib/components/dialog-upload/img/radio.svg +1 -0
- package/lib/components/dialog-upload/img/video.svg +1 -0
- package/lib/components/dialog-upload/img/xls.svg +1 -0
- package/lib/components/dialog-upload/index.css +77 -0
- package/lib/components/dialog-upload/index.js +330 -0
- package/lib/components/dialog-upload/type.js +35 -0
- package/lib/components/dialog-upload/uploaded-preview.css +80 -0
- package/lib/components/dialog-upload/uploaded-preview.js +134 -0
- package/lib/components/dialog-upload/util.js +131 -0
- package/lib/components/drawer/index.css +5 -5
- package/lib/components/drawer/index.js +7 -7
- package/lib/components/drop-selector/index.js +7 -4
- package/lib/components/dynamic/components/comments-dialog/api.js +27 -0
- package/lib/components/dynamic/components/comments-dialog/encourage.js +127 -0
- package/lib/components/dynamic/components/comments-dialog/img/APP-shoucang-m.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/ascore.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curEfforts.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curGood.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curGreat.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/efforts.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/good.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/great.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/halfscore.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/loading.gif +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/score.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/top.svg +14 -0
- package/lib/components/dynamic/components/comments-dialog/index.css +116 -0
- package/lib/components/dynamic/components/comments-dialog/index.js +208 -0
- package/lib/components/dynamic/components/comments-dialog/rate.js +143 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.js +49 -47
- package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +31 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +217 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +176 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +10 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +27 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +8 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +26 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +8 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +26 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +197 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +220 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +20 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +134 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +60 -0
- package/lib/components/dynamic/dynamic-item/components/progress/index.css +25 -0
- package/lib/components/dynamic/dynamic-item/components/progress/index.js +71 -0
- package/lib/components/dynamic/dynamic-item/components/progress/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/schedule/index.css +36 -0
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +31 -0
- package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/guide-img.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +177 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +423 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +49 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/request-api.js +17 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +30 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +57 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +50 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +67 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +29 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +310 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +193 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +22 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +80 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/request-api.js +16 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-write.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-write.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-write.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +210 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +43 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +49 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +110 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +253 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +30 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/index.js +52 -33
- package/lib/components/dynamic/dynamic-list/index.js +8 -8
- package/lib/components/eReport/eReportListEmpty.js +1 -1
- package/lib/components/eReport/eReportLists/reportList.js +4 -4
- package/lib/components/eReport/eReportShare/index.js +1 -1
- package/lib/components/eReport/eReportShare/toast/index.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
- package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
- package/lib/components/emotions-selector/selector-content.js +1 -1
- package/lib/components/emotions-selector/selector-pop.js +4 -4
- package/lib/components/ereport-list/index.js +4 -4
- package/lib/components/error-boundary/index.js +1 -1
- package/lib/components/form/form-fields/date/index.js +9 -8
- package/lib/components/guide-tip/index.css +68 -0
- package/lib/components/guide-tip/index.js +127 -0
- package/lib/components/import-modal/helper.js +170 -0
- package/lib/components/import-modal/image/loading.gif +0 -0
- package/lib/components/import-modal/import-okr-modal/index.css +18 -0
- package/lib/components/import-modal/import-okr-modal/index.js +146 -0
- package/lib/components/import-modal/import-task-modal/index.css +18 -0
- package/lib/components/import-modal/import-task-modal/index.js +251 -0
- package/lib/components/import-modal/import-task-modal/search-form.js +142 -0
- package/lib/components/import-modal/index.css +30 -0
- package/lib/components/import-modal/index.js +20 -0
- package/lib/components/import-modal/radio.js +62 -0
- package/lib/components/import-modal/request-api.js +206 -0
- package/lib/components/import-modal/search/category-select.js +74 -0
- package/lib/components/import-modal/search/okr-classify-select.js +74 -0
- package/lib/components/import-modal/search/okr-status-select.js +74 -0
- package/lib/components/import-modal/search/okr-type-select.js +87 -0
- package/lib/components/import-modal/search/principal.js +135 -0
- package/lib/components/import-modal/search/relation.js +89 -0
- package/lib/components/import-modal/search/search-dropdown/index.css +50 -0
- package/lib/components/import-modal/search/search-dropdown/index.js +32 -0
- package/lib/components/import-modal/search/task-relation.js +84 -0
- package/lib/components/import-modal/search/task-status-select.js +87 -0
- package/lib/components/import-modal/search/work-relation.js +83 -0
- package/lib/components/import-modal/search/work-status-select.js +74 -0
- package/lib/components/import-modal/tree/okr-tree/index.css +61 -0
- package/lib/components/import-modal/tree/okr-tree/index.js +267 -0
- package/lib/components/import-modal/tree/okr-tree/search-form.js +169 -0
- package/lib/components/import-modal/tree/task-work-tree/index.css +124 -0
- package/lib/components/import-modal/tree/task-work-tree/index.js +190 -0
- package/lib/components/import-modal/tree-node/index.css +0 -0
- package/lib/components/import-modal/tree-node/index.js +51 -0
- package/lib/components/import-modal/tree-node/kr-node/index.css +65 -0
- package/lib/components/import-modal/tree-node/kr-node/index.js +112 -0
- package/lib/components/import-modal/tree-node/milestone-node/index.css +61 -0
- package/lib/components/import-modal/tree-node/milestone-node/index.js +118 -0
- package/lib/components/import-modal/tree-node/o-node/index.css +53 -0
- package/lib/components/import-modal/tree-node/o-node/index.js +142 -0
- package/lib/components/import-modal/tree-node/work-node/index.css +51 -0
- package/lib/components/import-modal/tree-node/work-node/index.js +108 -0
- package/lib/components/mblog/components/ConfirmPop.js +1 -1
- package/lib/components/mblog/components/MblogAction.js +4 -4
- package/lib/components/mblog/components/MblogContent.js +1 -1
- package/lib/components/mblog/index.js +1 -1
- package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +14 -0
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +15 -0
- package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +15 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.css +120 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +22 -2
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +78 -0
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +78 -0
- package/lib/components/menus/components/search-colleague/index.js +3 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +6 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +69 -69
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/okr-menus/index.js +6 -6
- package/lib/components/menus/export-modules/okr-menus/menus.js +60 -60
- package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +2 -2
- package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +56 -0
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +32 -0
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +233 -0
- package/lib/components/menus/export-modules/summary-menus/index.css +9 -0
- package/lib/components/menus/export-modules/summary-menus/index.js +136 -0
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +76 -0
- package/lib/components/menus/export-modules/summary-menus/menus.js +201 -0
- package/lib/components/menus/export-modules/summary-menus/request-api.js +17 -0
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/helper.js +28 -0
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.css +14 -0
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +201 -0
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +228 -0
- package/lib/components/menus/i18n.js +8 -0
- package/lib/components/menus/index.js +6 -0
- package/lib/components/menus/request-apis.js +8 -2
- package/lib/components/nav-top/components/app-center/images/demo.png +0 -0
- package/lib/components/nav-top/components/app-center/index.css +4 -0
- package/lib/components/nav-top/components/app-center/index.js +9 -9
- package/lib/components/nav-top/components/menu/index.js +4 -0
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +28 -17
- package/lib/components/nav-top/components/user-message/index.js +19 -19
- package/lib/components/nav-top/index.js +18 -18
- package/lib/components/new-confidence/constant.js +53 -0
- package/lib/components/new-confidence/img/1.svg +40 -0
- package/lib/components/new-confidence/img/10.svg +33 -0
- package/lib/components/new-confidence/img/2.svg +40 -0
- package/lib/components/new-confidence/img/3.svg +40 -0
- package/lib/components/new-confidence/img/4.svg +40 -0
- package/lib/components/new-confidence/img/5.svg +40 -0
- package/lib/components/new-confidence/img/6.svg +40 -0
- package/lib/components/new-confidence/img/7.svg +40 -0
- package/lib/components/new-confidence/img/8.svg +40 -0
- package/lib/components/new-confidence/img/9.svg +40 -0
- package/lib/components/new-confidence/index.css +62 -0
- package/lib/components/new-confidence/index.js +120 -0
- package/lib/components/new-confidence/interface.js +5 -0
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
- package/lib/components/okr-flow/export-modal/index.css +3 -3
- package/lib/components/okr-flow/export-modal/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/index.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/index.js +4 -4
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +4 -4
- package/lib/components/okr-review/index.js +1 -1
- package/lib/components/operation-records/OperationRecordItem.js +1 -1
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/order-have-award/index.js +6 -6
- package/lib/components/period-selector/components/button/style.js +5 -5
- package/lib/components/picker/components/cross.svg +17 -0
- package/lib/components/picker/components/panels/date-panel/date-body.js +31 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.css +5 -0
- package/lib/components/picker/components/panels/month-panel/index.js +35 -4
- package/lib/components/picker/components/panels/month-panel/month-body.js +4 -5
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.css +51 -0
- package/lib/components/picker/components/panels/week-panel/index.js +63 -0
- package/lib/components/picker/components/panels/week-panel/utils.js +153 -0
- package/lib/components/picker/components/panels/week-panel/week-body.js +79 -0
- package/lib/components/picker/components/panels/week-panel/week-head.js +80 -0
- package/lib/components/picker/components/panels/year-panel/index.css +5 -0
- package/lib/components/picker/components/panels/year-panel/index.js +34 -3
- package/lib/components/picker/components/panels/year-panel/year-body.js +10 -3
- package/lib/components/picker/components/picker-trigger/index.css +6 -1
- package/lib/components/picker/components/picker-trigger/index.js +16 -11
- package/lib/components/picker/context.js +17 -2
- package/lib/components/picker/index.css +29 -1
- package/lib/components/picker/index.js +3 -0
- package/lib/components/picker/picker-panels.js +106 -60
- package/lib/components/picker/picker.js +44 -30
- package/lib/components/picker/range-picker/components/picker-trigger/index.css +97 -0
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +109 -0
- package/lib/components/picker/range-picker/components/placeholder/index.js +91 -0
- package/lib/components/picker/range-picker/components/select-input/index.js +79 -0
- package/lib/components/picker/range-picker/components/shortcuts/index.js +45 -0
- package/lib/components/picker/range-picker/index.css +158 -0
- package/lib/components/picker/range-picker/index.js +263 -0
- package/lib/components/picker/utils.js +168 -11
- package/lib/components/point-demo/input/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +1 -1
- package/lib/components/praise-record/index.js +1 -1
- package/lib/components/promise-confirm/index.css +0 -0
- package/lib/components/promise-confirm/index.js +117 -0
- package/lib/components/promise-confirm/interface.js +5 -0
- package/lib/components/range-picker-pop/index.js +1 -1
- package/lib/components/range-selector-pop/RangeList.js +1 -1
- package/lib/components/range-selector-pop/RangeSelectorPop.js +4 -4
- package/lib/components/rate/index.css +111 -0
- package/lib/components/rate/index.js +52 -0
- package/lib/components/regulation-setting-item/index.css +33 -0
- package/lib/components/regulation-setting-item/index.js +37 -0
- package/lib/components/rich-editor/models/schema.js +7 -7
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +9 -9
- package/lib/components/rich-editor/plugins/block/heading/index.js +9 -9
- package/lib/components/rich-editor/plugins/block/lists/index.js +15 -15
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +6 -6
- package/lib/components/rich-editor/plugins/core/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +6 -6
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/color/index.js +12 -12
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +9 -9
- package/lib/components/rich-editor/plugins/inline/em/index.js +6 -6
- package/lib/components/rich-editor/plugins/inline/link/index.js +9 -9
- package/lib/components/rich-editor/plugins/inline/strong/index.js +9 -9
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +9 -9
- package/lib/components/rich-editor/react/reactNodeView.js +1 -1
- package/lib/components/rich-editor/react/uiProvider.js +4 -4
- package/lib/components/rich-editor/schemas/list.js +0 -1
- package/lib/components/rich-editor/ui/Popup/index.js +4 -4
- package/lib/components/rich-editor/ui/editor/index.css +32 -32
- package/lib/components/rich-editor/ui/editor/index.js +1 -1
- package/lib/components/rich-editor-at/components/index.css +67 -0
- package/lib/components/rich-editor-at/components/index.js +189 -0
- package/lib/components/rich-editor-at/index.css +40 -0
- package/lib/components/rich-editor-at/index.js +113 -0
- package/lib/components/rich-editor-upload/index.css +11 -0
- package/lib/components/rich-editor-upload/index.js +87 -0
- package/lib/components/scroll-container/index.js +1 -1
- package/lib/components/search-input/index.js +5 -0
- package/lib/components/select/Option.js +4 -4
- package/lib/components/select/index.js +1 -1
- package/lib/components/select-tags/index.js +10 -2
- package/lib/components/task-relation-modal/helper.js +6 -6
- package/lib/components/task-relation-modal/request-api.js +9 -9
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +4 -4
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +5 -5
- package/lib/components/textarea/index.css +61 -66
- package/lib/components/textarea/index.js +23 -18
- package/lib/components/tita-chart/errorBoundary/index.js +4 -4
- package/lib/components/toast/index.js +1 -1
- package/lib/components/tooltip/tooltip.js +2 -2
- package/lib/components/upload/components/uploadedPreview.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upvote/index.js +10 -4
- package/lib/components/upvote/selector.js +2 -3
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +3 -3
- package/lib/components/user-selector/request-apis.js +13 -13
- package/lib/components/viewer/ImageListRender.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components/write-summary-modal/constants.js +21 -0
- package/lib/components/write-summary-modal/index.css +80 -0
- package/lib/components/write-summary-modal/index.js +167 -0
- package/lib/components/write-summary-modal/interface.js +19 -0
- package/lib/components/write-summary-modal/request-api.js +18 -0
- package/lib/components/write-summary-modal/utils.js +32 -0
- package/lib/components-v1/animate/AnimateChild.js +4 -4
- package/lib/components-v1/animate/animate.js +1 -1
- package/lib/components-v1/avatar/index.js +4 -4
- package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
- package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
- package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
- package/lib/components-v1/confirm/index.js +1 -1
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +4 -4
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/placement/placement.js +1 -1
- package/lib/components-v1/placement/placementInner.js +1 -1
- package/lib/components-v1/pop/Pop.js +1 -1
- package/lib/components-v1/pop/PopInner.js +1 -1
- package/lib/components-v1/portals/Portals.js +1 -1
- package/lib/components-v1/progress/CircleProgress.js +4 -4
- package/lib/components-v1/progress/LineProgress.js +1 -1
- package/lib/components-v1/progress/index.js +1 -1
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/components-v1/radio/radioGroup.js +1 -1
- package/lib/components-v1/radio/style/index.css +1 -1
- package/lib/components-v1/search/index.js +1 -1
- package/lib/components-v1/select/Option.js +4 -4
- package/lib/components-v1/select/index.js +1 -1
- package/lib/components-v1/tabs/index.js +1 -1
- package/lib/components-v1/textarea/index.js +1 -1
- package/lib/components-v1/transition/index.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +4 -4
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/index.js +4 -4
- package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
- package/lib/components-v1/userSelector/components/UserItem.js +4 -4
- package/lib/components-v1/userSelector/index.js +1 -1
- package/lib/index.js +64 -0
- package/lib/pages/aha2021/index.js +3 -3
- package/lib/pages/aha2021/new-menu-switcher/index.js +4 -4
- package/lib/pages/aha2021/request-api.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +1 -1
- package/lib/utils/auth.js +6 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +14 -2
- package/lib/utils/helpers.js +112 -12
- package/lib/utils/open-data.js +41 -42
- package/lib/utils/planDataJson.js +1 -0
- package/package.json +3 -2
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
|
@@ -37,7 +37,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
37
37
|
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
|
|
40
|
-
var precls =
|
|
40
|
+
var precls = 'new-menu-switcher'; // eslint-disable-next-line react/prop-types
|
|
41
41
|
|
|
42
42
|
var NewMenuSwitcher = function NewMenuSwitcher(_ref) {
|
|
43
43
|
var isTrial = _ref.isTrial;
|
|
@@ -59,7 +59,7 @@ var NewMenuSwitcher = function NewMenuSwitcher(_ref) {
|
|
|
59
59
|
|
|
60
60
|
var changeMenuVersion = function changeMenuVersion() {
|
|
61
61
|
(0, _requestApi.setMenuVersion)(window.BSGlobal.isUseNewMenu ? 0 : 1).then(function () {
|
|
62
|
-
window.location.href =
|
|
62
|
+
window.location.href = '/';
|
|
63
63
|
});
|
|
64
64
|
}; // 当租户开启新菜单时,不允许员工切换菜单版本
|
|
65
65
|
|
|
@@ -76,9 +76,9 @@ var NewMenuSwitcher = function NewMenuSwitcher(_ref) {
|
|
|
76
76
|
}
|
|
77
77
|
}, isNewMenu && /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
78
|
className: (0, _classnames["default"])("".concat(precls, "__old-version"), _defineProperty({}, "".concat(precls, "__old-version--full"), showFullTip))
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, showFullTip ? (0, _getLocale.getLocale)(
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, showFullTip ? (0, _getLocale.getLocale)('Rep_NewS_Backold') : (0, _getLocale.getLocale)('Rep_NewS_OldMenu'))), !isNewMenu && /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
80
|
className: (0, _classnames["default"])("".concat(precls, "__new-version"), _defineProperty({}, "".concat(precls, "__new-version--full"), showFullTip))
|
|
81
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, showFullTip ? (0, _getLocale.getLocale)(
|
|
81
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, showFullTip ? (0, _getLocale.getLocale)('Rep_NewS_TryNewMenu') : (0, _getLocale.getLocale)('Rep_NewS_NewMenu'))));
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
var _default = NewMenuSwitcher;
|
|
@@ -9,7 +9,7 @@ var _request = require("../../utils/request");
|
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line import/prefer-default-export
|
|
11
11
|
var setMenuVersion = function setMenuVersion(version) {
|
|
12
|
-
return (0, _request.rpost)(
|
|
12
|
+
return (0, _request.rpost)('v3')("menu/set/menuVersion?version=".concat(version));
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
exports.setMenuVersion = setMenuVersion;
|
|
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
23
23
|
|
|
24
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
25
|
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
28
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
23
23
|
|
|
24
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
25
|
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
28
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
package/lib/utils/auth.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.hasSuperior = exports.OAuth = exports.MyRole = exports.KRAuth = exports.
|
|
|
9
9
|
|
|
10
10
|
var _bsGlobal = require("./bs-global");
|
|
11
11
|
|
|
12
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
12
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13
13
|
|
|
14
14
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
15
15
|
|
|
@@ -67,6 +67,11 @@ var BaseAuth = /*#__PURE__*/function () {
|
|
|
67
67
|
value: function isDepartmentLeader() {
|
|
68
68
|
return !this.loginUserInfor.IsBoss && this.loginUserInfor.IsLeader;
|
|
69
69
|
}
|
|
70
|
+
}, {
|
|
71
|
+
key: "isPlanDailyManager",
|
|
72
|
+
value: function isPlanDailyManager() {
|
|
73
|
+
return this.loginUserInfor.IsPlanDailyManager;
|
|
74
|
+
}
|
|
70
75
|
}]);
|
|
71
76
|
|
|
72
77
|
return BaseAuth;
|
package/lib/utils/bs-global.js
CHANGED
|
@@ -25,7 +25,7 @@ var getBSGlobal = function getBSGlobal(key) {
|
|
|
25
25
|
exports.getBSGlobal = getBSGlobal;
|
|
26
26
|
|
|
27
27
|
var getOkrAdvancedSetting = function getOkrAdvancedSetting() {
|
|
28
|
-
return window.BSGlobal.OkrAdvancedSetting;
|
|
28
|
+
return window.BSGlobal && window.BSGlobal.OkrAdvancedSetting;
|
|
29
29
|
}; // version 1 试用版
|
|
30
30
|
|
|
31
31
|
|
package/lib/utils/constant.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getMonth = void 0;
|
|
6
|
+
exports.getWeekly = exports.getWeek = exports.getMonth = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("./getLocale");
|
|
9
9
|
|
|
@@ -11,4 +11,16 @@ var getMonth = function getMonth() {
|
|
|
11
11
|
return [(0, _getLocale.getLocale)("Mod_Jan"), (0, _getLocale.getLocale)("Mod_Feb"), (0, _getLocale.getLocale)("Mod_Mar"), (0, _getLocale.getLocale)("Mod_Apr"), (0, _getLocale.getLocale)("Mod_May"), (0, _getLocale.getLocale)("Mod_Jun"), (0, _getLocale.getLocale)("Mod_Jul"), (0, _getLocale.getLocale)("Mod_Aug"), (0, _getLocale.getLocale)("Mod_Sept"), (0, _getLocale.getLocale)("Mod_Oct"), (0, _getLocale.getLocale)("Mod_Nov"), (0, _getLocale.getLocale)("Mod_Dec")];
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
exports.getMonth = getMonth;
|
|
14
|
+
exports.getMonth = getMonth;
|
|
15
|
+
|
|
16
|
+
var getWeek = function getWeek() {
|
|
17
|
+
return [(0, _getLocale.getLocale)("Mod_Sun"), (0, _getLocale.getLocale)("Mod_Mon"), (0, _getLocale.getLocale)("Mod_Tues"), (0, _getLocale.getLocale)("Mod_Wed"), (0, _getLocale.getLocale)("Mod_Thur"), (0, _getLocale.getLocale)("Mod_Fri"), (0, _getLocale.getLocale)("Mod_Sat")];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.getWeek = getWeek;
|
|
21
|
+
|
|
22
|
+
var getWeekly = function getWeekly() {
|
|
23
|
+
return [(0, _getLocale.getLocale)('Tasks_Tab_MyS_Week1s'), (0, _getLocale.getLocale)('Tasks_Tab_MyS_Week2s'), (0, _getLocale.getLocale)('Tasks_Tab_MyS_Week3s'), (0, _getLocale.getLocale)('Tasks_Tab_MyS_Week4s'), (0, _getLocale.getLocale)('Tasks_Tab_MyS_Week5s')];
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.getWeekly = getWeekly;
|
package/lib/utils/helpers.js
CHANGED
|
@@ -5,15 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.cssSupport = cssSupport;
|
|
7
7
|
exports.escapeHtml = escapeHtml;
|
|
8
|
-
exports.
|
|
8
|
+
exports.getApiUrl = getApiUrl;
|
|
9
|
+
exports.getPreAndNextMonthDate = exports.getPointYearMonthWeeksRange = exports.getLoginUserInfo = void 0;
|
|
9
10
|
exports.getTenantInfo = getTenantInfo;
|
|
10
11
|
exports.getUploadMaxSize = getUploadMaxSize;
|
|
11
|
-
exports.isTencentHr = exports.isLocal = exports.isFeishu = exports.isDingDing = void 0;
|
|
12
|
+
exports.toTree = exports.isTencentHr = exports.isLocal = exports.isFeishu = exports.isDingDing = void 0;
|
|
12
13
|
|
|
13
14
|
var _bsGlobal = require("./bs-global");
|
|
14
15
|
|
|
16
|
+
var _cloneDeep = _interopRequireDefault(require("clone-deep"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
15
20
|
function cssSupport(attr, value) {
|
|
16
|
-
var element = document.createElement(
|
|
21
|
+
var element = document.createElement('div');
|
|
17
22
|
|
|
18
23
|
if (attr in element.style) {
|
|
19
24
|
element.style[attr] = value;
|
|
@@ -24,7 +29,7 @@ function cssSupport(attr, value) {
|
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
function getUploadMaxSize() {
|
|
27
|
-
var info = (0, _bsGlobal.getBSGlobal)(
|
|
32
|
+
var info = (0, _bsGlobal.getBSGlobal)('tenantInfo');
|
|
28
33
|
if (info.Id === 352728) return 150;
|
|
29
34
|
var isDingDing = info.Source === 861;
|
|
30
35
|
var isDingZhi = window.dingZhiSize && window.dingZhiSize.indexOf(info.Id) !== -1;
|
|
@@ -33,8 +38,15 @@ function getUploadMaxSize() {
|
|
|
33
38
|
return 50;
|
|
34
39
|
}
|
|
35
40
|
|
|
41
|
+
function getApiUrl(url) {
|
|
42
|
+
var uid = (0, _bsGlobal.getUserInfo)().Id;
|
|
43
|
+
var tid = getTenantInfo().Id;
|
|
44
|
+
var apiServer = (0, _bsGlobal.getBSGlobal)('apiPath');
|
|
45
|
+
return apiServer + '/api/v1/' + tid + '/' + uid + '/' + url;
|
|
46
|
+
}
|
|
47
|
+
|
|
36
48
|
function getTenantInfo() {
|
|
37
|
-
return (0, _bsGlobal.getBSGlobal)(
|
|
49
|
+
return (0, _bsGlobal.getBSGlobal)('tenantInfo');
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
var isDingDing = function isDingDing() {
|
|
@@ -63,11 +75,11 @@ exports.isTencentHr = isTencentHr;
|
|
|
63
75
|
|
|
64
76
|
function escapeHtml(str) {
|
|
65
77
|
var htmlEscapes = {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
'&': '&',
|
|
79
|
+
'<': '<',
|
|
80
|
+
'>': '>',
|
|
81
|
+
'"': '"',
|
|
82
|
+
''': "'"
|
|
71
83
|
};
|
|
72
84
|
return str.replace(/(&|<|>|"|')/g, function (s) {
|
|
73
85
|
return htmlEscapes[s];
|
|
@@ -75,7 +87,95 @@ function escapeHtml(str) {
|
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
var getLoginUserInfo = function getLoginUserInfo() {
|
|
78
|
-
return (0, _bsGlobal.getBSGlobal)(
|
|
90
|
+
return (0, _bsGlobal.getBSGlobal)('loginUserInfo');
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
exports.getLoginUserInfo = getLoginUserInfo;
|
|
94
|
+
|
|
95
|
+
var getPreAndNextMonthDate = function getPreAndNextMonthDate() {
|
|
96
|
+
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
|
|
97
|
+
var culPreDate = new Date(date);
|
|
98
|
+
var culNextDate = new Date(date);
|
|
99
|
+
var preDate = [];
|
|
100
|
+
var nextDate = []; // 获取前置天数
|
|
101
|
+
|
|
102
|
+
culPreDate.setDate(1);
|
|
103
|
+
var preRemainDays = culPreDate.getDay() === 0 ? 6 : culPreDate.getDay() - 1;
|
|
104
|
+
culPreDate.setDate(0);
|
|
105
|
+
|
|
106
|
+
while (preRemainDays > 0) {
|
|
107
|
+
// +1是因为上个月有5天到这个月,月末30号 则为 30-4, 30-3, 30-2, 30-1, 30-0五天
|
|
108
|
+
preDate.push(culPreDate.getDate() - preRemainDays + 1);
|
|
109
|
+
preRemainDays--;
|
|
110
|
+
} // 获取后置天数
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
culNextDate.setMonth(culNextDate.getMonth() + 1);
|
|
114
|
+
culNextDate.setDate(0);
|
|
115
|
+
var lastDateDay = Math.abs(culNextDate.getDay() - 7);
|
|
116
|
+
|
|
117
|
+
if (lastDateDay !== 7) {
|
|
118
|
+
while (lastDateDay >= 1) {
|
|
119
|
+
nextDate.unshift(lastDateDay);
|
|
120
|
+
lastDateDay--;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
preDate: preDate,
|
|
126
|
+
nextDate: nextDate
|
|
127
|
+
};
|
|
128
|
+
}; //根据年月,计算这个月周的范围
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
exports.getPreAndNextMonthDate = getPreAndNextMonthDate;
|
|
132
|
+
|
|
133
|
+
var getPointYearMonthWeeksRange = function getPointYearMonthWeeksRange(year, month) {
|
|
134
|
+
var startDate = new Date("".concat(year, "/").concat(month, "/1"));
|
|
135
|
+
var calDays = new Date(startDate.valueOf());
|
|
136
|
+
calDays.setMonth(calDays.getMonth() + 1);
|
|
137
|
+
calDays.setDate(0);
|
|
138
|
+
var days = calDays.getDate();
|
|
139
|
+
var dayNum = 1 * 24 * 60 * 60 * 1000;
|
|
140
|
+
var result = [];
|
|
141
|
+
|
|
142
|
+
for (var i = 0; i < days; i++) {
|
|
143
|
+
var date = new Date(startDate.valueOf() + i * dayNum);
|
|
144
|
+
|
|
145
|
+
if (date.getDay() === 1) {
|
|
146
|
+
var endDate = new Date(date.valueOf() + 6 * dayNum);
|
|
147
|
+
result.push({
|
|
148
|
+
startTime: "".concat(date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : "0" + (date.getMonth() + 1), "/").concat(date.getDate() >= 10 ? date.getDate() : "0" + date.getDate()),
|
|
149
|
+
endTime: "".concat(endDate.getMonth() + 1 >= 10 ? endDate.getMonth() + 1 : "0" + (endDate.getMonth() + 1), "/").concat(endDate.getDate() >= 10 ? endDate.getDate() : "0" + endDate.getDate())
|
|
150
|
+
});
|
|
151
|
+
i += 6;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return result;
|
|
156
|
+
}; // 扁平数据转换为树
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
exports.getPointYearMonthWeeksRange = getPointYearMonthWeeksRange;
|
|
160
|
+
|
|
161
|
+
var toTree = function toTree(data) {
|
|
162
|
+
var cloneData = (0, _cloneDeep["default"])(data);
|
|
163
|
+
var map = {};
|
|
164
|
+
var res = [];
|
|
165
|
+
cloneData.forEach(function (item) {
|
|
166
|
+
return map[item.id] = item;
|
|
167
|
+
});
|
|
168
|
+
cloneData.forEach(function (item) {
|
|
169
|
+
var parent = map[item.parentId];
|
|
170
|
+
|
|
171
|
+
if (parent) {
|
|
172
|
+
if (!parent.children) parent.children = [];
|
|
173
|
+
parent.children.push(item);
|
|
174
|
+
} else {
|
|
175
|
+
res.push(item);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
return res;
|
|
79
179
|
};
|
|
80
180
|
|
|
81
|
-
exports.
|
|
181
|
+
exports.toTree = toTree;
|
package/lib/utils/open-data.js
CHANGED
|
@@ -71,6 +71,7 @@ var getOpenId = function getOpenId(id, type) {
|
|
|
71
71
|
exports.getOpenId = getOpenId;
|
|
72
72
|
|
|
73
73
|
function openData(p) {
|
|
74
|
+
//@ts-ignore
|
|
74
75
|
if (getSource() == WX_SOURCE || getUA().includes(WX_UA_STR)) {
|
|
75
76
|
return function (p) {
|
|
76
77
|
if (p.id === undefined && p.corpId === undefined) {
|
|
@@ -86,7 +87,7 @@ function openData(p) {
|
|
|
86
87
|
Sentry.captureException(new Error("企业微信openData调用失败"), scope);
|
|
87
88
|
});
|
|
88
89
|
return p.name || null;
|
|
89
|
-
}
|
|
90
|
+
} //@ts-ignore
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
var openId = p.corpId || getOpenId(p.id, p.type);
|
|
@@ -105,31 +106,35 @@ function openData(p) {
|
|
|
105
106
|
Sentry.captureException(new Error("企业微信openData调用失败"), scope);
|
|
106
107
|
});
|
|
107
108
|
return p.name || p.id || null;
|
|
108
|
-
}
|
|
109
|
+
} //<span style={{color:'red'}}>OPENID_EMPTY</span>;
|
|
110
|
+
|
|
109
111
|
|
|
110
112
|
var ref = (0, _react.useRef)(null);
|
|
111
113
|
(0, _react.useEffect)(function () {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
//@ts-ignore
|
|
115
|
+
window.WWOpenData && window.WWOpenData.bind(ref.current);
|
|
116
|
+
if (!p.id) return;
|
|
117
|
+
var openId = getOpenId(p.id, p.type);
|
|
116
118
|
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
+
if (!openId) {}
|
|
120
|
+
}, []);
|
|
119
121
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
122
|
style: {
|
|
121
|
-
display:
|
|
122
|
-
position:
|
|
123
|
-
overflow:
|
|
124
|
-
textOverflow:
|
|
123
|
+
display: 'inline',
|
|
124
|
+
position: 'relative',
|
|
125
|
+
overflow: 'hidden',
|
|
126
|
+
textOverflow: 'ellipsis'
|
|
125
127
|
}
|
|
126
|
-
},
|
|
128
|
+
},
|
|
129
|
+
/*#__PURE__*/
|
|
130
|
+
//@ts-ignore
|
|
131
|
+
_react["default"].createElement("ww-open-data", {
|
|
127
132
|
ref: ref,
|
|
128
133
|
type: p.type,
|
|
129
134
|
openid: openId
|
|
130
135
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
136
|
style: {
|
|
132
|
-
position:
|
|
137
|
+
position: 'absolute',
|
|
133
138
|
top: 0,
|
|
134
139
|
left: 0,
|
|
135
140
|
right: 0,
|
|
@@ -138,11 +143,11 @@ function openData(p) {
|
|
|
138
143
|
}
|
|
139
144
|
}));
|
|
140
145
|
};
|
|
146
|
+
} else {
|
|
147
|
+
return function (p) {
|
|
148
|
+
return p.name || p.id || null;
|
|
149
|
+
};
|
|
141
150
|
}
|
|
142
|
-
|
|
143
|
-
return function (p) {
|
|
144
|
-
return p.name || p.id || null;
|
|
145
|
-
};
|
|
146
151
|
}
|
|
147
152
|
|
|
148
153
|
var getOpenData = openData();
|
|
@@ -249,18 +254,14 @@ var parseTag = function parseTag(str) {
|
|
|
249
254
|
exports.parseTag = parseTag;
|
|
250
255
|
|
|
251
256
|
var parseString = function parseString(str) {
|
|
252
|
-
|
|
253
|
-
var source = window.BSGlobal.tenantInfo.Source
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
|
|
257
|
+
//@ts-ignore
|
|
258
|
+
var source = window.BSGlobal.tenantInfo.Source,
|
|
259
|
+
ua = navigator.userAgent.toLowerCase();
|
|
260
|
+
if (source != 860 && ua.indexOf('wxwork') == -1) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
261
|
+
dangerouslySetInnerHTML: {
|
|
262
|
+
__html: str
|
|
263
|
+
}
|
|
264
|
+
});
|
|
264
265
|
var reg = /\[(\w+?)\:(\w+?)\]/g;
|
|
265
266
|
var strReg = /\[\w+?\:\w+?\]/;
|
|
266
267
|
var openDatas = [];
|
|
@@ -275,14 +276,16 @@ var parseString = function parseString(str) {
|
|
|
275
276
|
openDatas.push( /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, v2Paresed));
|
|
276
277
|
} else {
|
|
277
278
|
openDatas.push( /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(OpenDataCompoent, {
|
|
278
|
-
id: matchStr[1]
|
|
279
|
+
id: matchStr[1],
|
|
280
|
+
callFunc: "parseString",
|
|
281
|
+
extra: str
|
|
279
282
|
})));
|
|
280
283
|
}
|
|
281
284
|
|
|
282
285
|
matchStr = reg.exec(str);
|
|
283
286
|
}
|
|
284
287
|
|
|
285
|
-
var commonStrs = str
|
|
288
|
+
var commonStrs = str.split(strReg);
|
|
286
289
|
var renderData = [];
|
|
287
290
|
|
|
288
291
|
for (var i = 0; i < commonStrs.length; i++) {
|
|
@@ -308,15 +311,11 @@ var parseStringV2 = function parseStringV2(str) {
|
|
|
308
311
|
// @ts-ignore
|
|
309
312
|
var source = window.BSGlobal.tenantInfo.Source;
|
|
310
313
|
var ua = navigator.userAgent.toLowerCase();
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
|
|
314
|
+
if (source != 860 && ua.indexOf('micromessenger') == -1) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
315
|
+
dangerouslySetInnerHTML: {
|
|
316
|
+
__html: str
|
|
317
|
+
}
|
|
318
|
+
});
|
|
320
319
|
var reg = /\$(userName|departmentName)\=(.+?)\$/g;
|
|
321
320
|
var strReg = /\$(?:userName|departmentName)\=.+?\$/;
|
|
322
321
|
var openDatas = [];
|
|
@@ -336,7 +335,7 @@ var parseStringV2 = function parseStringV2(str) {
|
|
|
336
335
|
matchStr = reg.exec(str);
|
|
337
336
|
}
|
|
338
337
|
|
|
339
|
-
var commonStrs =
|
|
338
|
+
var commonStrs = str.split(strReg);
|
|
340
339
|
var renderData = [];
|
|
341
340
|
|
|
342
341
|
for (var i = 0; i < commonStrs.length; i++) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.49",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@titaui/rc-trigger": "5.2.5",
|
|
79
79
|
"@titaui/react-flow-renderer": "9.5.4",
|
|
80
80
|
"@titaui/request": "^1.0.1",
|
|
81
|
-
"@titaui/rich-editor": "
|
|
81
|
+
"@titaui/rich-editor": "0.1.53",
|
|
82
82
|
"@titaui/toast": "1.0.0",
|
|
83
83
|
"@types/color": "3.0.3",
|
|
84
84
|
"@types/prosemirror-commands": "1.0.4",
|
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
"rc-overflow": "1.2.2",
|
|
126
126
|
"rc-pagination": "3.1.6",
|
|
127
127
|
"rc-queue-anim": "1.4.1",
|
|
128
|
+
"rc-rate": "^2.9.2",
|
|
128
129
|
"rc-select": "12.1.13",
|
|
129
130
|
"rc-switch": "3.2.2",
|
|
130
131
|
"rc-table": "7.13.2",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>延时提交</title>
|
|
4
|
-
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="总结" transform="translate(-508.000000, -274.000000)" fill-rule="nonzero">
|
|
6
|
-
<g id="新建目标-负责目标" transform="translate(202.000000, 186.000000)">
|
|
7
|
-
<g id="编组-9" transform="translate(68.000000, 78.000000)">
|
|
8
|
-
<g id="延时提交" transform="translate(238.000000, 10.000000)">
|
|
9
|
-
<rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="16" height="16"></rect>
|
|
10
|
-
<path d="M6.92,15.784 C4.608,12.92 1.888,10.752 0,10.072 L4.48,7.384 L6.64,11.584 C6.64,11.584 10.16,3.056 15.72,0.216 C15.6,2.248 15.048,4.008 16,6.176 C13.56,6.728 8.552,12.816 6.92,15.784 Z" id="路径" fill="#624DFF"></path>
|
|
11
|
-
</g>
|
|
12
|
-
</g>
|
|
13
|
-
</g>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>按时提交</title>
|
|
4
|
-
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="总结" transform="translate(-473.000000, -718.000000)" fill-rule="nonzero">
|
|
6
|
-
<g id="复盘" transform="translate(202.000000, 630.000000)">
|
|
7
|
-
<g id="编组-9" transform="translate(68.000000, 78.000000)">
|
|
8
|
-
<g id="编组-10" transform="translate(203.000000, 7.000000)">
|
|
9
|
-
<g id="按时提交" transform="translate(0.000000, 3.000000)">
|
|
10
|
-
<rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="16" height="16"></rect>
|
|
11
|
-
<path d="M6.92,15.784 C4.608,12.92 1.888,10.752 0,10.072 L4.48,7.384 L6.64,11.584 C6.64,11.584 10.16,3.056 15.72,0.216 C15.6,2.248 15.048,4.008 16,6.176 C13.56,6.728 8.552,12.816 6.92,15.784 Z" id="路径" fill="#00D685"></path>
|
|
12
|
-
</g>
|
|
13
|
-
</g>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</g>
|
|
17
|
-
</g>
|
|
18
|
-
</svg>
|