@titaui/pc 1.15.45 → 1.15.47-beta.2
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/button/icon-btn/index.css +19 -1
- package/lib/components/button/icon-btn/index.js +4 -2
- package/lib/components/change-okr-modal/index.js +1 -1
- package/lib/components/common-share/publishMblog.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-visibility.js +0 -3
- package/lib/components/create-okr-modal/index.js +1 -1
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/create-okr-modal/utils/helper.js +1 -1
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dialog-confirm/index.css +8 -0
- package/lib/components/dialog-confirm/index.js +26 -16
- package/lib/components/dialog-qq-docs/index.js +1 -1
- package/lib/components/dialog-qq-docs/utils.js +1 -1
- package/lib/components/dialog-upload/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +1 -1
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/firework/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.css +9 -0
- package/lib/components/form/form-fields/dropdown/index.js +8 -3
- package/lib/components/form/form-fields/input/index.js +4 -1
- package/lib/components/form/form-fields/input-verification-code/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +1 -1
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/survey-menu/index.css +9 -0
- package/lib/components/menus/export-modules/survey-menu/index.js +120 -0
- package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +52 -0
- package/lib/components/menus/export-modules/survey-menu/menus.js +87 -0
- package/lib/components/{okr-excel/type.js → menus/export-modules/survey-menu/request-api.js} +0 -0
- package/lib/components/menus/export-modules/survey-menu/survey-front-menus.js +155 -0
- package/lib/components/menus/index.js +6 -0
- package/lib/components/nav-top/components/app-center/index.js +17 -33
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -1
- package/lib/components/okr-detail/components/ao-nice/index.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +1 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +1 -1
- package/lib/components/okr-detail/components/header/o-classify.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +1 -1
- package/lib/components/okr-detail/components/o-progress-update/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +1 -1
- package/lib/components/okr-detail/detail-footer/index.js +1 -1
- package/lib/components/okr-detail/detail-header/index.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +1 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-filter-drawer/filter-form.js +2 -6
- package/lib/components/okr-flow/child-node/fields/creator.js +6 -5
- package/lib/components/okr-flow/child-node/work-node.js +1 -1
- package/lib/components/okr-flow/export-modal/index.js +40 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/root-node/index.js +1 -1
- package/lib/components/okr-guide/index.js +4 -0
- package/lib/components/okr-progress/components/o-progress-update/index.js +1 -1
- package/lib/components/okr-progress-modal/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/darwAvatar.js +1 -1
- package/lib/components/okr-share/common-painter/openDataPainter.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +1 -1
- package/lib/components/okr-share/pink-card/drawKrs.js +1 -1
- package/lib/components/okr-share/pink-card/drawQuote.js +1 -1
- package/lib/components/okr-share/pink-card/drawUserName.js +1 -1
- package/lib/components/okr-share/pink-card/index.js +1 -1
- package/lib/components/okr-share/publishMblog.js +1 -1
- package/lib/components/okr-share/shareCardSelector.js +1 -1
- package/lib/components/okrcase-library/index.js +1 -2
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +3 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/quick-entrance/index.js +0 -17
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +1 -1
- package/lib/components/survey-model/request-api.js +1 -1
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +1 -1
- package/lib/components/task-relation-modal/tree/work-tree/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +1 -1
- package/lib/components/task-tree/task-item-node/e-project.js +1 -1
- package/lib/components/task-tree/task-item-node/e-task.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/toast/index.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/index2.js +1 -1
- package/lib/components/upvote/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +6 -3
- package/lib/components/version-change-modal/index.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/wechat-btn/index.js +0 -8
- package/lib/components/weekly-report/card.js +11 -1
- package/lib/components/weekly-report/common-painter/darwAvatar.js +1 -1
- package/lib/components/weekly-report/common-painter/drawName.js +1 -1
- package/lib/components/weekly-report/common-painter/openDataPainter.js +1 -1
- package/lib/components/weekly-report/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +0 -16
- package/lib/pages/group-management/groupInterface.js +1 -1
- package/lib/pages/new-okr-list/header/index.css +1 -36
- package/lib/pages/new-okr-list/header/index.js +16 -113
- package/lib/pages/new-okr-list/index.js +16 -67
- package/lib/pages/new-okr-list/list/index.js +1 -4
- package/lib/pages/new-okr-list/request-api.js +1 -1
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/hooks.js +0 -58
- package/lib/utils/open-data.js +66 -17
- package/lib/utils/request-v1.js +1 -1
- package/lib/utils/request.js +1 -1
- package/package.json +2 -7
- package/lib/components/okr-excel/hooks.js +0 -311
- package/lib/components/okr-excel/index.css +0 -127
- package/lib/components/okr-excel/index.js +0 -213
- package/lib/components/okr-excel/renders.js +0 -336
- package/lib/components/okr-excel/setting.js +0 -21
- package/lib/components/okr-type-icon/assets/okr-classify-nuo-copy.svg +0 -71
- package/lib/components/okr-type-icon/assets/okr-classify-yuan-copy.svg +0 -71
- package/lib/components/okr-type-icon/index.css +0 -10
- package/lib/components/okr-type-icon/index.js +0 -44
- package/lib/components/popup-select/index.css +0 -62
- package/lib/components/popup-select/index.js +0 -144
- package/lib/components/progress/okr-progress/index.css +0 -28
- package/lib/components/progress/okr-progress/index.js +0 -36
- package/lib/components/table-excel/index.css +0 -62
- package/lib/components/table-excel/index.js +0 -37
- package/lib/components/tag/index.css +0 -14
- package/lib/components/tag/index.js +0 -52
|
@@ -1,144 +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 _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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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;
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
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;
|