@giteeteam/apps-team-components 1.11.10-alpha.2 → 1.11.10

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.
@@ -21,7 +21,6 @@ import ItemTypeReadView from '../fields/item-type/ReadView.js';
21
21
  import KeyReadView from '../fields/key/ReadView.js';
22
22
  import LongTextReadView from '../fields/long-text/ReadView.js';
23
23
  import NumberReadView from '../fields/number/ReadView.js';
24
- import PreTaskReadView from '../fields/predecessor-tasks/ReadView.js';
25
24
  import PriorityCell from '../fields/priority/ActionCell.js';
26
25
  import PriorityReadView from '../fields/priority/ReadView.js';
27
26
  import RadioReadView from '../fields/radio/ReadView.js';
@@ -78,7 +77,7 @@ const getStandardReadComponents = () => {
78
77
  [FIELD_TYPE_KEY_MAPPINGS.UserGroup]: UserGroupReadView,
79
78
  [FIELD_TYPE_KEY_MAPPINGS.Version]: VersionReadView,
80
79
  [FIELD_TYPE_KEY_MAPPINGS.Workspace]: WorkspaceReadView,
81
- [FIELD_TYPE_KEY_MAPPINGS.PredecessorTasks]: PreTaskReadView,
80
+ [FIELD_TYPE_KEY_MAPPINGS.ItemLinkedStatistics]: TextReadView,
82
81
  };
83
82
  return standardReadComponents;
84
83
  };
@@ -41,7 +41,6 @@ export declare const FIELD_TYPE_KEY_MAPPINGS: {
41
41
  ItemHandler: string;
42
42
  Ancestor: string;
43
43
  BaseLineItemVersion: string;
44
- PredecessorTasks: string;
45
44
  CreatedAt: string;
46
45
  UpdatedAt: string;
47
46
  CreatedBy: string;
@@ -61,6 +60,7 @@ export declare const FIELD_TYPE_KEY_MAPPINGS: {
61
60
  Cascade: string;
62
61
  RepoFiles: string;
63
62
  AppsItemPanel: string;
63
+ ItemLinkedStatistics: string;
64
64
  };
65
65
  export declare const DATE_TYPE: Record<Uppercase<DateType>, DateType>;
66
66
  export declare const DATE_FORMAT: {
@@ -40,7 +40,6 @@ const FIELD_TYPE_KEY_MAPPINGS = {
40
40
  ItemHandler: 'ItemHandler',
41
41
  Ancestor: 'Ancestor',
42
42
  BaseLineItemVersion: 'BaseLineItemVersion',
43
- PredecessorTasks: 'PredecessorTasks',
44
43
  CreatedAt: 'createdAt',
45
44
  UpdatedAt: 'updatedAt',
46
45
  CreatedBy: 'createdBy',
@@ -60,6 +59,7 @@ const FIELD_TYPE_KEY_MAPPINGS = {
60
59
  Cascade: 'Cascade',
61
60
  RepoFiles: 'RepoFiles',
62
61
  AppsItemPanel: 'AppsItemPanel',
62
+ ItemLinkedStatistics: 'ItemLinkedStatistics',
63
63
  };
64
64
  const DATE_TYPE = {
65
65
  DATETIME: 'dateTime',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.11.10-alpha.2",
3
+ "version": "1.11.10",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import type { PreTaskBaseProps } from './type';
3
- export declare const PreTaskBaseField: FC<PreTaskBaseProps>;
@@ -1,14 +0,0 @@
1
- import { jsx } from '@emotion/react/jsx-runtime';
2
- import { ClassNames } from '@emotion/react';
3
- import EmptyField from '../../common/EmptyField.js';
4
-
5
- const TaskFieldStyle = `
6
- line-height: 32px;
7
- `;
8
- const PreTaskBaseField = ({ value }) => {
9
- const displayValue = Array.isArray(value) ? value.join() : value;
10
- return displayValue ? (jsx(ClassNames, { children: ({ cx, css }) => (jsx("span", { className: cx('tooltip-overflow tooltip-maxline-1', css(TaskFieldStyle)), children: displayValue })) })) : (jsx(EmptyField, { readonly: true }));
11
- };
12
- PreTaskBaseField.displayName = 'PreTaskBaseField';
13
-
14
- export { PreTaskBaseField };
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import type { PreTaskBaseProps } from './type';
3
- declare const PreTaskReadView: FC<PreTaskBaseProps>;
4
- export default PreTaskReadView;
@@ -1,14 +0,0 @@
1
- import { jsx } from '@emotion/react/jsx-runtime';
2
- import { proximaSdk } from '@giteeteam/proxima-sdk-js';
3
- import { useDebounceFn } from 'ahooks';
4
- import { PreTaskBaseField } from './BaseField.js';
5
-
6
- const PreTaskReadView = ({ value, itemId }) => {
7
- const { run: handleClick } = useDebounceFn(() => {
8
- console.info(`Open editor for item ID: ${itemId}`);
9
- proximaSdk.execute('openItemViewScreen', itemId);
10
- }, { wait: 300 });
11
- return (jsx("div", { className: "field-cell-layout", onClick: handleClick, children: jsx(PreTaskBaseField, { value: value }) }));
12
- };
13
-
14
- export { PreTaskReadView as default };
@@ -1,4 +0,0 @@
1
- export interface PreTaskBaseProps {
2
- value: string | string[] | null | undefined;
3
- itemId?: string;
4
- }