@titaui/pc 1.16.20 → 1.16.23

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.
Files changed (35) hide show
  1. package/lib/components/change-okr-modal/Filter.js +4 -17
  2. package/lib/components/communication/CommunicationAttachments.js +30 -20
  3. package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +5 -3
  4. package/lib/components/create-okr-modal/fields/okr-type-detail.js +3 -3
  5. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +16 -10
  6. package/lib/components/create-okr-modal/fields/okr-visibility.js +27 -17
  7. package/lib/components/create-okr-modal/index.js +2 -2
  8. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +7 -3
  9. package/lib/components/e-priority/index.js +3 -3
  10. package/lib/components/file-preview/index.js +6 -4
  11. package/lib/components/mblog/components/MblogAction.js +24 -20
  12. package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +10 -4
  13. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +3 -3
  14. package/lib/components/okr-detail/detail-header/actions.js +17 -6
  15. package/lib/components/okr-detail/detail-header/index.js +1 -1
  16. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +15 -8
  17. package/lib/components/okr-excel-create/components/okr-visibility/index.js +13 -7
  18. package/lib/components/okr-excel-create/components-new/okr-visibility/index.js +13 -7
  19. package/lib/components/okr-excel-create/utils.js +1 -1
  20. package/lib/components/okr-flow/utils/tree-handler.js +11 -14
  21. package/lib/components/okr-period-selector/select-cycle.js +5 -5
  22. package/lib/components/okr-progress-modal/index.js +31 -30
  23. package/lib/components/okr-share/pink-card/card.js +2 -2
  24. package/lib/components/operation-records/OperationRecordItem.js +3 -3
  25. package/lib/components/search-input/index.js +18 -15
  26. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +5 -5
  27. package/lib/components/upload/components/uploadedPreview.js +49 -29
  28. package/lib/components/upload/index.js +7 -5
  29. package/lib/components/upload/index2.js +2 -2
  30. package/lib/components/upvote/upvoteListModal.js +8 -4
  31. package/lib/components/user-selector/action-btns/index.js +15 -9
  32. package/package.json +1 -1
  33. package/lib/components/user-selector/action-btns/btn-cancel.js +0 -21
  34. package/lib/components/user-selector/action-btns/btn-ok.js +0 -21
  35. package/lib/components/user-selector/action-btns/index.css +0 -55
@@ -92,7 +92,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
92
92
  _classCallCheck(this, FilterComp);
93
93
 
94
94
  _this = _super.call(this, p);
95
- _this.KRSetting = (_getBSGlobal = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting")) === null || _getBSGlobal === void 0 ? void 0 : _getBSGlobal.KRSetting;
95
+ _this.KRSetting = (_getBSGlobal = (0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting')) === null || _getBSGlobal === void 0 ? void 0 : _getBSGlobal.KRSetting;
96
96
 
97
97
  _this.handleDeleteUser = function (id) {
98
98
  var _this$props = _this.props,
@@ -238,7 +238,6 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
238
238
  });
239
239
  };
240
240
 
241
- console.log('-----');
242
241
  _this.state = {
243
242
  OptionsArray: [{
244
243
  index: 0,
@@ -439,11 +438,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
439
438
  }
440
439
  }));
441
440
  }), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
