@titaui/pc 1.15.43 → 1.15.44
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/fields/okr-visibility.js +3 -0
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
- package/lib/components/okr-excel/hooks.js +311 -0
- package/lib/components/okr-excel/index.css +127 -0
- package/lib/components/okr-excel/index.js +213 -0
- package/lib/components/okr-excel/renders.js +336 -0
- package/lib/components/okr-excel/setting.js +21 -0
- package/lib/components/okr-excel/type.js +5 -0
- package/lib/components/okr-filter-drawer/filter-form.js +6 -2
- package/lib/components/okr-type-icon/assets/okr-classify-nuo-copy.svg +71 -0
- package/lib/components/okr-type-icon/assets/okr-classify-yuan-copy.svg +71 -0
- package/lib/components/okr-type-icon/index.css +10 -0
- package/lib/components/okr-type-icon/index.js +44 -0
- package/lib/components/popup-select/index.css +62 -0
- package/lib/components/popup-select/index.js +144 -0
- package/lib/components/progress/okr-progress/index.css +28 -0
- package/lib/components/progress/okr-progress/index.js +36 -0
- package/lib/components/table-excel/index.css +62 -0
- package/lib/components/table-excel/index.js +37 -0
- package/lib/components/tag/index.css +14 -0
- package/lib/components/tag/index.js +52 -0
- package/lib/components/wechat-btn/index.js +8 -0
- package/lib/index.js +16 -0
- package/lib/pages/new-okr-list/header/index.css +36 -1
- package/lib/pages/new-okr-list/header/index.js +113 -16
- package/lib/pages/new-okr-list/index.js +67 -16
- package/lib/pages/new-okr-list/list/index.js +3 -1
- package/lib/utils/hooks.js +58 -0
- package/package.json +6 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.titaui-popup-select__menu-list {
|
|
2
|
+
overflow-y: auto;
|
|
3
|
+
padding: 16px;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
border-radius: 12px;
|
|
6
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-popup-select__menu-list p:first-child {
|
|
10
|
+
margin-top: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-popup-select__menu-list__group-title {
|
|
14
|
+
margin-top: 17px;
|
|
15
|
+
padding: 0 8px 4px 8px;
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
color: #6F7886;
|
|
19
|
+
line-height: 18px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-popup-select__menu-list__item {
|
|
23
|
+
min-width: 40px;
|
|
24
|
+
display: flex;
|
|
25
|
+
padding: 0 16px;
|
|
26
|
+
padding: 5px 8px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
transition: background-color .3s, color .3s;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-popup-select__menu-list__item--disable {
|
|
34
|
+
opacity: .8;
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-popup-select__menu-list__item--disable .titaui-popup-select__checkbox-icon--checked {
|
|
39
|
+
color: #6F7886 !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.titaui-popup-select__menu-list__item:hover:not(.titaui-popup-select__menu-list__item--disable) {
|
|
43
|
+
background: #F7F8FA;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-popup-select__checkbox {
|
|
47
|
+
display: flex;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.titaui-popup-select__checkbox-icon {
|
|
55
|
+
color: #2879ff;
|
|
56
|
+
opacity: 0;
|
|
57
|
+
margin-left: 10px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-popup-select__checkbox-icon--checked {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
14
|
+
var _popup = _interopRequireDefault(require("../popup"));
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
var _excluded = ["className", "style", "children", "menuData", "onChange", "visible", "action", "onVisableChange", "mode", "height", "autoClose"];
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
|
|
28
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
+
|
|
30
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31
|
+
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
37
|
+
|
|
38
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
+
|
|
40
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
|
+
|
|
42
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
|
+
|
|
44
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
|
+
|
|
46
|
+
var preCls = 'titaui-popup-select';
|
|
47
|
+
|
|
48
|
+
function getItem(item, mode) {
|
|
49
|
+
switch (mode) {
|
|
50
|
+
case 'list':
|
|
51
|
+
return item.label;
|
|
52
|
+
|
|
53
|
+
case 'checkbox':
|
|
54
|
+
return /*#__PURE__*/_react["default"].createElement("p", {
|
|
55
|
+
className: "".concat(preCls, "__checkbox")
|
|
56
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, item.label), /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
|
+
className: (0, _classnames["default"])("tu-icon-finished ".concat(preCls, "__checkbox-icon"), _defineProperty({}, "".concat(preCls, "__checkbox-icon--checked"), item.checked))
|
|
58
|
+
}));
|
|
59
|
+
|
|
60
|
+
default:
|
|
61
|
+
return '';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var PopupSelect = function PopupSelect(_ref) {
|
|
66
|
+
var className = _ref.className,
|
|
67
|
+
style = _ref.style,
|
|
68
|
+
children = _ref.children,
|
|
69
|
+
menuData = _ref.menuData,
|
|
70
|
+
onChange = _ref.onChange,
|
|
71
|
+
visible = _ref.visible,
|
|
72
|
+
_ref$action = _ref.action,
|
|
73
|
+
action = _ref$action === void 0 ? 'click' : _ref$action,
|
|
74
|
+
onVisableChange = _ref.onVisableChange,
|
|
75
|
+
_ref$mode = _ref.mode,
|
|
76
|
+
mode = _ref$mode === void 0 ? 'list' : _ref$mode,
|
|
77
|
+
height = _ref.height,
|
|
78
|
+
_ref$autoClose = _ref.autoClose,
|
|
79
|
+
autoClose = _ref$autoClose === void 0 ? true : _ref$autoClose,
|
|
80
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
81
|
+
|
|
82
|
+
var _useState = (0, _react.useState)(visible),
|
|
83
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
84
|
+
selfVisable = _useState2[0],
|
|
85
|
+
setSelfVisable = _useState2[1];
|
|
86
|
+
|
|
87
|
+
(0, _react.useEffect)(function () {
|
|
88
|
+
setSelfVisable(visible);
|
|
89
|
+
}, [visible]);
|
|
90
|
+
var menuList = (0, _react.useMemo)(function () {
|
|
91
|
+
var onSelectItem = function onSelectItem(value, item, idx) {
|
|
92
|
+
if (item.disable) return;
|
|
93
|
+
if (onChange) onChange(value, item, idx);
|
|
94
|
+
if (autoClose) setSelfVisable(false);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var getLi = function getLi(item, idx) {
|
|
98
|
+
var _item$children;
|
|
99
|
+
|
|
100
|
+
if (item.visible === false) return '';
|
|
101
|
+
|
|
102
|
+
if (item.type !== 'group') {
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
104
|
+
key: item.value,
|
|
105
|
+
onClick: onSelectItem.bind(null, item.value, item, idx),
|
|
106
|
+
className: (0, _classnames["default"])("".concat(preCls, "__menu-list__item"), _defineProperty({}, "".concat(preCls, "__menu-list__item--disable"), item.disable))
|
|
107
|
+
}, getItem(item, mode));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
var liList = (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.map(getLi);
|
|
111
|
+
|
|
112
|
+
var groupTitle = /*#__PURE__*/_react["default"].createElement("p", {
|
|
113
|
+
key: item.value,
|
|
114
|
+
className: "".concat(preCls, "__menu-list__group-title")
|
|
115
|
+
}, item.label);
|
|
116
|
+
|
|
117
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, groupTitle, liList);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
return /*#__PURE__*/_react["default"].createElement("ul", {
|
|
121
|
+
className: "".concat(preCls, "__menu-list"),
|
|
122
|
+
style: {
|
|
123
|
+
height: height
|
|
124
|
+
}
|
|
125
|
+
}, menuData.map(getLi));
|
|
126
|
+
}, [menuData, onChange, autoClose]);
|
|
127
|
+
var onPopupVisableChange = (0, _react.useCallback)(function (visible) {
|
|
128
|
+
setSelfVisable(visible);
|
|
129
|
+
if (onVisableChange) onVisableChange(visible);
|
|
130
|
+
}, [onVisableChange]);
|
|
131
|
+
return /*#__PURE__*/_react["default"].createElement(_popup["default"], _extends({
|
|
132
|
+
popup: menuList,
|
|
133
|
+
extraClass: className,
|
|
134
|
+
popupStyle: style,
|
|
135
|
+
popupPlacement: "bottom",
|
|
136
|
+
action: action,
|
|
137
|
+
popupVisible: selfVisable,
|
|
138
|
+
onPopupVisibleChange: onPopupVisableChange
|
|
139
|
+
}, restProps), children);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
var _default = /*#__PURE__*/_react["default"].memo(PopupSelect);
|
|
143
|
+
|
|
144
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.tita-summary-progress {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 34px;
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.tita-summary-progress__bg {
|
|
11
|
+
position: absolute;
|
|
12
|
+
height: 34px;
|
|
13
|
+
left: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.tita-summary-progress__bg--normal {
|
|
19
|
+
background: rgba(40, 121, 255, 0.3);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tita-summary-progress__bg--risk {
|
|
23
|
+
background: rgba(240, 94, 94, 0.3);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tita-summary-progress__bg--delay {
|
|
27
|
+
background: rgba(240, 163, 38, 0.3);
|
|
28
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
|
|
18
|
+
var prefix = 'tita-summary-progress';
|
|
19
|
+
|
|
20
|
+
var Progress = function Progress(_ref) {
|
|
21
|
+
var _classNames;
|
|
22
|
+
|
|
23
|
+
var value = _ref.value,
|
|
24
|
+
status = _ref.status;
|
|
25
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
26
|
+
className: (0, _classnames["default"])(prefix)
|
|
27
|
+
}, /*#__PURE__*/_react["default"].createElement("p", null, value, "%"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: (0, _classnames["default"])("".concat(prefix, "__bg"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__bg--normal"), status === 'normal'), _defineProperty(_classNames, "".concat(prefix, "__bg--risk"), status === 'risk'), _defineProperty(_classNames, "".concat(prefix, "__bg--delay"), status === 'delay'), _classNames)),
|
|
29
|
+
style: {
|
|
30
|
+
width: "".concat(value > 100 ? 100 : value, "%")
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var _default = Progress;
|
|
36
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.titaui-table-excel {
|
|
2
|
+
border-radius: 12px;
|
|
3
|
+
border: 1px solid #dfe3ea;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
box-shadow: 0 0 16px 0 rgba(127, 145, 180, 0.1);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.titaui-table-excel.ag-theme-material .ag-cell-inline-editing {
|
|
9
|
+
padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);
|
|
10
|
+
padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);
|
|
11
|
+
height: var(--ag-row-height);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-table-excel.ag-theme-material input[class^=ag-][type=text] {
|
|
15
|
+
padding: 0 !important;
|
|
16
|
+
border: 0 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-table-excel.ag-theme-material input[class^=ag-][type=text]:focus {
|
|
20
|
+
padding: 0 !important;
|
|
21
|
+
border: 0 !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titaui-table-excel .ag-row.ag-row-inline-editing {
|
|
25
|
+
z-index: 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-table-excel .ag-row-hover::before {
|
|
29
|
+
background: #f6f8fc !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.titaui-table-excel .ag-header-cell-label {
|
|
33
|
+
color: #89919F;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.titaui-table-excel .ag-header-cell {
|
|
37
|
+
padding: 0 12px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.titaui-table-excel .ag-cell {
|
|
41
|
+
padding: 0 12px;
|
|
42
|
+
line-height: 22px;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
border-right: var(--ag-borders-row) var(--ag-row-border-color) !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.titaui-table-excel .ag-cell.ag-cell-focus:not(.ag-cell-range-selected):focus-within {
|
|
49
|
+
border-color: #2879ff !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.titaui-table-excel .cell-span {
|
|
53
|
+
background-color: #fff;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
border-bottom: var(--ag-borders-row) var(--ag-row-border-color);
|
|
57
|
+
border-right: var(--ag-borders-row) var(--ag-row-border-color) !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-table-excel .cell-span.ag-cell-focus:not(.ag-cell-range-selected):focus-within {
|
|
61
|
+
border-color: #2879ff !important;
|
|
62
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _agGridReact = require("ag-grid-react");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
var _excluded = ["className", "style"];
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
|
|
20
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
|
|
22
|
+
var preCls = 'titaui-table-excel';
|
|
23
|
+
|
|
24
|
+
var TableExcel = function TableExcel(_ref) {
|
|
25
|
+
var className = _ref.className,
|
|
26
|
+
style = _ref.style,
|
|
27
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
|
+
className: "ag-theme-material ".concat(preCls, " ").concat(className),
|
|
31
|
+
style: style
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement(_agGridReact.AgGridReact, restProps));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var _default = /*#__PURE__*/_react["default"].memo(TableExcel);
|
|
36
|
+
|
|
37
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.titaui-tag {
|
|
2
|
+
height: 18px;
|
|
3
|
+
margin-left: 6px;
|
|
4
|
+
padding: 2px 8px;
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
line-height: 14px;
|
|
7
|
+
border-radius: 9px;
|
|
8
|
+
background: #f7f8fa;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
color: #a4acb9;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./index.css");
|
|
11
|
+
|
|
12
|
+
var _excluded = ["className", "style", "children", "backgroundColor", "color"];
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var preCls = 'titaui-tag';
|
|
29
|
+
|
|
30
|
+
var Tag = function Tag(_ref) {
|
|
31
|
+
var className = _ref.className,
|
|
32
|
+
_ref$style = _ref.style,
|
|
33
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
34
|
+
children = _ref.children,
|
|
35
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
36
|
+
backgroundColor = _ref$backgroundColor === void 0 ? '#f7f8fa' : _ref$backgroundColor,
|
|
37
|
+
_ref$color = _ref.color,
|
|
38
|
+
color = _ref$color === void 0 ? '#a4acb9' : _ref$color,
|
|
39
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
+
|
|
41
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
42
|
+
className: "".concat(preCls, " ").concat(className),
|
|
43
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
44
|
+
backgroundColor: backgroundColor,
|
|
45
|
+
color: color
|
|
46
|
+
})
|
|
47
|
+
}, restProps), children);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var _default = /*#__PURE__*/_react["default"].memo(Tag);
|
|
51
|
+
|
|
52
|
+
exports["default"] = _default;
|
|
@@ -166,6 +166,14 @@ var WeChatBtn = function WeChatBtn(props) {
|
|
|
166
166
|
setCreateWechatVisible(true);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
+
|
|
170
|
+
if (window.titaTracker) {
|
|
171
|
+
window.titaTracker("action").record({
|
|
172
|
+
productName: "企业微信群聊",
|
|
173
|
+
actionGroup: "".concat(objType === 62 ? '目标' : '任务', "-\u70B9\u51FB\u4F01\u4E1A\u5FAE\u4FE1\u7FA4\u804A\u56FE\u6807"),
|
|
174
|
+
actionName: "".concat(objType === 62 ? '目标' : '任务', "-\u70B9\u51FB\u4F01\u4E1A\u5FAE\u4FE1\u7FA4\u804A\u56FE\u6807")
|
|
175
|
+
});
|
|
176
|
+
}
|
|
169
177
|
};
|
|
170
178
|
|
|
171
179
|
var closeCreateWeChatModal = function closeCreateWeChatModal() {
|
package/lib/index.js
CHANGED
|
@@ -303,6 +303,12 @@ Object.defineProperty(exports, "OkrDetail", {
|
|
|
303
303
|
return _okrDetail["default"];
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
+
Object.defineProperty(exports, "OkrExcel", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function get() {
|
|
309
|
+
return _okrExcel["default"];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
306
312
|
Object.defineProperty(exports, "OkrFilterDrawer", {
|
|
307
313
|
enumerable: true,
|
|
308
314
|
get: function get() {
|
|
@@ -357,6 +363,12 @@ Object.defineProperty(exports, "OkrShare", {
|
|
|
357
363
|
return _okrShare["default"];
|
|
358
364
|
}
|
|
359
365
|
});
|
|
366
|
+
Object.defineProperty(exports, "OkrTypeIcon", {
|
|
367
|
+
enumerable: true,
|
|
368
|
+
get: function get() {
|
|
369
|
+
return _okrTypeIcon["default"];
|
|
370
|
+
}
|
|
371
|
+
});
|
|
360
372
|
Object.defineProperty(exports, "OkrcaseLibrary", {
|
|
361
373
|
enumerable: true,
|
|
362
374
|
get: function get() {
|
|
@@ -934,4 +946,8 @@ var _promiseConfirm = _interopRequireDefault(require("./components/promise-confi
|
|
|
934
946
|
|
|
935
947
|
var _okrGuide = _interopRequireDefault(require("./components/okr-guide"));
|
|
936
948
|
|
|
949
|
+
var _okrExcel = _interopRequireDefault(require("./components/okr-excel"));
|
|
950
|
+
|
|
951
|
+
var _okrTypeIcon = _interopRequireDefault(require("./components/okr-type-icon"));
|
|
952
|
+
|
|
937
953
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
.tita-okr-list-v2__view-tyoe-list-item {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.tita-okr-list-v2__view-tyoe-list-item > * + * {
|
|
7
|
+
margin-left: 5px;
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
.tita-okr-list-v2__header {
|
|
2
11
|
display: flex;
|
|
3
12
|
margin-bottom: 16px;
|
|
@@ -25,7 +34,7 @@
|
|
|
25
34
|
align-items: center;
|
|
26
35
|
background: #fff;
|
|
27
36
|
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
28
|
-
width: 36px;
|
|
37
|
+
min-width: 36px;
|
|
29
38
|
height: 36px;
|
|
30
39
|
border-radius: 18px;
|
|
31
40
|
font-size: 20px;
|
|
@@ -36,6 +45,32 @@
|
|
|
36
45
|
color: #2879ff;
|
|
37
46
|
}
|
|
38
47
|
|
|
48
|
+
.tita-okr-list-v2__header-icon--view-type {
|
|
49
|
+
padding: 0 14px;
|
|
50
|
+
display: flex;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: #fff;
|
|
55
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
56
|
+
min-width: 36px;
|
|
57
|
+
height: 36px;
|
|
58
|
+
border-radius: 18px;
|
|
59
|
+
font-size: 20px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tita-okr-list-v2__header-icon--view-type:hover {
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
color: #2879ff;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.tita-okr-list-v2__header-down-icon {
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
transform: scale(0.5);
|
|
70
|
+
margin-left: 4px;
|
|
71
|
+
color: #6f7886;
|
|
72
|
+
}
|
|
73
|
+
|
|
39
74
|
.tita-okr-list-v2__header-record {
|
|
40
75
|
display: flex;
|
|
41
76
|
box-sizing: border-box;
|