@titaui/pc 1.13.2-beta.10 → 1.13.2-beta.11

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 (58) hide show
  1. package/lib/components/create-okr-modal/index.js +1 -4
  2. package/lib/components/dialog-upload/util.js +1 -19
  3. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +2 -1
  4. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +12 -0
  5. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +13 -2
  6. package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +56 -0
  7. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +16 -1
  8. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +51 -9
  9. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +27 -10
  10. package/lib/components/dynamic/dynamic-item/index.js +23 -3
  11. package/lib/components/dynamic/request-api.js +9 -2
  12. package/lib/components/file-list/components/single-file/index.css +0 -29
  13. package/lib/components/file-list/components/single-file/index.js +28 -18
  14. package/lib/components/file-list/index.js +1 -2
  15. package/lib/components/nav-top/components/app-center/index.js +1 -6
  16. package/lib/components/nav-top/components/menu/index.js +14 -44
  17. package/lib/components/nav-top/index.css +0 -6
  18. package/lib/components/nav-top/index.js +2 -138
  19. package/lib/components/nav-top/request.apis.js +2 -10
  20. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  21. package/lib/components/rich-editor-at/index.js +94 -13
  22. package/lib/components/scroll-container/index.js +6 -27
  23. package/lib/components/search-input/index.css +2 -2
  24. package/lib/components/search-input/index.js +0 -4
  25. package/lib/components/upload/index.js +455 -257
  26. package/lib/index.js +0 -8
  27. package/lib/utils/tools.js +1 -11
  28. package/package.json +2 -2
  29. package/lib/components/checkbox-list/index.css +0 -31
  30. package/lib/components/checkbox-list/index.js +0 -68
  31. package/lib/components/dialog-qq-docs/index.css +0 -105
  32. package/lib/components/dialog-qq-docs/index.js +0 -499
  33. package/lib/components/dialog-qq-docs/request-apis.js +0 -16
  34. package/lib/components/dialog-qq-docs/utils.js +0 -83
  35. package/lib/components/dialog-select/index.css +0 -9
  36. package/lib/components/dialog-select/index.js +0 -48
  37. package/lib/components/dialog-upload/img/folder.svg +0 -40
  38. package/lib/components/dialog-upload/img/form.svg +0 -38
  39. package/lib/components/dialog-upload/img/mind.svg +0 -39
  40. package/lib/components/dialog-upload-type/assets/folder.svg +0 -20
  41. package/lib/components/dialog-upload-type/assets/qq-docs.svg +0 -20
  42. package/lib/components/dialog-upload-type/components/upload-type-item/index.css +0 -14
  43. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +0 -36
  44. package/lib/components/dialog-upload-type/index.css +0 -7
  45. package/lib/components/dialog-upload-type/index.js +0 -75
  46. package/lib/components/file-preview/index.css +0 -43
  47. package/lib/components/file-preview/index.js +0 -68
  48. package/lib/components/loading/assets/loading.gif +0 -0
  49. package/lib/components/loading/index.css +0 -28
  50. package/lib/components/loading/index.js +0 -64
  51. package/lib/components/nav/index.css +0 -36
  52. package/lib/components/nav/index.js +0 -31
  53. package/lib/components/okr-guide/constant.js +0 -23
  54. package/lib/components/okr-guide/img/left-img.png +0 -0
  55. package/lib/components/okr-guide/index.css +0 -146
  56. package/lib/components/okr-guide/index.js +0 -244
  57. package/lib/components/okr-guide/request-api.js +0 -57
  58. package/lib/components/upload/upload.js +0 -555
package/lib/index.js CHANGED
@@ -309,12 +309,6 @@ Object.defineProperty(exports, "OkrFlow", {
309
309
  return _okrFlow["default"];
310
310
  }
311
311
  });