442
- overlay: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Clearselec'),
443
- placement: "top",
444
- align: {
445
- offset: [0, 5]
446
- }
441
+ overlay: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Clearselec')
447
442
  }, /*#__PURE__*/_react["default"].createElement("a", {
448
443
  onClick: this.handleClear
449
444
  }, (0, _getLocale.getLocale)('OKR_MyO_Pop_Clearselected'))), !remembered ? /*#__PURE__*/_react["default"].createElement("a", {
@@ -451,11 +446,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
451
446
  return _this2.handlerFilterOptions(1);
452
447
  }
453
448
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
454
- overlay: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Nextcondit'),
455
- placement: "top",
456
- align: {
457
- offset: [0, 5]
458
- }
449
+ overlay: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Nextcondit')
459
450
  }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('OKR_MyO_Butt_Remember')))) : /*#__PURE__*/_react["default"].createElement(_ConfirmPop["default"], {
460
451
  align: "bottom left",
461
452
  confirmTipText: (0, _getLocale.getLocale)('OKR_MyO_Err_Bemembere'),
@@ -463,11 +454,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
463
454
  return _this2.handlerFilterOptions(2);
464
455
  }
465
456
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
466
- overlay: (0, _getLocale.getLocale)('OKR_MyO_Err_Showabove'),
467
- placement: "top",
468
- align: {
469
- offset: [0, 5]
470
- }
457
+ overlay: (0, _getLocale.getLocale)('OKR_MyO_Err_Showabove')
471
458
  }, /*#__PURE__*/_react["default"].createElement("a", null, (0, _getLocale.getLocale)('OKR_MyO_Pop_Cancelremember')))))));
472
459
  }
473
460
  }]);
@@ -9,7 +9,7 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _titaUi = require("tita-ui");
12
+ var _tooltip = _interopRequireDefault(require("../tooltip"));
13
13
 
14
14
  var _viewer = require("../viewer");
15
15
 
@@ -19,6 +19,8 @@ var _style = require("./style");
19
19
 
20
20
  var _getLocale = require("../../utils/getLocale");
21
21
 
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
22
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); }
23
25
 
24
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; }
@@ -44,7 +46,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
44
46
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
47
 
