@titaui/pc 1.7.82 → 1.7.86

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.
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  .titaui-dialog .rc-dialog-header {
53
- padding: 18px 32px;
53
+ padding: 16px 32px 16px 32px;
54
54
  }
55
55
 
56
56
  .titaui-dialog .rc-dialog-body {
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  .titaui-dialog .rc-dialog-footer {
61
- padding: 20px 32px;
61
+ padding: 12px 32px 18px;
62
62
  display: flex;
63
63
  justify-content: flex-end;
64
64
  }
@@ -37,6 +37,10 @@
37
37
  white-space: nowrap;
38
38
  }
39
39
 
40
+ .titaui-dynamic-share-to-dynamic__content-title a, .titaui-dynamic-share-to-dynamic__content-title b {
41
+ color: #2879ff;
42
+ }
43
+
40
44
  .titaui-dynamic-share-to-dynamic__share {
41
45
  box-sizing: border-box;
42
46
  height: 104px;
@@ -54,6 +58,14 @@
54
58
  height: 80px;
55
59
  border-radius: 8px;
56
60
  margin-right: 12px;
61
+ background-color: #E9F1FF;
62
+ box-sizing: border-box;
63
+ padding: 16px;
64
+ }
65
+
66
+ .titaui-dynamic-share-to-dynamic__share-img > img {
67
+ width: 48px;
68
+ height: 48px;
57
69
  }
58
70
 
