@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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _utils = require("./utils");
|
|
13
|
+
|
|
14
|
+
var _utils2 = require("../../../utils");
|
|
15
|
+
|
|
16
|
+
var _constant = require("../../../../../utils/constant");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
var preCls = 'titaui__picker';
|
|
25
|
+
|
|
26
|
+
var WeekPanelBody = function WeekPanelBody(props) {
|
|
27
|
+
var startDate = props.startDate,
|
|
28
|
+
onSelect = props.onSelect,
|
|
29
|
+
selectWeekDate = props.selectWeekDate;
|
|
30
|
+
|
|
31
|
+
var getCells = function getCells(date) {
|
|
32
|
+
var currentYear = (0, _utils.getWeek)(new Date(new Date()))[2];
|
|
33
|
+
var currentMonth = (0, _utils.getWeek)(new Date(new Date()))[1];
|
|
34
|
+
var currentWeek = (0, _utils.getWeek)(new Date(new Date()))[0];
|
|
35
|
+
var year = (0, _utils.getWeek)(new Date(new Date(date)))[2]; //获取年
|
|
36
|
+
|
|
37
|
+
var month = (0, _utils.getWeek)(new Date(new Date(date)))[1];
|
|
38
|
+
var selectYear;
|
|
39
|
+
var selectMonth;
|
|
40
|
+
var selectWeek;
|
|
41
|
+
|
|
42
|
+
if (selectWeekDate && typeof selectWeekDate[0] === 'string') {
|
|
43
|
+
selectYear = (0, _utils.getWeek)(new Date(new Date(selectWeekDate[0])))[2];
|
|
44
|
+
selectMonth = (0, _utils.getWeek)(new Date(new Date(selectWeekDate[0])))[1];
|
|
45
|
+
selectWeek = (0, _utils.getWeek)(new Date(new Date(selectWeekDate[0])))[0];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var range = (0, _utils.getPointYearMonthWeeksRange)(year, month);
|
|
49
|
+
|
|
50
|
+
if (range) {
|
|
51
|
+
return range.map(function (item, i) {
|
|
52
|
+
return /*#__PURE__*/_react["default"].createElement("tr", {
|
|
53
|
+
key: i,
|
|
54
|
+
className: (0, _classnames["default"])("".concat(preCls, "__week"), _defineProperty({}, "".concat(preCls, "__week--current"), currentWeek === i + 1 && (0, _utils.getWeek)(new Date("".concat(year, "/").concat(item.startTime)))[2] === currentYear && (0, _utils.getWeek)(new Date("".concat(year, "/").concat(item.startTime)))[1] === currentMonth), _defineProperty({}, "".concat(preCls, "__week--select"), selectWeek === i + 1 && selectYear === (0, _utils.getWeek)(new Date("".concat(year, "/").concat(item.startTime)))[2] && selectMonth === (0, _utils.getWeek)(new Date("".concat(year, "/").concat(item.startTime)))[1]))
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
+
onClick: function onClick() {
|
|
57
|
+
if (onSelect) {
|
|
58
|
+
onSelect(["".concat(year, "/").concat(item.startTime), "".concat(year, "/").concat(item.endTime)], 'week', year);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
className: "".concat(preCls, "__week-box")
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
63
|
+
className: "".concat(preCls, "__week-index")
|
|
64
|
+
}, (0, _constant.getWeekly)()[i]), "".concat(item.startTime, "~").concat(item.endTime)));
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
+
className: (0, _classnames["default"])(_utils2.PickerBodyClass)
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement("table", {
|
|
74
|
+
className: (0, _classnames["default"])("".concat(_utils2.PickerClass, "-content"))
|
|
75
|
+
}, /*#__PURE__*/_react["default"].createElement("tbody", null, getCells(startDate))));
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
var _default = WeekPanelBody;
|
|
79
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
var _utils = require("../../../utils");
|
|
15
|
+
|
|
16
|
+
var _utils2 = require("./utils");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function DatePanelHead(props) {
|
|
23
|
+
var startDate = props.startDate,
|
|
24
|
+
onPrev = props.onPrev,
|
|
25
|
+
onNext = props.onNext,
|
|
26
|
+
onPanelChange = props.onPanelChange;
|
|
27
|
+
var yearText = (0, _utils2.getWeek)(new Date(startDate))[2];
|
|
28
|
+
var monthText = (0, _utils2.getWeek)(new Date(startDate))[1];
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
|
+
className: (0, _classnames["default"])(_utils.PickerHeadClass)
|
|
31
|
+
}, !_getLocale.isEn && /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "__view"))
|
|
33
|
+
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
34
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__year")),
|
|
35
|
+
onClick: function onClick() {
|
|
36
|
+
return onPanelChange && onPanelChange(startDate, 'year');
|
|
37
|
+
},
|
|
38
|
+
type: "button"
|
|
39
|
+
}, yearText), /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerClass, "-unit"))
|
|
41
|
+
}, "\xA0\u5E74"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
42
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__month")),
|
|
43
|
+
onClick: function onClick() {
|
|
44
|
+
return onPanelChange && onPanelChange(startDate, 'month');
|
|
45
|
+
},
|
|
46
|
+
type: "button"
|
|
47
|
+
}, monthText), /*#__PURE__*/_react["default"].createElement("span", {
|
|
48
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerClass, "-unit"))
|
|
49
|
+
}, "\u6708")), _getLocale.isEn && /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "__view"))
|
|
51
|
+
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
52
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__month")),
|
|
53
|
+
onClick: function onClick() {
|
|
54
|
+
return onPanelChange && onPanelChange(startDate, 'month');
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
marginRight: 4
|
|
58
|
+
},
|
|
59
|
+
type: "button"
|
|
60
|
+
}, _utils.MONTHDATAMAPEN[Number(monthText) - 1]), /*#__PURE__*/_react["default"].createElement("button", {
|
|
61
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__year")),
|
|
62
|
+
onClick: function onClick() {
|
|
63
|
+
return onPanelChange && onPanelChange(startDate, 'year');
|
|
64
|
+
},
|
|
65
|
+
type: "button"
|
|
66
|
+
}, yearText)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "__operation"))
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
69
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__prev"), 'tu-icon-arrow-up1'),
|
|
70
|
+
onClick: onPrev,
|
|
71
|
+
type: "button"
|
|
72
|
+
}), /*#__PURE__*/_react["default"].createElement("button", {
|
|
73
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__next"), 'tu-icon-arrow-down1'),
|
|
74
|
+
onClick: onNext,
|
|
75
|
+
type: "button"
|
|
76
|
+
})));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
var _default = DatePanelHead;
|
|
80
|
+
exports["default"] = _default;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
11
|
|
|
10
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
13
|
|
|
@@ -21,6 +23,10 @@ require("./index.css");
|
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
24
30
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
31
|
|
|
26
32
|
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,10 +35,28 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
29
35
|
|
|
30
36
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
37
|
|
|
38
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
39
|
+
|
|
40
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
41
|
+
|
|
42
|
+
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); }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
47
|
+
|
|
48
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
|
+
|
|
32
50
|
var YearPanel = function YearPanel(props) {
|
|
33
51
|
var onViewDateChange = props.onViewDateChange,
|
|
34
52
|
viewDate = props.viewDate;
|
|
35
|
-
|
|
53
|
+
|
|
54
|
+
var _useState = (0, _react.useState)(),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
newViewDate = _useState2[0],
|
|
57
|
+
setNewViewDate = _useState2[1];
|
|
58
|
+
|
|
59
|
+
var yearNumber = (0, _moment["default"])(newViewDate).year();
|
|
36
60
|
|
|
37
61
|
var startYear = Math.floor(yearNumber / _utils.YEAR_DECADE_COUNT) * _utils.YEAR_DECADE_COUNT;
|
|
38
62
|
|
|
@@ -40,7 +64,7 @@ var YearPanel = function YearPanel(props) {
|
|
|
40
64
|
|
|
41
65
|
var onDecadeYearChange = function onDecadeYearChange(diff) {
|
|
42
66
|
if (onViewDateChange) {
|
|
43
|
-
onViewDateChange((0, _moment["default"])(
|
|
67
|
+
onViewDateChange((0, _moment["default"])(newViewDate).add(diff, 'y'));
|
|
44
68
|
}
|
|
45
69
|
};
|
|
46
70
|
|
|
@@ -49,6 +73,13 @@ var YearPanel = function YearPanel(props) {
|
|
|
49
73
|
endYear: endYear
|
|
50
74
|
}));
|
|
51
75
|
|
|
76
|
+
(0, _react.useEffect)(function () {
|
|
77
|
+
if (typeof viewDate === 'string') {
|
|
78
|
+
setNewViewDate(viewDate.split('~')[0]);
|
|
79
|
+
} else {
|
|
80
|
+
setNewViewDate(viewDate);
|
|
81
|
+
}
|
|
82
|
+
}, []);
|
|
52
83
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
84
|
className: (0, _classnames["default"])("".concat(_utils.PickerPanelClass, "__year"))
|
|
54
85
|
}, /*#__PURE__*/_react["default"].createElement(_yearHead["default"], _extends({}, extendProps, {
|
|
@@ -36,8 +36,15 @@ var YearPanelBody = function YearPanelBody(props) {
|
|
|
36
36
|
endYear = props.endYear;
|
|
37
37
|
|
|
38
38
|
var _useContext = (0, _react.useContext)(_context["default"]),
|
|
39
|
+
format = _useContext.format,
|
|
39
40
|
value = _useContext.value,
|
|
40
|
-
|
|
41
|
+
settingType = _useContext.settingType;
|
|
42
|
+
|
|
43
|
+
var date = (0, _utils.getPickerDateBySettingType)({
|
|
44
|
+
format: format,
|
|
45
|
+
settingType: settingType,
|
|
46
|
+
values: value
|
|
47
|
+
});
|
|
41
48
|
|
|
42
49
|
var getCells = function getCells(baseYear) {
|
|
43
50
|
var cols = [];
|
|
@@ -47,14 +54,14 @@ var YearPanelBody = function YearPanelBody(props) {
|
|
|
47
54
|
|
|
48
55
|
var year = baseYear + col;
|
|
49
56
|
cols.push( /*#__PURE__*/_react["default"].createElement("td", {
|
|
50
|
-
className: (0, _classnames["default"])(_utils.PickerCellClass, (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--this-year"), year === (0, _moment["default"])().year()), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--in-view"), year >= startYear && year <= endYear), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--selected"), year === (0, _moment["default"])(
|
|
57
|
+
className: (0, _classnames["default"])(_utils.PickerCellClass, (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--this-year"), year === (0, _moment["default"])().year()), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--in-view"), year >= startYear && year <= endYear), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--selected"), year === (0, _moment["default"])(date).year()), _classNames)),
|
|
51
58
|
key: year
|
|
52
59
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
60
|
className: (0, _classnames["default"])("".concat(_utils.PickerCellClass, "__inner")),
|
|
54
61
|
title: year,
|
|
55
62
|
onClick: function onClick() {
|
|
56
63
|
if (onSelect) {
|
|
57
|
-
onSelect((0, _moment["default"])(viewDate).year(year),
|
|
64
|
+
onSelect((0, _moment["default"])(viewDate).year(year), 'year');
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
}, year)));
|
|
@@ -12,10 +12,14 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.tita-ui__picker-trigger:hover {
|
|
15
|
+
.tita-ui__picker-trigger:hover, .tita-ui__picker-trigger--focused {
|
|
16
16
|
border-color: #2879ff;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.tita-ui__picker-trigger--focused .tita-ui__picker-trigger__operation .tu-icon-caret-down::before {
|
|
20
|
+
transform: scale(0.5) rotate(-180deg);
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
.tita-ui__picker-trigger__input {
|
|
20
24
|
flex: 1;
|
|
21
25
|
margin-right: 12px;
|
|
@@ -41,6 +45,7 @@
|
|
|
41
45
|
|
|
42
46
|
.tita-ui__picker-trigger__operation .tu-icon-caret-down::before {
|
|
43
47
|
transform: scale(0.5);
|
|
48
|
+
transition: all 0.3s ease;
|
|
44
49
|
display: inline-block;
|
|
45
50
|
}
|
|
46
51
|
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
15
|
+
|
|
14
16
|
var _utils = require("../../utils");
|
|
15
17
|
|
|
16
18
|
var _context = _interopRequireDefault(require("../../context"));
|
|
@@ -26,7 +28,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
26
28
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
29
|
|
|
28
30
|
var PickerTrigger = function PickerTrigger(props) {
|
|
31
|
+
var _classNames;
|
|
32
|
+
|
|
29
33
|
var children = props.children,
|
|
34
|
+
focused = props.focused,
|
|
30
35
|
viewDate = props.viewDate,
|
|
31
36
|
_props$disabled = props.disabled,
|
|
32
37
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
@@ -36,23 +41,23 @@ var PickerTrigger = function PickerTrigger(props) {
|
|
|
36
41
|
_onClick = props.onClick;
|
|
37
42
|
|
|
38
43
|
var _useContext = (0, _react.useContext)(_context["default"]),
|
|
39
|
-
|
|
44
|
+
picker = _useContext.picker,
|
|
40
45
|
format = _useContext.format,
|
|
41
46
|
value = _useContext.value;
|
|
42
47
|
|
|
43
48
|
var currFormat = format;
|
|
44
49
|
|
|
45
|
-
switch (
|
|
46
|
-
case
|
|
47
|
-
currFormat =
|
|
50
|
+
switch (picker) {
|
|
51
|
+
case 'date':
|
|
52
|
+
currFormat = 'YYYY/MM/DD';
|
|
48
53
|
break;
|
|
49
54
|
|
|
50
|
-
case
|
|
51
|
-
currFormat =
|
|
55
|
+
case 'month':
|
|
56
|
+
currFormat = 'YYYY/MM';
|
|
52
57
|
break;
|
|
53
58
|
|
|
54
|
-
case
|
|
55
|
-
currFormat =
|
|
59
|
+
case 'year':
|
|
60
|
+
currFormat = 'YYYY';
|
|
56
61
|
break;
|
|
57
62
|
|
|
58
63
|
default:
|
|
@@ -68,13 +73,13 @@ var PickerTrigger = function PickerTrigger(props) {
|
|
|
68
73
|
return !disabled && _onClick();
|
|
69
74
|
}
|
|
70
75
|
}, children) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
|
-
className: (0, _classnames["default"])(_utils.PickerTriggerClass,
|
|
76
|
+
className: (0, _classnames["default"])(_utils.PickerTriggerClass, (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerTriggerClass, "--disabled"), disabled), _defineProperty(_classNames, "".concat(_utils.PickerTriggerClass, "--focused"), focused), _classNames)),
|
|
72
77
|
onClick: function onClick() {
|
|
73
78
|
return !disabled && _onClick();
|
|
74
79
|
}
|
|
75
80
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
81
|
className: (0, _classnames["default"])("".concat(_utils.PickerTriggerClass, "__input"), _defineProperty({}, "".concat(_utils.PickerTriggerClass, "__input--placeholder"), !value && placeholder))
|
|
77
|
-
}, value ? viewDate.format(currFormat) : placeholder), /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
+
}, value ? (0, _moment["default"])(viewDate).format(currFormat) : placeholder), /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
83
|
className: (0, _classnames["default"])("".concat(_utils.PickerTriggerClass, "__operation"))
|
|
79
84
|
}, !disabled && /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
85
|
className: "tu-icon-caret-down"
|
|
@@ -88,7 +93,7 @@ PickerTrigger.defaultProps = {
|
|
|
88
93
|
children: null,
|
|
89
94
|
disabled: false,
|
|
90
95
|
allowClear: false,
|
|
91
|
-
placeholder:
|
|
96
|
+
placeholder: '请选择'
|
|
92
97
|
};
|
|
93
98
|
var _default = PickerTrigger;
|
|
94
99
|
exports["default"] = _default;
|
|
@@ -3,13 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = void 0;
|
|
6
|
+
exports["default"] = exports.RangePickerContext = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
|
-
var PickerContext = /*#__PURE__*/_react["default"].createContext({
|
|
14
|
+
var PickerContext = /*#__PURE__*/_react["default"].createContext({
|
|
15
|
+
format: 'YYYY/MM/DD',
|
|
16
|
+
picker: 'date',
|
|
17
|
+
settingType: 'startDate',
|
|
18
|
+
value: [(0, _moment["default"])()]
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
var RangePickerContext = /*#__PURE__*/_react["default"].createContext({
|
|
22
|
+
format: 'YYYY/MM/DD',
|
|
23
|
+
picker: 'date',
|
|
24
|
+
settingType: 'startDate',
|
|
25
|
+
values: [(0, _moment["default"])(), (0, _moment["default"])()]
|
|
26
|
+
});
|
|
13
27
|
|
|
28
|
+
exports.RangePickerContext = RangePickerContext;
|
|
14
29
|
var _default = PickerContext;
|
|
15
30
|
exports["default"] = _default;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
color: #141c28;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.tita-ui__picker-cell--
|
|
30
|
+
.tita-ui__picker-cell--today .tita-ui__picker-cell__inner, .tita-ui__picker-cell:hover .tita-ui__picker-cell__inner {
|
|
31
31
|
background-color: #f0f4fa;
|
|
32
32
|
color: #2879ff;
|
|
33
33
|
}
|
|
@@ -37,6 +37,34 @@
|
|
|
37
37
|
color: #ffffff;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
.tita-ui__picker-cell--selected:hover .tita-ui__picker-cell__inner {
|
|
41
|
+
background-color: #5c8eff;
|
|
42
|
+
color: #ffffff;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tita-ui__picker-cell--in-ranges {
|
|
46
|
+
position: relative;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tita-ui__picker-cell--in-ranges::after {
|
|
50
|
+
content: '';
|
|
51
|
+
background-color: rgba(40, 121, 255, 0.1);
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 4px;
|
|
55
|
+
right: 0;
|
|
56
|
+
bottom: 4px;
|
|
57
|
+
left: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tita-ui__picker-cell--in-ranges--start.tita-ui__picker-cell--selected::after {
|
|
61
|
+
left: 10px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tita-ui__picker-cell--in-ranges--end.tita-ui__picker-cell--selected::after {
|
|
65
|
+
right: 10px;
|
|
66
|
+
}
|
|
67
|
+
|
|
40
68
|
.tita-ui__picker-cell__inner {
|
|
41
69
|
width: 100%;
|
|
42
70
|
height: 100%;
|
|
@@ -7,7 +7,10 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _picker = _interopRequireDefault(require("./picker"));
|
|
9
9
|
|
|
10
|
+
var _rangePicker = _interopRequireDefault(require("./range-picker"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
14
|
+
_picker["default"]['Range'] = _rangePicker["default"];
|
|
12
15
|
var _default = _picker["default"];
|
|
13
16
|
exports["default"] = _default;
|