46
48
  var RVIewerOptions = {
47
- className: "preview-image-container",
49
+ className: 'preview-image-container',
48
50
  toolbar: {
49
51
  zoomIn: 4,
50
52
  zoomOut: 4,
@@ -89,7 +91,7 @@ var CommunicationAttachments = /*#__PURE__*/function (_PureComponent) {
89
91
  src: item.smallImageUrl,
90
92
  alt: "",
91
93
  style: {
92
- cursor: "pointer"
94
+ cursor: 'pointer'
93
95
  },
94
96
  onMouseDown: function onMouseDown(event) {
95
97
  _this.RViewers.show(index);
@@ -106,14 +108,14 @@ var CommunicationAttachments = /*#__PURE__*/function (_PureComponent) {
106
108
  };
107
109
 
108
110
  _this.renderPreviewTrigger = function (item, index) {
109
- if (item.previewUrl != null && item.previewUrl != "") {
111
+ if (item.previewUrl != null && item.previewUrl != '') {
110
112
  // 有预览链接
111
113
  if (item.smallImageUrl && item.documentSource == 1) {
112
114
  // 图片文件
113
115
  return /*#__PURE__*/_react["default"].createElement("span", {
114
116
  style: {
115
- color: "#2879ff",
116
- cursor: "pointer"
117
+ color: '#2879ff',
118
+ cursor: 'pointer'
117
119
  },
118
120
  onMouseDown: function onMouseDown(event) {
119
121
  _this.RViewers.show(index);
@@ -121,9 +123,11 @@ var CommunicationAttachments = /*#__PURE__*/function (_PureComponent) {
121
123
  event.stopPropagation();
122
124
  event.nativeEvent.stopImmediatePropagation();
123
125
  }
124
- }, _this.props.mode == "column" ? (0, _getLocale.getLocale)("Mod_Preview") : /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
125
- content: (0, _getLocale.getLocale)("Mod_Preview"),
126
- container: document.body
126
+ }, _this.props.mode == 'column' ? (0, _getLocale.getLocale)('Mod_Preview') : /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
127
+ overlay: (0, _getLocale.getLocale)('Mod_Preview'),
128
+ getTooltipContainer: function getTooltipContainer() {
129
+ return document.body;
130
+ }
127
131
  }, /*#__PURE__*/_react["default"].createElement("span", {
128
132
  className: "tu-icon-magnifier-circle"
129
133
  })));
@@ -135,9 +139,11 @@ var CommunicationAttachments = /*#__PURE__*/function (_PureComponent) {
135
139
  target: "_blank",
136
140
  "data-attachment": "preview",
137
141
  rel: "noreferrer"
138
- }, _this.props.mode == "column" ? (0, _getLocale.getLocale)("Mod_Preview") : /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
139
- content: (0, _getLocale.getLocale)("Mod_Preview"),
140
- container: document.body
142
+ }, _this.props.mode == 'column' ? (0, _getLocale.getLocale)('Mod_Preview') : /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
143
+ overlay: (0, _getLocale.getLocale)('Mod_Preview'),
144
+ getTooltipContainer: function getTooltipContainer() {
145
+ return document.body;
146
+ }
141
147
  }, /*#__PURE__*/_react["default"].createElement("span", {
142
148
  className: "tu-icon-magnifier-circle"
143
149
  })));
@@ -192,11 +198,13 @@ var CommunicationAttachments = /*#__PURE__*/function (_PureComponent) {
192
198
  }), attachments.length > 0 && attachments.map(function (item, index) {
193
199
  return /*#__PURE__*/_react["default"].createElement(_style.AttachmentItemWrapper, {
194
200
  style: itemStyle,
195
- className: "".concat(className, " ").concat(mode == "column" ? "" : "row-wrapper"),
201
+ className: "".concat(className, " ").concat(mode == 'column' ? '' : 'row-wrapper'),
196
202
  key: item.documentId
197
- }, _this2.renderAttachmentPreviewThumbnail(item, index), /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
198
- content: item.fileName,
199
- container: document.body
203
+ }, _this2.renderAttachmentPreviewThumbnail(item, index), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
204
+ overlay: item.fileName,
205
+ getTooltipContainer: function getTooltipContainer() {
206
+ return document.body;
207
+ }
200
208
  }, /*#__PURE__*/_react["default"].createElement(_style.AttachmentItemName, {
201
209
  className: "file-name"
202
210
  }, item.fileName)), /*#__PURE__*/_react["default"].createElement(_style.AttachmentAction, {
@@ -204,9 +212,11 @@ var CommunicationAttachments = /*#__PURE__*/function (_PureComponent) {
204
212
  }, /*#__PURE__*/_react["default"].createElement("a", {
205
213
  href: item.downloadUrl,
206
214
  "data-attachment": "dowload"
207
- }, mode == "column" ? (0, _getLocale.getLocale)("Mod_Download") : /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
208
- content: (0, _getLocale.getLocale)("Mod_Download"),
209
- container: document.body
215
+ }, mode == 'column' ? (0, _getLocale.getLocale)('Mod_Download') : /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
216
+ overlay: (0, _getLocale.getLocale)('Mod_Download'),
217
+ getTooltipContainer: function getTooltipContainer() {
218
+ return document.body;
219
+ }
210
220
  }, /*#__PURE__*/_react["default"].createElement("span", {
211
221
  className: "tu-icon-download-circle"
212
222
  }))), _this2.renderPreviewTrigger(item, index)));
@@ -219,5 +229,5 @@ var CommunicationAttachments = /*#__PURE__*/function (_PureComponent) {
219
229
 
220
230
  exports["default"] = CommunicationAttachments;
221
231
  CommunicationAttachments.defaultProps = {
222
- mode: "column"
232
+ mode: 'column'
223
233
  };
@@ -49,7 +49,7 @@ function NewUserSelector(_ref) {
49
49
  widthOverflow = _useState2[0],
50
50
  setWidthOverflow = _useState2[1];
51
51
 
52
- var spanRef = (0, _react.useRef)(document.createElement("span"));
52
+ var spanRef = (0, _react.useRef)(document.createElement('span'));
53
53
 
54
54
  var onUserSelectorSubmitHandler = function onUserSelectorSubmitHandler(users) {
55
55
  var data = users[0].data;
@@ -99,11 +99,13 @@ function NewUserSelector(_ref) {
99
99
  name: user.Name,
100
100
  userId: user.Id
101
101
  }), widthOverflow ? /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
102
- content: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
102
+ overlay: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
103
103
  name: user.Name,
104
104
  id: user.Id
105
105
  }),