59
71
  .titaui-dynamic-share-to-dynamic__share-right {
@@ -63,7 +75,7 @@
63
75
  .titaui-dynamic-share-to-dynamic__share-right-title {
64
76
  display: block;
65
77
  font-size: 16px;
66
- font-weight: normal;
78
+ font-weight: 700;
67
79
  color: #141c28;
68
80
  line-height: 24px;
69
81
  margin-bottom: 8px;
@@ -140,10 +140,11 @@ var DynamicShare = function DynamicShare(_ref) {
140
140
  }))), /*#__PURE__*/_react["default"].createElement("div", {
141
141
  className: (0, _classnames["default"])("".concat(prefix, "__share")),
142
142
  onClick: handleClick
143
- }, /*#__PURE__*/_react["default"].createElement("img", {
144
- src: _guanlian["default"],
143
+ }, /*#__PURE__*/_react["default"].createElement("div", {
145
144
  className: (0, _classnames["default"])("".concat(prefix, "__share-img"))
146
- }), /*#__PURE__*/_react["default"].createElement("div", {
145
+ }, /*#__PURE__*/_react["default"].createElement("img", {
146
+ src: _guanlian["default"]
147
+ })), /*#__PURE__*/_react["default"].createElement("div", {
147
148
  className: (0, _classnames["default"])("".concat(prefix, "__share-right"))
148
149
  }, /*#__PURE__*/_react["default"].createElement("span", {
149
150
  className: (0, _classnames["default"])("".concat(prefix, "__share-right-title"))
@@ -223,6 +223,11 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
223
223
  'depart': true,
224
224
  'group': false
225
225
  },
226
+ searchedPanes: {
227
+ user: true,
228
+ depart: false,
229
+ group: false
230
+ },
226
231
  onPopupVisibleChange: onPopupVisibleChangeHandler
227
232
  }, /*#__PURE__*/_react["default"].createElement(_userInput["default"], {
228
233
  users: selectNodes.users,
@@ -121,19 +121,19 @@
121
121
  display: block;
122
122
  font-size: 14px;
123
123
  color: #ffffff;
124
- line-height: 18px;
124
+ line-height: 22px;
125
+ font-weight: 600;
125
126
  }
126
127
 
127
128
  .titaui-nav-top-menu__tips-box-content {
128
129
  font-size: 12px;
129
130
  color: #ffffff;
130
- line-height: 22px;
131
+ line-height: 18px;
131
132
  margin-top: 10px;
132
133
  margin-left: 20px;
133
134
  }
134
135
 
135
136
  .titaui-nav-top-menu__tips-box-ok {
136
- width: 64px;
137
137
  height: 28px;
138
138
  margin-top: 8px;
139
139
  margin-left: 210px;
@@ -141,7 +141,7 @@
141
141
  box-shadow: 0px -4px 12px 0px rgba(127, 145, 180, 0.2);
142
142
  border-radius: 14px;
143
143
  box-sizing: border-box;
144
- padding: 3px 18px;
144
+ padding: 3px 17px;
145
145
  font-size: 14px;
146
146
  color: #2879FF;
147
147
  line-height: 22px;
@@ -119,7 +119,7 @@ var Menu = function Menu(_ref) {
119
119
  className: "".concat(prefix, "__tips-box-title")
120
120
  }, "\uD83C\uDF89 Tita Learning \u4E0A\u7EBF\u5566"), /*#__PURE__*/_react["default"].createElement("p", {
121
121
  className: "".concat(prefix, "__tips-box-content")
122
- }, "OKR \u5B66\u4E60\u8D44\u6599\uFF0COKR \u63A8\u8FDB\u65B9\u6CD5\uFF0COKR\u6559\u7EC3\u5728\u7EBF", /*#__PURE__*/_react["default"].createElement("br", null), "\u6307\u5BFC\uFF0C\u901A\u901A\u90FD\u5728\u8FD9\u91CC\uFF01\u5FEB\u6765\u770B\u770B\u5427\uFF01"), /*#__PURE__*/_react["default"].createElement("div", {
122
+ }, "OKR \u5B66\u4E60\u8D44\u6599\uFF0COKR \u63A8\u8FDB\u65B9\u6CD5\uFF0COKR\u6559\u7EC3\u5728\u7EBF\u6307\u5BFC\uFF0C\u901A\u901A\u90FD\u5728\u8FD9\u91CC\uFF01\u5FEB\u6765\u770B\u770B\u5427\uFF01"), /*#__PURE__*/_react["default"].createElement("div", {
123
123
  className: "".concat(prefix, "__tips-box-ok"),
124
124
  onClick: handleClick
125
125
  }, "\u597D\u54D2")), /*#__PURE__*/_react["default"].createElement("div", {
@@ -130,7 +130,7 @@ var Menu = function Menu(_ref) {
130
130
  return /*#__PURE__*/_react["default"].createElement(_rcOverflow["default"].Item, {
131
131
  component: "span"
132
132
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
133
- condition: menu.id !== 44312
133
+ condition: menu.title !== "Learning"
134
134
  }, /*#__PURE__*/_react["default"].createElement("a", {
135
135
  className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId == menu.id)),
136
136
  href: "".concat(menu.href),
@@ -139,7 +139,7 @@ var Menu = function Menu(_ref) {
139
139
  return handleTracker(menu);
140
140
  }
141
141
  }, menu.title)), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
142
- condition: menu.id === 44312
142
+ condition: menu.title === "Learning"
143
143
  }, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
144
144
  popupVisible: !isKnow,
145
145
  popup: popup,
@@ -168,14 +168,14 @@ var Menu = function Menu(_ref) {
168
168
  className: "".concat(prefix, "__hide-menus")
169
169
  }, items.map(function (menu) {
170
170
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
171
- condition: menu.id !== 44312
171
+ condition: menu.title !== "Learning"
172
172
  }, /*#__PURE__*/_react["default"].createElement("a", {
173
173
  className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId == menu.id)),
174
174
  href: "".concat(menu.href),
175
175
  key: menu.id,
176
176
  target: "_self"
177
177
  }, menu.title)), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
178
- condition: menu.id === 44312
178
+ condition: menu.title === "Learning"
179
179
  }, /*#__PURE__*/_react["default"].createElement("a", {
180
180
  className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId == menu.id)),
181
181
  href: "".concat(apiPath, "/").concat(userId, "/eLearningHome#/"),
@@ -63,6 +63,11 @@ var Inform = function Inform(props) {
63
63
  return;
64
64
  }
