@jetbrains/ring-ui-built 7.0.61 → 7.0.63
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 +7 -6
- 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 +7 -6
- package/components/select/select.js +49 -44
- 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 +13 -2
- package/components/tag/tag.js +24 -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 +2 -2
- 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
|
@@ -12,7 +12,7 @@ import getUID from '../global/get-uid.js';
|
|
|
12
12
|
import Link, { linkHOC } from '../link/link.js';
|
|
13
13
|
import { s as styles } from '../_helpers/list.js';
|
|
14
14
|
import { Type } from './consts.js';
|
|
15
|
-
import { getListClasses } from './
|
|
15
|
+
import { getListClasses } from './list.classes.js';
|
|
16
16
|
import { Size } from '../avatar/avatar-size.js';
|
|
17
17
|
import 'util-deprecate';
|
|
18
18
|
import '../global/url.js';
|
|
@@ -24,12 +24,12 @@ import '../_helpers/avatar-info.js';
|
|
|
24
24
|
import '../avatar/fallback-avatar.js';
|
|
25
25
|
import '@jetbrains/icons/checkmark-12px';
|
|
26
26
|
import '@jetbrains/icons/remove-12px';
|
|
27
|
-
import '../global/
|
|
27
|
+
import '../global/compose-refs.js';
|
|
28
28
|
import 'memoize-one';
|
|
29
29
|
import '../control-help/control-help.js';
|
|
30
|
-
import '../icon/
|
|
31
|
-
import '../_helpers/
|
|
32
|
-
import '../link/
|
|
30
|
+
import '../icon/icon.constants.js';
|
|
31
|
+
import '../_helpers/icon-svg.js';
|
|
32
|
+
import '../link/clickable-link.js';
|
|
33
33
|
import '../_helpers/link.js';
|
|
34
34
|
|
|
35
35
|
const _excluded = ["disabled", "checkbox", "avatar", "subavatar", "glyph", "icon", "rightGlyph", "description", "label", "title", "details", "hover", "level", "tabIndex", "onClick", "onCheckboxChange", "onMouseOver", "onMouseDown", "onMouseUp", "rightNodes", "leftNodes", "showGeneratedAvatar", "username", "labelWrapper", "rgItemType", "scrolling", "data-test", "className", "url", "LinkComponent", "compact", "hoverClassName", "children"];
|
|
@@ -47,6 +47,7 @@ class ListItem extends PureComponent {
|
|
|
47
47
|
_defineProperty(this, "stopBubbling", e => e.stopPropagation());
|
|
48
48
|
_defineProperty(this, "_isString", val => typeof val === 'string' || val instanceof String);
|
|
49
49
|
}
|
|
50
|
+
// eslint-disable-next-line complexity
|
|
50
51
|
render() {
|
|
51
52
|
const _this$props = this.props,
|
|
52
53
|
{
|
|
@@ -86,7 +87,7 @@ class ListItem extends PureComponent {
|
|
|
86
87
|
} = _this$props,
|
|
87
88
|
restLinkProps = _objectWithoutProperties(_this$props, _excluded);
|
|
88
89
|
const checkable = checkbox !== undefined;
|
|
89
|
-
const shouldShowGeneratedAvatar = showGeneratedAvatar && username
|
|
90
|
+
const shouldShowGeneratedAvatar = showGeneratedAvatar && !!username;
|
|
90
91
|
const hasLeftNodes = leftNodes || glyph || avatar || shouldShowGeneratedAvatar;
|
|
91
92
|
const showCheckbox = checkable && (checkbox || !hasLeftNodes || hover && !disabled);
|
|
92
93
|
const classes = getListClasses(this.props);
|
|
@@ -116,7 +117,7 @@ class ListItem extends PureComponent {
|
|
|
116
117
|
const labelElement = jsx("span", {
|
|
117
118
|
className: styles.label,
|
|
118
119
|
title: computedTitle,
|
|
119
|
-
"data-test":
|
|
120
|
+
"data-test": 'ring-list-item-label',
|
|
120
121
|
children: label !== null && label !== void 0 ? label : children
|
|
121
122
|
});
|
|
122
123
|
const commonProps = {
|
|
@@ -151,7 +152,7 @@ class ListItem extends PureComponent {
|
|
|
151
152
|
})]
|
|
152
153
|
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description && jsx("span", {
|
|
153
154
|
className: styles.description,
|
|
154
|
-
"data-test":
|
|
155
|
+
"data-test": 'ring-list-item-description',
|
|
155
156
|
children: description
|
|
156
157
|
}), jsxs("div", {
|
|
157
158
|
className: styles.right,
|
|
@@ -189,7 +190,7 @@ class ListItem extends PureComponent {
|
|
|
189
190
|
}), isLink ? jsx(LinkComponentToUse, _objectSpread2(_objectSpread2({
|
|
190
191
|
pseudo: !restLinkProps.href
|
|
191
192
|
}, commonProps), restLinkProps)) : jsx("button", _objectSpread2({
|
|
192
|
-
type:
|
|
193
|
+
type: 'button'
|
|
193
194
|
}, commonProps))]
|
|
194
195
|
});
|
|
195
196
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import { ListDataItemProps } from './consts';
|
|
2
|
+
import { type ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListSeparator<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
4
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import { ListDataItemProps } from './consts';
|
|
2
|
+
import { type ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListTitle<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
4
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
}
|
|
@@ -17,14 +17,14 @@ class ListTitle extends PureComponent {
|
|
|
17
17
|
});
|
|
18
18
|
return jsxs("span", {
|
|
19
19
|
className: classes,
|
|
20
|
-
"data-test":
|
|
20
|
+
"data-test": 'ring-list-title',
|
|
21
21
|
children: [jsx("span", {
|
|
22
22
|
className: classNames(styles.label, styles.text),
|
|
23
|
-
"data-test":
|
|
23
|
+
"data-test": 'ring-list-title-label',
|
|
24
24
|
children: label
|
|
25
25
|
}), jsx("div", {
|
|
26
26
|
className: styles.description,
|
|
27
|
-
"data-test":
|
|
27
|
+
"data-test": 'ring-list-title-description',
|
|
28
28
|
children: description
|
|
29
29
|
})]
|
|
30
30
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import HubSourceUsersGroups, { type HubSourceUsersGroupsOptions, type UserGroup } from '../hub-source/hub-source-users-groups';
|
|
2
|
+
import type Auth from '../auth/auth';
|
|
3
|
+
import type { AuthUser } from '../auth/auth';
|
|
3
4
|
interface ListUsersGroupsSourceOptions extends Partial<HubSourceUsersGroupsOptions> {
|
|
4
5
|
GroupsTitle: string;
|
|
5
6
|
NoGroupsTitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import GroupIcon from '@jetbrains/icons/group';
|
|
4
|
-
import HubSourceUsersGroups from '../hub-source/hub-
|
|
4
|
+
import HubSourceUsersGroups from '../hub-source/hub-source-users-groups.js';
|
|
5
5
|
import List from './list.js';
|
|
6
6
|
import '../hub-source/hub-source.js';
|
|
7
7
|
import 'core-js/modules/es.symbol.description.js';
|
|
@@ -27,7 +27,7 @@ import 'combokeys';
|
|
|
27
27
|
import '../global/sniffer.js';
|
|
28
28
|
import 'sniffr';
|
|
29
29
|
import '../global/create-stateful-context.js';
|
|
30
|
-
import './
|
|
30
|
+
import './list-item.js';
|
|
31
31
|
import '../avatar/avatar.js';
|
|
32
32
|
import '../global/url.js';
|
|
33
33
|
import 'core-js/modules/es.string.replace.js';
|
|
@@ -38,21 +38,21 @@ import '../checkbox/checkbox.js';
|
|
|
38
38
|
import '@jetbrains/icons/checkmark-12px';
|
|
39
39
|
import '@jetbrains/icons/remove-12px';
|
|
40
40
|
import '../icon/icon.js';
|
|
41
|
-
import '../icon/
|
|
42
|
-
import '../_helpers/
|
|
43
|
-
import '../global/
|
|
41
|
+
import '../icon/icon.constants.js';
|
|
42
|
+
import '../_helpers/icon-svg.js';
|
|
43
|
+
import '../global/compose-refs.js';
|
|
44
44
|
import '../control-help/control-help.js';
|
|
45
45
|
import '../link/link.js';
|
|
46
|
-
import '../link/
|
|
46
|
+
import '../link/clickable-link.js';
|
|
47
47
|
import '../_helpers/link.js';
|
|
48
48
|
import '../_helpers/list.js';
|
|
49
49
|
import './consts.js';
|
|
50
|
-
import './
|
|
51
|
-
import './
|
|
50
|
+
import './list.classes.js';
|
|
51
|
+
import './list-custom.js';
|
|
52
52
|
import '../global/get-event-key.js';
|
|
53
|
-
import './
|
|
54
|
-
import './
|
|
55
|
-
import './
|
|
53
|
+
import './list-title.js';
|
|
54
|
+
import './list-separator.js';
|
|
55
|
+
import './list-hint.js';
|
|
56
56
|
|
|
57
57
|
const defaultOptions = {
|
|
58
58
|
GroupsTitle: 'Groups',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ListDataItemProps } from './consts';
|
|
1
|
+
import { type ListDataItemProps } from './consts';
|
|
2
2
|
export declare function getListClasses<T = unknown>({ className, disabled, hover, compact, scrolling, rgItemType, }: Readonly<ListDataItemProps<T>>): string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name List
|
|
3
3
|
*/
|
|
4
|
-
import { Component, ReactNode, SyntheticEvent } from 'react';
|
|
5
|
-
import VirtualizedList, { ListRowProps } from 'react-virtualized/dist/es/List';
|
|
6
|
-
import { Size } from 'react-virtualized/dist/es/AutoSizer';
|
|
7
|
-
import { WindowScrollerChildProps } from 'react-virtualized/dist/es/WindowScroller';
|
|
8
|
-
import { ShortcutsMap } from '../shortcuts/core';
|
|
9
|
-
import ListHint from './
|
|
10
|
-
import { ListDataItem, ListDataItemProps, Type } from './consts';
|
|
4
|
+
import { Component, type ReactNode, type SyntheticEvent } from 'react';
|
|
5
|
+
import VirtualizedList, { type ListRowProps } from 'react-virtualized/dist/es/List';
|
|
6
|
+
import { type Size } from 'react-virtualized/dist/es/AutoSizer';
|
|
7
|
+
import { type WindowScrollerChildProps } from 'react-virtualized/dist/es/WindowScroller';
|
|
8
|
+
import { type ShortcutsMap } from '../shortcuts/core';
|
|
9
|
+
import ListHint from './list-hint';
|
|
10
|
+
import { type ListDataItem, type ListDataItemProps, Type } from './consts';
|
|
11
11
|
export type { ListDataItem };
|
|
12
12
|
declare function noop(): void;
|
|
13
13
|
/**
|
package/components/list/list.js
CHANGED
|
@@ -7,7 +7,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import VirtualizedList from 'react-virtualized/dist/es/List';
|
|
9
9
|
import AutoSizer from 'react-virtualized/dist/es/AutoSizer';
|
|
10
|
-
import
|
|
10
|
+
import WindowScrollerComponent from 'react-virtualized/dist/es/WindowScroller';
|
|
11
11
|
import { CellMeasurerCache, CellMeasurer } from 'react-virtualized/dist/es/CellMeasurer';
|
|
12
12
|
import deprecate from 'util-deprecate';
|
|
13
13
|
import memoizeOne from 'memoize-one';
|
|
@@ -18,11 +18,11 @@ import memoize from '../global/memoize.js';
|
|
|
18
18
|
import { preventDefault } from '../global/dom.js';
|
|
19
19
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
20
20
|
import createStatefulContext from '../global/create-stateful-context.js';
|
|
21
|
-
import ListItem from './
|
|
22
|
-
import ListCustom from './
|
|
23
|
-
import ListTitle from './
|
|
24
|
-
import ListSeparator from './
|
|
25
|
-
import ListHint from './
|
|
21
|
+
import ListItem from './list-item.js';
|
|
22
|
+
import ListCustom from './list-custom.js';
|
|
23
|
+
import ListTitle from './list-title.js';
|
|
24
|
+
import ListSeparator from './list-separator.js';
|
|
25
|
+
import ListHint from './list-hint.js';
|
|
26
26
|
import { Type, Dimension, DEFAULT_ITEM_TYPE } from './consts.js';
|
|
27
27
|
import { s as styles } from '../_helpers/list.js';
|
|
28
28
|
import 'core-js/modules/es.regexp.exec.js';
|
|
@@ -40,14 +40,14 @@ import '../checkbox/checkbox.js';
|
|
|
40
40
|
import '@jetbrains/icons/checkmark-12px';
|
|
41
41
|
import '@jetbrains/icons/remove-12px';
|
|
42
42
|
import '../icon/icon.js';
|
|
43
|
-
import '../icon/
|
|
44
|
-
import '../_helpers/
|
|
45
|
-
import '../global/
|
|
43
|
+
import '../icon/icon.constants.js';
|
|
44
|
+
import '../_helpers/icon-svg.js';
|
|
45
|
+
import '../global/compose-refs.js';
|
|
46
46
|
import '../control-help/control-help.js';
|
|
47
47
|
import '../link/link.js';
|
|
48
|
-
import '../link/
|
|
48
|
+
import '../link/clickable-link.js';
|
|
49
49
|
import '../_helpers/link.js';
|
|
50
|
-
import './
|
|
50
|
+
import './list.classes.js';
|
|
51
51
|
import '../global/get-event-key.js';
|
|
52
52
|
|
|
53
53
|
const _excluded = ["selectedLabel", "originalModel"];
|
|
@@ -59,14 +59,14 @@ const warnEmptyKey = deprecate(() => {}, 'No key passed for list item with non-s
|
|
|
59
59
|
*/
|
|
60
60
|
function isItemType(listItemType, item) {
|
|
61
61
|
let type = item.rgItemType;
|
|
62
|
-
if (type
|
|
62
|
+
if (type === null || type === undefined) {
|
|
63
63
|
type = DEFAULT_ITEM_TYPE;
|
|
64
64
|
}
|
|
65
65
|
return type === listItemType;
|
|
66
66
|
}
|
|
67
67
|
const nonActivatableTypes = [Type.SEPARATOR, Type.TITLE, Type.MARGIN];
|
|
68
68
|
function isActivatable(item) {
|
|
69
|
-
return item
|
|
69
|
+
return item !== null && item !== undefined && !nonActivatableTypes.includes(item.rgItemType) && !item.disabled;
|
|
70
70
|
}
|
|
71
71
|
function getDataHash(data) {
|
|
72
72
|
return data.map(it => "".concat(it.key, "-").concat(it.disabled)).join('-');
|
|
@@ -218,7 +218,7 @@ class List extends Component {
|
|
|
218
218
|
const item = this.props.data[this.state.activeIndex];
|
|
219
219
|
this.selectHandler(this.state.activeIndex)(event);
|
|
220
220
|
if (item.href && !event.defaultPrevented) {
|
|
221
|
-
if (shortcut
|
|
221
|
+
if (shortcut !== null && shortcut !== undefined && ['command+enter', 'ctrl+enter'].includes(shortcut)) {
|
|
222
222
|
window.open(item.href, '_blank');
|
|
223
223
|
} else if (shortcut === 'shift+enter') {
|
|
224
224
|
window.open(item.href);
|
|
@@ -227,9 +227,8 @@ class List extends Component {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
return false; // do not propagate event
|
|
230
|
-
} else {
|
|
231
|
-
return true; // propagate event to the parent component (e.g., QueryAssist)
|
|
232
230
|
}
|
|
231
|
+
return true; // propagate event to the parent component (e.g., QueryAssist)
|
|
233
232
|
});
|
|
234
233
|
_defineProperty(this, "scrollEndHandler", () => this.scheduleScrollListener(() => {
|
|
235
234
|
const innerContainer = this.inner;
|
|
@@ -255,6 +254,7 @@ class List extends Component {
|
|
|
255
254
|
});
|
|
256
255
|
}
|
|
257
256
|
});
|
|
257
|
+
// eslint-disable-next-line complexity
|
|
258
258
|
_defineProperty(this, "renderItem", _ref => {
|
|
259
259
|
let {
|
|
260
260
|
index = 1,
|
|
@@ -297,7 +297,7 @@ class List extends Component {
|
|
|
297
297
|
}, restProps);
|
|
298
298
|
itemKey = key || itemId;
|
|
299
299
|
itemProps.hover = isActive;
|
|
300
|
-
if (itemProps.hoverClassName
|
|
300
|
+
if (itemProps.hoverClassName !== null && itemProps.hoverClassName !== undefined && itemProps.hover) {
|
|
301
301
|
itemProps.className = classNames(itemProps.className, itemProps.hoverClassName);
|
|
302
302
|
}
|
|
303
303
|
itemProps.tabIndex = -1;
|
|
@@ -309,7 +309,7 @@ class List extends Component {
|
|
|
309
309
|
itemProps.onClick = selectHandler;
|
|
310
310
|
}
|
|
311
311
|
itemProps.onCheckboxChange = this.checkboxHandler(realIndex);
|
|
312
|
-
if (itemProps.compact
|
|
312
|
+
if (itemProps.compact === null || itemProps.compact === undefined) {
|
|
313
313
|
itemProps.compact = this.props.compact;
|
|
314
314
|
}
|
|
315
315
|
let ItemComponent;
|
|
@@ -351,21 +351,21 @@ class List extends Component {
|
|
|
351
351
|
return jsx("div", {
|
|
352
352
|
ref: registerChild,
|
|
353
353
|
style: style,
|
|
354
|
-
role:
|
|
354
|
+
role: 'row',
|
|
355
355
|
"aria-selected": isActive,
|
|
356
356
|
id: itemId,
|
|
357
357
|
children: jsx("div", {
|
|
358
|
-
role:
|
|
358
|
+
role: 'cell',
|
|
359
359
|
children: el
|
|
360
360
|
})
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
}, itemKey) : jsx("div", {
|
|
364
|
-
role:
|
|
364
|
+
role: 'row',
|
|
365
365
|
"aria-selected": isActive,
|
|
366
366
|
id: itemId,
|
|
367
367
|
children: jsx("div", {
|
|
368
|
-
role:
|
|
368
|
+
role: 'cell',
|
|
369
369
|
children: el
|
|
370
370
|
})
|
|
371
371
|
}, itemKey);
|
|
@@ -416,13 +416,13 @@ class List extends Component {
|
|
|
416
416
|
activeItem: null
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
|
-
if (activeIndex
|
|
419
|
+
if (activeIndex !== null && activeIndex !== undefined && activeIndex !== prevActiveIndex && data[activeIndex]) {
|
|
420
420
|
Object.assign(nextState, {
|
|
421
421
|
activeIndex,
|
|
422
422
|
activeItem: data[activeIndex],
|
|
423
423
|
needScrollToActive: true
|
|
424
424
|
});
|
|
425
|
-
} else if (data !== prevData && restoreActiveIndex && activeItem
|
|
425
|
+
} else if (data !== prevData && restoreActiveIndex && activeItem && activeItem.key) {
|
|
426
426
|
// Restore active index if there is an item with the same "key" property
|
|
427
427
|
const index = data.findIndex(item => item.key === activeItem.key);
|
|
428
428
|
if (index >= 0) {
|
|
@@ -435,7 +435,7 @@ class List extends Component {
|
|
|
435
435
|
return nextState;
|
|
436
436
|
}
|
|
437
437
|
componentDidMount() {
|
|
438
|
-
if (this.props.activeIndex
|
|
438
|
+
if ((this.props.activeIndex === null || this.props.activeIndex === undefined) && shouldActivateFirstItem(this.props)) {
|
|
439
439
|
this.activateFirst();
|
|
440
440
|
}
|
|
441
441
|
}
|
|
@@ -451,7 +451,7 @@ class List extends Component {
|
|
|
451
451
|
activeIndex
|
|
452
452
|
} = this.state;
|
|
453
453
|
const isActiveItemRetainedPosition = activeIndex ? ((_prevProps$data$activ = prevProps.data[activeIndex]) === null || _prevProps$data$activ === void 0 ? void 0 : _prevProps$data$activ.key) === ((_this$props$data$acti = this.props.data[activeIndex]) === null || _this$props$data$acti === void 0 ? void 0 : _this$props$data$acti.key) : false;
|
|
454
|
-
if (this.props.activeIndex
|
|
454
|
+
if ((this.props.activeIndex === null || this.props.activeIndex === undefined) && getDataHash(this.props.data) !== getDataHash(prevProps.data) && shouldActivateFirstItem(this.props) && !isActiveItemRetainedPosition) {
|
|
455
455
|
this.activateFirst();
|
|
456
456
|
}
|
|
457
457
|
this.checkOverflow();
|
|
@@ -466,7 +466,8 @@ class List extends Component {
|
|
|
466
466
|
let correctedIndex;
|
|
467
467
|
if (this.props.data.length === 0 || !this.hasActivatableItems()) {
|
|
468
468
|
return;
|
|
469
|
-
}
|
|
469
|
+
}
|
|
470
|
+
if (this.props.data.length < index) {
|
|
470
471
|
correctedIndex = 0;
|
|
471
472
|
} else {
|
|
472
473
|
correctedIndex = index;
|
|
@@ -490,7 +491,7 @@ class List extends Component {
|
|
|
490
491
|
return this.props.data.find(item => item.rgItemType === Type.ITEM || item.rgItemType === Type.CUSTOM);
|
|
491
492
|
}
|
|
492
493
|
getSelected() {
|
|
493
|
-
return this.state.activeIndex
|
|
494
|
+
return this.state.activeIndex ? this.props.data[this.state.activeIndex] : null;
|
|
494
495
|
}
|
|
495
496
|
defaultItemHeight() {
|
|
496
497
|
return this.props.compact ? Dimension.COMPACT_ITEM_HEIGHT : Dimension.ITEM_HEIGHT;
|
|
@@ -508,7 +509,7 @@ class List extends Component {
|
|
|
508
509
|
return "".concat(itemProps.rgItemType, "_").concat(identificator);
|
|
509
510
|
}
|
|
510
511
|
getId(item) {
|
|
511
|
-
return item
|
|
512
|
+
return item !== null && item !== undefined ? "".concat(this.id, ":").concat(item.key || this._deprecatedGenerateKeyFromContent(item)) : undefined;
|
|
512
513
|
}
|
|
513
514
|
get inner() {
|
|
514
515
|
if (!this._inner) {
|
|
@@ -566,11 +567,11 @@ class List extends Component {
|
|
|
566
567
|
overscanRowCount: this._bufferSize,
|
|
567
568
|
// ensure rerendering
|
|
568
569
|
noop: () => {},
|
|
569
|
-
scrollToIndex: !this.props.disableScrollToActive && this.state.needScrollToActive && this.state.activeIndex
|
|
570
|
-
scrollToAlignment:
|
|
570
|
+
scrollToIndex: !this.props.disableScrollToActive && this.state.needScrollToActive && this.state.activeIndex !== null && this.state.activeIndex !== undefined ? this.state.activeIndex + 1 : undefined,
|
|
571
|
+
scrollToAlignment: 'center',
|
|
571
572
|
deferredMeasurementCache: this._cache,
|
|
572
573
|
onRowsRendered: this.checkOverflow,
|
|
573
|
-
containerRole:
|
|
574
|
+
containerRole: 'none' // row role is set by rowRenderer
|
|
574
575
|
})
|
|
575
576
|
});
|
|
576
577
|
}
|
|
@@ -584,7 +585,7 @@ class List extends Component {
|
|
|
584
585
|
rowCount
|
|
585
586
|
});
|
|
586
587
|
}
|
|
587
|
-
return jsx(
|
|
588
|
+
return jsx(WindowScrollerComponent, {
|
|
588
589
|
children: props => this.renderVirtualizedInner(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
589
590
|
rowCount,
|
|
590
591
|
autoHeight: true
|
|
@@ -605,7 +606,7 @@ class List extends Component {
|
|
|
605
606
|
onMouseMove: this.mouseHandler,
|
|
606
607
|
children: jsx("div", {
|
|
607
608
|
"aria-label": this.props.ariaLabel,
|
|
608
|
-
role:
|
|
609
|
+
role: 'grid',
|
|
609
610
|
style: maxHeight ? {
|
|
610
611
|
maxHeight: this.getVisibleListHeight(maxHeight)
|
|
611
612
|
} : undefined,
|
|
@@ -632,7 +633,7 @@ class List extends Component {
|
|
|
632
633
|
className: classes,
|
|
633
634
|
onMouseOut: this.props.onMouseOut,
|
|
634
635
|
onBlur: this.props.onMouseOut,
|
|
635
|
-
"data-test":
|
|
636
|
+
"data-test": 'ring-list',
|
|
636
637
|
children: [this.props.shortcuts && jsx(Shortcuts, {
|
|
637
638
|
map: this.props.shortcutsMap ? _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap) : this.shortcutsMap,
|
|
638
639
|
scope: this.shortcutsScope
|
|
@@ -133,7 +133,8 @@ class LoaderCore {
|
|
|
133
133
|
const randomizedSpeedChange = randomFunc() - this.baseSpeed / 2;
|
|
134
134
|
if (coord + radius * 2 + this.baseSpeed >= limit) {
|
|
135
135
|
return -(this.baseSpeed + randomizedSpeedChange);
|
|
136
|
-
}
|
|
136
|
+
}
|
|
137
|
+
if (coord <= this.baseSpeed) {
|
|
137
138
|
return this.baseSpeed + randomizedSpeedChange;
|
|
138
139
|
}
|
|
139
140
|
return speed;
|
|
@@ -183,7 +184,7 @@ class LoaderCore {
|
|
|
183
184
|
}
|
|
184
185
|
draw() {
|
|
185
186
|
const ctx = this.ctx;
|
|
186
|
-
if (ctx
|
|
187
|
+
if (ctx === null) {
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
189
190
|
ctx.clearRect(0, 0, this.width, this.height);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
|
-
import LoaderCore, { LoaderCoreProps } from './
|
|
1
|
+
import { type HTMLAttributes, PureComponent } from 'react';
|
|
2
|
+
import LoaderCore, { type LoaderCoreProps } from './loader-core';
|
|
3
3
|
export interface LoaderProps extends Partial<LoaderCoreProps>, HTMLAttributes<HTMLElement> {
|
|
4
4
|
'data-test'?: string | null | undefined;
|
|
5
5
|
}
|
|
@@ -2,7 +2,7 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
|
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
-
import LoaderCore from './
|
|
5
|
+
import LoaderCore from './loader-core.js';
|
|
6
6
|
import 'core-js/modules/es.regexp.exec.js';
|
|
7
7
|
import '../global/dom.js';
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ import { PureComponent } from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Loader from '../loader/loader.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
|
-
import '../loader/
|
|
7
|
+
import '../loader/loader-core.js';
|
|
8
8
|
import 'core-js/modules/es.regexp.exec.js';
|
|
9
9
|
import '../global/dom.js';
|
|
10
10
|
|
|
@@ -31,24 +31,24 @@ import '@jetbrains/icons/chevron-down';
|
|
|
31
31
|
import '@jetbrains/icons/chevron-12px-down';
|
|
32
32
|
import 'util-deprecate';
|
|
33
33
|
import '../icon/icon.js';
|
|
34
|
-
import '../icon/
|
|
35
|
-
import '../_helpers/
|
|
34
|
+
import '../icon/icon.constants.js';
|
|
35
|
+
import '../_helpers/icon-svg.js';
|
|
36
36
|
import 'core-js/modules/es.string.replace.js';
|
|
37
37
|
import '../global/memoize.js';
|
|
38
|
-
import '../link/
|
|
38
|
+
import '../link/clickable-link.js';
|
|
39
39
|
import '../global/controls-height.js';
|
|
40
40
|
import '../global/configuration.js';
|
|
41
|
-
import '../_helpers/
|
|
41
|
+
import '../_helpers/button.classes.js';
|
|
42
42
|
import '../popup/popup.target.js';
|
|
43
43
|
import '../popup/popup.js';
|
|
44
44
|
import '../popup/position.js';
|
|
45
45
|
import 'core-js/modules/es.array.sort.js';
|
|
46
46
|
import '../popup/popup.consts.js';
|
|
47
47
|
import '../popup/position-css.js';
|
|
48
|
-
import '../_helpers/
|
|
48
|
+
import '../_helpers/dialog-body-scroll-preventer.js';
|
|
49
49
|
import 'scrollbar-width';
|
|
50
50
|
import '../loader/loader.js';
|
|
51
|
-
import '../loader/
|
|
51
|
+
import '../loader/loader-core.js';
|
|
52
52
|
import '../auth/response-parser.js';
|
|
53
53
|
import '../global/url.js';
|
|
54
54
|
|
|
@@ -137,7 +137,7 @@ class LoginDialog extends Component {
|
|
|
137
137
|
width
|
|
138
138
|
};
|
|
139
139
|
return jsxs(Dialog, {
|
|
140
|
-
"data-test":
|
|
140
|
+
"data-test": 'ring-login-dialog',
|
|
141
141
|
className: className,
|
|
142
142
|
contentClassName: styles.dialogContent,
|
|
143
143
|
trapFocus: true,
|
|
@@ -147,11 +147,11 @@ class LoginDialog extends Component {
|
|
|
147
147
|
onCloseAttempt: onCancel,
|
|
148
148
|
children: [jsx(ContentWrapper, {
|
|
149
149
|
children: jsx("iframe", {
|
|
150
|
-
title:
|
|
150
|
+
title: 'Login dialog',
|
|
151
151
|
style: iFrameStyle,
|
|
152
152
|
src: url,
|
|
153
153
|
className: styles.iFrame,
|
|
154
|
-
scrolling:
|
|
154
|
+
scrolling: 'no'
|
|
155
155
|
})
|
|
156
156
|
}), loading && jsx(LoaderScreen, {
|
|
157
157
|
message: loadingMessage,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LoginDialogAttrs } from './login-dialog';
|
|
1
|
+
import { type LoginDialogAttrs } from './login-dialog';
|
|
2
2
|
export default function showAuthDialog(props?: LoginDialogAttrs): () => void;
|
|
@@ -33,23 +33,23 @@ import '../button/button.js';
|
|
|
33
33
|
import '@jetbrains/icons/chevron-down';
|
|
34
34
|
import '@jetbrains/icons/chevron-12px-down';
|
|
35
35
|
import '../icon/icon.js';
|
|
36
|
-
import '../icon/
|
|
37
|
-
import '../_helpers/
|
|
36
|
+
import '../icon/icon.constants.js';
|
|
37
|
+
import '../_helpers/icon-svg.js';
|
|
38
38
|
import 'core-js/modules/es.string.replace.js';
|
|
39
39
|
import '../global/memoize.js';
|
|
40
|
-
import '../link/
|
|
41
|
-
import '../_helpers/
|
|
40
|
+
import '../link/clickable-link.js';
|
|
41
|
+
import '../_helpers/button.classes.js';
|
|
42
42
|
import '../popup/popup.target.js';
|
|
43
43
|
import '../popup/popup.js';
|
|
44
44
|
import '../popup/position.js';
|
|
45
45
|
import 'core-js/modules/es.array.sort.js';
|
|
46
46
|
import '../popup/popup.consts.js';
|
|
47
47
|
import '../popup/position-css.js';
|
|
48
|
-
import '../_helpers/
|
|
48
|
+
import '../_helpers/dialog-body-scroll-preventer.js';
|
|
49
49
|
import 'scrollbar-width';
|
|
50
50
|
import '../loader-screen/loader-screen.js';
|
|
51
51
|
import '../loader/loader.js';
|
|
52
|
-
import '../loader/
|
|
52
|
+
import '../loader/loader-core.js';
|
|
53
53
|
import '../auth/background-flow.js';
|
|
54
54
|
import '../auth/response-parser.js';
|
|
55
55
|
import '../global/url.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
2
|
-
import Popup, { PopupAttrs } from '../popup/popup';
|
|
1
|
+
import { Component, type ReactNode } from 'react';
|
|
2
|
+
import Popup, { type PopupAttrs } from '../popup/popup';
|
|
3
3
|
import { Directions } from '../popup/popup.consts';
|
|
4
|
-
import { IconType } from '../icon/icon';
|
|
5
|
-
import { ButtonAttrs } from '../button/button';
|
|
4
|
+
import { type IconType } from '../icon/icon';
|
|
5
|
+
import { type ButtonAttrs } from '../button/button';
|
|
6
6
|
import Theme from '../global/theme';
|
|
7
7
|
export interface MessageTranslations {
|
|
8
8
|
gotIt: string;
|