@jetbrains/ring-ui-built 7.0.62 → 7.0.64
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/components/_helpers/card.js +4 -3
- package/components/_helpers/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +4 -4
- package/components/_helpers/input.js +8 -8
- package/components/_helpers/{select__filter.js → select-filter.js} +1 -1
- package/components/_helpers/services-link.js +3 -3
- package/components/_helpers/theme.js +2 -2
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +9 -8
- package/components/alert/container.d.ts +1 -1
- package/components/alert/container.js +2 -2
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +4 -4
- package/components/analytics/{analytics__custom-plugin.d.ts → analytics-custom-plugin.d.ts} +1 -1
- package/components/analytics/{analytics__custom-plugin.js → analytics-custom-plugin.js} +2 -2
- package/components/auth/{auth__core.d.ts → auth-core.d.ts} +9 -8
- package/components/auth/{auth__core.js → auth-core.js} +18 -22
- package/components/auth/auth.d.ts +2 -2
- package/components/auth/auth.js +8 -8
- package/components/auth/background-flow.d.ts +2 -2
- package/components/auth/background-flow.js +1 -3
- package/components/auth/down-notification.js +6 -6
- package/components/auth/iframe-flow.d.ts +3 -3
- package/components/auth/iframe-flow.js +9 -11
- package/components/auth/request-builder.d.ts +2 -1
- package/components/auth/request-builder.js +1 -2
- package/components/auth/storage.d.ts +3 -3
- package/components/auth/storage.js +9 -11
- package/components/auth/token-validator.d.ts +2 -1
- package/components/auth/token-validator.js +12 -3
- package/components/auth/window-flow.d.ts +3 -3
- package/components/auth/window-flow.js +5 -7
- package/components/auth-dialog/auth-dialog.js +9 -9
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +5 -5
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.figma.js +1 -2
- package/components/avatar/avatar.js +16 -17
- package/components/avatar/fallback-avatar.js +17 -18
- package/components/avatar-stack/avatar-stack.d.ts +3 -3
- package/components/avatar-stack/avatar-stack.figma.js +1 -2
- package/components/avatar-stack/avatar-stack.js +12 -12
- package/components/banner/banner.js +4 -4
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.figma.js +1 -2
- package/components/button/{button__classes.d.ts → button.classes.d.ts} +1 -1
- package/components/button/button.classes.js +2 -0
- package/components/button/button.d.ts +4 -4
- package/components/button/button.figma.js +1 -2
- package/components/button/button.js +9 -9
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/caret/caret.js +24 -17
- package/components/checkbox/checkbox-group.figma.js +1 -2
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.figma.js +1 -2
- package/components/checkbox/checkbox.js +8 -8
- package/components/clipboard/clipboard.js +8 -8
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +3 -3
- package/components/collapse/collapse-content.d.ts +3 -3
- package/components/collapse/collapse-control.d.ts +2 -2
- package/components/collapse/collapse.d.ts +3 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +8 -8
- package/components/confirm-service/confirm-service.d.ts +3 -3
- package/components/confirm-service/confirm-service.js +5 -5
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +2 -2
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/contenteditable/contenteditable.js +2 -1
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-label/control-label.d.ts +1 -1
- package/components/data-list/data-list.d.ts +5 -5
- package/components/data-list/data-list.js +8 -8
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +24 -24
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +9 -9
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +8 -1
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +3 -3
- package/components/date-picker/consts.d.ts +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +7 -7
- package/components/date-picker/date-picker.d.ts +5 -5
- package/components/date-picker/date-picker.js +27 -22
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -8
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +4 -4
- package/components/date-picker/formats.js +1 -0
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +2 -2
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +2 -2
- package/components/dialog/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +1 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +15 -15
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +4 -4
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +6 -6
- package/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/components/dropdown-menu/dropdown-menu.js +11 -11
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +8 -7
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.figma.js +1 -2
- package/components/error-bubble/error-bubble.js +2 -2
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +3 -3
- package/components/footer/footer.d.ts +1 -1
- package/components/footer/footer.js +2 -2
- package/components/global/compose-refs.d.ts +2 -0
- package/components/global/compose-refs.js +19 -0
- package/components/global/composeRefs.d.ts +6 -2
- package/components/global/composeRefs.js +6 -16
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/dom.d.ts +1 -1
- package/components/global/dom.js +2 -3
- package/components/global/focus-sensor-hoc.d.ts +1 -1
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/fuzzy-highlight.d.ts +2 -2
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/memoize.js +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/global/rerender-hoc.js +2 -2
- package/components/global/theme.d.ts +1 -1
- package/components/global/url.js +3 -3
- package/components/global/use-event-callback.js +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +1 -1
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +1 -1
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +1 -1
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +1 -1
- package/components/header/header-icon.d.ts +2 -2
- package/components/header/header-icon.js +4 -4
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +17 -17
- package/components/header/links.d.ts +1 -1
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +2 -2
- package/components/header/profile.d.ts +5 -5
- package/components/header/profile.js +14 -14
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +7 -7
- package/components/header/smart-profile.d.ts +3 -3
- package/components/header/smart-profile.js +25 -25
- package/components/header/smart-services.d.ts +3 -3
- package/components/header/smart-services.js +4 -4
- package/components/header/tray.d.ts +1 -1
- package/components/heading/heading.d.ts +1 -1
- package/components/http/http.mock.d.ts +1 -1
- package/components/hub-source/{hub-source__user.d.ts → hub-source-user.d.ts} +3 -2
- package/components/hub-source/{hub-source__users-groups.d.ts → hub-source-users-groups.d.ts} +3 -2
- package/components/hub-source/hub-source.d.ts +2 -2
- package/components/icon/{icon__svg.d.ts → icon-svg.d.ts} +1 -1
- package/components/icon/{icon__svg.js → icon-svg.js} +1 -1
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +3 -3
- package/components/icon/index.js +2 -2
- package/components/input/input.d.ts +3 -3
- package/components/input/input.figma.js +1 -2
- package/components/input/input.js +5 -5
- package/components/island/adaptive-island-hoc.d.ts +1 -1
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +2 -2
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +4 -4
- package/components/island/island.d.ts +1 -1
- package/components/link/clickable-link.d.ts +12 -0
- package/components/link/clickable-link.js +51 -0
- package/components/link/clickableLink.d.ts +11 -12
- package/components/link/clickableLink.js +5 -50
- package/components/link/link.d.ts +2 -2
- package/components/link/link.js +3 -3
- package/components/list/consts.d.ts +4 -5
- package/components/list/{list__custom.d.ts → list-custom.d.ts} +1 -1
- package/components/list/{list__custom.js → list-custom.js} +1 -1
- package/components/list/{list__hint.d.ts → list-hint.d.ts} +1 -1
- package/components/list/{list__hint.js → list-hint.js} +1 -1
- package/components/list/{list__item.d.ts → list-item.d.ts} +2 -2
- package/components/list/{list__item.js → list-item.js} +10 -9
- package/components/list/{list__separator.d.ts → list-separator.d.ts} +1 -1
- package/components/list/{list__separator.js → list-separator.js} +1 -1
- package/components/list/{list__title.d.ts → list-title.d.ts} +1 -1
- package/components/list/{list__title.js → list-title.js} +3 -3
- package/components/list/{list__users-groups-source.d.ts → list-users-groups-source.d.ts} +3 -2
- package/components/list/{list__users-groups-source.js → list-users-groups-source.js} +11 -11
- package/components/list/{list__classes.d.ts → list.classes.d.ts} +1 -1
- package/components/list/list.d.ts +7 -7
- package/components/list/list.js +36 -35
- package/components/loader/{loader__core.js → loader-core.js} +3 -2
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +9 -9
- package/components/login-dialog/service.d.ts +1 -1
- package/components/login-dialog/service.js +6 -6
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.d.ts +4 -4
- package/components/message/message.js +7 -7
- package/components/old-browsers-message/old-browsers-message.js +1 -1
- package/components/pager/pager.d.ts +2 -2
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +1 -1
- package/components/permissions/{permissions__cache.js → permissions-cache.js} +4 -4
- package/components/permissions/permissions.d.ts +2 -2
- package/components/permissions/permissions.js +2 -3
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +4 -4
- package/components/popup/popup.target.d.ts +1 -1
- package/components/popup/position-css.js +2 -4
- package/components/popup/position.js +10 -9
- package/components/popup-menu/popup-menu.d.ts +4 -4
- package/components/popup-menu/popup-menu.js +10 -10
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/{query-assist__suggestions.d.ts → query-assist-suggestions.d.ts} +1 -1
- package/components/query-assist/{query-assist__suggestions.js → query-assist-suggestions.js} +11 -11
- package/components/query-assist/query-assist.d.ts +4 -4
- package/components/query-assist/query-assist.js +30 -30
- package/components/radio/{radio__item.d.ts → radio-item.d.ts} +1 -1
- package/components/radio/{radio__item.js → radio-item.js} +3 -3
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +1 -1
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/{select__filter.d.ts → select-filter.d.ts} +2 -2
- package/components/select/{select__filter.js → select-filter.js} +12 -12
- package/components/select/{select__popup.d.ts → select-popup.d.ts} +8 -8
- package/components/select/{select__popup.js → select-popup.js} +21 -19
- package/components/select/select.d.ts +6 -6
- package/components/select/select.js +44 -42
- package/components/shortcuts/core.js +4 -4
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/slider/slider.d.ts +5 -5
- package/components/slider/slider.js +7 -6
- package/components/slider/slider.utils.d.ts +1 -1
- package/components/slider/slider.utils.js +2 -3
- package/components/storage/{storage__local.d.ts → storage-local.d.ts} +1 -1
- package/components/storage/{storage__local.js → storage-local.js} +11 -11
- package/components/storage/storage.d.ts +1 -1
- package/components/storage/storage.js +5 -5
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/tab-trap.js +1 -1
- package/components/table/cell.d.ts +1 -1
- package/components/table/disable-hover-hoc.d.ts +1 -1
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +3 -3
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +7 -7
- package/components/table/multitable.d.ts +3 -3
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -5
- package/components/table/row.d.ts +4 -4
- package/components/table/row.js +5 -5
- package/components/table/selection-adapter.d.ts +2 -1
- package/components/table/selection-shortcuts-hoc.d.ts +4 -3
- package/components/table/selection-shortcuts-hoc.js +1 -2
- package/components/table/selection.js +5 -6
- package/components/table/simple-table.d.ts +2 -2
- package/components/table/simple-table.js +6 -6
- package/components/table/smart-table.d.ts +2 -2
- package/components/table/smart-table.js +6 -6
- package/components/table/table.d.ts +7 -7
- package/components/table/table.js +11 -11
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +12 -12
- package/components/tabs/collapsible-tab.d.ts +2 -2
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +18 -18
- package/components/tabs/custom-item.d.ts +2 -2
- package/components/tabs/dumb-tabs.d.ts +3 -3
- package/components/tabs/dumb-tabs.js +14 -14
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +11 -11
- package/components/tabs/tab-link.d.ts +2 -2
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tabs.js +11 -11
- package/components/tag/tag.d.ts +5 -3
- package/components/tag/tag.js +14 -12
- package/components/tags-input/tags-input.d.ts +8 -8
- package/components/tags-input/tags-input.js +26 -20
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +5 -5
- package/components/text/text.d.ts +1 -1
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +2 -2
- package/components/tooltip/tooltip.d.ts +2 -2
- package/components/tooltip/tooltip.js +1 -1
- package/components/upload/upload.d.ts +3 -3
- package/components/upload/upload.js +7 -7
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/service.js +10 -11
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +10 -10
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +4 -4
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +4 -4
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.js +4 -4
- package/package.json +1 -1
- package/components/button/button__classes.js +0 -2
- /package/components/_helpers/{button__classes.js → button.classes.js} +0 -0
- /package/components/_helpers/{icon__svg.js → icon-svg.js} +0 -0
- /package/components/_helpers/{query-assist__suggestions.js → query-assist-suggestions.js} +0 -0
- /package/components/dialog/{dialog__body-scroll-preventer.d.ts → dialog-body-scroll-preventer.d.ts} +0 -0
- /package/components/global/{variables.d.ts → variables.interface.d.ts} +0 -0
- /package/components/global/{variables.js → variables.interface.js} +0 -0
- /package/components/hub-source/{hub-source__user.js → hub-source-user.js} +0 -0
- /package/components/hub-source/{hub-source__users-groups.js → hub-source-users-groups.js} +0 -0
- /package/components/icon/{icon__constants.d.ts → icon.constants.d.ts} +0 -0
- /package/components/icon/{icon__constants.js → icon.constants.js} +0 -0
- /package/components/list/{list__classes.js → list.classes.js} +0 -0
- /package/components/loader/{loader__core.d.ts → loader-core.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.d.ts → old-browsers-message-stop.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.js → old-browsers-message-stop.js} +0 -0
- /package/components/permissions/{permissions__cache.d.ts → permissions-cache.d.ts} +0 -0
|
@@ -24,7 +24,7 @@ import Icon from '../icon/icon.js';
|
|
|
24
24
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
|
25
25
|
import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
|
26
26
|
import { I18nContext } from '../i18n/i18n-context.js';
|
|
27
|
-
import { Q as QueryAssistSuggestions, s as styles } from '../_helpers/query-
|
|
27
|
+
import { Q as QueryAssistSuggestions, s as styles } from '../_helpers/query-assist-suggestions.js';
|
|
28
28
|
import { ControlsHeight } from '../global/configuration.js';
|
|
29
29
|
import 'react-dom/server';
|
|
30
30
|
import '../popup/popup.js';
|
|
@@ -46,7 +46,7 @@ import 'util-deprecate';
|
|
|
46
46
|
import 'memoize-one';
|
|
47
47
|
import '../global/memoize.js';
|
|
48
48
|
import '../global/create-stateful-context.js';
|
|
49
|
-
import '../list/
|
|
49
|
+
import '../list/list-item.js';
|
|
50
50
|
import '../avatar/avatar.js';
|
|
51
51
|
import '../global/url.js';
|
|
52
52
|
import '../_helpers/avatar-info.js';
|
|
@@ -55,28 +55,28 @@ import '../avatar/fallback-avatar.js';
|
|
|
55
55
|
import '../checkbox/checkbox.js';
|
|
56
56
|
import '@jetbrains/icons/checkmark-12px';
|
|
57
57
|
import '@jetbrains/icons/remove-12px';
|
|
58
|
-
import '../global/
|
|
58
|
+
import '../global/compose-refs.js';
|
|
59
59
|
import '../control-help/control-help.js';
|
|
60
60
|
import '../link/link.js';
|
|
61
|
-
import '../link/
|
|
61
|
+
import '../link/clickable-link.js';
|
|
62
62
|
import '../_helpers/link.js';
|
|
63
63
|
import '../_helpers/list.js';
|
|
64
64
|
import '../list/consts.js';
|
|
65
|
-
import '../list/
|
|
66
|
-
import '../icon/
|
|
67
|
-
import '../_helpers/
|
|
68
|
-
import '../list/
|
|
65
|
+
import '../list/list.classes.js';
|
|
66
|
+
import '../icon/icon.constants.js';
|
|
67
|
+
import '../_helpers/icon-svg.js';
|
|
68
|
+
import '../list/list-custom.js';
|
|
69
69
|
import '../global/get-event-key.js';
|
|
70
|
-
import '../list/
|
|
71
|
-
import '../list/
|
|
72
|
-
import '../list/
|
|
70
|
+
import '../list/list-title.js';
|
|
71
|
+
import '../list/list-separator.js';
|
|
72
|
+
import '../list/list-hint.js';
|
|
73
73
|
import '../shortcuts/core.js';
|
|
74
74
|
import 'combokeys';
|
|
75
75
|
import '../global/sniffer.js';
|
|
76
76
|
import 'sniffr';
|
|
77
77
|
import '@jetbrains/icons/chevron-down';
|
|
78
78
|
import '@jetbrains/icons/chevron-12px-down';
|
|
79
|
-
import '../_helpers/
|
|
79
|
+
import '../_helpers/button.classes.js';
|
|
80
80
|
import '../control-label/control-label.js';
|
|
81
81
|
import '../i18n/i18n.js';
|
|
82
82
|
|
|
@@ -189,9 +189,10 @@ class QueryAssist extends Component {
|
|
|
189
189
|
_defineProperty(this, "nodeRef", node => {
|
|
190
190
|
this.node = node;
|
|
191
191
|
});
|
|
192
|
+
// eslint-disable-next-line complexity
|
|
192
193
|
_defineProperty(this, "setCaretPosition", function () {
|
|
193
194
|
let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
194
|
-
const queryLength = _this.immediateState.query
|
|
195
|
+
const queryLength = _this.immediateState.query ? _this.immediateState.query.length : 0;
|
|
195
196
|
const newCaretPosition = _this.immediateState.caret < queryLength ? _this.immediateState.caret : queryLength;
|
|
196
197
|
if (params.fromContentEditable) {
|
|
197
198
|
_this.immediateState.selection = _this.immediateState.selection ? _this.immediateState.selection : _this.state.query && _this.state.query.length || null;
|
|
@@ -609,15 +610,15 @@ class QueryAssist extends Component {
|
|
|
609
610
|
}
|
|
610
611
|
}
|
|
611
612
|
scrollInput() {
|
|
612
|
-
var _this$caret8, _this$input, _this$input2, _this$input3;
|
|
613
|
+
var _this$caret8, _this$input, _this$input2, _this$input3, _this$input4;
|
|
613
614
|
const caretOffset = (_this$caret8 = this.caret) === null || _this$caret8 === void 0 ? void 0 : _this$caret8.getOffset();
|
|
614
|
-
if (((_this$input = this.input) === null || _this$input === void 0 ? void 0 : _this$input.clientWidth) !== ((_this$input2 = this.input) === null || _this$input2 === void 0 ? void 0 : _this$input2.scrollWidth) && caretOffset
|
|
615
|
+
if (((_this$input = this.input) === null || _this$input === void 0 ? void 0 : _this$input.clientWidth) !== ((_this$input2 = this.input) === null || _this$input2 === void 0 ? void 0 : _this$input2.scrollWidth) && caretOffset && (_this$input3 = this.input) !== null && _this$input3 !== void 0 && _this$input3.clientWidth && caretOffset > ((_this$input4 = this.input) === null || _this$input4 === void 0 ? void 0 : _this$input4.clientWidth)) {
|
|
615
616
|
this.input.scrollLeft += caretOffset;
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
619
|
getQuery() {
|
|
619
|
-
var _this$input$textConte, _this$
|
|
620
|
-
return (_this$input$textConte = (_this$
|
|
620
|
+
var _this$input$textConte, _this$input5;
|
|
621
|
+
return (_this$input$textConte = (_this$input5 = this.input) === null || _this$input5 === void 0 || (_this$input5 = _this$input5.textContent) === null || _this$input5 === void 0 ? void 0 : _this$input5.replace(/\s/g, ' ')) !== null && _this$input$textConte !== void 0 ? _this$input$textConte : '';
|
|
621
622
|
}
|
|
622
623
|
isRenderingGlassOrLoader() {
|
|
623
624
|
const renderLoader = this.props.loader !== false && this.state.loading;
|
|
@@ -679,9 +680,8 @@ class QueryAssist extends Component {
|
|
|
679
680
|
// Do not compensate caret in the beginning of field
|
|
680
681
|
if (caret === 0) {
|
|
681
682
|
return minOffset;
|
|
682
|
-
} else {
|
|
683
|
-
offset = caret;
|
|
684
683
|
}
|
|
684
|
+
offset = caret;
|
|
685
685
|
}
|
|
686
686
|
const result = offset - POPUP_COMPENSATION;
|
|
687
687
|
return result < minOffset ? minOffset : result;
|
|
@@ -801,7 +801,7 @@ class QueryAssist extends Component {
|
|
|
801
801
|
title: (_this$props$translati = (_this$props$translati2 = this.props.translations) === null || _this$props$translati2 === void 0 ? void 0 : _this$props$translati2.clearTitle) !== null && _this$props$translati !== void 0 ? _this$props$translati : translate('clearTitle'),
|
|
802
802
|
ref: this.clearRef,
|
|
803
803
|
onClick: this.clearQuery,
|
|
804
|
-
"data-test":
|
|
804
|
+
"data-test": 'query-assist-clear-icon'
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
}, 'clearAction'));
|
|
@@ -851,7 +851,7 @@ class QueryAssist extends Component {
|
|
|
851
851
|
return jsxs("div", {
|
|
852
852
|
"data-test": joinDataTestAttributes('ring-query-assist', dataTest),
|
|
853
853
|
className: containerClasses,
|
|
854
|
-
role:
|
|
854
|
+
role: 'presentation',
|
|
855
855
|
ref: this.nodeRef,
|
|
856
856
|
children: [this.state.shortcuts && jsx(Shortcuts, {
|
|
857
857
|
map: this.shortcutsMap,
|
|
@@ -861,7 +861,7 @@ class QueryAssist extends Component {
|
|
|
861
861
|
className: styles.icon,
|
|
862
862
|
title: (_translations$searchT = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT !== void 0 ? _translations$searchT : translate('searchTitle'),
|
|
863
863
|
ref: this.glassRef,
|
|
864
|
-
"data-test":
|
|
864
|
+
"data-test": 'query-assist-search-icon'
|
|
865
865
|
}), renderLoader && jsx("div", {
|
|
866
866
|
className: classNames(styles.icon, styles.loader, {
|
|
867
867
|
[styles.loaderOnTheRight]: !glass && !huge,
|
|
@@ -872,7 +872,7 @@ class QueryAssist extends Component {
|
|
|
872
872
|
}), jsx(ContentEditable, {
|
|
873
873
|
"aria-label": (_translations$searchT2 = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT2 !== void 0 ? _translations$searchT2 : translate('searchTitle'),
|
|
874
874
|
className: inputClasses,
|
|
875
|
-
"data-test":
|
|
875
|
+
"data-test": 'ring-query-assist-input',
|
|
876
876
|
inputRef: this.inputRef,
|
|
877
877
|
disabled: this.props.disabled,
|
|
878
878
|
onComponentUpdate: () => this.setCaretPosition({
|
|
@@ -887,21 +887,21 @@ class QueryAssist extends Component {
|
|
|
887
887
|
onKeyUp: this.handleInput,
|
|
888
888
|
onKeyDown: this.handleEnter,
|
|
889
889
|
onPaste: this.handlePaste,
|
|
890
|
-
spellCheck:
|
|
890
|
+
spellCheck: 'false',
|
|
891
891
|
children: this.state.query && jsx("span", {
|
|
892
892
|
children: this.renderQuery()
|
|
893
893
|
})
|
|
894
894
|
}), renderPlaceholder && jsx("button", {
|
|
895
|
-
type:
|
|
895
|
+
type: 'button',
|
|
896
896
|
className: placeholderStyles,
|
|
897
897
|
ref: this.placeholderRef,
|
|
898
898
|
onClick: this.handleCaretMove,
|
|
899
|
-
"data-test":
|
|
899
|
+
"data-test": 'query-assist-placeholder',
|
|
900
900
|
disabled: this.props.disabled,
|
|
901
901
|
tabIndex: -1,
|
|
902
902
|
children: this.props.placeholder
|
|
903
903
|
}), actions.length ? jsx("div", {
|
|
904
|
-
"data-test":
|
|
904
|
+
"data-test": 'ring-query-assist-actions',
|
|
905
905
|
className: styles.actions,
|
|
906
906
|
children: actions
|
|
907
907
|
}) : null, jsx(PopupMenu, {
|
|
@@ -914,7 +914,7 @@ class QueryAssist extends Component {
|
|
|
914
914
|
className: this.props.popupClassName,
|
|
915
915
|
directions: [PopupMenu.PopupProps.Directions.BOTTOM_RIGHT],
|
|
916
916
|
data: useCustomItemRender ? this.state.suggestions : this.renderSuggestions(),
|
|
917
|
-
"data-test":
|
|
917
|
+
"data-test": 'ring-query-assist-popup',
|
|
918
918
|
hint: this.props.hint,
|
|
919
919
|
shortcutsMap: this.listShortcutsMap,
|
|
920
920
|
hintOnSelection: this.props.hintOnSelection,
|
|
@@ -925,14 +925,14 @@ class QueryAssist extends Component {
|
|
|
925
925
|
onSelect: item => this.handleComplete(item)
|
|
926
926
|
}), glass && huge && jsx("div", {
|
|
927
927
|
className: styles.rightSearchButton,
|
|
928
|
-
"data-test":
|
|
928
|
+
"data-test": 'query-assist-search-button',
|
|
929
929
|
children: jsx(Icon, {
|
|
930
930
|
glyph: searchIcon,
|
|
931
931
|
className: styles.rightSearchIcon,
|
|
932
932
|
title: (_translations$searchT3 = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT3 !== void 0 ? _translations$searchT3 : translate('searchTitle'),
|
|
933
933
|
onClick: this.handleApply,
|
|
934
934
|
ref: this.glassRef,
|
|
935
|
-
"data-test":
|
|
935
|
+
"data-test": 'query-assist-search-icon'
|
|
936
936
|
})
|
|
937
937
|
})]
|
|
938
938
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, InputHTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { Component, type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
3
|
value?: string | undefined;
|
|
4
4
|
onChange?: ((value: string) => void) | null | undefined;
|
|
@@ -42,7 +42,7 @@ class RadioItemInner extends Component {
|
|
|
42
42
|
}, restProps), {}, {
|
|
43
43
|
ref: this.inputRef,
|
|
44
44
|
className: styles.input,
|
|
45
|
-
type:
|
|
45
|
+
type: 'radio'
|
|
46
46
|
})), jsx("span", {
|
|
47
47
|
className: styles.circle
|
|
48
48
|
}), jsxs("span", {
|
|
@@ -65,8 +65,8 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(props, ref) {
|
|
|
65
65
|
return jsx(RadioItemInner, _objectSpread2(_objectSpread2({
|
|
66
66
|
ref: ref
|
|
67
67
|
}, restContext), {}, {
|
|
68
|
-
checked: value
|
|
69
|
-
onChange: onChange
|
|
68
|
+
checked: value ? value === props.value : undefined,
|
|
69
|
+
onChange: onChange ? () => onChange(props.value) : undefined
|
|
70
70
|
}, props));
|
|
71
71
|
}
|
|
72
72
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { RadioProps } from './
|
|
2
|
+
import { type RadioProps } from './radio-item';
|
|
3
3
|
/**
|
|
4
4
|
* @name Radio
|
|
5
5
|
*/
|
|
6
6
|
export default class Radio extends Component<RadioProps> {
|
|
7
|
-
static Item: import("react").ForwardRefExoticComponent<import("./
|
|
7
|
+
static Item: import("react").ForwardRefExoticComponent<import("./radio-item").RadioItemProps & import("react").RefAttributes<import("./radio-item").RadioItemInner>>;
|
|
8
8
|
uid: string;
|
|
9
9
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
}
|
|
@@ -3,7 +3,7 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
import getUID from '../global/get-uid.js';
|
|
6
|
-
import RadioItem, { RadioContext } from './
|
|
6
|
+
import RadioItem, { RadioContext } from './radio-item.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '../control-help/control-help.js';
|
|
9
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
export default function ScrollableSection({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,7 +18,7 @@ function ScrollableSection(_ref) {
|
|
|
18
18
|
const [scrolledToLeft, setScrolledToLeft] = useState(false);
|
|
19
19
|
const ref = useRef(null);
|
|
20
20
|
const calculateScrollPosition = useCallback(() => {
|
|
21
|
-
if (ref.current
|
|
21
|
+
if (ref.current) {
|
|
22
22
|
const {
|
|
23
23
|
scrollTop,
|
|
24
24
|
scrollLeft,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component, RefCallback } from 'react';
|
|
2
|
-
import { InputAttrs } from '../input/input';
|
|
1
|
+
import { Component, type RefCallback } from 'react';
|
|
2
|
+
import { type InputAttrs } from '../input/input';
|
|
3
3
|
declare function noop(): void;
|
|
4
4
|
type SelectFilterProps = InputAttrs & {
|
|
5
5
|
inputRef: RefCallback<HTMLInputElement | HTMLTextAreaElement>;
|
|
@@ -7,24 +7,24 @@ import '../_helpers/input.js';
|
|
|
7
7
|
import '../global/sniffer.js';
|
|
8
8
|
import '../list/list.js';
|
|
9
9
|
import '../i18n/i18n-context.js';
|
|
10
|
-
export { S as default } from '../_helpers/
|
|
10
|
+
export { S as default } from '../_helpers/select-filter.js';
|
|
11
11
|
import '@jetbrains/icons/close-12px';
|
|
12
12
|
import '../button/button.js';
|
|
13
13
|
import '@jetbrains/icons/chevron-down';
|
|
14
14
|
import '@jetbrains/icons/chevron-12px-down';
|
|
15
15
|
import 'util-deprecate';
|
|
16
16
|
import '../icon/icon.js';
|
|
17
|
-
import '../icon/
|
|
18
|
-
import '../_helpers/
|
|
17
|
+
import '../icon/icon.constants.js';
|
|
18
|
+
import '../_helpers/icon-svg.js';
|
|
19
19
|
import 'core-js/modules/es.regexp.exec.js';
|
|
20
20
|
import 'core-js/modules/es.string.replace.js';
|
|
21
21
|
import '../global/memoize.js';
|
|
22
|
-
import '../link/
|
|
22
|
+
import '../link/clickable-link.js';
|
|
23
23
|
import '../global/controls-height.js';
|
|
24
24
|
import '../global/configuration.js';
|
|
25
|
-
import '../_helpers/
|
|
25
|
+
import '../_helpers/button.classes.js';
|
|
26
26
|
import '../global/get-uid.js';
|
|
27
|
-
import '../global/
|
|
27
|
+
import '../global/compose-refs.js';
|
|
28
28
|
import 'memoize-one';
|
|
29
29
|
import '../control-label/control-label.js';
|
|
30
30
|
import '../control-help/control-help.js';
|
|
@@ -42,7 +42,7 @@ import '../shortcuts/shortcuts.js';
|
|
|
42
42
|
import '../shortcuts/core.js';
|
|
43
43
|
import 'combokeys';
|
|
44
44
|
import '../global/create-stateful-context.js';
|
|
45
|
-
import '../list/
|
|
45
|
+
import '../list/list-item.js';
|
|
46
46
|
import '../avatar/avatar.js';
|
|
47
47
|
import '../global/url.js';
|
|
48
48
|
import '../_helpers/avatar-info.js';
|
|
@@ -55,10 +55,10 @@ import '../link/link.js';
|
|
|
55
55
|
import '../_helpers/link.js';
|
|
56
56
|
import '../_helpers/list.js';
|
|
57
57
|
import '../list/consts.js';
|
|
58
|
-
import '../list/
|
|
59
|
-
import '../list/
|
|
58
|
+
import '../list/list.classes.js';
|
|
59
|
+
import '../list/list-custom.js';
|
|
60
60
|
import '../global/get-event-key.js';
|
|
61
|
-
import '../list/
|
|
62
|
-
import '../list/
|
|
63
|
-
import '../list/
|
|
61
|
+
import '../list/list-title.js';
|
|
62
|
+
import '../list/list-separator.js';
|
|
63
|
+
import '../list/list-hint.js';
|
|
64
64
|
import '../i18n/i18n.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description Displays a popup with select's options.
|
|
3
3
|
*/
|
|
4
|
-
import { ComponentType, CSSProperties, PureComponent, ReactNode, Ref, SyntheticEvent } from 'react';
|
|
4
|
+
import { type ComponentType, type CSSProperties, PureComponent, type ReactNode, type Ref, type SyntheticEvent } from 'react';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { IconType } from '../icon/icon';
|
|
6
|
+
import { type IconType } from '../icon/icon';
|
|
7
7
|
import Popup from '../popup/popup';
|
|
8
|
-
import { Directions } from '../popup/position';
|
|
9
|
-
import List, { SelectHandlerParams } from '../list/list';
|
|
8
|
+
import { type Directions } from '../popup/position';
|
|
9
|
+
import List, { type SelectHandlerParams } from '../list/list';
|
|
10
10
|
import Caret from '../caret/caret';
|
|
11
|
-
import { ListDataItem } from '../list/consts';
|
|
12
|
-
import { ShortcutsMap } from '../shortcuts/core';
|
|
13
|
-
import { TagAttrs } from '../tag/tag';
|
|
14
|
-
import { SelectItem } from './select';
|
|
11
|
+
import { type ListDataItem } from '../list/consts';
|
|
12
|
+
import { type ShortcutsMap } from '../shortcuts/core';
|
|
13
|
+
import { type TagAttrs } from '../tag/tag';
|
|
14
|
+
import { type SelectItem } from './select';
|
|
15
15
|
export type FilterFn<T> = (itemToCheck: SelectItem<T>, checkString: string, data: readonly SelectItem<T>[]) => boolean;
|
|
16
16
|
export interface Filter<T = unknown> {
|
|
17
17
|
fn?: FilterFn<T> | null | undefined;
|
|
@@ -21,13 +21,13 @@ import Shortcuts from '../shortcuts/shortcuts.js';
|
|
|
21
21
|
import { Button } from '../button/button.js';
|
|
22
22
|
import Text from '../text/text.js';
|
|
23
23
|
import '../global/controls-height.js';
|
|
24
|
-
import { createComposedRef } from '../global/
|
|
24
|
+
import { createComposedRef } from '../global/compose-refs.js';
|
|
25
25
|
import { DEFAULT_DIRECTIONS } from '../popup/popup.consts.js';
|
|
26
|
-
import { s as styles, S as SelectFilter } from '../_helpers/
|
|
26
|
+
import { s as styles, S as SelectFilter } from '../_helpers/select-filter.js';
|
|
27
27
|
import { ControlsHeight } from '../global/configuration.js';
|
|
28
28
|
import 'util-deprecate';
|
|
29
|
-
import '../icon/
|
|
30
|
-
import '../_helpers/
|
|
29
|
+
import '../icon/icon.constants.js';
|
|
30
|
+
import '../_helpers/icon-svg.js';
|
|
31
31
|
import 'core-js/modules/es.regexp.exec.js';
|
|
32
32
|
import 'core-js/modules/es.string.replace.js';
|
|
33
33
|
import 'react-dom';
|
|
@@ -43,7 +43,7 @@ import 'react-virtualized/dist/es/AutoSizer';
|
|
|
43
43
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
44
44
|
import 'react-virtualized/dist/es/CellMeasurer';
|
|
45
45
|
import '../global/create-stateful-context.js';
|
|
46
|
-
import '../list/
|
|
46
|
+
import '../list/list-item.js';
|
|
47
47
|
import '../avatar/avatar.js';
|
|
48
48
|
import '../global/url.js';
|
|
49
49
|
import '../_helpers/avatar-info.js';
|
|
@@ -54,16 +54,16 @@ import '@jetbrains/icons/checkmark-12px';
|
|
|
54
54
|
import '@jetbrains/icons/remove-12px';
|
|
55
55
|
import '../control-help/control-help.js';
|
|
56
56
|
import '../link/link.js';
|
|
57
|
-
import '../link/
|
|
57
|
+
import '../link/clickable-link.js';
|
|
58
58
|
import '../_helpers/link.js';
|
|
59
59
|
import '../_helpers/list.js';
|
|
60
60
|
import '../list/consts.js';
|
|
61
|
-
import '../list/
|
|
62
|
-
import '../list/
|
|
61
|
+
import '../list/list.classes.js';
|
|
62
|
+
import '../list/list-custom.js';
|
|
63
63
|
import '../global/get-event-key.js';
|
|
64
|
-
import '../list/
|
|
65
|
-
import '../list/
|
|
66
|
-
import '../list/
|
|
64
|
+
import '../list/list-title.js';
|
|
65
|
+
import '../list/list-separator.js';
|
|
66
|
+
import '../list/list-hint.js';
|
|
67
67
|
import '../shortcuts/core.js';
|
|
68
68
|
import 'combokeys';
|
|
69
69
|
import '../global/sniffer.js';
|
|
@@ -72,7 +72,7 @@ import '../tag/tag.js';
|
|
|
72
72
|
import '@jetbrains/icons/close-12px';
|
|
73
73
|
import '@jetbrains/icons/chevron-down';
|
|
74
74
|
import '@jetbrains/icons/chevron-12px-down';
|
|
75
|
-
import '../_helpers/
|
|
75
|
+
import '../_helpers/button.classes.js';
|
|
76
76
|
import '../_helpers/input.js';
|
|
77
77
|
import '../i18n/i18n-context.js';
|
|
78
78
|
import '../i18n/i18n.js';
|
|
@@ -183,7 +183,7 @@ class SelectPopup extends PureComponent {
|
|
|
183
183
|
// render the list would be a better way
|
|
184
184
|
const anchorNode = this.props.anchorElement;
|
|
185
185
|
const containerNode = getPopupContainer(ringPopupTarget) || document.documentElement;
|
|
186
|
-
return anchorNode
|
|
186
|
+
return anchorNode !== null ? Math.min(directions.reduce((maxHeight, direction) => {
|
|
187
187
|
var _maxHeightForDirectio;
|
|
188
188
|
return Math.max(maxHeight, (_maxHeightForDirectio = maxHeightForDirection(direction, anchorNode, getStyles(containerNode).position !== 'static' ? containerNode : null)) !== null && _maxHeightForDirectio !== void 0 ? _maxHeightForDirectio : 0);
|
|
189
189
|
}, minMaxHeight), userDefinedMaxHeight) : userDefinedMaxHeight;
|
|
@@ -234,7 +234,8 @@ class SelectPopup extends PureComponent {
|
|
|
234
234
|
return event.target instanceof Element && event.target.matches('input,textarea');
|
|
235
235
|
}
|
|
236
236
|
handleNavigation(event, navigateLeft) {
|
|
237
|
-
|
|
237
|
+
var _this$caret;
|
|
238
|
+
if (this.isEventTargetFilter(event) && this.caret && Number((_this$caret = this.caret) === null || _this$caret === void 0 ? void 0 : _this$caret.getPosition()) > 0 || !Array.isArray(this.props.selected)) {
|
|
238
239
|
return;
|
|
239
240
|
}
|
|
240
241
|
let newIndex = null;
|
|
@@ -255,6 +256,7 @@ class SelectPopup extends PureComponent {
|
|
|
255
256
|
if (!Array.isArray(this.props.selected)) {
|
|
256
257
|
return;
|
|
257
258
|
}
|
|
259
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
258
260
|
const _tag = tag || this.props.selected.slice(0)[this.props.selected.length - 1];
|
|
259
261
|
if (_tag) {
|
|
260
262
|
this.onListSelect(_tag, event, {
|
|
@@ -267,7 +269,7 @@ class SelectPopup extends PureComponent {
|
|
|
267
269
|
}
|
|
268
270
|
}
|
|
269
271
|
removeSelectedTag() {
|
|
270
|
-
if (Array.isArray(this.props.selected) && this.state.tagsActiveIndex
|
|
272
|
+
if (Array.isArray(this.props.selected) && this.state.tagsActiveIndex !== null && this.state.tagsActiveIndex !== undefined) {
|
|
271
273
|
this.removeTag(this.props.selected[this.state.tagsActiveIndex]);
|
|
272
274
|
return false;
|
|
273
275
|
}
|
|
@@ -303,11 +305,11 @@ class SelectPopup extends PureComponent {
|
|
|
303
305
|
var _this$props$filterIco;
|
|
304
306
|
return jsxs("div", {
|
|
305
307
|
className: styles.filterWrapper,
|
|
306
|
-
"data-test":
|
|
308
|
+
"data-test": 'ring-select-popup-filter',
|
|
307
309
|
children: [!this.props.tags && jsx(Icon, {
|
|
308
310
|
glyph: (_this$props$filterIco = this.props.filterIcon) !== null && _this$props$filterIco !== void 0 ? _this$props$filterIco : searchIcon,
|
|
309
311
|
className: styles.filterIcon,
|
|
310
|
-
"data-test-custom":
|
|
312
|
+
"data-test-custom": 'ring-select-popup-filter-icon'
|
|
311
313
|
}), jsx(FilterWithShortcuts, {
|
|
312
314
|
rgShortcutsOptions: this.state.popupFilterShortcutsOptions,
|
|
313
315
|
rgShortcutsMap: this.popupFilterShortcutsMap,
|
|
@@ -315,7 +317,7 @@ class SelectPopup extends PureComponent {
|
|
|
315
317
|
inputRef: this.composedFilterRef(this.filterRef, this.props.filterRef),
|
|
316
318
|
onBlur: this.popupFilterOnBlur,
|
|
317
319
|
onFocus: this.onFilterFocus,
|
|
318
|
-
className:
|
|
320
|
+
className: 'ring-js-shortcuts',
|
|
319
321
|
inputClassName: classNames({
|
|
320
322
|
[styles.filterWithTagsInput]: this.props.tags
|
|
321
323
|
}),
|
|
@@ -324,7 +326,7 @@ class SelectPopup extends PureComponent {
|
|
|
324
326
|
onChange: this.props.onFilter,
|
|
325
327
|
onClick: this.onClickHandler,
|
|
326
328
|
onClear: this.props.tags ? undefined : this.props.onClear,
|
|
327
|
-
"data-test-custom":
|
|
329
|
+
"data-test-custom": 'ring-select-popup-filter-input',
|
|
328
330
|
listId: this.props.listId,
|
|
329
331
|
enableShortcuts: Object.keys(this.popupFilterShortcutsMap)
|
|
330
332
|
})]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, Component, ComponentType, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback, SyntheticEvent } from 'react';
|
|
1
|
+
import { type ButtonHTMLAttributes, Component, type ComponentType, type CSSProperties, type HTMLAttributes, type ReactNode, type Ref, type RefCallback, type SyntheticEvent } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { SelectHandlerParams } from '../list/list';
|
|
3
|
+
import { type SelectHandlerParams } from '../list/list';
|
|
4
4
|
import { Size } from '../input/input';
|
|
5
|
-
import { LabelType } from '../control-label/control-label';
|
|
6
|
-
import { ListDataItem } from '../list/consts';
|
|
7
|
-
import { Directions } from '../popup/popup.consts';
|
|
5
|
+
import { type LabelType } from '../control-label/control-label';
|
|
6
|
+
import { type ListDataItem } from '../list/consts';
|
|
7
|
+
import { type Directions } from '../popup/popup.consts';
|
|
8
8
|
import { ControlsHeight, ControlsHeightContext } from '../global/controls-height';
|
|
9
|
-
import SelectPopup, { Filter, FilterFn, Multiple, Tags } from './
|
|
9
|
+
import SelectPopup, { type Filter, type FilterFn, type Multiple, type Tags } from './select-popup';
|
|
10
10
|
/**
|
|
11
11
|
* @name Select
|
|
12
12
|
*/
|