@titaui/pc 1.12.30 → 1.12.31
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/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/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 +206 -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 +175 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +156 -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 +422 -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 +264 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +179 -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 +209 -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 +234 -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/form/form-fields/date/index.js +8 -7
- 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/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 +243 -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/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/components/header/o-avatar.js +6 -6
- package/lib/components/okr-flow/export-modal/index.css +3 -3
- package/lib/components/okr-flow/export-modal/index.js +48 -95
- 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 +146 -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/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/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/schemas/list.js +0 -1
- 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/search-input/index.js +5 -0
- package/lib/components/select-tags/index.js +7 -1
- 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 +2 -2
- package/lib/components/textarea/index.js +8 -6
- package/lib/components/tooltip/tooltip.js +2 -2
- 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/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/radio/style/index.css +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/utils/auth.js +5 -0
- 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/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,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _popup = _interopRequireDefault(require("../popup"));
|
|
15
|
+
|
|
16
|
+
var _constant = require("./constant");
|
|
17
|
+
|
|
18
|
+
var _getLocale = require("../../utils/getLocale");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
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; }
|
|
29
|
+
|
|
30
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
+
|
|
32
|
+
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."); }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
|
+
|
|
42
|
+
var prefix = 'tita-ui-new-confidence';
|
|
43
|
+
|
|
44
|
+
var NewConfidence = function NewConfidence(_ref) {
|
|
45
|
+
var value = _ref.value,
|
|
46
|
+
_ref$editable = _ref.editable,
|
|
47
|
+
editable = _ref$editable === void 0 ? true : _ref$editable,
|
|
48
|
+
onChange = _ref.onChange,
|
|
49
|
+
_ref$getPopupContaine = _ref.getPopupContainer,
|
|
50
|
+
getPopupContainer = _ref$getPopupContaine === void 0 ? function () {
|
|
51
|
+
return document.body;
|
|
52
|
+
} : _ref$getPopupContaine;
|
|
53
|
+
|
|
54
|
+
var _useState = (0, _react.useState)(value),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
confidence = _useState2[0],
|
|
57
|
+
setConfidence = _useState2[1];
|
|
58
|
+
|
|
59
|
+
var popupRef = (0, _react.useRef)({
|
|
60
|
+
open: function open() {},
|
|
61
|
+
close: function close() {}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
var handleChangeConfidence = function handleChangeConfidence(point) {
|
|
65
|
+
setConfidence(point);
|
|
66
|
+
popupRef.current.close();
|
|
67
|
+
|
|
68
|
+
if (onChange) {
|
|
69
|
+
onChange(point);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
(0, _react.useEffect)(function () {
|
|
74
|
+
setConfidence(value);
|
|
75
|
+
}, [value]);
|
|
76
|
+
var renderPopContent = (0, _react.useMemo)(function () {
|
|
77
|
+
if (!editable) return null;
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: "".concat(prefix, "__pop-content")
|
|
80
|
+
}, _constant.ConfidencePointArr.map(function (point) {
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
+
onClick: function onClick() {
|
|
83
|
+
handleChangeConfidence(point);
|
|
84
|
+
},
|
|
85
|
+
className: "".concat(prefix, "__pop-content-item")
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
87
|
+
className: "".concat(prefix, "__pop-content-item-icon"),
|
|
88
|
+
alt: "",
|
|
89
|
+
src: _constant.ConfidenceMapIcon[point]
|
|
90
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
|
+
className: "".concat(prefix, "__pop-content-item-text")
|
|
92
|
+
}, point, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('Per_Set_Form_Quantifier_Points'))));
|
|
93
|
+
}));
|
|
94
|
+
}, [editable]);
|
|
95
|
+
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
96
|
+
popup: renderPopContent,
|
|
97
|
+
popupPlacement: "bottom",
|
|
98
|
+
ref: popupRef,
|
|
99
|
+
popupAlign: {
|
|
100
|
+
offset: [0, 5],
|
|
101
|
+
overflow: {
|
|
102
|
+
adjustX: true,
|
|
103
|
+
adjustY: true
|
|
104
|
+
},
|
|
105
|
+
targetOffset: [0, 0]
|
|
106
|
+
},
|
|
107
|
+
getPopupContainer: getPopupContainer
|
|
108
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
|
+
className: (0, _classnames["default"])(prefix, _defineProperty({}, "".concat(prefix, "--editable"), editable))
|
|
110
|
+
}, confidence > 0 && /*#__PURE__*/_react["default"].createElement("img", {
|
|
111
|
+
className: "".concat(prefix, "__icon"),
|
|
112
|
+
alt: "",
|
|
113
|
+
src: _constant.ConfidenceMapIcon[confidence]
|
|
114
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
+
className: "".concat(prefix, "__value")
|
|
116
|
+
}, confidence)));
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var _default = NewConfidence;
|
|
120
|
+
exports["default"] = _default;
|
|
@@ -91,7 +91,7 @@ function OAvatar(props) {
|
|
|
91
91
|
case 0:
|
|
92
92
|
_context.next = 2;
|
|
93
93
|
return (0, _requestApis.updateOkrPrincipal)({
|
|
94
|
-
email: selectedUser.email ||
|
|
94
|
+
email: selectedUser.email || '',
|
|
95
95
|
to_user_id: selectedUser.id,
|
|
96
96
|
work_id: okrId
|
|
97
97
|
});
|
|
@@ -103,7 +103,7 @@ function OAvatar(props) {
|
|
|
103
103
|
setGeneralPrincipalUser(selectedUser);
|
|
104
104
|
popConfirmRef.current && popConfirmRef.current.getRef().hide();
|
|
105
105
|
|
|
106
|
-
_toast["default"].Success(
|
|
106
|
+
_toast["default"].Success('负责人转交成功');
|
|
107
107
|
} else {
|
|
108
108
|
_toast["default"].Error(data.Message);
|
|
109
109
|
}
|
|
@@ -125,8 +125,8 @@ function OAvatar(props) {
|
|
|
125
125
|
return /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
126
126
|
userId: generalPrincipalUser.userId,
|
|
127
127
|
name: generalPrincipalUser.name,
|
|
128
|
-
color: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.color :
|
|
129
|
-
src: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.original :
|
|
128
|
+
color: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.color : '',
|
|
129
|
+
src: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.original : '',
|
|
130
130
|
nameTips: function nameTips(name) {
|
|
131
131
|
return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A", name);
|
|
132
132
|
},
|
|
@@ -142,7 +142,7 @@ function OAvatar(props) {
|
|
|
142
142
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
143
143
|
ref: avatarRef,
|
|
144
144
|
style: {
|
|
145
|
-
cursor:
|
|
145
|
+
cursor: 'pointer'
|
|
146
146
|
}
|
|
147
147
|
}, /*#__PURE__*/_react["default"].createElement(_popConfirm["default"], {
|
|
148
148
|
ref: popConfirmRef,
|
|
@@ -150,7 +150,7 @@ function OAvatar(props) {
|
|
|
150
150
|
style: {
|
|
151
151
|
width: 300
|
|
152
152
|
},
|
|
153
|
-
title: (0, _getLocale.getLocale)(
|
|
153
|
+
title: (0, _getLocale.getLocale)('OKR_MyO_Err_Transfer'),
|
|
154
154
|
onCancel: cancelHandler,
|
|
155
155
|
onConfirm: confirmHandler
|
|
156
156
|
}, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
padding: 0 12px;
|
|
25
|
-
background: #
|
|
25
|
+
background: #ffffff;
|
|
26
26
|
border-radius: 16px;
|
|
27
|
-
border: 1px solid #
|
|
27
|
+
border: 1px solid #e9ecf0;
|
|
28
28
|
font-size: 14px;
|
|
29
29
|
font-weight: 400;
|
|
30
|
-
color: #
|
|
30
|
+
color: #141c28;
|
|
31
31
|
margin-right: 12px;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -27,7 +27,7 @@ var _selectLayer = _interopRequireDefault(require("../../select-layer"));
|
|
|
27
27
|
|
|
28
28
|
var _utils = require("../utils");
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _context2 = require("../context");
|
|
31
31
|
|
|
32
32
|
var _bsGlobal = require("../../../utils/bs-global");
|
|
33
33
|
|
|
@@ -140,11 +140,11 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
140
140
|
}, [visible, mapInstance]);
|
|
141
141
|
|
|
142
142
|
var downloadImg = /*#__PURE__*/function () {
|
|
143
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
143
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
144
144
|
var okrMapRef, width, height, canvas, scale, opts;
|
|
145
|
-
return regeneratorRuntime.wrap(function
|
|
145
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
146
146
|
while (1) {
|
|
147
|
-
switch (
|
|
147
|
+
switch (_context.prev = _context.next) {
|
|
148
148
|
case 0:
|
|
149
149
|
okrMapRef = document.querySelector('.titaui-okr-flow__export') || document.createElement('div');
|
|
150
150
|
width = okrMapRef.clientWidth; // 获取dom 宽度
|
|
@@ -176,7 +176,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
176
176
|
useCORS: true // 【重要】开启跨域配置
|
|
177
177
|
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
_context.next = 12;
|
|
180
180
|
return (0, _html2canvas["default"])(okrMapRef, opts).then(function (result) {
|
|
181
181
|
var _window, _window$BSGlobal, _window$BSGlobal$logi, _window2, _window2$BSGlobal, _window2$BSGlobal$ten;
|
|
182
182
|
|
|
@@ -240,13 +240,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
240
240
|
scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
241
241
|
});
|
|
242
242
|
(0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
|
|
243
|
-
|
|
244
|
-
// window.titaTracker && window.titaTracker("action").record({
|
|
245
|
-
// actionName: userId+'租户:'+telentId+'我获得了地址'+url.Data.obj,
|
|
246
|
-
// actionGroup: 'okr地图接口',
|
|
247
|
-
// productName: 'okr地图导出',
|
|
248
|
-
// });
|
|
249
|
-
|
|
243
|
+
// const image = new Image()
|
|
250
244
|
// @ts-ignore
|
|
251
245
|
// window.titaTracker && window.titaTracker("action").record({
|
|
252
246
|
// actionName: userId+'租户:'+telentId+'我获得了地址'+url.Data.obj,
|
|
@@ -257,87 +251,46 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
257
251
|
scope.setTag('error-level', "P0");
|
|
258
252
|
scope.setTag('error-type', '地图导出-图片地址');
|
|
259
253
|
scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
//
|
|
283
|
-
//
|
|
284
|
-
//
|
|
285
|
-
//
|
|
286
|
-
//
|
|
287
|
-
//
|
|
288
|
-
//
|
|
289
|
-
//
|
|
290
|
-
//
|
|
291
|
-
//
|
|
292
|
-
//
|
|
254
|
+
});
|
|
255
|
+
var newUrl = url.Data.obj;
|
|
256
|
+
var x = new XMLHttpRequest();
|
|
257
|
+
x.open('GET', newUrl, true);
|
|
258
|
+
x.responseType = 'blob';
|
|
259
|
+
|
|
260
|
+
x.onload = function (e) {
|
|
261
|
+
var url = window.URL.createObjectURL(x.response);
|
|
262
|
+
var a = document.createElement('a');
|
|
263
|
+
a.href = url;
|
|
264
|
+
a.download = model.value === 20 ? '高清图片' : '标清图片';
|
|
265
|
+
a.click();
|
|
266
|
+
|
|
267
|
+
_toast["default"].Success('导出成功');
|
|
268
|
+
|
|
269
|
+
setIsExport(false);
|
|
270
|
+
|
|
271
|
+
if (onCloseHandler) {
|
|
272
|
+
onCloseHandler();
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
x.send(); // image.setAttribute('crossOrigin', 'anonymous')
|
|
277
|
+
// image.onload = async() => {
|
|
278
|
+
// if (!url.Data.obj) {
|
|
279
|
+
// Toast.Error('导出失败,请稍后重试', { canClose: false })
|
|
280
|
+
// }
|
|
281
|
+
// await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
|
|
282
|
+
// // const a = document.createElement('a') // 生成一个a元素
|
|
283
|
+
// // const event = new MouseEvent('click') // 创建一个单击事件
|
|
284
|
+
// // a.download = '123' // 设置图片名称
|
|
285
|
+
// // a.href = url.Data.obj // 将生成的URL设置为a
|
|
286
|
+
// // a.dispatchEvent(event) // 触发a的单击事件
|
|
287
|
+
// Toast.Success('导出成功')
|
|
288
|
+
// setIsExport(false)
|
|
289
|
+
// if (onCloseHandler) {
|
|
290
|
+
// onCloseHandler()
|
|
291
|
+
// }
|
|
293
292
|
// }
|
|
294
|
-
//
|
|
295
|
-
image.setAttribute('crossOrigin', 'anonymous');
|
|
296
|
-
image.onload = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
297
|
-
var a, event;
|
|
298
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
299
|
-
while (1) {
|
|
300
|
-
switch (_context.prev = _context.next) {
|
|
301
|
-
case 0:
|
|
302
|
-
if (!url.Data.obj) {
|
|
303
|
-
_toast["default"].Error('导出失败,请稍后重试', {
|
|
304
|
-
canClose: false
|
|
305
|
-
});
|
|
306
|
-
} // await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
// await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
|
|
310
|
-
a = document.createElement('a'); // 生成一个a元素
|
|
311
|
-
|
|
312
|
-
// 生成一个a元素
|
|
313
|
-
event = new MouseEvent('click'); // 创建一个单击事件
|
|
314
|
-
|
|
315
|
-
// 创建一个单击事件
|
|
316
|
-
a.download = '分享图片'; // 设置图片名称
|
|
317
|
-
|
|
318
|
-
// 设置图片名称
|
|
319
|
-
a.href = url.Data.obj; // 将生成的URL设置为a
|
|
320
|
-
|
|
321
|
-
// 将生成的URL设置为a
|
|
322
|
-
a.dispatchEvent(event); // 触发a的单击事件
|
|
323
|
-
|
|
324
|
-
// 触发a的单击事件
|
|
325
|
-
_toast["default"].Success('导出成功');
|
|
326
|
-
|
|
327
|
-
setIsExport(false);
|
|
328
|
-
|
|
329
|
-
if (onCloseHandler) {
|
|
330
|
-
onCloseHandler();
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
case 9:
|
|
334
|
-
case "end":
|
|
335
|
-
return _context.stop();
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}, _callee);
|
|
339
|
-
}));
|
|
340
|
-
image.src = imgUrl;
|
|
293
|
+
// image.src = imgUrl
|
|
341
294
|
});
|
|
342
295
|
})["catch"](function (err) {
|
|
343
296
|
setIsExport(false);
|
|
@@ -349,10 +302,10 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
349
302
|
|
|
350
303
|
case 12:
|
|
351
304
|
case "end":
|
|
352
|
-
return
|
|
305
|
+
return _context.stop();
|
|
353
306
|
}
|
|
354
307
|
}
|
|
355
|
-
},
|
|
308
|
+
}, _callee);
|
|
356
309
|
}));
|
|
357
310
|
|
|
358
311
|
return function downloadImg() {
|
|
@@ -445,7 +398,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
445
398
|
className: "titaui-search-dropdown__text"
|
|
446
399
|
}, model.label), /*#__PURE__*/_react["default"].createElement("span", {
|
|
447
400
|
className: "tu-icon-sort-down"
|
|
448
|
-
})))), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(
|
|
401
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(_context2.CommonContext.Provider, {
|
|
449
402
|
value: {
|
|
450
403
|
direction: direction,
|
|
451
404
|
showkr: showkr,
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
31
|
|
|
32
|
-
var preCls =
|
|
32
|
+
var preCls = 'order-have-award';
|
|
33
33
|
|
|
34
34
|
var OrderAward = function OrderAward() {
|
|
35
35
|
var bookDemoRef = (0, _react.useRef)();
|
|
@@ -54,16 +54,16 @@ var OrderAward = function OrderAward() {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
if (window.titaTracker) {
|
|
57
|
-
window.titaTracker(
|
|
58
|
-
actionName:
|
|
59
|
-
actionGroup:
|
|
60
|
-
productName:
|
|
57
|
+
window.titaTracker('action').record({
|
|
58
|
+
actionName: '申请演示',
|
|
59
|
+
actionGroup: '试用版-申请演示',
|
|
60
|
+
productName: '系统内-申请演示'
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
66
|
-
className: (0, _classnames["default"])(
|
|
66
|
+
className: (0, _classnames["default"])('order-have-award'),
|
|
67
67
|
onClick: handlePoint
|
|
68
68
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
69
69
|
className: (0, _classnames["default"])("".concat(preCls, "__img")),
|
|
@@ -19,15 +19,15 @@ exports.DefaultWrapper = DefaultWrapper;
|
|
|
19
19
|
var PrimaryWrapper = (0, _styledComponents["default"])(DefaultWrapper)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: #ffffff;\n background: #2879ff;\n border: none;\n :hover {\n color: #ffffff;\n background-color: #5c8eff;\n border: none;\n }\n"])));
|
|
20
20
|
exports.PrimaryWrapper = PrimaryWrapper;
|
|
21
21
|
var BorderWrapper = (0, _styledComponents["default"])(DefaultWrapper)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n background: transparent;\n border: 1px solid ", ";\n :hover {\n background: ", ";\n color: ", ";\n border-color: ", ";\n }\n"])), function (p) {
|
|
22
|
-
return p.theme ==
|
|
22
|
+
return p.theme == 'danger' ? '#F05E5E' : '#2879ff';
|
|
23
23
|
}, function (p) {
|
|
24
|
-
return p.theme ==
|
|
24
|
+
return p.theme == 'danger' ? '#F05E5E' : '#2879ff';
|
|
25
25
|
}, function (p) {
|
|
26
|
-
return p.theme ==
|
|
26
|
+
return p.theme == 'danger' ? 'rgba(240,94,94,.1)' : '#e9f1ff';
|
|
27
27
|
}, function (p) {
|
|
28
|
-
return p.theme ==
|
|
28
|
+
return p.theme == 'danger' ? '#F05E5E' : '#2879ff';
|
|
29
29
|
}, function (p) {
|
|
30
|
-
return p.theme ==
|
|
30
|
+
return p.theme == 'danger' ? '#F05E5E' : '#2879ff';
|
|
31
31
|
});
|
|
32
32
|
exports.BorderWrapper = BorderWrapper;
|
|
33
33
|
|
|
@@ -0,0 +1,17 @@
|
|
|
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="10、日期时间组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="日期范围选择器-Date" transform="translate(-411.000000, -3250.000000)" fill="#BFC7D5">
|
|
6
|
+
<g id="编组-4" transform="translate(254.000000, 3190.000000)">
|
|
7
|
+
<g id="日期基础组件" transform="translate(0.000000, 36.000000)">
|
|
8
|
+
<g id="编组-6" transform="translate(20.000000, 16.000000)">
|
|
9
|
+
<g id="cross" transform="translate(137.000000, 8.000000)">
|
|
10
|
+
<path d="M8,1.33333333 C9.84066667,1.33333333 11.5073333,2.07966667 12.7143333,3.286 C13.9206667,4.49233333 14.6666667,6.159 14.6666667,8 C14.6666667,9.84066667 13.9206667,11.5073333 12.7143333,12.7143333 C11.5073333,13.9206667 9.84066667,14.6666667 8,14.6666667 C6.159,14.6666667 4.49233333,13.9206667 3.286,12.7143333 C2.07966667,11.5073333 1.33333333,9.84066667 1.33333333,8 C1.33333333,6.159 2.07966667,4.49233333 3.286,3.286 C4.49233333,2.07966667 6.159,1.33333333 8,1.33333333 Z M6.00687497,5.25130819 C5.79859535,5.04302857 5.46090736,5.04302857 5.25262774,5.25130819 C5.04434812,5.45958782 5.04434812,5.7972758 5.25262774,6.00555543 L5.25262774,6.00555543 L7.23241802,7.98509848 L5.25262774,9.9653534 L5.19091526,10.0392178 C5.04691947,10.2470772 5.0674903,10.5344632 5.25262774,10.7196006 L5.25262774,10.7196006 L5.32649215,10.7813131 C5.5343515,10.9253089 5.82173753,10.9047381 6.00687497,10.7196006 L6.00687497,10.7196006 L7.98641802,8.73909848 L9.96667295,10.7196006 C10.1749526,10.9278803 10.5126406,10.9278803 10.7209202,10.7196006 C10.9291998,10.511321 10.9291998,10.173633 10.7209202,9.9653534 L10.7209202,9.9653534 L8.74041802,7.98509848 L10.7209202,6.00555543 L10.7826327,5.93169101 C10.9266284,5.72383166 10.9060576,5.43644564 10.7209202,5.25130819 L10.7209202,5.25130819 L10.6470558,5.18959571 C10.4391964,5.04559992 10.1518104,5.06617075 9.96667295,5.25130819 L9.96667295,5.25130819 L7.98641802,7.23109848 Z" id="形状结合"></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</svg>
|
|
@@ -35,13 +35,14 @@ var DATE_ROW_NUM = 6;
|
|
|
35
35
|
var DatePanelBody = function DatePanelBody(props) {
|
|
36
36
|
var viewDate = props.viewDate,
|
|
37
37
|
_props$weekStartDay = props.weekStartDay,
|
|
38
|
-
weekStartDay = _props$weekStartDay === void 0 ?
|
|
38
|
+
weekStartDay = _props$weekStartDay === void 0 ? 'SUNDAY' : _props$weekStartDay,
|
|
39
39
|
onSelect = props.onSelect;
|
|
40
40
|
|
|
41
41
|
var _useContext = (0, _react.useContext)(_context["default"]),
|
|
42
|
+
format = _useContext.format,
|
|
42
43
|
value = _useContext.value;
|
|
43
44
|
|
|
44
|
-
var weekStartDaySun = weekStartDay ===
|
|
45
|
+
var weekStartDaySun = weekStartDay === 'SUNDAY';
|
|
45
46
|
|
|
46
47
|
var getCells = function getCells(sunday, currentMonth) {
|
|
47
48
|
var dates = [];
|
|
@@ -49,16 +50,27 @@ var DatePanelBody = function DatePanelBody(props) {
|
|
|
49
50
|
var _loop = function _loop(day) {
|
|
50
51
|
var _classNames;
|
|
51
52
|
|
|
52
|
-
var date = (0, _moment["default"])(sunday).add(day,
|
|
53
|
-
|
|
53
|
+
var date = (0, _moment["default"])(sunday).add(day, 'd');
|
|
54
|
+
|
|
55
|
+
var _isCurrentDateInRange = (0, _utils.isCurrentDateInRanges)({
|
|
56
|
+
nowDate: date,
|
|
57
|
+
values: value
|
|
58
|
+
}),
|
|
59
|
+
inRanges = _isCurrentDateInRange.inRanges,
|
|
60
|
+
rangeStart = _isCurrentDateInRange.rangeStart,
|
|
61
|
+
rangeEnd = _isCurrentDateInRange.rangeEnd;
|
|
62
|
+
|
|
63
|
+
var classes = (0, _classnames["default"])(_utils.PickerCellClass, (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--today"), date.isSame((0, _moment["default"])(), 'date')), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--in-view"), date.format('YYYY/MM') === currentMonth), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--in-ranges"), inRanges), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--in-ranges--start"), rangeStart), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--in-ranges--end"), rangeEnd), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--selected"), value === null || value === void 0 ? void 0 : value.some(function (v) {
|
|
64
|
+
return date.isSame((0, _moment["default"])(v).format('YYYY/MM/DD'), 'date');
|
|
65
|
+
})), _classNames));
|
|
54
66
|
dates.push( /*#__PURE__*/_react["default"].createElement("td", {
|
|
55
67
|
className: classes,
|
|
56
|
-
key: date.format(
|
|
68
|
+
key: date.format('YYYY/MM/DD')
|
|
57
69
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
70
|
className: (0, _classnames["default"])("".concat(_utils.PickerCellClass, "__inner")),
|
|
59
|
-
title: date.format(
|
|
71
|
+
title: date.format('YYYY-MM-DD'),
|
|
60
72
|
onClick: function onClick() {
|
|
61
|
-
return onSelect && onSelect(date,
|
|
73
|
+
return onSelect && onSelect(date, 'date');
|
|
62
74
|
}
|
|
63
75
|
}, date.date())));
|
|
64
76
|
};
|
|
@@ -73,16 +85,16 @@ var DatePanelBody = function DatePanelBody(props) {
|
|
|
73
85
|
var getRows = function getRows(date) {
|
|
74
86
|
var currentDate = (0, _moment["default"])(date);
|
|
75
87
|
var monthFirstDay = currentDate.date(1);
|
|
76
|
-
var currentMonth = monthFirstDay.format(
|
|
88
|
+
var currentMonth = monthFirstDay.format('YYYY/MM');
|
|
77
89
|
var daysDiff = weekStartDaySun ? 0 : 1;
|
|
78
|
-
var weekStartDay = monthFirstDay.subtract(monthFirstDay.day() - daysDiff,
|
|
90
|
+
var weekStartDay = monthFirstDay.subtract(monthFirstDay.day() - daysDiff, 'days');
|
|
79
91
|
var rows = [];
|
|
80
92
|
|
|
81
93
|
for (var row = 0; row < DATE_ROW_NUM; row += 1) {
|
|
82
94
|
rows.push( /*#__PURE__*/_react["default"].createElement("tr", {
|
|
83
95
|
key: row
|
|
84
96
|
}, getCells(weekStartDay, currentMonth)));
|
|
85
|
-
weekStartDay = weekStartDay.add(1,
|
|
97
|
+
weekStartDay = weekStartDay.add(1, 'w');
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
return rows;
|
|
@@ -94,25 +106,25 @@ var DatePanelBody = function DatePanelBody(props) {
|
|
|
94
106
|
className: (0, _classnames["default"])("".concat(_utils.PickerClass, "-content"))
|
|
95
107
|
}, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", null, weekStartDaySun && /*#__PURE__*/_react["default"].createElement("th", {
|
|
96
108
|
className: _utils.PickerCellClass
|
|
97
|
-
}, (0, _getLocale.getLocale)(
|
|
109
|
+
}, (0, _getLocale.getLocale)('Mod_Sun')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
98
110
|
className: _utils.PickerCellClass
|
|
99
|
-
}, (0, _getLocale.getLocale)(
|
|
111
|
+
}, (0, _getLocale.getLocale)('Mod_Mon')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
100
112
|
className: _utils.PickerCellClass
|
|
101
|
-
}, (0, _getLocale.getLocale)(
|
|
113
|
+
}, (0, _getLocale.getLocale)('Mod_Tues')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
102
114
|
className: _utils.PickerCellClass
|
|
103
|
-
}, (0, _getLocale.getLocale)(
|
|
115
|
+
}, (0, _getLocale.getLocale)('Mod_Wed')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
104
116
|
className: _utils.PickerCellClass
|
|
105
|
-
}, (0, _getLocale.getLocale)(
|
|
117
|
+
}, (0, _getLocale.getLocale)('Mod_Thur')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
106
118
|
className: _utils.PickerCellClass
|
|
107
|
-
}, (0, _getLocale.getLocale)(
|
|
119
|
+
}, (0, _getLocale.getLocale)('Mod_Fri')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
108
120
|
className: _utils.PickerCellClass
|
|
109
|
-
}, (0, _getLocale.getLocale)(
|
|
121
|
+
}, (0, _getLocale.getLocale)('Mod_Sat')), weekStartDay !== 'SUNDAY' && /*#__PURE__*/_react["default"].createElement("th", {
|
|
110
122
|
className: _utils.PickerCellClass
|
|
111
|
-
}, (0, _getLocale.getLocale)(
|
|
123
|
+
}, (0, _getLocale.getLocale)('Mod_Sun')))), /*#__PURE__*/_react["default"].createElement("tbody", null, getRows((0, _moment["default"])(viewDate)))));
|
|
112
124
|
};
|
|
113
125
|
|
|
114
126
|
DatePanelBody.defaultProps = {
|
|
115
|
-
weekStartDay:
|
|
127
|
+
weekStartDay: 'SUNDAY'
|
|
116
128
|
};
|
|
117
129
|
var _default = DatePanelBody;
|
|
118
130
|
exports["default"] = _default;
|
|
@@ -25,8 +25,8 @@ function DatePanelHead(props) {
|
|
|
25
25
|
onPrev = props.onPrev,
|
|
26
26
|
onNext = props.onNext,
|
|
27
27
|
onPanelChange = props.onPanelChange;
|
|
28
|
-
var yearText = (0, _moment["default"])(viewDate).format(
|
|
29
|
-
var monthText = (0, _moment["default"])(viewDate).format(
|
|
28
|
+
var yearText = (0, _moment["default"])(viewDate).format('YYYY');
|
|
29
|
+
var monthText = (0, _moment["default"])(viewDate).format('MM');
|
|
30
30
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
31
|
className: (0, _classnames["default"])(_utils.PickerHeadClass)
|
|
32
32
|
}, !_getLocale.isEn && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -34,7 +34,7 @@ function DatePanelHead(props) {
|
|
|
34
34
|
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
35
35
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__year")),
|
|
36
36
|
onClick: function onClick() {
|
|
37
|
-
return onPanelChange && onPanelChange(viewDate,
|
|
37
|
+
return onPanelChange && onPanelChange(viewDate, 'year');
|
|
38
38
|
},
|
|
39
39
|
type: "button"
|
|
40
40
|
}, yearText), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -42,7 +42,7 @@ function DatePanelHead(props) {
|
|
|
42
42
|
}, "\xA0\u5E74"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
43
43
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__month")),
|
|
44
44
|
onClick: function onClick() {
|
|
45
|
-
return onPanelChange && onPanelChange(viewDate,
|
|
45
|
+
return onPanelChange && onPanelChange(viewDate, 'month');
|
|
46
46
|
},
|
|
47
47
|
type: "button"
|
|
48
48
|
}, monthText), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -52,7 +52,7 @@ function DatePanelHead(props) {
|
|
|
52
52
|
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
53
53
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__month")),
|
|
54
54
|
onClick: function onClick() {
|
|
55
|
-
return onPanelChange && onPanelChange(viewDate,
|
|
55
|
+
return onPanelChange && onPanelChange(viewDate, 'month');
|
|
56
56
|
},
|
|
57
57
|
style: {
|
|
58
58
|
marginRight: 4
|
|
@@ -61,7 +61,7 @@ function DatePanelHead(props) {
|
|
|
61
61
|
}, _utils.MONTHDATAMAPEN[Number(monthText) - 1]), /*#__PURE__*/_react["default"].createElement("button", {
|
|
62
62
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__year")),
|
|
63
63
|
onClick: function onClick() {
|
|
64
|
-
return onPanelChange && onPanelChange(viewDate,
|
|
64
|
+
return onPanelChange && onPanelChange(viewDate, 'year');
|
|
65
65
|
},
|
|
66
66
|
type: "button"
|
|
67
67
|
}, yearText)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -70,14 +70,14 @@ function DatePanelHead(props) {
|
|
|
70
70
|
/*#__PURE__*/
|
|
71
71
|
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
72
72
|
_react["default"].createElement("button", {
|
|
73
|
-
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__prev"),
|
|
73
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__prev"), 'tu-icon-arrow-up1'),
|
|
74
74
|
onClick: onPrev,
|
|
75
75
|
type: "button"
|
|
76
76
|
}),
|
|
77
77
|
/*#__PURE__*/
|
|
78
78
|
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
79
79
|
_react["default"].createElement("button", {
|
|
80
|
-
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__next"),
|
|
80
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__next"), 'tu-icon-arrow-down1'),
|
|
81
81
|
onClick: onNext,
|
|
82
82
|
type: "button"
|
|
83
83
|
})));
|