@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
|
@@ -2,6 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import '../auth-ng/auth-ng.js';
|
|
3
3
|
import Permissions from '../permissions/permissions.js';
|
|
4
4
|
import PermissionCache from '../permissions/permissions__cache.js';
|
|
5
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
6
|
import '../auth/auth.js';
|
|
6
7
|
import '../auth/window-flow.js';
|
|
7
8
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -12,6 +13,8 @@ import '../auth/down-notification.js';
|
|
|
12
13
|
import 'react';
|
|
13
14
|
import 'prop-types';
|
|
14
15
|
import '../alert-service/alert-service.js';
|
|
16
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
17
|
+
import '../global/react-render-adapter.js';
|
|
15
18
|
import 'react-dom';
|
|
16
19
|
import '../global/get-uid.js';
|
|
17
20
|
import '../alert/alert.js';
|
|
@@ -27,19 +30,29 @@ import '../_helpers/icon.js';
|
|
|
27
30
|
import '../icon/icon__svg.js';
|
|
28
31
|
import '../global/memoize.js';
|
|
29
32
|
import '../loader-inline/loader-inline.js';
|
|
30
|
-
import '../global/theme.js';
|
|
31
33
|
import '../global/data-tests.js';
|
|
32
|
-
import '../_helpers/
|
|
33
|
-
import '../global/conic-gradient.js';
|
|
34
|
-
import 'conic-gradient';
|
|
35
|
-
import '../global/supports-css.js';
|
|
36
|
-
import '../global/inject-styles.js';
|
|
37
|
-
import '../global/radial-gradient-mask.js';
|
|
34
|
+
import '../_helpers/loader-inline.js';
|
|
38
35
|
import '../global/dom.js';
|
|
39
|
-
import '../
|
|
40
|
-
import '../link/link.js';
|
|
36
|
+
import '../button/button.js';
|
|
41
37
|
import 'focus-visible';
|
|
38
|
+
import '@jetbrains/icons/chevron-10px';
|
|
42
39
|
import '../link/clickableLink.js';
|
|
40
|
+
import '../global/controls-height.js';
|
|
41
|
+
import '../_helpers/button__classes.js';
|
|
42
|
+
import '../_helpers/theme.js';
|
|
43
|
+
import '../popup/popup.target.js';
|
|
44
|
+
import '../popup/popup.js';
|
|
45
|
+
import '../global/schedule-raf.js';
|
|
46
|
+
import '../shortcuts/shortcuts.js';
|
|
47
|
+
import '../shortcuts/core.js';
|
|
48
|
+
import 'combokeys';
|
|
49
|
+
import '../global/sniffer.js';
|
|
50
|
+
import 'sniffr';
|
|
51
|
+
import '../tab-trap/tab-trap.js';
|
|
52
|
+
import '../popup/position.js';
|
|
53
|
+
import '../popup/popup.consts.js';
|
|
54
|
+
import '../alert/container.js';
|
|
55
|
+
import '../link/link.js';
|
|
43
56
|
import '../_helpers/link.js';
|
|
44
57
|
import '../group/group.js';
|
|
45
58
|
import '../_helpers/group.js';
|
|
@@ -201,7 +214,7 @@ angularModule.directive('rgPermissionIf', ["$animate", "userPermissions", "$inte
|
|
|
201
214
|
$transclude(childScope, clone => {
|
|
202
215
|
block = {
|
|
203
216
|
startNode: clone[0],
|
|
204
|
-
endNode: clone[clone.length++] = document.createComment(
|
|
217
|
+
endNode: clone[clone.length++] = document.createComment(" end rgPermissionIf: ".concat(iAttrs.rgPermissionIf, " "))
|
|
205
218
|
};
|
|
206
219
|
$animate.enter(clone, iElement.parent(), iElement);
|
|
207
220
|
});
|
|
@@ -3,6 +3,7 @@ import debounce from 'just-debounce-it';
|
|
|
3
3
|
import createResizeDetector from 'element-resize-detector';
|
|
4
4
|
import { getDocumentScrollTop } from '../global/dom.js';
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
7
|
|
|
7
8
|
const resizeDetector = createResizeDetector();
|
|
8
9
|
const angularModule = angular.module('Ring.place-under', []);
|
|
@@ -82,7 +83,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
82
83
|
const syncedElementOffsetTop = syncElement.getBoundingClientRect().top + documentScrollTop;
|
|
83
84
|
const bottom = syncedElementOffsetTop + syncedElementHeight;
|
|
84
85
|
const margin = Math.max(bottom - documentScrollTop, syncedElementHeight);
|
|
85
|
-
element.style.marginTop =
|
|
86
|
+
element.style.marginTop = "".concat(margin + topOffset, "px");
|
|
86
87
|
|
|
87
88
|
if (syncHeight) {
|
|
88
89
|
/**
|
|
@@ -115,7 +116,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
element.style.height =
|
|
119
|
+
element.style.height = "calc(100% - ".concat(parseInt(element.style.marginTop, 10) + bottomOffset, "px)");
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
package/dist/popup/popup.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface BasePopupProps {
|
|
|
18
18
|
keepMounted: boolean;
|
|
19
19
|
directions: readonly Directions[];
|
|
20
20
|
autoPositioning: boolean;
|
|
21
|
+
autoPositioningOnScroll: boolean;
|
|
21
22
|
autoCorrectTopOverflow: boolean;
|
|
22
23
|
left: number;
|
|
23
24
|
top: number;
|
|
@@ -27,6 +28,8 @@ export interface BasePopupProps {
|
|
|
27
28
|
autoFocusFirst: boolean;
|
|
28
29
|
offset: number;
|
|
29
30
|
legacy: boolean;
|
|
31
|
+
withTail?: boolean;
|
|
32
|
+
tailOffset?: number;
|
|
30
33
|
anchorElement?: HTMLElement | null | undefined;
|
|
31
34
|
target?: string | Element | null | undefined;
|
|
32
35
|
className?: string | null | undefined;
|
|
@@ -42,6 +45,7 @@ export interface BasePopupProps {
|
|
|
42
45
|
onContextMenu?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
43
46
|
onDirectionChange?: ((direction: Directions) => void) | null | undefined;
|
|
44
47
|
onShow?: (() => void) | null | undefined;
|
|
48
|
+
children?: ReactNode;
|
|
45
49
|
}
|
|
46
50
|
export interface PopupProps extends BasePopupProps {
|
|
47
51
|
children: ReactNode;
|
|
@@ -67,6 +71,7 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
67
71
|
keepMounted: boolean;
|
|
68
72
|
directions: Directions[];
|
|
69
73
|
autoPositioning: boolean;
|
|
74
|
+
autoPositioningOnScroll: boolean;
|
|
70
75
|
autoCorrectTopOverflow: boolean;
|
|
71
76
|
left: number;
|
|
72
77
|
top: number;
|
|
@@ -131,7 +136,7 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
131
136
|
* @private
|
|
132
137
|
*/
|
|
133
138
|
private _onDocumentClick;
|
|
134
|
-
getInternalContent():
|
|
139
|
+
getInternalContent(): JSX.Element | P["children"] | undefined;
|
|
135
140
|
shortcutsScope: string;
|
|
136
141
|
shortcutsMap: {
|
|
137
142
|
esc: (evt: KeyboardEvent) => void;
|
|
@@ -139,3 +144,4 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
139
144
|
render(): JSX.Element;
|
|
140
145
|
}
|
|
141
146
|
export declare type PopupAttrs = JSX.LibraryManagedAttributes<typeof Popup, PopupProps>;
|
|
147
|
+
export declare type BasePopupAttrs = JSX.LibraryManagedAttributes<typeof Popup, BasePopupProps>;
|
package/dist/popup/popup.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty } 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, { PureComponent } from 'react';
|
|
3
5
|
import { createPortal } from 'react-dom';
|
|
4
6
|
import PropTypes from 'prop-types';
|
|
@@ -18,11 +20,11 @@ import 'combokeys';
|
|
|
18
20
|
import '../global/sniffer.js';
|
|
19
21
|
import 'sniffr';
|
|
20
22
|
|
|
21
|
-
var modules_2f69e2e2 = {"popup":"
|
|
23
|
+
var modules_2f69e2e2 = {"popup":"popup_rui_7cd4 font_rui_8bff","hidden":"hidden_rui_7cd4","showing":"showing_rui_7cd4","attached":"attached_rui_7cd4"};
|
|
22
24
|
|
|
23
25
|
const stop = e => e.stopPropagation();
|
|
24
26
|
|
|
25
|
-
const getPopupContainer = target => typeof target === 'string' ? document.querySelector(
|
|
27
|
+
const getPopupContainer = target => typeof target === 'string' ? document.querySelector("[data-portaltarget=".concat(target, "]")) : target;
|
|
26
28
|
/**
|
|
27
29
|
* @constructor
|
|
28
30
|
* @name Popup
|
|
@@ -104,7 +106,7 @@ class Popup extends PureComponent {
|
|
|
104
106
|
const propKey = key;
|
|
105
107
|
|
|
106
108
|
if (typeof value === 'number') {
|
|
107
|
-
popup.style[propKey] =
|
|
109
|
+
popup.style[propKey] = "".concat(value, "px");
|
|
108
110
|
} else {
|
|
109
111
|
popup.style[propKey] = value.toString();
|
|
110
112
|
}
|
|
@@ -154,7 +156,6 @@ class Popup extends PureComponent {
|
|
|
154
156
|
|
|
155
157
|
componentDidMount() {
|
|
156
158
|
if (!this.props.client) {
|
|
157
|
-
// eslint-disable-next-line react/no-did-mount-set-state
|
|
158
159
|
this.setState({
|
|
159
160
|
client: true
|
|
160
161
|
});
|
|
@@ -244,7 +245,11 @@ class Popup extends PureComponent {
|
|
|
244
245
|
setTimeout(() => {
|
|
245
246
|
this._listenersEnabled = true;
|
|
246
247
|
this.listeners.add(window, 'resize', this._redraw);
|
|
247
|
-
|
|
248
|
+
|
|
249
|
+
if (this.props.autoPositioningOnScroll) {
|
|
250
|
+
this.listeners.add(window, 'scroll', this._redraw);
|
|
251
|
+
}
|
|
252
|
+
|
|
248
253
|
this.listeners.add(document, 'pointerdown', this._onDocumentClick, true);
|
|
249
254
|
|
|
250
255
|
let el = this._getAnchor();
|
|
@@ -360,6 +365,7 @@ _defineProperty(Popup, "defaultProps", {
|
|
|
360
365
|
keepMounted: false,
|
|
361
366
|
directions: DEFAULT_DIRECTIONS,
|
|
362
367
|
autoPositioning: true,
|
|
368
|
+
autoPositioningOnScroll: true,
|
|
363
369
|
autoCorrectTopOverflow: true,
|
|
364
370
|
left: 0,
|
|
365
371
|
top: 0,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export declare const PopupTargetContext: React.Context<string | undefined>;
|
|
2
|
+
export declare const PopupTargetContext: React.Context<string | Element | undefined>;
|
|
3
3
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
|
+
id: string;
|
|
4
5
|
children: ReactNode | ((target: ReactNode) => ReactNode);
|
|
5
6
|
}
|
|
6
7
|
export declare const PopupTarget: React.ForwardRefExoticComponent<PopupTargetProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/popup/position.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface PositionStyles extends Position {
|
|
|
9
9
|
minWidth?: number;
|
|
10
10
|
}
|
|
11
11
|
export interface PositionAttrs {
|
|
12
|
-
popup:
|
|
12
|
+
popup: HTMLElement | null | undefined;
|
|
13
13
|
anchor: Element | null | undefined;
|
|
14
14
|
container: Element | null;
|
|
15
15
|
directions: readonly Directions[];
|
package/dist/popup/position.js
CHANGED
|
@@ -2,6 +2,7 @@ import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft, getWin
|
|
|
2
2
|
import { Directions, MaxHeight, Dimension, MinWidth } from './popup.consts.js';
|
|
3
3
|
export { Dimension, Directions, MaxHeight, MinWidth } from './popup.consts.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
|
|
6
7
|
function getScrollingCoordinates(container) {
|
|
7
8
|
if (container !== null) {
|
|
@@ -18,8 +19,8 @@ function getScrollingCoordinates(container) {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
function getPositionStyles(popup, anchorRect, anchorLeft, anchorTop, offset) {
|
|
21
|
-
const popupWidth = popup.
|
|
22
|
-
const popupHeight = popup.
|
|
22
|
+
const popupWidth = popup.offsetWidth;
|
|
23
|
+
const popupHeight = popup.offsetHeight;
|
|
23
24
|
const anchorBottom = anchorTop + anchorRect.height;
|
|
24
25
|
const anchorRight = anchorLeft + anchorRect.width;
|
|
25
26
|
const popupLeft = anchorLeft - popupWidth;
|
|
@@ -26,6 +26,7 @@ export default class PopupMenu<T = unknown> extends Popup<PopupMenuProps<T>> {
|
|
|
26
26
|
keepMounted: boolean;
|
|
27
27
|
directions: import("../popup/popup.consts").Directions[];
|
|
28
28
|
autoPositioning: boolean;
|
|
29
|
+
autoPositioningOnScroll: boolean;
|
|
29
30
|
autoCorrectTopOverflow: boolean;
|
|
30
31
|
left: number;
|
|
31
32
|
top: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import Popup from '../popup/popup.js';
|
|
5
6
|
import List from '../list/list.js';
|
|
7
|
+
import 'core-js/modules/es.string.replace.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import 'classnames';
|
|
8
10
|
import '../global/get-uid.js';
|
|
@@ -37,7 +39,7 @@ import '../avatar/avatar.js';
|
|
|
37
39
|
import '../global/url.js';
|
|
38
40
|
import '../avatar/fallback-avatar.js';
|
|
39
41
|
import '../checkbox/checkbox.js';
|
|
40
|
-
import '@jetbrains/icons/checkmark';
|
|
42
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
41
43
|
import '@jetbrains/icons/remove-10px';
|
|
42
44
|
import '../icon/icon.js';
|
|
43
45
|
import '../icon/icon__constants.js';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Theme from '../global/theme';
|
|
4
3
|
export interface ProgressBarProps extends HTMLAttributes<HTMLElement> {
|
|
5
4
|
max: number;
|
|
6
5
|
value: number;
|
|
7
|
-
theme: Theme;
|
|
8
6
|
label: string;
|
|
9
7
|
global?: boolean | null | undefined;
|
|
10
8
|
}
|
|
@@ -21,7 +19,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
|
21
19
|
static toPercent(value: number, max: number): number;
|
|
22
20
|
static propTypes: {
|
|
23
21
|
label: PropTypes.Requireable<string>;
|
|
24
|
-
theme: PropTypes.Requireable<string>;
|
|
25
22
|
/**
|
|
26
23
|
* Sets the ring-progress-bar_global class to position the progress bar on top of the screen.
|
|
27
24
|
* Should be placed directly inside body, will be positioned right below .ring-header
|
|
@@ -50,7 +47,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
|
50
47
|
static defaultProps: {
|
|
51
48
|
max: number;
|
|
52
49
|
value: number;
|
|
53
|
-
theme: Theme;
|
|
54
50
|
label: string;
|
|
55
51
|
};
|
|
56
52
|
progressbarWrapper?: (HTMLElement | null);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
|
-
import Theme from '../global/theme.js';
|
|
6
6
|
|
|
7
|
-
var modules_fb7af416 = {"
|
|
7
|
+
var modules_fb7af416 = {"dark":"dark_rui_eb55","unit":"8px","progressBar":"progressBar_rui_5875","globalMode":"globalMode_rui_5875","line":"line_rui_5875","progress-bar":"progress-bar_rui_5875"};
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @name Progress Bar
|
|
@@ -41,7 +41,6 @@ class ProgressBar extends PureComponent {
|
|
|
41
41
|
|
|
42
42
|
render() {
|
|
43
43
|
const {
|
|
44
|
-
theme,
|
|
45
44
|
className,
|
|
46
45
|
global,
|
|
47
46
|
max,
|
|
@@ -49,10 +48,8 @@ class ProgressBar extends PureComponent {
|
|
|
49
48
|
label,
|
|
50
49
|
...otherProps
|
|
51
50
|
} = this.props;
|
|
52
|
-
const width = value ?
|
|
51
|
+
const width = value ? "".concat(ProgressBar.toPercent(value, max), "%") : undefined;
|
|
53
52
|
const classes = classNames(modules_fb7af416.progressBar, className, {
|
|
54
|
-
[modules_fb7af416.light]: theme === Theme.LIGHT,
|
|
55
|
-
[modules_fb7af416.dark]: theme === Theme.DARK,
|
|
56
53
|
[modules_fb7af416.globalMode]: global
|
|
57
54
|
});
|
|
58
55
|
return /*#__PURE__*/React.createElement("div", _extends({}, otherProps, {
|
|
@@ -76,7 +73,6 @@ class ProgressBar extends PureComponent {
|
|
|
76
73
|
|
|
77
74
|
_defineProperty(ProgressBar, "propTypes", {
|
|
78
75
|
label: PropTypes.string,
|
|
79
|
-
theme: PropTypes.string,
|
|
80
76
|
|
|
81
77
|
/**
|
|
82
78
|
* Sets the ring-progress-bar_global class to position the progress bar on top of the screen.
|
|
@@ -110,7 +106,6 @@ _defineProperty(ProgressBar, "propTypes", {
|
|
|
110
106
|
_defineProperty(ProgressBar, "defaultProps", {
|
|
111
107
|
max: 1.0,
|
|
112
108
|
value: 0,
|
|
113
|
-
theme: Theme.LIGHT,
|
|
114
109
|
label: 'Progress'
|
|
115
110
|
});
|
|
116
111
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import ProgressBar from '../progress-bar/progress-bar.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import '../global/ring-angular-component.js';
|
|
8
10
|
import '../global/react-dom-renderer.js';
|
|
9
11
|
import 'prop-types';
|
|
10
12
|
import 'classnames';
|
|
11
|
-
import '../global/theme.js';
|
|
12
13
|
|
|
13
14
|
var progressBarNg = angularComponentFactory(ProgressBar, 'ProgressBar').name;
|
|
14
15
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import angular from 'angular';
|
|
3
4
|
import { m as modules_e81895c9 } from '../_helpers/button__classes.js';
|
|
4
5
|
import { applyMethodToClasses } from '../global/dom.js';
|
|
5
6
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
6
7
|
import { LOADER_BACKGROUND_SELECTOR } from '../button-ng/button-ng.js';
|
|
7
8
|
import 'classnames';
|
|
8
|
-
import '../global/theme.js';
|
|
9
|
-
import 'react';
|
|
10
9
|
import '../icon-ng/icon-ng.js';
|
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
|
11
11
|
import '../icon/icon__constants.js';
|
|
12
12
|
import '../template-ng/template-ng.js';
|
|
13
13
|
import '../_helpers/icon.js';
|
|
14
|
+
import '../global/controls-height.js';
|
|
15
|
+
import 'react';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* @name Promised Click Ng
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
|
+
|
|
1
3
|
function proxyAttrs(template, attrsWhitelist) {
|
|
2
4
|
return function copyAttrs(iElement, iAttrs) {
|
|
3
5
|
const PREFIX = 'data-proxy-';
|
|
@@ -7,9 +9,9 @@ function proxyAttrs(template, attrsWhitelist) {
|
|
|
7
9
|
if (iAttrs[attrName] !== undefined) {
|
|
8
10
|
const attrLower = iAttrs.$attr[attrName];
|
|
9
11
|
const attrValue = iAttrs[attrName];
|
|
10
|
-
const attrFind =
|
|
11
|
-
const attrReplace =
|
|
12
|
-
resultTemplate = resultTemplate.replace(RegExp(
|
|
12
|
+
const attrFind = "".concat(PREFIX).concat(attrLower).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
13
|
+
const attrReplace = "".concat(attrLower, "=\"").concat(attrValue, "\"");
|
|
14
|
+
resultTemplate = resultTemplate.replace(RegExp("".concat(attrFind, "(=\"\")*"), 'g'), attrReplace);
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
17
|
return resultTemplate;
|
|
@@ -2,7 +2,6 @@ import React, { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Caret, { Position } from '../caret/caret';
|
|
4
4
|
import PopupMenu from '../popup-menu/popup-menu';
|
|
5
|
-
import Theme from '../global/theme';
|
|
6
5
|
import Button from '../button/button';
|
|
7
6
|
import { ShortcutsMap } from '../shortcuts/core';
|
|
8
7
|
import { QueryAssistSuggestion, SuggestionItem } from './query-assist__suggestions';
|
|
@@ -34,7 +33,6 @@ export interface QueryAssistRequestParams {
|
|
|
34
33
|
omitSuggestions?: boolean;
|
|
35
34
|
}
|
|
36
35
|
export interface QueryAssistProps {
|
|
37
|
-
theme: Theme;
|
|
38
36
|
onApply: (change: QueryAssistChange) => void;
|
|
39
37
|
onChange: (change: QueryAssistChange) => void;
|
|
40
38
|
onApplySuggestion: (suggestion: QueryAssistSuggestion, change: QueryAssistChange) => void;
|
|
@@ -60,7 +58,7 @@ export interface QueryAssistProps {
|
|
|
60
58
|
actions?: ReactNode[] | null | undefined;
|
|
61
59
|
'data-test'?: string | null | undefined;
|
|
62
60
|
}
|
|
63
|
-
interface StyleRange {
|
|
61
|
+
export interface StyleRange {
|
|
64
62
|
style: string;
|
|
65
63
|
start: number;
|
|
66
64
|
length: number;
|
|
@@ -125,7 +123,6 @@ interface HistoryEntry {
|
|
|
125
123
|
*/
|
|
126
124
|
export default class QueryAssist extends Component<QueryAssistProps> {
|
|
127
125
|
static propTypes: {
|
|
128
|
-
theme: PropTypes.Requireable<string>;
|
|
129
126
|
/**
|
|
130
127
|
* Open suggestions popup during the initial render
|
|
131
128
|
*/
|
|
@@ -212,7 +209,6 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
212
209
|
'data-test': PropTypes.Requireable<string>;
|
|
213
210
|
};
|
|
214
211
|
static defaultProps: {
|
|
215
|
-
theme: Theme;
|
|
216
212
|
onApply: typeof noop;
|
|
217
213
|
onChange: typeof noop;
|
|
218
214
|
onApplySuggestion: typeof noop;
|
|
@@ -230,7 +226,6 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
230
226
|
shouldComponentUpdate(props: QueryAssistProps, state: QueryAssistState): boolean;
|
|
231
227
|
componentDidUpdate(prevProps: QueryAssistProps): void;
|
|
232
228
|
static ngModelStateField: string;
|
|
233
|
-
static Theme: typeof Theme;
|
|
234
229
|
immediateState: QueryAssistChange;
|
|
235
230
|
requestData?: (afterCompletion?: boolean) => void;
|
|
236
231
|
ngModelStateField: string;
|
|
@@ -299,18 +294,14 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
299
294
|
export declare type QueryAssistAttrs = JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;
|
|
300
295
|
export declare const RerenderableQueryAssist: {
|
|
301
296
|
new (props: QueryAssistProps): {
|
|
302
|
-
_propsCache:
|
|
303
|
-
|
|
304
|
-
}>;
|
|
305
|
-
rerender(props?: Partial<QueryAssistProps>, callback?: (() => void) | undefined): void | Element | React.Component<QueryAssistProps, any, any>;
|
|
297
|
+
_propsCache: QueryAssistProps & React.RefAttributes<unknown>;
|
|
298
|
+
rerender(props?: Partial<QueryAssistProps>, callback?: (() => void) | undefined): void;
|
|
306
299
|
node?: HTMLElement | null | undefined;
|
|
307
|
-
context:
|
|
300
|
+
context: unknown;
|
|
308
301
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<QueryAssistProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
309
302
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
310
303
|
render(): React.ReactNode;
|
|
311
|
-
readonly props: Readonly<QueryAssistProps
|
|
312
|
-
children?: React.ReactNode;
|
|
313
|
-
}>;
|
|
304
|
+
readonly props: Readonly<QueryAssistProps>;
|
|
314
305
|
state: Readonly<{}>;
|
|
315
306
|
refs: {
|
|
316
307
|
[key: string]: React.ReactInstance;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/es.string.replace.js';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
4
|
import React, { Component } from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
4
6
|
import debounce from 'just-debounce-it';
|
|
5
7
|
import classNames from 'classnames';
|
|
6
8
|
import deepEqual from 'deep-equal';
|
|
7
|
-
import searchIcon from '@jetbrains/icons/search';
|
|
8
|
-
import closeIcon from '@jetbrains/icons/close';
|
|
9
|
+
import searchIcon from '@jetbrains/icons/search-12px';
|
|
10
|
+
import closeIcon from '@jetbrains/icons/close-12px';
|
|
9
11
|
import getUID from '../global/get-uid.js';
|
|
10
12
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
11
13
|
import { preventDefault, getRect } from '../global/dom.js';
|
|
12
14
|
import Caret from '../caret/caret.js';
|
|
13
15
|
import ContentEditable from '../contenteditable/contenteditable.js';
|
|
14
16
|
import PopupMenu from '../popup-menu/popup-menu.js';
|
|
15
|
-
import
|
|
17
|
+
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
16
18
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
17
19
|
import rerenderHOC from '../global/rerender-hoc.js';
|
|
18
|
-
import
|
|
19
|
-
import ThemedButton from '../button/button.js';
|
|
20
|
+
import { Button } from '../button/button.js';
|
|
20
21
|
import { Q as QueryAssistSuggestions, m as modules_da7ab055 } from '../_helpers/query-assist__suggestions.js';
|
|
21
22
|
import 'react-dom/server';
|
|
22
23
|
import '../popup/popup.js';
|
|
@@ -50,7 +51,7 @@ import '../avatar/avatar.js';
|
|
|
50
51
|
import '../global/url.js';
|
|
51
52
|
import '../avatar/fallback-avatar.js';
|
|
52
53
|
import '../checkbox/checkbox.js';
|
|
53
|
-
import '@jetbrains/icons/checkmark';
|
|
54
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
54
55
|
import '@jetbrains/icons/remove-10px';
|
|
55
56
|
import '../icon/icon.js';
|
|
56
57
|
import '../icon/icon__constants.js';
|
|
@@ -63,13 +64,11 @@ import '../list/list__title.js';
|
|
|
63
64
|
import '../list/list__separator.js';
|
|
64
65
|
import '../list/list__hint.js';
|
|
65
66
|
import '../list/consts.js';
|
|
66
|
-
import '../_helpers/
|
|
67
|
-
import '../global/
|
|
68
|
-
import '
|
|
69
|
-
import '../global/supports-css.js';
|
|
70
|
-
import '../global/inject-styles.js';
|
|
71
|
-
import '../global/radial-gradient-mask.js';
|
|
67
|
+
import '../_helpers/loader-inline.js';
|
|
68
|
+
import '../global/react-render-adapter.js';
|
|
69
|
+
import '../global/composeRefs.js';
|
|
72
70
|
import '@jetbrains/icons/chevron-10px';
|
|
71
|
+
import '../global/controls-height.js';
|
|
73
72
|
import '../_helpers/button__classes.js';
|
|
74
73
|
|
|
75
74
|
const POPUP_COMPENSATION = PopupMenu.ListProps.Dimension.ITEM_PADDING + PopupMenu.PopupProps.Dimension.BORDER_WIDTH;
|
|
@@ -868,7 +867,7 @@ class QueryAssist extends Component {
|
|
|
868
867
|
return;
|
|
869
868
|
}
|
|
870
869
|
|
|
871
|
-
const styleName =
|
|
870
|
+
const styleName = "".concat(LETTER_CLASS, "-").concat(item.style.replace('_', '-'));
|
|
872
871
|
|
|
873
872
|
for (let i = item.start; i < item.start + item.length; i++) {
|
|
874
873
|
classes[i] = modules_da7ab055[styleName];
|
|
@@ -911,7 +910,7 @@ class QueryAssist extends Component {
|
|
|
911
910
|
const renderClear = this.props.clear && !!this.state.query;
|
|
912
911
|
|
|
913
912
|
if (renderClear) {
|
|
914
|
-
actions.push( /*#__PURE__*/React.createElement(
|
|
913
|
+
actions.push( /*#__PURE__*/React.createElement(Button, {
|
|
915
914
|
icon: closeIcon,
|
|
916
915
|
key: 'clearAction',
|
|
917
916
|
className: modules_da7ab055.icon,
|
|
@@ -928,7 +927,6 @@ class QueryAssist extends Component {
|
|
|
928
927
|
|
|
929
928
|
render() {
|
|
930
929
|
const {
|
|
931
|
-
theme,
|
|
932
930
|
glass,
|
|
933
931
|
'data-test': dataTest,
|
|
934
932
|
className,
|
|
@@ -937,10 +935,9 @@ class QueryAssist extends Component {
|
|
|
937
935
|
const renderPlaceholder = !!this.props.placeholder && this.state.placeholderEnabled;
|
|
938
936
|
const renderLoader = this.props.loader !== false && this.state.loading;
|
|
939
937
|
const renderGlass = glass && !renderLoader;
|
|
940
|
-
const renderUnderline = theme === Theme.DARK;
|
|
941
938
|
const actions = this.renderActions();
|
|
942
939
|
const inputClasses = classNames({
|
|
943
|
-
[
|
|
940
|
+
["".concat(modules_da7ab055.input, " ring-js-shortcuts")]: true,
|
|
944
941
|
[modules_da7ab055.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
|
945
942
|
[modules_da7ab055.inputGap2]: actions.length === 2,
|
|
946
943
|
[modules_da7ab055.inputLeftGap]: this.isRenderingGlassOrLoader() && glass,
|
|
@@ -948,13 +945,13 @@ class QueryAssist extends Component {
|
|
|
948
945
|
});
|
|
949
946
|
return /*#__PURE__*/React.createElement("div", {
|
|
950
947
|
"data-test": joinDataTestAttributes('ring-query-assist', dataTest),
|
|
951
|
-
className: classNames(className, modules_da7ab055.queryAssist
|
|
948
|
+
className: classNames(className, modules_da7ab055.queryAssist),
|
|
952
949
|
role: "presentation",
|
|
953
950
|
ref: this.nodeRef
|
|
954
951
|
}, this.state.shortcuts && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
955
952
|
map: this.shortcutsMap,
|
|
956
953
|
scope: this.shortcutsScope
|
|
957
|
-
}), renderGlass && /*#__PURE__*/React.createElement(
|
|
954
|
+
}), renderGlass && /*#__PURE__*/React.createElement(Button, {
|
|
958
955
|
icon: searchIcon,
|
|
959
956
|
className: modules_da7ab055.icon,
|
|
960
957
|
iconClassName: modules_da7ab055.iconInner,
|
|
@@ -967,9 +964,7 @@ class QueryAssist extends Component {
|
|
|
967
964
|
[modules_da7ab055.loaderOnTheRight]: !glass
|
|
968
965
|
}),
|
|
969
966
|
ref: this.loaderRef
|
|
970
|
-
}, /*#__PURE__*/React.createElement(
|
|
971
|
-
theme: theme
|
|
972
|
-
})), /*#__PURE__*/React.createElement(ContentEditable, {
|
|
967
|
+
}, /*#__PURE__*/React.createElement(LoaderInline, null)), /*#__PURE__*/React.createElement(ContentEditable, {
|
|
973
968
|
"aria-label": this.props.translations.searchTitle,
|
|
974
969
|
className: inputClasses,
|
|
975
970
|
"data-test": "ring-query-assist-input",
|
|
@@ -998,9 +993,7 @@ class QueryAssist extends Component {
|
|
|
998
993
|
ref: this.placeholderRef,
|
|
999
994
|
onClick: this.handleCaretMove,
|
|
1000
995
|
"data-test": "query-assist-placeholder"
|
|
1001
|
-
}, this.props.placeholder),
|
|
1002
|
-
className: modules_da7ab055.focusUnderline
|
|
1003
|
-
}), actions && /*#__PURE__*/React.createElement("div", {
|
|
996
|
+
}, this.props.placeholder), actions && /*#__PURE__*/React.createElement("div", {
|
|
1004
997
|
"data-test": "ring-query-assist-actions",
|
|
1005
998
|
className: modules_da7ab055.actions
|
|
1006
999
|
}, actions), /*#__PURE__*/React.createElement(PopupMenu, {
|
|
@@ -1010,7 +1003,7 @@ class QueryAssist extends Component {
|
|
|
1010
1003
|
anchorElement: this.node,
|
|
1011
1004
|
keepMounted: true,
|
|
1012
1005
|
attached: true,
|
|
1013
|
-
className:
|
|
1006
|
+
className: this.props.popupClassName,
|
|
1014
1007
|
directions: [PopupMenu.PopupProps.Directions.BOTTOM_RIGHT],
|
|
1015
1008
|
data: useCustomItemRender ? this.state.suggestions : this.renderSuggestions(),
|
|
1016
1009
|
"data-test": "ring-query-assist-popup",
|
|
@@ -1027,8 +1020,6 @@ class QueryAssist extends Component {
|
|
|
1027
1020
|
}
|
|
1028
1021
|
|
|
1029
1022
|
_defineProperty(QueryAssist, "propTypes", {
|
|
1030
|
-
theme: PropTypes.string,
|
|
1031
|
-
|
|
1032
1023
|
/**
|
|
1033
1024
|
* Open suggestions popup during the initial render
|
|
1034
1025
|
*/
|
|
@@ -1135,7 +1126,6 @@ _defineProperty(QueryAssist, "propTypes", {
|
|
|
1135
1126
|
});
|
|
1136
1127
|
|
|
1137
1128
|
_defineProperty(QueryAssist, "defaultProps", {
|
|
1138
|
-
theme: Theme.LIGHT,
|
|
1139
1129
|
onApply: noop,
|
|
1140
1130
|
onChange: noop,
|
|
1141
1131
|
onApplySuggestion: noop,
|
|
@@ -1149,8 +1139,6 @@ _defineProperty(QueryAssist, "defaultProps", {
|
|
|
1149
1139
|
|
|
1150
1140
|
_defineProperty(QueryAssist, "ngModelStateField", ngModelStateField);
|
|
1151
1141
|
|
|
1152
|
-
_defineProperty(QueryAssist, "Theme", Theme);
|
|
1153
|
-
|
|
1154
1142
|
const RerenderableQueryAssist = rerenderHOC(QueryAssist);
|
|
1155
1143
|
|
|
1156
1144
|
export { RerenderableQueryAssist, QueryAssist as default };
|