@atlaskit/link-datasource 7.5.0 → 7.5.2
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/common/error-state/provider-auth-required.js +4 -3
- package/dist/cjs/ui/common/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/index.js +2 -4
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +2 -18
- package/dist/cjs/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/cjs/ui/common/modal/search-count/ItemCountWrapper.js +2 -2
- package/dist/cjs/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +6 -5
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +10 -51
- package/dist/cjs/ui/issue-like-table/edit-type/status/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/issue-like-data-table-view.js +5 -5
- package/dist/cjs/ui/issue-like-table/render-type/date-range/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/render-type/date-time/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/text/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +4 -4
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +2 -2
- package/dist/cjs/ui/issue-like-table/table-cell-content/table-cell-content.js +3 -3
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +4 -4
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +2 -1
- package/dist/es2019/ui/common/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/index.js +3 -5
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +2 -18
- package/dist/es2019/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/es2019/ui/common/modal/search-count/ItemCountWrapper.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +2 -1
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +8 -45
- package/dist/es2019/ui/issue-like-table/edit-type/status/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/issue-like-data-table-view.js +3 -3
- package/dist/es2019/ui/issue-like-table/render-type/date-range/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/date-time/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/text/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-cell-content/table-cell-content.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/esm/ui/common/error-state/provider-auth-required.js +2 -1
- package/dist/esm/ui/common/initial-state-view/index.js +1 -1
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/index.js +2 -4
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +2 -18
- package/dist/esm/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/esm/ui/common/modal/search-count/ItemCountWrapper.js +1 -1
- package/dist/esm/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +2 -1
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.js +9 -50
- package/dist/esm/ui/issue-like-table/edit-type/status/index.js +1 -1
- package/dist/esm/ui/issue-like-table/issue-like-data-table-view.js +3 -3
- package/dist/esm/ui/issue-like-table/render-type/date-range/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/date-time/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/text/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/esm/ui/issue-like-table/table-cell-content/table-cell-content.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +1 -1
- package/examples-helpers/buildIssueLikeTable.tsx +1 -1
- package/package.json +8 -12
- package/dist/cjs/ui/issue-like-table/column-picker/index.compiled.css +0 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.compiled.css +0 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.compiled.css +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./ItemCountWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { Flex } from '@atlaskit/primitives/compiled';
|
|
5
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
6
6
|
import LinkUrl from '@atlaskit/smart-card/link';
|
|
7
7
|
const styles = {
|
|
8
8
|
searchCountStyles: "_16jlkb7n _1o9zkb7n _i0dlf1ug"
|
|
@@ -12,7 +12,8 @@ import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
|
12
12
|
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
13
13
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
14
14
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
15
|
-
import { Box
|
|
15
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
16
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
16
17
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
17
18
|
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
18
19
|
import { RichIconSearch } from '../../../common/ui/rich-icon/search';
|
|
@@ -258,7 +258,7 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
258
258
|
} : {}, {
|
|
259
259
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
260
260
|
onWrappedColumnChange: onWrappedColumnChange
|
|
261
|
-
}, onWrappedColumnsChange
|
|
261
|
+
}, onWrappedColumnsChange ? {
|
|
262
262
|
onWrappedColumnsChange
|
|
263
263
|
} : {}, {
|
|
264
264
|
scrollableContainerHeight: isInPDFRender ? undefined : fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./index.compiled.css";
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
3
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import { mergeRefs } from 'use-callback-ref';
|
|
8
|
-
import Button from '@atlaskit/button/default/button';
|
|
9
4
|
import IconButton from '@atlaskit/button/icon/button';
|
|
10
|
-
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
11
|
-
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
12
5
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
15
6
|
import { createFilter } from '@atlaskit/react-select/filters';
|
|
16
7
|
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
17
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
18
8
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences/succeedUfoExperience';
|
|
19
9
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id/use-datasource-experience-id';
|
|
20
10
|
import { ConcatenatedMenuList } from './concatenated-menu-list';
|
|
21
11
|
import { MenuItem } from './menu-item';
|
|
22
12
|
import { columnPickerMessages } from './messages';
|
|
23
|
-
const styles = {
|
|
24
|
-
customizeIcon: "_s7n4nkob"
|
|
25
|
-
};
|
|
26
13
|
export const ColumnPicker = ({
|
|
27
14
|
columns,
|
|
28
15
|
selectedColumnKeys,
|
|
@@ -129,39 +116,15 @@ export const ColumnPicker = ({
|
|
|
129
116
|
isOpen,
|
|
130
117
|
...triggerProps
|
|
131
118
|
}) => {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
icon: TableColumnsDistributeIcon,
|
|
136
|
-
isSelected: isOpen,
|
|
137
|
-
isTooltipDisabled: false,
|
|
138
|
-
label: intl.formatMessage(columnPickerMessages.tooltip),
|
|
139
|
-
spacing: "default",
|
|
140
|
-
testId: "column-picker-trigger-button"
|
|
141
|
-
}));
|
|
142
|
-
}
|
|
143
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
144
|
-
content: intl.formatMessage(columnPickerMessages.tooltip)
|
|
145
|
-
}, tooltipProps => /*#__PURE__*/React.createElement(Button, _extends({}, tooltipProps, triggerProps, {
|
|
146
|
-
// `tooltipProps.ref` must be included: spreading `triggerProps` after
|
|
147
|
-
// `tooltipProps` drops the tooltip's ref, leaving Tooltip without an
|
|
148
|
-
// anchor element. Gate off leaves `triggerProps.ref` winning, exactly as
|
|
149
|
-
// master does.
|
|
150
|
-
ref: fg('platform-dst-top-layer-tooltip') ? mergeRefs([triggerProps.ref, tooltipProps.ref]) : triggerProps.ref,
|
|
119
|
+
return /*#__PURE__*/React.createElement(IconButton, _extends({}, triggerProps, {
|
|
120
|
+
appearance: "default",
|
|
121
|
+
icon: TableColumnsDistributeIcon,
|
|
151
122
|
isSelected: isOpen,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
size: "small"
|
|
158
|
-
})
|
|
159
|
-
}), /*#__PURE__*/React.createElement(Box, {
|
|
160
|
-
as: "span",
|
|
161
|
-
xcss: styles.customizeIcon
|
|
162
|
-
}, /*#__PURE__*/React.createElement(CustomizeIcon, {
|
|
163
|
-
label: "customize"
|
|
164
|
-
}))));
|
|
123
|
+
isTooltipDisabled: false,
|
|
124
|
+
label: intl.formatMessage(columnPickerMessages.tooltip),
|
|
125
|
+
spacing: "default",
|
|
126
|
+
testId: "column-picker-trigger-button"
|
|
127
|
+
}));
|
|
165
128
|
}
|
|
166
129
|
});
|
|
167
130
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { Layering } from '@atlaskit/layering/layering';
|
|
4
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
4
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
5
5
|
import Select from '@atlaskit/select/default';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
7
|
import { failUfoExperience } from '../../../../analytics/ufoExperiences/failUfoExperience';
|
|
@@ -14,13 +14,13 @@ import { FlagsProvider } from '@atlaskit/flag/flags-provider';
|
|
|
14
14
|
import SortAscendingIcon from '@atlaskit/icon/core/sort-ascending';
|
|
15
15
|
import SortDescendingIcon from '@atlaskit/icon/core/sort-descending';
|
|
16
16
|
import { Skeleton } from '@atlaskit/linking-common/skeleton';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
17
|
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge';
|
|
19
18
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
20
19
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll/auto-scroller';
|
|
21
20
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
22
21
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
23
|
-
import { Box
|
|
22
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
23
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
24
24
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
25
25
|
import { startUfoExperience } from '../../analytics/ufoExperiences/startUfoExperience';
|
|
26
26
|
import { succeedUfoExperience } from '../../analytics/ufoExperiences/succeedUfoExperience';
|
|
@@ -261,7 +261,7 @@ export const IssueLikeDataTableView = ({
|
|
|
261
261
|
const visibleSortedColumns = useMemo(() => visibleColumnKeys.map(visibleKey => orderedColumns.find(({
|
|
262
262
|
key
|
|
263
263
|
}) => visibleKey === key)).filter(Boolean), [orderedColumns, visibleColumnKeys]);
|
|
264
|
-
const isWrapTextSettingAvailable = Boolean(onWrappedColumnsChange)
|
|
264
|
+
const isWrapTextSettingAvailable = Boolean(onWrappedColumnsChange);
|
|
265
265
|
let areAllVisibleColumnsWrapped = false;
|
|
266
266
|
if (isWrapTextSettingAvailable) {
|
|
267
267
|
areAllVisibleColumnsWrapped = visibleColumnKeys.length > 0 && visibleColumnKeys.every(columnKey => wrappedColumnKeys === null || wrappedColumnKeys === void 0 ? void 0 : wrappedColumnKeys.includes(columnKey));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
3
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
4
4
|
import { getFormattedDateRange } from './getFormattedDateRange';
|
|
5
5
|
export const DATERANGE_TYPE_TEST_ID = 'link-datasource-render-type--daterange';
|
|
6
6
|
const DateRangeRenderType = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
3
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
4
4
|
import { getFormattedDate } from './getFormattedDate';
|
|
5
5
|
export const DATETIME_TYPE_TEST_ID = 'link-datasource-render-type--datetime';
|
|
6
6
|
const DateTimeRenderType = ({
|
|
@@ -7,7 +7,7 @@ import React, { useState } from 'react';
|
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
9
9
|
import Avatar from '@atlaskit/avatar/avatar';
|
|
10
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
11
11
|
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
12
12
|
import { userTypeMessages } from './messages';
|
|
13
13
|
const styles = {
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import AKInlineEdit from '@atlaskit/inline-edit/inline-edit';
|
|
8
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
9
|
import { useSmartLinkReload } from '@atlaskit/smart-card/hook/use-smart-link-reload';
|
|
10
10
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
11
11
|
import { startUfoExperience } from '../../../analytics/ufoExperiences/startUfoExperience';
|
|
@@ -3,7 +3,7 @@ import "./table-cell-content.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
7
7
|
import { useDatasourceItem } from '../../../state';
|
|
8
8
|
import { useExecuteAtomicAction } from '../../../state/actions/useExecuteAtomicAction';
|
|
9
9
|
import { isEditTypeSelectable } from '../edit-type/isEditTypeSelectable';
|
|
@@ -16,7 +16,7 @@ import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
|
16
16
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
17
17
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
18
18
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
|
-
import { Flex } from '@atlaskit/primitives/compiled';
|
|
19
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
20
20
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
21
21
|
import { EVENT_CHANNEL } from '../../../analytics/constants';
|
|
22
22
|
import { DatasourceAction, DatasourceDisplay } from '../../../analytics/types';
|
|
@@ -11,7 +11,8 @@ import EmptyState from '@atlaskit/empty-state/empty-state';
|
|
|
11
11
|
import { auth as outboundAuth } from '@atlaskit/outbound-auth-flow-client/auth';
|
|
12
12
|
import { AuthError } from '@atlaskit/outbound-auth-flow-client/error';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { Anchor
|
|
14
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
15
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
16
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
16
17
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
17
18
|
import { loadingErrorMessages } from './messages';
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import Link from '@atlaskit/link/link';
|
|
7
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
7
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
8
8
|
import { initialStateViewMessages } from './messages';
|
|
9
9
|
var initialStateViewContainerStyles = null;
|
|
10
10
|
var svgAndTextsWrapperStyles = null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { DatasourceAction } from '../../../../analytics/types';
|
|
5
4
|
import { useUserInteractions } from '../../../../contexts/user-interactions/use-user-interactions';
|
|
6
5
|
import { IssueLikeDataTableView } from '../../../issue-like-table/issue-like-data-table-view';
|
|
@@ -45,9 +44,8 @@ var Table = function Table(props) {
|
|
|
45
44
|
columnCustomSizes: columnCustomSizes,
|
|
46
45
|
onColumnResize: onColumnResize,
|
|
47
46
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
48
|
-
onWrappedColumnChange: onWrappedColumnChange
|
|
49
|
-
}, fg('platform_lp_sllv_table_settings_menu') ? {
|
|
47
|
+
onWrappedColumnChange: onWrappedColumnChange,
|
|
50
48
|
onWrappedColumnsChange: onWrappedColumnsChange
|
|
51
|
-
}
|
|
49
|
+
}));
|
|
52
50
|
};
|
|
53
51
|
export default Table;
|
package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useCallback, useState } from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
export var useColumnWrapping = function useColumnWrapping() {
|
|
5
4
|
var initialWrappedColumnKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
6
5
|
var _useState = useState(initialWrappedColumnKeys),
|
|
@@ -8,15 +7,6 @@ export var useColumnWrapping = function useColumnWrapping() {
|
|
|
8
7
|
wrappedColumnKeys = _useState2[0],
|
|
9
8
|
setWrappedColumnKeys = _useState2[1];
|
|
10
9
|
var onWrappedColumnChange = useCallback(function (key, isWrapped) {
|
|
11
|
-
var set = new Set(wrappedColumnKeys);
|
|
12
|
-
if (isWrapped) {
|
|
13
|
-
set.add(key);
|
|
14
|
-
} else {
|
|
15
|
-
set.delete(key);
|
|
16
|
-
}
|
|
17
|
-
setWrappedColumnKeys(Array.from(set));
|
|
18
|
-
}, [wrappedColumnKeys]);
|
|
19
|
-
var onWrappedColumnChangeWithLatestState = useCallback(function (key, isWrapped) {
|
|
20
10
|
setWrappedColumnKeys(function (currentWrappedColumnKeys) {
|
|
21
11
|
var nextWrappedColumnKeys = new Set(currentWrappedColumnKeys);
|
|
22
12
|
if (isWrapped) {
|
|
@@ -30,15 +20,9 @@ export var useColumnWrapping = function useColumnWrapping() {
|
|
|
30
20
|
var onWrappedColumnsChange = useCallback(function (nextWrappedColumnKeys) {
|
|
31
21
|
setWrappedColumnKeys(nextWrappedColumnKeys);
|
|
32
22
|
}, []);
|
|
33
|
-
if (fg('platform_lp_sllv_table_settings_menu')) {
|
|
34
|
-
return {
|
|
35
|
-
wrappedColumnKeys: wrappedColumnKeys,
|
|
36
|
-
onWrappedColumnChange: onWrappedColumnChangeWithLatestState,
|
|
37
|
-
onWrappedColumnsChange: onWrappedColumnsChange
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
23
|
return {
|
|
41
24
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
42
|
-
onWrappedColumnChange: onWrappedColumnChange
|
|
25
|
+
onWrappedColumnChange: onWrappedColumnChange,
|
|
26
|
+
onWrappedColumnsChange: onWrappedColumnsChange
|
|
43
27
|
};
|
|
44
28
|
};
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import Avatar from '@atlaskit/avatar/avatar';
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
7
|
import PeopleGroupIcon from '@atlaskit/icon/core/people-group';
|
|
8
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
9
9
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
10
|
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
11
11
|
var styles = {
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
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; }
|
|
6
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
7
|
import React from 'react';
|
|
8
|
-
import { Flex } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
9
9
|
import LinkUrl from '@atlaskit/smart-card/link';
|
|
10
10
|
var styles = {
|
|
11
11
|
searchCountStyles: "_16jlkb7n _1o9zkb7n _i0dlf1ug"
|
|
@@ -15,7 +15,8 @@ import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
|
15
15
|
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
16
16
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
17
17
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
18
|
-
import { Box
|
|
18
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
19
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
19
20
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
20
21
|
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
21
22
|
import { RichIconSearch } from '../../../common/ui/rich-icon/search';
|
|
@@ -264,7 +264,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
264
264
|
} : {}, {
|
|
265
265
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
266
266
|
onWrappedColumnChange: onWrappedColumnChange
|
|
267
|
-
}, onWrappedColumnsChange
|
|
267
|
+
}, onWrappedColumnsChange ? {
|
|
268
268
|
onWrappedColumnsChange: onWrappedColumnsChange
|
|
269
269
|
} : {}, {
|
|
270
270
|
scrollableContainerHeight: isInPDFRender ? undefined : fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
3
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
5
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
5
|
var _excluded = ["isOpen"];
|
|
7
|
-
import "./index.compiled.css";
|
|
8
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
9
6
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
10
7
|
import { useIntl } from 'react-intl';
|
|
11
|
-
import { mergeRefs } from 'use-callback-ref';
|
|
12
|
-
import Button from '@atlaskit/button/default/button';
|
|
13
8
|
import IconButton from '@atlaskit/button/icon/button';
|
|
14
|
-
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
15
|
-
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
16
9
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
19
10
|
import { createFilter } from '@atlaskit/react-select/filters';
|
|
20
11
|
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
21
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
22
12
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences/succeedUfoExperience';
|
|
23
13
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id/use-datasource-experience-id';
|
|
24
14
|
import { ConcatenatedMenuList } from './concatenated-menu-list';
|
|
25
15
|
import { MenuItem } from './menu-item';
|
|
26
16
|
import { columnPickerMessages } from './messages';
|
|
27
|
-
var styles = {
|
|
28
|
-
customizeIcon: "_s7n4nkob"
|
|
29
|
-
};
|
|
30
17
|
export var ColumnPicker = function ColumnPicker(_ref) {
|
|
31
18
|
var columns = _ref.columns,
|
|
32
19
|
selectedColumnKeys = _ref.selectedColumnKeys,
|
|
@@ -146,43 +133,15 @@ export var ColumnPicker = function ColumnPicker(_ref) {
|
|
|
146
133
|
target: function target(_ref8) {
|
|
147
134
|
var isOpen = _ref8.isOpen,
|
|
148
135
|
triggerProps = _objectWithoutProperties(_ref8, _excluded);
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}));
|
|
159
|
-
}
|
|
160
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
161
|
-
content: intl.formatMessage(columnPickerMessages.tooltip)
|
|
162
|
-
}, function (tooltipProps) {
|
|
163
|
-
return /*#__PURE__*/React.createElement(Button, _extends({}, tooltipProps, triggerProps, {
|
|
164
|
-
// `tooltipProps.ref` must be included: spreading `triggerProps` after
|
|
165
|
-
// `tooltipProps` drops the tooltip's ref, leaving Tooltip without an
|
|
166
|
-
// anchor element. Gate off leaves `triggerProps.ref` winning, exactly as
|
|
167
|
-
// master does.
|
|
168
|
-
ref: fg('platform-dst-top-layer-tooltip') ? mergeRefs([triggerProps.ref, tooltipProps.ref]) : triggerProps.ref,
|
|
169
|
-
isSelected: isOpen,
|
|
170
|
-
spacing: "compact",
|
|
171
|
-
appearance: 'default',
|
|
172
|
-
testId: "column-picker-trigger-button",
|
|
173
|
-
iconAfter: function iconAfter() {
|
|
174
|
-
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
175
|
-
label: "down",
|
|
176
|
-
size: "small"
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
}), /*#__PURE__*/React.createElement(Box, {
|
|
180
|
-
as: "span",
|
|
181
|
-
xcss: styles.customizeIcon
|
|
182
|
-
}, /*#__PURE__*/React.createElement(CustomizeIcon, {
|
|
183
|
-
label: "customize"
|
|
184
|
-
})));
|
|
185
|
-
});
|
|
136
|
+
return /*#__PURE__*/React.createElement(IconButton, _extends({}, triggerProps, {
|
|
137
|
+
appearance: "default",
|
|
138
|
+
icon: TableColumnsDistributeIcon,
|
|
139
|
+
isSelected: isOpen,
|
|
140
|
+
isTooltipDisabled: false,
|
|
141
|
+
label: intl.formatMessage(columnPickerMessages.tooltip),
|
|
142
|
+
spacing: "default",
|
|
143
|
+
testId: "column-picker-trigger-button"
|
|
144
|
+
}));
|
|
186
145
|
}
|
|
187
146
|
});
|
|
188
147
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { Layering } from '@atlaskit/layering/layering';
|
|
4
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
4
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
5
5
|
import Select from '@atlaskit/select/default';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
7
|
import { failUfoExperience } from '../../../../analytics/ufoExperiences/failUfoExperience';
|
|
@@ -28,13 +28,13 @@ import { FlagsProvider } from '@atlaskit/flag/flags-provider';
|
|
|
28
28
|
import SortAscendingIcon from '@atlaskit/icon/core/sort-ascending';
|
|
29
29
|
import SortDescendingIcon from '@atlaskit/icon/core/sort-descending';
|
|
30
30
|
import { Skeleton } from '@atlaskit/linking-common/skeleton';
|
|
31
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
32
31
|
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge';
|
|
33
32
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
34
33
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll/auto-scroller';
|
|
35
34
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
36
35
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
37
|
-
import { Box
|
|
36
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
37
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
38
38
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
39
39
|
import { startUfoExperience } from '../../analytics/ufoExperiences/startUfoExperience';
|
|
40
40
|
import { succeedUfoExperience } from '../../analytics/ufoExperiences/succeedUfoExperience';
|
|
@@ -289,7 +289,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref7) {
|
|
|
289
289
|
});
|
|
290
290
|
}).filter(Boolean);
|
|
291
291
|
}, [orderedColumns, visibleColumnKeys]);
|
|
292
|
-
var isWrapTextSettingAvailable = Boolean(onWrappedColumnsChange)
|
|
292
|
+
var isWrapTextSettingAvailable = Boolean(onWrappedColumnsChange);
|
|
293
293
|
var areAllVisibleColumnsWrapped = false;
|
|
294
294
|
if (isWrapTextSettingAvailable) {
|
|
295
295
|
areAllVisibleColumnsWrapped = visibleColumnKeys.length > 0 && visibleColumnKeys.every(function (columnKey) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
3
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
4
4
|
import { getFormattedDateRange } from './getFormattedDateRange';
|
|
5
5
|
export var DATERANGE_TYPE_TEST_ID = 'link-datasource-render-type--daterange';
|
|
6
6
|
var DateRangeRenderType = function DateRangeRenderType(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
3
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
4
4
|
import { getFormattedDate } from './getFormattedDate';
|
|
5
5
|
export var DATETIME_TYPE_TEST_ID = 'link-datasource-render-type--datetime';
|
|
6
6
|
var DateTimeRenderType = function DateTimeRenderType(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
2
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
3
3
|
export var STATUS_TYPE_TEST_ID = 'link-datasource-render-type--status';
|
|
4
4
|
var StatusRenderType = function StatusRenderType(_ref) {
|
|
5
5
|
var text = _ref.text,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
2
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
3
3
|
export var TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
|
|
4
4
|
var TextRenderType = function TextRenderType(_ref) {
|
|
5
5
|
var text = _ref.text,
|
|
@@ -10,7 +10,7 @@ import React, { useState } from 'react';
|
|
|
10
10
|
import { FormattedMessage } from 'react-intl';
|
|
11
11
|
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
12
12
|
import Avatar from '@atlaskit/avatar/avatar';
|
|
13
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
13
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
14
|
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
15
15
|
import { userTypeMessages } from './messages';
|
|
16
16
|
var styles = {
|
|
@@ -10,7 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
12
|
import AKInlineEdit from '@atlaskit/inline-edit/inline-edit';
|
|
13
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
13
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
14
|
import { useSmartLinkReload } from '@atlaskit/smart-card/hook/use-smart-link-reload';
|
|
15
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
16
16
|
import { startUfoExperience } from '../../../analytics/ufoExperiences/startUfoExperience';
|
|
@@ -3,7 +3,7 @@ import "./table-cell-content.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
7
7
|
import { useDatasourceItem } from '../../../state';
|
|
8
8
|
import { useExecuteAtomicAction } from '../../../state/actions/useExecuteAtomicAction';
|
|
9
9
|
import { isEditTypeSelectable } from '../edit-type/isEditTypeSelectable';
|
|
@@ -20,7 +20,7 @@ import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
|
20
20
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
21
21
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
22
22
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
23
|
-
import { Flex } from '@atlaskit/primitives/compiled';
|
|
23
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
24
24
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
25
25
|
import { EVENT_CHANNEL } from '../../../analytics/constants';
|
|
26
26
|
import { DatasourceAction, DatasourceDisplay } from '../../../analytics/types';
|
|
@@ -10,7 +10,7 @@ import { jsx, styled } from '@compiled/react';
|
|
|
10
10
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
11
11
|
import { SmartCardProvider } from '@atlaskit/link-provider/smart-card-provider';
|
|
12
12
|
import { mockDatasourceFetchRequests } from '@atlaskit/link-test-helpers/datasource';
|
|
13
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
13
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
14
14
|
|
|
15
15
|
import { fetchMessagesForLocale } from '../src/common/utils/locale/fetch-messages-for-locale';
|
|
16
16
|
import { DatasourceExperienceIdProvider } from '../src/contexts/datasource-experience-id/datasource-experience-id-provider';
|