@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.
- package/dist/components/table-components/utils.js +1 -2
- package/dist/lib/global.d.ts +1 -1
- package/dist/lib/global.js +1 -1
- package/package.json +1 -1
- package/dist/components/fields/predecessor-tasks/BaseField.d.ts +0 -3
- package/dist/components/fields/predecessor-tasks/BaseField.js +0 -14
- package/dist/components/fields/predecessor-tasks/ReadView.d.ts +0 -4
- package/dist/components/fields/predecessor-tasks/ReadView.js +0 -14
- package/dist/components/fields/predecessor-tasks/type.d.ts +0 -4
|
@@ -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.
|
|
80
|
+
[FIELD_TYPE_KEY_MAPPINGS.ItemLinkedStatistics]: TextReadView,
|
|
82
81
|
};
|
|
83
82
|
return standardReadComponents;
|
|
84
83
|
};
|
package/dist/lib/global.d.ts
CHANGED
|
@@ -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: {
|
package/dist/lib/global.js
CHANGED
|
@@ -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,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,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 };
|