@atlaskit/link-datasource 2.11.7 → 2.11.9
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/CHANGELOG.md +16 -0
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/edit-type/text/index.js +5 -1
- package/dist/cjs/ui/issue-like-table/styled.js +9 -6
- package/dist/cjs/ui/issue-like-table/table-cell-content/index.js +7 -4
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +2 -2
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/edit-type/text/index.js +13 -7
- package/dist/es2019/ui/issue-like-table/styled.js +9 -6
- package/dist/es2019/ui/issue-like-table/table-cell-content/index.js +7 -4
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +2 -2
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/esm/ui/issue-like-table/edit-type/text/index.js +5 -1
- package/dist/esm/ui/issue-like-table/styled.js +9 -6
- package/dist/esm/ui/issue-like-table/table-cell-content/index.js +7 -4
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 2.11.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#133592](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133592)
|
|
8
|
+
[`4f2ae93fd3ff1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f2ae93fd3ff1) -
|
|
9
|
+
[ux] Makes IssueLikeTable td cells have a consistent minHeight of 40px and border of 1px, and
|
|
10
|
+
fixes several visual bugs with the edit view of InlineEdit cell
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 2.11.8
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 2.11.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -11,10 +11,10 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _button = require("@atlaskit/button");
|
|
13
13
|
var _form = require("@atlaskit/form");
|
|
14
|
-
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/check-circle"));
|
|
15
14
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle"));
|
|
16
15
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
|
|
17
16
|
var _searchEditorSearch = _interopRequireDefault(require("@atlaskit/icon/core/migration/search--editor-search"));
|
|
17
|
+
var _successCheckCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/success--check-circle"));
|
|
18
18
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
19
19
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
20
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -60,7 +60,7 @@ var renderValidatorIcon = function renderValidatorIcon(lastValidationResult) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
if (lastValidationResult.type === 'valid') {
|
|
63
|
-
return (0, _react2.jsx)(
|
|
63
|
+
return (0, _react2.jsx)(_successCheckCircle.default, {
|
|
64
64
|
label: "label",
|
|
65
65
|
color: "var(--ds-icon-success, ".concat(_colors.G300, ")"),
|
|
66
66
|
LEGACY_size: "medium",
|
|
@@ -15,7 +15,11 @@ var TextEditType = function TextEditType(props) {
|
|
|
15
15
|
}, /*#__PURE__*/_react.default.createElement(_textfield.default, (0, _extends2.default)({}, props, {
|
|
16
16
|
autoFocus: true,
|
|
17
17
|
isCompact: true,
|
|
18
|
-
testId: "inline-edit-text"
|
|
18
|
+
testId: "inline-edit-text",
|
|
19
|
+
style: {
|
|
20
|
+
// We need 8px left padding to match read only version, but there is already 1px of border
|
|
21
|
+
padding: "var(--ds-space-100, 8px)".concat(" calc(", "var(--ds-space-100, 8px)", " - 1px)")
|
|
22
|
+
}
|
|
19
23
|
})));
|
|
20
24
|
};
|
|
21
25
|
var _default = exports.default = TextEditType;
|
|
@@ -81,10 +81,12 @@ var TableCell = exports.TableCell = _styled.default.td((_styled$td = {}, (0, _de
|
|
|
81
81
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
82
82
|
border: 0,
|
|
83
83
|
minWidth: 'auto',
|
|
84
|
+
height: '32px',
|
|
84
85
|
verticalAlign: 'inherit',
|
|
85
|
-
boxSizing: '
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
boxSizing: 'content-box',
|
|
87
|
+
// Due to padding, content-box makes td height 40px equal to InlineEdit on height of 32px
|
|
88
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
|
|
89
|
+
borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
|
|
88
90
|
overflow: 'hidden'
|
|
89
91
|
}), (0, _defineProperty2.default)(_styled$td, "".concat(withTablePluginBodyPrefix('&:first-child')), {
|
|
90
92
|
paddingLeft: "var(--ds-space-100, 8px)"
|
|
@@ -103,10 +105,11 @@ var InlineEditableTableCell = exports.InlineEditableTableCell = _styled.default.
|
|
|
103
105
|
padding: "var(--ds-space-0, 0)".concat(" ", "var(--ds-space-0, 0)"),
|
|
104
106
|
border: 0,
|
|
105
107
|
minWidth: 'auto',
|
|
108
|
+
height: '40px',
|
|
106
109
|
verticalAlign: 'inherit',
|
|
107
|
-
boxSizing: '
|
|
108
|
-
borderRight: "
|
|
109
|
-
borderBottom: "
|
|
110
|
+
boxSizing: 'content-box',
|
|
111
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
|
|
112
|
+
borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
|
|
110
113
|
overflow: 'hidden'
|
|
111
114
|
}), (0, _defineProperty2.default)(_styled$td2, "".concat(withTablePluginBodyPrefix('&:last-child')), {
|
|
112
115
|
borderRight: 0
|
|
@@ -15,10 +15,13 @@ var _editType = require("../edit-type");
|
|
|
15
15
|
var _renderType = require("../render-type");
|
|
16
16
|
var _truncateTextTag = require("../truncate-text-tag");
|
|
17
17
|
var _inlineEdit = require("./inline-edit");
|
|
18
|
-
var
|
|
18
|
+
var readViewStyles = (0, _primitives.xcss)({
|
|
19
19
|
textOverflow: 'ellipsis',
|
|
20
20
|
overflow: 'hidden',
|
|
21
|
-
width: '100%'
|
|
21
|
+
width: '100%',
|
|
22
|
+
// Compensates for 2px from both top and bottom taken by InlneEdit (from transparent border in read-view mode and border+padding in edit view)
|
|
23
|
+
minHeight: 'calc(40px - 2px * 2)',
|
|
24
|
+
alignContent: 'center'
|
|
22
25
|
});
|
|
23
26
|
var TooltipWrapper = function TooltipWrapper(_ref) {
|
|
24
27
|
var columnKey = _ref.columnKey,
|
|
@@ -98,7 +101,7 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
|
|
|
98
101
|
testId: "inline-edit-read-view",
|
|
99
102
|
paddingInline: isEditable ? 'space.075' : 'space.100',
|
|
100
103
|
paddingBlock: "space.050",
|
|
101
|
-
xcss:
|
|
104
|
+
xcss: readViewStyles
|
|
102
105
|
}, renderItem(values)));
|
|
103
106
|
if (!isEditable) {
|
|
104
107
|
return readView;
|
|
@@ -149,7 +152,7 @@ var TableCellContent = exports.TableCellContent = function TableCellContent(_ref
|
|
|
149
152
|
testId: "inline-edit-read-view",
|
|
150
153
|
paddingInline: "space.100",
|
|
151
154
|
paddingBlock: "space.050",
|
|
152
|
-
xcss:
|
|
155
|
+
xcss: readViewStyles
|
|
153
156
|
}, /*#__PURE__*/_react.default.createElement(ReadOnlyCell, {
|
|
154
157
|
id: id,
|
|
155
158
|
columnKey: columnKey,
|
|
@@ -21,7 +21,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
|
-
var
|
|
24
|
+
var editContainerStyles = (0, _primitives.xcss)({
|
|
25
25
|
marginBlockStart: 'space.negative.100'
|
|
26
26
|
});
|
|
27
27
|
var mapUpdatedItem = function mapUpdatedItem(type, existingItem, columnKey, newValue) {
|
|
@@ -82,7 +82,7 @@ var InlineEdit = exports.InlineEdit = function InlineEdit(_ref) {
|
|
|
82
82
|
setIsEditing(false);
|
|
83
83
|
}, [item, datasourceTypeWithValues.type, columnKey, onUpdateItem, ari, execute, showErrorFlag, captureError]);
|
|
84
84
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
85
|
-
xcss:
|
|
85
|
+
xcss: editContainerStyles
|
|
86
86
|
}, /*#__PURE__*/_react.default.createElement(_inlineEdit.default, (0, _extends2.default)({}, (0, _editType.editType)(datasourceTypeWithValues), {
|
|
87
87
|
hideActionButtons: true,
|
|
88
88
|
readView: function readView() {
|
|
@@ -10,10 +10,10 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import { LoadingButton } from '@atlaskit/button';
|
|
12
12
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
13
|
-
import CheckCircleIcon from '@atlaskit/icon/core/migration/check-circle';
|
|
14
13
|
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
15
14
|
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
16
15
|
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
16
|
+
import CheckCircleIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
17
17
|
import Spinner from '@atlaskit/spinner';
|
|
18
18
|
import Textfield from '@atlaskit/textfield';
|
|
19
19
|
import { G300, N500, R400 } from '@atlaskit/theme/colors';
|
|
@@ -2,11 +2,17 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
4
4
|
import Textfield from '@atlaskit/textfield';
|
|
5
|
-
const TextEditType = props =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const TextEditType = props => {
|
|
6
|
+
return /*#__PURE__*/React.createElement(UNSAFE_LAYERING, {
|
|
7
|
+
isDisabled: false
|
|
8
|
+
}, /*#__PURE__*/React.createElement(Textfield, _extends({}, props, {
|
|
9
|
+
autoFocus: true,
|
|
10
|
+
isCompact: true,
|
|
11
|
+
testId: "inline-edit-text",
|
|
12
|
+
style: {
|
|
13
|
+
// We need 8px left padding to match read only version, but there is already 1px of border
|
|
14
|
+
padding: `${"var(--ds-space-100, 8px)"} calc(${"var(--ds-space-100, 8px)"} - 1px)`
|
|
15
|
+
}
|
|
16
|
+
})));
|
|
17
|
+
};
|
|
12
18
|
export default TextEditType;
|
|
@@ -87,10 +87,12 @@ export const TableCell = styled.td({
|
|
|
87
87
|
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`,
|
|
88
88
|
border: 0,
|
|
89
89
|
minWidth: 'auto',
|
|
90
|
+
height: '32px',
|
|
90
91
|
verticalAlign: 'inherit',
|
|
91
|
-
boxSizing: '
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
boxSizing: 'content-box',
|
|
93
|
+
// Due to padding, content-box makes td height 40px equal to InlineEdit on height of 32px
|
|
94
|
+
borderRight: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
|
|
95
|
+
borderBottom: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
|
|
94
96
|
overflow: 'hidden'
|
|
95
97
|
},
|
|
96
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -120,10 +122,11 @@ export const InlineEditableTableCell = styled.td({
|
|
|
120
122
|
padding: `${"var(--ds-space-0, 0)"} ${"var(--ds-space-0, 0)"}`,
|
|
121
123
|
border: 0,
|
|
122
124
|
minWidth: 'auto',
|
|
125
|
+
height: '40px',
|
|
123
126
|
verticalAlign: 'inherit',
|
|
124
|
-
boxSizing: '
|
|
125
|
-
borderRight:
|
|
126
|
-
borderBottom:
|
|
127
|
+
boxSizing: 'content-box',
|
|
128
|
+
borderRight: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
|
|
129
|
+
borderBottom: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
|
|
127
130
|
overflow: 'hidden'
|
|
128
131
|
},
|
|
129
132
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -8,10 +8,13 @@ import { isEditTypeSupported } from '../edit-type';
|
|
|
8
8
|
import { stringifyType } from '../render-type';
|
|
9
9
|
import { TruncateTextTag } from '../truncate-text-tag';
|
|
10
10
|
import { InlineEdit } from './inline-edit';
|
|
11
|
-
const
|
|
11
|
+
const readViewStyles = xcss({
|
|
12
12
|
textOverflow: 'ellipsis',
|
|
13
13
|
overflow: 'hidden',
|
|
14
|
-
width: '100%'
|
|
14
|
+
width: '100%',
|
|
15
|
+
// Compensates for 2px from both top and bottom taken by InlneEdit (from transparent border in read-view mode and border+padding in edit view)
|
|
16
|
+
minHeight: 'calc(40px - 2px * 2)',
|
|
17
|
+
alignContent: 'center'
|
|
15
18
|
});
|
|
16
19
|
const TooltipWrapper = ({
|
|
17
20
|
columnKey,
|
|
@@ -91,7 +94,7 @@ const InlineEditableCell = ({
|
|
|
91
94
|
testId: "inline-edit-read-view",
|
|
92
95
|
paddingInline: isEditable ? 'space.075' : 'space.100',
|
|
93
96
|
paddingBlock: "space.050",
|
|
94
|
-
xcss:
|
|
97
|
+
xcss: readViewStyles
|
|
95
98
|
}, renderItem(values)));
|
|
96
99
|
if (!isEditable) {
|
|
97
100
|
return readView;
|
|
@@ -145,7 +148,7 @@ export const TableCellContent = ({
|
|
|
145
148
|
testId: "inline-edit-read-view",
|
|
146
149
|
paddingInline: "space.100",
|
|
147
150
|
paddingBlock: "space.050",
|
|
148
|
-
xcss:
|
|
151
|
+
xcss: readViewStyles
|
|
149
152
|
}, /*#__PURE__*/React.createElement(ReadOnlyCell, {
|
|
150
153
|
id: id,
|
|
151
154
|
columnKey: columnKey,
|
|
@@ -6,7 +6,7 @@ import { useDatasourceTableFlag } from '../../../hooks/useDatasourceTableFlag';
|
|
|
6
6
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
7
7
|
import { useDatasourceActions, useDatasourceItem } from '../../../state';
|
|
8
8
|
import { editType } from '../edit-type';
|
|
9
|
-
const
|
|
9
|
+
const editContainerStyles = xcss({
|
|
10
10
|
marginBlockStart: 'space.negative.100'
|
|
11
11
|
});
|
|
12
12
|
const mapUpdatedItem = (type, existingItem, columnKey, newValue) => {
|
|
@@ -71,7 +71,7 @@ export const InlineEdit = ({
|
|
|
71
71
|
setIsEditing(false);
|
|
72
72
|
}, [item, datasourceTypeWithValues.type, columnKey, onUpdateItem, ari, execute, showErrorFlag, captureError]);
|
|
73
73
|
return /*#__PURE__*/React.createElement(Box, {
|
|
74
|
-
xcss:
|
|
74
|
+
xcss: editContainerStyles
|
|
75
75
|
}, /*#__PURE__*/React.createElement(AKInlineEdit, _extends({}, editType(datasourceTypeWithValues), {
|
|
76
76
|
hideActionButtons: true,
|
|
77
77
|
readView: () => readView,
|
|
@@ -10,10 +10,10 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import { LoadingButton } from '@atlaskit/button';
|
|
12
12
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
13
|
-
import CheckCircleIcon from '@atlaskit/icon/core/migration/check-circle';
|
|
14
13
|
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
15
14
|
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
16
15
|
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
16
|
+
import CheckCircleIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
17
17
|
import Spinner from '@atlaskit/spinner';
|
|
18
18
|
import Textfield from '@atlaskit/textfield';
|
|
19
19
|
import { G300, N500, R400 } from '@atlaskit/theme/colors';
|
|
@@ -8,7 +8,11 @@ var TextEditType = function TextEditType(props) {
|
|
|
8
8
|
}, /*#__PURE__*/React.createElement(Textfield, _extends({}, props, {
|
|
9
9
|
autoFocus: true,
|
|
10
10
|
isCompact: true,
|
|
11
|
-
testId: "inline-edit-text"
|
|
11
|
+
testId: "inline-edit-text",
|
|
12
|
+
style: {
|
|
13
|
+
// We need 8px left padding to match read only version, but there is already 1px of border
|
|
14
|
+
padding: "var(--ds-space-100, 8px)".concat(" calc(", "var(--ds-space-100, 8px)", " - 1px)")
|
|
15
|
+
}
|
|
12
16
|
})));
|
|
13
17
|
};
|
|
14
18
|
export default TextEditType;
|
|
@@ -75,10 +75,12 @@ export var TableCell = styled.td((_styled$td = {}, _defineProperty(_styled$td, "
|
|
|
75
75
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
76
76
|
border: 0,
|
|
77
77
|
minWidth: 'auto',
|
|
78
|
+
height: '32px',
|
|
78
79
|
verticalAlign: 'inherit',
|
|
79
|
-
boxSizing: '
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
boxSizing: 'content-box',
|
|
81
|
+
// Due to padding, content-box makes td height 40px equal to InlineEdit on height of 32px
|
|
82
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
|
|
83
|
+
borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
|
|
82
84
|
overflow: 'hidden'
|
|
83
85
|
}), _defineProperty(_styled$td, "".concat(withTablePluginBodyPrefix('&:first-child')), {
|
|
84
86
|
paddingLeft: "var(--ds-space-100, 8px)"
|
|
@@ -97,10 +99,11 @@ export var InlineEditableTableCell = styled.td((_styled$td2 = {}, _definePropert
|
|
|
97
99
|
padding: "var(--ds-space-0, 0)".concat(" ", "var(--ds-space-0, 0)"),
|
|
98
100
|
border: 0,
|
|
99
101
|
minWidth: 'auto',
|
|
102
|
+
height: '40px',
|
|
100
103
|
verticalAlign: 'inherit',
|
|
101
|
-
boxSizing: '
|
|
102
|
-
borderRight: "
|
|
103
|
-
borderBottom: "
|
|
104
|
+
boxSizing: 'content-box',
|
|
105
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
|
|
106
|
+
borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
|
|
104
107
|
overflow: 'hidden'
|
|
105
108
|
}), _defineProperty(_styled$td2, "".concat(withTablePluginBodyPrefix('&:last-child')), {
|
|
106
109
|
borderRight: 0
|
|
@@ -8,10 +8,13 @@ import { isEditTypeSupported } from '../edit-type';
|
|
|
8
8
|
import { stringifyType } from '../render-type';
|
|
9
9
|
import { TruncateTextTag } from '../truncate-text-tag';
|
|
10
10
|
import { InlineEdit } from './inline-edit';
|
|
11
|
-
var
|
|
11
|
+
var readViewStyles = xcss({
|
|
12
12
|
textOverflow: 'ellipsis',
|
|
13
13
|
overflow: 'hidden',
|
|
14
|
-
width: '100%'
|
|
14
|
+
width: '100%',
|
|
15
|
+
// Compensates for 2px from both top and bottom taken by InlneEdit (from transparent border in read-view mode and border+padding in edit view)
|
|
16
|
+
minHeight: 'calc(40px - 2px * 2)',
|
|
17
|
+
alignContent: 'center'
|
|
15
18
|
});
|
|
16
19
|
var TooltipWrapper = function TooltipWrapper(_ref) {
|
|
17
20
|
var columnKey = _ref.columnKey,
|
|
@@ -91,7 +94,7 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
|
|
|
91
94
|
testId: "inline-edit-read-view",
|
|
92
95
|
paddingInline: isEditable ? 'space.075' : 'space.100',
|
|
93
96
|
paddingBlock: "space.050",
|
|
94
|
-
xcss:
|
|
97
|
+
xcss: readViewStyles
|
|
95
98
|
}, renderItem(values)));
|
|
96
99
|
if (!isEditable) {
|
|
97
100
|
return readView;
|
|
@@ -142,7 +145,7 @@ export var TableCellContent = function TableCellContent(_ref4) {
|
|
|
142
145
|
testId: "inline-edit-read-view",
|
|
143
146
|
paddingInline: "space.100",
|
|
144
147
|
paddingBlock: "space.050",
|
|
145
|
-
xcss:
|
|
148
|
+
xcss: readViewStyles
|
|
146
149
|
}, /*#__PURE__*/React.createElement(ReadOnlyCell, {
|
|
147
150
|
id: id,
|
|
148
151
|
columnKey: columnKey,
|
|
@@ -11,7 +11,7 @@ import { useDatasourceTableFlag } from '../../../hooks/useDatasourceTableFlag';
|
|
|
11
11
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
12
12
|
import { useDatasourceActions, useDatasourceItem } from '../../../state';
|
|
13
13
|
import { editType } from '../edit-type';
|
|
14
|
-
var
|
|
14
|
+
var editContainerStyles = xcss({
|
|
15
15
|
marginBlockStart: 'space.negative.100'
|
|
16
16
|
});
|
|
17
17
|
var mapUpdatedItem = function mapUpdatedItem(type, existingItem, columnKey, newValue) {
|
|
@@ -72,7 +72,7 @@ export var InlineEdit = function InlineEdit(_ref) {
|
|
|
72
72
|
setIsEditing(false);
|
|
73
73
|
}, [item, datasourceTypeWithValues.type, columnKey, onUpdateItem, ari, execute, showErrorFlag, captureError]);
|
|
74
74
|
return /*#__PURE__*/React.createElement(Box, {
|
|
75
|
-
xcss:
|
|
75
|
+
xcss: editContainerStyles
|
|
76
76
|
}, /*#__PURE__*/React.createElement(AKInlineEdit, _extends({}, editType(datasourceTypeWithValues), {
|
|
77
77
|
hideActionButtons: true,
|
|
78
78
|
readView: function readView() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.9",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@atlaskit/avatar-group": "^9.11.0",
|
|
43
43
|
"@atlaskit/badge": "^16.4.0",
|
|
44
44
|
"@atlaskit/button": "^20.1.0",
|
|
45
|
-
"@atlaskit/datetime-picker": "^
|
|
45
|
+
"@atlaskit/datetime-picker": "^14.0.0",
|
|
46
46
|
"@atlaskit/dropdown-menu": "^12.17.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
48
48
|
"@atlaskit/empty-state": "^7.11.0",
|
|
49
49
|
"@atlaskit/flag": "^15.8.0",
|
|
50
50
|
"@atlaskit/form": "^10.5.0",
|
|
51
51
|
"@atlaskit/heading": "^2.4.0",
|
|
52
|
-
"@atlaskit/icon": "^22.
|
|
52
|
+
"@atlaskit/icon": "^22.15.0",
|
|
53
53
|
"@atlaskit/icon-object": "^6.5.0",
|
|
54
54
|
"@atlaskit/image": "^1.3.0",
|
|
55
55
|
"@atlaskit/inline-edit": "^13.7.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
74
74
|
"@atlaskit/primitives": "^12.0.0",
|
|
75
75
|
"@atlaskit/select": "^17.15.0",
|
|
76
|
-
"@atlaskit/smart-card": "^27.
|
|
76
|
+
"@atlaskit/smart-card": "^27.18.0",
|
|
77
77
|
"@atlaskit/smart-user-picker": "6.10.2",
|
|
78
78
|
"@atlaskit/spinner": "^16.3.0",
|
|
79
79
|
"@atlaskit/tag": "^12.5.0",
|