@titaui/pc 1.11.34 → 1.11.35-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/lib/components/avatar/name-avatar/index.css +1 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- package/lib/components/button/rect-btn/index.css +45 -11
- package/lib/components/button/rect-btn/index.js +12 -6
- package/lib/components/change-okr-modal/index.js +2 -1
- package/lib/components/checkbox/index.css +3 -3
- package/lib/components/create-okr-modal/index.js +3 -1
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +5 -1
- package/lib/components/drawer/headerDrop.js +42 -4
- package/lib/components/drawer/index.css +33 -0
- package/lib/components/drawer/index.js +26 -3
- package/lib/components/dynamic/dynamic-list/index.js +14 -6
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/nav-top/index.js +8 -4
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +20 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +9 -1
- package/lib/components/okr-detail/components/header/index.js +10 -3
- package/lib/components/okr-detail/components/header/o-name.js +10 -3
- package/lib/components/okr-detail/components/o-classify.js +5 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +13 -14
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +98 -43
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +55 -0
- package/lib/components/okr-detail/detail-header/index.css +11 -0
- package/lib/components/okr-detail/detail-header/index.js +228 -234
- package/lib/components/okr-detail/helper.js +108 -0
- package/lib/components/okr-detail/index.js +21 -4
- package/lib/components/okr-detail/okr-list/index.js +8 -3
- package/lib/components/okr-detail/request-apis.js +10 -4
- package/lib/components/okr-period-selector/index.js +9 -5
- package/lib/components/okr-period-selector/select-cycle.js +23 -19
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/task-relation-modal/request-api.js +2 -1
- package/lib/components/textarea/index.css +142 -0
- package/lib/components/textarea/index.js +259 -0
- package/lib/components/time-picker/time-picker.js +37 -93
- package/lib/components/toast/index.js +5 -3
- package/lib/index.js +40 -0
- package/lib/pages/new-okr-list/header/common.js +52 -0
- package/lib/pages/new-okr-list/header/index.css +45 -0
- package/lib/pages/new-okr-list/header/index.js +38 -16
- package/lib/{components/dynamic/dynamic-liking/index.js → pages/new-okr-list/header/operate-record.js} +91 -39
- package/lib/pages/new-okr-list/index.js +3 -1
- package/lib/pages/new-okr-list/list/index.js +19 -2
- package/lib/pages/new-okr-list/request-api.js +8 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +3 -5
- package/lib/utils/format-time.js +8 -1
- package/lib/utils/open-data.js +5 -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/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 -77
- 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
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +0 -38
|
@@ -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;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Options = exports.Icon = exports.DeleteWrapper = exports.DeleteTitle = exports.ButtonGroup = void 0;
|
|
7
|
-
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
-
|
|
16
|
-
var DeleteWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 300px;\n\n .tu-icon-warning {\n transition: all .3s ease-in;\n\n &:hover {\n color: #2879ff;\n }\n }\n"])));
|
|
17
|
-
|
|
18
|
-
exports.DeleteWrapper = DeleteWrapper;
|
|
19
|
-
|
|
20
|
-
var DeleteTitle = _styledComponents["default"].h2(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: #1F2329;\n"])));
|
|
21
|
-
|
|
22
|
-
exports.DeleteTitle = DeleteTitle;
|
|
23
|
-
|
|
24
|
-
var Options = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n align-items: center;\n\n p {\n margin: 6px;\n font-size: 12px;\n transition: all .3s ease-in;\n color: #3e4e59;\n\n &:hover {\n color: #2879ff;\n }\n }\n"])));
|
|
25
|
-
|
|
26
|
-
exports.Options = Options;
|
|
27
|
-
|
|
28
|
-
var ButtonGroup = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: 5px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n button {\n min-width: 58px !important;\n height: 30px !important;\n margin-left: 10px;\n white-space: nowrap;\n }\n"])));
|
|
29
|
-
|
|
30
|
-
exports.ButtonGroup = ButtonGroup;
|
|
31
|
-
|
|
32
|
-
var Icon = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 12px;\n color: ", ";\n\n &.tu-icon-diot {\n color: #a4acb9;\n }\n\n // &.okr-type {\n // font-size: 16px;\n // color: #7f91b4;\n // position: relative;\n // top: ", ";\n // }\n\n // &.tu-icon-bianji2 {\n // margin-left: 6px;\n // font-size: 14px;\n // color: #2879ff;\n // cursor: pointer;\n // }\n\n // &.tu-icon-heart-solid {\n // margin-right: 6px;\n // color: #ff8c00;\n // }\n\n &.execute-icon {\n font-size: 14px;\n cursor: pointer;\n position: relative;\n top: 2px;\n }\n\n &.tu-icon-singlebox-have,\n &.tu-icon-singlebox-avtive {\n font-size: 14px;\n color: #2879ff;\n }\n\n &.tu-icon-warning {\n font-size: 14px;\n color: #acb7bf;\n }\n\n &.tu-icon-more-diji {\n position: relative;\n\n &::after {\n content: '';\n \n }\n }\n"])), function (p) {
|
|
33
|
-
return p.color || "#89919F";
|
|
34
|
-
}, function (p) {
|
|
35
|
-
return p.top;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
exports.Icon = Icon;
|