@giteeteam/apps-team-components 1.5.1 → 1.6.0-alpha.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 CHANGED
@@ -18,9 +18,9 @@ pnpm storybook
18
18
 
19
19
  | 组件库版本 | team版本 |
20
20
  | --| -- |
21
- | 1.1.x | >=4.16.0 |
22
- | 1.2.x | >=4.21.0 |
23
- | 1.3.x | >=4.23.0 |
24
- | 1.4.x | >=4.24.0 |
21
+ | 1.6.x | >=4.29.0 |
25
22
  | 1.5.x | >=4.27.0 |
26
-
23
+ | 1.4.x | >=4.24.0 |
24
+ | 1.3.x | >=4.23.0 |
25
+ | 1.2.x | >=4.21.0 |
26
+ | 1.1.x | >=4.16.0 |
@@ -0,0 +1,9 @@
1
+ export type BaseLineItemVersionReadViewProps = {
2
+ value?: {
3
+ name: string;
4
+ baseLineItemId?: string;
5
+ };
6
+ readonly?: boolean;
7
+ };
8
+ declare const BaseLineItemVersionReadView: import("react").NamedExoticComponent<BaseLineItemVersionReadViewProps>;
9
+ export default BaseLineItemVersionReadView;
@@ -0,0 +1,15 @@
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
+ import { memo } from 'react';
3
+ import EmptyField from '../../common/EmptyField.js';
4
+ import SimpleOverflowToolTip from '../../common/overflow-tooltip/SimpleOverflowToolTip.js';
5
+
6
+ const BaseLineItemVersionReadView = memo(props => {
7
+ const { value: propsValue, readonly } = props;
8
+ const showValue = propsValue.name;
9
+ if (!showValue) {
10
+ return jsx(EmptyField, { readonly: readonly });
11
+ }
12
+ return jsx(SimpleOverflowToolTip, { title: showValue, children: showValue });
13
+ });
14
+
15
+ export { BaseLineItemVersionReadView as default };
@@ -2,6 +2,7 @@ import { FIELD_TYPE_KEY_MAPPINGS } from '../../lib/global.js';
2
2
  import ActorReadView from '../fields/actors/ReadView.js';
3
3
  import AncestorReadView from '../fields/ancestor/ReadView.js';
4
4
  import AssigneeReadView from '../fields/assignee/ReadView.js';
5
+ import BaseLineItemVersionReadView from '../fields/baseline-item-version/ReadView.js';
5
6
  import BindWorkspaceReadView from '../fields/bind-workspace/ReadView.js';
6
7
  import Cascade from '../fields/cascade/ReadView.js';
7
8
  import CheckboxReadView from '../fields/checkbox/ReadView.js';
@@ -43,6 +44,7 @@ const getStandardReadComponents = () => {
43
44
  const standardReadComponents = {
44
45
  [FIELD_TYPE_KEY_MAPPINGS.Ancestor]: AncestorReadView,
45
46
  [FIELD_TYPE_KEY_MAPPINGS.Assignee]: AssigneeReadView,
47
+ [FIELD_TYPE_KEY_MAPPINGS.BaseLineItemVersion]: BaseLineItemVersionReadView,
46
48
  [FIELD_TYPE_KEY_MAPPINGS.BindWorkspace]: BindWorkspaceReadView,
47
49
  [FIELD_TYPE_KEY_MAPPINGS.Cascade]: Cascade,
48
50
  [FIELD_TYPE_KEY_MAPPINGS.Checkbox]: CheckboxReadView,
@@ -40,6 +40,7 @@ export declare const FIELD_TYPE_KEY_MAPPINGS: {
40
40
  Snapshot: string;
41
41
  ItemHandler: string;
42
42
  Ancestor: string;
43
+ BaseLineItemVersion: string;
43
44
  CreatedAt: string;
44
45
  UpdatedAt: string;
45
46
  CreatedBy: string;
@@ -39,6 +39,7 @@ const FIELD_TYPE_KEY_MAPPINGS = {
39
39
  Snapshot: 'Snapshot',
40
40
  ItemHandler: 'ItemHandler',
41
41
  Ancestor: 'Ancestor',
42
+ BaseLineItemVersion: 'BaseLineItemVersion',
42
43
  CreatedAt: 'createdAt',
43
44
  UpdatedAt: 'updatedAt',
44
45
  CreatedBy: 'createdBy',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.5.1",
3
+ "version": "1.6.0-alpha.1",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",