@titaui/pc 1.10.7 → 1.10.8-2.beta-1
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/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +3 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer/index.js +3 -2
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +27 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +34 -12
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-name.js +11 -4
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +40 -44
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +207 -195
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -2
- package/lib/components/okr-detail/index.js +4 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/scrollbar/index.js +67 -9
- package/lib/components/scrollbar/scroll-mask/index.css +29 -0
- package/lib/components/scrollbar/scroll-mask/index.js +152 -0
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +142 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/wechat-btn/index.css +10 -0
- package/lib/components/wechat-btn/index.js +232 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +39 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +10 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/package.json +121 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -0,0 +1,232 @@
|
|
|
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 _tooltip = _interopRequireDefault(require("../tooltip"));
|
|
15
|
+
|
|
16
|
+
var _dialogConfirm = _interopRequireWildcard(require("../dialog-confirm"));
|
|
17
|
+
|
|
18
|
+
var _getLocale = require("../../utils/getLocale");
|
|
19
|
+
|
|
20
|
+
var _request = require("../../utils/request");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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
|
+
|
|
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 preCls = 'titaui-wechat-btn';
|
|
43
|
+
|
|
44
|
+
var WeChatBtn = function WeChatBtn(props) {
|
|
45
|
+
var id = props.id,
|
|
46
|
+
objType = props.objType,
|
|
47
|
+
name = props.name;
|
|
48
|
+
|
|
49
|
+
var _useState = (0, _react.useState)(false),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
isShowWeChat = _useState2[0],
|
|
52
|
+
setIsShowWeChat = _useState2[1];
|
|
53
|
+
|
|
54
|
+
var _useState3 = (0, _react.useState)([]),
|
|
55
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
56
|
+
weChatGroupMember = _useState4[0],
|
|
57
|
+
setWeChatGroupMember = _useState4[1];
|
|
58
|
+
|
|
59
|
+
var _useState5 = (0, _react.useState)('chatId'),
|
|
60
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
61
|
+
chatId = _useState6[0],
|
|
62
|
+
setChatId = _useState6[1];
|
|
63
|
+
|
|
64
|
+
var _useState7 = (0, _react.useState)(),
|
|
65
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
66
|
+
loginUserOpenId = _useState8[0],
|
|
67
|
+
setLoginUserOpenId = _useState8[1];
|
|
68
|
+
|
|
69
|
+
var _useState9 = (0, _react.useState)(''),
|
|
70
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
71
|
+
url = _useState10[0],
|
|
72
|
+
setUrl = _useState10[1];
|
|
73
|
+
|
|
74
|
+
var _useState11 = (0, _react.useState)(false),
|
|
75
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
76
|
+
createWechatVisible = _useState12[0],
|
|
77
|
+
setCreateWechatVisible = _useState12[1];
|
|
78
|
+
|
|
79
|
+
var _useState13 = (0, _react.useState)(''),
|
|
80
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
81
|
+
tooltip = _useState14[0],
|
|
82
|
+
setTooltip = _useState14[1];
|
|
83
|
+
|
|
84
|
+
var isWx = navigator.userAgent.match(/wxwork/);
|
|
85
|
+
|
|
86
|
+
var handleClickWechatBtn = function handleClickWechatBtn() {
|
|
87
|
+
if (isWx) {
|
|
88
|
+
//有群了,判断没在群就先进群再打开群
|
|
89
|
+
if (chatId !== null && chatId !== 'chatId') {
|
|
90
|
+
wx.invoke('openExistedChatWithMsg', {
|
|
91
|
+
chatId: chatId,
|
|
92
|
+
msg: {
|
|
93
|
+
msgtype: 'link',
|
|
94
|
+
link: {
|
|
95
|
+
title: name,
|
|
96
|
+
desc: 'desc1',
|
|
97
|
+
url: 'link1',
|
|
98
|
+
imgUrl: 'imgurl1'
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}, function (res) {
|
|
102
|
+
if (res.err_msg === 'openExistedChatWithMsg:fail_fail_Invalid_chatId') {
|
|
103
|
+
wx.invoke('updateEnterpriseChat', {
|
|
104
|
+
chatId: chatId,
|
|
105
|
+
userIdsToAdd: loginUserOpenId
|
|
106
|
+
}, function (res) {
|
|
107
|
+
if (res.err_msg === 'updateEnterpriseChat:ok') {}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
} else {
|
|
112
|
+
setCreateWechatVisible(true);
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var closeCreateWeChatModal = function closeCreateWeChatModal() {
|
|
120
|
+
setCreateWechatVisible(false);
|
|
121
|
+
}; //创建群聊or打开群聊
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
var handleCreateGroupChat = function handleCreateGroupChat() {
|
|
125
|
+
wx.invoke('createChatWithMsg', {
|
|
126
|
+
selectedOpenUserIds: weChatGroupMember,
|
|
127
|
+
chatName: name,
|
|
128
|
+
msg: {
|
|
129
|
+
msgtype: 'link',
|
|
130
|
+
link: {
|
|
131
|
+
title: name,
|
|
132
|
+
desc: '',
|
|
133
|
+
url: url,
|
|
134
|
+
imgUrl: 'https://club.tita.com/wp-content/uploads/2022/03/1648725106-20220331191146996.png'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, function (res) {
|
|
138
|
+
if (res.err_msg == 'createChatWithMsg:ok') {
|
|
139
|
+
if (res.chatId) {
|
|
140
|
+
(0, _request.rpost)('v1')('chat/add', {
|
|
141
|
+
objId: id,
|
|
142
|
+
objType: objType,
|
|
143
|
+
chatId: res.chatId
|
|
144
|
+
});
|
|
145
|
+
wx.invoke('openExistedChatWithMsg', {
|
|
146
|
+
chatId: res.chatId,
|
|
147
|
+
msg: {
|
|
148
|
+
msgtype: 'link',
|
|
149
|
+
link: {
|
|
150
|
+
title: name,
|
|
151
|
+
desc: 'desc1',
|
|
152
|
+
url: url,
|
|
153
|
+
imgUrl: 'imgurl1'
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}, function (res) {
|
|
157
|
+
if (res.err_msg === 'openExistedChatWithMsg:ok') {}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
setCreateWechatVisible(false);
|
|
163
|
+
}; //chatId 为null表示未创建群聊 chatId为默认值chatId表示不是企业微信工作台,可能是其他浏览器等 chatId有值,表示创建了群聊
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
(0, _react.useEffect)(function () {
|
|
167
|
+
(0, _request.rpost)('v1')('chat/info', {
|
|
168
|
+
objId: id,
|
|
169
|
+
objType: objType
|
|
170
|
+
}).then(function (res) {
|
|
171
|
+
if (res.Message === '没有权限') {
|
|
172
|
+
setIsShowWeChat(false);
|
|
173
|
+
return;
|
|
174
|
+
} else {
|
|
175
|
+
setIsShowWeChat(true);
|
|
176
|
+
|
|
177
|
+
if (isWx) {
|
|
178
|
+
setChatId(res.Data.obj);
|
|
179
|
+
(0, _request.rpost)('v1')('chat/users', {
|
|
180
|
+
objId: id,
|
|
181
|
+
objType: objType
|
|
182
|
+
}).then(function (res) {
|
|
183
|
+
setWeChatGroupMember(res.Data.openUserIds);
|
|
184
|
+
setUrl(res.Data.link);
|
|
185
|
+
});
|
|
186
|
+
(0, _request.rpost)('v1')('chat/user', {
|
|
187
|
+
objId: id,
|
|
188
|
+
objType: objType
|
|
189
|
+
}).then(function (res) {
|
|
190
|
+
setLoginUserOpenId(res.Data.obj);
|
|
191
|
+
});
|
|
192
|
+
} else {
|
|
193
|
+
setIsShowWeChat(true);
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}, [chatId]);
|
|
199
|
+
(0, _react.useEffect)(function () {
|
|
200
|
+
if (isShowWeChat && chatId === null) {
|
|
201
|
+
setTooltip((0, _getLocale.getLocale)('OKR_Db_ClickWeComg'));
|
|
202
|
+
} else if (isShowWeChat && chatId !== null && chatId !== 'chatId') {
|
|
203
|
+
setTooltip('进入群聊');
|
|
204
|
+
} else if (isShowWeChat && chatId === 'chatId') {
|
|
205
|
+
setTooltip('浏览器不支持此功能,请到企业微信工作台中使用');
|
|
206
|
+
}
|
|
207
|
+
}, [chatId, isShowWeChat]);
|
|
208
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
209
|
+
overlay: tooltip,
|
|
210
|
+
placement: "bottom"
|
|
211
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
212
|
+
className: (0, _classnames["default"])(preCls, 'tu-icon-qw-chat'),
|
|
213
|
+
onMouseDown: handleClickWechatBtn
|
|
214
|
+
})), /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
|
|
215
|
+
zIndex: 1200,
|
|
216
|
+
visible: createWechatVisible,
|
|
217
|
+
type: "warning"
|
|
218
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
219
|
+
type: "title"
|
|
220
|
+
}, "\u786E\u5B9A\u53D1\u8D77\u7FA4\u804A\u5417"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
221
|
+
type: "content"
|
|
222
|
+
}, '可选择任务相关人员快速建群沟通。注意,至少选择 3 人,才能正常发起群聊。'), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
223
|
+
type: "button",
|
|
224
|
+
onClick: closeCreateWeChatModal
|
|
225
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
|
|
226
|
+
type: "button",
|
|
227
|
+
onClick: handleCreateGroupChat
|
|
228
|
+
}, "\u53D1\u8D77\u7FA4\u804A")));
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
var _default = WeChatBtn;
|
|
232
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createGlobalState = createGlobalState;
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
|
|
13
|
+
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."); }
|
|
14
|
+
|
|
15
|
+
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); }
|
|
16
|
+
|
|
17
|
+
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; }
|
|
18
|
+
|
|
19
|
+
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; }
|
|
20
|
+
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
|
|
23
|
+
function createGlobalState(initialState) {
|
|
24
|
+
var store = {
|
|
25
|
+
state: initialState,
|
|
26
|
+
setState: function setState(state) {
|
|
27
|
+
if (Object.prototype.toString.call(state) === "[object Function]") {
|
|
28
|
+
var stateFunc = state;
|
|
29
|
+
store.state = stateFunc(store.state);
|
|
30
|
+
} else {
|
|
31
|
+
store.state = state;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
store.setters.forEach(function (setter) {
|
|
35
|
+
return setter(store.state);
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
setters: []
|
|
39
|
+
};
|
|
40
|
+
return function () {
|
|
41
|
+
var _useState = (0, _react.useState)(store.state),
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
globalState = _useState2[0],
|
|
44
|
+
stateSetter = _useState2[1];
|
|
45
|
+
|
|
46
|
+
(0, _react.useEffect)(function () {
|
|
47
|
+
return function () {
|
|
48
|
+
store.setters = store.setters.filter(function (setter) {
|
|
49
|
+
return setter !== stateSetter;
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
}, []);
|
|
53
|
+
(0, _react.useLayoutEffect)(function () {
|
|
54
|
+
if (!store.setters.includes(stateSetter)) {
|
|
55
|
+
store.setters.push(stateSetter);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return [globalState, store.setState];
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
var _default = createGlobalState;
|
|
63
|
+
exports["default"] = _default;
|
package/lib/index.js
CHANGED
|
@@ -117,6 +117,12 @@ Object.defineProperty(exports, "ERROR_LEVEL", {
|
|
|
117
117
|
return _errorLevel["default"];
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
+
Object.defineProperty(exports, "EStatusDropdown", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _eStatusDropdown["default"];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
120
126
|
Object.defineProperty(exports, "EmotionsSelector", {
|
|
121
127
|
enumerable: true,
|
|
122
128
|
get: function get() {
|
|
@@ -141,12 +147,6 @@ Object.defineProperty(exports, "FileList", {
|
|
|
141
147
|
return _fileList["default"];
|
|
142
148
|
}
|
|
143
149
|
});
|
|
144
|
-
Object.defineProperty(exports, "FloatFixedVideoModal", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function get() {
|
|
147
|
-
return _floatFixedVideoModal["default"];
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
150
|
Object.defineProperty(exports, "FollowerVisitor", {
|
|
151
151
|
enumerable: true,
|
|
152
152
|
get: function get() {
|
|
@@ -333,6 +333,12 @@ Object.defineProperty(exports, "PasswordInput", {
|
|
|
333
333
|
return _passwordInput["default"];
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
|
+
Object.defineProperty(exports, "PayPage", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function get() {
|
|
339
|
+
return _pay["default"];
|
|
340
|
+
}
|
|
341
|
+
});
|
|
336
342
|
Object.defineProperty(exports, "PeriodSelector", {
|
|
337
343
|
enumerable: true,
|
|
338
344
|
get: function get() {
|
|
@@ -381,6 +387,12 @@ Object.defineProperty(exports, "RangePickerPop", {
|
|
|
381
387
|
return _rangePickerPop["default"];
|
|
382
388
|
}
|
|
383
389
|
});
|
|
390
|
+
Object.defineProperty(exports, "RichEditor", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get: function get() {
|
|
393
|
+
return _richEditor["default"];
|
|
394
|
+
}
|
|
395
|
+
});
|
|
384
396
|
Object.defineProperty(exports, "Scrollbar", {
|
|
385
397
|
enumerable: true,
|
|
386
398
|
get: function get() {
|
|
@@ -423,6 +435,12 @@ Object.defineProperty(exports, "StatusTime", {
|
|
|
423
435
|
return _statusTime["default"];
|
|
424
436
|
}
|
|
425
437
|
});
|
|
438
|
+
Object.defineProperty(exports, "SupersetCharts", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get: function get() {
|
|
441
|
+
return _supersetCharts["default"];
|
|
442
|
+
}
|
|
443
|
+
});
|
|
426
444
|
Object.defineProperty(exports, "Switch", {
|
|
427
445
|
enumerable: true,
|
|
428
446
|
get: function get() {
|
|
@@ -513,6 +531,12 @@ Object.defineProperty(exports, "VideoModal", {
|
|
|
513
531
|
return _videoModal["default"];
|
|
514
532
|
}
|
|
515
533
|
});
|
|
534
|
+
Object.defineProperty(exports, "WechatBtn", {
|
|
535
|
+
enumerable: true,
|
|
536
|
+
get: function get() {
|
|
537
|
+
return _wechatBtn["default"];
|
|
538
|
+
}
|
|
539
|
+
});
|
|
516
540
|
Object.defineProperty(exports, "WeeklyReport", {
|
|
517
541
|
enumerable: true,
|
|
518
542
|
get: function get() {
|
|
@@ -578,6 +602,8 @@ var _progress = _interopRequireDefault(require("./components/progress"));
|
|
|
578
602
|
|
|
579
603
|
var _ePriority = _interopRequireDefault(require("./components/e-priority"));
|
|
580
604
|
|
|
605
|
+
var _eStatusDropdown = _interopRequireDefault(require("./components/e-status-dropdown"));
|
|
606
|
+
|
|
581
607
|
var _statusTime = _interopRequireDefault(require("./components/status-time"));
|
|
582
608
|
|
|
583
609
|
var _tree = _interopRequireDefault(require("./components/tree"));
|
|
@@ -738,8 +764,14 @@ var _uploadPhotoModal = _interopRequireDefault(require("./components/upload-phot
|
|
|
738
764
|
|
|
739
765
|
var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
|
|
740
766
|
|
|
767
|
+
var _pay = _interopRequireDefault(require("./pages/pay"));
|
|
768
|
+
|
|
769
|
+
var _richEditor = _interopRequireDefault(require("./components/rich-editor"));
|
|
770
|
+
|
|
741
771
|
var _videoModal = _interopRequireDefault(require("./components/video-modal"));
|
|
742
772
|
|
|
743
|
-
var
|
|
773
|
+
var _supersetCharts = _interopRequireDefault(require("./components/superset-charts"));
|
|
774
|
+
|
|
775
|
+
var _wechatBtn = _interopRequireDefault(require("./components/wechat-btn"));
|
|
744
776
|
|
|
745
777
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="整体框架" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="二级菜单-交互说明" transform="translate(-1895.000000, -977.000000)" fill="#141C28">
|
|
6
|
+
<g id="弹层1" transform="translate(1881.000000, 467.000000)">
|
|
7
|
+
<g id="canceled" transform="translate(14.000000, 510.000000)">
|
|
8
|
+
<path d="M18.5178716,4.33431458 C18.8693434,3.98284271 19.4391919,3.98284271 19.7906638,4.33431458 C20.1421356,4.68578644 20.1421356,5.25563492 19.7906638,5.60710678 L19.7906638,5.60710678 L13.2847107,12.1117107 L19.7906638,18.6178716 C20.1421356,18.9693434 20.1421356,19.5391919 19.7906638,19.8906638 C19.4391919,20.2421356 18.8693434,20.2421356 18.5178716,19.8906638 L12.0117107,13.3847107 L5.50710678,19.8906638 C5.18492424,20.2128463 4.67924468,20.2396948 4.3264793,19.9712094 L4.23431458,19.8906638 C3.88284271,19.5391919 3.88284271,18.9693434 4.23431458,18.6178716 L4.23431458,18.6178716 L10.7397107,12.1117107 L4.23431458,5.60710678 C3.88284271,5.25563492 3.88284271,4.68578644 4.23431458,4.33431458 C4.58578644,3.98284271 5.15563492,3.98284271 5.50710678,4.33431458 L12.0117107,10.8397107 Z" id="形状结合"></path>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -25,10 +25,18 @@
|
|
|
25
25
|
z-index: 2;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
.titaui-aha-2021__try-kefu {
|
|
29
|
+
position: absolute;
|
|
30
|
+
bottom: 134px;
|
|
31
|
+
right: 24px;
|
|
32
|
+
z-index: 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
.titaui-aha-2021__kefu {
|
|
29
36
|
width: 42px;
|
|
30
37
|
height: 42px;
|
|
31
38
|
background: url("./img/kefu.svg") no-repeat;
|
|
39
|
+
background-color: #fff;
|
|
32
40
|
background-size: 42px;
|
|
33
41
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
34
42
|
cursor: pointer;
|
|
@@ -84,6 +92,50 @@
|
|
|
84
92
|
animation: contentOpacity 0.7s 1 forwards;
|
|
85
93
|
}
|
|
86
94
|
|
|
95
|
+
.titaui-aha-2021__hidden {
|
|
96
|
+
background-image: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.titaui-aha-2021__cancel {
|
|
100
|
+
height: 100%;
|
|
101
|
+
background: url("./img/canceled.svg") 50% 50% no-repeat;
|
|
102
|
+
animation-duration: 0.3s;
|
|
103
|
+
animation-name: kefuActive;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.titaui-aha-2021__popup {
|
|
107
|
+
width: 332px;
|
|
108
|
+
height: 376px;
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
align-items: center;
|
|
113
|
+
background: #ffffff;
|
|
114
|
+
box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.16);
|
|
115
|
+
border-radius: 24px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.titaui-aha-2021__popup-title {
|
|
119
|
+
font-size: 20px;
|
|
120
|
+
font-weight: 600;
|
|
121
|
+
color: #141c28;
|
|
122
|
+
line-height: 30px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.titaui-aha-2021__popup-content {
|
|
126
|
+
margin-top: 4px;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
font-weight: normal;
|
|
129
|
+
color: #6f7886;
|
|
130
|
+
line-height: 22px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.titaui-aha-2021__popup-img {
|
|
134
|
+
width: 200px;
|
|
135
|
+
height: 200px;
|
|
136
|
+
margin-top: 24px;
|
|
137
|
+
}
|
|
138
|
+
|
|
87
139
|
@keyframes contentOpacity {
|
|
88
140
|
from {
|
|
89
141
|
opacity: 0;
|
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _tooltip = _interopRequireDefault(require("../../components/tooltip"));
|
|
15
15
|
|
|
16
|
+
var _popup = _interopRequireDefault(require("../../components/popup"));
|
|
17
|
+
|
|
16
18
|
var _navTop = _interopRequireDefault(require("../../components/nav-top"));
|
|
17
19
|
|
|
18
20
|
var _followerVisitor = _interopRequireDefault(require("../../components/follower-visitor"));
|
|
@@ -25,8 +27,6 @@ var _bookDemo = _interopRequireDefault(require("../../components/book-demo"));
|
|
|
25
27
|
|
|
26
28
|
var _platform = require("../../utils/platform");
|
|
27
29
|
|
|
28
|
-
require("./index.css");
|
|
29
|
-
|
|
30
30
|
var _helpers = require("../../utils/helpers");
|
|
31
31
|
|
|
32
32
|
var _hrHeader = _interopRequireDefault(require("../../components/hr-header"));
|
|
@@ -39,12 +39,32 @@ var _errorBoundary = _interopRequireDefault(require("../../components/error-boun
|
|
|
39
39
|
|
|
40
40
|
var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
|
|
41
41
|
|
|
42
|
+
var _notTry = _interopRequireDefault(require("./img/not-try.png"));
|
|
43
|
+
|
|
44
|
+
var _try = _interopRequireDefault(require("./img/try.png"));
|
|
45
|
+
|
|
46
|
+
require("./index.css");
|
|
47
|
+
|
|
42
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
43
49
|
|
|
44
50
|
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); }
|
|
45
51
|
|
|
46
52
|
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; }
|
|
47
53
|
|
|
54
|
+
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; }
|
|
55
|
+
|
|
56
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
|
+
|
|
58
|
+
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."); }
|
|
59
|
+
|
|
60
|
+
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); }
|
|
61
|
+
|
|
62
|
+
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; }
|
|
63
|
+
|
|
64
|
+
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; }
|
|
65
|
+
|
|
66
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
|
+
|
|
48
68
|
var preCls = "titaui-aha-2021";
|
|
49
69
|
|
|
50
70
|
function ContentTemplate(props) {
|
|
@@ -70,19 +90,29 @@ function ContentTemplate(props) {
|
|
|
70
90
|
|
|
71
91
|
function PageLayout(props) {
|
|
72
92
|
var children = props.children;
|
|
73
|
-
var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
|
|
74
|
-
var isTencentHr = window.BSGlobal.tenantInfo.Source === 964;
|
|
75
93
|
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
94
|
+
var _useState = (0, _react.useState)(false),
|
|
95
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
96
|
+
visible = _useState2[0],
|
|
97
|
+
setVisible = _useState2[1];
|
|
98
|
+
|
|
99
|
+
var handleShowCode = function handleShowCode() {
|
|
100
|
+
setVisible(true);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
|
|
104
|
+
var isTencentHr = window.BSGlobal.tenantInfo.Source === 964; // const onClickKefu = () => {
|
|
105
|
+
// const kefuUrl = isTrial
|
|
106
|
+
// ? 'https://wpa1.qq.com/vZYKN3kT?_type=wpa&qidian=true'
|
|
107
|
+
// : 'https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true'
|
|
108
|
+
// window.open(kefuUrl)
|
|
109
|
+
// }
|
|
110
|
+
// const onClickNotice = () => {
|
|
80
111
|
// let domain = `//${location.host}/u/${window.BSGlobal.loginUserInfo.Id}/Home`;
|
|
81
112
|
// let hash = `#more/messages?messageType=1&isRead=2&messageSubNav=1`
|
|
82
113
|
// window.open(domain + hash);
|
|
83
114
|
// };
|
|
84
115
|
|
|
85
|
-
|
|
86
116
|
var getBookDemoVersion = function getBookDemoVersion() {
|
|
87
117
|
var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
|
|
88
118
|
|
|
@@ -97,6 +127,18 @@ function PageLayout(props) {
|
|
|
97
127
|
return _bookDemo["default"].DemoType.UniversalBookDemo;
|
|
98
128
|
};
|
|
99
129
|
|
|
130
|
+
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
className: "".concat(preCls, "__popup")
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: "".concat(preCls, "__popup-title")
|
|
134
|
+
}, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: "".concat(preCls, "__popup-content")
|
|
136
|
+
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
137
|
+
src: isTrial ? _try["default"] : _notTry["default"],
|
|
138
|
+
className: "".concat(preCls, "__popup-img"),
|
|
139
|
+
alt: "\u5FAE\u4FE1\u626B\u7801"
|
|
140
|
+
}));
|
|
141
|
+
|
|
100
142
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
101
143
|
className: (0, _classnames["default"])(preCls)
|
|
102
144
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -110,16 +152,33 @@ function PageLayout(props) {
|
|
|
110
152
|
}
|
|
111
153
|
}, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
154
|
className: (0, _classnames["default"])("".concat(preCls, "__help"))
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !
|
|
155
|
+
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTencentHr && !(0, _helpers.isDingDing)() && !(0, _helpers.isFeishu)() && /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
156
|
+
popup: popup,
|
|
157
|
+
popupTransitionName: "tita-popup-zoom-left-bottom",
|
|
158
|
+
placement: "topLeft",
|
|
159
|
+
popupAlign: {
|
|
160
|
+
offset: [-32, -10],
|
|
161
|
+
overflow: {
|
|
162
|
+
adjustX: 1,
|
|
163
|
+
adjustY: 1
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
popupVisible: visible,
|
|
167
|
+
onPopupVisibleChange: function onPopupVisibleChange(bol) {
|
|
168
|
+
return setVisible(bol);
|
|
169
|
+
}
|
|
170
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
114
171
|
overlay: "\u8054\u7CFB\u5BA2\u670D",
|
|
115
|
-
placement: "
|
|
172
|
+
placement: "right",
|
|
116
173
|
align: {
|
|
117
174
|
offset: [0, 0]
|
|
118
175
|
}
|
|
119
176
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: "".concat(preCls, "__kefu"),
|
|
121
|
-
onClick:
|
|
122
|
-
}
|
|
177
|
+
className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__try-kefu"), isTrial), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
|
|
178
|
+
onClick: handleShowCode
|
|
179
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__cancel"), visible))
|
|
181
|
+
})))), isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
182
|
className: "".concat(preCls, "__invite")
|
|
124
183
|
}, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
125
184
|
errorLevel: _errorLevel["default"].P0,
|
|
@@ -183,7 +183,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
183
183
|
}), /*#__PURE__*/_react["default"].createElement("label", {
|
|
184
184
|
htmlFor: "total",
|
|
185
185
|
className: "text"
|
|
186
|
-
}, (0, _getLocale.getLocale)("
|
|
186
|
+
}, (0, _getLocale.getLocale)("Backst_Visibletoall"))), /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_titaUi.Radio, {
|
|
187
187
|
id: "scope",
|
|
188
188
|
checked: scopeChecked == 1,
|
|
189
189
|
onChange: function onChange() {
|