@titaui/pc 1.6.12 → 1.6.16
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/avatar/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/rect-btn/index.css +21 -0
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/createSuccessCmp.js +6 -2
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/index.js +16 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/dialog/index.css +1 -0
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -3
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +1 -2
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic-list/index.js +7 -1
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/dynamic.js +7 -4
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +2 -2
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/form/index.js +1 -1
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/index.css +17 -17
- package/lib/components/help-card/index.js +35 -31
- package/lib/components/help-card/request-api.js +2 -2
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -3
- package/lib/components/menus/components/flip-menu-card/index.js +42 -30
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
- package/lib/components/menus/components/menu-tree/index.js +5 -4
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +49 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +5 -2
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +67 -0
- package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +126 -13
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +27 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +25 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +12 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +58 -19
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +109 -4
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +12 -4
- package/lib/components/menus/index.js +1 -1
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.css +1 -0
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +29 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +116 -111
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +26 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +67 -60
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +118 -63
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +5 -4
- package/lib/components/nav-top/components/user-message/components/todos/index.css +26 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +118 -59
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
- package/lib/components/nav-top/components/user-message/constant.js +2 -19
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +41 -4
- package/lib/components/nav-top/components/user-message/index.js +89 -100
- package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
- package/lib/components/nav-top/components/user-message/msg/index.js +28 -22
- package/lib/components/nav-top/components/user-message/utils.js +31 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
- package/lib/components/nav-top/components/user-own-menu/index.js +5 -7
- package/lib/components/nav-top/components/user-own-menu/utils.js +63 -0
- package/lib/components/nav-top/constant.js +2 -10
- package/lib/components/nav-top/index.css +55 -0
- package/lib/components/nav-top/index.js +14 -13
- package/lib/components/nav-top/request.apis.js +50 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +189 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +54 -0
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/okrcase-library/index.js +6 -1
- package/lib/components/okrcase-library/new-ui.css +52 -0
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +83 -100
- package/lib/components/photo-card/components/card/index.js +119 -63
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +15 -14
- package/lib/components/photo-card/index.js +59 -15
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tree/index.js +1 -3
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.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/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +18 -4
- package/lib/pages/aha2021/index.css +25 -1
- package/lib/pages/aha2021/index.js +10 -4
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/pages/new-okr-list/header/comments.js +104 -0
- package/lib/pages/new-okr-list/header/create-okr.js +61 -0
- package/lib/pages/new-okr-list/header/depart-title.js +59 -0
- package/lib/pages/new-okr-list/header/filter.js +95 -0
- package/lib/pages/new-okr-list/header/index.css +118 -0
- package/lib/pages/new-okr-list/header/index.js +133 -0
- package/lib/pages/new-okr-list/header/relation-title.js +28 -0
- package/lib/pages/new-okr-list/header/user-title.js +26 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +208 -0
- package/lib/pages/new-okr-list/interface.js +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/pages/new-okr-list/keyword-search/index.js +106 -0
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +47 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +158 -0
- package/lib/pages/new-okr-list/theme.css +7 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/local-storage.js +40 -0
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +4 -3
- package/package.json +3 -2
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.isImg = exports.getPreviewImgs = exports.getFileTypeMapIcon = exports.getFileSize = void 0;
|
|
7
7
|
|
|
8
8
|
var _doc = _interopRequireDefault(require("./img/doc.svg"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.praise = exports.getPriseList = exports.cancelPraise = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SingleSelector = exports.
|
|
6
|
+
exports.SingleSelector = exports.GroupSelector = exports.FieldPersonSelector = exports.DutiesSelector = exports.DepartSearchSelector = void 0;
|
|
7
7
|
|
|
8
8
|
var _fieldTreeSelector = _interopRequireDefault(require("./export-modules/field-tree-selector"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.searchGroups = exports.search = exports.getTreeData = exports.getGourps = exports.getDuties = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.translateUsersToTreeNode = exports.translateGroupsToTreeNode = exports.translateDepartsToTreeNode = exports.toTree = exports.orderPersonBeforeDeparts = exports.loadPersonTreeNodes = void 0;
|
|
7
7
|
|
|
8
8
|
var _cloneDeep = _interopRequireDefault(require("clone-deep"));
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.TitaButton = exports.ButtonRoundedStyled = exports.ButtonOutlinedWrapper = void 0;
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SuffixIcon = exports.Inputs = exports.InputInner = exports.InputContent = exports.Blinker = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.TabWrapper = exports.TabContainer = exports.ItemsWrapper = exports.Item = exports.ChildWrapper = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.TextareaWrapper = exports.TextareaWarning = exports.TextareaPlaceholder = exports.Textarea = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports["default"] = exports.Test = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Wrapper = exports.TreeList = exports.TreeHeader = exports.SingleModeWrapper = exports.SingleList = exports.SelectedList = exports.SelectedHeader = exports.SearchIcon = exports.MutiModeWrapper = exports.MutiModeRight = exports.MutiModeLeft = exports.ListWrapper = exports.ListHeader = exports.ListEmptyText = exports.List = exports.LinkWrapper = exports.ItemWrapper = exports.ItemTextContent = exports.ItemText = exports.ItemName = exports.InputWrapper = exports.Input = exports.Footer = exports.EmptyWrapper = exports.EmptyText = exports.DepartmentListWrapper = exports.ClearBtn = exports.CleanBtn = exports.Btn = exports.AdvancedModLink = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = useLocalStorage;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
|
+
|
|
12
|
+
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."); }
|
|
13
|
+
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
|
|
22
|
+
function useLocalStorage(name, storageId, initValue) {
|
|
23
|
+
var store = JSON.parse(localStorage.getItem(storageId) || '{}');
|
|
24
|
+
store[name] = store[name] === undefined ? initValue : store[name];
|
|
25
|
+
|
|
26
|
+
var _useState = (0, _react.useState)(store[name]),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
value = _useState2[0],
|
|
29
|
+
setValue = _useState2[1];
|
|
30
|
+
|
|
31
|
+
return [value, function (v) {
|
|
32
|
+
setValue(v);
|
|
33
|
+
var store = JSON.parse(localStorage.getItem(storageId) || '{}');
|
|
34
|
+
store[name] = v;
|
|
35
|
+
localStorage.setItem(storageId, JSON.stringify(store));
|
|
36
|
+
}];
|
|
37
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.openData = exports.firework = exports.drawerManager = exports.WordCloud = exports.VersionChangeModal = exports.UserGroupManagementPage = exports.UpvoteButtonForFeed = exports.Upvote = exports.Upload = exports.UpdateModal = exports.Tree = exports.TooltipText = exports.Tooltip = exports.Toast = exports.TitaWordsCloud = exports.TitaPieChart = exports.TitaLiquidBall = exports.TextBtn = exports.TextAvatar = exports.TaskRelationModal = exports.Tabs = exports.Table = exports.TabPane = exports.Switch = exports.StatusTime = exports.SlideInput = exports.SingleSelector = exports.SearchInput = exports.SearchDropdownOption = exports.SearchDropdown = exports.Review = exports.RectBtn = exports.RangePickerPop = exports.RadioGroup = exports.Radio = exports.Popup = exports.PhotoCard = exports.PersonalInfo = exports.PeriodSelector = exports.PasswordInput = exports.Pagination = exports.OperationRecord = exports.OkrShare = exports.OkrProgressDetail = exports.OkrPeriodSelector = exports.OkrMapSharePage = exports.OkrMapPage = exports.OkrFlow = exports.OkrFilterDrawer = exports.OkrDetail = exports.OkrCasesLibrary = exports.OkrCaseCard = exports.OKrProgress = exports.NewOkrList = exports.NavTop = exports.NameAvatar = exports.Menus = exports.Mblog = exports.LineProgress = exports.LikeRankingPage = exports.InvitePeople = exports.ImgViewer = exports.IconBtn = exports.HomePageDataList = exports.HomePage = exports.HelpCard = exports.GroupSelector = exports.FormFields = exports.Form = exports.FollowerVisitor = exports.FileList = exports.FieldPersonSelector = exports.ErrorToolTip = exports.EmotionsSelector = exports.EReportList = exports.EPriority = exports.DynamicTopping = exports.DynamicQuickOperation = exports.DynamicLiking = exports.DynamicLikeRanking = exports.DynamicItem = exports.Dynamic = exports.DutiesSelector = exports.DropSelector = exports.Drawer = exports.DialogConfirm = exports.Dialog = exports.DepartSearchSelector = exports.DefautltAvatar = exports.DateRangePickerPop = exports.DatePicker = exports.CreateOkrModal = exports.Confidence = exports.Communication = exports.CircleProgress = exports.Checkbox = exports.ChangeOkrModal = exports.BaseInfo = exports.Aha2021Page = void 0;
|
|
9
9
|
|
|
10
10
|
var _dialog = _interopRequireDefault(require("./components/dialog"));
|
|
11
11
|
|
|
@@ -69,6 +69,8 @@ var _confidence = _interopRequireDefault(require("./components/confidence"));
|
|
|
69
69
|
|
|
70
70
|
var _drawer = _interopRequireDefault(require("./components/drawer"));
|
|
71
71
|
|
|
72
|
+
var _okrFilterDrawer = _interopRequireDefault(require("./components/okr-filter-drawer"));
|
|
73
|
+
|
|
72
74
|
var _baseInfo = _interopRequireDefault(require("./components/okr-detail/base-info"));
|
|
73
75
|
|
|
74
76
|
var _okrDetail = _interopRequireDefault(require("./components/okr-detail"));
|
|
@@ -123,6 +125,8 @@ var _index = _interopRequireDefault(require("./pages/home-page/index"));
|
|
|
123
125
|
|
|
124
126
|
var _dataList = _interopRequireDefault(require("./pages/home-page/components/data-list"));
|
|
125
127
|
|
|
128
|
+
var _newOkrList = _interopRequireDefault(require("./pages/new-okr-list"));
|
|
129
|
+
|
|
126
130
|
var _titaChart = require("./components/tita-chart");
|
|
127
131
|
|
|
128
132
|
var _okrcaseLibrary = _interopRequireDefault(require("./components/okrcase-library"));
|
|
@@ -155,6 +159,8 @@ var _invitePeople = _interopRequireDefault(require("./components/invite-people")
|
|
|
155
159
|
|
|
156
160
|
var _personalInfo = _interopRequireDefault(require("./pages/personal-info"));
|
|
157
161
|
|
|
162
|
+
var _updateModal = _interopRequireDefault(require("./components/update-modal"));
|
|
163
|
+
|
|
158
164
|
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); }
|
|
159
165
|
|
|
160
166
|
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; }
|
|
@@ -248,6 +254,8 @@ var Drawer = _drawer["default"];
|
|
|
248
254
|
exports.Drawer = Drawer;
|
|
249
255
|
var drawerManager = _manager["default"];
|
|
250
256
|
exports.drawerManager = drawerManager;
|
|
257
|
+
var OkrFilterDrawer = _okrFilterDrawer["default"];
|
|
258
|
+
exports.OkrFilterDrawer = OkrFilterDrawer;
|
|
251
259
|
var OkrDetail = _okrDetail["default"];
|
|
252
260
|
exports.OkrDetail = OkrDetail;
|
|
253
261
|
var BaseInfo = _baseInfo["default"];
|
|
@@ -363,9 +371,11 @@ var DynamicLikeRanking = _dynamic.DynamicLikeRanking;
|
|
|
363
371
|
exports.DynamicLikeRanking = DynamicLikeRanking;
|
|
364
372
|
var RectBtn = _button.RectBtn;
|
|
365
373
|
exports.RectBtn = RectBtn;
|
|
366
|
-
var TextBtn = _button.TextBtn;
|
|
367
|
-
|
|
374
|
+
var TextBtn = _button.TextBtn;
|
|
368
375
|
exports.TextBtn = TextBtn;
|
|
376
|
+
var IconBtn = _button.IconBtn; //新ui组件
|
|
377
|
+
|
|
378
|
+
exports.IconBtn = IconBtn;
|
|
369
379
|
var HelpCard = _helpCard["default"];
|
|
370
380
|
exports.HelpCard = HelpCard;
|
|
371
381
|
var FollowerVisitor = _followerVisitor["default"];
|
|
@@ -375,4 +385,8 @@ exports.InvitePeople = InvitePeople;
|
|
|
375
385
|
var PersonalInfo = _personalInfo["default"];
|
|
376
386
|
exports.PersonalInfo = PersonalInfo;
|
|
377
387
|
var VersionChangeModal = _versionChangeModal["default"];
|
|
378
|
-
exports.VersionChangeModal = VersionChangeModal;
|
|
388
|
+
exports.VersionChangeModal = VersionChangeModal;
|
|
389
|
+
var UpdateModal = _updateModal["default"];
|
|
390
|
+
exports.UpdateModal = UpdateModal;
|
|
391
|
+
var NewOkrList = _newOkrList["default"];
|
|
392
|
+
exports.NewOkrList = NewOkrList;
|
|
@@ -6,10 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
.titaui-aha-2021__header {
|
|
8
8
|
height: 54px;
|
|
9
|
+
margin-bottom: 20px;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.titaui-aha-2021__message {
|
|
12
|
-
|
|
13
|
+
position: absolute;
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
top: 54px;
|
|
16
|
+
left: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
z-index: 3;
|
|
19
|
+
box-shadow: 0px 0px 16px 0px #7f91b44d;
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
.titaui-aha-2021__body {
|
|
@@ -34,9 +41,26 @@
|
|
|
34
41
|
position: absolute;
|
|
35
42
|
bottom: 28px;
|
|
36
43
|
left: 8px;
|
|
44
|
+
z-index: 2;
|
|
37
45
|
}
|
|
38
46
|
|
|
39
47
|
.titaui-aha-2021__body-content {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
position: relative;
|
|
40
50
|
flex: 1;
|
|
41
51
|
width: 0;
|
|
52
|
+
word-break: break-all;
|
|
53
|
+
transition: all 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0s;
|
|
54
|
+
will-change: opacity;
|
|
55
|
+
animation: contentOpacity .7s 1 forwards;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes contentOpacity {
|
|
59
|
+
from {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
to {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
42
66
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = exports.ContentTemplate = 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,16 +23,20 @@ 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
|
var preCls = "titaui-aha-2021";
|
|
25
31
|
|
|
26
32
|
var ContentTemplate = function ContentTemplate(props) {
|
|
27
33
|
var children = props.children;
|
|
28
|
-
if (children
|
|
34
|
+
if (_react.Children.count(children) == 0) return /*#__PURE__*/_react["default"].createElement("div", null);
|
|
29
35
|
|
|
30
|
-
if (children
|
|
36
|
+
if (_react.Children.count(children) == 1) {
|
|
31
37
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
38
|
className: (0, _classnames["default"])("".concat(preCls, "__body-content"))
|
|
33
|
-
}, children
|
|
39
|
+
}, children);
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.RenderError = RenderError;
|
|
6
7
|
exports.RenderSuccess = RenderSuccess;
|
|
7
8
|
exports.RenderWarning = RenderWarning;
|
|
8
|
-
exports.RenderError = RenderError;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.parseTag = exports.parseString = exports.
|
|
8
|
+
exports.parseTag = exports.parseString = exports.isPlatform = exports.getOpenId = exports["default"] = exports.OpenUserName = exports.OpenDepartmentName = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
6
|
+
exports.addGroup = addGroup;
|
|
7
|
+
exports.addGroupStaff = addGroupStaff;
|
|
8
|
+
exports.deleteGroupType = deleteGroupType;
|
|
9
|
+
exports.editGroup = editGroup;
|
|
10
10
|
exports.getApiUrl = getApiUrl;
|
|
11
|
+
exports.getDomain = getDomain;
|
|
11
12
|
exports.getGroupList = getGroupList;
|
|
12
|
-
exports.
|
|
13
|
+
exports.getTenantInfo = getTenantInfo;
|
|
14
|
+
exports.getUserInfo = getUserInfo;
|
|
13
15
|
exports.getVisible = getVisible;
|
|
14
|
-
exports.
|
|
15
|
-
exports.deleteGroupType = deleteGroupType;
|
|
16
|
-
exports.searchGroupStaffList = searchGroupStaffList;
|
|
17
|
-
exports.addGroupStaff = addGroupStaff;
|
|
16
|
+
exports.isWx = exports.isDingDing = void 0;
|
|
18
17
|
exports.removeGroupStaff = removeGroupStaff;
|
|
18
|
+
exports.searchGroupStaffList = searchGroupStaffList;
|
|
19
19
|
exports.searchUserDetail = searchUserDetail;
|
|
20
|
-
exports.
|
|
20
|
+
exports.taker = taker;
|
|
21
21
|
|
|
22
22
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
23
23
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.okrUpdateColumns = exports.okrAlignColumns = exports.myOkrColumns = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Context = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var Context = /*#__PURE__*/_react["default"].createContext({});
|
|
13
|
+
|
|
14
|
+
exports.Context = Context;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _button = require("../../../components/button");
|
|
13
|
+
|
|
14
|
+
var _context = require("../context");
|
|
15
|
+
|
|
16
|
+
var _precls = require("../precls");
|
|
17
|
+
|
|
18
|
+
var _requestApi = require("../request-api");
|
|
19
|
+
|
|
20
|
+
var _common = require("../../../components/period-selector/common");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
+
|
|
30
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31
|
+
|
|
32
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
33
|
+
|
|
34
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
35
|
+
|
|
36
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
37
|
+
|
|
38
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
+
|
|
40
|
+
var Comments = function Comments(props) {
|
|
41
|
+
var toUserId = props.toUserId;
|
|
42
|
+
var pushRef = (0, _react.useRef)();
|
|
43
|
+
|
|
44
|
+
var _useState = (0, _react.useState)(),
|
|
45
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
46
|
+
userInfo = _useState2[0],
|
|
47
|
+
setUserInfo = _useState2[1];
|
|
48
|
+
|
|
49
|
+
var _useContext = (0, _react.useContext)(_context.Context),
|
|
50
|
+
OkrCommunicationPush = _useContext.OkrCommunicationPush,
|
|
51
|
+
annualNum = _useContext.annualNum,
|
|
52
|
+
cycleType = _useContext.cycleType,
|
|
53
|
+
yqmNum = _useContext.yqmNum;
|
|
54
|
+
|
|
55
|
+
(0, _react.useEffect)(function () {
|
|
56
|
+
if (toUserId !== undefined) {
|
|
57
|
+
(0, _requestApi.getUserInfoById)(toUserId).then(function (res) {
|
|
58
|
+
console.log(res.Data);
|
|
59
|
+
setUserInfo(res.Data);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}, [toUserId]);
|
|
63
|
+
|
|
64
|
+
var openComments = function openComments() {
|
|
65
|
+
pushRef.current && pushRef.current.show();
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
if (!toUserId) return null;
|
|
69
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
className: "".concat(_precls.precls, "__header-item")
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
|
+
className: "".concat(_precls.precls, "__header-icon")
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement(_button.IconBtn, {
|
|
74
|
+
icon: "tu-icon-pinglun",
|
|
75
|
+
size: "big",
|
|
76
|
+
onClick: openComments
|
|
77
|
+
})), toUserId !== undefined && !!userInfo && /*#__PURE__*/_react["default"].createElement(OkrCommunicationPush, {
|
|
78
|
+
ref: pushRef,
|
|
79
|
+
feedId: 0,
|
|
80
|
+
okrCycle: "\uFF08".concat((0, _common.formatPeriod)({
|
|
81
|
+
annualNum: annualNum,
|
|
82
|
+
cycleType: cycleType,
|
|
83
|
+
yqmNum: yqmNum
|
|
84
|
+
}), "\uFF09"),
|
|
85
|
+
okrFeedParams: {
|
|
86
|
+
objId: toUserId,
|
|
87
|
+
objType: 1,
|
|
88
|
+
cycleType: Number(cycleType),
|
|
89
|
+
// 目标周期:0-自定义,1-年度,2-季度,3-月度
|
|
90
|
+
yqmNum: Number(yqmNum || 0),
|
|
91
|
+
annualNum: Number(annualNum)
|
|
92
|
+
},
|
|
93
|
+
userInfo: {
|
|
94
|
+
Id: userInfo.userId,
|
|
95
|
+
Name: userInfo.name,
|
|
96
|
+
Color: userInfo.avatar.color,
|
|
97
|
+
AvatarsUrl: userInfo.avatar.small,
|
|
98
|
+
Type: 1
|
|
99
|
+
}
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var _default = Comments;
|
|
104
|
+
exports["default"] = _default;
|