106
- container: document.body
106
+ getTooltipContainer: function getTooltipContainer() {
107
+ return document.body;
108
+ }
107
109
  }, /*#__PURE__*/_react["default"].createElement("span", {
108
110
  className: "user__name"
109
111
  }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
@@ -9,7 +9,7 @@ exports["default"] = _default;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _titaUi = require("tita-ui");
12
+ var _tooltip = _interopRequireDefault(require("../../tooltip"));
13
13
 
14
14
  var _confirm = _interopRequireDefault(require("../../../components-v1/confirm"));
15
15
 
@@ -178,8 +178,8 @@ function _default(props) {
178
178
  ref: typeRef,
179
179
  innerContent: /*#__PURE__*/_react["default"].createElement("div", {
180
180
  className: "okr-type"
181
- }, /*#__PURE__*/_react["default"].createElement("span", null, type.typeName), canEdit && /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
182
- content: (0, _getLocale.getLocale)("Mod_Editor")
181
+ }, /*#__PURE__*/_react["default"].createElement("span", null, type.typeName), canEdit && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
182
+ overlay: (0, _getLocale.getLocale)("Mod_Editor")
183
183
  }, /*#__PURE__*/_react["default"].createElement("span", {
184
184
  className: "tu-icon-edit edit-icon tu-ml-10"
185
185
  }))),
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _titaUi = require("tita-ui");
13
13
 
14
+ var _tooltip = _interopRequireDefault(require("../../tooltip"));
15
+
14
16
  var _userSelector = _interopRequireDefault(require("../../user-selector"));
15
17
 
16
18
  var _openData = require("../../../utils/open-data");
@@ -54,9 +56,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
54
56
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55
57
 
56
58
  var visibilityList = [{
57
- value: 1,
58
- lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
59
- }, {
60
59
  value: 2,
61
60
  lable: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
62
61
  }, {
@@ -67,12 +66,19 @@ var visibilityList = [{
67
66
  lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
68
67
  }];
69
68
 
69
+ if (window.BSGlobal.tenantInfo.isOpenInfo) {
70
+ visibilityList.unshift({
71
+ value: 1,
72
+ lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
73
+ });
74
+ }
75
+
70
76
  function _default(_ref) {
71
77
  var _ref$canEdit = _ref.canEdit,
72
78
  canEdit = _ref$canEdit === void 0 ? false : _ref$canEdit,
73
79
  workId = _ref.workId,
74
80
  _ref$visibilityProp = _ref.visibilityProp,
75
- visibilityProp = _ref$visibilityProp === void 0 ? 1 : _ref$visibilityProp,
81
+ visibilityProp = _ref$visibilityProp === void 0 ? 2 : _ref$visibilityProp,
76
82
  _ref$visiableScopePro = _ref.visiableScopeProp,
77
83
  visiableScopeProp = _ref$visiableScopePro === void 0 ? {} : _ref$visiableScopePro,
78
84
  onSave = _ref.onSave;
@@ -180,8 +186,8 @@ function _default(_ref) {
180
186
  jsxDom.push( /*#__PURE__*/_react["default"].createElement("span", null, item.name, "\u3001"));
181
187
  text.push(item.name);
182
188
  });
183
- if (!text.length) return (0, _getLocale.getLocale)("OKR_MyO_E_Associatedm");
184
- return (0, _openData.isWechat)() ? jsxDom : text.join("");
189
+ if (!text.length) return (0, _getLocale.getLocale)('OKR_MyO_E_Associatedm');
190
+ return (0, _openData.isWechat)() ? jsxDom : text.join('');
185
191
  } // @ts-ignore
186
192
 
187
193
 
@@ -193,8 +199,8 @@ function _default(_ref) {
193
199
  var renderSelect = function renderSelect() {
194
200
  return /*#__PURE__*/_react["default"].createElement("div", {
195
201
  className: "visibility"
196
- }, /*#__PURE__*/_react["default"].createElement("span", null, renderLabel()), canEdit && /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
197
- content: (0, _getLocale.getLocale)("Mod_Editor")
202
+ }, /*#__PURE__*/_react["default"].createElement("span", null, renderLabel()), canEdit && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
203
+ overlay: (0, _getLocale.getLocale)('Mod_Editor')
198
204
  }, /*#__PURE__*/_react["default"].createElement("span", {
199
205
  className: "tu-icon-edit visibility-edit-icon tu-ml-10"
200
206
  })));
