@giteeteam/apps-team-components 1.0.22 → 1.0.24

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.
@@ -18,7 +18,7 @@ const PriorityReadView = memo(({ value, options, readonly, apply }) => {
18
18
  });
19
19
  }, []);
20
20
  const showData = useMemo(() => { var _a; return (_a = filterData(options, value)) === null || _a === void 0 ? void 0 : _a[0]; }, [filterData, options, value]);
21
- return (_jsx(_Fragment, { children: showData ? (_jsxs("div", { css: css(cellBoxStyle(antPrefix), headerCellStyle), children: [_jsx(HollowCircleIcon, { css: css(colorIconStyle), style: { color: showData.color } }), _jsx(BaseOverflowTooltip, { title: showData.name, children: showData.name }), isFromHeader && _jsx(CaretDownOutlined, { css: css(downIconStyle) })] })) : !isFromHeader ? (_jsx("div", { css: css(emptyTextStyle), children: _jsx(EmptyField, { readonly: readonly }) })) : (_jsxs("div", { css: css(emptyStyle), children: [_jsx(DottedCircleIcon, { css: css(emptyIconStyle) }), t('pages.fields.view.noPriority')] })) }));
21
+ return (_jsx(_Fragment, { children: showData ? (_jsxs("div", { css: css(cellBoxStyle(antPrefix), isFromHeader && headerCellStyle), children: [_jsx(HollowCircleIcon, { css: css(colorIconStyle), style: { color: showData.color } }), _jsx(BaseOverflowTooltip, { title: showData.name, children: showData.name }), isFromHeader && _jsx(CaretDownOutlined, { css: css(downIconStyle) })] })) : !isFromHeader ? (_jsx("div", { css: css(emptyTextStyle), children: _jsx(EmptyField, { readonly: readonly }) })) : (_jsxs("div", { css: css(emptyStyle), children: [_jsx(DottedCircleIcon, { css: css(emptyIconStyle) }), t('pages.fields.view.noPriority')] })) }));
22
22
  });
23
23
  PriorityReadView.displayName = 'PriorityReadView';
24
24
  export default PriorityReadView;
@@ -1,7 +1,7 @@
1
1
  export declare const cellBoxStyle: (antPrefix: string) => string;
2
2
  export declare const headerCellStyle = "\n max-width: 120px;\n height: 24px;\n padding: 0 8px;\n font-size: 12px;\n font-weight: 600;\n line-height: 24px;\n color: #213053;\n text-align: center;\n background-color: #f5f6f8;\n border-radius: 4px;\n";
3
3
  export declare const emptyTextStyle = "\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n";
4
- export declare const colorIconStyle = "\n margin-right: 5px;\n font-size: 10px;\n";
4
+ export declare const colorIconStyle = "\n margin-right: 5px;\n font-size: 12px;\n";
5
5
  export declare const emptyStyle = "\n color: #909aaa;\n";
6
6
  export declare const emptyIconStyle = "\n margin-right: 5px;\n font-size: 12px!important;\n width: 12px!important;\n margin-left: 0!important;\n";
7
7
  export declare const downIconStyle = "\n margin-left: 2px;\n\n svg {\n vertical-align: inherit;\n }\n";
@@ -38,7 +38,7 @@ export const emptyTextStyle = `
38
38
  `;
39
39
  export const colorIconStyle = `
40
40
  margin-right: 5px;
41
- font-size: 10px;
41
+ font-size: 12px;
42
42
  `;
43
43
  export const emptyStyle = `
44
44
  color: ${fieldLabelColor};
@@ -35,7 +35,7 @@ const Transition = props => {
35
35
  return;
36
36
  }
37
37
  setPopoverVisible(visible);
38
- }, getPopupContainer: () => document.body, trigger: "click", placement: "bottomLeft", content: _jsx(TransitionPanel, { itemId: itemId, itemType: itemType, workspace: workspace, objectId: showData.objectId, onTransitionSuccess: transitionSuccess, name: name, readonly: readonly, setPopoverVisible: setPopoverVisible, isProcessing: isProcessing, flowing: flowing, setFlowing: setFlowing }), children: _jsxs(Button, { type: "link", className: cx(css(flowStateStyle), css(flowStateInWorkflowStyle), css(flowStateButtonStyle), css(stateBtnStyle), {
38
+ }, getPopupContainer: () => document.body, trigger: "click", placement: "bottomLeft", content: _jsx(TransitionPanel, { itemId: itemId, itemType: itemType, workspace: workspace, objectId: showData.objectId, onTransitionSuccess: transitionSuccess, name: name, readonly: readonly, setPopoverVisible: setPopoverVisible, isProcessing: isProcessing, flowing: flowing, setFlowing: setFlowing }), children: _jsxs(Button, { type: "link", className: cx('status-btn', css(flowStateStyle), css(flowStateInWorkflowStyle), css(flowStateButtonStyle), css(stateBtnStyle), {
39
39
  [css(noStateStyle)]: !showData.name,
40
40
  }), style: {
41
41
  backgroundColor: (_a = WorkFlowStatusColor[showData.type]) === null || _a === void 0 ? void 0 : _a.bgColor,
@@ -3,7 +3,7 @@ export declare const workflowContentStyle = "\n max-width: 200px;\n text-align
3
3
  export declare const statePopoverStyle: (antPrefix: string) => string;
4
4
  export declare const flowNextStyle = "\n max-height: 260px;\n padding-top: 10px;\n overflow: auto;\n margin: -12px;\n";
5
5
  export declare const flowStateStyle = "\n min-width: 62px;\n height: 24px;\n padding: 0 18px 0 8px;\n font-size: 12px;\n font-weight: 600;\n line-height: 24px;\n color: #fff;\n text-align: center;\n background: #cdcdcd;\n border-radius: 4px;\n box-shadow: none !important;\n\n span {\n text-decoration: none !important;\n }\n";
6
- export declare const flowStateInWorkflowStyle = "\n :not(.add-weights) {\n min-width: 62px;\n height: 22px;\n padding: 0 8px;\n font-size: 12px;\n font-weight: 600;\n line-height: 22px;\n color: #fff;\n text-align: center;\n background: #cdcdcd;\n border-radius: 4px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n }\n";
6
+ export declare const flowStateInWorkflowStyle = "\n &.status-btn:not(.add-weights) {\n min-width: 62px;\n height: 22px;\n padding: 0 8px;\n font-size: 12px;\n font-weight: 600;\n line-height: 22px;\n color: #fff;\n text-align: center;\n background: #cdcdcd;\n border-radius: 4px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n }\n";
7
7
  export declare const flowStateButtonStyle = "\n &:not(.add-weights) > span {\n display: -webkit-box;\n }\n";
8
8
  export declare const stateBtnStyle = "\n height: 22px;\n line-height: 22px;\n";
9
9
  export declare const noStateStyle = "\n color: #909aaa;\n background: #F1F2F4;\n";
@@ -53,7 +53,7 @@ export const flowStateStyle = `
53
53
  }
54
54
  `;
55
55
  export const flowStateInWorkflowStyle = `
56
- :not(.add-weights) {
56
+ &.status-btn:not(.add-weights) {
57
57
  min-width: ${statusCellMinWidth};
58
58
  height: 22px;
59
59
  padding: 0 8px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",