@titaui/pc 1.11.57 → 1.11.59
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/create-okr-modal/index.js +3 -1
- package/lib/components/dynamic/dynamic-list/index.js +14 -7
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/package.json +2 -2
- package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
- package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/index.css +0 -21
- package/lib/components/dynamic/advertise/index.js +0 -126
- package/lib/components/dynamic/advertise/interface.js +0 -5
- package/lib/components/dynamic/advertise/util.js +0 -28
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
- package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
- package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -146
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/index.js +0 -79
- package/lib/components/dynamic/dynamic-liking/item.js +0 -75
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -141
- package/lib/components/dynamic/dynamic-topping/index.js +0 -82
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -153
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -173
- package/lib/components/dynamic/dynamic.js +0 -428
- package/lib/components/dynamic/export-module/index.js +0 -37
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +0 -184
- package/lib/components/dynamic/my-team/index.js +0 -263
- package/lib/components/dynamic/my-team/request-api.js +0 -52
- package/lib/components/dynamic/my-team/util.js +0 -20
- package/lib/components/dynamic/new-ui.css +0 -192
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
- package/lib/components/dynamic/online-broadcast/data.js +0 -95
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +0 -46
- package/lib/components/dynamic/online-broadcast/index.js +0 -61
- package/lib/components/dynamic/online-broadcast/interfact.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -44
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -120
|
@@ -1,120 +0,0 @@
|
|
|
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 _createOkr = _interopRequireDefault(require("./components/create-okr"));
|
|
13
|
-
|
|
14
|
-
var _createTask = _interopRequireDefault(require("./components/create-task"));
|
|
15
|
-
|
|
16
|
-
var _createShare = _interopRequireDefault(require("./components/create-share"));
|
|
17
|
-
|
|
18
|
-
var _createAnnouncement = _interopRequireDefault(require("./components/create-announcement"));
|
|
19
|
-
|
|
20
|
-
var _auth = require("../../../utils/auth");
|
|
21
|
-
|
|
22
|
-
var _createOkrModal = _interopRequireDefault(require("../../create-okr-modal"));
|
|
23
|
-
|
|
24
|
-
var _publishDynamicModal = _interopRequireDefault(require("../../publish-dynamic-modal/publish-dynamic-modal"));
|
|
25
|
-
|
|
26
|
-
var _toast = _interopRequireDefault(require("../../toast"));
|
|
27
|
-
|
|
28
|
-
var _bsGlobal = require("../../../utils/bs-global");
|
|
29
|
-
|
|
30
|
-
var _getLocale = require("../../../utils/getLocale");
|
|
31
|
-
|
|
32
|
-
require("./index.css");
|
|
33
|
-
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
var prefix = "titaui-pc-dynamic-quick-operation";
|
|
41
|
-
|
|
42
|
-
var DynamicQuickOperation = function DynamicQuickOperation(_ref) {
|
|
43
|
-
var _ref$showCreateOKr = _ref.showCreateOKr,
|
|
44
|
-
showCreateOKr = _ref$showCreateOKr === void 0 ? true : _ref$showCreateOKr,
|
|
45
|
-
_ref$showCreateTask = _ref.showCreateTask,
|
|
46
|
-
showCreateTask = _ref$showCreateTask === void 0 ? true : _ref$showCreateTask,
|
|
47
|
-
_ref$showCreateShare = _ref.showCreateShare,
|
|
48
|
-
showCreateShare = _ref$showCreateShare === void 0 ? true : _ref$showCreateShare,
|
|
49
|
-
_ref$showCreateAnnoun = _ref.showCreateAnnouncement,
|
|
50
|
-
showCreateAnnouncement = _ref$showCreateAnnoun === void 0 ? true : _ref$showCreateAnnoun;
|
|
51
|
-
var hasDynamicAnnouncementAuth = new _auth.DynamicManagerAuth().hasAuth();
|
|
52
|
-
var createTaskDivRef = (0, _react.useRef)(document.createElement("div"));
|
|
53
|
-
var isNewUI = (0, _bsGlobal.getBSGlobal)("tenantInfo").isNewIndex;
|
|
54
|
-
var newNavigation = (0, _bsGlobal.getBSGlobal)("newNavigation") || [];
|
|
55
|
-
var hasOKRApp = newNavigation.find(function (item) {
|
|
56
|
-
return item.appId === 113;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
var handleShowCreateOKrModal = function handleShowCreateOKrModal() {
|
|
60
|
-
// @ts-ignore
|
|
61
|
-
window.showCreateOkrModal && window.showCreateOkrModal();
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var handleShowCreateAnnouncement = function handleShowCreateAnnouncement() {
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
window.showPublishAnnouncementDynamicModal && window.showPublishAnnouncementDynamicModal();
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
var handleShowCreatShare = function handleShowCreatShare() {
|
|
70
|
-
// @ts-ignore
|
|
71
|
-
window.showPublishShareDynamicModal && window.showPublishShareDynamicModal();
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
var handleCreateTaskClick = function handleCreateTaskClick() {
|
|
75
|
-
// @ts-ignore
|
|
76
|
-
window.openCreateTaskPop(createTaskDivRef.current, {
|
|
77
|
-
createParams: {
|
|
78
|
-
objId: "",
|
|
79
|
-
objType: 4,
|
|
80
|
-
AppId: 1,
|
|
81
|
-
AppType: 1,
|
|
82
|
-
TaskType: 0
|
|
83
|
-
}
|
|
84
|
-
}).then(function () {
|
|
85
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Pro_tag_pop_Pubsuc"), {
|
|
86
|
-
canClose: false
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
setTimeout(function () {
|
|
90
|
-
// @ts-ignore 跳到我的发布页签
|
|
91
|
-
window.setTabsToPublish && window.setTabsToPublish();
|
|
92
|
-
}, 2000);
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
var handleAfterSuccess = function handleAfterSuccess() {
|
|
97
|
-
setTimeout(function () {
|
|
98
|
-
// @ts-ignore 跳到我的发布页签
|
|
99
|
-
window.setTabsToPublish && window.setTabsToPublish();
|
|
100
|
-
}, 2000);
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: prefix
|
|
105
|
-
}, showCreateOKr && (isNewUI && hasOKRApp || !isNewUI && (0, _bsGlobal.hasWebHead)("okr")) && /*#__PURE__*/_react["default"].createElement(_createOkr["default"], {
|
|
106
|
-
onClick: handleShowCreateOKrModal
|
|
107
|
-
}), showCreateTask && /*#__PURE__*/_react["default"].createElement(_createTask["default"], {
|
|
108
|
-
onClick: handleCreateTaskClick,
|
|
109
|
-
ref: createTaskDivRef
|
|
110
|
-
}), showCreateShare && /*#__PURE__*/_react["default"].createElement(_createShare["default"], {
|
|
111
|
-
onClick: handleShowCreatShare
|
|
112
|
-
}), showCreateAnnouncement && hasDynamicAnnouncementAuth && /*#__PURE__*/_react["default"].createElement(_createAnnouncement["default"], {
|
|
113
|
-
onClick: handleShowCreateAnnouncement
|
|
114
|
-
}), /*#__PURE__*/_react["default"].createElement(_createOkrModal["default"], {
|
|
115
|
-
onSuccess: handleAfterSuccess
|
|
116
|
-
}), /*#__PURE__*/_react["default"].createElement(_publishDynamicModal["default"], null));
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
var _default = DynamicQuickOperation;
|
|
120
|
-
exports["default"] = _default;
|