@@ -209,8 +215,8 @@ function _default(_ref) {
209
215
  selectNodes: visibilityArea,
210
216
  trigger: /*#__PURE__*/_react["default"].createElement("div", {
211
217
  style: {
212
- visibility: "hidden",
213
- position: "absolute",
218
+ visibility: 'hidden',
219
+ position: 'absolute',
214
220
  zIndex: -1,
215
221
  height: 36
216
222
  }
@@ -12,6 +12,8 @@ var _react = _interopRequireWildcard(require("react"));
12
12
 
13
13
  var _titaUi = require("tita-ui");
14
14
 
15
+ var _tooltip = _interopRequireDefault(require("../../tooltip"));
16
+
15
17
  var _userSelector = _interopRequireDefault(require("../../user-selector"));
16
18
 
17
19
  var _openData = require("../../../utils/open-data");
@@ -29,10 +31,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
29
31
  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; }
30
32
 
31
33
  var visibilityList = function visibilityList() {
32
- return [{
33
- value: 1,
34
- lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
35
- }, {
34
+ var visibility = [{
36
35
  value: 2,
37
36
  lable: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
38
37
  }, {
@@ -42,14 +41,23 @@ var visibilityList = function visibilityList() {
42
41
  value: 4,
43
42
  lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
44
43
  }];
44
+
45
+ if (window.BSGlobal.tenantInfo.isOpenInfo) {
46
+ visibility.unshift({
47
+ value: 1,
48
+ lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
49
+ });
50
+ }
51
+
52
+ return visibility;
45
53
  };
46
54
 
47
55
  var visibilityMapText = function visibilityMapText() {
48
56
  return {
49
- 1: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public"),
50
- 2: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem"),
51
- 3: (0, _getLocale.getLocale)("OKR_MyO_Pop_Directrep"),
52
- 4: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
57
+ 1: (0, _getLocale.getLocale)('OKR_MyO_Pop_Public'),
58
+ 2: (0, _getLocale.getLocale)('OKR_MyO_From_Associatedmem'),
59
+ 3: (0, _getLocale.getLocale)('OKR_MyO_Pop_Directrep'),
60
+ 4: (0, _getLocale.getLocale)('OKR_MyO_Pop_Specified')
53
61
  };
54
62
  };
55
63
 
@@ -124,7 +132,7 @@ function _default(_ref) {
124
132
  return visibilityMapText[visibility];
125
133
  }
126
134
 
127
- return (0, _openData.isWechat)() ? jsxDom : text.join("");
135
+ return (0, _openData.isWechat)() ? jsxDom : text.join('');
128
136
  }
129
137
 
130
138
  return lable;
@@ -133,17 +141,19 @@ function _default(_ref) {
133
141
  var subTitleRender = (0, _react.useMemo)(function () {
134
142
  return /*#__PURE__*/_react["default"].createElement("span", {
135
143
  className: "okr-field-visible"
136
- }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Title_Perm"), /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
137
- content: (0, _getLocale.getLocale)("OKR_MyO_Pop_Inadditiontot"),
138
- container: document.body
144
+ }, (0, _getLocale.getLocale)('OKR_MyO_Pop_Title_Perm'), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
145
+ overlay: (0, _getLocale.getLocale)('OKR_MyO_Pop_Inadditiontot'),
146
+ getTooltipContainer: function getTooltipContainer() {
147
+ return document.body;
148
+ }
139
149
  }, /*#__PURE__*/_react["default"].createElement("span", {
140
150
  className: "tu-icon-question-mark",
141
151
  style: {
142
- display: "inline-block",
152
+ display: 'inline-block',
143
153
  marginLeft: 8,
144
154
  marginBottom: 3,
145
- color: "#bfc7d5",
146
- verticalAlign: "middle"
155
+ color: '#bfc7d5',
156
+ verticalAlign: 'middle'
147
157
  }
148
158
  })));
149
159
  }, []);
@@ -160,8 +170,8 @@ function _default(_ref) {
160
170
  selectNodes: visiableLimit,
161
171
  trigger: /*#__PURE__*/_react["default"].createElement("div", {
162
172
  style: {
163
- visibility: "hidden",
164
- position: "absolute",
173
+ visibility: 'hidden',
174
+ position: 'absolute',
165
175
  zIndex: -1,
166
176
  height: 36
167
177
  }
@@ -221,7 +221,7 @@ function CreateOkrModal(_ref, ref) {
221
221
  setOkrClassify = _useState20[1]; // 目标类别
222
222
 
223
223
 
224
- var _useState21 = (0, _react.useState)(1),
224
+ var _useState21 = (0, _react.useState)(2),
225
225
  _useState22 = _slicedToArray(_useState21, 2),
226
226
  visibility = _useState22[0],
227
227
  setVisibility = _useState22[1]; // 可见性
@@ -680,7 +680,7 @@ function CreateOkrModal(_ref, ref) {
680
680
  });
681
681
  setCycle(cycle);
682
682
  setOkrClassify(undefined);
683
- setVisibility(1);
683
+ setVisibility(2);
684
684
  setParent({
685
685
  parentWorkId: 0,
686
686
  parentWorkName: '',
@@ -365,9 +365,13 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
365
365
  }); // 暂时用title
366
366
 
367
367
  if (typeof (mindData === null || mindData === void 0 ? void 0 : mindData.content) === 'string' && (mindData === null || mindData === void 0 ? void 0 : mindData.content) !== '') {
368
- setMindImg(_constant.Motion.find(function (item) {
369
- return item.id === JSON.parse(mindData.content || '{}').SelectedValues[0];
370
- }).img);
368
+ var _Motion$find;
369
+
370
+ setMindImg(((_Motion$find = _constant.Motion.find(function (item) {
371
+ var _JSON$parse$SelectedV;
372
+
373
+ return item.id === ((_JSON$parse$SelectedV = JSON.parse(mindData.content || '{}').SelectedValues) === null || _JSON$parse$SelectedV === void 0 ? void 0 : _JSON$parse$SelectedV[0]) || 0;
374
+ })) === null || _Motion$find === void 0 ? void 0 : _Motion$find.img) || '');
371
375
  }
372
376
  }
373
377
  }, [dailyContent]);
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _titaUi = require("tita-ui");
14
+ var _tooltip = _interopRequireDefault(require("../tooltip"));
15
15
 
16
16
  var _dropSelector = _interopRequireDefault(require("../drop-selector"));
17
17
 
@@ -70,8 +70,8 @@ var EPriority = function EPriority(props) {
70
70
  limitHeight: false,
71
71
  trigger: /*#__PURE__*/_react["default"].createElement("div", {
72
72
  className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-label"))
73
- }, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
74
- content: (0, _constant.getPriorityTextMapping)()[level]
73
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
74
+ overlay: (0, _constant.getPriorityTextMapping)()[level]
75
75
  }, /*#__PURE__*/_react["default"].createElement("span", {
76
76
  className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p").concat(level))
77
77
  })))
@@ -7,7 +7,7 @@ exports["default"] = exports.DocType = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _titaUi = require("tita-ui");
10
+ var _tooltip = _interopRequireDefault(require("../tooltip"));
11
11
 
12
12
  var _util = require("../dialog-upload/util");
13
13
 
@@ -49,9 +49,11 @@ var FilePreview = function FilePreview(_ref) {
49
49
  alt: ""
50
50
  })), /*#__PURE__*/_react["default"].createElement("div", {
51
51
  className: "".concat(preCls, "__content")
52
- }, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
53
- container: document.body,
54
- content: /*#__PURE__*/_react["default"].createElement("p", {
52
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
53
+ getTooltipContainer: function getTooltipContainer() {
54
+ return document.body;
55
+ },
56
+ overlay: /*#__PURE__*/_react["default"].createElement("p", {
55
57
  dangerouslySetInnerHTML: {
56
58
  __html: title
57
59
  }
@@ -9,7 +9,7 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _titaUi = require("tita-ui");
12
+ var _tooltip = _interopRequireDefault(require("../../tooltip"));
13
13
 
14
14
  var _UserSelectorPop = _interopRequireDefault(require("../../../components-v1/userSelector/UserSelectorPop"));
15
15
 
@@ -71,9 +71,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
71
71
 
72
72
  var visibilityMap = function visibilityMap() {
73
73
  return {
74
- 1: (0, _getLocale.getLocale)("OKR_MyO_Pubiic"),
75
- 2: (0, _getLocale.getLocale)("OKR_MyO_Private"),
76
- 3: (0, _getLocale.getLocale)("OKR_MyO_E_Departmentvisible")
74
+ 1: (0, _getLocale.getLocale)('OKR_MyO_Pubiic'),
75
+ 2: (0, _getLocale.getLocale)('OKR_MyO_Private'),
76
+ 3: (0, _getLocale.getLocale)('OKR_MyO_E_Departmentvisible')
77
77
  };
78
78
  };
79
79
 
@@ -101,7 +101,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
101
101
 
102
102
  if (isSendSms) {
103
103
  var url = (0, _requestV.getApiUrl)("SMS/Check?to_user_id=".concat((0, _bsGlobal.getUserInfo)().Id));
104
- (0, _requestV.taker)(url, "GET").then(function (res) {
104
+ (0, _requestV.taker)(url, 'GET').then(function (res) {
105
105
  if (res.Code == 2 || res.Code == 4) {
106
106
  // 目前您企业的短信已超出许可量,请联系超管进行短信充值
107
107
  _this.setState({
@@ -113,7 +113,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
113
113
  isSendSms: true
114
114
  });
115
115
 
116
- _this.props.onActionsTextChange("allowSendSMS");
116
+ _this.props.onActionsTextChange('allowSendSMS');
117
117
  }
118
118
  });
119
119
  } else {
@@ -187,9 +187,11 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
187
187
  className: "tu-icon-cus-fujian"
188
188
  }), /*#__PURE__*/_react["default"].createElement("span", {
189
189
  className: "upload_fujian_text"
190
- }, this.props.attachmentText))), this.props.isShowAt && /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
191
- container: document.body,
192
- content: this.props.atTipText
190
+ }, this.props.attachmentText))), this.props.isShowAt && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
191
+ container: function container() {
192
+ return document.body;
193
+ },
194
+ overlay: this.props.atTipText
193
195
  }, /*#__PURE__*/_react["default"].createElement(_style.LeftBtn, {
194
196
  key: this.props.atText,
195
197
  tips: this.props.atTipText
@@ -204,14 +206,16 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
204
206
  }
205
207
  }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