312
- Object.defineProperty(exports, "OkrGuide", {
313
- enumerable: true,
314
- get: function get() {
315
- return _okrGuide["default"];
316
- }
317
- });
318
312
  Object.defineProperty(exports, "OkrMapPage", {
319
313
  enumerable: true,
320
314
  get: function get() {
@@ -924,6 +918,4 @@ var _writeSummaryModal = _interopRequireDefault(require("./components/write-summ
924
918
 
925
919
  var _promiseConfirm = _interopRequireDefault(require("./components/promise-confirm"));
926
920
 
927
- var _okrGuide = _interopRequireDefault(require("./components/okr-guide"));
928
-
929
921
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -10,9 +10,7 @@ exports.htmlDecodeByHtmlRegExp = htmlDecodeByHtmlRegExp;
10
10
  exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
11
11
  exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
12
12
  exports.htmlEncodeToHtmlByRegExp = htmlEncodeToHtmlByRegExp;
13
- exports.openPage = exports.htmlToText = void 0;
14
- exports.openUrl = openUrl;
15
- exports.unHighLight = void 0;
13
+ exports.unHighLight = exports.openPage = exports.htmlToText = void 0;
16
14
 
17
15
  var _platform = require("./platform");
18
16
 
@@ -36,14 +34,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
36
34
 
37
35
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
38
36
 
39
- function openUrl(url) {
40
- if (typeof url !== 'string') return;
41
- var newTab = window.open();
42
- if (!newTab) return;
43
- newTab.opener = null;
44
- newTab.location = url;
45
- }
46
-
47
37
  function htmlEncodeByRegExp(str) {
48
38
  if (!str) return "";
49
39
  var htmlString = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.13.2-beta.10",
3
+ "version": "1.13.2-beta.11",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -78,7 +78,7 @@
78
78
  "@titaui/rc-trigger": "5.2.5",
79
79
  "@titaui/react-flow-renderer": "9.5.4",
80
80
  "@titaui/request": "^1.0.1",
81
- "@titaui/rich-editor": "0.1.56",
81
+ "@titaui/rich-editor": "0.1.62",
82
82
  "@titaui/toast": "1.0.0",
83
83
  "@types/color": "3.0.3",
84
84
  "@types/prosemirror-commands": "1.0.4",
@@ -1,31 +0,0 @@
1
- .titaui-checkbox-list {
2
- display: flex;
3
- flex-direction: column;
4
- }
5
-
6
- .titaui-checkbox-list__item {
7
- display: flex;
8
- justify-content: space-between;
9
- align-items: center;
10
- padding: 0 6px 0 8px;
11
- cursor: pointer;
12
- height: 60px;
13
- border-radius: 8px;
14
- }
15
-
16
- .titaui-checkbox-list__item > * + * {
17
- margin-left: 20px;
18
- }
19
-
20
- .titaui-checkbox-list__item:hover {
21
- background-color: #F0F4FA;
22
- }
23
-
24
- .titaui-checkbox-list__item__content {
25
- width: 100%;
26
- overflow: hidden;
27
- }
28
-
29
- .titaui-checkbox-list__item__next {
30
- color: #89919f;
31
- }
@@ -1,68 +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 _checkbox = _interopRequireDefault(require("../checkbox"));
13
-
14
- require("./index.css");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- 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); }
19
-
20
- 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; }
21
-
22
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
23
-
24
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
-
26
- 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); }
27
-
28
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
29
-
30
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
31
-
32
- 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; }
33
-
34
- var preCls = 'titaui-checkbox-list';
35
-
36
- var CheckBoxList = function CheckBoxList(_ref) {
37
- var dataList = _ref.dataList,
38
- onChange = _ref.onChange,
39
- disabled = _ref.disabled,
40
- _ref$className = _ref.className,
41
- className = _ref$className === void 0 ? '' : _ref$className;
42
- var onClickItemHandler = (0, _react.useCallback)(function (idx) {
43
- var newList = _toConsumableArray(dataList);
44
-
45
- if (newList[idx].disabled || disabled && !newList[idx].checked) return;
46
- if (!newList[idx].isFolder) newList[idx].checked = !newList[idx].checked;
47
- if (onChange) onChange(newList, idx, newList[idx]);
48
- }, [onChange, disabled]);
49
- return /*#__PURE__*/_react["default"].createElement("div", {
50
- className: "".concat(preCls, " ").concat(className)
51
- }, dataList.map(function (item, i) {
52
- return /*#__PURE__*/_react["default"].createElement("div", {
53
- className: "".concat(preCls, "__item"),
54
- onClick: onClickItemHandler.bind(null, i)
55
- }, /*#__PURE__*/_react["default"].createElement("div", {
56
- className: "".concat(preCls, "__item__content")
57
- }, item.component), item.isFolder ? /*#__PURE__*/_react["default"].createElement("span", {
58
- className: "".concat(preCls, "__item__next tu-icon-APP-xi")
59
- }) : /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
60
- disabled: disabled || item.disabled,
61
- checked: item.checked
62
- }));
63
- }));
64
- };
65
-
66
- var _default = /*#__PURE__*/_react["default"].memo(CheckBoxList);
67
-
68
- exports["default"] = _default;
@@ -1,105 +0,0 @@
1
- .titaui-dialog-qq-docs {
2
- width: 480px;
3
- }
4
-
5
- .titaui-dialog-qq-docs .px-32 {
6
- padding-left: 32px;
7
- padding-right: 32px;
8
- }
9
-
10
- .titaui-dialog-qq-docs .rc-dialog-body {
11
- height: 441px;
12
- }
13
-
14
- .titaui-dialog-qq-docs .rc-dialog-header, .titaui-dialog-qq-docs .rc-dialog-footer {
15
- border: 0;
16
- }
17
-
18
- .titaui-dialog-qq-docs__checked-num {
19
- color: #2879FF;
20
- }
21
-
22
- .titaui-dialog-qq-docs__cancel-btn {
23
- border-color: #DFE3EA;
24
- color: #6F7886;
25
- }
26
-
27
- .titaui-dialog-qq-docs__search-null {
28
- height: 100%;
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
- color: #89919F;
33
- font-size: 14px;
34
- }
35
-
36
- .titaui-dialog-qq-docs__content {
37
- padding: 10px 0;
38
- display: flex;
39
- flex-direction: column;
40
- height: 100%;
41
- }
42
-
43
- .titaui-dialog-qq-docs__search-result-text {
44
- padding-left: 34px;
45
- margin-top: 15px;
46
- font-size: 14px;
47
- font-weight: 400;
48
- color: #89919F;
49
- line-height: 20px;
50
- opacity: 1;
51
- transition: all .3s;
52
- }
53
-
54
- .titaui-dialog-qq-docs__search-result-text--hide {
55
- margin-top: 0;
56
- opacity: 0;
57
- line-height: 0;
58
- }
59
-
60
- .titaui-dialog-qq-docs__nav {
61
- margin-top: 15px;
62
- height: 28px;
63
- transition: all .3s;
64
- box-shadow: 0px 4px 8px 0px rgba(127, 145, 180, 0.1);
65
- }
66
-
67
- .titaui-dialog-qq-docs__nav--hide {
68
- margin-top: 0;
69
- opacity: 0;
70
- height: 0;
71
- }
72
-
73
- .titaui-dialog-qq-docs__checkbox-list {
74
- padding-top: 8px;
75
- padding-left: 24px;
76
- padding-right: 26px;
77
- flex: 1;
78
- height: 100%;
79
- overflow-y: auto;
80
- }
81
-
82
- .titaui-dialog-qq-docs__footer {
83
- display: flex;
84
- justify-content: space-between;
85
- align-items: center;
86
- width: 100%;
87
- color: #6f7886;
88
- }
89
-
90
- .titaui-dialog-qq-docs__footer__actions {
91
- display: flex;
92
- }
93
-
94
- .titaui-dialog-qq-docs__footer__actions > * + * {
95
- margin-left: 12px;
96
- }
97
-
98
- .titaui-dialog-qq-docs__end-text {
99
- margin: 12px 0 20px 0;
100
- text-align: center;
101
- font-size: 12px;
102
- font-weight: 400;
103
- color: #89919F;
104
- line-height: 18px;
105
- }