@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
|
@@ -30,14 +30,14 @@ import 'core-js/modules/es.array.sort.js';
|
|
|
30
30
|
import '../popup/popup.target.js';
|
|
31
31
|
import '../popup/position-css.js';
|
|
32
32
|
import 'util-deprecate';
|
|
33
|
-
import '../icon/
|
|
34
|
-
import '../_helpers/
|
|
33
|
+
import '../icon/icon.constants.js';
|
|
34
|
+
import '../_helpers/icon-svg.js';
|
|
35
35
|
import '../global/memoize.js';
|
|
36
36
|
import '@jetbrains/icons/chevron-down';
|
|
37
37
|
import '@jetbrains/icons/chevron-12px-down';
|
|
38
|
-
import '../link/
|
|
38
|
+
import '../link/clickable-link.js';
|
|
39
39
|
import '../global/controls-height.js';
|
|
40
|
-
import '../_helpers/
|
|
40
|
+
import '../_helpers/button.classes.js';
|
|
41
41
|
import '../i18n/i18n.js';
|
|
42
42
|
|
|
43
43
|
var styles = {"container":"ring-message-container","message":"ring-message-message","icon":"ring-message-icon","title":"ring-message-title ring-global-font-lower ring-global-font","description":"ring-message-description","gotIt":"ring-message-gotIt","tail":"ring-message-tail"};
|
|
@@ -133,7 +133,7 @@ class Message extends Component {
|
|
|
133
133
|
const {
|
|
134
134
|
popupProps
|
|
135
135
|
} = this.props;
|
|
136
|
-
if (this.props.tailOffset
|
|
136
|
+
if (this.props.tailOffset) {
|
|
137
137
|
return this.props.tailOffset;
|
|
138
138
|
}
|
|
139
139
|
const anchor = (popupProps === null || popupProps === void 0 ? void 0 : popupProps.anchorElement) || ((_this$popup2 = this.popup) === null || _this$popup2 === void 0 ? void 0 : _this$popup2.parent);
|
|
@@ -141,7 +141,7 @@ class Message extends Component {
|
|
|
141
141
|
return DEFAULT_OFFSET;
|
|
142
142
|
}
|
|
143
143
|
const offset = Math.floor(anchor.offsetWidth / 2);
|
|
144
|
-
const isOpenedToRight = this.state.direction
|
|
144
|
+
const isOpenedToRight = this.state.direction && [Directions.TOP_RIGHT, Directions.BOTTOM_RIGHT].includes(this.state.direction);
|
|
145
145
|
if (popupProps !== null && popupProps !== void 0 && popupProps.left && isOpenedToRight) {
|
|
146
146
|
return offset - (popupProps === null || popupProps === void 0 ? void 0 : popupProps.left);
|
|
147
147
|
}
|
|
@@ -196,7 +196,7 @@ class Message extends Component {
|
|
|
196
196
|
className: styles.icon,
|
|
197
197
|
glyph: icon
|
|
198
198
|
}), title && jsx("h1", {
|
|
199
|
-
"data-test":
|
|
199
|
+
"data-test": 'rgMessageTitle',
|
|
200
200
|
className: styles.title,
|
|
201
201
|
children: title
|
|
202
202
|
}), children && jsx("div", {
|
|
@@ -67,7 +67,7 @@ startOldBrowsersDetector(() => {
|
|
|
67
67
|
const browserMessage = document.getElementById('ring-old-browsers-message__browser-message');
|
|
68
68
|
const errorMessage = document.getElementById('ring-old-browsers-message__error-message');
|
|
69
69
|
const smileNode = document.getElementById('ring-old-browsers-message__smile');
|
|
70
|
-
if (browserMessage
|
|
70
|
+
if (browserMessage && errorMessage) {
|
|
71
71
|
if (isBrowserInWhiteList()) {
|
|
72
72
|
browserMessage.style.display = 'none';
|
|
73
73
|
errorMessage.style.display = 'block';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Pager
|
|
3
3
|
*/
|
|
4
|
-
import { PureComponent, ReactNode } from 'react';
|
|
4
|
+
import { PureComponent, type ReactNode } from 'react';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { SelectItem } from '../select/select';
|
|
6
|
+
import { type SelectItem } from '../select/select';
|
|
7
7
|
export interface PagerTranslations {
|
|
8
8
|
perPage: string;
|
|
9
9
|
firstPage: string;
|
|
@@ -16,12 +16,12 @@ import { I18nContext } from '../i18n/i18n-context.js';
|
|
|
16
16
|
import '@jetbrains/icons/chevron-down';
|
|
17
17
|
import '@jetbrains/icons/chevron-12px-down';
|
|
18
18
|
import 'util-deprecate';
|
|
19
|
-
import '../link/
|
|
19
|
+
import '../link/clickable-link.js';
|
|
20
20
|
import '../global/controls-height.js';
|
|
21
21
|
import '../global/configuration.js';
|
|
22
|
-
import '../_helpers/
|
|
23
|
-
import '../icon/
|
|
24
|
-
import '../_helpers/
|
|
22
|
+
import '../_helpers/button.classes.js';
|
|
23
|
+
import '../icon/icon.constants.js';
|
|
24
|
+
import '../_helpers/icon-svg.js';
|
|
25
25
|
import 'core-js/modules/es.regexp.exec.js';
|
|
26
26
|
import 'core-js/modules/es.string.replace.js';
|
|
27
27
|
import '../global/data-tests.js';
|
|
@@ -63,24 +63,24 @@ import 'react-virtualized/dist/es/WindowScroller';
|
|
|
63
63
|
import 'react-virtualized/dist/es/CellMeasurer';
|
|
64
64
|
import 'memoize-one';
|
|
65
65
|
import '../global/create-stateful-context.js';
|
|
66
|
-
import '../list/
|
|
66
|
+
import '../list/list-item.js';
|
|
67
67
|
import '../checkbox/checkbox.js';
|
|
68
68
|
import '@jetbrains/icons/checkmark-12px';
|
|
69
69
|
import '@jetbrains/icons/remove-12px';
|
|
70
|
-
import '../global/
|
|
70
|
+
import '../global/compose-refs.js';
|
|
71
71
|
import '../_helpers/list.js';
|
|
72
72
|
import '../list/consts.js';
|
|
73
|
-
import '../list/
|
|
73
|
+
import '../list/list.classes.js';
|
|
74
74
|
import '../_helpers/link.js';
|
|
75
|
-
import '../list/
|
|
75
|
+
import '../list/list-custom.js';
|
|
76
76
|
import '../global/get-event-key.js';
|
|
77
|
-
import '../list/
|
|
78
|
-
import '../list/
|
|
79
|
-
import '../list/
|
|
77
|
+
import '../list/list-title.js';
|
|
78
|
+
import '../list/list-separator.js';
|
|
79
|
+
import '../list/list-hint.js';
|
|
80
80
|
import '../_helpers/input.js';
|
|
81
81
|
import '../global/rerender-hoc.js';
|
|
82
82
|
import '../global/fuzzy-highlight.js';
|
|
83
|
-
import '../select/
|
|
83
|
+
import '../select/select-popup.js';
|
|
84
84
|
import '@jetbrains/icons/search';
|
|
85
85
|
import '../loader-inline/loader-inline.js';
|
|
86
86
|
import '../shortcuts/shortcuts-hoc.js';
|
|
@@ -88,7 +88,7 @@ import '../tags-list/tags-list.js';
|
|
|
88
88
|
import '../tag/tag.js';
|
|
89
89
|
import '../caret/caret.js';
|
|
90
90
|
import '../text/text.js';
|
|
91
|
-
import '../_helpers/
|
|
91
|
+
import '../_helpers/select-filter.js';
|
|
92
92
|
import '../i18n/i18n.js';
|
|
93
93
|
|
|
94
94
|
var style = {"pager":"ring-pager-pager","links":"ring-pager-links","link":"ring-pager-link","linkDisabled":"ring-pager-linkDisabled","actions":"ring-pager-actions","pageSize":"ring-pager-pageSize"};
|
|
@@ -97,7 +97,7 @@ class Pager extends PureComponent {
|
|
|
97
97
|
constructor() {
|
|
98
98
|
super(...arguments);
|
|
99
99
|
_defineProperty(this, "handlePageSizeChange", item => {
|
|
100
|
-
if (item
|
|
100
|
+
if (item) {
|
|
101
101
|
this.props.onPageSizeChange(item.key);
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -178,20 +178,20 @@ class Pager extends PureComponent {
|
|
|
178
178
|
} = this.props;
|
|
179
179
|
if (!onPageChange) {
|
|
180
180
|
return {};
|
|
181
|
-
}
|
|
181
|
+
}
|
|
182
|
+
if (hrefFunc) {
|
|
182
183
|
return {
|
|
183
184
|
onPlainLeftClick: onClick
|
|
184
185
|
};
|
|
185
|
-
} else {
|
|
186
|
-
return {
|
|
187
|
-
onClick
|
|
188
|
-
};
|
|
189
186
|
}
|
|
187
|
+
return {
|
|
188
|
+
onClick
|
|
189
|
+
};
|
|
190
190
|
}
|
|
191
191
|
getPageSizeSelector() {
|
|
192
192
|
const selectOptions = this.getSelectOptions();
|
|
193
193
|
return !this.props.disablePageSizeSelector && jsx("div", {
|
|
194
|
-
"data-test":
|
|
194
|
+
"data-test": 'ring-pager-page-size-selector',
|
|
195
195
|
className: style.pageSize,
|
|
196
196
|
children: jsx(Select, {
|
|
197
197
|
data: selectOptions.data,
|
|
@@ -211,18 +211,18 @@ class Pager extends PureComponent {
|
|
|
211
211
|
const nextLinkAvailable = this.props.openTotal || this.props.currentPage !== this.getTotalPages();
|
|
212
212
|
const nextIcon = jsx(Icon, {
|
|
213
213
|
glyph: chevronRightIcon
|
|
214
|
-
},
|
|
214
|
+
}, 'icon');
|
|
215
215
|
const prevIcon = jsx(Icon, {
|
|
216
216
|
glyph: chevronLeftIcon
|
|
217
|
-
},
|
|
217
|
+
}, 'icon');
|
|
218
218
|
const prevText = (_this$props$translati3 = (_this$props$translati4 = this.props.translations) === null || _this$props$translati4 === void 0 ? void 0 : _this$props$translati4.previousPage) !== null && _this$props$translati3 !== void 0 ? _this$props$translati3 : translate('previousPage');
|
|
219
219
|
const nextText = (_this$props$translati5 = (_this$props$translati6 = this.props.translations) === null || _this$props$translati6 === void 0 ? void 0 : _this$props$translati6.nextPage) !== null && _this$props$translati5 !== void 0 ? _this$props$translati5 : translate('nextPage');
|
|
220
220
|
const nextLinkContent = [jsx("span", {
|
|
221
221
|
children: nextText
|
|
222
|
-
},
|
|
222
|
+
}, 'text'), nextIcon];
|
|
223
223
|
const prevLinkContent = [prevIcon, jsx("span", {
|
|
224
224
|
children: prevText
|
|
225
|
-
},
|
|
225
|
+
}, 'text')];
|
|
226
226
|
const prevLinkHref = this.generateHref(this.props.currentPage - 1);
|
|
227
227
|
const nextLinkHref = this.generateHref(this.props.currentPage + 1);
|
|
228
228
|
const disabledLinkClasses = classNames({
|
|
@@ -240,7 +240,7 @@ class Pager extends PureComponent {
|
|
|
240
240
|
className: disabledLinkClasses,
|
|
241
241
|
children: [prevIcon, jsx("span", {
|
|
242
242
|
children: prevText
|
|
243
|
-
},
|
|
243
|
+
}, 'text')]
|
|
244
244
|
}), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? jsx(Link, _objectSpread2(_objectSpread2({
|
|
245
245
|
href: nextLinkHref,
|
|
246
246
|
className: style.link
|
|
@@ -250,7 +250,7 @@ class Pager extends PureComponent {
|
|
|
250
250
|
className: disabledLinkClasses,
|
|
251
251
|
children: [jsx("span", {
|
|
252
252
|
children: nextText
|
|
253
|
-
},
|
|
253
|
+
}, 'text'), nextIcon]
|
|
254
254
|
})]
|
|
255
255
|
});
|
|
256
256
|
}
|
|
@@ -261,6 +261,7 @@ class Pager extends PureComponent {
|
|
|
261
261
|
const pageSize = this.props.disablePageSizeSelector ? undefined : this.props.pageSize;
|
|
262
262
|
return this.props.hrefFunc(page, pageSize);
|
|
263
263
|
}
|
|
264
|
+
// eslint-disable-next-line complexity
|
|
264
265
|
getPagerContent() {
|
|
265
266
|
var _this$props$translati7, _this$props$translati8, _this$props$translati9, _this$props$translati0;
|
|
266
267
|
const {
|
|
@@ -324,7 +325,7 @@ class Pager extends PureComponent {
|
|
|
324
325
|
return null;
|
|
325
326
|
}
|
|
326
327
|
return jsx("div", {
|
|
327
|
-
"data-test":
|
|
328
|
+
"data-test": 'ring-pager',
|
|
328
329
|
className: classes,
|
|
329
330
|
children: shouldRenderPagerContent ? this.getPagerContent() : this.getPageSizeSelector()
|
|
330
331
|
});
|
|
@@ -19,7 +19,7 @@ class Panel extends PureComponent {
|
|
|
19
19
|
props = _objectWithoutProperties(_this$props, _excluded);
|
|
20
20
|
const classes = classNames(styles.panel, className);
|
|
21
21
|
return jsx("div", _objectSpread2(_objectSpread2({
|
|
22
|
-
"data-test":
|
|
22
|
+
"data-test": 'ring-panel'
|
|
23
23
|
}, props), {}, {
|
|
24
24
|
className: classes,
|
|
25
25
|
children: children
|
|
@@ -44,6 +44,7 @@ class PermissionCache {
|
|
|
44
44
|
if (key) {
|
|
45
45
|
_permissionCache[key] = {
|
|
46
46
|
global: permission.global,
|
|
47
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
47
48
|
projectIdSet: this.constructor._toProjectIdSet(permission.projects)
|
|
48
49
|
};
|
|
49
50
|
}
|
|
@@ -194,7 +195,7 @@ class PermissionCache {
|
|
|
194
195
|
throw new Error("Operator ')' was expected");
|
|
195
196
|
}
|
|
196
197
|
} else {
|
|
197
|
-
result = t
|
|
198
|
+
result = !!t && this.testPermission(t, projectId);
|
|
198
199
|
}
|
|
199
200
|
return result;
|
|
200
201
|
}
|
|
@@ -217,10 +218,9 @@ class PermissionCache {
|
|
|
217
218
|
}
|
|
218
219
|
if (projectId) {
|
|
219
220
|
// if projectId is specified check that the permission is given in the project
|
|
220
|
-
return cachedPermission.projectIdSet
|
|
221
|
-
} else {
|
|
222
|
-
return true;
|
|
221
|
+
return !!cachedPermission.projectIdSet && projectId in cachedPermission.projectIdSet;
|
|
223
222
|
}
|
|
223
|
+
return true;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
_defineProperty(PermissionCache, "GLOBAL_PROJECT_ID", 'global');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import PermissionCache, { type Permission } from './permissions-cache';
|
|
2
|
+
import type Auth from '../auth/auth-core';
|
|
3
3
|
export interface PermissionsConfig {
|
|
4
4
|
prefix?: string | null | undefined;
|
|
5
5
|
namesConverter?: ((name: string) => string) | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import PermissionCache from './
|
|
2
|
+
import PermissionCache from './permissions-cache.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* <code>
|
|
@@ -62,9 +62,8 @@ class Permissions {
|
|
|
62
62
|
return storedName => {
|
|
63
63
|
if (storedName.indexOf(prefix) !== 0) {
|
|
64
64
|
return storedName;
|
|
65
|
-
} else {
|
|
66
|
-
return storedName.substr(prefix.length);
|
|
67
65
|
}
|
|
66
|
+
return storedName.substr(prefix.length);
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
69
|
static getPermissionQuery(services) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Popup
|
|
3
3
|
*/
|
|
4
|
-
import { PureComponent, ReactNode, CSSProperties, SyntheticEvent } from 'react';
|
|
4
|
+
import { PureComponent, type ReactNode, type CSSProperties, type SyntheticEvent } from 'react';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { Listeners } from '../global/dom';
|
|
7
|
-
import { PositionStyles } from './position';
|
|
7
|
+
import { type PositionStyles } from './position';
|
|
8
8
|
import { Dimension, Directions, Display, MaxHeight, MinWidth } from './popup.consts';
|
|
9
9
|
import { PopupTargetContext, PopupTarget } from './popup.target';
|
|
10
10
|
export { PopupTargetContext, PopupTarget };
|
|
@@ -135,7 +135,7 @@ class Popup extends PureComponent {
|
|
|
135
135
|
popup.style[propKey] = value.toString();
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
-
if (direction
|
|
138
|
+
if (direction) {
|
|
139
139
|
this._updateDirection(direction);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -162,7 +162,7 @@ class Popup extends PureComponent {
|
|
|
162
162
|
var _this$_getAnchor;
|
|
163
163
|
if (this.container && evt.target instanceof Node && this.container.contains(evt.target) || !this._listenersEnabled || this.props.dontCloseOnAnchorClick && evt.target instanceof Node && (_this$_getAnchor = this._getAnchor()) !== null && _this$_getAnchor !== void 0 && _this$_getAnchor.contains(evt.target) ||
|
|
164
164
|
// ignore clicks in shadow DOM, e.g., Grammarly suggestions
|
|
165
|
-
evt.target instanceof Element && evt.target.shadowRoot
|
|
165
|
+
evt.target instanceof Element && evt.target.shadowRoot) {
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
168
|
this.props.onOutsideClick(evt);
|
|
@@ -329,7 +329,7 @@ class Popup extends PureComponent {
|
|
|
329
329
|
// prevent bubbling through portal
|
|
330
330
|
onClick: stop,
|
|
331
331
|
// This handler only blocks bubbling through React portal
|
|
332
|
-
role:
|
|
332
|
+
role: 'presentation',
|
|
333
333
|
ref: this.portalRef,
|
|
334
334
|
children: [this.shouldUseShortcuts() && jsx(Shortcuts, {
|
|
335
335
|
map: this.shortcutsMap,
|
|
@@ -352,7 +352,7 @@ class Popup extends PureComponent {
|
|
|
352
352
|
onMouseDown: onMouseDown,
|
|
353
353
|
onMouseUp: onMouseUp,
|
|
354
354
|
// mouse handlers are used to track clicking on inner elements
|
|
355
|
-
role:
|
|
355
|
+
role: 'presentation',
|
|
356
356
|
children: this.getInternalContent()
|
|
357
357
|
})
|
|
358
358
|
}), this.getContainer() || document.body)]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
export declare const PopupTargetContext: import("react").Context<string | Element | undefined>;
|
|
3
3
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
4
|
id: string;
|
|
@@ -40,9 +40,7 @@ const getPositionArea = direction => {
|
|
|
40
40
|
return ['block-end span-inline-end', '--bottom-right'];
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const getPositionFallbacks = directions =>
|
|
44
|
-
return directions.slice(1).map(direction => getPositionArea(direction)[1]).join(', ');
|
|
45
|
-
};
|
|
43
|
+
const getPositionFallbacks = directions => directions.slice(1).map(direction => getPositionArea(direction)[1]).join(', ');
|
|
46
44
|
const setCSSAnchorPositioning = _ref => {
|
|
47
45
|
let {
|
|
48
46
|
popup,
|
|
@@ -60,7 +58,7 @@ const setCSSAnchorPositioning = _ref => {
|
|
|
60
58
|
}
|
|
61
59
|
popup.style.setProperty('position-anchor', anchorName);
|
|
62
60
|
const calculatedMinWidth = calculateMinWidth(getRect(anchor).width, minWidth);
|
|
63
|
-
if (calculatedMinWidth
|
|
61
|
+
if (calculatedMinWidth) {
|
|
64
62
|
popup.style.minWidth = "".concat(calculatedMinWidth, "px");
|
|
65
63
|
}
|
|
66
64
|
if (top) {
|
|
@@ -6,7 +6,7 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
7
|
|
|
8
8
|
function getScrollingCoordinates(container) {
|
|
9
|
-
if (container
|
|
9
|
+
if (container) {
|
|
10
10
|
return {
|
|
11
11
|
top: container.scrollTop,
|
|
12
12
|
left: container.scrollLeft
|
|
@@ -80,7 +80,7 @@ function getPositionStyles(popup, anchorRect, anchorLeft, anchorTop, offset) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
function verticalOverflow(styles, scrollingCoordinates, attrs) {
|
|
83
|
-
const containerHeight = attrs.container
|
|
83
|
+
const containerHeight = attrs.container ? attrs.container.clientHeight : getWindowHeight();
|
|
84
84
|
const viewportMinX = scrollingCoordinates.top + attrs.sidePadding;
|
|
85
85
|
const viewportMaxX = scrollingCoordinates.top + containerHeight - attrs.sidePadding;
|
|
86
86
|
const topOverflow = Math.max(viewportMinX - styles.top, 0);
|
|
@@ -90,7 +90,7 @@ function verticalOverflow(styles, scrollingCoordinates, attrs) {
|
|
|
90
90
|
return topOverflow + bottomOverflow;
|
|
91
91
|
}
|
|
92
92
|
function horizontalOverflow(styles, scrollingCoordinates, attrs) {
|
|
93
|
-
const containerWidth = attrs.container
|
|
93
|
+
const containerWidth = attrs.container ? attrs.container.clientWidth : window.innerWidth;
|
|
94
94
|
const viewportMinY = scrollingCoordinates.left + attrs.sidePadding;
|
|
95
95
|
const viewportMaxY = scrollingCoordinates.left + containerWidth - attrs.sidePadding;
|
|
96
96
|
const leftOverflow = Math.max(viewportMinY - styles.left, 0);
|
|
@@ -122,11 +122,11 @@ function handleTopOffScreen(_ref) {
|
|
|
122
122
|
RIGHT_TOP,
|
|
123
123
|
LEFT_TOP
|
|
124
124
|
} = Directions;
|
|
125
|
-
const openedToTop = direction
|
|
125
|
+
const openedToTop = direction && [TOP_LEFT, TOP_RIGHT, TOP_CENTER, RIGHT_TOP, LEFT_TOP].includes(direction);
|
|
126
126
|
if (!openedToTop) {
|
|
127
127
|
return styles;
|
|
128
128
|
}
|
|
129
|
-
const isAttachedToAnchorTop = direction
|
|
129
|
+
const isAttachedToAnchorTop = direction && [TOP_LEFT, TOP_CENTER, TOP_RIGHT].includes(direction);
|
|
130
130
|
const attachingPointY = isAttachedToAnchorTop ? anchorRect.top : anchorRect.bottom;
|
|
131
131
|
const effectiveHeight = maxHeight && typeof maxHeight === 'number' ? Math.min(popupScrollHeight, maxHeight) : popupScrollHeight;
|
|
132
132
|
const hypotheticalTop = attachingPointY - effectiveHeight;
|
|
@@ -174,7 +174,8 @@ function maxHeightForDirection(direction, anchorNode, containerNode) {
|
|
|
174
174
|
function calculateMinWidth(anchorWidth, minWidth) {
|
|
175
175
|
if (minWidth === MinWidth.TARGET || minWidth === 'target') {
|
|
176
176
|
return anchorWidth;
|
|
177
|
-
}
|
|
177
|
+
}
|
|
178
|
+
if (minWidth) {
|
|
178
179
|
return anchorWidth < minWidth ? minWidth : anchorWidth;
|
|
179
180
|
}
|
|
180
181
|
return null;
|
|
@@ -199,8 +200,8 @@ function position(attrs) {
|
|
|
199
200
|
left: 0
|
|
200
201
|
};
|
|
201
202
|
let chosenDirection = null;
|
|
202
|
-
const containerRect = container
|
|
203
|
-
const defaultAnchor = container
|
|
203
|
+
const containerRect = container ? getRect(container) : defaultcontainerRect;
|
|
204
|
+
const defaultAnchor = container ? container : document.body;
|
|
204
205
|
const anchorRect = getRect(isMounted(anchor) ? anchor : defaultAnchor);
|
|
205
206
|
const scroll = getScrollingCoordinates(container);
|
|
206
207
|
const anchorLeft = anchorRect.left + scroll.left + left - containerRect.left;
|
|
@@ -259,7 +260,7 @@ function position(attrs) {
|
|
|
259
260
|
});
|
|
260
261
|
}
|
|
261
262
|
const newMinWidth = calculateMinWidth(anchorRect.width, minWidth);
|
|
262
|
-
if (newMinWidth
|
|
263
|
+
if (newMinWidth) {
|
|
263
264
|
styles.minWidth = newMinWidth;
|
|
264
265
|
}
|
|
265
266
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
2
|
-
import Popup, { BasePopupProps } from '../popup/popup';
|
|
3
|
-
import List, { ListProps as ListPropsType } from '../list/list';
|
|
4
|
-
import { ListDataItem } from '../list/consts';
|
|
1
|
+
import { type SyntheticEvent } from 'react';
|
|
2
|
+
import Popup, { type BasePopupProps } from '../popup/popup';
|
|
3
|
+
import List, { type ListProps as ListPropsType } from '../list/list';
|
|
4
|
+
import { type ListDataItem } from '../list/consts';
|
|
5
5
|
export interface PopupMenuProps<T = unknown> extends Omit<ListPropsType<T>, 'maxHeight' | 'hidden'>, Omit<BasePopupProps, 'onMouseOut'> {
|
|
6
6
|
closeOnSelect: boolean;
|
|
7
7
|
}
|
|
@@ -34,7 +34,7 @@ import 'util-deprecate';
|
|
|
34
34
|
import 'memoize-one';
|
|
35
35
|
import '../global/memoize.js';
|
|
36
36
|
import '../global/create-stateful-context.js';
|
|
37
|
-
import '../list/
|
|
37
|
+
import '../list/list-item.js';
|
|
38
38
|
import '../avatar/avatar.js';
|
|
39
39
|
import '../global/url.js';
|
|
40
40
|
import '../_helpers/avatar-info.js';
|
|
@@ -44,21 +44,21 @@ import '../checkbox/checkbox.js';
|
|
|
44
44
|
import '@jetbrains/icons/checkmark-12px';
|
|
45
45
|
import '@jetbrains/icons/remove-12px';
|
|
46
46
|
import '../icon/icon.js';
|
|
47
|
-
import '../icon/
|
|
48
|
-
import '../_helpers/
|
|
49
|
-
import '../global/
|
|
47
|
+
import '../icon/icon.constants.js';
|
|
48
|
+
import '../_helpers/icon-svg.js';
|
|
49
|
+
import '../global/compose-refs.js';
|
|
50
50
|
import '../control-help/control-help.js';
|
|
51
51
|
import '../link/link.js';
|
|
52
|
-
import '../link/
|
|
52
|
+
import '../link/clickable-link.js';
|
|
53
53
|
import '../_helpers/link.js';
|
|
54
54
|
import '../_helpers/list.js';
|
|
55
55
|
import '../list/consts.js';
|
|
56
|
-
import '../list/
|
|
57
|
-
import '../list/
|
|
56
|
+
import '../list/list.classes.js';
|
|
57
|
+
import '../list/list-custom.js';
|
|
58
58
|
import '../global/get-event-key.js';
|
|
59
|
-
import '../list/
|
|
60
|
-
import '../list/
|
|
61
|
-
import '../list/
|
|
59
|
+
import '../list/list-title.js';
|
|
60
|
+
import '../list/list-separator.js';
|
|
61
|
+
import '../list/list-hint.js';
|
|
62
62
|
|
|
63
63
|
const _excluded = ["className"];
|
|
64
64
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, PureComponent } from 'react';
|
|
1
|
+
import { type HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
export interface ProgressBarProps extends HTMLAttributes<HTMLElement> {
|
|
3
3
|
/**
|
|
4
4
|
* A floating point number that specifies minimum completion rate for a task to be considered
|
package/components/query-assist/{query-assist__suggestions.js → query-assist-suggestions.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'core-js/modules/es.symbol.description.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '../list/list.js';
|
|
4
|
-
export { Q as default } from '../_helpers/query-
|
|
4
|
+
export { Q as default } from '../_helpers/query-assist-suggestions.js';
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
6
|
import 'core-js/modules/es.string.trim.js';
|
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
@@ -25,7 +25,7 @@ import 'combokeys';
|
|
|
25
25
|
import '../global/sniffer.js';
|
|
26
26
|
import 'sniffr';
|
|
27
27
|
import '../global/create-stateful-context.js';
|
|
28
|
-
import '../list/
|
|
28
|
+
import '../list/list-item.js';
|
|
29
29
|
import '../avatar/avatar.js';
|
|
30
30
|
import '../global/url.js';
|
|
31
31
|
import 'core-js/modules/es.string.replace.js';
|
|
@@ -36,18 +36,18 @@ import '../checkbox/checkbox.js';
|
|
|
36
36
|
import '@jetbrains/icons/checkmark-12px';
|
|
37
37
|
import '@jetbrains/icons/remove-12px';
|
|
38
38
|
import '../icon/icon.js';
|
|
39
|
-
import '../icon/
|
|
40
|
-
import '../_helpers/
|
|
41
|
-
import '../global/
|
|
39
|
+
import '../icon/icon.constants.js';
|
|
40
|
+
import '../_helpers/icon-svg.js';
|
|
41
|
+
import '../global/compose-refs.js';
|
|
42
42
|
import '../control-help/control-help.js';
|
|
43
43
|
import '../link/link.js';
|
|
44
|
-
import '../link/
|
|
44
|
+
import '../link/clickable-link.js';
|
|
45
45
|
import '../_helpers/link.js';
|
|
46
46
|
import '../_helpers/list.js';
|
|
47
47
|
import '../list/consts.js';
|
|
48
|
-
import '../list/
|
|
49
|
-
import '../list/
|
|
48
|
+
import '../list/list.classes.js';
|
|
49
|
+
import '../list/list-custom.js';
|
|
50
50
|
import '../global/get-event-key.js';
|
|
51
|
-
import '../list/
|
|
52
|
-
import '../list/
|
|
53
|
-
import '../list/
|
|
51
|
+
import '../list/list-title.js';
|
|
52
|
+
import '../list/list-separator.js';
|
|
53
|
+
import '../list/list-hint.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react';
|
|
1
|
+
import { Component, type ComponentRef, type ReactNode, type SyntheticEvent } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import Caret, { Position } from '../caret/caret';
|
|
3
|
+
import Caret, { type Position } from '../caret/caret';
|
|
4
4
|
import PopupMenu from '../popup-menu/popup-menu';
|
|
5
5
|
import Button from '../button/button';
|
|
6
6
|
import Icon from '../icon/icon';
|
|
7
7
|
import { Size } from '../input/input';
|
|
8
|
-
import { ShortcutsMap } from '../shortcuts/core';
|
|
9
|
-
import { QueryAssistSuggestion, SuggestionItem } from './query-
|
|
8
|
+
import { type ShortcutsMap } from '../shortcuts/core';
|
|
9
|
+
import { type QueryAssistSuggestion, type SuggestionItem } from './query-assist-suggestions';
|
|
10
10
|
declare function noop(): void;
|
|
11
11
|
export interface QueryAssistTranslations {
|
|
12
12
|
searchTitle: string;
|