@giteeteam/apps-team-components 1.3.0-alpha.3 → 1.3.1
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/README.md +24 -21
- package/dist/components/common/PriceTag.js +18 -18
- package/dist/components/common/expand-component/style.js +6 -6
- package/dist/components/common/overflow-tooltip/BaseOverflowTooltip.js +1 -1
- package/dist/components/common/overflow-tooltip/OverflowTooltip.js +1 -1
- package/dist/components/common/overflow-tooltip/style/index.js +13 -13
- package/dist/components/common/style/global.js +2 -2
- package/dist/components/common/style/mixin.js +14 -14
- package/dist/components/common/user-field/style/index.js +21 -21
- package/dist/components/default-empty-icon/config.js +3 -2
- package/dist/components/default-empty-icon/style.js +52 -52
- package/dist/components/fields/ancestor/utils.js +12 -1
- package/dist/components/fields/bind-workspace/style/index.js +3 -3
- package/dist/components/fields/cascade/utils.js +2 -1
- package/dist/components/fields/dropdown/BaseField.js +4 -4
- package/dist/components/fields/dropdown/ReadView.js +1 -1
- package/dist/components/fields/dropdown/hook.js +1 -1
- package/dist/components/fields/dropdown/style.js +72 -72
- package/dist/components/fields/hyper-link/style/index.js +14 -14
- package/dist/components/fields/item-type/ItemTypeIcon.js +5 -1
- package/dist/components/fields/item-type/style/index.js +5 -5
- package/dist/components/fields/long-text/style/index.js +5 -5
- package/dist/components/fields/priority/style/index.js +50 -50
- package/dist/components/fields/status/SelectFlowHandler.js +4 -4
- package/dist/components/fields/status/Transition.js +1 -1
- package/dist/components/fields/status/TransitionButton.js +2 -2
- package/dist/components/fields/status/TransitionPanel.js +1 -1
- package/dist/components/fields/status/View.js +1 -1
- package/dist/components/fields/status/style/index.js +324 -298
- package/dist/components/fields/tag/style/index.js +5 -5
- package/dist/components/fields/team/style/index.js +2 -2
- package/dist/components/fields/user/style/index.js +8 -8
- package/dist/components/fields/user-group/ReadView.js +6 -2
- package/dist/components/filters/filter-search/utils.js +5 -2
- package/dist/components/table-components/EditTableCell.js +1 -1
- package/dist/components/table-components/style/index.js +5 -5
- package/dist/icons/empty-icon/data-empty.png.js +3 -0
- package/dist/icons/empty-icon/forbidden.png.js +3 -0
- package/dist/icons/empty-icon/index.js +8 -0
- package/dist/icons/empty-icon/load-error.png.js +3 -0
- package/dist/icons/empty-icon/not-found.png.js +3 -0
- package/dist/icons/empty-icon/workspace-empty.svg +126 -126
- package/dist/icons/empty-icon/workspace-empty.svg.js +3 -0
- package/dist/icons/index.js +7 -7
- package/dist/icons/style/index.js +21 -21
- package/dist/lib/array.js +44 -2
- package/dist/lib/config.js +3 -3
- package/dist/lib/dataType.js +5 -1
- package/dist/lib/date.js +48 -3
- package/dist/lib/error/index.js +2 -0
- package/dist/lib/error/utils.js +17 -2
- package/dist/lib/fetch.js +41 -6
- package/dist/lib/icons/utils.js +3 -1
- package/dist/lib/path.js +1 -1
- package/dist/lib/storage.js +38 -1
- package/dist/lib/workflow.js +2 -0
- package/dist/public/icons/BulbIcon.svg +1 -1
- package/dist/public/icons/Cloud.svg +1 -1
- package/dist/public/icons/ConsultIcon.svg +1 -1
- package/dist/public/icons/Demo.svg +1 -1
- package/dist/public/icons/ErrorTemplate.svg +1 -1
- package/dist/public/icons/Fail.svg +1 -1
- package/dist/public/icons/Flag.svg +1 -1
- package/dist/public/icons/GiteeIcon.svg +1 -1
- package/dist/public/icons/IntelligenceGradient.svg +1 -1
- package/dist/public/icons/Issue_Approval.svg +1 -1
- package/dist/public/icons/Issue_Bug.svg +1 -1
- package/dist/public/icons/Issue_Demand.svg +1 -1
- package/dist/public/icons/Issue_Doc.svg +1 -1
- package/dist/public/icons/Issue_Idea.svg +1 -1
- package/dist/public/icons/Issue_List.svg +1 -1
- package/dist/public/icons/Issue_Plan.svg +1 -1
- package/dist/public/icons/Issue_Product.svg +1 -1
- package/dist/public/icons/Issue_Risk.svg +1 -1
- package/dist/public/icons/Issue_Story.svg +1 -1
- package/dist/public/icons/Issue_Subtask.svg +1 -1
- package/dist/public/icons/Issue_Task.svg +1 -1
- package/dist/public/icons/Issue_Test.svg +1 -1
- package/dist/public/icons/Issue_TestExcution.svg +1 -1
- package/dist/public/icons/Issue_TestPlan.svg +1 -1
- package/dist/public/icons/Issue_Time.svg +1 -1
- package/dist/public/icons/Issue_develop.svg +1 -1
- package/dist/public/icons/KanbanCover.svg +7 -7
- package/dist/public/icons/ListCover.svg +117 -117
- package/dist/public/icons/ManHour.svg +1 -1
- package/dist/public/icons/MobileIcon.svg +1 -1
- package/dist/public/icons/NoItemType.svg +10 -10
- package/dist/public/icons/ProductIcon.svg +1 -1
- package/dist/public/icons/RedFlagIcon.svg +1 -1
- package/dist/public/icons/Safe.svg +1 -1
- package/dist/public/icons/StarIcon.svg +60 -60
- package/dist/public/icons/StructureCover.svg +1 -1
- package/dist/public/icons/Success.svg +1 -1
- package/dist/public/icons/TeamIcon.svg +1 -1
- package/dist/public/icons/WebIcon.svg +1 -1
- package/dist/public/icons/iconfont.svg +467 -467
- package/dist/public/icons/iconfont_single_color.css +912 -912
- package/dist/public/mockServiceWorker.js +284 -284
- package/dist/style/common.js +16 -1
- package/dist/style/global.js +7 -7
- package/package.json +111 -111
|
@@ -9,6 +9,10 @@ import { usePatchIconUrl } from '../../../lib/path.js';
|
|
|
9
9
|
import { nameItemTypeImg } from './style/index.js';
|
|
10
10
|
|
|
11
11
|
const NoItemTypeIconUrl = '/icons/NoItemType.svg';
|
|
12
|
+
const useNoItemTypeIcon = () => {
|
|
13
|
+
const patchIconUrl = usePatchIconUrl();
|
|
14
|
+
return patchIconUrl(NoItemTypeIconUrl);
|
|
15
|
+
};
|
|
12
16
|
const ItemTypeIcon = ({ icon, name, className, }) => {
|
|
13
17
|
const { t } = useI18n();
|
|
14
18
|
const [title, setTitle] = useState(name);
|
|
@@ -28,4 +32,4 @@ const ItemTypeIcon = ({ icon, name, className, }) => {
|
|
|
28
32
|
} }) }));
|
|
29
33
|
};
|
|
30
34
|
|
|
31
|
-
export { ItemTypeIcon, NoItemTypeIconUrl, ItemTypeIcon as default };
|
|
35
|
+
export { ItemTypeIcon, NoItemTypeIconUrl, ItemTypeIcon as default, useNoItemTypeIcon };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const whiteSpacePreStyle = `
|
|
2
|
-
padding-top: 5px;
|
|
3
|
-
padding-bottom: 5px;
|
|
4
|
-
word-break: break-all;
|
|
5
|
-
white-space: pre-wrap;
|
|
1
|
+
const whiteSpacePreStyle = `
|
|
2
|
+
padding-top: 5px;
|
|
3
|
+
padding-bottom: 5px;
|
|
4
|
+
word-break: break-all;
|
|
5
|
+
white-space: pre-wrap;
|
|
6
6
|
`;
|
|
7
7
|
|
|
8
8
|
export { whiteSpacePreStyle };
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import { fieldLabelColor } from '../../../../style/common.js';
|
|
2
2
|
|
|
3
|
-
const cellBoxStyle = (antPrefix) => `
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
line-height: unset;
|
|
7
|
-
|
|
8
|
-
.${antPrefix}-dropdown-menu-title-content {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
max-width: 150px;
|
|
12
|
-
|
|
13
|
-
.anticon {
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
& > span {
|
|
18
|
-
white-space: pre-line;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
3
|
+
const cellBoxStyle = (antPrefix) => `
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
line-height: unset;
|
|
7
|
+
|
|
8
|
+
.${antPrefix}-dropdown-menu-title-content {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
max-width: 150px;
|
|
12
|
+
|
|
13
|
+
.anticon {
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
& > span {
|
|
18
|
+
white-space: pre-line;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
21
|
`;
|
|
22
|
-
const headerCellStyle = `
|
|
23
|
-
max-width: 120px;
|
|
24
|
-
height: 24px;
|
|
25
|
-
padding: 0 8px;
|
|
26
|
-
font-size: 12px;
|
|
27
|
-
font-weight: 600;
|
|
28
|
-
line-height: 24px;
|
|
29
|
-
color: #213053;
|
|
30
|
-
text-align: center;
|
|
31
|
-
background-color: #f5f6f8;
|
|
32
|
-
border-radius: 4px;
|
|
22
|
+
const headerCellStyle = `
|
|
23
|
+
max-width: 120px;
|
|
24
|
+
height: 24px;
|
|
25
|
+
padding: 0 8px;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
line-height: 24px;
|
|
29
|
+
color: #213053;
|
|
30
|
+
text-align: center;
|
|
31
|
+
background-color: #f5f6f8;
|
|
32
|
+
border-radius: 4px;
|
|
33
33
|
`;
|
|
34
|
-
const emptyTextStyle = `
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
width: 100%;
|
|
38
|
-
height: 100%;
|
|
34
|
+
const emptyTextStyle = `
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
39
|
`;
|
|
40
|
-
const colorIconStyle = `
|
|
41
|
-
margin-right: 5px;
|
|
42
|
-
font-size: 12px;
|
|
40
|
+
const colorIconStyle = `
|
|
41
|
+
margin-right: 5px;
|
|
42
|
+
font-size: 12px;
|
|
43
43
|
`;
|
|
44
|
-
const emptyStyle = `
|
|
45
|
-
color: ${fieldLabelColor};
|
|
44
|
+
const emptyStyle = `
|
|
45
|
+
color: ${fieldLabelColor};
|
|
46
46
|
`;
|
|
47
|
-
const emptyIconStyle = `
|
|
48
|
-
margin-right: 5px;
|
|
49
|
-
font-size: 12px!important;
|
|
50
|
-
width: 12px!important;
|
|
51
|
-
margin-left: 0!important;
|
|
47
|
+
const emptyIconStyle = `
|
|
48
|
+
margin-right: 5px;
|
|
49
|
+
font-size: 12px!important;
|
|
50
|
+
width: 12px!important;
|
|
51
|
+
margin-left: 0!important;
|
|
52
52
|
`;
|
|
53
|
-
const downIconStyle = `
|
|
54
|
-
margin-left: 2px;
|
|
55
|
-
|
|
56
|
-
svg {
|
|
57
|
-
vertical-align: inherit;
|
|
58
|
-
}
|
|
53
|
+
const downIconStyle = `
|
|
54
|
+
margin-left: 2px;
|
|
55
|
+
|
|
56
|
+
svg {
|
|
57
|
+
vertical-align: inherit;
|
|
58
|
+
}
|
|
59
59
|
`;
|
|
60
60
|
|
|
61
61
|
export { cellBoxStyle, colorIconStyle, downIconStyle, emptyIconStyle, emptyStyle, emptyTextStyle, headerCellStyle };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React, {
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
2
|
+
import React, { useEffect, useCallback, memo } from 'react';
|
|
3
|
+
import { css, ClassNames } from '@emotion/react';
|
|
4
4
|
import { message, Input, Spin, Button } from 'antd';
|
|
5
5
|
import { debounce, cloneDeep } from 'lodash-es';
|
|
6
6
|
import { ArrowBackIcon, SearchIcon, DoneIcon } from '../../../icons/index.js';
|
|
7
7
|
import { WorkFlowStatusColor } from '../../../lib/global.js';
|
|
8
8
|
import { i18n } from '../../../lib/i18n.js';
|
|
9
9
|
import BaseOverflowTooltip from '../../common/overflow-tooltip/BaseOverflowTooltip.js';
|
|
10
|
-
import {
|
|
10
|
+
import { overflowStyle, tooltipStyle, overflowStyleText, headerFlowStyle, iconStyle, stateBoxStyle, headerStateStyle, flowStateStyle, FlowHandlerWrapper, FlowHandlerHeader, FlowHandlerSearchWrapper, FlowHandlerSelectMessage, FlowHandlerSelectContent, FlowHandlerSelectItem, FlowHandlerSubmitWrapper } from './style/index.js';
|
|
11
11
|
|
|
12
12
|
const SelectFlowHandler = ({ itemId, task, onBack, users, loading, loadingUser, fetchUsers, handleTransition, }) => {
|
|
13
13
|
var _a, _b, _c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { useState, useRef, useCallback, useEffect, memo } from 'react';
|
|
3
3
|
import { CaretDownOutlined } from '@ant-design/icons';
|
|
4
4
|
import { ClassNames } from '@emotion/react';
|
|
5
5
|
import { Popover, Button } from 'antd';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { useState, useCallback, useEffect, useMemo, memo } from 'react';
|
|
3
3
|
import { css, ClassNames } from '@emotion/react';
|
|
4
4
|
import { Tooltip } from 'antd';
|
|
5
5
|
import { WorkFlowStatusColor } from '../../../lib/global.js';
|
|
6
6
|
import { i18n } from '../../../lib/i18n.js';
|
|
7
7
|
import { checkTransition } from '../../../lib/workflow.js';
|
|
8
8
|
import BaseOverflowTooltip from '../../common/overflow-tooltip/BaseOverflowTooltip.js';
|
|
9
|
-
import { tipLineStyle,
|
|
9
|
+
import { tipLineStyle, tooltipStyle, iconStyle, stateBoxStyle, flowStateStyle, flowBtnStyle, notAllowedStyle, pointerStyle } from './style/index.js';
|
|
10
10
|
|
|
11
11
|
const ApprovalStatus = {
|
|
12
12
|
approved: 'approved',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { useState, useRef, useEffect, useCallback, memo } from 'react';
|
|
3
3
|
import { ClassNames } from '@emotion/react';
|
|
4
4
|
import { proximaSdk, useListener } from '@giteeteam/proxima-sdk-js';
|
|
5
5
|
import { message } from 'antd';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, memo } from 'react';
|
|
3
3
|
import { Global, css } from '@emotion/react';
|
|
4
4
|
import { proximaSdk } from '@giteeteam/proxima-sdk-js';
|
|
5
5
|
import { WorkflowIcon } from '../../../icons/index.js';
|