@atlaskit/link-datasource 4.5.0 → 4.6.1
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 +21 -0
- package/dist/cjs/common/ui/spot/error-state/error/assets/dark.svg +7 -4
- package/dist/cjs/common/ui/spot/error-state/error/assets/light.svg +7 -4
- package/dist/cjs/common/ui/spot/error-state/error-old/assets/dark.svg +5 -0
- package/dist/cjs/common/ui/spot/error-state/error-old/assets/light.svg +5 -0
- package/dist/cjs/common/ui/spot/error-state/error-old/index.js +18 -0
- package/dist/cjs/common/utils/withFeatureFlaggedComponent.js +23 -0
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +7 -2
- package/dist/cjs/ui/common/modal/basic-search-input/index.compiled.css +1 -0
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +6 -4
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +46 -6
- package/dist/cjs/ui/common/modal/mode-switcher/index.compiled.css +16 -0
- package/dist/cjs/ui/common/modal/mode-switcher/index.js +24 -2
- package/dist/cjs/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.compiled.css +15 -0
- package/dist/cjs/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.js +30 -0
- package/dist/cjs/ui/common/modal/popup-select/control.compiled.css +4 -0
- package/dist/cjs/ui/common/modal/popup-select/control.js +34 -7
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +19 -10
- package/dist/cjs/ui/common/modal/popup-select/footer.compiled.css +4 -0
- package/dist/cjs/ui/common/modal/popup-select/footer.js +8 -4
- package/dist/cjs/ui/common/modal/popup-select/index.js +25 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/errorMessage.js +8 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.compiled.css +4 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.js +5 -2
- package/dist/cjs/ui/common/modal/popup-select/menu-list/messages.js +21 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +4 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.compiled.css +8 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.js +23 -4
- package/dist/cjs/ui/common/modal/popup-select/menu-list/showMoreButton.js +10 -0
- package/dist/cjs/ui/common/modal/popup-select/trigger.compiled.css +1 -0
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +26 -5
- package/dist/cjs/ui/common/modal/site-selector/index.js +7 -2
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +18 -2
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.compiled.css +2 -1
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.js +14 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +3 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +25 -0
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.compiled.css +4 -1
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +49 -2
- package/dist/es2019/common/ui/spot/error-state/error/assets/dark.svg +7 -4
- package/dist/es2019/common/ui/spot/error-state/error/assets/light.svg +7 -4
- package/dist/es2019/common/ui/spot/error-state/error-old/assets/dark.svg +5 -0
- package/dist/es2019/common/ui/spot/error-state/error-old/assets/light.svg +5 -0
- package/dist/es2019/common/ui/spot/error-state/error-old/index.js +11 -0
- package/dist/es2019/common/utils/withFeatureFlaggedComponent.js +17 -0
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +5 -2
- package/dist/es2019/ui/common/modal/basic-search-input/index.compiled.css +1 -0
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +6 -4
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +37 -6
- package/dist/es2019/ui/common/modal/mode-switcher/index.compiled.css +16 -0
- package/dist/es2019/ui/common/modal/mode-switcher/index.js +19 -2
- package/dist/es2019/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.compiled.css +15 -0
- package/dist/es2019/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.js +19 -0
- package/dist/es2019/ui/common/modal/popup-select/control.compiled.css +4 -0
- package/dist/es2019/ui/common/modal/popup-select/control.js +26 -5
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +20 -11
- package/dist/es2019/ui/common/modal/popup-select/footer.compiled.css +4 -0
- package/dist/es2019/ui/common/modal/popup-select/footer.js +8 -4
- package/dist/es2019/ui/common/modal/popup-select/index.js +20 -3
- package/dist/es2019/ui/common/modal/popup-select/menu-list/errorMessage.js +8 -3
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.compiled.css +4 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.js +5 -2
- package/dist/es2019/ui/common/modal/popup-select/menu-list/messages.js +21 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +4 -3
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.compiled.css +8 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.js +24 -5
- package/dist/es2019/ui/common/modal/popup-select/menu-list/showMoreButton.js +12 -2
- package/dist/es2019/ui/common/modal/popup-select/trigger.compiled.css +1 -0
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +24 -5
- package/dist/es2019/ui/common/modal/site-selector/index.js +5 -2
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +16 -2
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.compiled.css +2 -1
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.js +16 -3
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +3 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +25 -0
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.compiled.css +4 -1
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +50 -3
- package/dist/esm/common/ui/spot/error-state/error/assets/dark.svg +7 -4
- package/dist/esm/common/ui/spot/error-state/error/assets/light.svg +7 -4
- package/dist/esm/common/ui/spot/error-state/error-old/assets/dark.svg +5 -0
- package/dist/esm/common/ui/spot/error-state/error-old/assets/light.svg +5 -0
- package/dist/esm/common/ui/spot/error-state/error-old/index.js +11 -0
- package/dist/esm/common/utils/withFeatureFlaggedComponent.js +17 -0
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +7 -2
- package/dist/esm/ui/common/modal/basic-search-input/index.compiled.css +1 -0
- package/dist/esm/ui/common/modal/basic-search-input/index.js +6 -4
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +46 -6
- package/dist/esm/ui/common/modal/mode-switcher/index.compiled.css +16 -0
- package/dist/esm/ui/common/modal/mode-switcher/index.js +24 -2
- package/dist/esm/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.compiled.css +15 -0
- package/dist/esm/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.js +20 -0
- package/dist/esm/ui/common/modal/popup-select/control.compiled.css +4 -0
- package/dist/esm/ui/common/modal/popup-select/control.js +33 -6
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +20 -11
- package/dist/esm/ui/common/modal/popup-select/footer.compiled.css +4 -0
- package/dist/esm/ui/common/modal/popup-select/footer.js +8 -4
- package/dist/esm/ui/common/modal/popup-select/index.js +25 -3
- package/dist/esm/ui/common/modal/popup-select/menu-list/errorMessage.js +8 -3
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.compiled.css +4 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.js +5 -2
- package/dist/esm/ui/common/modal/popup-select/menu-list/messages.js +21 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +4 -3
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.compiled.css +8 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.js +24 -5
- package/dist/esm/ui/common/modal/popup-select/menu-list/showMoreButton.js +12 -2
- package/dist/esm/ui/common/modal/popup-select/trigger.compiled.css +1 -0
- package/dist/esm/ui/common/modal/popup-select/trigger.js +26 -5
- package/dist/esm/ui/common/modal/site-selector/index.js +7 -2
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +18 -2
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.compiled.css +2 -1
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.js +15 -3
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +3 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +25 -0
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.compiled.css +4 -1
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +50 -3
- package/dist/types/common/ui/spot/error-state/error-old/index.d.ts +3 -0
- package/dist/types/common/utils/withFeatureFlaggedComponent.d.ts +9 -0
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +6 -1
- package/dist/types/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.d.ts +4 -0
- package/dist/types/ui/common/modal/popup-select/control.d.ts +3 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +6 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/messages.d.ts +20 -0
- package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +6 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +25 -0
- package/dist/types-ts4.5/common/ui/spot/error-state/error-old/index.d.ts +3 -0
- package/dist/types-ts4.5/common/utils/withFeatureFlaggedComponent.d.ts +9 -0
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.d.ts +4 -0
- package/dist/types-ts4.5/ui/common/modal/popup-select/control.d.ts +3 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/messages.d.ts +20 -0
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +6 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +25 -0
- package/package.json +5 -5
|
@@ -4,6 +4,8 @@ var _excluded = ["children"];
|
|
|
4
4
|
import "./index.compiled.css";
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { cx } from '@compiled/react';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
8
10
|
import { components } from '@atlaskit/select';
|
|
9
11
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -13,7 +15,8 @@ import CustomNoOptionsMessage from './noOptionsMessage';
|
|
|
13
15
|
import ShowMoreButton from './showMoreButton';
|
|
14
16
|
var styles = {
|
|
15
17
|
inlineSpinnerStyles: "_ca0q12x7",
|
|
16
|
-
|
|
18
|
+
showMoreButtonBoxStylesOld: "_19bv12x7 _ca0qu2gc",
|
|
19
|
+
showMoreButtonBoxStyles: "_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvpxbi"
|
|
17
20
|
};
|
|
18
21
|
var CustomMenuList = function CustomMenuList(_ref) {
|
|
19
22
|
var children = _ref.children,
|
|
@@ -57,7 +60,7 @@ var CustomMenuList = function CustomMenuList(_ref) {
|
|
|
57
60
|
});
|
|
58
61
|
}
|
|
59
62
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children, shouldDisplayShowMore && handleShowMore && /*#__PURE__*/React.createElement(Box, {
|
|
60
|
-
xcss: styles.showMoreButtonBoxStyles
|
|
63
|
+
xcss: cx(fg('platform-linking-visual-refresh-sllv') ? styles.showMoreButtonBoxStyles : styles.showMoreButtonBoxStylesOld)
|
|
61
64
|
}, /*#__PURE__*/React.createElement(ShowMoreButton, {
|
|
62
65
|
onShowMore: handleShowMore,
|
|
63
66
|
filterName: filterName
|
|
@@ -7,14 +7,34 @@ export var asyncPopupSelectMessages = defineMessages({
|
|
|
7
7
|
},
|
|
8
8
|
noOptionsMessage: {
|
|
9
9
|
id: 'linkDataSource.basic-filter.no-options-message',
|
|
10
|
+
defaultMessage: "We couldn't find anything matching your search",
|
|
11
|
+
description: 'The text for when no matches are found in dropdown'
|
|
12
|
+
},
|
|
13
|
+
noOptionsMessageOld: {
|
|
14
|
+
id: 'linkDataSource.basic-filter.no-options-message-old',
|
|
10
15
|
defaultMessage: 'No matches found',
|
|
11
16
|
description: 'The text for when no matches are found in dropdown'
|
|
12
17
|
},
|
|
18
|
+
noOptionsDescription: {
|
|
19
|
+
id: 'linkDataSource.basic-filter.no-options-description',
|
|
20
|
+
defaultMessage: 'Try again with a different term.',
|
|
21
|
+
description: 'The helper text for when no matches are found in dropdown'
|
|
22
|
+
},
|
|
13
23
|
errorMessage: {
|
|
14
|
-
id: 'linkDataSource.basic-filter.
|
|
24
|
+
id: 'linkDataSource.basic-filter.errorMessage',
|
|
25
|
+
defaultMessage: 'We ran into an issue trying to load results',
|
|
26
|
+
description: 'The text for when an error occurs when loading options'
|
|
27
|
+
},
|
|
28
|
+
errorMessageOld: {
|
|
29
|
+
id: 'linkDataSource.basic-filter.errorMessageOld',
|
|
15
30
|
defaultMessage: 'Something went wrong',
|
|
16
31
|
description: 'The text for when an error occurs when loading options'
|
|
17
32
|
},
|
|
33
|
+
errorDescription: {
|
|
34
|
+
id: 'linkDataSource.basic-filter.error-description',
|
|
35
|
+
defaultMessage: 'Check your connection and refresh',
|
|
36
|
+
description: 'The helper text for when no matches are found in dropdown'
|
|
37
|
+
},
|
|
18
38
|
showMoreMessage: {
|
|
19
39
|
id: 'linkDataSource.basic-filter.showMoreButton',
|
|
20
40
|
defaultMessage: 'Show more',
|
|
@@ -40,14 +40,15 @@ var CustomNoOptionsMessage = function CustomNoOptionsMessage(_ref) {
|
|
|
40
40
|
formatMessage = _ref2.formatMessage;
|
|
41
41
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
42
42
|
icon: fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotSearchNoResult, {
|
|
43
|
-
size: 'medium',
|
|
44
|
-
alt: formatMessage(asyncPopupSelectMessages.noOptionsMessage)
|
|
43
|
+
size: fg('platform-linking-visual-refresh-sllv') ? 'large' : 'medium',
|
|
44
|
+
alt: formatMessage(fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsMessage : asyncPopupSelectMessages.noOptionsMessageOld)
|
|
45
45
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
46
46
|
primaryColor: "var(--ds-icon, ".concat(N500, ")"),
|
|
47
47
|
size: "xlarge",
|
|
48
48
|
label: ""
|
|
49
49
|
})),
|
|
50
|
-
message: asyncPopupSelectMessages.noOptionsMessage,
|
|
50
|
+
message: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsMessage : asyncPopupSelectMessages.noOptionsMessageOld,
|
|
51
|
+
description: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsDescription : undefined,
|
|
51
52
|
testId: "".concat(filterName, "--no-options-message")
|
|
52
53
|
});
|
|
53
54
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
._zulppxbi{gap:var(--ds-space-200,1pc)}._19bvoahv{padding-left:var(--ds-space-600,3pc)}
|
|
1
3
|
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
4
|
+
._4t3i16xz{height:6pc}
|
|
2
5
|
._4t3ivbgk{height:4pc}
|
|
6
|
+
._ca0q1jfw{padding-top:var(--ds-space-500,40px)}
|
|
3
7
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
8
|
+
._n3td1jfw{padding-bottom:var(--ds-space-500,40px)}
|
|
4
9
|
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
5
10
|
._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
|
|
6
|
-
.
|
|
11
|
+
._u5f3oahv{padding-right:var(--ds-space-600,3pc)}
|
|
12
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
13
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -4,21 +4,40 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
|
-
import {
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
8
9
|
var styles = {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
boxStylesOld: "_4t3ivbgk _otyrpxbi",
|
|
11
|
+
boxStyles: "_4t3i16xz",
|
|
12
|
+
stackStylesOld: "_ca0qu2gc _n3tdu2gc _19bvutpp _u5f3utpp",
|
|
13
|
+
stackStyles: "_zulppxbi _ca0q1jfw _n3td1jfw _19bvoahv _u5f3oahv _y3gn1h6o"
|
|
11
14
|
};
|
|
12
15
|
var CustomSelectMessage = function CustomSelectMessage(_ref) {
|
|
13
16
|
var icon = _ref.icon,
|
|
14
17
|
message = _ref.message,
|
|
18
|
+
description = _ref.description,
|
|
15
19
|
testId = _ref.testId;
|
|
20
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(Stack, {
|
|
22
|
+
xcss: styles.stackStyles,
|
|
23
|
+
testId: testId,
|
|
24
|
+
alignInline: "center"
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
26
|
+
xcss: styles.boxStyles,
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "center"
|
|
29
|
+
}, icon), /*#__PURE__*/React.createElement(Heading, {
|
|
30
|
+
size: "small"
|
|
31
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, message)), description && /*#__PURE__*/React.createElement(Text, {
|
|
32
|
+
size: "medium"
|
|
33
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, description)));
|
|
34
|
+
}
|
|
16
35
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
17
|
-
xcss: styles.
|
|
36
|
+
xcss: styles.stackStylesOld,
|
|
18
37
|
testId: testId,
|
|
19
38
|
alignInline: "center"
|
|
20
39
|
}, /*#__PURE__*/React.createElement(Flex, {
|
|
21
|
-
xcss: styles.
|
|
40
|
+
xcss: styles.boxStylesOld,
|
|
22
41
|
alignItems: "center",
|
|
23
42
|
justifyContent: "center"
|
|
24
43
|
}, icon), /*#__PURE__*/React.createElement(Heading, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import
|
|
3
|
+
import ButtonOld from '@atlaskit/button';
|
|
4
|
+
import Button from '@atlaskit/button/new';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
6
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
5
7
|
import { asyncPopupSelectMessages } from './messages';
|
|
6
8
|
var ShowMoreButton = function ShowMoreButton(_ref) {
|
|
@@ -17,7 +19,15 @@ var ShowMoreButton = function ShowMoreButton(_ref) {
|
|
|
17
19
|
});
|
|
18
20
|
onShowMore();
|
|
19
21
|
}, [filterName, fireEvent, onShowMore]);
|
|
20
|
-
|
|
22
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
23
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
24
|
+
onClick: handleShowMore,
|
|
25
|
+
appearance: "subtle",
|
|
26
|
+
testId: "".concat(filterName, "--show-more-button"),
|
|
27
|
+
spacing: "compact"
|
|
28
|
+
}, formatMessage(asyncPopupSelectMessages.showMoreMessage));
|
|
29
|
+
}
|
|
30
|
+
return /*#__PURE__*/React.createElement(ButtonOld, {
|
|
21
31
|
onClick: handleShowMore,
|
|
22
32
|
appearance: "link",
|
|
23
33
|
testId: "".concat(filterName, "--show-more-button")
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._y44vkmg5{animation:flickerAnimation 2s infinite}._18m915vq{overflow-y:hidden}
|
|
3
3
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
4
|
+
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
4
5
|
._1bto1l2s{text-overflow:ellipsis}
|
|
5
6
|
._1reo15vq{overflow-x:hidden}
|
|
6
7
|
._kqswh2mm{position:relative}
|
|
@@ -7,13 +7,17 @@ import "./trigger.compiled.css";
|
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import React, { forwardRef, useCallback } from 'react';
|
|
9
9
|
import Badge from '@atlaskit/badge';
|
|
10
|
+
import NewButton from '@atlaskit/button/new';
|
|
10
11
|
import Button from '@atlaskit/button/standard-button';
|
|
11
|
-
import ChevronDownIcon from '@atlaskit/icon/utility/
|
|
12
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
13
|
+
import ChevronDownIconOld from '@atlaskit/icon/utility/migration/chevron-down';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
15
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
13
16
|
import Spinner from '@atlaskit/spinner';
|
|
14
17
|
var styles = {
|
|
15
18
|
triggerButtonLabelStyles: "_1reo15vq _18m915vq _1bto1l2s",
|
|
16
|
-
|
|
19
|
+
badgeStylesOld: "_18u01b66",
|
|
20
|
+
badgeStyles: "_18u0utpp"
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
@@ -53,11 +57,28 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
53
57
|
}, label));
|
|
54
58
|
}, [label, triggerButtonTestId]);
|
|
55
59
|
var DefaultButton = useCallback(function () {
|
|
56
|
-
return /*#__PURE__*/React.createElement(
|
|
60
|
+
return fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(NewButton, {
|
|
61
|
+
isSelected: isSelected || hasOptions,
|
|
62
|
+
isDisabled: isDisabled,
|
|
63
|
+
iconAfter: function iconAfter() {
|
|
64
|
+
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
65
|
+
label: "",
|
|
66
|
+
color: "currentColor"
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
testId: "".concat(triggerButtonTestId, "--button")
|
|
70
|
+
}, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
|
|
71
|
+
xcss: styles.triggerButtonLabelStyles
|
|
72
|
+
}, label, firstOption && /*#__PURE__*/React.createElement(React.Fragment, null, ": ", firstOption.label)), selectedOptions && selectedOptions.length > 1 && /*#__PURE__*/React.createElement(Flex, {
|
|
73
|
+
xcss: styles.badgeStyles,
|
|
74
|
+
alignItems: "center"
|
|
75
|
+
}, /*#__PURE__*/React.createElement(Badge, {
|
|
76
|
+
appearance: "primary"
|
|
77
|
+
}, "+", selectedOptions.length - 1)))) : /*#__PURE__*/React.createElement(Button, {
|
|
57
78
|
appearance: "default",
|
|
58
79
|
isSelected: isSelected || hasOptions,
|
|
59
80
|
isDisabled: isDisabled,
|
|
60
|
-
iconAfter: /*#__PURE__*/React.createElement(
|
|
81
|
+
iconAfter: /*#__PURE__*/React.createElement(ChevronDownIconOld, {
|
|
61
82
|
label: "",
|
|
62
83
|
color: "currentColor"
|
|
63
84
|
}),
|
|
@@ -65,7 +86,7 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
65
86
|
}, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
|
|
66
87
|
xcss: styles.triggerButtonLabelStyles
|
|
67
88
|
}, label, firstOption && /*#__PURE__*/React.createElement(React.Fragment, null, ": ", firstOption.label)), selectedOptions && selectedOptions.length > 1 && /*#__PURE__*/React.createElement(Flex, {
|
|
68
|
-
xcss: styles.
|
|
89
|
+
xcss: styles.badgeStylesOld,
|
|
69
90
|
alignItems: "center"
|
|
70
91
|
}, /*#__PURE__*/React.createElement(Badge, {
|
|
71
92
|
appearance: "primary"
|
|
@@ -14,7 +14,7 @@ import { useMemo } from 'react';
|
|
|
14
14
|
import { useIntl } from 'react-intl-next';
|
|
15
15
|
import Button from '@atlaskit/button/new';
|
|
16
16
|
import Heading from '@atlaskit/heading';
|
|
17
|
-
import ChevronDownIcon from '@atlaskit/icon/utility/
|
|
17
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
18
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
19
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
20
20
|
import Select, { PopupSelect } from '@atlaskit/select';
|
|
@@ -73,7 +73,12 @@ export var SiteSelector = function SiteSelector(props) {
|
|
|
73
73
|
triggerProps = _objectWithoutProperties(_ref, _excluded);
|
|
74
74
|
return /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
75
75
|
isSelected: isOpen,
|
|
76
|
-
iconAfter:
|
|
76
|
+
iconAfter: function iconAfter() {
|
|
77
|
+
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
78
|
+
label: "",
|
|
79
|
+
color: "currentColor"
|
|
80
|
+
});
|
|
81
|
+
},
|
|
77
82
|
testId: "".concat(testId, "__control")
|
|
78
83
|
}), (selectedSiteOption === null || selectedSiteOption === void 0 ? void 0 : selectedSiteOption.label) || formatMessage(siteSelectorMessages.chooseSite));
|
|
79
84
|
}
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import NewButton from '@atlaskit/button/new';
|
|
3
4
|
import Button from '@atlaskit/button/standard-button';
|
|
4
|
-
import ChevronDownIcon from '@atlaskit/icon/utility/
|
|
5
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
6
|
+
import ChevronDownIconOld from '@atlaskit/icon/utility/migration/chevron-down';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
8
|
export var PopupTrigger = function PopupTrigger(_ref) {
|
|
6
9
|
var triggerProps = _ref.triggerProps,
|
|
7
10
|
isSelected = _ref.isSelected,
|
|
8
11
|
labelPrefix = _ref.labelPrefix,
|
|
9
12
|
selectedLabel = _ref.selectedLabel,
|
|
10
13
|
onClick = _ref.onClick;
|
|
14
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(NewButton, _extends({}, triggerProps, {
|
|
16
|
+
testId: 'confluence-search-modal--date-range-button',
|
|
17
|
+
onClick: onClick,
|
|
18
|
+
isSelected: isSelected,
|
|
19
|
+
iconAfter: function iconAfter() {
|
|
20
|
+
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
21
|
+
label: "",
|
|
22
|
+
color: "currentColor"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}), labelPrefix, selectedLabel ? ": ".concat(selectedLabel) : '');
|
|
26
|
+
}
|
|
11
27
|
return /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
12
28
|
testId: 'confluence-search-modal--date-range-button',
|
|
13
29
|
onClick: onClick,
|
|
@@ -20,7 +36,7 @@ export var PopupTrigger = function PopupTrigger(_ref) {
|
|
|
20
36
|
display: 'flex',
|
|
21
37
|
alignItems: 'center'
|
|
22
38
|
}
|
|
23
|
-
}, /*#__PURE__*/React.createElement(
|
|
39
|
+
}, /*#__PURE__*/React.createElement(ChevronDownIconOld, {
|
|
24
40
|
LEGACY_size: "medium",
|
|
25
41
|
label: "",
|
|
26
42
|
color: "currentColor"
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
._16jlkb7n{flex-grow:1}
|
|
1
|
+
._16jlkb7n{flex-grow:1}
|
|
2
|
+
._1bsb1osq{width:100%}
|
|
@@ -6,8 +6,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
9
|
+
import { useIntl } from 'react-intl-next';
|
|
9
10
|
import { useDebouncedCallback } from 'use-debounce';
|
|
10
|
-
import {
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { Box, Flex, Text } from '@atlaskit/primitives/compiled';
|
|
11
13
|
import { BasicSearchInput } from '../../common/modal/basic-search-input';
|
|
12
14
|
import { FILTER_SELECTION_DEBOUNCE_MS } from '../../common/modal/popup-select/constants';
|
|
13
15
|
import BasicFilters from '../basic-filters';
|
|
@@ -15,6 +17,7 @@ import { useBasicFilterHydration } from '../basic-filters/hooks/useBasicFilterHy
|
|
|
15
17
|
import { CLOLBasicFilters } from '../basic-filters/types';
|
|
16
18
|
import { searchMessages } from './messages';
|
|
17
19
|
var styles = {
|
|
20
|
+
basicSearchInputBoxStyles: "_1bsb1osq",
|
|
18
21
|
basicSearchInputContainerStyles: "_16jlkb7n"
|
|
19
22
|
};
|
|
20
23
|
var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
@@ -55,6 +58,8 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
55
58
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
56
59
|
filterSelections = _useState6[0],
|
|
57
60
|
setFilterSelections = _useState6[1];
|
|
61
|
+
var _useIntl = useIntl(),
|
|
62
|
+
formatMessage = _useIntl.formatMessage;
|
|
58
63
|
var handleSearchChange = useCallback(function (e) {
|
|
59
64
|
var rawSearch = e.currentTarget.value;
|
|
60
65
|
setSearchBarSearchString(rawSearch);
|
|
@@ -99,7 +104,9 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
99
104
|
});
|
|
100
105
|
}
|
|
101
106
|
}, [users, status, filterSelections.lastModified]);
|
|
102
|
-
return /*#__PURE__*/React.createElement(
|
|
107
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
108
|
+
xcss: styles.basicSearchInputBoxStyles
|
|
109
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
103
110
|
alignItems: "center",
|
|
104
111
|
xcss: styles.basicSearchInputContainerStyles
|
|
105
112
|
}, /*#__PURE__*/React.createElement(BasicSearchInput, {
|
|
@@ -109,12 +116,17 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
109
116
|
onSearch: onSearch,
|
|
110
117
|
searchTerm: searchBarSearchString,
|
|
111
118
|
placeholder: searchMessages.searchLabel,
|
|
119
|
+
ariaLabel: searchMessages.searchLabel,
|
|
112
120
|
fullWidth: false
|
|
113
121
|
}), /*#__PURE__*/React.createElement(BasicFilters, {
|
|
114
122
|
cloudId: cloudId,
|
|
115
123
|
selections: filterSelections,
|
|
116
124
|
onChange: handleBasicFilterSelectionChange,
|
|
117
125
|
isHydrating: status === 'loading'
|
|
118
|
-
}))
|
|
126
|
+
})), fg('platform-linking-visual-refresh-sllv') && /*#__PURE__*/React.createElement(Text, {
|
|
127
|
+
size: "small",
|
|
128
|
+
color: "color.text.subtlest",
|
|
129
|
+
testId: "confluence-search-placeholder"
|
|
130
|
+
}, formatMessage(searchMessages.searchLabel)));
|
|
119
131
|
};
|
|
120
132
|
export default ConfluenceSearchContainer;
|
|
@@ -5,6 +5,7 @@ import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
5
5
|
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import { useIntl } from 'react-intl-next';
|
|
7
7
|
import { useDebouncedCallback } from 'use-debounce';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { FilterPopupSelect } from '../../../../common/modal/popup-select';
|
|
9
10
|
import { SEARCH_DEBOUNCE_MS } from '../../../../common/modal/popup-select/constants';
|
|
10
11
|
import { useFilterOptions } from '../../hooks/useFilterOptions';
|
|
@@ -107,7 +108,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
107
108
|
var filterName = "jlol-basic-filter-".concat(filterType);
|
|
108
109
|
var shouldShowFooter = (status === 'resolved' || isLoadingMore) && filterOptionsLength > 0; // footer should not disappear when there is an inline spinner for loading more data
|
|
109
110
|
var shouldDisplayShowMoreButton = status === 'resolved' && !!pageCursor && !areAllResultsLoaded;
|
|
110
|
-
var triggerButtonLabel = formatMessage(asyncPopupSelectMessages["".concat(filterType, "Label")]);
|
|
111
|
+
var triggerButtonLabel = formatMessage(!fg('platform-linking-visual-refresh-sllv') && filterType === 'type' ? asyncPopupSelectMessages.typeLabelOld : asyncPopupSelectMessages["".concat(filterType, "Label")]);
|
|
111
112
|
return /*#__PURE__*/React.createElement(FilterPopupSelect, {
|
|
112
113
|
filterName: filterName,
|
|
113
114
|
status: status,
|
|
@@ -119,6 +120,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
119
120
|
selectedOptions: selectedOptions,
|
|
120
121
|
options: popupSelectOptions,
|
|
121
122
|
buttonLabel: triggerButtonLabel,
|
|
123
|
+
searchPlaceholder: fg('platform-linking-visual-refresh-sllv') ? formatMessage(asyncPopupSelectMessages["".concat(filterType, "SearchPlaceholder")]) : undefined,
|
|
122
124
|
onInputChange: handleInputChange,
|
|
123
125
|
onSelectionChange: handleOptionSelection,
|
|
124
126
|
onMenuOpen: handleMenuOpen,
|
|
@@ -13,11 +13,36 @@ export var asyncPopupSelectMessages = defineMessages({
|
|
|
13
13
|
typeLabel: {
|
|
14
14
|
id: 'linkDataSource.basic-filter.type.label',
|
|
15
15
|
description: 'Label to be displayed for type filter dropdown button.',
|
|
16
|
+
defaultMessage: 'Work type'
|
|
17
|
+
},
|
|
18
|
+
typeLabelOld: {
|
|
19
|
+
id: 'linkDataSource.basic-filter.type.labelOld',
|
|
20
|
+
description: 'Label to be displayed for type filter dropdown button.',
|
|
16
21
|
defaultMessage: 'Type'
|
|
17
22
|
},
|
|
18
23
|
assigneeLabel: {
|
|
19
24
|
id: 'linkDataSource.basic-filter.assignee.label',
|
|
20
25
|
description: 'Label to be displayed for assignee filter dropdown button.',
|
|
21
26
|
defaultMessage: 'Assignee'
|
|
27
|
+
},
|
|
28
|
+
projectSearchPlaceholder: {
|
|
29
|
+
id: 'linkDataSource.basic-filter.project.searchPlaceholder',
|
|
30
|
+
description: 'Placeholder to be displayed for project filter dropdown search input.',
|
|
31
|
+
defaultMessage: 'Search for projects'
|
|
32
|
+
},
|
|
33
|
+
statusSearchPlaceholder: {
|
|
34
|
+
id: 'linkDataSource.basic-filter.status.searchPlaceholder',
|
|
35
|
+
description: 'Placeholder to be displayed for status filter dropdown search input.',
|
|
36
|
+
defaultMessage: 'Search for status'
|
|
37
|
+
},
|
|
38
|
+
typeSearchPlaceholder: {
|
|
39
|
+
id: 'linkDataSource.basic-filter.type.searchPlaceholder',
|
|
40
|
+
description: 'Placeholder to be displayed for work type filter dropdown search input.',
|
|
41
|
+
defaultMessage: 'Search for work type'
|
|
42
|
+
},
|
|
43
|
+
assigneeSearchPlaceholder: {
|
|
44
|
+
id: 'linkDataSource.basic-filter.assignee.searchPlaceholder',
|
|
45
|
+
description: 'Placeholder to be displayed for assignee filter dropdown search input.',
|
|
46
|
+
defaultMessage: 'Search for assignee'
|
|
22
47
|
}
|
|
23
48
|
});
|
|
@@ -10,7 +10,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl-next';
|
|
12
12
|
import { useDebouncedCallback } from 'use-debounce';
|
|
13
|
-
import {
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { Box, Flex, Text } from '@atlaskit/primitives/compiled';
|
|
14
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
15
16
|
import { BasicSearchInput } from '../../common/modal/basic-search-input';
|
|
16
17
|
import { basicSearchInputMessages } from '../../common/modal/basic-search-input/messages';
|
|
@@ -23,8 +24,11 @@ import { JiraJQLEditor } from '../jql-editor';
|
|
|
23
24
|
import { buildJQL } from './buildJQL';
|
|
24
25
|
import { modeSwitcherMessages } from './messages';
|
|
25
26
|
var styles = {
|
|
27
|
+
basicSearchInputBoxStyles: "_1bsb1osq",
|
|
26
28
|
basicSearchInputContainerStyles: "_16jlkb7n",
|
|
27
|
-
|
|
29
|
+
inputContainerStylesOld: "_4cvr1q9y _1e0c1txw _1tket9kd",
|
|
30
|
+
inputContainerStyles: "_4cvr1y6m _1e0c1txw _1tket9kd",
|
|
31
|
+
modeSwitcherContainerStyles: "_19pk1b66"
|
|
28
32
|
};
|
|
29
33
|
export var DEFAULT_JQL_QUERY = 'ORDER BY created DESC';
|
|
30
34
|
export var ALLOWED_ORDER_BY_KEYS = ['key', 'summary', 'assignee', 'status', 'created'];
|
|
@@ -196,9 +200,51 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
|
|
|
196
200
|
setCloudId(currentCloudId);
|
|
197
201
|
}
|
|
198
202
|
}, [currentCloudId, cloudId, setSearchBarJql]);
|
|
203
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
204
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
205
|
+
"data-testid": "jira-search-container",
|
|
206
|
+
className: ax([styles.inputContainerStyles])
|
|
207
|
+
}, currentSearchMethod === 'basic' && /*#__PURE__*/React.createElement(Box, {
|
|
208
|
+
xcss: styles.basicSearchInputBoxStyles
|
|
209
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
210
|
+
alignItems: "center",
|
|
211
|
+
xcss: styles.basicSearchInputContainerStyles
|
|
212
|
+
}, /*#__PURE__*/React.createElement(BasicSearchInput, {
|
|
213
|
+
isSearching: isSearching,
|
|
214
|
+
onChange: handleBasicSearchChange,
|
|
215
|
+
onSearch: handleSearch,
|
|
216
|
+
searchTerm: basicSearchTerm,
|
|
217
|
+
placeholder: basicSearchInputMessages.basicTextSearchLabel,
|
|
218
|
+
ariaLabel: basicSearchInputMessages.basicTextSearchLabel,
|
|
219
|
+
testId: "jira-datasource-modal",
|
|
220
|
+
fullWidth: false
|
|
221
|
+
}), /*#__PURE__*/React.createElement(BasicFilters, {
|
|
222
|
+
jql: searchBarJql,
|
|
223
|
+
site: site,
|
|
224
|
+
onChange: handleBasicFilterSelectionChange,
|
|
225
|
+
selections: filterSelections,
|
|
226
|
+
isJQLHydrating: basicFilterHydrationStatus === 'loading'
|
|
227
|
+
})), currentSearchMethod === 'basic' && /*#__PURE__*/React.createElement(Text, {
|
|
228
|
+
size: "small",
|
|
229
|
+
color: "color.text.subtlest",
|
|
230
|
+
testId: "jira-search-placeholder"
|
|
231
|
+
}, formatMessage(basicSearchInputMessages.basicTextSearchLabel))), currentSearchMethod === 'jql' && /*#__PURE__*/React.createElement(JiraJQLEditor, {
|
|
232
|
+
cloudId: cloudId || '',
|
|
233
|
+
isSearching: isSearching,
|
|
234
|
+
onChange: onQueryChange,
|
|
235
|
+
onSearch: handleSearch,
|
|
236
|
+
query: searchBarJql
|
|
237
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
238
|
+
xcss: styles.modeSwitcherContainerStyles
|
|
239
|
+
}, /*#__PURE__*/React.createElement(ModeSwitcher, {
|
|
240
|
+
onOptionValueChange: onSearchMethodChange,
|
|
241
|
+
selectedOptionValue: currentSearchMethod,
|
|
242
|
+
options: modeSwitcherOptions
|
|
243
|
+
})));
|
|
244
|
+
}
|
|
199
245
|
return /*#__PURE__*/React.createElement("div", {
|
|
200
246
|
"data-testid": "jira-search-container",
|
|
201
|
-
className: ax([styles.
|
|
247
|
+
className: ax([styles.inputContainerStylesOld])
|
|
202
248
|
}, currentSearchMethod === 'basic' && /*#__PURE__*/React.createElement(Flex, {
|
|
203
249
|
alignItems: "center",
|
|
204
250
|
xcss: styles.basicSearchInputContainerStyles
|
|
@@ -208,6 +254,7 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
|
|
|
208
254
|
onSearch: handleSearch,
|
|
209
255
|
searchTerm: basicSearchTerm,
|
|
210
256
|
placeholder: basicSearchInputMessages.basicTextSearchLabel,
|
|
257
|
+
ariaLabel: basicSearchInputMessages.basicTextSearchLabel,
|
|
211
258
|
testId: "jira-datasource-modal",
|
|
212
259
|
fullWidth: false
|
|
213
260
|
}), /*#__PURE__*/React.createElement(BasicFilters, {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* This function is used to switch between two components based on a feature flag
|
|
4
|
+
* @param ComponentOld
|
|
5
|
+
* @param ComponentNext
|
|
6
|
+
* @param featureFlagFn function that returns a boolean value to switch to the next component, e.g. () => fg('my_flag_name')
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const withFeatureFlaggedComponent: <P extends object>(ComponentOld: React.ComponentType<P>, ComponentNext: React.ComponentType<P>, featureFlagFn: () => boolean) => (props: P) => React.JSX.Element;
|
|
@@ -12,6 +12,11 @@ export interface BasicSearchInputProps {
|
|
|
12
12
|
searchTerm: string;
|
|
13
13
|
fullWidth?: boolean;
|
|
14
14
|
testId: string;
|
|
15
|
+
/**
|
|
16
|
+
* @private
|
|
17
|
+
* @deprecated Remove on FG clean up of `platform-linking-visual-refresh-sllv`
|
|
18
|
+
*/
|
|
15
19
|
placeholder: MessageDescriptor;
|
|
20
|
+
ariaLabel: MessageDescriptor;
|
|
16
21
|
}
|
|
17
|
-
export declare const BasicSearchInput: ({ isDisabled, isSearching, onChange, onSearch, searchTerm, fullWidth, testId, placeholder, }: BasicSearchInputProps) => JSX.Element;
|
|
22
|
+
export declare const BasicSearchInput: ({ isDisabled, isSearching, onChange, onSearch, searchTerm, fullWidth, testId, placeholder, ariaLabel, }: BasicSearchInputProps) => JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ControlProps } from '@atlaskit/select';
|
|
3
3
|
import { type SelectOption } from './types';
|
|
4
|
+
export declare const CustomControlOld: ({ children, ...innerProps }: ControlProps<SelectOption, true>) => React.JSX.Element;
|
|
4
5
|
export declare const CustomControl: ({ children, ...innerProps }: ControlProps<SelectOption, true>) => React.JSX.Element;
|
|
5
|
-
|
|
6
|
+
declare const _default: (props: ControlProps<SelectOption, true>) => React.JSX.Element;
|
|
7
|
+
export default _default;
|
|
@@ -4,6 +4,11 @@ import { type CustomMenuListProps } from './menu-list';
|
|
|
4
4
|
import { type SelectOption } from './types';
|
|
5
5
|
export interface FilterPopupSelectProps {
|
|
6
6
|
buttonLabel: string;
|
|
7
|
+
/**
|
|
8
|
+
* This attribute is only consumed and used when the fg
|
|
9
|
+
* `platform-linking-visual-refresh-sllv` is enabled
|
|
10
|
+
*/
|
|
11
|
+
searchPlaceholder?: string;
|
|
7
12
|
totalCount?: number;
|
|
8
13
|
filterName: string;
|
|
9
14
|
isDisabled: boolean;
|
|
@@ -19,4 +24,4 @@ export interface FilterPopupSelectProps {
|
|
|
19
24
|
onMenuOpen?: () => void;
|
|
20
25
|
onMenuClose?: () => void;
|
|
21
26
|
}
|
|
22
|
-
export declare const FilterPopupSelect: ({ filterName, totalCount, status, buttonLabel, showLoading, isDisabled, showHydrating, shouldShowFooter, menuListProps, options, selectedOptions, onSelectionChange, onInputChange, onMenuClose, onMenuOpen, }: FilterPopupSelectProps) => React.JSX.Element;
|
|
27
|
+
export declare const FilterPopupSelect: ({ filterName, totalCount, status, buttonLabel, searchPlaceholder, showLoading, isDisabled, showHydrating, shouldShowFooter, menuListProps, options, selectedOptions, onSelectionChange, onInputChange, onMenuClose, onMenuOpen, }: FilterPopupSelectProps) => React.JSX.Element;
|
|
@@ -9,11 +9,31 @@ export declare const asyncPopupSelectMessages: {
|
|
|
9
9
|
defaultMessage: string;
|
|
10
10
|
description: string;
|
|
11
11
|
};
|
|
12
|
+
noOptionsMessageOld: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
noOptionsDescription: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
12
22
|
errorMessage: {
|
|
13
23
|
id: string;
|
|
14
24
|
defaultMessage: string;
|
|
15
25
|
description: string;
|
|
16
26
|
};
|
|
27
|
+
errorMessageOld: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
errorDescription: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
17
37
|
showMoreMessage: {
|
|
18
38
|
id: string;
|
|
19
39
|
defaultMessage: string;
|
|
@@ -3,7 +3,12 @@ import { type MessageDescriptor } from 'react-intl-next';
|
|
|
3
3
|
interface CustomSelectMessageProps {
|
|
4
4
|
icon: React.ReactNode;
|
|
5
5
|
message: MessageDescriptor;
|
|
6
|
+
/**
|
|
7
|
+
* This attribute is only consumed when the fg `platform-linking-visual-refresh-sllv` is
|
|
8
|
+
* enabled.
|
|
9
|
+
*/
|
|
10
|
+
description?: MessageDescriptor;
|
|
6
11
|
testId: string;
|
|
7
12
|
}
|
|
8
|
-
declare const CustomSelectMessage: ({ icon, message, testId }: CustomSelectMessageProps) => React.JSX.Element;
|
|
13
|
+
declare const CustomSelectMessage: ({ icon, message, description, testId }: CustomSelectMessageProps) => React.JSX.Element;
|
|
9
14
|
export default CustomSelectMessage;
|