206
208
  className: "btn-txt"
207
- }, this.props.atText))))), this.props.isShowAtAll && /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
208
- container: document.body,
209
- content: this.props.atAllTipText
209
+ }, this.props.atText))))), this.props.isShowAtAll && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
210
+ container: function container() {
211
+ return document.body;
212
+ },
213
+ overlay: this.props.atAllTipText
210
214
  }, /*#__PURE__*/_react["default"].createElement(_style.LeftBtn, {
211
215
  key: this.props.atAllText,
212
216
  tips: this.props.atAllTipText,
213
217
  onMouseDown: function onMouseDown() {
214
- return onActionsTextChange(atAllValue || "");
218
+ return onActionsTextChange(atAllValue || '');
215
219
  }
216
220
  }, /*#__PURE__*/_react["default"].createElement("span", {
217
221
  className: "btn-txt"
@@ -233,7 +237,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
233
237
  }, this.props.isShowRange && /*#__PURE__*/_react["default"].createElement(_style.BtnPrivate, {
234
238
  id: "1",
235
239
  "data-name": "range",
236
- className: disableRangeSelect ? "disabled" : "",
240
+ className: disableRangeSelect ? 'disabled' : '',
237
241
  disabled: disableRangeSelect
238
242
  }, /*#__PURE__*/_react["default"].createElement(_RangeSelectorPop["default"], {
239
243
  align: "bottom left",
@@ -251,13 +255,13 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
251
255
  "data-name": "range-caret"
252
256
  })))), this.props.isShowBtnCancel && /*#__PURE__*/_react["default"].createElement(_style.BtnCancel, {
253
257
  onMouseDown: function onMouseDown() {
254
- return onActionSubmit("cancel");
258
+ return onActionSubmit('cancel');
255
259
  }
256
- }, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_style.BtnConfirm, {
260
+ }, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_style.BtnConfirm, {
257
261
  disabled: !this.props.isAllowSubmit,
258
- className: !this.props.isAllowSubmit || this.props.submitStatus === 2 ? "disabled" : "",
262
+ className: !this.props.isAllowSubmit || this.props.submitStatus === 2 ? 'disabled' : '',
259
263
  onMouseDown: function onMouseDown() {
260
- return onActionSubmit("submit");
264
+ return onActionSubmit('submit');
261
265
  }
262
266
  }, this.props.submitStatus !== 2 ? this.props.submitText : "".concat(this.props.submitText, "\u4E2D..."))), isShowConfirmPop && /*#__PURE__*/_react["default"].createElement(_ConfirmPop["default"], {
263
267
  onSubmit: function onSubmit() {
@@ -275,6 +279,6 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
275
279
  exports["default"] = MblogAction;
276
280
  MblogAction.contextType = _context["default"];
277
281
  MblogAction.defaultProps = {
278
- userSelectorPopAlign: "top left",
279
- emotionsSelectorPopAlign: "top center"
282
+ userSelectorPopAlign: 'top left',
283
+ emotionsSelectorPopAlign: 'top center'
280
284
  };
@@ -40,10 +40,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
40
40
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
41
 
42
42
  var getVisibilityList = function getVisibilityList() {
43
- return [{
44
- value: 1,
45
- label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
46
- }, {
43
+ var visibility = [{
47
44
  value: 2,
48
45
  label: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
49
46
  }, {
@@ -53,6 +50,15 @@ var getVisibilityList = function getVisibilityList() {
53
50
  value: 4,
54
51
  label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
55
52
  }];
53
+
54
+ if (window.BSGlobal.tenantInfo.isOpenInfo) {
55
+ visibility.unshift({
56
+ value: 1,
57
+ label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
58
+ });
59
+ }
60
+
61
+ return visibility;
56
62
  };
57
63
 
58
64
  var getVisibilityMapText = function getVisibilityMapText() {
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
14
  var _richEditor = require("@titaui/rich-editor");
15
15
 
16
- var _titaUi = require("tita-ui");
16
+ var _tooltip = _interopRequireDefault(require("../../../../../tooltip"));
17
17
 
18
18
  var _bsGlobal = require("../../../../../../utils/bs-global");
19
19
 
@@ -418,8 +418,8 @@ function _default(props) {
418
418
  }, errorTip),
419
419
  visible: editing && errorTip.length > 0,
420
420
  placement: "top"
421
- }, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
422
- content: editing ? '' : (0, _openData.parseString)(krNameData.pureText)
421
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
422
+ overlay: editing ? '' : (0, _openData.parseString)(krNameData.pureText)
423
423
  }, /*#__PURE__*/_react["default"].createElement("span", {
424
424
  className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"), _defineProperty({}, "".concat(_precls["default"], "__kr-node-title--editing"), editing)),
425
425
  onClick: onTitleTextClickHandler