@giteeteam/apps-team-components 1.0.29 → 1.0.31
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/fields/repo-files/ReadView.d.ts +4 -0
- package/dist/components/fields/repo-files/ReadView.js +11 -0
- package/dist/components/fields/repo-files/utils.d.ts +2 -0
- package/dist/components/fields/repo-files/utils.js +4 -0
- package/dist/components/fields/user/ReadView.js +1 -1
- package/dist/components/table-components/utils.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/global.d.ts +1 -0
- package/dist/lib/global.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import EmptyField from '../../common/EmptyField';
|
|
3
|
+
import BaseOverflowTooltip from '../../common/overflow-tooltip/BaseOverflowTooltip';
|
|
4
|
+
import { formatDisplayValue } from './utils';
|
|
5
|
+
const RepoFileReadView = props => {
|
|
6
|
+
const { value, readonly } = props;
|
|
7
|
+
const displayValue = formatDisplayValue(value);
|
|
8
|
+
return (_jsx("div", { className: "field-cell-layout", children: displayValue ? (_jsx(BaseOverflowTooltip, { title: displayValue, children: displayValue })) : (_jsx(EmptyField, { readonly: readonly })) }));
|
|
9
|
+
};
|
|
10
|
+
RepoFileReadView.displayName = 'RepoFileReadView';
|
|
11
|
+
export default RepoFileReadView;
|
|
@@ -16,7 +16,7 @@ const UserReadView = memo(({ value, readonly }) => {
|
|
|
16
16
|
if (!displayValues.length) {
|
|
17
17
|
return _jsx(EmptyField, { readonly: readonly, isUser: true });
|
|
18
18
|
}
|
|
19
|
-
return _jsx(BaseOverflowTooltip, { maxline: 1, children: displayValues });
|
|
19
|
+
return _jsx(BaseOverflowTooltip, { title: displayValues, maxline: 1, children: displayValues });
|
|
20
20
|
});
|
|
21
21
|
UserReadView.displayName = 'UserReadView';
|
|
22
22
|
export default UserReadView;
|
|
@@ -20,6 +20,7 @@ import LongTextReadView from '../fields/long-text/ReadView';
|
|
|
20
20
|
import NumberReadView from '../fields/number/ReadView';
|
|
21
21
|
import PriorityReadView from '../fields/priority/ReadView';
|
|
22
22
|
import RadioReadView from '../fields/radio/ReadView';
|
|
23
|
+
import RepoFileReadView from '../fields/repo-files/ReadView';
|
|
23
24
|
import ReporterReadView from '../fields/reporter/ReadView';
|
|
24
25
|
import ScriptReadView from '../fields/script/ReadView';
|
|
25
26
|
import SprintReadView from '../fields/sprint/ReadView';
|
|
@@ -56,6 +57,7 @@ export const getStandardReadComponents = () => {
|
|
|
56
57
|
[FIELD_TYPE_KEY_MAPPINGS.Number]: NumberReadView,
|
|
57
58
|
[FIELD_TYPE_KEY_MAPPINGS.Priority]: PriorityReadView,
|
|
58
59
|
[FIELD_TYPE_KEY_MAPPINGS.Radio]: RadioReadView,
|
|
60
|
+
[FIELD_TYPE_KEY_MAPPINGS.RepoFiles]: RepoFileReadView,
|
|
59
61
|
[FIELD_TYPE_KEY_MAPPINGS.Sprint]: SprintReadView,
|
|
60
62
|
[FIELD_TYPE_KEY_MAPPINGS.Status]: StatusReadView,
|
|
61
63
|
[FIELD_TYPE_KEY_MAPPINGS.StoryPoint]: StoryPointReadView,
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { default as LongTextReadView } from './components/fields/long-text/ReadV
|
|
|
23
23
|
export { default as NumberReadView } from './components/fields/number/ReadView';
|
|
24
24
|
export { default as PriorityReadView } from './components/fields/priority/ReadView';
|
|
25
25
|
export { default as RadioReadView } from './components/fields/radio/ReadView';
|
|
26
|
+
export { default as RepoFileReadView } from './components/fields/repo-files/ReadView';
|
|
26
27
|
export { default as ReporterReadView } from './components/fields/reporter/ReadView';
|
|
27
28
|
export { default as ScriptReadView } from './components/fields/script/ReadView';
|
|
28
29
|
export { default as SprintReadView } from './components/fields/sprint/ReadView';
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export { default as LongTextReadView } from './components/fields/long-text/ReadV
|
|
|
23
23
|
export { default as NumberReadView } from './components/fields/number/ReadView';
|
|
24
24
|
export { default as PriorityReadView } from './components/fields/priority/ReadView';
|
|
25
25
|
export { default as RadioReadView } from './components/fields/radio/ReadView';
|
|
26
|
+
export { default as RepoFileReadView } from './components/fields/repo-files/ReadView';
|
|
26
27
|
export { default as ReporterReadView } from './components/fields/reporter/ReadView';
|
|
27
28
|
export { default as ScriptReadView } from './components/fields/script/ReadView';
|
|
28
29
|
export { default as SprintReadView } from './components/fields/sprint/ReadView';
|
package/dist/lib/global.d.ts
CHANGED
package/dist/lib/global.js
CHANGED