65
65
 
66
+ if (objType === _constant.EObjType.Project) {
67
+ (0, _tools.openPage)("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=2&tabAppId=1&tabAppType=1&isRead=2&messageSubNav=1"));
68
+ return;
69
+ }
70
+
66
71
  if (objType === _constant.EObjType.Task) {
67
72
  window.Talent.app.vent.trigger('global-pull-screen', objId, 'task');
68
73
  return;
@@ -76,12 +81,30 @@ var Inform = function Inform(props) {
76
81
  if (messageType == 135) {
77
82
  var redisKey = item.content.match(/redisKey=(\S*?)"/)[1]; // @ts-ignore
78
83
 
79
- Talent.app.vent.trigger('open-weekly-report-modal', redisKey);
84
+ Talent.app.vent.trigger("open-weekly-report-modal", redisKey);
85
+ return;
86
+ }
87
+
88
+ if (messageType === 99) {
89
+ var _options = {
90
+ width: 680,
91
+ showScroll: false,
92
+ type: 'message',
93
+ // 推屏类型
94
+ data: {
95
+ type: 'okrDashBoard',
96
+ // 消息类型
97
+ objId: item.messageId,
98
+ objType: messageType
99
+ }
100
+ }; // @ts-ignore
101
+
102
+ Talent.app.vent.trigger('openReactScreenPush', _options);
80
103
  return;
81
104
  } // 处理合并的消息
82
105
 
83
106
 
84
- var isMessageMerging = [83, 93, 94, 95, 96, 97, 98, 99, 100, 131, 136, 13018, 30362].includes(messageType);
107
+ var isMessageMerging = messageType == 13018 || messageType == 30362 || messageType == 131;
85
108
 
86
109
  if (!isMessageMerging) {
87
110
  if (messageType === _constant.informType.details) {
@@ -90,14 +113,16 @@ var Inform = function Inform(props) {
90
113
  } else if (messageType === _constant.informType.todayJob) {
91
114
  window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#plan?tag_id=0&tag_type=0&filter=1"));
92
115
  return;
116
+ } else if (objType === 0 && messageType === 93) {
117
+ (0, _tools.openPage)("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=2&tabAppId=1&tabAppType=1&isRead=2&messageSubNav=1"));
93
118
  } else if (objType === 0) {
94
119
  var str = item.content.match(/\/\/.*?[\"|\']/gi);
95
120
  if (!str) return;
96
- str = str.join('');
121
+ str = str.join("");
97
122
  var url = str.slice(0, str.length - 1);
98
123
 
99
124
  if (url) {
100
- if (item.content.indexOf('点击此处下载') !== -1) {
125
+ if (item.content.indexOf("点击此处下载") !== -1) {
101
126
  window.open(url, '_self');
102
127
  }
103
128
 
@@ -120,7 +145,7 @@ var Inform = function Inform(props) {
120
145
  var _str = item.content.match(/\/\/.*?[\"|\']/gi);
121
146
 
122
147
  if (!_str) return;
123
- _str = _str.join('');
148
+ _str = _str.join("");
124
149
 
125
150
  var _url2 = _str.slice(0, _str.length - 1);
126
151
 
@@ -130,7 +155,7 @@ var Inform = function Inform(props) {
130
155
  var _str2 = item.content.match(/https:.*?[\"|\']/gi);
131
156
 
132
157
  if (!_str2) return;
133
- _str2 = _str2.join('');
158
+ _str2 = _str2.join("");
134
159
 
135
160
  var _url3 = _str2.slice(0, _str2.length - 1);
136
161
 
@@ -153,37 +178,56 @@ var Inform = function Inform(props) {
153
178
  }
154
179
  }
155
180
 
156
- var notificationType = 'e-report'; // E-周报提醒消息合并
157
-
158
- var content = domRef.current.textContent;
181
+ var type = 'eReport'; // E-周报提醒消息合并
159
182
 
160
183
  if (messageType == '83') {
161
184
  // 项目,目标进展提醒消息合并
162
- notificationType = 'project-objective';
185
+ type = 'objective';
163
186
  } else if (Number(messageType) > 93 && Number(messageType) <= 100) {
164
187
  // OKR 仪表盘消息提醒
165
- notificationType = 'okr-dashBoard';
166
- } else if (messageType == 131 || messageType == 136) {
167
- notificationType = 'performance';
168
- content = item.content;
188
+ type = 'okrDashBoard';
189
+ } else if (messageType == 131) {
190
+ type = 'performance';
169
191
  }
170
192
 
171
- _drawerManager["default"].open('NotificationMergeDetail', {
172
- config: {
173
- content: content,
174
- messageId: item.messageId,
175
- messageType: item.messageType,
176
- notificationDate: item.createTime,
177
- notificationType: notificationType,
178
- objId: item.objId,
179
- objType: item.objType
193
+ var options = {
194
+ width: 680,
195
+ showScroll: true,
196
+ type: 'message',
197
+ // 推屏类型
198
+ data: {
199
+ type: type,
200
+ // 消息类型
201
+ objId: item.messageId,
202
+ objType: messageType,
203
+ startDate: '',
204
+ endDate: ''
180
205
  }
181
- }, {
182
- width: 680
183
- });
206
+ };
207
+
208
+ if (messageType == 83) {
209
+ options.data.objType = messageType;
210
+ options.data.startDate = item.createTime;
211
+ } else if (messageType > 93 && messageType <= 100) {
212
+ options.data.startDate = item.createTime;
213
+ } else if (messageType == 131) {
214
+ options.data.objType = item.objId.split('_')[0];
215
+ options.data.startDate = item.objId.split('_')[1];
216
+ options.data.endDate = item.objId.split('_')[2];
217
+ } else {
218
+ var regex = /\((.+?)\)/g,
219
+ content = domRef.current.textContent;
220
+ var date = [];
221
+ date = content.match(regex);
222
+ options.data.startDate = date[0].slice(1, date[0].length - 1).split('-')[0]; // @ts-ignore
223
+
224
+ options.data.endDate = date[0].slice(1, date[0].length - 1).split('-')[1];
225
+ } // @ts-ignore
226
+
227
+
228
+ Talent.app.vent.trigger('openReactScreenPush', options);
184
229
  };
185
230
 
186
- ;
187
231
  return /*#__PURE__*/_react["default"].createElement("li", {
188
232
  className: (0, _classnames["default"])("".concat(preCls, "__item"), _defineProperty({}, "".concat(preCls, "__item--scroll"), informs.length >= 4)),
189
233
  key: item.messageId,
@@ -44,14 +44,14 @@
44
44
  height: 8px;
45
45
  min-height: 8px;
46
46
  border-radius: 50%;
47
- background-color: #2879ff;
47
+ background-color: #2879ff !important;
48
48
  transform: scale(0);
49
49
  opacity: 0;
50
50
  transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
51
51
  }
52
52
 
53
53
  .tita-radio .tita-radio-input:checked + .tita-radio-inner {
54
- border-color: #2879ff;
54
+ border-color: #2879ff !important;
55
55
  }
56
56
 
57
57
  .tita-radio .tita-radio-input:checked + .tita-radio-inner:after {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.82",
3
+ "version": "1.7.86",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
package/yarn-error.log ADDED
@@ -0,0 +1,103 @@
1
+ Arguments:
2
+ /usr/local/bin/node /usr/local/bin/yarn
3
+
4
+ PATH:
5
+ /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin
6
+
7
+ Yarn version:
8
+ 1.22.10
9
+
10
+ Node version:
11
+ 12.22.1
12
+
13
+ Platform:
14
+ darwin x64
15
+
16
+ Trace:
17
+ SyntaxError: /Users/yang/tita/titaui-pc/package.json: Unexpected token < in JSON at position 26
18
+ at JSON.parse (<anonymous>)
19
+ at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
20
+ at Generator.next (<anonymous>)
21
+ at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
22
+ at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
23
+
24
+ npm manifest:
25
+ {
26
+ "name": "@titaui/pc",
27
+ <<<<<<< HEAD
28
+ "version": "1.2.22",
29
+ =======
30
+ "version": "1.2.13",
31
+ >>>>>>> master
32
+ "nameCN": "",
33
+ "description": "",
34
+ "main": "src/index.js",
35
+ "scripts": {
36
+ "storybook": "start-storybook -p 6006 --no-dll",
37
+ "start": "dev_server=on webpack-dev-server --disableHostCheck=true --progress --colors --config webpack-stories.config.js",
38
+ "build-storybook": "build-storybook --docs --no-dll",
39
+ "build:es": "babel src -d es --ignore **/__tests__",
40
+ "build:lib": "cross-env OUTPUT_MODULE=commonjs babel src -d lib --ignore **/__tests__",
41
+ "build:umd": "webpack --config ./.scripts/webpack.umd.js",
42
+ "build": "npm run build:lib && npm run build:es && npm run build:umd"
43
+ },
44
+ "author": "",
45
+ "license": "ISC",
46
+ "devDependencies": {
47
+ "del": "^6.0.0",
48
+ "gulp": "^3.x",
49
+ "gulp-autoprefixer": "^7.0.1",
50
+ "gulp-babel": "^8.0.0",
51
+ "gulp-concat": "^2.6.1",
52
+ "gulp-cssbeautify": "^3.0.0",
53
+ "gulp-cssnano": "^2.1.3",
54
+ "gulp-filesize": "0.0.6",
55
+ "gulp-postcss": "^9.0.0",
56
+ "gulp-rename": "^2.0.0",
57
+ "gulp-replace": "^1.0.0",
58
+ "gulp-sass": "^4.1.0",
59
+ "gulp-sourcemaps": "^2.6.5",
60
+ "sass-resources-loader": "^2.2.1"
61
+ },
62
+ "dependencies": {
63
+ "@titaui/dagre": "^0.8.8-pre",
64
+ "@titaui/rc-tree2": "^4.1.15",
65
+ "@titaui/rc-trigger": "^5.2.5",
66
+ "@titaui/react-flow-renderer": "9.5.4",
67
+ "@titaui/toast": "^1.0.0",
68
+ "axios": "^0.21.1",
69
+ "classnames": "^2.2.6",
70
+ "clone-deep": "^4.0.1",
71
+ "d3-cloud": "^1.2.5",
72
+ "dayjs": "^1.10.4",
73
+ "html2canvas": "^1.0.0-rc.7",
74
+ "moment": "^2.29.1",
75
+ "qs": "^6.10.1",
76
+ "rc-checkbox": "^2.3.2",
77
+ "rc-dialog": "8.5.2",
78
+ "rc-drawer": "^4.3.1",
79
+ "rc-input-number": "^5.0.0",
80
+ "rc-pagination": "^3.1.6",
81
+ "rc-queue-anim": "1.4.1",
82
+ "rc-select": "^12.1.7",
83
+ "rc-switch": "^3.2.2",
84
+ "rc-table": "^7.13.2",
85
+ "rc-tabs": "^11.7.3",
86
+ "rc-tooltip": "^5.1.1",
87
+ "rc-tree": "^4.1.5",
88
+ "rc-trigger": "^5.2.3",
89
+ "rc-upload": "^4.2.0-alpha.0",
90
+ "rc-util": "^5.13.1",
91
+ "react-collapse": "^5.1.0",
92
+ "react-perfect-scrollbar": "^1.5.2",
93
+ "url-parse": "^1.5.1",
94
+ "uuid": "^3.1.0",
95
+ "wordcloud": "^1.2.2"
96
+ }
97
+ }
98
+
99
+ yarn manifest:
100
+ No manifest
101
+
102
+ Lockfile:
103
+ No lockfile