@atlaskit/link-datasource 1.19.20 → 1.19.21
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 +6 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +14 -14
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +20 -18
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +6 -4
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +15 -13
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/index.js +8 -5
- package/dist/cjs/ui/assets-modal/search-container/loading-state.js +6 -3
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +4 -3
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
- package/dist/cjs/ui/common/error-state/access-required.js +10 -8
- package/dist/cjs/ui/common/error-state/loading-error.js +8 -6
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +9 -7
- package/dist/cjs/ui/common/error-state/no-instances.js +6 -6
- package/dist/cjs/ui/common/error-state/no-results.js +39 -37
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +9 -8
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +6 -5
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +7 -5
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +6 -5
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +6 -6
- package/dist/cjs/ui/issue-like-table/empty-state/index.js +15 -13
- package/dist/cjs/ui/issue-like-table/index.js +15 -14
- package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +3 -3
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/index.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-search-input/index.js +6 -4
- package/dist/cjs/ui/jira-issues-modal/initial-state-view/index.js +10 -8
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +7 -9
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +29 -29
- package/dist/cjs/ui/jira-issues-modal/mode-switcher/index.js +6 -4
- package/dist/cjs/ui/jira-issues-modal/site-selector/index.js +3 -2
- package/dist/cjs/ui/table-footer/index.js +12 -10
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +15 -14
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +20 -19
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +7 -5
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +15 -14
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/loading-state.js +3 -1
- package/dist/es2019/ui/assets-modal/search-container/index.js +7 -5
- package/dist/es2019/ui/assets-modal/search-container/loading-state.js +5 -3
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +5 -2
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/loading-state.js +3 -1
- package/dist/es2019/ui/common/error-state/access-required.js +10 -9
- package/dist/es2019/ui/common/error-state/loading-error.js +8 -7
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +9 -8
- package/dist/es2019/ui/common/error-state/no-instances.js +6 -7
- package/dist/es2019/ui/common/error-state/no-results.js +39 -38
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +7 -6
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +7 -5
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +5 -4
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +7 -6
- package/dist/es2019/ui/issue-like-table/empty-state/index.js +15 -14
- package/dist/es2019/ui/issue-like-table/index.js +16 -15
- package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +4 -3
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/index.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-search-input/index.js +6 -5
- package/dist/es2019/ui/jira-issues-modal/initial-state-view/index.js +11 -9
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +8 -9
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +30 -29
- package/dist/es2019/ui/jira-issues-modal/mode-switcher/index.js +6 -5
- package/dist/es2019/ui/jira-issues-modal/site-selector/index.js +4 -3
- package/dist/es2019/ui/table-footer/index.js +12 -10
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +15 -14
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +20 -19
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +7 -5
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +15 -14
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/loading-state.js +3 -1
- package/dist/esm/ui/assets-modal/search-container/index.js +7 -5
- package/dist/esm/ui/assets-modal/search-container/loading-state.js +5 -3
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +5 -2
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/loading-state.js +3 -1
- package/dist/esm/ui/common/error-state/access-required.js +10 -9
- package/dist/esm/ui/common/error-state/loading-error.js +8 -7
- package/dist/esm/ui/common/error-state/modal-loading-error.js +9 -8
- package/dist/esm/ui/common/error-state/no-instances.js +6 -7
- package/dist/esm/ui/common/error-state/no-results.js +39 -38
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +7 -6
- package/dist/esm/ui/issue-like-table/column-picker/index.js +7 -5
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +7 -6
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +7 -6
- package/dist/esm/ui/issue-like-table/empty-state/index.js +15 -14
- package/dist/esm/ui/issue-like-table/index.js +16 -15
- package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +4 -3
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/index.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-search-input/index.js +6 -5
- package/dist/esm/ui/jira-issues-modal/initial-state-view/index.js +11 -9
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +8 -9
- package/dist/esm/ui/jira-issues-modal/modal/index.js +30 -29
- package/dist/esm/ui/jira-issues-modal/mode-switcher/index.js +6 -5
- package/dist/esm/ui/jira-issues-modal/site-selector/index.js +4 -3
- package/dist/esm/ui/table-footer/index.js +12 -10
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children"];
|
|
4
|
-
|
|
4
|
+
/** @jsx jsx */
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
7
|
import { components } from '@atlaskit/select';
|
|
7
8
|
import { columnPickerMessages } from './messages';
|
|
@@ -17,19 +18,19 @@ export var ConcatenatedMenuList = function ConcatenatedMenuList(_ref) {
|
|
|
17
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
19
|
var shouldUseDefaultMenuList = !children || !Array.isArray(children) || children.length <= SELECT_ITEMS_MAXIMUM_THRESHOLD;
|
|
19
20
|
if (shouldUseDefaultMenuList) {
|
|
20
|
-
return
|
|
21
|
+
return jsx(components.MenuList, props, children);
|
|
21
22
|
}
|
|
22
23
|
var optionStyle = {
|
|
23
24
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-200, 16px)"),
|
|
24
25
|
height: 'auto'
|
|
25
26
|
};
|
|
26
|
-
var maximumLimitReachedMessage =
|
|
27
|
+
var maximumLimitReachedMessage = jsx("div", {
|
|
27
28
|
css: messageStyles,
|
|
28
29
|
style: optionStyle
|
|
29
|
-
},
|
|
30
|
+
}, jsx(FormattedMessage, _extends({
|
|
30
31
|
tagName: 'div'
|
|
31
|
-
}, columnPickerMessages.maximumItemsShownLine1)),
|
|
32
|
+
}, columnPickerMessages.maximumItemsShownLine1)), jsx(FormattedMessage, _extends({
|
|
32
33
|
tagName: 'div'
|
|
33
34
|
}, columnPickerMessages.maximumItemsShownLine2)));
|
|
34
|
-
return
|
|
35
|
+
return jsx(components.MenuList, props, children.slice(0, SELECT_ITEMS_MAXIMUM_THRESHOLD), maximumLimitReachedMessage);
|
|
35
36
|
};
|
|
@@ -3,7 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
5
|
var _excluded = ["isOpen"];
|
|
6
|
+
/** @jsx jsx */
|
|
6
7
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
7
9
|
import { useIntl } from 'react-intl-next';
|
|
8
10
|
import Button from '@atlaskit/button/standard-button';
|
|
9
11
|
import BoardIcon from '@atlaskit/icon/glyph/board';
|
|
@@ -105,7 +107,7 @@ export var ColumnPicker = function ColumnPicker(_ref) {
|
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
109
|
}, [allOptions, parentContainerRenderInstanceId]);
|
|
108
|
-
return
|
|
110
|
+
return jsx(PopupSelect, {
|
|
109
111
|
classNamePrefix: 'column-picker-popup',
|
|
110
112
|
testId: 'column-picker-popup',
|
|
111
113
|
components: {
|
|
@@ -132,15 +134,15 @@ export var ColumnPicker = function ColumnPicker(_ref) {
|
|
|
132
134
|
target: function target(_ref8) {
|
|
133
135
|
var isOpen = _ref8.isOpen,
|
|
134
136
|
triggerProps = _objectWithoutProperties(_ref8, _excluded);
|
|
135
|
-
return
|
|
137
|
+
return jsx(Tooltip, {
|
|
136
138
|
content: intl.formatMessage(columnPickerMessages.tooltip)
|
|
137
139
|
}, function (tooltipProps) {
|
|
138
|
-
return
|
|
140
|
+
return jsx(Button, _extends({}, tooltipProps, triggerProps, {
|
|
139
141
|
isSelected: isOpen,
|
|
140
|
-
iconBefore:
|
|
142
|
+
iconBefore: jsx("div", null, jsx(BoardIcon, {
|
|
141
143
|
label: "board",
|
|
142
144
|
size: "medium"
|
|
143
|
-
}),
|
|
145
|
+
}), jsx(ChevronDownIcon, {
|
|
144
146
|
label: "down",
|
|
145
147
|
size: "medium"
|
|
146
148
|
})),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import React from 'react';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import styled from '@emotion/styled';
|
|
6
7
|
import { TableHeading } from './styled';
|
|
7
8
|
var maxWidth = '200px';
|
|
@@ -18,11 +19,11 @@ var tableStyles = css({
|
|
|
18
19
|
export var DragColumnPreview = function DragColumnPreview(_ref) {
|
|
19
20
|
var title = _ref.title,
|
|
20
21
|
rows = _ref.rows;
|
|
21
|
-
return
|
|
22
|
+
return jsx("table", {
|
|
22
23
|
css: tableStyles
|
|
23
|
-
},
|
|
24
|
-
return
|
|
24
|
+
}, jsx("thead", null, jsx("tr", null, jsx(TablePreviewHeading, null, title))), jsx("tbody", null, rows.map(function (data, i) {
|
|
25
|
+
return jsx("tr", {
|
|
25
26
|
key: i
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
27
|
+
}, jsx(TablePreviewCell, null, data));
|
|
28
|
+
}), jsx("tr", null, jsx(TablePreviewCell, null, "..."))));
|
|
28
29
|
};
|
|
@@ -2,8 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
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; }
|
|
4
4
|
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) { _defineProperty(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; }
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import { useEffect, useRef, useState } from 'react';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import ReactDOM from 'react-dom';
|
|
8
9
|
import invariant from 'tiny-invariant';
|
|
9
10
|
import { attachClosestEdge, extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge';
|
|
@@ -259,7 +260,7 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref) {
|
|
|
259
260
|
}
|
|
260
261
|
});
|
|
261
262
|
}, [id, index, onWidthChange, state, tableId, width]);
|
|
262
|
-
return
|
|
263
|
+
return jsx(TableHeading, {
|
|
263
264
|
ref: mainHeaderCellRef,
|
|
264
265
|
className: "has-column-picker",
|
|
265
266
|
"data-testid": "".concat(id, "-column-heading"),
|
|
@@ -270,23 +271,23 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref) {
|
|
|
270
271
|
} : {
|
|
271
272
|
maxWidth: width
|
|
272
273
|
})
|
|
273
|
-
}, onWidthChange ?
|
|
274
|
+
}, onWidthChange ? jsx("div", {
|
|
274
275
|
ref: columnResizeHandleRef,
|
|
275
276
|
css: [resizerStyles, state.type === 'resizing' && resizingStyles],
|
|
276
277
|
style: {
|
|
277
278
|
height: "".concat(dndPreviewHeight, "px")
|
|
278
279
|
},
|
|
279
280
|
"data-testid": "column-resize-handle"
|
|
280
|
-
}) : null,
|
|
281
|
+
}) : null, jsx("div", {
|
|
281
282
|
ref: dropTargetRef,
|
|
282
283
|
css: [dropTargetStyles, isDraggingAnyColumn ? null : noPointerEventsStyles],
|
|
283
284
|
style: {
|
|
284
285
|
height: "".concat(dndPreviewHeight, "px")
|
|
285
286
|
},
|
|
286
287
|
"data-testid": 'column-drop-target'
|
|
287
|
-
}, closestEdge &&
|
|
288
|
+
}, closestEdge && jsx(DropIndicator, {
|
|
288
289
|
edge: closestEdge
|
|
289
|
-
})),
|
|
290
|
+
})), jsx("div", {
|
|
290
291
|
css: verticallyAlignedStyles
|
|
291
292
|
}, children), state.type === 'preview' ? /*#__PURE__*/ReactDOM.createPortal(dragPreview, state.container) : null);
|
|
292
293
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
2
3
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
3
4
|
import { N40 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { ScrollableContainerHeight, TableHeading } from '../styled';
|
|
5
6
|
var SkeletonComponent = function SkeletonComponent(_ref) {
|
|
6
7
|
var width = _ref.width,
|
|
7
8
|
itemName = _ref.itemName;
|
|
8
|
-
return
|
|
9
|
+
return jsx(Skeleton, {
|
|
9
10
|
borderRadius: 8,
|
|
10
11
|
testId: "".concat(itemName, "-empty-state-skeleton"),
|
|
11
12
|
height: 14,
|
|
@@ -68,17 +69,17 @@ var renderItem = function renderItem(_ref2, _ref3) {
|
|
|
68
69
|
shortWidth = _ref3.shortWidth;
|
|
69
70
|
switch (key) {
|
|
70
71
|
case 'status':
|
|
71
|
-
return
|
|
72
|
+
return jsx(SkeletonComponent, {
|
|
72
73
|
width: shortWidth,
|
|
73
74
|
itemName: key
|
|
74
75
|
});
|
|
75
76
|
case 'summary':
|
|
76
|
-
return
|
|
77
|
+
return jsx(SkeletonComponent, {
|
|
77
78
|
width: longWidth,
|
|
78
79
|
itemName: key
|
|
79
80
|
});
|
|
80
81
|
default:
|
|
81
|
-
return
|
|
82
|
+
return jsx(SkeletonComponent, {
|
|
82
83
|
width: width,
|
|
83
84
|
itemName: key
|
|
84
85
|
});
|
|
@@ -98,7 +99,7 @@ export default (function (_ref4) {
|
|
|
98
99
|
shortWidth: shortColumnWidths[index]
|
|
99
100
|
};
|
|
100
101
|
});
|
|
101
|
-
return
|
|
102
|
+
return jsx("div", {
|
|
102
103
|
style: {
|
|
103
104
|
// the IssueLikeDataTableView wraps the table in a container with the styling below while modal doesn't
|
|
104
105
|
// this maxHeight comes from scrollableContainerHeight
|
|
@@ -106,36 +107,36 @@ export default (function (_ref4) {
|
|
|
106
107
|
padding: 0,
|
|
107
108
|
boxSizing: 'border-box'
|
|
108
109
|
}
|
|
109
|
-
},
|
|
110
|
+
}, jsx("table", {
|
|
110
111
|
css: tableStyles,
|
|
111
112
|
"data-testid": testId
|
|
112
|
-
},
|
|
113
|
+
}, jsx("thead", {
|
|
113
114
|
style: {
|
|
114
115
|
borderBottom: 0
|
|
115
116
|
}
|
|
116
|
-
},
|
|
117
|
+
}, jsx("tr", null, columnsToRender.map(function (_ref5) {
|
|
117
118
|
var key = _ref5.key,
|
|
118
119
|
width = _ref5.width;
|
|
119
|
-
return
|
|
120
|
+
return jsx(TableHeading, {
|
|
120
121
|
key: key,
|
|
121
122
|
style: {
|
|
122
123
|
width: width,
|
|
123
124
|
padding: padding
|
|
124
125
|
}
|
|
125
|
-
},
|
|
126
|
+
}, jsx(Skeleton, {
|
|
126
127
|
appearance: "darkGray",
|
|
127
128
|
borderRadius: 8,
|
|
128
129
|
testId: "empty-state-skeleton",
|
|
129
130
|
height: 12,
|
|
130
131
|
width: width
|
|
131
132
|
}));
|
|
132
|
-
}))),
|
|
133
|
+
}))), jsx("tbody", {
|
|
133
134
|
css: tableBodyStyles
|
|
134
135
|
}, rows.map(function (row) {
|
|
135
|
-
return
|
|
136
|
+
return jsx("tr", {
|
|
136
137
|
key: row.id
|
|
137
138
|
}, columnsToRender.map(function (column) {
|
|
138
|
-
return
|
|
139
|
+
return jsx("td", {
|
|
139
140
|
css: cellStyles,
|
|
140
141
|
key: column.key
|
|
141
142
|
}, renderItem(column, row));
|
|
@@ -7,8 +7,9 @@ var _templateObject;
|
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
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; }
|
|
9
9
|
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) { _defineProperty(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; }
|
|
10
|
+
/** @jsx jsx */
|
|
10
11
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
|
-
import { css } from '@emotion/react';
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
12
13
|
import styled from '@emotion/styled';
|
|
13
14
|
import invariant from 'tiny-invariant';
|
|
14
15
|
import Heading from '@atlaskit/heading';
|
|
@@ -286,7 +287,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
286
287
|
key: 'loading',
|
|
287
288
|
cells: headerColumns.map(function (column) {
|
|
288
289
|
return _objectSpread(_objectSpread({}, column), {}, {
|
|
289
|
-
content:
|
|
290
|
+
content: jsx(Skeleton, {
|
|
290
291
|
borderRadius: 8,
|
|
291
292
|
width: "100%",
|
|
292
293
|
height: 14,
|
|
@@ -463,7 +464,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
463
464
|
}, _callee, null, [[3, 9]]);
|
|
464
465
|
})), [parentContainerRenderInstanceId, extensionKey, hasFullSchema, onLoadDatasourceDetails]);
|
|
465
466
|
var shouldUseWidth = onColumnResize || columnCustomSizes;
|
|
466
|
-
return
|
|
467
|
+
return jsx("div", {
|
|
467
468
|
/* There is required contentEditable={true} in editor-card-plugin
|
|
468
469
|
* But this brakes how DND works. We set contentEditable={false} to allow DND to work
|
|
469
470
|
* when dragging is initiated on top of a column label.
|
|
@@ -474,26 +475,26 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
474
475
|
style: scrollableContainerHeight ? {
|
|
475
476
|
maxHeight: "".concat(scrollableContainerHeight, "px")
|
|
476
477
|
} : undefined
|
|
477
|
-
},
|
|
478
|
+
}, jsx(Table, {
|
|
478
479
|
css: tableStyles,
|
|
479
480
|
"data-testid": testId,
|
|
480
481
|
style: shouldUseWidth ? {
|
|
481
482
|
tableLayout: 'fixed'
|
|
482
483
|
} : {}
|
|
483
|
-
},
|
|
484
|
+
}, jsx("thead", {
|
|
484
485
|
"data-testid": testId && "".concat(testId, "--head"),
|
|
485
486
|
css: [noDefaultBorderStyles, tableHeadStyles]
|
|
486
|
-
},
|
|
487
|
+
}, jsx("tr", {
|
|
487
488
|
ref: tableHeaderRowRef
|
|
488
489
|
}, headerColumns.map(function (_ref13, cellIndex) {
|
|
489
490
|
var key = _ref13.key,
|
|
490
491
|
content = _ref13.content,
|
|
491
492
|
width = _ref13.width;
|
|
492
|
-
var heading =
|
|
493
|
+
var heading = jsx(Tooltip, {
|
|
493
494
|
content: content,
|
|
494
495
|
tag: "span",
|
|
495
496
|
testId: 'datasource-header-content'
|
|
496
|
-
},
|
|
497
|
+
}, jsx(Heading, {
|
|
497
498
|
level: "h200",
|
|
498
499
|
as: 'span'
|
|
499
500
|
}, content));
|
|
@@ -509,11 +510,11 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
509
510
|
return cell.content;
|
|
510
511
|
}
|
|
511
512
|
}).slice(0, 5);
|
|
512
|
-
var dragPreview =
|
|
513
|
+
var dragPreview = jsx(DragColumnPreview, {
|
|
513
514
|
title: heading,
|
|
514
515
|
rows: previewRows
|
|
515
516
|
});
|
|
516
|
-
return
|
|
517
|
+
return jsx(DraggableTableHeading, {
|
|
517
518
|
tableId: tableId,
|
|
518
519
|
key: key,
|
|
519
520
|
id: key,
|
|
@@ -524,7 +525,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
524
525
|
dragPreview: dragPreview
|
|
525
526
|
}, heading);
|
|
526
527
|
} else {
|
|
527
|
-
return
|
|
528
|
+
return jsx(TableHeading, {
|
|
528
529
|
key: key,
|
|
529
530
|
className: !!onVisibleColumnKeysChange ? 'has-column-picker' : '',
|
|
530
531
|
"data-testid": "".concat(key, "-column-heading"),
|
|
@@ -535,20 +536,20 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
535
536
|
}
|
|
536
537
|
}, heading);
|
|
537
538
|
}
|
|
538
|
-
}), onVisibleColumnKeysChange &&
|
|
539
|
+
}), onVisibleColumnKeysChange && jsx(ColumnPickerHeader, null, jsx(ColumnPicker, {
|
|
539
540
|
columns: hasFullSchema ? orderedColumns : [],
|
|
540
541
|
selectedColumnKeys: hasFullSchema ? visibleColumnKeys : [],
|
|
541
542
|
onSelectedColumnKeysChange: onSelectedColumnKeysChange,
|
|
542
543
|
onOpen: handlePickerOpen,
|
|
543
544
|
parentContainerRenderInstanceId: parentContainerRenderInstanceId
|
|
544
|
-
})))),
|
|
545
|
+
})))), jsx("tbody", {
|
|
545
546
|
css: noDefaultBorderStyles,
|
|
546
547
|
"data-testid": testId && "".concat(testId, "--body")
|
|
547
548
|
}, rows.map(function (_ref16) {
|
|
548
549
|
var key = _ref16.key,
|
|
549
550
|
cells = _ref16.cells,
|
|
550
551
|
ref = _ref16.ref;
|
|
551
|
-
return
|
|
552
|
+
return jsx("tr", {
|
|
552
553
|
key: key,
|
|
553
554
|
"data-testid": testId && "".concat(testId, "--row-").concat(key),
|
|
554
555
|
ref: ref
|
|
@@ -567,7 +568,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
567
568
|
paddingBlock: "var(--ds-space-100, 8px)"
|
|
568
569
|
});
|
|
569
570
|
}
|
|
570
|
-
return
|
|
571
|
+
return jsx("td", {
|
|
571
572
|
key: cellKey,
|
|
572
573
|
"data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
|
|
573
574
|
colSpan: cellIndex + 1 === cells.length ? 2 : undefined,
|
|
@@ -2,8 +2,9 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
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; }
|
|
4
4
|
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) { _defineProperty(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; }
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import { useMemo } from 'react';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
8
9
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
10
|
var rootStyles = css({
|
|
@@ -31,12 +32,12 @@ var RichTextType = function RichTextType(_ref) {
|
|
|
31
32
|
}
|
|
32
33
|
}, [value]);
|
|
33
34
|
if (adfPlainText) {
|
|
34
|
-
return
|
|
35
|
+
return jsx("div", {
|
|
35
36
|
css: rootStyles,
|
|
36
37
|
"data-testid": "richtext-plaintext"
|
|
37
38
|
}, adfPlainText);
|
|
38
39
|
} else {
|
|
39
|
-
return
|
|
40
|
+
return jsx("span", {
|
|
40
41
|
"data-testid": "richtext-unsupported"
|
|
41
42
|
});
|
|
42
43
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/* footer.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
4
|
import { Flex, Inline, xcss } from '@atlaskit/primitives';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/* trigger.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
4
2
|
import React, { forwardRef, useCallback } from 'react';
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
3
1
|
import React, { useMemo } from 'react';
|
|
4
2
|
import { Flex, xcss } from '@atlaskit/primitives';
|
|
5
3
|
import { extractValuesFromNonComplexJQL } from '../utils/extractValuesFromNonComplexJQL';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
2
|
var _excluded = ["children"];
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import { Flex, xcss } from '@atlaskit/primitives';
|
|
7
5
|
import { components } from '@atlaskit/select';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import { useMemo } from 'react';
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { useIntl } from 'react-intl-next';
|
|
4
5
|
import { LoadingButton } from '@atlaskit/button';
|
|
5
6
|
import SearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
@@ -36,14 +37,14 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
36
37
|
}
|
|
37
38
|
return false;
|
|
38
39
|
}, []);
|
|
39
|
-
return
|
|
40
|
+
return jsx("form", {
|
|
40
41
|
css: showBasicFilters ? formWithMaxWidthStyles : formStyles,
|
|
41
42
|
onSubmit: handleFormSubmit
|
|
42
|
-
},
|
|
43
|
-
elemAfterInput:
|
|
43
|
+
}, jsx(Textfield, {
|
|
44
|
+
elemAfterInput: jsx(LoadingButton, {
|
|
44
45
|
appearance: "primary",
|
|
45
46
|
css: searchButtonStyles,
|
|
46
|
-
iconBefore:
|
|
47
|
+
iconBefore: jsx(SearchIcon, {
|
|
47
48
|
label: formatMessage(basicSearchInputMessages.basicTextSearchLabel),
|
|
48
49
|
size: "medium"
|
|
49
50
|
}),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
1
3
|
import { useMemo } from 'react';
|
|
2
|
-
import { css } from '@emotion/react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
3
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
6
|
import Lozenge from '@atlaskit/lozenge';
|
|
5
7
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -53,22 +55,22 @@ export var InitialStateView = function InitialStateView(_ref) {
|
|
|
53
55
|
}
|
|
54
56
|
return false;
|
|
55
57
|
}, []);
|
|
56
|
-
return
|
|
58
|
+
return jsx("div", {
|
|
57
59
|
css: initialStateViewContainerStyles,
|
|
58
60
|
"data-testid": "jlol-datasource-modal--initial-state-view"
|
|
59
|
-
},
|
|
61
|
+
}, jsx("div", {
|
|
60
62
|
css: svgAndTextsWrapperStyles
|
|
61
|
-
},
|
|
63
|
+
}, jsx(InitialStateSVG, null), jsx("div", {
|
|
62
64
|
css: searchTitleStyles
|
|
63
|
-
}, !showBasicFilters &&
|
|
65
|
+
}, !showBasicFilters && jsx("div", {
|
|
64
66
|
css: betaTagStyles
|
|
65
|
-
},
|
|
67
|
+
}, jsx(Lozenge, {
|
|
66
68
|
appearance: "new"
|
|
67
|
-
},
|
|
69
|
+
}, jsx(FormattedMessage, initialStateViewMessages.beta))), jsx(FormattedMessage, initialStateViewMessages.searchTitle)), jsx("div", {
|
|
68
70
|
css: mainTextStyles
|
|
69
|
-
},
|
|
71
|
+
}, jsx(FormattedMessage, methodToDescriptionMessage[searchMethod])), searchMethod === 'jql' ? jsx("a", {
|
|
70
72
|
href: jqlSupportDocumentLink,
|
|
71
73
|
target: "_blank",
|
|
72
74
|
css: learnMoreLinkStyles
|
|
73
|
-
},
|
|
75
|
+
}, jsx(FormattedMessage, initialStateViewMessages.learnMoreLink)) : null));
|
|
74
76
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
4
|
var _excluded = ["basicInputTextValue"];
|
|
6
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
7
5
|
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; }
|
|
8
6
|
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) { _defineProperty(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; }
|
|
7
|
+
/** @jsx jsx */
|
|
9
8
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
10
|
-
import { css } from '@emotion/react';
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
11
10
|
import { useIntl } from 'react-intl-next';
|
|
12
11
|
import { useDebouncedCallback } from 'use-debounce';
|
|
13
12
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -207,30 +206,30 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
|
|
|
207
206
|
setCloudId(currentCloudId);
|
|
208
207
|
}
|
|
209
208
|
}, [currentCloudId, cloudId, setSearchBarJql]);
|
|
210
|
-
return
|
|
209
|
+
return jsx("div", {
|
|
211
210
|
css: inputContainerStyles,
|
|
212
211
|
"data-testid": "jira-search-container"
|
|
213
|
-
}, currentSearchMethod === 'basic' &&
|
|
212
|
+
}, currentSearchMethod === 'basic' && jsx(Flex, {
|
|
214
213
|
alignItems: "center",
|
|
215
214
|
xcss: basicSearchInputContainerStyles
|
|
216
|
-
},
|
|
215
|
+
}, jsx(BasicSearchInput, {
|
|
217
216
|
isSearching: isSearching,
|
|
218
217
|
onChange: handleBasicSearchChange,
|
|
219
218
|
onSearch: handleSearch,
|
|
220
219
|
searchTerm: basicSearchTerm
|
|
221
|
-
}), showBasicFilters &&
|
|
220
|
+
}), showBasicFilters && jsx(BasicFilters, {
|
|
222
221
|
jql: searchBarJql,
|
|
223
222
|
cloudId: cloudId || '',
|
|
224
223
|
onChange: handleBasicFilterSelectionChange,
|
|
225
224
|
selections: filterSelections,
|
|
226
225
|
isJQLHydrating: basicFilterHydrationStatus === 'loading'
|
|
227
|
-
})), currentSearchMethod === 'jql' &&
|
|
226
|
+
})), currentSearchMethod === 'jql' && jsx(JiraJQLEditor, {
|
|
228
227
|
cloudId: cloudId || '',
|
|
229
228
|
isSearching: isSearching,
|
|
230
229
|
onChange: onQueryChange,
|
|
231
230
|
onSearch: handleSearch,
|
|
232
231
|
query: searchBarJql
|
|
233
|
-
}),
|
|
232
|
+
}), jsx(ModeSwitcher, {
|
|
234
233
|
onOptionValueChange: onSearchMethodChange,
|
|
235
234
|
selectedOptionValue: currentSearchMethod,
|
|
236
235
|
options: modeSwitcherOptions
|