@jetbrains/ring-ui 5.0.0-beta.2 → 5.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/babel.config.js +1 -12
- package/components/alert/alert.css +5 -15
- package/components/alert/alert.d.ts +3 -0
- package/components/alert/{alert.jsx → alert.js} +8 -7
- package/components/alert/container.css +0 -2
- package/components/alert/{container.jsx → container.js} +0 -0
- package/components/alert-service/alert-service.examples.css +5 -3
- package/components/alert-service/{alert-service.jsx → alert-service.js} +1 -1
- package/components/analytics/analytics__ga-plugin.d.ts +1 -1
- package/components/analytics/analytics__ga-plugin.js +11 -3
- package/components/auth/auth__core.d.ts +3 -1
- package/components/auth/auth__core.js +47 -16
- package/components/auth/down-notification.css +1 -1
- package/components/auth/{down-notification.jsx → down-notification.js} +0 -0
- package/components/auth/{iframe-flow.jsx → iframe-flow.js} +0 -0
- package/components/auth-dialog/auth-dialog.d.ts +11 -0
- package/components/auth-dialog/{auth-dialog.jsx → auth-dialog.js} +33 -2
- package/components/auth-dialog-service/{auth-dialog-service.jsx → auth-dialog-service.js} +1 -1
- package/components/autofocus-ng/autofocus-ng.js +1 -1
- package/components/autofocus-ng/autofocus-ng.test.js +1 -1
- package/components/avatar/{avatar-example-datauri.jsx → avatar-example-datauri.js} +0 -0
- package/components/avatar/avatar.d.ts +1 -0
- package/components/avatar/{avatar.jsx → avatar.js} +0 -0
- package/components/avatar/{fallback-avatar.jsx → fallback-avatar.js} +2 -2
- package/components/badge/{badge.jsx → badge.js} +0 -0
- package/components/button/button.css +95 -206
- package/components/button/button.d.ts +8 -8
- package/components/button/{button.jsx → button.js} +6 -8
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +4 -7
- package/components/button-group/button-group.css +138 -19
- package/components/button-group/button-group.d.ts +4 -1
- package/components/button-group/{button-group.jsx → button-group.js} +3 -3
- package/components/button-group/{caption.jsx → caption.js} +0 -0
- package/components/button-group-ng/button-group-ng.css +1 -0
- package/components/button-group-ng/button-group-ng.examples.js +1 -1
- package/components/button-ng/button-ng.examples.js +6 -7
- package/components/button-ng/button-ng.js +6 -25
- package/components/button-set/button-set.css +1 -0
- package/components/button-set/{button-set.jsx → button-set.js} +0 -0
- package/components/button-toolbar/button-toolbar.css +2 -0
- package/components/button-toolbar/{button-toolbar.jsx → button-toolbar.js} +0 -0
- package/components/checkbox/checkbox.css +16 -13
- package/components/checkbox/{checkbox.jsx → checkbox.js} +1 -1
- package/components/checkbox-ng/checkbox-ng.js +1 -1
- package/components/code/{code.jsx → code.js} +0 -0
- package/components/confirm/{confirm.jsx → confirm.js} +0 -0
- package/components/confirm-service/{confirm-service.jsx → confirm-service.js} +1 -1
- package/components/content-layout/{content-layout.jsx → content-layout.js} +0 -0
- package/components/content-layout/{sidebar.jsx → sidebar.js} +0 -0
- package/components/contenteditable/{contenteditable.jsx → contenteditable.js} +0 -0
- package/components/data-list/data-list.d.ts +4 -8
- package/components/data-list/{data-list.jsx → data-list.js} +0 -0
- package/components/data-list/{data-list.mock.jsx → data-list.mock.js} +0 -0
- package/components/data-list/{item.jsx → item.js} +0 -0
- package/components/data-list/{title.jsx → title.js} +0 -0
- package/components/date-picker/{date-input.jsx → date-input.js} +2 -1
- package/components/date-picker/date-picker.css +3 -1
- package/components/date-picker/{date-picker.jsx → date-picker.js} +0 -0
- package/components/date-picker/{date-popup.jsx → date-popup.js} +0 -1
- package/components/date-picker/{day.jsx → day.js} +0 -0
- package/components/date-picker/{month-names.jsx → month-names.js} +0 -0
- package/components/date-picker/{month-slider.jsx → month-slider.js} +0 -0
- package/components/date-picker/{month.jsx → month.js} +0 -0
- package/components/date-picker/{months.jsx → months.js} +0 -0
- package/components/date-picker/{weekdays.jsx → weekdays.js} +0 -0
- package/components/date-picker/{years.jsx → years.js} +0 -0
- package/components/dialog/dialog.css +10 -3
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/{dialog.jsx → dialog.js} +0 -0
- package/components/dialog-ng/dialog-ng__template.js +1 -0
- package/components/dropdown/{anchor.jsx → anchor.js} +0 -0
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/{dropdown.jsx → dropdown.js} +0 -0
- package/components/dropdown-menu/{dropdown-menu.jsx → dropdown-menu.js} +0 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/error-bubble/{error-bubble.jsx → error-bubble.js} +0 -0
- package/components/error-message/{error-message.jsx → error-message.js} +0 -0
- package/components/footer/{footer.jsx → footer.js} +0 -0
- package/components/global/angular-component-factory.js +1 -1
- package/components/global/controls-height.d.ts +7 -0
- package/components/global/controls-height.js +8 -0
- package/components/global/{create-stateful-context.jsx → create-stateful-context.js} +0 -0
- package/components/global/{focus-sensor-hoc.jsx → focus-sensor-hoc.js} +0 -0
- package/components/global/promise-with-timeout.d.ts +2 -1
- package/components/global/promise-with-timeout.js +5 -2
- package/components/global/{react-dom-renderer.jsx → react-dom-renderer.js} +0 -0
- package/components/global/react-render-adapter.d.ts +29 -0
- package/components/global/react-render-adapter.js +36 -0
- package/components/global/rerender-hoc.d.ts +5 -9
- package/components/global/rerender-hoc.js +4 -2
- package/components/global/theme.d.ts +7 -20
- package/components/global/theme.js +40 -0
- package/components/global/variables.css +30 -26
- package/components/global/variables.d.ts +10 -9
- package/components/global/variables_dark.css +67 -0
- package/components/grid/{col.jsx → col.js} +0 -0
- package/components/grid/{grid.jsx → grid.js} +0 -0
- package/components/grid/{row.jsx → row.js} +0 -0
- package/components/group/{group.jsx → group.js} +0 -0
- package/components/header/header.css +19 -10
- package/components/header/header.d.ts +7 -69
- package/components/header/{header.jsx → header.js} +10 -9
- package/components/header/{logo.jsx → logo.js} +0 -0
- package/components/header/profile.d.ts +3 -3
- package/components/header/{profile.jsx → profile.js} +0 -0
- package/components/header/{services-link.jsx → services-link.js} +0 -0
- package/components/header/services.css +3 -3
- package/components/header/services.d.ts +5 -0
- package/components/header/{services.jsx → services.js} +8 -2
- package/components/header/{smart-profile.jsx → smart-profile.js} +0 -0
- package/components/header/{smart-services.jsx → smart-services.js} +0 -0
- package/components/header/tray-icon.d.ts +18 -575
- package/components/header/{tray-icon.jsx → tray-icon.js} +0 -0
- package/components/header/{tray.jsx → tray.js} +0 -0
- package/components/heading/heading.css +4 -1
- package/components/heading/{heading.jsx → heading.js} +0 -0
- package/components/icon/icon.css +1 -1
- package/components/icon/{icon.jsx → icon.js} +0 -0
- package/components/icon/{icon__svg.jsx → icon__svg.js} +0 -0
- package/components/input/input.css +86 -149
- package/components/input/input.d.ts +15 -17
- package/components/input/{input.jsx → input.js} +29 -33
- package/components/input-ng/input-ng.examples.js +1 -1
- package/components/input-ng/input-ng.js +45 -49
- package/components/island/adaptive-island-hoc.d.ts +6 -10
- package/components/island/{adaptive-island-hoc.jsx → adaptive-island-hoc.js} +2 -2
- package/components/island/content.d.ts +33 -2
- package/components/island/{content.jsx → content.js} +7 -11
- package/components/island/{header.jsx → header.js} +7 -4
- package/components/island/island.css +8 -5
- package/components/island/island.d.ts +6 -10
- package/components/island/{island.jsx → island.js} +0 -0
- package/components/island-legacy/{content-legacy.jsx → content-legacy.js} +0 -0
- package/components/island-legacy/{header-legacy.jsx → header-legacy.js} +0 -0
- package/components/island-legacy/island-legacy.css +1 -1
- package/components/island-legacy/{island-legacy.jsx → island-legacy.js} +0 -0
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/{clickableLink.jsx → clickableLink.js} +0 -0
- package/components/link/link.css +0 -2
- package/components/link/link.d.ts +14 -22
- package/components/link/{link.jsx → link.js} +0 -0
- package/components/list/consts.d.ts +3 -1
- package/components/list/list.css +1 -0
- package/components/list/list.d.ts +3 -1
- package/components/list/{list.jsx → list.js} +12 -13
- package/components/list/{list__custom.jsx → list__custom.js} +0 -0
- package/components/list/{list__hint.jsx → list__hint.js} +0 -0
- package/components/list/{list__item.jsx → list__item.js} +0 -0
- package/components/list/{list__link.jsx → list__link.js} +2 -2
- package/components/list/{list__separator.jsx → list__separator.js} +0 -0
- package/components/list/{list__title.jsx → list__title.js} +0 -0
- package/components/loader/{loader.jsx → loader.js} +0 -0
- package/components/loader-inline/loader-inline.css +14 -0
- package/components/loader-inline/loader-inline.d.ts +4 -41
- package/components/loader-inline/{loader-inline.jsx → loader-inline.js} +3 -11
- package/components/loader-inline-ng/loader-inline-ng.js +1 -17
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -11
- package/components/loader-screen/{loader-screen.jsx → loader-screen.js} +0 -0
- package/components/login-dialog/{login-dialog.jsx → login-dialog.js} +0 -0
- package/components/login-dialog/{service.jsx → service.js} +1 -1
- package/components/markdown/code.d.ts +6 -13
- package/components/markdown/{code.jsx → code.js} +2 -2
- package/components/markdown/heading.d.ts +5 -9
- package/components/markdown/{heading.jsx → heading.js} +2 -2
- package/components/markdown/link.d.ts +4 -8
- package/components/markdown/{link.jsx → link.js} +1 -1
- package/components/markdown/markdown.d.ts +2 -3
- package/components/markdown/{markdown.jsx → markdown.js} +14 -11
- package/components/message/message.css +18 -28
- package/components/message/message.d.ts +3 -0
- package/components/message/{message.jsx → message.js} +42 -22
- package/components/pager/{pager.jsx → pager.js} +2 -8
- package/components/panel/{panel.jsx → panel.js} +0 -0
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.d.ts +7 -1
- package/components/popup/{popup.jsx → popup.js} +4 -2
- package/components/popup/popup.target.d.ts +2 -1
- package/components/popup/{popup.target.jsx → popup.target.js} +0 -0
- package/components/popup/position.d.ts +1 -1
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.d.ts +1 -0
- package/components/popup-menu/{popup-menu.jsx → popup-menu.js} +0 -0
- package/components/progress-bar/progress-bar.css +8 -12
- package/components/progress-bar/progress-bar.d.ts +0 -4
- package/components/progress-bar/{progress-bar.jsx → progress-bar.js} +1 -6
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -2
- package/components/query-assist/query-assist.css +48 -64
- package/components/query-assist/query-assist.d.ts +5 -14
- package/components/query-assist/{query-assist.jsx → query-assist.js} +6 -12
- package/components/query-assist/{query-assist__suggestions.jsx → query-assist__suggestions.js} +0 -0
- package/components/radio/radio.css +10 -4
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/{radio.jsx → radio.js} +0 -0
- package/components/radio/{radio__item.jsx → radio__item.js} +0 -0
- package/components/select/select-popup.css +5 -1
- package/components/select/select.css +23 -38
- package/components/select/select.d.ts +16 -20
- package/components/select/{select.jsx → select.js} +37 -47
- package/components/select/{select__filter.jsx → select__filter.js} +2 -1
- package/components/select/select__popup.d.ts +1 -1
- package/components/select/{select__popup.jsx → select__popup.js} +1 -2
- package/components/select-ng/select-ng.examples.js +1 -0
- package/components/select-ng/select-ng.js +19 -6
- package/components/select-ng/select-ng.test.js +1 -1
- package/components/select-ng/select-ng__lazy.js +13 -9
- package/components/select-ng/select-ng__lazy.test.js +3 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/components/shortcuts/{shortcuts-hoc.jsx → shortcuts-hoc.js} +0 -0
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.examples.js +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/{tab-trap.jsx → tab-trap.js} +0 -0
- package/components/table/{cell.jsx → cell.js} +0 -0
- package/components/table/disable-hover-hoc.d.ts +4 -8
- package/components/table/{disable-hover-hoc.jsx → disable-hover-hoc.js} +0 -0
- package/components/table/{header-cell.jsx → header-cell.js} +0 -0
- package/components/table/header.d.ts +8 -1
- package/components/table/{header.jsx → header.js} +0 -0
- package/components/table/{multitable.jsx → multitable.js} +0 -0
- package/components/table/row-with-focus-sensor.d.ts +4 -4
- package/components/table/{row-with-focus-sensor.jsx → row-with-focus-sensor.js} +4 -4
- package/components/table/row.d.ts +1 -0
- package/components/table/{row.jsx → row.js} +0 -0
- package/components/table/{selection-shortcuts-hoc.jsx → selection-shortcuts-hoc.js} +0 -0
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/{smart-table.jsx → smart-table.js} +7 -3
- package/components/table/table.d.ts +4 -8
- package/components/table/{table.jsx → table.js} +0 -0
- package/components/tabs/{collapsible-more.jsx → collapsible-more.js} +2 -2
- package/components/tabs/{collapsible-tab.jsx → collapsible-tab.js} +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/{collapsible-tabs.jsx → collapsible-tabs.js} +1 -1
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/{custom-item.jsx → custom-item.js} +0 -0
- package/components/tabs/dumb-tabs.d.ts +6 -109
- package/components/tabs/{dumb-tabs.jsx → dumb-tabs.js} +5 -9
- package/components/tabs/smart-tabs.d.ts +4 -4
- package/components/tabs/{smart-tabs.jsx → smart-tabs.js} +9 -3
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/{tab-link.jsx → tab-link.js} +0 -0
- package/components/tabs/tab.d.ts +3 -1
- package/components/tabs/{tab.jsx → tab.js} +0 -0
- package/components/tabs/tabs.css +17 -28
- package/components/tabs-ng/tabs-ng.examples.js +11 -3
- package/components/tabs-ng/tabs-ng.js +1 -4
- package/components/tabs-ng/tabs-ng__template.js +1 -1
- package/components/tag/tag.css +31 -8
- package/components/tag/tag.d.ts +1 -0
- package/components/tag/{tag.jsx → tag.js} +2 -2
- package/components/tags-input/tags-input.css +10 -4
- package/components/tags-input/tags-input.d.ts +4 -8
- package/components/tags-input/{tags-input.jsx → tags-input.js} +0 -0
- package/components/tags-list/tags-list.d.ts +1 -1
- package/components/tags-list/{tags-list.jsx → tags-list.js} +0 -0
- package/components/text/{text.jsx → text.js} +0 -0
- package/components/toggle/toggle.css +61 -35
- package/components/toggle/toggle.d.ts +9 -89
- package/components/toggle/{toggle.jsx → toggle.js} +7 -7
- package/components/tooltip/tooltip.css +7 -0
- package/components/tooltip/tooltip.d.ts +1 -0
- package/components/tooltip/{tooltip.jsx → tooltip.js} +3 -2
- package/components/tooltip-ng/tooltip-ng.js +13 -10
- package/components/user-agreement/service.d.ts +14 -62
- package/components/user-agreement/{service.jsx → service.js} +1 -1
- package/components/user-agreement/{user-agreement.jsx → user-agreement.js} +1 -1
- package/components/user-card/{card.jsx → card.js} +0 -0
- package/components/user-card/{smart-user-card-tooltip.jsx → smart-user-card-tooltip.js} +0 -0
- package/components/user-card/{tooltip.jsx → tooltip.js} +0 -0
- package/dist/_helpers/anchor.js +3 -3
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +5 -8
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +3 -2
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-inline.js +3 -0
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +6 -3
- package/dist/_helpers/services-link.js +2 -2
- package/dist/_helpers/sidebar.js +3 -2
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +55 -0
- package/dist/_helpers/title.js +2 -1
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +35 -21
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +23 -8
- package/dist/analytics/analytics.js +4 -3
- package/dist/analytics/analytics__custom-plugin.js +2 -1
- package/dist/analytics/analytics__fus-plugin.js +1 -0
- package/dist/analytics/analytics__ga-plugin.d.ts +1 -1
- package/dist/analytics/analytics__ga-plugin.js +15 -7
- package/dist/analytics/analytics__plugin-utils.js +4 -3
- package/dist/analytics-ng/analytics-ng.js +3 -2
- package/dist/auth/auth.js +22 -9
- package/dist/auth/auth__core.d.ts +3 -1
- package/dist/auth/auth__core.js +87 -38
- package/dist/auth/background-flow.js +2 -1
- package/dist/auth/down-notification.js +21 -8
- package/dist/auth/iframe-flow.js +4 -1
- package/dist/auth/landing.js +26 -13
- package/dist/auth/request-builder.js +1 -0
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +22 -7
- package/dist/auth/token-validator.js +2 -0
- package/dist/auth/window-flow.js +2 -1
- package/dist/auth-dialog/auth-dialog.d.ts +11 -0
- package/dist/auth-dialog/auth-dialog.js +55 -8
- package/dist/auth-dialog-service/auth-dialog-service.js +5 -2
- package/dist/auth-ng/auth-ng.js +23 -10
- package/dist/autofocus-ng/autofocus-ng.js +2 -1
- package/dist/avatar/avatar-example-datauri.js +1 -23
- package/dist/avatar/avatar.d.ts +1 -0
- package/dist/avatar/avatar.js +5 -3
- package/dist/avatar/fallback-avatar.js +6 -5
- package/dist/avatar-editor-ng/avatar-editor-ng.js +22 -7
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
- package/dist/avatar-ng/avatar-ng.js +3 -0
- package/dist/badge/badge.js +1 -0
- package/dist/badge-ng/badge-ng.js +2 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +4 -28
- package/dist/button/button.d.ts +8 -8
- package/dist/button/button.js +8 -8
- package/dist/button/button__classes.d.ts +1 -1
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +4 -1
- package/dist/button-group/button-group.js +5 -3
- package/dist/button-group-ng/button-group-ng.js +2 -1
- package/dist/button-ng/button-ng.js +9 -40
- package/dist/button-set-ng/button-set-ng.js +1 -1
- package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -0
- package/dist/caret/caret.js +2 -0
- package/dist/checkbox/checkbox.js +3 -1
- package/dist/checkbox-ng/checkbox-ng.js +4 -21
- package/dist/code/code.js +4 -3
- package/dist/confirm/confirm.js +7 -5
- package/dist/confirm-ng/confirm-ng.js +4 -1
- package/dist/confirm-service/confirm-service.js +5 -2
- package/dist/content-layout/content-layout.js +1 -0
- package/dist/content-layout/sidebar.js +1 -0
- package/dist/data-list/data-list.d.ts +4 -8
- package/dist/data-list/data-list.js +5 -8
- package/dist/data-list/data-list.mock.js +1 -0
- package/dist/data-list/item.js +11 -14
- package/dist/data-list/selection.js +1 -0
- package/dist/data-list/title.js +3 -1
- package/dist/data-list-ng/data-list-ng.js +6 -8
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.js +8 -5
- package/dist/date-picker/date-picker.js +11 -9
- package/dist/date-picker/date-popup.js +5 -4
- package/dist/date-picker/day.js +1 -0
- package/dist/date-picker/month-names.js +1 -0
- package/dist/date-picker/month-slider.js +1 -0
- package/dist/date-picker/month.js +1 -0
- package/dist/date-picker/months.js +1 -0
- package/dist/date-picker/years.js +1 -0
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.js +5 -3
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
- package/dist/dialog-ng/dialog-ng.js +9 -6
- package/dist/dialog-ng/dialog-ng__template.js +1 -69
- package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
- package/dist/dropdown/anchor.js +3 -1
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +3 -1
- package/dist/dropdown-menu/dropdown-menu.js +5 -3
- package/dist/error-bubble/error-bubble.js +3 -1
- package/dist/error-message/error-message.js +3 -1
- package/dist/error-message-ng/error-message-ng.js +3 -21
- package/dist/footer/footer.js +1 -0
- package/dist/footer-ng/footer-ng.js +3 -14
- package/dist/form-ng/form-ng.js +2 -4
- package/dist/global/angular-component-factory.js +8 -6
- package/dist/global/controls-height.d.ts +7 -0
- package/dist/global/controls-height.js +13 -0
- package/dist/global/create-stateful-context.js +3 -2
- package/dist/global/data-tests.js +2 -0
- package/dist/global/dom.js +1 -0
- package/dist/global/focus-sensor-hoc.js +1 -0
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/inject-styles.js +5 -7
- package/dist/global/listeners.js +1 -0
- package/dist/global/memoize.js +2 -0
- package/dist/global/normalize-indent.js +2 -0
- package/dist/global/promise-with-timeout.d.ts +2 -1
- package/dist/global/promise-with-timeout.js +6 -2
- package/dist/global/react-dom-renderer.js +1 -0
- package/dist/global/react-render-adapter.d.ts +29 -0
- package/dist/global/react-render-adapter.js +41 -0
- package/dist/global/rerender-hoc.d.ts +5 -9
- package/dist/global/rerender-hoc.js +7 -3
- package/dist/global/theme.d.ts +7 -20
- package/dist/global/theme.js +22 -62
- package/dist/global/trivial-template-tag.js +2 -0
- package/dist/global/url.js +3 -1
- package/dist/global/variables.d.ts +10 -9
- package/dist/grid/col.js +2 -1
- package/dist/grid/grid.js +1 -0
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.d.ts +7 -69
- package/dist/header/header.js +31 -31
- package/dist/header/logo.js +2 -0
- package/dist/header/profile.d.ts +3 -3
- package/dist/header/profile.js +6 -4
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.d.ts +5 -0
- package/dist/header/services.js +13 -3
- package/dist/header/smart-profile.js +27 -27
- package/dist/header/smart-services.js +23 -24
- package/dist/header/tray-icon.d.ts +18 -575
- package/dist/header/tray-icon.js +6 -4
- package/dist/heading/heading.js +3 -3
- package/dist/http/http.js +4 -2
- package/dist/http/http.mock.js +2 -0
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__user.js +4 -2
- package/dist/hub-source/hub-source__users-groups.js +3 -2
- package/dist/icon/icon.js +3 -3
- package/dist/icon/icon__svg.js +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon-ng/icon-ng.js +7 -5
- package/dist/input/input.d.ts +15 -17
- package/dist/input/input.js +35 -42
- package/dist/input-ng/input-ng.js +8 -64
- package/dist/island/adaptive-island-hoc.d.ts +6 -10
- package/dist/island/adaptive-island-hoc.js +8 -5
- package/dist/island/content.d.ts +33 -2
- package/dist/island/content.js +10 -13
- package/dist/island/header.js +10 -6
- package/dist/island/island.d.ts +6 -10
- package/dist/island/island.js +1 -0
- package/dist/island-ng/island-content-ng.js +2 -16
- package/dist/island-ng/island-header-ng.js +2 -8
- package/dist/island-ng/island-ng-class-fixer.js +2 -0
- package/dist/island-ng/island-ng.js +2 -8
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/clickableLink.js +1 -0
- package/dist/link/link.d.ts +14 -22
- package/dist/link/link.js +4 -3
- package/dist/link-ng/link-ng.js +1 -4
- package/dist/list/consts.d.ts +3 -1
- package/dist/list/list.d.ts +3 -1
- package/dist/list/list.js +30 -23
- package/dist/list/list__custom.js +1 -0
- package/dist/list/list__item.js +6 -4
- package/dist/list/list__link.js +3 -1
- package/dist/list/list__users-groups-source.js +4 -2
- package/dist/loader/loader.js +1 -0
- package/dist/loader/loader__core.js +5 -4
- package/dist/loader-inline/loader-inline.d.ts +4 -41
- package/dist/loader-inline/loader-inline.js +4 -21
- package/dist/loader-inline-ng/loader-inline-ng.js +2 -30
- package/dist/loader-ng/loader-ng.js +1 -0
- package/dist/loader-screen/loader-screen.js +1 -0
- package/dist/loader-screen-ng/loader-screen-ng.js +2 -6
- package/dist/login-dialog/login-dialog.js +4 -2
- package/dist/login-dialog/service.js +5 -2
- package/dist/markdown/code.d.ts +6 -13
- package/dist/markdown/code.js +4 -3
- package/dist/markdown/heading.d.ts +5 -9
- package/dist/markdown/heading.js +2 -2
- package/dist/markdown/link.d.ts +4 -8
- package/dist/markdown/link.js +2 -1
- package/dist/markdown/markdown.d.ts +2 -3
- package/dist/markdown/markdown.js +17 -16
- package/dist/message/message.d.ts +3 -0
- package/dist/message/message.js +56 -42
- package/dist/old-browsers-message/old-browsers-message.js +2 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +1 -0
- package/dist/old-browsers-message/white-list.js +1 -0
- package/dist/pager/pager.js +14 -15
- package/dist/pager-ng/pager-ng.js +8 -9
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +23 -10
- package/dist/place-under-ng/place-under-ng.js +3 -2
- package/dist/popup/popup.d.ts +7 -1
- package/dist/popup/popup.js +11 -5
- package/dist/popup/popup.target.d.ts +2 -1
- package/dist/popup/position.d.ts +1 -1
- package/dist/popup/position.js +3 -2
- package/dist/popup-menu/popup-menu.d.ts +1 -0
- package/dist/popup-menu/popup-menu.js +3 -1
- package/dist/progress-bar/progress-bar.d.ts +0 -4
- package/dist/progress-bar/progress-bar.js +3 -8
- package/dist/progress-bar-ng/progress-bar-ng.js +2 -1
- package/dist/promised-click-ng/promised-click-ng.js +4 -2
- package/dist/proxy-attrs/proxy-attrs.js +5 -3
- package/dist/query-assist/query-assist.d.ts +5 -14
- package/dist/query-assist/query-assist.js +19 -31
- package/dist/query-assist/query-assist__suggestions.js +3 -1
- package/dist/query-assist-ng/query-assist-ng.js +9 -10
- package/dist/radio/radio.d.ts +1 -1
- package/dist/radio/radio.js +1 -0
- package/dist/radio/radio__item.js +1 -0
- package/dist/radio-ng/radio-ng.js +2 -18
- package/dist/save-field-ng/save-field-ng.js +5 -10
- package/dist/save-field-ng/save-field-ng__template.js +1 -32
- package/dist/select/select.d.ts +16 -20
- package/dist/select/select.js +65 -77
- package/dist/select/select__filter.js +5 -3
- package/dist/select/select__popup.d.ts +1 -1
- package/dist/select/select__popup.js +12 -16
- package/dist/select-ng/select-ng.js +28 -17
- package/dist/select-ng/select-ng__lazy.js +24 -20
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/dist/shortcuts/shortcuts-hoc.js +4 -3
- package/dist/shortcuts/shortcuts.d.ts +1 -1
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +5 -2
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +1 -48
- package/dist/shortcuts-ng/shortcuts-ng.js +4 -3
- package/dist/sidebar-ng/sidebar-ng.js +4 -2
- package/dist/sidebar-ng/sidebar-ng__button-template.js +1 -18
- package/dist/sidebar-ng/sidebar-ng__template.js +1 -10
- package/dist/storage/storage.js +22 -7
- package/dist/storage/storage__fallback.js +4 -3
- package/dist/storage/storage__local.js +22 -7
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +2 -1
- package/dist/table/cell.js +1 -0
- package/dist/table/disable-hover-hoc.d.ts +4 -8
- package/dist/table/disable-hover-hoc.js +4 -3
- package/dist/table/header-cell.js +2 -0
- package/dist/table/header.d.ts +8 -1
- package/dist/table/header.js +3 -1
- package/dist/table/multitable.js +1 -0
- package/dist/table/row-with-focus-sensor.d.ts +4 -4
- package/dist/table/row-with-focus-sensor.js +16 -6
- package/dist/table/row.d.ts +1 -0
- package/dist/table/row.js +9 -7
- package/dist/table/selection-adapter.js +2 -0
- package/dist/table/selection-shortcuts-hoc.js +1 -0
- package/dist/table/selection.js +1 -0
- package/dist/table/smart-table.d.ts +1 -0
- package/dist/table/smart-table.js +14 -8
- package/dist/table/table.d.ts +4 -8
- package/dist/table/table.js +4 -2
- package/dist/table-legacy-ng/table-legacy-ng.js +16 -54
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +9 -16
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
- package/dist/table-ng/smart-table-ng.js +5 -2
- package/dist/table-ng/table-ng.js +5 -2
- package/dist/tabs/collapsible-more.js +5 -3
- package/dist/tabs/collapsible-tab.js +4 -2
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +4 -2
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +6 -109
- package/dist/tabs/dumb-tabs.js +9 -13
- package/dist/tabs/smart-tabs.d.ts +4 -4
- package/dist/tabs/smart-tabs.js +13 -9
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +1 -0
- package/dist/tabs/tab.d.ts +3 -1
- package/dist/tabs/tab.js +1 -0
- package/dist/tabs/tabs.js +4 -2
- package/dist/tabs-ng/tabs-ng.js +2 -6
- package/dist/tabs-ng/tabs-ng__template.js +1 -38
- package/dist/tag/tag.d.ts +1 -0
- package/dist/tag/tag.js +8 -6
- package/dist/tags-input/tags-input.d.ts +4 -8
- package/dist/tags-input/tags-input.js +10 -11
- package/dist/tags-input-ng/tags-input-ng.js +9 -10
- package/dist/tags-list/tags-list.d.ts +1 -1
- package/dist/tags-list/tags-list.js +4 -2
- package/dist/template-ng/template-ng.js +1 -0
- package/dist/text/text.js +1 -1
- package/dist/theme-ng/theme-ng.js +1 -0
- package/dist/toggle/toggle.d.ts +9 -89
- package/dist/toggle/toggle.js +8 -8
- package/dist/toggle-ng/toggle-ng.js +4 -3
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +8 -3
- package/dist/tooltip-ng/tooltip-ng.js +12 -6
- package/dist/user-agreement/service.d.ts +14 -62
- package/dist/user-agreement/service.js +23 -21
- package/dist/user-agreement/toolbox.eula.js +1 -160
- package/dist/user-agreement/user-agreement.js +10 -10
- package/dist/user-card/card.js +2 -0
- package/dist/user-card/smart-user-card-tooltip.js +8 -11
- package/dist/user-card/tooltip.js +3 -1
- package/dist/user-card/user-card.js +4 -7
- package/dist/user-card-ng/user-card-ng.js +7 -9
- package/package.json +78 -69
- package/webpack.config.js +0 -11
- package/components/global/conic-gradient.d.ts +0 -796
- package/components/global/conic-gradient.js +0 -21
- package/components/global/radial-gradient-mask.d.ts +0 -9
- package/components/global/radial-gradient-mask.js +0 -39
- package/components/global/supports-css.d.ts +0 -2
- package/components/global/supports-css.js +0 -14
- package/components/global/theme.jsx +0 -39
- package/components/global/variables_dark.d.ts +0 -3
- package/components/global/variables_dark.js +0 -53
- package/components/loader-inline/inject-styles.d.ts +0 -2
- package/components/loader-inline/inject-styles.js +0 -17
- package/dist/_helpers/inject-styles.js +0 -22
- package/dist/global/conic-gradient.d.ts +0 -796
- package/dist/global/conic-gradient.js +0 -35
- package/dist/global/radial-gradient-mask.d.ts +0 -9
- package/dist/global/radial-gradient-mask.js +0 -49
- package/dist/global/supports-css.d.ts +0 -2
- package/dist/global/supports-css.js +0 -20
- package/dist/global/variables_dark.d.ts +0 -3
- package/dist/global/variables_dark.js +0 -57
- package/dist/loader-inline/inject-styles.d.ts +0 -2
- package/dist/loader-inline/inject-styles.js +0 -11
package/dist/select/select.js
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
4
|
import React, { Component, Fragment } from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import PropTypes from 'prop-types';
|
|
5
|
-
import
|
|
6
|
-
import closeIcon from '@jetbrains/icons/close';
|
|
7
|
+
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
8
|
+
import closeIcon from '@jetbrains/icons/close-12px';
|
|
7
9
|
import deepEqual from 'deep-equal';
|
|
8
10
|
import '../dropdown/dropdown.js';
|
|
9
11
|
import Avatar, { Size as Size$1 } from '../avatar/avatar.js';
|
|
10
12
|
import Popup from '../popup/popup.js';
|
|
11
13
|
import List, { ActiveItemContext } from '../list/list.js';
|
|
12
|
-
import
|
|
14
|
+
import { Size, Input } from '../input/input.js';
|
|
13
15
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
14
|
-
import
|
|
16
|
+
import { Button } from '../button/button.js';
|
|
15
17
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
16
18
|
import getUID from '../global/get-uid.js';
|
|
17
19
|
import rerenderHOC from '../global/rerender-hoc.js';
|
|
18
20
|
import fuzzyHighlight from '../global/fuzzy-highlight.js';
|
|
19
|
-
import Theme from '../global/theme.js';
|
|
20
21
|
import memoize from '../global/memoize.js';
|
|
21
22
|
import { isArray } from '../global/typescript-utils.js';
|
|
23
|
+
import { ControlsHeightContext } from '../global/controls-height.js';
|
|
22
24
|
import SelectPopup from './select__popup.js';
|
|
23
25
|
import { A as Anchor } from '../_helpers/anchor.js';
|
|
26
|
+
import '@jetbrains/icons/chevron-10px';
|
|
24
27
|
import '../icon/icon.js';
|
|
25
28
|
import 'util-deprecate';
|
|
26
29
|
import '../icon/icon__constants.js';
|
|
@@ -54,7 +57,7 @@ import '../_helpers/link.js';
|
|
|
54
57
|
import '../_helpers/list.js';
|
|
55
58
|
import '../list/list__item.js';
|
|
56
59
|
import '../checkbox/checkbox.js';
|
|
57
|
-
import '@jetbrains/icons/checkmark';
|
|
60
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
58
61
|
import '@jetbrains/icons/remove-10px';
|
|
59
62
|
import '../_helpers/checkbox.js';
|
|
60
63
|
import '../list/list__custom.js';
|
|
@@ -66,14 +69,10 @@ import '../list/consts.js';
|
|
|
66
69
|
import '../global/prop-types.js';
|
|
67
70
|
import '../global/composeRefs.js';
|
|
68
71
|
import '../_helpers/input.js';
|
|
72
|
+
import '../global/react-render-adapter.js';
|
|
69
73
|
import '@jetbrains/icons/search';
|
|
70
74
|
import '../loader-inline/loader-inline.js';
|
|
71
|
-
import '../_helpers/
|
|
72
|
-
import '../global/conic-gradient.js';
|
|
73
|
-
import 'conic-gradient';
|
|
74
|
-
import '../global/supports-css.js';
|
|
75
|
-
import '../global/inject-styles.js';
|
|
76
|
-
import '../global/radial-gradient-mask.js';
|
|
75
|
+
import '../_helpers/loader-inline.js';
|
|
77
76
|
import '../shortcuts/shortcuts-hoc.js';
|
|
78
77
|
import '../tags-list/tags-list.js';
|
|
79
78
|
import '../tag/tag.js';
|
|
@@ -81,7 +80,7 @@ import '../caret/caret.js';
|
|
|
81
80
|
import '../text/text.js';
|
|
82
81
|
import '../_helpers/select__filter.js';
|
|
83
82
|
|
|
84
|
-
var modules_9d0de074 = {"unit":"8px","select":"
|
|
83
|
+
var modules_9d0de074 = {"unit":"8px","button-shadow":"inset 0 0 0 1px","select":"select_rui_11de","value":"value_rui_11de ellipsis_rui_8bff font_rui_8bff","icons":"icons_rui_11de","toolbar":"toolbar_rui_11de","button":"button_rui_11de","buttonSpaced":"buttonSpaced_rui_11de","inputMode":"inputMode_rui_11de","selectedIcon":"selectedIcon_rui_11de resetButton_rui_8bff","clearIcon":"clearIcon_rui_11de","sizeS":"sizeS_rui_11de","sizeM":"sizeM_rui_11de","sizeL":"sizeL_rui_11de","sizeFULL":"sizeFULL_rui_11de","sizeAUTO":"sizeAUTO_rui_11de","buttonMode":"buttonMode_rui_11de","open":"open_rui_11de","buttonContainer":"buttonContainer_rui_11de","buttonValue":"buttonValue_rui_11de ellipsis_rui_8bff","buttonValueOpen":"buttonValueOpen_rui_11de","label":"label_rui_11de","disabled":"disabled_rui_11de","avatar":"avatar_rui_11de","popup":"popup_rui_11de","chevron":"chevron_rui_11de","chevronIcon":"chevronIcon_rui_11de","heightS":"heightS_rui_11de"};
|
|
85
84
|
|
|
86
85
|
/**
|
|
87
86
|
* @name Select
|
|
@@ -100,13 +99,13 @@ var Type;
|
|
|
100
99
|
Type["INPUT"] = "INPUT";
|
|
101
100
|
Type["CUSTOM"] = "CUSTOM";
|
|
102
101
|
Type["INLINE"] = "INLINE";
|
|
103
|
-
Type["MATERIAL"] = "MATERIAL";
|
|
104
102
|
Type["INPUT_WITHOUT_CONTROLS"] = "INPUT_WITHOUT_CONTROLS";
|
|
105
103
|
})(Type || (Type = {}));
|
|
106
104
|
|
|
105
|
+
const ICONS_OFFSET = 12;
|
|
107
106
|
const ICON_WIDTH = 20;
|
|
108
107
|
const getStyle = memoize(iconsLength => ({
|
|
109
|
-
paddingRight: iconsLength * ICON_WIDTH
|
|
108
|
+
paddingRight: ICONS_OFFSET + iconsLength * ICON_WIDTH
|
|
110
109
|
}));
|
|
111
110
|
|
|
112
111
|
const isInputMode = type => type === Type.INPUT || type === Type.INPUT_WITHOUT_CONTROLS;
|
|
@@ -154,7 +153,7 @@ function getListItems(props, state, rawFilterString) {
|
|
|
154
153
|
let data = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : props.data;
|
|
155
154
|
let filterString = rawFilterString.trim();
|
|
156
155
|
|
|
157
|
-
if (isInputMode(props.type) && state.selected && !Array.isArray(state.selected) && filterString === state.selected.label) {
|
|
156
|
+
if (isInputMode(props.type) && !props.allowAny && state.selected && !Array.isArray(state.selected) && filterString === state.selected.label) {
|
|
158
157
|
filterString = ''; // ignore multiple if it is exactly the selected item
|
|
159
158
|
}
|
|
160
159
|
|
|
@@ -306,10 +305,10 @@ class Select extends Component {
|
|
|
306
305
|
|
|
307
306
|
_defineProperty(this, "shortcutsScope", this.id);
|
|
308
307
|
|
|
309
|
-
_defineProperty(this, "listId",
|
|
308
|
+
_defineProperty(this, "listId", "".concat(this.id, ":list"));
|
|
310
309
|
|
|
311
|
-
_defineProperty(this, "_focusHandler",
|
|
312
|
-
this.props.onFocus();
|
|
310
|
+
_defineProperty(this, "_focusHandler", e => {
|
|
311
|
+
this.props.onFocus(e);
|
|
313
312
|
this.setState({
|
|
314
313
|
shortcutsEnabled: true,
|
|
315
314
|
focused: true
|
|
@@ -424,6 +423,16 @@ class Select extends Component {
|
|
|
424
423
|
}
|
|
425
424
|
});
|
|
426
425
|
|
|
426
|
+
_defineProperty(this, "_openPopupIfClosed", () => {
|
|
427
|
+
if (this.props.disabled || this.state.showPopup) {
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
this.props.onBeforeOpen();
|
|
432
|
+
|
|
433
|
+
this._showPopup();
|
|
434
|
+
});
|
|
435
|
+
|
|
427
436
|
_defineProperty(this, "_filterChangeHandler", e => {
|
|
428
437
|
this._setFilter(e.currentTarget.value, e);
|
|
429
438
|
});
|
|
@@ -646,12 +655,6 @@ class Select extends Component {
|
|
|
646
655
|
return false;
|
|
647
656
|
});
|
|
648
657
|
|
|
649
|
-
_defineProperty(this, "button", void 0);
|
|
650
|
-
|
|
651
|
-
_defineProperty(this, "buttonRef", el => {
|
|
652
|
-
this.button = el;
|
|
653
|
-
});
|
|
654
|
-
|
|
655
658
|
_defineProperty(this, "filter", void 0);
|
|
656
659
|
|
|
657
660
|
_defineProperty(this, "filterRef", el => {
|
|
@@ -714,6 +717,10 @@ class Select extends Component {
|
|
|
714
717
|
nextState.selected = multiple ? [] : null;
|
|
715
718
|
}
|
|
716
719
|
|
|
720
|
+
if (multiple && !nextState.selected) {
|
|
721
|
+
nextState.selected = prevState.selected;
|
|
722
|
+
}
|
|
723
|
+
|
|
717
724
|
const {
|
|
718
725
|
selected
|
|
719
726
|
} = { ...prevState,
|
|
@@ -791,7 +798,7 @@ class Select extends Component {
|
|
|
791
798
|
separator: reset.separator,
|
|
792
799
|
key: reset.label,
|
|
793
800
|
rgItemType: List.ListProps.Type.CUSTOM,
|
|
794
|
-
template: /*#__PURE__*/React.createElement(
|
|
801
|
+
template: /*#__PURE__*/React.createElement(Button, {
|
|
795
802
|
text: true,
|
|
796
803
|
className: modules_9d0de074.button,
|
|
797
804
|
"data-test": "ring-select-reset-tags-button"
|
|
@@ -894,13 +901,14 @@ class Select extends Component {
|
|
|
894
901
|
|
|
895
902
|
_hidePopup(tryFocusAnchor) {
|
|
896
903
|
if (this.node && this.state.showPopup) {
|
|
897
|
-
this.setState({
|
|
904
|
+
this.setState(prevState => ({
|
|
898
905
|
showPopup: false,
|
|
899
|
-
filterValue: ''
|
|
900
|
-
});
|
|
906
|
+
filterValue: this.props.allowAny ? prevState.filterValue : ''
|
|
907
|
+
}));
|
|
901
908
|
|
|
902
909
|
if (tryFocusAnchor) {
|
|
903
|
-
const
|
|
910
|
+
const focusableSelectExists = this.node && this.node.querySelector('[data-test~=ring-select__focus]');
|
|
911
|
+
const restoreFocusNode = this.props.targetElement || focusableSelectExists;
|
|
904
912
|
|
|
905
913
|
if (restoreFocusNode) {
|
|
906
914
|
restoreFocusNode.focus();
|
|
@@ -911,14 +919,15 @@ class Select extends Component {
|
|
|
911
919
|
|
|
912
920
|
getToolbar() {
|
|
913
921
|
const {
|
|
914
|
-
hint
|
|
922
|
+
hint,
|
|
923
|
+
renderBottomToolbar
|
|
915
924
|
} = this.props;
|
|
916
925
|
const {
|
|
917
926
|
prefix,
|
|
918
927
|
label,
|
|
919
928
|
delayed
|
|
920
929
|
} = this.state.addButton || {};
|
|
921
|
-
const isToolbarHasElements = this.state.addButton || hint;
|
|
930
|
+
const isToolbarHasElements = this.state.addButton || hint || renderBottomToolbar;
|
|
922
931
|
|
|
923
932
|
if (!isToolbarHasElements) {
|
|
924
933
|
return null;
|
|
@@ -926,16 +935,16 @@ class Select extends Component {
|
|
|
926
935
|
|
|
927
936
|
return /*#__PURE__*/React.createElement("div", {
|
|
928
937
|
className: classNames({
|
|
929
|
-
[modules_9d0de074.toolbar]:
|
|
938
|
+
[modules_9d0de074.toolbar]: Boolean(this.state.addButton || renderBottomToolbar)
|
|
930
939
|
}),
|
|
931
940
|
"data-test": "ring-select-toolbar"
|
|
932
|
-
}, this.state.addButton && /*#__PURE__*/React.createElement(
|
|
941
|
+
}, renderBottomToolbar && renderBottomToolbar(), this.state.addButton && /*#__PURE__*/React.createElement(Button, {
|
|
933
942
|
text: true,
|
|
934
943
|
delayed: delayed,
|
|
935
944
|
className: classNames(modules_9d0de074.button, modules_9d0de074.buttonSpaced),
|
|
936
945
|
onClick: this.addHandler,
|
|
937
946
|
"data-test": "ring-select-toolbar-button"
|
|
938
|
-
}, prefix ?
|
|
947
|
+
}, prefix ? "".concat(prefix, " ").concat(label) : label), hint && /*#__PURE__*/React.createElement(List.ListHint, {
|
|
939
948
|
label: hint,
|
|
940
949
|
"data-test": "ring-select-toolbar-hint"
|
|
941
950
|
}));
|
|
@@ -984,7 +993,9 @@ class Select extends Component {
|
|
|
984
993
|
}
|
|
985
994
|
|
|
986
995
|
_getLabel() {
|
|
987
|
-
|
|
996
|
+
var _ref2, _this$props$label;
|
|
997
|
+
|
|
998
|
+
return (_ref2 = (_this$props$label = this.props.label) !== null && _this$props$label !== void 0 ? _this$props$label : this.props.selectedLabel) !== null && _ref2 !== void 0 ? _ref2 : 'Select an option';
|
|
988
999
|
}
|
|
989
1000
|
|
|
990
1001
|
_getSelectedString() {
|
|
@@ -1021,13 +1032,13 @@ class Select extends Component {
|
|
|
1021
1032
|
disabled: this.props.disabled,
|
|
1022
1033
|
onClick: this._clickHandler,
|
|
1023
1034
|
style: {
|
|
1024
|
-
backgroundImage:
|
|
1035
|
+
backgroundImage: "url(".concat(selected.icon, ")")
|
|
1025
1036
|
}
|
|
1026
1037
|
}));
|
|
1027
1038
|
}
|
|
1028
1039
|
|
|
1029
1040
|
if (clear && !disabled && !this._selectionIsEmpty()) {
|
|
1030
|
-
icons.push( /*#__PURE__*/React.createElement(
|
|
1041
|
+
icons.push( /*#__PURE__*/React.createElement(Button, {
|
|
1031
1042
|
title: "Clear selection",
|
|
1032
1043
|
"data-test": "ring-clear-select",
|
|
1033
1044
|
className: modules_9d0de074.clearIcon,
|
|
@@ -1039,11 +1050,11 @@ class Select extends Component {
|
|
|
1039
1050
|
}
|
|
1040
1051
|
|
|
1041
1052
|
if (!hideArrow) {
|
|
1042
|
-
icons.push( /*#__PURE__*/React.createElement(
|
|
1053
|
+
icons.push( /*#__PURE__*/React.createElement(Button, {
|
|
1043
1054
|
title: "Toggle options popup",
|
|
1044
1055
|
className: modules_9d0de074.chevron,
|
|
1045
1056
|
iconClassName: modules_9d0de074.chevronIcon,
|
|
1046
|
-
icon:
|
|
1057
|
+
icon: chevronDownIcon,
|
|
1047
1058
|
key: "hide",
|
|
1048
1059
|
disabled: this.props.disabled,
|
|
1049
1060
|
onClick: this._clickHandler
|
|
@@ -1085,8 +1096,8 @@ class Select extends Component {
|
|
|
1085
1096
|
const {
|
|
1086
1097
|
shortcutsEnabled
|
|
1087
1098
|
} = this.state;
|
|
1088
|
-
const classes = classNames(modules_9d0de074.select, 'ring-js-shortcuts', this.props.className, {
|
|
1089
|
-
[modules_9d0de074[
|
|
1099
|
+
const classes = classNames(modules_9d0de074.select, 'ring-js-shortcuts', this.props.className, modules_9d0de074["height".concat(this.props.height || this.context)], {
|
|
1100
|
+
[modules_9d0de074["size".concat(this.props.size)]]: this.props.type !== Type.INLINE,
|
|
1090
1101
|
[modules_9d0de074.disabled]: this.props.disabled
|
|
1091
1102
|
});
|
|
1092
1103
|
|
|
@@ -1111,7 +1122,8 @@ class Select extends Component {
|
|
|
1111
1122
|
}, shortcutsEnabled && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
1112
1123
|
map: this.getShortcutsMap(),
|
|
1113
1124
|
scope: this.shortcutsScope
|
|
1114
|
-
}), /*#__PURE__*/React.createElement(
|
|
1125
|
+
}), /*#__PURE__*/React.createElement(Input, _extends({}, ariaProps, {
|
|
1126
|
+
height: this.props.height,
|
|
1115
1127
|
autoComplete: "off",
|
|
1116
1128
|
id: this.props.id,
|
|
1117
1129
|
onClick: this._clickHandler,
|
|
@@ -1130,8 +1142,9 @@ class Select extends Component {
|
|
|
1130
1142
|
"data-test": "ring-select__focus",
|
|
1131
1143
|
enableShortcuts: shortcutsEnabled ? Object.keys({ ...this.getShortcutsMap(),
|
|
1132
1144
|
...((_this$_popup5 = this._popup) === null || _this$_popup5 === void 0 ? void 0 : (_this$_popup5$list = _this$_popup5.list) === null || _this$_popup5$list === void 0 ? void 0 : _this$_popup5$list.shortcutsMap)
|
|
1133
|
-
}) : undefined
|
|
1134
|
-
|
|
1145
|
+
}) : undefined,
|
|
1146
|
+
afterInput: this.props.type === Type.INPUT && iconsNode
|
|
1147
|
+
})), this._renderPopup());
|
|
1135
1148
|
|
|
1136
1149
|
case Type.BUTTON:
|
|
1137
1150
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1143,7 +1156,8 @@ class Select extends Component {
|
|
|
1143
1156
|
scope: this.shortcutsScope
|
|
1144
1157
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1145
1158
|
className: modules_9d0de074.buttonContainer
|
|
1146
|
-
}, /*#__PURE__*/React.createElement(
|
|
1159
|
+
}, /*#__PURE__*/React.createElement(Button, _extends({}, ariaProps, {
|
|
1160
|
+
height: this.props.height,
|
|
1147
1161
|
id: this.props.id,
|
|
1148
1162
|
onClick: this._clickHandler,
|
|
1149
1163
|
className: classNames(this.props.buttonClassName, modules_9d0de074.buttonValue, {
|
|
@@ -1154,31 +1168,6 @@ class Select extends Component {
|
|
|
1154
1168
|
"data-test": "ring-select__button ring-select__focus"
|
|
1155
1169
|
}), this._getAvatar(), this._selectionIsEmpty() ? this._getLabel() : this._getSelectedString()), iconsNode), this._renderPopup());
|
|
1156
1170
|
|
|
1157
|
-
case Type.MATERIAL:
|
|
1158
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
1159
|
-
ref: this.nodeRef,
|
|
1160
|
-
className: classNames(classes, modules_9d0de074.materialMode),
|
|
1161
|
-
"data-test": joinDataTestAttributes('ring-select', dataTest)
|
|
1162
|
-
}, shortcutsEnabled && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
1163
|
-
map: this.getShortcutsMap(),
|
|
1164
|
-
scope: this.shortcutsScope
|
|
1165
|
-
}), !this._selectionIsEmpty() && this.props.selectedLabel && /*#__PURE__*/React.createElement("span", {
|
|
1166
|
-
className: modules_9d0de074.selectedLabel
|
|
1167
|
-
}, this.props.selectedLabel), /*#__PURE__*/React.createElement("button", _extends({}, ariaProps, {
|
|
1168
|
-
id: this.props.id,
|
|
1169
|
-
onClick: this._clickHandler,
|
|
1170
|
-
type: "button",
|
|
1171
|
-
disabled: this.props.disabled,
|
|
1172
|
-
className: classNames(this.props.buttonClassName, modules_9d0de074.value, {
|
|
1173
|
-
[modules_9d0de074.open]: this.state.showPopup,
|
|
1174
|
-
[modules_9d0de074.label]: this._selectionIsEmpty()
|
|
1175
|
-
}),
|
|
1176
|
-
"aria-label": this._getLabel(),
|
|
1177
|
-
style: style,
|
|
1178
|
-
"data-test": "ring-select__focus",
|
|
1179
|
-
ref: this.buttonRef
|
|
1180
|
-
}), this._getAvatar(), this._selectionIsEmpty() ? this._getLabel() : this._getSelectedString()), iconsNode, this._renderPopup());
|
|
1181
|
-
|
|
1182
1171
|
case Type.INLINE:
|
|
1183
1172
|
return /*#__PURE__*/React.createElement("div", {
|
|
1184
1173
|
className: classes,
|
|
@@ -1239,7 +1228,7 @@ _defineProperty(Select, "defaultProps", {
|
|
|
1239
1228
|
disabled: false,
|
|
1240
1229
|
loadingMessage: 'Loading...',
|
|
1241
1230
|
notFoundMessage: 'No options found',
|
|
1242
|
-
type: Type.
|
|
1231
|
+
type: Type.BUTTON,
|
|
1243
1232
|
size: Size.M,
|
|
1244
1233
|
targetElement: null,
|
|
1245
1234
|
hideSelected: false,
|
|
@@ -1248,8 +1237,8 @@ _defineProperty(Select, "defaultProps", {
|
|
|
1248
1237
|
maxHeight: 600,
|
|
1249
1238
|
directions: [Popup.PopupProps.Directions.BOTTOM_RIGHT, Popup.PopupProps.Directions.BOTTOM_LEFT, Popup.PopupProps.Directions.TOP_LEFT, Popup.PopupProps.Directions.TOP_RIGHT],
|
|
1250
1239
|
selected: null,
|
|
1251
|
-
label:
|
|
1252
|
-
selectedLabel:
|
|
1240
|
+
label: null,
|
|
1241
|
+
selectedLabel: null,
|
|
1253
1242
|
inputPlaceholder: '',
|
|
1254
1243
|
hint: null,
|
|
1255
1244
|
shortcutsEnabled: false,
|
|
@@ -1272,12 +1261,12 @@ _defineProperty(Select, "defaultProps", {
|
|
|
1272
1261
|
dir: 'ltr'
|
|
1273
1262
|
});
|
|
1274
1263
|
|
|
1264
|
+
_defineProperty(Select, "contextType", ControlsHeightContext);
|
|
1265
|
+
|
|
1275
1266
|
_defineProperty(Select, "Type", Type);
|
|
1276
1267
|
|
|
1277
1268
|
_defineProperty(Select, "Size", Size);
|
|
1278
1269
|
|
|
1279
|
-
_defineProperty(Select, "Theme", Theme);
|
|
1280
|
-
|
|
1281
1270
|
Select.propTypes = {
|
|
1282
1271
|
className: PropTypes.string,
|
|
1283
1272
|
buttonClassName: PropTypes.string,
|
|
@@ -1328,7 +1317,6 @@ Select.propTypes = {
|
|
|
1328
1317
|
hideArrow: PropTypes.bool,
|
|
1329
1318
|
compact: PropTypes.bool,
|
|
1330
1319
|
size: PropTypes.oneOf(Object.values(Size)),
|
|
1331
|
-
theme: PropTypes.string,
|
|
1332
1320
|
customAnchor: PropTypes.func,
|
|
1333
1321
|
disableMoveOverflow: PropTypes.bool,
|
|
1334
1322
|
disableScrollToActive: PropTypes.bool,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'prop-types';
|
|
4
5
|
import 'classnames';
|
|
5
6
|
import '../input/input.js';
|
|
6
7
|
import '../global/sniffer.js';
|
|
7
8
|
import '../list/list.js';
|
|
9
|
+
import '../global/controls-height.js';
|
|
8
10
|
export { S as default } from '../_helpers/select__filter.js';
|
|
9
|
-
import '@jetbrains/icons/close';
|
|
10
|
-
import '../global/theme.js';
|
|
11
|
+
import '@jetbrains/icons/close-12px';
|
|
11
12
|
import '../global/prop-types.js';
|
|
12
13
|
import '../button/button.js';
|
|
13
14
|
import 'focus-visible';
|
|
@@ -17,6 +18,7 @@ import 'util-deprecate';
|
|
|
17
18
|
import '../icon/icon__constants.js';
|
|
18
19
|
import '../_helpers/icon.js';
|
|
19
20
|
import '../icon/icon__svg.js';
|
|
21
|
+
import 'core-js/modules/es.string.replace.js';
|
|
20
22
|
import '../global/memoize.js';
|
|
21
23
|
import '../link/clickableLink.js';
|
|
22
24
|
import '../_helpers/button__classes.js';
|
|
@@ -45,7 +47,7 @@ import '../avatar/avatar.js';
|
|
|
45
47
|
import '../global/url.js';
|
|
46
48
|
import '../avatar/fallback-avatar.js';
|
|
47
49
|
import '../checkbox/checkbox.js';
|
|
48
|
-
import '@jetbrains/icons/checkmark';
|
|
50
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
49
51
|
import '@jetbrains/icons/remove-10px';
|
|
50
52
|
import '../_helpers/checkbox.js';
|
|
51
53
|
import '../list/list__custom.js';
|
|
@@ -105,7 +105,7 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
|
105
105
|
getFilterWithTags(): JSX.Element | null;
|
|
106
106
|
getBottomLine(): "" | JSX.Element | null;
|
|
107
107
|
handleListResize: () => void;
|
|
108
|
-
getList(ringPopupTarget: string | undefined): JSX.Element | null;
|
|
108
|
+
getList(ringPopupTarget: string | Element | undefined): JSX.Element | null;
|
|
109
109
|
handleSelectAll: () => void;
|
|
110
110
|
getSelectAll: () => false | JSX.Element;
|
|
111
111
|
private _adjustListMaxHeight;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import searchIcon from '@jetbrains/icons/search';
|
|
@@ -9,7 +10,7 @@ import Popup, { getPopupContainer } from '../popup/popup.js';
|
|
|
9
10
|
import { maxHeightForDirection } from '../popup/position.js';
|
|
10
11
|
import { PopupTargetContext } from '../popup/popup.target.js';
|
|
11
12
|
import List from '../list/list.js';
|
|
12
|
-
import
|
|
13
|
+
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
13
14
|
import shortcutsHOC from '../shortcuts/shortcuts-hoc.js';
|
|
14
15
|
import { getStyles } from '../global/dom.js';
|
|
15
16
|
import getUID from '../global/get-uid.js';
|
|
@@ -17,7 +18,7 @@ import memoize from '../global/memoize.js';
|
|
|
17
18
|
import TagsList from '../tags-list/tags-list.js';
|
|
18
19
|
import Caret from '../caret/caret.js';
|
|
19
20
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
20
|
-
import
|
|
21
|
+
import { Button } from '../button/button.js';
|
|
21
22
|
import Text from '../text/text.js';
|
|
22
23
|
import { DEFAULT_DIRECTIONS } from '../popup/popup.consts.js';
|
|
23
24
|
import { S as SelectFilter, m as modules_b607bec2 } from '../_helpers/select__filter.js';
|
|
@@ -25,6 +26,7 @@ import 'util-deprecate';
|
|
|
25
26
|
import '../icon/icon__constants.js';
|
|
26
27
|
import '../_helpers/icon.js';
|
|
27
28
|
import '../icon/icon__svg.js';
|
|
29
|
+
import 'core-js/modules/es.string.replace.js';
|
|
28
30
|
import 'react-dom';
|
|
29
31
|
import '../global/schedule-raf.js';
|
|
30
32
|
import '../global/data-tests.js';
|
|
@@ -49,7 +51,7 @@ import '../avatar/avatar.js';
|
|
|
49
51
|
import '../global/url.js';
|
|
50
52
|
import '../avatar/fallback-avatar.js';
|
|
51
53
|
import '../checkbox/checkbox.js';
|
|
52
|
-
import '@jetbrains/icons/checkmark';
|
|
54
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
53
55
|
import '@jetbrains/icons/remove-10px';
|
|
54
56
|
import '../_helpers/checkbox.js';
|
|
55
57
|
import '../list/list__custom.js';
|
|
@@ -58,23 +60,17 @@ import '../list/list__title.js';
|
|
|
58
60
|
import '../list/list__separator.js';
|
|
59
61
|
import '../list/list__hint.js';
|
|
60
62
|
import '../list/consts.js';
|
|
61
|
-
import '../
|
|
62
|
-
import '../_helpers/inject-styles.js';
|
|
63
|
-
import '../global/conic-gradient.js';
|
|
64
|
-
import 'conic-gradient';
|
|
65
|
-
import '../global/supports-css.js';
|
|
66
|
-
import '../global/inject-styles.js';
|
|
67
|
-
import '../global/radial-gradient-mask.js';
|
|
63
|
+
import '../_helpers/loader-inline.js';
|
|
68
64
|
import '../tag/tag.js';
|
|
69
|
-
import '@jetbrains/icons/close';
|
|
65
|
+
import '@jetbrains/icons/close-12px';
|
|
70
66
|
import '@jetbrains/icons/chevron-10px';
|
|
67
|
+
import '../global/controls-height.js';
|
|
71
68
|
import '../_helpers/button__classes.js';
|
|
72
69
|
import '../input/input.js';
|
|
73
70
|
import '../global/prop-types.js';
|
|
74
71
|
import '../global/composeRefs.js';
|
|
75
72
|
import '../_helpers/input.js';
|
|
76
73
|
|
|
77
|
-
const INPUT_MARGIN_COMPENSATION = -14;
|
|
78
74
|
const FILTER_HEIGHT = 35;
|
|
79
75
|
const TOOLBAR_HEIGHT = 49;
|
|
80
76
|
|
|
@@ -173,13 +169,13 @@ class SelectPopup extends PureComponent {
|
|
|
173
169
|
const activeFilters = this.props.data.filter(item => !item.disabled);
|
|
174
170
|
return Array.isArray(this.props.selected) && /*#__PURE__*/React.createElement("div", {
|
|
175
171
|
className: modules_b607bec2.selectAll
|
|
176
|
-
}, activeFilters.length === 0 ? /*#__PURE__*/React.createElement("span", null) : /*#__PURE__*/React.createElement(
|
|
172
|
+
}, activeFilters.length === 0 ? /*#__PURE__*/React.createElement("span", null) : /*#__PURE__*/React.createElement(Button, {
|
|
177
173
|
text: true,
|
|
178
174
|
inline: true,
|
|
179
175
|
onClick: this.handleSelectAll
|
|
180
176
|
}, activeFilters.length !== this.props.selected.length ? 'Select all' : 'Deselect all'), /*#__PURE__*/React.createElement(Text, {
|
|
181
177
|
info: true
|
|
182
|
-
},
|
|
178
|
+
}, "".concat(this.props.selected.length, " selected")));
|
|
183
179
|
});
|
|
184
180
|
|
|
185
181
|
_defineProperty(this, "_adjustListMaxHeight", memoizeOne((hidden, userDefinedMaxHeight, ringPopupTarget) => {
|
|
@@ -401,7 +397,7 @@ class SelectPopup extends PureComponent {
|
|
|
401
397
|
} = this.props;
|
|
402
398
|
return (loading || message) && /*#__PURE__*/React.createElement("div", {
|
|
403
399
|
className: modules_b607bec2.bottomLine
|
|
404
|
-
}, loading && /*#__PURE__*/React.createElement(
|
|
400
|
+
}, loading && /*#__PURE__*/React.createElement(LoaderInline, null), message && /*#__PURE__*/React.createElement("div", {
|
|
405
401
|
className: modules_b607bec2.message
|
|
406
402
|
}, message));
|
|
407
403
|
}
|
|
@@ -483,7 +479,7 @@ class SelectPopup extends PureComponent {
|
|
|
483
479
|
minWidth: minWidth,
|
|
484
480
|
onCloseAttempt: onCloseAttempt,
|
|
485
481
|
directions: directions,
|
|
486
|
-
top: top
|
|
482
|
+
top: top,
|
|
487
483
|
left: left,
|
|
488
484
|
onMouseDown: this.mouseDownHandler,
|
|
489
485
|
target: this.props.ringPopupTarget,
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
+
import { a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
1
2
|
import angular from 'angular';
|
|
2
3
|
import React from 'react';
|
|
3
|
-
import { unmountComponentAtNode, render } from 'react-
|
|
4
|
+
import { unmountComponentAtNode, render } from '../global/react-render-adapter.js';
|
|
4
5
|
import getEventKey from '../global/get-event-key.js';
|
|
5
6
|
import Select, { RerenderableSelect } from '../select/select.js';
|
|
6
7
|
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
8
|
+
import { ControlsHeight } from '../global/controls-height.js';
|
|
7
9
|
import SelectNgOptions from './select-ng__options.js';
|
|
8
10
|
import SelectLazy from './select-ng__lazy.js';
|
|
9
|
-
import '
|
|
11
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
12
|
+
import 'react-dom';
|
|
13
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
14
|
import 'classnames';
|
|
11
15
|
import 'prop-types';
|
|
12
|
-
import '@jetbrains/icons/chevron-
|
|
13
|
-
import '@jetbrains/icons/close';
|
|
16
|
+
import '@jetbrains/icons/chevron-down';
|
|
17
|
+
import '@jetbrains/icons/close-12px';
|
|
14
18
|
import 'deep-equal';
|
|
15
19
|
import '../dropdown/dropdown.js';
|
|
16
20
|
import '../global/data-tests.js';
|
|
17
21
|
import '../global/typescript-utils.js';
|
|
18
22
|
import '../_helpers/anchor.js';
|
|
23
|
+
import '@jetbrains/icons/chevron-10px';
|
|
19
24
|
import '../icon/icon.js';
|
|
20
25
|
import 'util-deprecate';
|
|
21
26
|
import '../icon/icon__constants.js';
|
|
@@ -24,7 +29,6 @@ import '../icon/icon__svg.js';
|
|
|
24
29
|
import '../global/memoize.js';
|
|
25
30
|
import '../button/button.js';
|
|
26
31
|
import 'focus-visible';
|
|
27
|
-
import '../global/theme.js';
|
|
28
32
|
import '../link/clickableLink.js';
|
|
29
33
|
import '../_helpers/button__classes.js';
|
|
30
34
|
import '../avatar/avatar.js';
|
|
@@ -56,7 +60,7 @@ import '../_helpers/link.js';
|
|
|
56
60
|
import '../_helpers/list.js';
|
|
57
61
|
import '../list/list__item.js';
|
|
58
62
|
import '../checkbox/checkbox.js';
|
|
59
|
-
import '@jetbrains/icons/checkmark';
|
|
63
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
60
64
|
import '@jetbrains/icons/remove-10px';
|
|
61
65
|
import '../_helpers/checkbox.js';
|
|
62
66
|
import '../list/list__custom.js';
|
|
@@ -73,12 +77,7 @@ import '../global/fuzzy-highlight.js';
|
|
|
73
77
|
import '../select/select__popup.js';
|
|
74
78
|
import '@jetbrains/icons/search';
|
|
75
79
|
import '../loader-inline/loader-inline.js';
|
|
76
|
-
import '../_helpers/
|
|
77
|
-
import '../global/conic-gradient.js';
|
|
78
|
-
import 'conic-gradient';
|
|
79
|
-
import '../global/supports-css.js';
|
|
80
|
-
import '../global/inject-styles.js';
|
|
81
|
-
import '../global/radial-gradient-mask.js';
|
|
80
|
+
import '../_helpers/loader-inline.js';
|
|
82
81
|
import '../shortcuts/shortcuts-hoc.js';
|
|
83
82
|
import '../tags-list/tags-list.js';
|
|
84
83
|
import '../tag/tag.js';
|
|
@@ -99,7 +98,6 @@ angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
|
99
98
|
const types = {
|
|
100
99
|
input: Select.Type.INPUT,
|
|
101
100
|
button: Select.Type.BUTTON,
|
|
102
|
-
material: Select.Type.MATERIAL,
|
|
103
101
|
dropdown: Select.Type.CUSTOM,
|
|
104
102
|
suggest: Select.Type.INPUT
|
|
105
103
|
};
|
|
@@ -440,9 +438,19 @@ angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
|
440
438
|
return sizes[ctrl.size] || sizes.FULL;
|
|
441
439
|
}
|
|
442
440
|
|
|
441
|
+
function selectRef(instance) {
|
|
442
|
+
if (instance != null) {
|
|
443
|
+
ctrl.selectInstance = instance;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
443
447
|
function reRenderSelect(props) {
|
|
444
|
-
|
|
445
|
-
|
|
448
|
+
var _ctrl$selectInstance;
|
|
449
|
+
|
|
450
|
+
if ((_ctrl$selectInstance = ctrl.selectInstance) !== null && _ctrl$selectInstance !== void 0 && _ctrl$selectInstance.node) {
|
|
451
|
+
ctrl.selectInstance.rerender({ ...props,
|
|
452
|
+
ref: selectRef
|
|
453
|
+
});
|
|
446
454
|
}
|
|
447
455
|
}
|
|
448
456
|
/**
|
|
@@ -482,6 +490,7 @@ angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
|
482
490
|
notFoundMessage: ctrl.notFoundMessage || RingMessageBundle.select_options_not_found(),
|
|
483
491
|
targetElement: getType() === 'dropdown' ? element : null,
|
|
484
492
|
size: getSelectSize(),
|
|
493
|
+
height: ControlsHeight.S,
|
|
485
494
|
onBeforeOpen: () => {
|
|
486
495
|
resetMemorizedOptions();
|
|
487
496
|
ctrl.loadOptionsToSelect(ctrl.query);
|
|
@@ -589,9 +598,11 @@ angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
|
589
598
|
ctrl.config = angular.extend({}, ctrl.defaultConfig, ctrl.config || {});
|
|
590
599
|
|
|
591
600
|
if (getType() === 'suggest' || getType() === 'input') {
|
|
592
|
-
|
|
601
|
+
render( /*#__PURE__*/React.createElement(RerenderableSelect, _extends({
|
|
602
|
+
ref: selectRef
|
|
603
|
+
}, ctrl.config)), container);
|
|
593
604
|
} else {
|
|
594
|
-
ctrl.selectInstance = new SelectLazy(container, ctrl.config, ctrl, getType());
|
|
605
|
+
ctrl.selectInstance = new SelectLazy(container, ctrl.config, ctrl, getType(), selectRef);
|
|
595
606
|
} // Preserve existing contents of the directive
|
|
596
607
|
|
|
597
608
|
|