@atlaskit/link-datasource 6.5.0 → 6.7.0
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 +43 -0
- package/dist/cjs/analytics/generated/use-analytics-events.js +2 -2
- package/dist/cjs/analytics/ufoExperiences/index.js +11 -10
- package/dist/cjs/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +2 -2
- package/dist/cjs/hooks/useAssetsClient.js +2 -2
- package/dist/cjs/hooks/useDatasourceTableFlag.js +2 -2
- package/dist/cjs/hooks/useLoadOptions.js +2 -2
- package/dist/cjs/services/getAvailableSites.js +2 -2
- package/dist/cjs/ui/assets-modal/modal/index.js +11 -7
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +13 -11
- package/dist/cjs/ui/assets-modal/search-container/index.js +3 -3
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +6 -6
- package/dist/cjs/ui/common/error-state/access-required.js +1 -1
- package/dist/cjs/ui/common/error-state/loading-error.js +1 -1
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +2 -2
- package/dist/cjs/ui/common/error-state/provider-auth-required.js +9 -8
- package/dist/cjs/ui/common/initial-state-view/index.js +2 -2
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +6 -6
- package/dist/cjs/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/cjs/ui/common/modal/datasource-modal/createDatasourceModal.js +2 -2
- package/dist/cjs/ui/common/modal/datasource-modal/index.js +1 -1
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +9 -9
- package/dist/cjs/ui/common/modal/mode-switcher/index.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/control.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/custom-checkbox-option.js +4 -4
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/formatOptionLabel.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/index.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.js +3 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/loadingMessage.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/showMoreButton.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +4 -4
- package/dist/cjs/ui/common/modal/search-count/index.js +2 -2
- package/dist/cjs/ui/common/modal/site-selector/index.js +5 -5
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -2
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +2 -2
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +13 -9
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +13 -9
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +5 -4
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +20 -6
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +19 -17
- package/dist/cjs/ui/issue-like-table/edit-type/icon/index.js +4 -4
- package/dist/cjs/ui/issue-like-table/edit-type/status/index.js +5 -5
- package/dist/cjs/ui/issue-like-table/edit-type/text/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/edit-type/user/index.js +7 -6
- package/dist/cjs/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/cjs/ui/issue-like-table/index.js +155 -102
- package/dist/cjs/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/tag/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/shared-components/avatar/index.js +3 -3
- package/dist/cjs/ui/issue-like-table/table-cell-content/index.js +13 -20
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/cjs/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/cjs/ui/issue-like-table/table-settings-menu/index.js +96 -0
- package/dist/cjs/ui/issue-like-table/table-settings-menu/messages.js +24 -0
- package/dist/cjs/ui/jira-issues-modal/jql-editor/index.js +2 -2
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +15 -10
- package/dist/cjs/ui/table-footer/index.js +2 -2
- package/dist/es2019/analytics/generated/use-analytics-events.js +1 -1
- package/dist/es2019/analytics/ufoExperiences/index.js +2 -1
- package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +1 -1
- package/dist/es2019/hooks/useAssetsClient.js +1 -1
- package/dist/es2019/hooks/useDatasourceTableFlag.js +1 -1
- package/dist/es2019/hooks/useLoadOptions.js +1 -1
- package/dist/es2019/services/getAvailableSites.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +6 -2
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +8 -6
- package/dist/es2019/ui/assets-modal/search-container/index.js +2 -2
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +3 -3
- package/dist/es2019/ui/common/error-state/access-required.js +1 -1
- package/dist/es2019/ui/common/error-state/loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +5 -4
- package/dist/es2019/ui/common/initial-state-view/index.js +2 -2
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +3 -3
- package/dist/es2019/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/es2019/ui/common/modal/datasource-modal/createDatasourceModal.js +1 -1
- package/dist/es2019/ui/common/modal/datasource-modal/index.js +1 -1
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +5 -3
- package/dist/es2019/ui/common/modal/mode-switcher/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/control.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/custom-checkbox-option.js +2 -2
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/formatOptionLabel.js +2 -2
- package/dist/es2019/ui/common/modal/popup-select/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.js +2 -2
- package/dist/es2019/ui/common/modal/popup-select/menu-list/loadingMessage.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/showMoreButton.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +3 -3
- package/dist/es2019/ui/common/modal/search-count/index.js +1 -1
- package/dist/es2019/ui/common/modal/site-selector/index.js +3 -3
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +7 -3
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +7 -3
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +2 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +36 -20
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +11 -9
- package/dist/es2019/ui/issue-like-table/edit-type/icon/index.js +2 -2
- package/dist/es2019/ui/issue-like-table/edit-type/status/index.js +3 -3
- package/dist/es2019/ui/issue-like-table/edit-type/text/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/edit-type/user/index.js +4 -3
- package/dist/es2019/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/es2019/ui/issue-like-table/index.js +59 -11
- package/dist/es2019/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/tag/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +3 -3
- package/dist/es2019/ui/issue-like-table/shared-components/avatar/index.js +2 -2
- package/dist/es2019/ui/issue-like-table/table-cell-content/index.js +12 -19
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/es2019/ui/issue-like-table/table-settings-menu/index.js +76 -0
- package/dist/es2019/ui/issue-like-table/table-settings-menu/messages.js +18 -0
- package/dist/es2019/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +8 -3
- package/dist/es2019/ui/table-footer/index.js +1 -1
- package/dist/esm/analytics/generated/use-analytics-events.js +1 -1
- package/dist/esm/analytics/ufoExperiences/index.js +2 -1
- package/dist/esm/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +1 -1
- package/dist/esm/hooks/useAssetsClient.js +1 -1
- package/dist/esm/hooks/useDatasourceTableFlag.js +1 -1
- package/dist/esm/hooks/useLoadOptions.js +1 -1
- package/dist/esm/services/getAvailableSites.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +6 -2
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +8 -6
- package/dist/esm/ui/assets-modal/search-container/index.js +2 -2
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +3 -3
- package/dist/esm/ui/common/error-state/access-required.js +1 -1
- package/dist/esm/ui/common/error-state/loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/provider-auth-required.js +5 -4
- package/dist/esm/ui/common/initial-state-view/index.js +2 -2
- package/dist/esm/ui/common/modal/basic-search-input/index.js +3 -3
- package/dist/esm/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/esm/ui/common/modal/datasource-modal/createDatasourceModal.js +1 -1
- package/dist/esm/ui/common/modal/datasource-modal/index.js +1 -1
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +5 -3
- package/dist/esm/ui/common/modal/mode-switcher/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/control.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/custom-checkbox-option.js +2 -2
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/formatOptionLabel.js +2 -2
- package/dist/esm/ui/common/modal/popup-select/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.js +2 -2
- package/dist/esm/ui/common/modal/popup-select/menu-list/loadingMessage.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/showMoreButton.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/trigger.js +3 -3
- package/dist/esm/ui/common/modal/search-count/index.js +1 -1
- package/dist/esm/ui/common/modal/site-selector/index.js +3 -3
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +1 -1
- package/dist/esm/ui/confluence-search-modal/modal/index.js +7 -3
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +7 -3
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +2 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.js +17 -3
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +11 -9
- package/dist/esm/ui/issue-like-table/edit-type/icon/index.js +2 -2
- package/dist/esm/ui/issue-like-table/edit-type/status/index.js +3 -3
- package/dist/esm/ui/issue-like-table/edit-type/text/index.js +1 -1
- package/dist/esm/ui/issue-like-table/edit-type/user/index.js +4 -3
- package/dist/esm/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/esm/ui/issue-like-table/index.js +146 -93
- package/dist/esm/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/tag/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +3 -3
- package/dist/esm/ui/issue-like-table/shared-components/avatar/index.js +2 -2
- package/dist/esm/ui/issue-like-table/table-cell-content/index.js +12 -19
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/esm/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/esm/ui/issue-like-table/table-settings-menu/index.js +87 -0
- package/dist/esm/ui/issue-like-table/table-settings-menu/messages.js +18 -0
- package/dist/esm/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +8 -3
- package/dist/esm/ui/table-footer/index.js +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/hooks/useDatasourceTableFlag.d.ts +1 -1
- package/dist/types/hooks/useDatasourceTableState.d.ts +1 -1
- package/dist/types/hooks/useLoadOptions.d.ts +3 -3
- package/dist/types/services/makeGetJqlAutocompleteData.d.ts +1 -1
- package/dist/types/services/makeGetJqlSuggestionsData.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +3 -3
- package/dist/types/state/index.d.ts +3 -3
- package/dist/types/ui/assets-modal/modal/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/types.d.ts +1 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types/ui/common/modal/datasource-context/index.d.ts +1 -1
- package/dist/types/ui/common/modal/datasource-modal/createDatasourceModal.d.ts +1 -1
- package/dist/types/ui/common/modal/datasource-modal/index.d.ts +1 -1
- package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.d.ts +1 -1
- package/dist/types/ui/common/modal/insert-button/index.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/control.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/custom-checkbox-option.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/dropdownIndicator.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/types.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/datasource-column-sort.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +4 -4
- package/dist/types/ui/datasource-table-view/types.d.ts +2 -2
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
- package/dist/types/ui/issue-like-table/column-picker/types.d.ts +1 -1
- package/dist/types/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/edit-type/status/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/text/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/user/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-range/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-time/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/number/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/richtext/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/text/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/table-cell-content/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/table-cell-content/inline-edit.d.ts +1 -1
- package/dist/types/ui/issue-like-table/table-settings-menu/index.d.ts +8 -0
- package/dist/types/ui/issue-like-table/table-settings-menu/messages.d.ts +17 -0
- package/dist/types/ui/issue-like-table/types.d.ts +7 -1
- package/dist/types/ui/issue-like-table/utils.d.ts +7 -7
- package/dist/types/ui/jira-issues-modal/types.d.ts +1 -1
- package/examples-helpers/buildAssetsIssuesTable.tsx +3 -1
- package/examples-helpers/buildConfluenceSearchTable.tsx +3 -1
- package/examples-helpers/buildIssueLikeTable.tsx +2 -0
- package/examples-helpers/buildJiraIssuesTable.tsx +2 -0
- package/examples-helpers/mockJqlSmartLinkData.ts +1 -1
- package/examples-helpers/mockSmartLinkData.ts +1 -1
- package/examples-helpers/smartLinkCustomClient.ts +1 -1
- package/examples-helpers/useAssetsTableProps.tsx +6 -0
- package/examples-helpers/useCommonTableProps.tsx +5 -2
- package/package.json +47 -43
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import "./formatOptionLabel.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import Avatar from '@atlaskit/avatar';
|
|
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';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
9
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
10
10
|
const styles = {
|
|
11
11
|
commonLabelStyles: "_1reo15vq _18m915vq _1bto1l2s",
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import isEqual from 'lodash/isEqual';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
|
-
import { PopupSelect } from '@atlaskit/select';
|
|
5
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
6
6
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
7
7
|
import CustomControl from './control';
|
|
8
8
|
import { CustomCheckboxOption } from './custom-checkbox-option';
|
|
@@ -4,8 +4,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
7
|
-
import { components } from '@atlaskit/select';
|
|
8
|
-
import Spinner from '@atlaskit/spinner';
|
|
7
|
+
import { components } from '@atlaskit/react-select/components';
|
|
8
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
9
9
|
import CustomErrorMessage from './errorMessage';
|
|
10
10
|
import CustomDropdownLoadingMessage from './loadingMessage';
|
|
11
11
|
import CustomNoOptionsMessage from './noOptionsMessage';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Spinner from '@atlaskit/spinner';
|
|
2
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
3
3
|
import { asyncPopupSelectMessages } from './messages';
|
|
4
4
|
import CustomSelectMessage from './selectMessage';
|
|
5
5
|
const CustomDropdownLoadingMessage = ({
|
|
@@ -3,7 +3,7 @@ import "./selectMessage.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
|
-
import Heading from '@atlaskit/heading';
|
|
6
|
+
import Heading from '@atlaskit/heading/heading';
|
|
7
7
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
8
8
|
const styles = {
|
|
9
9
|
boxStyles: "_4t3i16xz",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import Button from '@atlaskit/button/
|
|
3
|
+
import Button from '@atlaskit/button/default/button';
|
|
4
4
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
5
5
|
import { asyncPopupSelectMessages } from './messages';
|
|
6
6
|
const ShowMoreButton = ({
|
|
@@ -3,12 +3,12 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./trigger.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { forwardRef, useMemo } from 'react';
|
|
6
|
-
import Badge from '@atlaskit/badge';
|
|
7
|
-
import NewButton from '@atlaskit/button/
|
|
6
|
+
import Badge from '@atlaskit/badge/badge';
|
|
7
|
+
import NewButton from '@atlaskit/button/default/button';
|
|
8
8
|
import Button from '@atlaskit/button/standard-button';
|
|
9
9
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
10
10
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import Spinner from '@atlaskit/spinner';
|
|
11
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
12
12
|
const styles = {
|
|
13
13
|
triggerButtonLabelStyles: "_1reo15vq _18m915vq _1bto1l2s",
|
|
14
14
|
badgeStyles: "_18u0utpp"
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { FormattedMessage, FormattedNumber } from 'react-intl';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
10
10
|
import { footerMessages } from '../../../table-footer/messages';
|
|
@@ -5,11 +5,11 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
|
-
import Button from '@atlaskit/button/
|
|
9
|
-
import Heading from '@atlaskit/heading';
|
|
8
|
+
import Button from '@atlaskit/button/default/button';
|
|
9
|
+
import Heading from '@atlaskit/heading/heading';
|
|
10
10
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
11
11
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
12
|
-
import { PopupSelect } from '@atlaskit/select';
|
|
12
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
13
13
|
import { siteSelectorMessages } from './messages';
|
|
14
14
|
const styles = {
|
|
15
15
|
dropdownContainerStyles: "_zulpu2gc _1e0c1txw _4cvr1h6o _1tke1ylp"
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
7
7
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
8
|
import { DatePicker } from '@atlaskit/datetime-picker';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
10
|
-
import Popup from '@atlaskit/popup';
|
|
10
|
+
import { Popup } from '@atlaskit/popup/popup';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
12
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
13
13
|
import { dateRangeMessages } from './messages';
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import NewButton from '@atlaskit/button/
|
|
3
|
+
import NewButton from '@atlaskit/button/default/button';
|
|
4
4
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
5
5
|
export const PopupTrigger = ({
|
|
6
6
|
triggerProps,
|
|
@@ -4,10 +4,14 @@ import "./index.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
6
6
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
7
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
7
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
8
8
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
9
|
-
import LinkComponent from '@atlaskit/link';
|
|
10
|
-
import { CloseButton
|
|
9
|
+
import LinkComponent from '@atlaskit/link/link';
|
|
10
|
+
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
11
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
12
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
13
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
14
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
11
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
16
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
13
17
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
@@ -5,9 +5,9 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
import isEqual from 'lodash/isEqual';
|
|
8
|
-
import
|
|
8
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
9
9
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
12
12
|
import { componentMetadata } from '../../analytics/constants';
|
|
13
13
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
@@ -41,6 +41,7 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
41
41
|
onColumnResize,
|
|
42
42
|
wrappedColumnKeys,
|
|
43
43
|
onWrappedColumnChange,
|
|
44
|
+
onWrappedColumnsChange,
|
|
44
45
|
scrollableContainerHeight = DefaultScrollableContainerHeight
|
|
45
46
|
}) => {
|
|
46
47
|
// Local copy lets us apply in-session sort mutations without mutating external parameters.
|
|
@@ -221,7 +222,10 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
221
222
|
sortState
|
|
222
223
|
} : {}, {
|
|
223
224
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
224
|
-
onWrappedColumnChange: onWrappedColumnChange
|
|
225
|
+
onWrappedColumnChange: onWrappedColumnChange
|
|
226
|
+
}, onWrappedColumnsChange && fg('platform_lp_sllv_table_settings_menu') ? {
|
|
227
|
+
onWrappedColumnsChange
|
|
228
|
+
} : {}, {
|
|
225
229
|
scrollableContainerHeight: isInPDFRender ? undefined : fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
226
230
|
extensionKey: extensionKey
|
|
227
231
|
})) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
@@ -4,7 +4,8 @@ import "./concatenated-menu-list.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
7
|
-
import { CheckboxOption
|
|
7
|
+
import { CheckboxOption } from '@atlaskit/select/checkbox-option';
|
|
8
|
+
import { components } from '@atlaskit/react-select/components';
|
|
8
9
|
import { columnPickerMessages } from './messages';
|
|
9
10
|
export const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
10
11
|
const messageStyles = null;
|
|
@@ -4,12 +4,15 @@ import "./index.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import Button from '@atlaskit/button/new';
|
|
7
|
+
import Button, { IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
9
9
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
10
|
+
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
12
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import { createFilter
|
|
12
|
-
import
|
|
13
|
+
import { createFilter } from '@atlaskit/react-select/filters';
|
|
14
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
16
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences';
|
|
14
17
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
15
18
|
import { ConcatenatedMenuList, MenuItem } from './concatenated-menu-list';
|
|
@@ -122,22 +125,35 @@ export const ColumnPicker = ({
|
|
|
122
125
|
target: ({
|
|
123
126
|
isOpen,
|
|
124
127
|
...triggerProps
|
|
125
|
-
}) =>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
128
|
+
}) => {
|
|
129
|
+
if (fg('platform_lp_sllv_table_settings_menu')) {
|
|
130
|
+
return /*#__PURE__*/React.createElement(IconButton, _extends({}, triggerProps, {
|
|
131
|
+
appearance: "default",
|
|
132
|
+
icon: TableColumnsDistributeIcon,
|
|
133
|
+
isSelected: isOpen,
|
|
134
|
+
isTooltipDisabled: false,
|
|
135
|
+
label: intl.formatMessage(columnPickerMessages.tooltip),
|
|
136
|
+
spacing: "default",
|
|
137
|
+
testId: "column-picker-trigger-button"
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
141
|
+
content: intl.formatMessage(columnPickerMessages.tooltip)
|
|
142
|
+
}, tooltipProps => /*#__PURE__*/React.createElement(Button, _extends({}, tooltipProps, triggerProps, {
|
|
143
|
+
isSelected: isOpen,
|
|
144
|
+
spacing: "compact",
|
|
145
|
+
appearance: 'default',
|
|
146
|
+
testId: "column-picker-trigger-button",
|
|
147
|
+
iconAfter: () => /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
148
|
+
label: "down",
|
|
149
|
+
size: "small"
|
|
150
|
+
})
|
|
151
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
152
|
+
as: "span",
|
|
153
|
+
xcss: styles.customizeIcon
|
|
154
|
+
}, /*#__PURE__*/React.createElement(CustomizeIcon, {
|
|
155
|
+
label: "customize"
|
|
156
|
+
}))));
|
|
157
|
+
}
|
|
142
158
|
});
|
|
143
159
|
};
|
|
@@ -10,18 +10,20 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
10
10
|
import ReactDOM from 'react-dom';
|
|
11
11
|
import { FormattedMessage } from 'react-intl';
|
|
12
12
|
import invariant from 'tiny-invariant';
|
|
13
|
-
import Button from '@atlaskit/button/
|
|
14
|
-
import DropdownMenu
|
|
13
|
+
import Button from '@atlaskit/button/default/button';
|
|
14
|
+
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
15
|
+
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
15
16
|
import ChevronDown from '@atlaskit/icon/core/chevron-down';
|
|
16
17
|
import ChevronUp from '@atlaskit/icon/core/chevron-up';
|
|
17
|
-
import { attachClosestEdge
|
|
18
|
+
import { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/attach-closest-edge';
|
|
19
|
+
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge';
|
|
18
20
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
19
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
20
|
-
import { draggable, dropTargetForElements, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
21
|
-
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/
|
|
22
|
-
import { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/
|
|
23
|
-
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/
|
|
24
|
-
import { preventUnhandled } from '@atlaskit/pragmatic-drag-and-drop/prevent-unhandled';
|
|
21
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
22
|
+
import { draggable, dropTargetForElements, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
23
|
+
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/disable-native-drag-preview';
|
|
24
|
+
import { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/pointer-outside-of-preview';
|
|
25
|
+
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview';
|
|
26
|
+
import { preventUnhandled } from '@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled';
|
|
25
27
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
26
28
|
import { GlyphPlaceholder, UnwrapTextIcon, WrapTextIcon } from './custom-icons';
|
|
27
29
|
import { issueLikeTableMessages } from './messages';
|
|
@@ -1,8 +1,8 @@
|
|
|
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 Select from '@atlaskit/select';
|
|
5
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
4
|
+
import Select from '@atlaskit/select/default';
|
|
5
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
6
6
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
7
7
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
8
8
|
import { useLoadOptions } from '../../../../hooks/useLoadOptions';
|
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
5
|
-
import Select from '@atlaskit/select';
|
|
6
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
4
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
5
|
+
import Select from '@atlaskit/select/default';
|
|
6
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
7
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
8
8
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
9
9
|
import { useLoadOptions } from '../../../../hooks/useLoadOptions';
|
|
@@ -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 Textfield from '@atlaskit/textfield';
|
|
4
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
5
5
|
import { succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
6
6
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
7
7
|
const TextEditType = props => {
|
|
@@ -2,10 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { useDebouncedCallback } from 'use-debounce';
|
|
5
|
-
import Avatar
|
|
5
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
6
|
+
import AvatarItem from '@atlaskit/avatar/avatar-item';
|
|
6
7
|
import { Layering } from '@atlaskit/layering/layering';
|
|
7
|
-
import Select from '@atlaskit/select';
|
|
8
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
8
|
+
import Select from '@atlaskit/select/default';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
10
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
10
11
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
11
12
|
import { useLoadOptions } from '../../../../hooks/useLoadOptions';
|
|
@@ -51,6 +51,7 @@ thead.has-column-picker ._10i2idpf:nth-last-of-type(2){border-right:0}.ProseMirr
|
|
|
51
51
|
.ProseMirror .pm-table-wrapper>table thead ._1pmc1b66{padding-right:var(--ds-space-050,4px)}
|
|
52
52
|
.ProseMirror .pm-table-wrapper>table thead ._1pmsusvi:last-of-type{box-sizing:border-box}
|
|
53
53
|
.ProseMirror .pm-table-wrapper>table thead ._1wwnusvi{box-sizing:border-box}
|
|
54
|
+
.ProseMirror .pm-table-wrapper>table thead ._2k5114em:last-of-type{width:95px}
|
|
54
55
|
.ProseMirror .pm-table-wrapper>table thead ._2k51ys9h:last-of-type{width:5pc}
|
|
55
56
|
.ProseMirror .pm-table-wrapper>table thead ._6dd7v77o{padding-bottom:var(--ds-space-025,2px)}
|
|
56
57
|
.ProseMirror .pm-table-wrapper>table thead ._7cz2v77o{padding-top:var(--ds-space-025,2px)}
|
|
@@ -118,6 +119,7 @@ thead.has-column-picker ._10i2idpf:nth-last-of-type(2){border-right:0}.ProseMirr
|
|
|
118
119
|
._kqsw1if8{position:sticky}
|
|
119
120
|
._kqswh2mm{position:relative}
|
|
120
121
|
._lura1osq [data-testid=datasource-header-content--container]{width:100%}
|
|
122
|
+
._mgul14em:last-of-type{width:95px}
|
|
121
123
|
._mgulys9h:last-of-type{width:5pc}
|
|
122
124
|
._ml92nkob:last-of-type{vertical-align:middle}
|
|
123
125
|
._mrkbidpf{border-bottom-left-radius:0}
|
|
@@ -159,6 +161,7 @@ thead.has-column-picker ._10i2idpf:nth-last-of-type(2){border-right:0}.ProseMirr
|
|
|
159
161
|
.pm-table-wrapper>table thead ._3mvc1tcg{line-height:24px}
|
|
160
162
|
.pm-table-wrapper>table thead ._7okwusvi:last-of-type{box-sizing:border-box}
|
|
161
163
|
.pm-table-wrapper>table thead ._7s0n1if8:last-of-type{position:sticky}
|
|
164
|
+
.pm-table-wrapper>table thead ._efqo14em:last-of-type{width:95px}
|
|
162
165
|
.pm-table-wrapper>table thead ._efqoys9h:last-of-type{width:5pc}
|
|
163
166
|
.pm-table-wrapper>table thead ._gdprpxbi:last-of-type{padding-right:var(--ds-space-200,1pc)}
|
|
164
167
|
.pm-table-wrapper>table thead ._mowjusic:last-of-type{text-align:right}
|
|
@@ -9,24 +9,25 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
9
9
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import invariant from 'tiny-invariant';
|
|
12
|
-
import Button from '@atlaskit/button/
|
|
13
|
-
import { FlagsProvider } from '@atlaskit/flag';
|
|
12
|
+
import Button from '@atlaskit/button/default/button';
|
|
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';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
+
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge';
|
|
19
19
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
20
20
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll';
|
|
21
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
22
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
23
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
24
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
21
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
22
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
23
|
+
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
24
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
25
25
|
import { startUfoExperience, succeedUfoExperience } from '../../analytics/ufoExperiences';
|
|
26
26
|
import { useDatasourceExperienceId } from '../../contexts/datasource-experience-id';
|
|
27
27
|
import { useIsInPDFRender } from '../../hooks/useIsInPDFRender';
|
|
28
28
|
import { NoResults } from '../common/error-state/no-results';
|
|
29
29
|
import { ColumnPicker } from './column-picker';
|
|
30
|
+
import { hasAvailableTableSettings, TableSettingsMenu } from './table-settings-menu';
|
|
30
31
|
import { DragColumnPreview } from './drag-column-preview';
|
|
31
32
|
import { DraggableTableHeading } from './draggable-table-heading';
|
|
32
33
|
import TableEmptyState from './empty-state';
|
|
@@ -38,6 +39,7 @@ import { COLUMN_BASE_WIDTH, getFieldLabelById, getWidthCss } from './utils';
|
|
|
38
39
|
const tableSidePadding = "var(--ds-space-200, 16px)";
|
|
39
40
|
const tableHeadStyles = null;
|
|
40
41
|
const columnPickerWidth = 80;
|
|
42
|
+
const columnPickerWithSettingsWidth = 95;
|
|
41
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
42
44
|
const ColumnPickerHeader = forwardRef(({
|
|
43
45
|
as: C = "th",
|
|
@@ -50,9 +52,24 @@ const ColumnPickerHeader = forwardRef(({
|
|
|
50
52
|
className: ax(["_1bqmidpf _2eacidpf _1rmlidpf _13xs13hi _19xw13hi _ex0g13hi _1rag1uh4 _1ul51uh4 _12ch1uh4 _12ruusvi _1pmsusvi _7okwusvi _mgulys9h _2k51ys9h _efqoys9h _1xzrzo7u _1ejpzo7u _1fmczo7u _77i31if8 _zjk41if8 _7s0n1if8 _3t471vc6 _9g2k1vc6 _1h0z1vc6 _1o59pxbi _1l3vpxbi _gdprpxbi _ml92nkob _1nfwnkob _11ljnkob _1ixkusic _s1peusic _mowjusic", __cmplp.className])
|
|
51
53
|
}));
|
|
52
54
|
});
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
53
56
|
if (process.env.NODE_ENV !== 'production') {
|
|
54
57
|
ColumnPickerHeader.displayName = 'ColumnPickerHeader';
|
|
55
58
|
}
|
|
59
|
+
const ColumnPickerHeaderWithSettings = forwardRef(({
|
|
60
|
+
as: C = "th",
|
|
61
|
+
style: __cmpls,
|
|
62
|
+
...__cmplp
|
|
63
|
+
}, __cmplr) => {
|
|
64
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
65
|
+
style: __cmpls,
|
|
66
|
+
ref: __cmplr,
|
|
67
|
+
className: ax(["_1bqmidpf _2eacidpf _1rmlidpf _13xs13hi _19xw13hi _ex0g13hi _1rag1uh4 _1ul51uh4 _12ch1uh4 _12ruusvi _1pmsusvi _7okwusvi _mgul14em _2k5114em _efqo14em _1xzrzo7u _1ejpzo7u _1fmczo7u _77i31if8 _zjk41if8 _7s0n1if8 _3t471vc6 _9g2k1vc6 _1h0z1vc6 _1o59pxbi _1l3vpxbi _gdprpxbi _ml92nkob _1nfwnkob _11ljnkob _1ixkusic _s1peusic _mowjusic", __cmplp.className])
|
|
68
|
+
}));
|
|
69
|
+
});
|
|
70
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
71
|
+
ColumnPickerHeaderWithSettings.displayName = 'ColumnPickerHeaderWithSettings';
|
|
72
|
+
}
|
|
56
73
|
const truncateStyles = null;
|
|
57
74
|
const wrappedStyles = null;
|
|
58
75
|
const richTextCellStyles = null;
|
|
@@ -215,6 +232,7 @@ export const IssueLikeDataTableView = ({
|
|
|
215
232
|
onColumnSort,
|
|
216
233
|
wrappedColumnKeys,
|
|
217
234
|
onWrappedColumnChange,
|
|
235
|
+
onWrappedColumnsChange,
|
|
218
236
|
sortState,
|
|
219
237
|
status,
|
|
220
238
|
hasNextPage,
|
|
@@ -249,6 +267,25 @@ export const IssueLikeDataTableView = ({
|
|
|
249
267
|
const visibleSortedColumns = useMemo(() => visibleColumnKeys.map(visibleKey => orderedColumns.find(({
|
|
250
268
|
key
|
|
251
269
|
}) => visibleKey === key)).filter(Boolean), [orderedColumns, visibleColumnKeys]);
|
|
270
|
+
const isWrapTextSettingAvailable = Boolean(onWrappedColumnsChange) && fg('platform_lp_sllv_table_settings_menu');
|
|
271
|
+
let areAllVisibleColumnsWrapped = false;
|
|
272
|
+
if (isWrapTextSettingAvailable) {
|
|
273
|
+
areAllVisibleColumnsWrapped = visibleColumnKeys.length > 0 && visibleColumnKeys.every(columnKey => wrappedColumnKeys === null || wrappedColumnKeys === void 0 ? void 0 : wrappedColumnKeys.includes(columnKey));
|
|
274
|
+
}
|
|
275
|
+
const handleWrapTextOnAllColumnsChange = useCallback(() => {
|
|
276
|
+
if (!onWrappedColumnsChange) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
const nextWrappedColumnKeys = areAllVisibleColumnsWrapped ? (wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 ? wrappedColumnKeys : []).filter(columnKey => !visibleColumnKeys.includes(columnKey)) : Array.from(new Set([...(wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 ? wrappedColumnKeys : []), ...visibleColumnKeys]));
|
|
280
|
+
onWrappedColumnsChange(nextWrappedColumnKeys);
|
|
281
|
+
}, [areAllVisibleColumnsWrapped, onWrappedColumnsChange, visibleColumnKeys, wrappedColumnKeys]);
|
|
282
|
+
const tableSettingsMenuProps = {
|
|
283
|
+
wrapTextSetting: isWrapTextSettingAvailable ? {
|
|
284
|
+
isChecked: areAllVisibleColumnsWrapped,
|
|
285
|
+
onChange: handleWrapTextOnAllColumnsChange
|
|
286
|
+
} : undefined
|
|
287
|
+
};
|
|
288
|
+
const shouldShowTableSettingsMenu = hasAvailableTableSettings(tableSettingsMenuProps);
|
|
252
289
|
|
|
253
290
|
// TODO seems like this component can't handle some combination of incremental data retrieval.
|
|
254
291
|
// If data comes first, then columns and then visibleColumnKeys it blows up,
|
|
@@ -256,7 +293,7 @@ export const IssueLikeDataTableView = ({
|
|
|
256
293
|
const columnsWidthsSum = useMemo(() => visibleSortedColumns.map(({
|
|
257
294
|
key,
|
|
258
295
|
type
|
|
259
|
-
}) => (columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key]) || getDefaultColumnWidth(key, type)).reduce((sum, width) => width + sum, 0) + (onVisibleColumnKeysChange ? columnPickerWidth : 0), [columnCustomSizes, onVisibleColumnKeysChange, visibleSortedColumns]);
|
|
296
|
+
}) => (columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key]) || getDefaultColumnWidth(key, type)).reduce((sum, width) => width + sum, 0) + (onVisibleColumnKeysChange && shouldShowTableSettingsMenu ? columnPickerWithSettingsWidth : onVisibleColumnKeysChange ? columnPickerWidth : 0), [columnCustomSizes, onVisibleColumnKeysChange, shouldShowTableSettingsMenu, visibleSortedColumns]);
|
|
260
297
|
const shouldUseWidth = !!(onColumnResize || columnCustomSizes);
|
|
261
298
|
const tableContainerWidth = Math.ceil(((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect().width) || 0);
|
|
262
299
|
const getColumnWidth = useCallback((key, type, isLastCell) => {
|
|
@@ -613,12 +650,23 @@ export const IssueLikeDataTableView = ({
|
|
|
613
650
|
})
|
|
614
651
|
}), heading);
|
|
615
652
|
}
|
|
616
|
-
}), onVisibleColumnKeysChange && /*#__PURE__*/React.createElement(
|
|
653
|
+
}), onVisibleColumnKeysChange && (shouldShowTableSettingsMenu ? /*#__PURE__*/React.createElement(ColumnPickerHeaderWithSettings, null, /*#__PURE__*/React.createElement(Inline, {
|
|
654
|
+
alignBlock: "center",
|
|
655
|
+
alignInline: "end",
|
|
656
|
+
space: "space.050"
|
|
657
|
+
}, /*#__PURE__*/React.createElement(ColumnPicker, {
|
|
658
|
+
columns: shouldDisplayColumnsInPicker ? orderedColumns : [],
|
|
659
|
+
selectedColumnKeys: shouldDisplayColumnsInPicker ? visibleColumnKeys : [],
|
|
660
|
+
onSelectedColumnKeysChange: onSelectedColumnKeysChange,
|
|
661
|
+
onOpen: handlePickerOpen
|
|
662
|
+
}), /*#__PURE__*/React.createElement(TableSettingsMenu, {
|
|
663
|
+
wrapTextSetting: tableSettingsMenuProps.wrapTextSetting
|
|
664
|
+
}))) : /*#__PURE__*/React.createElement(ColumnPickerHeader, null, /*#__PURE__*/React.createElement(ColumnPicker, {
|
|
617
665
|
columns: shouldDisplayColumnsInPicker ? orderedColumns : [],
|
|
618
666
|
selectedColumnKeys: shouldDisplayColumnsInPicker ? visibleColumnKeys : [],
|
|
619
667
|
onSelectedColumnKeysChange: onSelectedColumnKeysChange,
|
|
620
668
|
onOpen: handlePickerOpen
|
|
621
|
-
})))), /*#__PURE__*/React.createElement("tbody", {
|
|
669
|
+
}))))), /*#__PURE__*/React.createElement("tbody", {
|
|
622
670
|
"data-testid": testId && `${testId}--body`,
|
|
623
671
|
className: ax(["_n7zlidpf"])
|
|
624
672
|
}, hasNoResults && /*#__PURE__*/React.createElement("tr", {
|
|
@@ -5,10 +5,10 @@ import { forwardRef } from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
|
-
import Avatar from '@atlaskit/avatar';
|
|
9
|
-
import AvatarGroup from '@atlaskit/avatar-group';
|
|
8
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
9
|
+
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
10
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import { WidthObserver } from '@atlaskit/width-detector';
|
|
11
|
+
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
12
12
|
import { userTypeMessages } from './messages';
|
|
13
13
|
const styles = {
|
|
14
14
|
userWrapperStyles: "_11c8fhey _1e0c1txw _4cvr1h6o",
|
|
@@ -3,9 +3,9 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
|
-
import Avatar from '@atlaskit/avatar';
|
|
6
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
8
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
9
|
import { USER_TYPE_TEST_ID } from '../../render-type/user';
|
|
10
10
|
import { userTypeMessages } from '../../render-type/user/messages';
|
|
11
11
|
const styles = {
|
|
@@ -6,7 +6,7 @@ import { useIntl } from 'react-intl';
|
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
import { useDatasourceCrossProductAttribution } from '../../../analytics/xpc/useDatasourceCrossProductAttribution';
|
|
11
11
|
import { useDatasourceItem } from '../../../state';
|
|
12
12
|
import { useExecuteAtomicAction } from '../../../state/actions';
|
|
@@ -114,25 +114,18 @@ export const ReadOnlyCell = ({
|
|
|
114
114
|
type: columnType,
|
|
115
115
|
values
|
|
116
116
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
const issueLinkData = getIssueLinkData(rowData);
|
|
120
|
-
return /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
121
|
-
columnKey: columnKey,
|
|
122
|
-
datasourceTypeWithValues: datasourceTypeWithValues,
|
|
123
|
-
wrappedColumnKeys: wrappedColumnKeys
|
|
124
|
-
}, isIssueTypeColumn && issueLinkData ? fg('electric_issue_like_table_xpc_url_wrapping') ? /*#__PURE__*/React.createElement(LinkedCellContentWrapped, {
|
|
125
|
-
issueLinkData: issueLinkData
|
|
126
|
-
}, renderItem(datasourceTypeWithValues)) : getLinkedCellContent({
|
|
127
|
-
children: renderItem(datasourceTypeWithValues),
|
|
128
|
-
issueLinkData
|
|
129
|
-
}) : renderItem(datasourceTypeWithValues));
|
|
130
|
-
}
|
|
117
|
+
const isIssueTypeColumn = isIssueTypeColumnFn(columnKey);
|
|
118
|
+
const issueLinkData = getIssueLinkData(rowData);
|
|
131
119
|
return /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
132
120
|
columnKey: columnKey,
|
|
133
121
|
datasourceTypeWithValues: datasourceTypeWithValues,
|
|
134
122
|
wrappedColumnKeys: wrappedColumnKeys
|
|
135
|
-
},
|
|
123
|
+
}, isIssueTypeColumn && issueLinkData ? fg('electric_issue_like_table_xpc_url_wrapping') ? /*#__PURE__*/React.createElement(LinkedCellContentWrapped, {
|
|
124
|
+
issueLinkData: issueLinkData
|
|
125
|
+
}, renderItem(datasourceTypeWithValues)) : getLinkedCellContent({
|
|
126
|
+
children: renderItem(datasourceTypeWithValues),
|
|
127
|
+
issueLinkData
|
|
128
|
+
}) : renderItem(datasourceTypeWithValues));
|
|
136
129
|
};
|
|
137
130
|
const InlineEditableCell = ({
|
|
138
131
|
ari,
|
|
@@ -171,12 +164,12 @@ const InlineEditableCell = ({
|
|
|
171
164
|
style: {
|
|
172
165
|
minHeight: 'calc(40px - 2px * 2)'
|
|
173
166
|
}
|
|
174
|
-
},
|
|
167
|
+
}, !isEditable && isIssueTypeColumnFn(columnKey) && issueLinkData ? fg('electric_issue_like_table_xpc_url_wrapping') ? /*#__PURE__*/React.createElement(LinkedCellContentWrapped, {
|
|
175
168
|
issueLinkData: issueLinkData
|
|
176
169
|
}, renderItem(values)) : getLinkedCellContent({
|
|
177
170
|
children: renderItem(values),
|
|
178
171
|
issueLinkData
|
|
179
|
-
}) : renderItem(values)
|
|
172
|
+
}) : renderItem(values)));
|
|
180
173
|
if (!isEditable) {
|
|
181
174
|
return readView;
|
|
182
175
|
}
|
|
@@ -234,7 +227,7 @@ export const TableCellContent = ({
|
|
|
234
227
|
columnTitle: columnTitle,
|
|
235
228
|
renderItem: renderItem,
|
|
236
229
|
integrationKey: integrationKey,
|
|
237
|
-
issueLinkData:
|
|
230
|
+
issueLinkData: getIssueLinkData(rowData),
|
|
238
231
|
values: toDatasourceTypeWithValues({
|
|
239
232
|
rowData,
|
|
240
233
|
columnKey,
|