@jetbrains/ring-ui-built 6.0.1
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/LICENSE.txt +202 -0
- package/README.md +103 -0
- package/components/_helpers/_rollupPluginBabelHelpers.js +648 -0
- package/components/_helpers/anchor.js +31 -0
- package/components/_helpers/badge.js +3 -0
- package/components/_helpers/button__classes.js +34 -0
- package/components/_helpers/caption.js +31 -0
- package/components/_helpers/card.js +132 -0
- package/components/_helpers/date-picker.js +3 -0
- package/components/_helpers/dialog__body-scroll-preventer.js +54 -0
- package/components/_helpers/grid.js +3 -0
- package/components/_helpers/header.js +3 -0
- package/components/_helpers/heading.js +3 -0
- package/components/_helpers/icon__svg.js +75 -0
- package/components/_helpers/input.js +235 -0
- package/components/_helpers/island.js +3 -0
- package/components/_helpers/link.js +3 -0
- package/components/_helpers/list.js +3 -0
- package/components/_helpers/query-assist__suggestions.js +102 -0
- package/components/_helpers/select__filter.js +94 -0
- package/components/_helpers/services-link.js +48 -0
- package/components/_helpers/sidebar.js +123 -0
- package/components/_helpers/tab-link.js +34 -0
- package/components/_helpers/table.js +3 -0
- package/components/_helpers/theme.js +95 -0
- package/components/_helpers/title.js +103 -0
- package/components/alert/alert.d.ts +113 -0
- package/components/alert/alert.js +294 -0
- package/components/alert/container.d.ts +15 -0
- package/components/alert/container.js +52 -0
- package/components/alert-service/alert-service.d.ts +36 -0
- package/components/alert-service/alert-service.js +220 -0
- package/components/analytics/analytics.d.ts +18 -0
- package/components/analytics/analytics.js +31 -0
- package/components/analytics/analytics__custom-plugin.d.ts +28 -0
- package/components/analytics/analytics__custom-plugin.js +89 -0
- package/components/auth/auth.d.ts +3 -0
- package/components/auth/auth.js +133 -0
- package/components/auth/auth__core.d.ts +236 -0
- package/components/auth/auth__core.js +1653 -0
- package/components/auth/background-flow.d.ts +31 -0
- package/components/auth/background-flow.js +147 -0
- package/components/auth/down-notification.d.ts +15 -0
- package/components/auth/down-notification.js +157 -0
- package/components/auth/iframe-flow.d.ts +20 -0
- package/components/auth/iframe-flow.js +196 -0
- package/components/auth/request-builder.d.ts +48 -0
- package/components/auth/request-builder.js +104 -0
- package/components/auth/response-parser.d.ts +70 -0
- package/components/auth/response-parser.js +138 -0
- package/components/auth/storage.d.ts +112 -0
- package/components/auth/storage.js +429 -0
- package/components/auth/token-validator.d.ts +93 -0
- package/components/auth/token-validator.js +269 -0
- package/components/auth/window-flow.d.ts +26 -0
- package/components/auth/window-flow.js +154 -0
- package/components/auth-dialog/auth-dialog.d.ts +60 -0
- package/components/auth-dialog/auth-dialog.js +221 -0
- package/components/auth-dialog-service/auth-dialog-service.d.ts +6 -0
- package/components/auth-dialog-service/auth-dialog-service.js +92 -0
- package/components/avatar/avatar-example-datauri.d.ts +1 -0
- package/components/avatar/avatar-example-datauri.js +4 -0
- package/components/avatar/avatar.d.ts +52 -0
- package/components/avatar/avatar.js +183 -0
- package/components/avatar/fallback-avatar.d.ts +17 -0
- package/components/avatar/fallback-avatar.js +151 -0
- package/components/badge/badge.d.ts +24 -0
- package/components/badge/badge.js +59 -0
- package/components/button/button.d.ts +67 -0
- package/components/button/button.js +131 -0
- package/components/button/button__classes.d.ts +2 -0
- package/components/button/button__classes.js +2 -0
- package/components/button-group/button-group.d.ts +18 -0
- package/components/button-group/button-group.js +48 -0
- package/components/button-group/caption.d.ts +8 -0
- package/components/button-group/caption.js +5 -0
- package/components/button-set/button-set.d.ts +16 -0
- package/components/button-set/button-set.js +47 -0
- package/components/button-toolbar/button-toolbar.d.ts +16 -0
- package/components/button-toolbar/button-toolbar.js +46 -0
- package/components/caret/caret.d.ts +66 -0
- package/components/caret/caret.js +259 -0
- package/components/checkbox/checkbox.d.ts +45 -0
- package/components/checkbox/checkbox.js +130 -0
- package/components/clipboard/clipboard-fallback.d.ts +2 -0
- package/components/clipboard/clipboard-fallback.js +42 -0
- package/components/clipboard/clipboard.d.ts +5 -0
- package/components/clipboard/clipboard.js +185 -0
- package/components/code/code.d.ts +44 -0
- package/components/code/code.js +191 -0
- package/components/confirm/confirm.d.ts +48 -0
- package/components/confirm/confirm.js +153 -0
- package/components/confirm-service/confirm-service.d.ts +21 -0
- package/components/confirm-service/confirm-service.js +141 -0
- package/components/content-layout/content-layout.d.ts +26 -0
- package/components/content-layout/content-layout.js +79 -0
- package/components/content-layout/sidebar.d.ts +31 -0
- package/components/content-layout/sidebar.js +7 -0
- package/components/contenteditable/contenteditable.d.ts +47 -0
- package/components/contenteditable/contenteditable.js +84 -0
- package/components/control-label/control-label.d.ts +11 -0
- package/components/control-label/control-label.js +36 -0
- package/components/data-list/data-list.d.ts +85 -0
- package/components/data-list/data-list.js +251 -0
- package/components/data-list/data-list.mock.d.ts +16 -0
- package/components/data-list/data-list.mock.js +192 -0
- package/components/data-list/item.d.ts +50 -0
- package/components/data-list/item.js +235 -0
- package/components/data-list/selection.d.ts +16 -0
- package/components/data-list/selection.js +148 -0
- package/components/data-list/title.d.ts +26 -0
- package/components/data-list/title.js +28 -0
- package/components/date-picker/consts.d.ts +98 -0
- package/components/date-picker/consts.js +46 -0
- package/components/date-picker/date-input.d.ts +47 -0
- package/components/date-picker/date-input.js +177 -0
- package/components/date-picker/date-picker.d.ts +77 -0
- package/components/date-picker/date-picker.js +404 -0
- package/components/date-picker/date-popup.d.ts +55 -0
- package/components/date-picker/date-popup.js +488 -0
- package/components/date-picker/day.d.ts +30 -0
- package/components/date-picker/day.js +133 -0
- package/components/date-picker/formats.d.ts +2 -0
- package/components/date-picker/formats.js +3 -0
- package/components/date-picker/month-names.d.ts +13 -0
- package/components/date-picker/month-names.js +110 -0
- package/components/date-picker/month-slider.d.ts +29 -0
- package/components/date-picker/month-slider.js +93 -0
- package/components/date-picker/month.d.ts +14 -0
- package/components/date-picker/month.js +58 -0
- package/components/date-picker/months.d.ts +11 -0
- package/components/date-picker/months.js +133 -0
- package/components/date-picker/weekdays.d.ts +13 -0
- package/components/date-picker/weekdays.js +39 -0
- package/components/date-picker/years.d.ts +25 -0
- package/components/date-picker/years.js +134 -0
- package/components/dialog/dialog.d.ts +64 -0
- package/components/dialog/dialog.js +240 -0
- package/components/dialog/dialog__body-scroll-preventer.d.ts +9 -0
- package/components/dialog/dialog__body-scroll-preventer.js +6 -0
- package/components/dropdown/anchor.d.ts +11 -0
- package/components/dropdown/anchor.js +24 -0
- package/components/dropdown/dropdown.d.ts +87 -0
- package/components/dropdown/dropdown.js +247 -0
- package/components/dropdown-menu/dropdown-menu.d.ts +36 -0
- package/components/dropdown-menu/dropdown-menu.js +199 -0
- package/components/editable-heading/editable-heading.d.ts +32 -0
- package/components/editable-heading/editable-heading.js +276 -0
- package/components/error-bubble/error-bubble.d.ts +18 -0
- package/components/error-bubble/error-bubble.js +88 -0
- package/components/error-message/error-message.d.ts +27 -0
- package/components/error-message/error-message.js +78 -0
- package/components/footer/footer.d.ts +28 -0
- package/components/footer/footer.js +118 -0
- package/components/global/compose.d.ts +7 -0
- package/components/global/compose.js +17 -0
- package/components/global/composeRefs.d.ts +3 -0
- package/components/global/composeRefs.js +19 -0
- package/components/global/controls-height.d.ts +9 -0
- package/components/global/controls-height.js +19 -0
- package/components/global/create-stateful-context.d.ts +27 -0
- package/components/global/create-stateful-context.js +49 -0
- package/components/global/data-tests.d.ts +3 -0
- package/components/global/data-tests.js +30 -0
- package/components/global/dom.d.ts +37 -0
- package/components/global/dom.js +151 -0
- package/components/global/focus-sensor-hoc.d.ts +19 -0
- package/components/global/focus-sensor-hoc.js +165 -0
- package/components/global/fuzzy-highlight.d.ts +11 -0
- package/components/global/fuzzy-highlight.js +90 -0
- package/components/global/get-event-key.d.ts +2 -0
- package/components/global/get-event-key.js +101 -0
- package/components/global/get-uid.d.ts +1 -0
- package/components/global/get-uid.js +22 -0
- package/components/global/inject-styles.d.ts +3 -0
- package/components/global/inject-styles.js +22 -0
- package/components/global/linear-function.d.ts +6 -0
- package/components/global/linear-function.js +15 -0
- package/components/global/listeners.d.ts +8 -0
- package/components/global/listeners.js +58 -0
- package/components/global/memoize.d.ts +1 -0
- package/components/global/memoize.js +23 -0
- package/components/global/normalize-indent.d.ts +1 -0
- package/components/global/normalize-indent.js +60 -0
- package/components/global/promise-with-timeout.d.ts +5 -0
- package/components/global/promise-with-timeout.js +19 -0
- package/components/global/prop-types.d.ts +4 -0
- package/components/global/prop-types.js +9 -0
- package/components/global/react-dom-renderer.d.ts +16 -0
- package/components/global/react-dom-renderer.js +54 -0
- package/components/global/react-render-adapter.d.ts +1 -0
- package/components/global/react-render-adapter.js +6 -0
- package/components/global/rerender-hoc.d.ts +10 -0
- package/components/global/rerender-hoc.js +46 -0
- package/components/global/schedule-raf.d.ts +1 -0
- package/components/global/schedule-raf.js +28 -0
- package/components/global/sniffer.d.ts +3 -0
- package/components/global/sniffer.js +6 -0
- package/components/global/theme.d.ts +21 -0
- package/components/global/theme.js +42 -0
- package/components/global/trivial-template-tag.d.ts +1 -0
- package/components/global/trivial-template-tag.js +21 -0
- package/components/global/typescript-utils.d.ts +2 -0
- package/components/global/typescript-utils.js +8 -0
- package/components/global/url.d.ts +57 -0
- package/components/global/url.js +142 -0
- package/components/global/use-event-callback.d.ts +1 -0
- package/components/global/use-event-callback.js +17 -0
- package/components/global/variables.d.ts +89 -0
- package/components/global/variables.js +1 -0
- package/components/grid/col.d.ts +31 -0
- package/components/grid/col.js +80 -0
- package/components/grid/grid.d.ts +14 -0
- package/components/grid/grid.js +46 -0
- package/components/grid/row.d.ts +40 -0
- package/components/grid/row.js +75 -0
- package/components/group/group.d.ts +12 -0
- package/components/group/group.js +39 -0
- package/components/header/header.d.ts +34 -0
- package/components/header/header.js +189 -0
- package/components/header/logo.d.ts +14 -0
- package/components/header/logo.js +51 -0
- package/components/header/profile.d.ts +75 -0
- package/components/header/profile.js +258 -0
- package/components/header/services-link.d.ts +25 -0
- package/components/header/services-link.js +13 -0
- package/components/header/services.d.ts +33 -0
- package/components/header/services.js +174 -0
- package/components/header/smart-profile.d.ts +36 -0
- package/components/header/smart-profile.js +303 -0
- package/components/header/smart-services.d.ts +26 -0
- package/components/header/smart-services.js +192 -0
- package/components/header/tray-icon.d.ts +32 -0
- package/components/header/tray-icon.js +57 -0
- package/components/header/tray.d.ts +9 -0
- package/components/header/tray.js +41 -0
- package/components/heading/heading.d.ts +25 -0
- package/components/heading/heading.js +69 -0
- package/components/http/http.d.ts +61 -0
- package/components/http/http.js +386 -0
- package/components/http/http.mock.d.ts +20 -0
- package/components/http/http.mock.js +113 -0
- package/components/hub-source/hub-source.d.ts +44 -0
- package/components/hub-source/hub-source.js +217 -0
- package/components/hub-source/hub-source__user.d.ts +4 -0
- package/components/hub-source/hub-source__user.js +60 -0
- package/components/hub-source/hub-source__users-groups.d.ts +24 -0
- package/components/hub-source/hub-source__users-groups.js +86 -0
- package/components/i18n/i18n-context.d.ts +13 -0
- package/components/i18n/i18n-context.js +27 -0
- package/components/i18n/i18n.d.ts +59 -0
- package/components/i18n/i18n.js +139 -0
- package/components/icon/icon.d.ts +43 -0
- package/components/icon/icon.js +109 -0
- package/components/icon/icon__constants.d.ts +30 -0
- package/components/icon/icon__constants.js +34 -0
- package/components/icon/icon__svg.d.ts +15 -0
- package/components/icon/icon__svg.js +14 -0
- package/components/icon/index.d.ts +2 -0
- package/components/icon/index.js +17 -0
- package/components/input/input.d.ts +77 -0
- package/components/input/input.js +35 -0
- package/components/island/adaptive-island-hoc.d.ts +61 -0
- package/components/island/adaptive-island-hoc.js +53 -0
- package/components/island/content.d.ts +43 -0
- package/components/island/content.js +151 -0
- package/components/island/header.d.ts +8 -0
- package/components/island/header.js +100 -0
- package/components/island/island.d.ts +78 -0
- package/components/island/island.js +60 -0
- package/components/island-legacy/content-legacy.d.ts +10 -0
- package/components/island-legacy/content-legacy.js +34 -0
- package/components/island-legacy/header-legacy.d.ts +10 -0
- package/components/island-legacy/header-legacy.js +36 -0
- package/components/island-legacy/island-legacy.d.ts +12 -0
- package/components/island-legacy/island-legacy.js +36 -0
- package/components/link/clickableLink.d.ts +20 -0
- package/components/link/clickableLink.js +69 -0
- package/components/link/link.d.ts +138 -0
- package/components/link/link.js +86 -0
- package/components/list/consts.d.ts +77 -0
- package/components/list/consts.js +27 -0
- package/components/list/list.d.ts +205 -0
- package/components/list/list.js +802 -0
- package/components/list/list__custom.d.ts +6 -0
- package/components/list/list__custom.js +92 -0
- package/components/list/list__hint.d.ts +15 -0
- package/components/list/list__hint.js +33 -0
- package/components/list/list__item.d.ts +8 -0
- package/components/list/list__item.js +237 -0
- package/components/list/list__link.d.ts +9 -0
- package/components/list/list__link.js +76 -0
- package/components/list/list__separator.d.ts +5 -0
- package/components/list/list__separator.js +39 -0
- package/components/list/list__title.d.ts +5 -0
- package/components/list/list__title.js +48 -0
- package/components/list/list__users-groups-source.d.ts +27 -0
- package/components/list/list__users-groups-source.js +195 -0
- package/components/loader/loader.d.ts +28 -0
- package/components/loader/loader.js +93 -0
- package/components/loader/loader__core.d.ts +75 -0
- package/components/loader/loader__core.js +327 -0
- package/components/loader-inline/loader-inline.d.ts +18 -0
- package/components/loader-inline/loader-inline.js +50 -0
- package/components/loader-screen/loader-screen.d.ts +17 -0
- package/components/loader-screen/loader-screen.js +64 -0
- package/components/login-dialog/login-dialog.d.ts +47 -0
- package/components/login-dialog/login-dialog.js +216 -0
- package/components/login-dialog/service.d.ts +2 -0
- package/components/login-dialog/service.js +98 -0
- package/components/markdown/markdown.d.ts +12 -0
- package/components/markdown/markdown.js +43 -0
- package/components/message/message.d.ts +55 -0
- package/components/message/message.js +267 -0
- package/components/old-browsers-message/old-browsers-message.d.ts +2 -0
- package/components/old-browsers-message/old-browsers-message.js +92 -0
- package/components/old-browsers-message/old-browsers-message__stop.d.ts +1 -0
- package/components/old-browsers-message/old-browsers-message__stop.js +11 -0
- package/components/old-browsers-message/white-list.d.ts +2 -0
- package/components/old-browsers-message/white-list.js +37 -0
- package/components/pager/pager.d.ts +78 -0
- package/components/pager/pager.js +390 -0
- package/components/panel/panel.d.ts +12 -0
- package/components/panel/panel.js +39 -0
- package/components/permissions/permissions.d.ts +111 -0
- package/components/permissions/permissions.js +221 -0
- package/components/permissions/permissions__cache.d.ts +93 -0
- package/components/permissions/permissions__cache.js +257 -0
- package/components/popup/popup.consts.d.ts +37 -0
- package/components/popup/popup.consts.js +44 -0
- package/components/popup/popup.d.ts +147 -0
- package/components/popup/popup.js +424 -0
- package/components/popup/popup.target.d.ts +7 -0
- package/components/popup/popup.target.js +24 -0
- package/components/popup/position.d.ts +30 -0
- package/components/popup/position.js +271 -0
- package/components/popup-menu/popup-menu.d.ts +80 -0
- package/components/popup-menu/popup-menu.js +141 -0
- package/components/progress-bar/progress-bar.d.ts +64 -0
- package/components/progress-bar/progress-bar.js +120 -0
- package/components/query-assist/query-assist.d.ts +306 -0
- package/components/query-assist/query-assist.js +1098 -0
- package/components/query-assist/query-assist__suggestions.d.ts +29 -0
- package/components/query-assist/query-assist__suggestions.js +75 -0
- package/components/radio/radio.d.ts +18 -0
- package/components/radio/radio.js +48 -0
- package/components/radio/radio__item.d.ts +28 -0
- package/components/radio/radio__item.js +88 -0
- package/components/select/select.d.ts +276 -0
- package/components/select/select.js +1310 -0
- package/components/select/select__filter.d.ts +19 -0
- package/components/select/select__filter.js +85 -0
- package/components/select/select__popup.d.ts +166 -0
- package/components/select/select__popup.js +631 -0
- package/components/shortcuts/core.d.ts +74 -0
- package/components/shortcuts/core.js +249 -0
- package/components/shortcuts/shortcut-title.d.ts +1 -0
- package/components/shortcuts/shortcut-title.js +56 -0
- package/components/shortcuts/shortcuts-hoc.d.ts +65 -0
- package/components/shortcuts/shortcuts-hoc.js +61 -0
- package/components/shortcuts/shortcuts.d.ts +28 -0
- package/components/shortcuts/shortcuts.js +92 -0
- package/components/storage/storage.d.ts +18 -0
- package/components/storage/storage.js +92 -0
- package/components/storage/storage__fallback.d.ts +79 -0
- package/components/storage/storage__fallback.js +254 -0
- package/components/storage/storage__local.d.ts +38 -0
- package/components/storage/storage__local.js +217 -0
- package/components/style.css +1 -0
- package/components/tab-trap/tab-trap.d.ts +43 -0
- package/components/tab-trap/tab-trap.js +180 -0
- package/components/table/cell.d.ts +13 -0
- package/components/table/cell.js +37 -0
- package/components/table/disable-hover-hoc.d.ts +64 -0
- package/components/table/disable-hover-hoc.js +62 -0
- package/components/table/header-cell.d.ts +43 -0
- package/components/table/header-cell.js +109 -0
- package/components/table/header.d.ts +56 -0
- package/components/table/header.js +151 -0
- package/components/table/multitable.d.ts +25 -0
- package/components/table/multitable.js +140 -0
- package/components/table/row-with-focus-sensor.d.ts +18 -0
- package/components/table/row-with-focus-sensor.js +117 -0
- package/components/table/row.d.ts +59 -0
- package/components/table/row.js +299 -0
- package/components/table/selection-adapter.d.ts +5 -0
- package/components/table/selection-adapter.js +14 -0
- package/components/table/selection-shortcuts-hoc.d.ts +17 -0
- package/components/table/selection-shortcuts-hoc.js +205 -0
- package/components/table/selection.d.ts +47 -0
- package/components/table/selection.js +257 -0
- package/components/table/smart-table.d.ts +64 -0
- package/components/table/smart-table.js +149 -0
- package/components/table/table.d.ts +159 -0
- package/components/table/table.js +463 -0
- package/components/tabs/collapsible-more.d.ts +29 -0
- package/components/tabs/collapsible-more.js +222 -0
- package/components/tabs/collapsible-tab.d.ts +16 -0
- package/components/tabs/collapsible-tab.js +88 -0
- package/components/tabs/collapsible-tabs.d.ts +43 -0
- package/components/tabs/collapsible-tabs.js +354 -0
- package/components/tabs/custom-item.d.ts +9 -0
- package/components/tabs/custom-item.js +11 -0
- package/components/tabs/dumb-tabs.d.ts +35 -0
- package/components/tabs/dumb-tabs.js +189 -0
- package/components/tabs/smart-tabs.d.ts +20 -0
- package/components/tabs/smart-tabs.js +141 -0
- package/components/tabs/tab-link.d.ts +18 -0
- package/components/tabs/tab-link.js +13 -0
- package/components/tabs/tab.d.ts +27 -0
- package/components/tabs/tab.js +41 -0
- package/components/tabs/tabs.d.ts +7 -0
- package/components/tabs/tabs.js +99 -0
- package/components/tag/tag.d.ts +64 -0
- package/components/tag/tag.js +213 -0
- package/components/tags-input/tags-input.d.ts +138 -0
- package/components/tags-input/tags-input.js +534 -0
- package/components/tags-list/tags-list.d.ts +46 -0
- package/components/tags-list/tags-list.js +102 -0
- package/components/text/text.d.ts +23 -0
- package/components/text/text.js +57 -0
- package/components/toggle/toggle.d.ts +39 -0
- package/components/toggle/toggle.js +86 -0
- package/components/tooltip/tooltip.d.ts +65 -0
- package/components/tooltip/tooltip.js +229 -0
- package/components/user-agreement/service.d.ts +69 -0
- package/components/user-agreement/service.js +487 -0
- package/components/user-agreement/toolbox.eula.d.ts +2 -0
- package/components/user-agreement/toolbox.eula.js +3 -0
- package/components/user-agreement/user-agreement.d.ts +60 -0
- package/components/user-agreement/user-agreement.js +172 -0
- package/components/user-card/card.d.ts +70 -0
- package/components/user-card/card.js +80 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +20 -0
- package/components/user-card/smart-user-card-tooltip.js +172 -0
- package/components/user-card/tooltip.d.ts +36 -0
- package/components/user-card/tooltip.js +144 -0
- package/components/user-card/user-card.d.ts +11 -0
- package/components/user-card/user-card.js +85 -0
- package/package.json +118 -0
- package/typings.d.ts +43 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ListDataItem } from '../list/consts';
|
3
|
+
export interface QueryAssistSuggestion {
|
4
|
+
description: string;
|
5
|
+
group: string;
|
6
|
+
icon?: string | undefined;
|
7
|
+
option: string;
|
8
|
+
prefix?: string | undefined;
|
9
|
+
suffix?: string | undefined;
|
10
|
+
className?: string | undefined;
|
11
|
+
matchingStart?: number;
|
12
|
+
matchingEnd?: number;
|
13
|
+
caret?: number;
|
14
|
+
completionStart?: number;
|
15
|
+
completionEnd?: number;
|
16
|
+
}
|
17
|
+
export interface SuggestionItem {
|
18
|
+
data?: QueryAssistSuggestion;
|
19
|
+
}
|
20
|
+
export default class QueryAssistSuggestions {
|
21
|
+
static createKey(suggestion: QueryAssistSuggestion): string;
|
22
|
+
static renderLabel(suggestion: QueryAssistSuggestion): React.JSX.Element;
|
23
|
+
static renderGroupSeparator(suggestion: QueryAssistSuggestion, prevSuggestion: string): {
|
24
|
+
key: string;
|
25
|
+
description: string;
|
26
|
+
rgItemType: import("../list/consts").Type;
|
27
|
+
} | null;
|
28
|
+
static renderList(suggestions: readonly QueryAssistSuggestion[], suggestionRenderer: (suggestion: QueryAssistSuggestion) => ListDataItem<SuggestionItem>): ListDataItem<SuggestionItem>[];
|
29
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.symbol.js';
|
3
|
+
import 'core-js/modules/es.symbol.description.js';
|
4
|
+
import 'core-js/modules/es.object.to-string.js';
|
5
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
6
|
+
import 'react';
|
7
|
+
import '../list/list.js';
|
8
|
+
export { Q as default } from '../_helpers/query-assist__suggestions.js';
|
9
|
+
import 'core-js/modules/es.array.includes.js';
|
10
|
+
import 'core-js/modules/es.string.includes.js';
|
11
|
+
import 'core-js/modules/es.array.map.js';
|
12
|
+
import 'core-js/modules/es.array.concat.js';
|
13
|
+
import 'core-js/modules/es.array.find-index.js';
|
14
|
+
import 'core-js/modules/es.object.assign.js';
|
15
|
+
import 'core-js/modules/es.array.find.js';
|
16
|
+
import 'prop-types';
|
17
|
+
import 'classnames';
|
18
|
+
import 'react-virtualized/dist/es/List';
|
19
|
+
import 'react-virtualized/dist/es/AutoSizer';
|
20
|
+
import 'react-virtualized/dist/es/WindowScroller';
|
21
|
+
import 'react-virtualized/dist/es/CellMeasurer';
|
22
|
+
import 'util-deprecate';
|
23
|
+
import 'memoize-one';
|
24
|
+
import '../global/data-tests.js';
|
25
|
+
import 'core-js/modules/es.array.reduce.js';
|
26
|
+
import 'core-js/modules/es.object.entries.js';
|
27
|
+
import '../global/get-uid.js';
|
28
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
29
|
+
import '../global/schedule-raf.js';
|
30
|
+
import '../global/memoize.js';
|
31
|
+
import 'core-js/modules/es.array.iterator.js';
|
32
|
+
import 'core-js/modules/es.map.js';
|
33
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
34
|
+
import 'core-js/modules/es.weak-map.js';
|
35
|
+
import '../global/dom.js';
|
36
|
+
import 'core-js/modules/es.array.filter.js';
|
37
|
+
import 'core-js/modules/es.regexp.exec.js';
|
38
|
+
import 'core-js/modules/es.string.split.js';
|
39
|
+
import 'core-js/modules/es.set.js';
|
40
|
+
import '../shortcuts/shortcuts.js';
|
41
|
+
import '../shortcuts/core.js';
|
42
|
+
import 'core-js/modules/es.array.slice.js';
|
43
|
+
import 'core-js/modules/es.array.splice.js';
|
44
|
+
import 'core-js/modules/es.string.match.js';
|
45
|
+
import 'combokeys';
|
46
|
+
import '../global/sniffer.js';
|
47
|
+
import 'sniffr';
|
48
|
+
import '../global/create-stateful-context.js';
|
49
|
+
import '../list/list__link.js';
|
50
|
+
import '../link/link.js';
|
51
|
+
import '../link/clickableLink.js';
|
52
|
+
import '../_helpers/link.js';
|
53
|
+
import '../_helpers/list.js';
|
54
|
+
import '../list/list__item.js';
|
55
|
+
import 'core-js/modules/es.array.index-of.js';
|
56
|
+
import '../avatar/avatar.js';
|
57
|
+
import '../global/url.js';
|
58
|
+
import 'core-js/modules/es.string.replace.js';
|
59
|
+
import '../avatar/fallback-avatar.js';
|
60
|
+
import 'core-js/modules/es.array.from.js';
|
61
|
+
import '../checkbox/checkbox.js';
|
62
|
+
import '@jetbrains/icons/checkmark-14px';
|
63
|
+
import '@jetbrains/icons/remove-14px';
|
64
|
+
import '../icon/icon.js';
|
65
|
+
import '../icon/icon__constants.js';
|
66
|
+
import '../_helpers/icon__svg.js';
|
67
|
+
import 'core-js/modules/es.string.starts-with.js';
|
68
|
+
import '../global/prop-types.js';
|
69
|
+
import '../global/composeRefs.js';
|
70
|
+
import '../list/list__custom.js';
|
71
|
+
import '../global/get-event-key.js';
|
72
|
+
import '../list/list__title.js';
|
73
|
+
import '../list/list__separator.js';
|
74
|
+
import '../list/list__hint.js';
|
75
|
+
import '../list/consts.js';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React, { Component } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import { RadioProps } from './radio__item';
|
4
|
+
/**
|
5
|
+
* @name Radio
|
6
|
+
*/
|
7
|
+
export default class Radio extends Component<RadioProps> {
|
8
|
+
static propTypes: {
|
9
|
+
name: PropTypes.Requireable<string>;
|
10
|
+
disabled: PropTypes.Requireable<boolean>;
|
11
|
+
value: PropTypes.Requireable<NonNullable<string | number | boolean | null | undefined>>;
|
12
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
13
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
14
|
+
};
|
15
|
+
static Item: React.ForwardRefExoticComponent<import("./radio__item").RadioItemProps & React.RefAttributes<import("./radio__item").Radio>>;
|
16
|
+
uid: string;
|
17
|
+
render(): React.JSX.Element;
|
18
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.array.concat.js';
|
3
|
+
import React, { Component } from 'react';
|
4
|
+
import PropTypes from 'prop-types';
|
5
|
+
import getUID from '../global/get-uid.js';
|
6
|
+
import RadioItem, { RadioContext } from './radio__item.js';
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
8
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
9
|
+
import 'classnames';
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @name Radio
|
13
|
+
*/
|
14
|
+
var Radio = /*#__PURE__*/function (_Component) {
|
15
|
+
_inherits(Radio, _Component);
|
16
|
+
var _super = _createSuper(Radio);
|
17
|
+
function Radio() {
|
18
|
+
var _this;
|
19
|
+
_classCallCheck(this, Radio);
|
20
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
21
|
+
args[_key] = arguments[_key];
|
22
|
+
}
|
23
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
24
|
+
_defineProperty(_assertThisInitialized(_this), "uid", getUID('ring-radio-'));
|
25
|
+
return _this;
|
26
|
+
}
|
27
|
+
_createClass(Radio, [{
|
28
|
+
key: "render",
|
29
|
+
value: function render() {
|
30
|
+
return /*#__PURE__*/React.createElement(RadioContext.Provider, {
|
31
|
+
value: _objectSpread2({
|
32
|
+
name: this.uid
|
33
|
+
}, this.props)
|
34
|
+
}, this.props.children);
|
35
|
+
}
|
36
|
+
}]);
|
37
|
+
return Radio;
|
38
|
+
}(Component);
|
39
|
+
_defineProperty(Radio, "propTypes", {
|
40
|
+
name: PropTypes.string,
|
41
|
+
disabled: PropTypes.bool,
|
42
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),
|
43
|
+
onChange: PropTypes.func,
|
44
|
+
children: PropTypes.node.isRequired
|
45
|
+
});
|
46
|
+
_defineProperty(Radio, "Item", RadioItem);
|
47
|
+
|
48
|
+
export { Radio as default };
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React, { Component, InputHTMLAttributes } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
4
|
+
value?: string | undefined;
|
5
|
+
onChange?: ((value: string) => void) | null | undefined;
|
6
|
+
}
|
7
|
+
export declare const RadioContext: React.Context<RadioProps>;
|
8
|
+
export declare class Radio extends Component<InputHTMLAttributes<HTMLInputElement>> {
|
9
|
+
static propTypes: {
|
10
|
+
className: PropTypes.Requireable<string>;
|
11
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
12
|
+
value: PropTypes.Requireable<string>;
|
13
|
+
name: PropTypes.Requireable<string>;
|
14
|
+
checked: PropTypes.Requireable<boolean>;
|
15
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
16
|
+
};
|
17
|
+
uid: string;
|
18
|
+
input?: HTMLElement | null;
|
19
|
+
inputRef: (el: HTMLElement | null) => void;
|
20
|
+
label?: HTMLElement | null;
|
21
|
+
labelRef: (el: HTMLElement | null) => void;
|
22
|
+
render(): React.JSX.Element;
|
23
|
+
}
|
24
|
+
export interface RadioItemProps extends InputHTMLAttributes<HTMLInputElement> {
|
25
|
+
value: string;
|
26
|
+
}
|
27
|
+
declare const RadioItem: React.ForwardRefExoticComponent<RadioItemProps & React.RefAttributes<Radio>>;
|
28
|
+
export default RadioItem;
|
@@ -0,0 +1,88 @@
|
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.array.concat.js';
|
3
|
+
import React, { createContext, Component, forwardRef } from 'react';
|
4
|
+
import PropTypes from 'prop-types';
|
5
|
+
import classNames from 'classnames';
|
6
|
+
import getUID from '../global/get-uid.js';
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
8
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
9
|
+
|
10
|
+
var modules_df92307a = {"light":"light_rui_2ac4","radio":"radio_rui_370b","circle":"circle_rui_370b","input":"input_rui_370b","focus":"focus_rui_370b","label":"label_rui_370b"};
|
11
|
+
|
12
|
+
var _excluded = ["className", "children"],
|
13
|
+
_excluded2 = ["value", "onChange"];
|
14
|
+
var RadioContext = /*#__PURE__*/createContext({});
|
15
|
+
var Radio = /*#__PURE__*/function (_Component) {
|
16
|
+
_inherits(Radio, _Component);
|
17
|
+
var _super = _createSuper(Radio);
|
18
|
+
function Radio() {
|
19
|
+
var _this;
|
20
|
+
_classCallCheck(this, Radio);
|
21
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
22
|
+
args[_key] = arguments[_key];
|
23
|
+
}
|
24
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
25
|
+
_defineProperty(_assertThisInitialized(_this), "uid", getUID('ring-radio-item-'));
|
26
|
+
_defineProperty(_assertThisInitialized(_this), "input", void 0);
|
27
|
+
_defineProperty(_assertThisInitialized(_this), "inputRef", function (el) {
|
28
|
+
_this.input = el;
|
29
|
+
});
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "label", void 0);
|
31
|
+
_defineProperty(_assertThisInitialized(_this), "labelRef", function (el) {
|
32
|
+
_this.label = el;
|
33
|
+
});
|
34
|
+
return _this;
|
35
|
+
}
|
36
|
+
_createClass(Radio, [{
|
37
|
+
key: "render",
|
38
|
+
value: function render() {
|
39
|
+
var _this$props = this.props,
|
40
|
+
className = _this$props.className,
|
41
|
+
children = _this$props.children,
|
42
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
43
|
+
var classes = classNames(modules_df92307a.radio, className);
|
44
|
+
return /*#__PURE__*/React.createElement("label", {
|
45
|
+
ref: this.labelRef,
|
46
|
+
className: classes,
|
47
|
+
htmlFor: this.uid
|
48
|
+
}, /*#__PURE__*/React.createElement("input", _extends({
|
49
|
+
id: this.uid
|
50
|
+
}, restProps, {
|
51
|
+
ref: this.inputRef,
|
52
|
+
className: modules_df92307a.input,
|
53
|
+
type: "radio"
|
54
|
+
})), /*#__PURE__*/React.createElement("span", {
|
55
|
+
className: modules_df92307a.circle
|
56
|
+
}), /*#__PURE__*/React.createElement("span", {
|
57
|
+
className: modules_df92307a.label
|
58
|
+
}, children));
|
59
|
+
}
|
60
|
+
}]);
|
61
|
+
return Radio;
|
62
|
+
}(Component);
|
63
|
+
_defineProperty(Radio, "propTypes", {
|
64
|
+
className: PropTypes.string,
|
65
|
+
children: PropTypes.node,
|
66
|
+
value: PropTypes.string,
|
67
|
+
name: PropTypes.string,
|
68
|
+
checked: PropTypes.bool,
|
69
|
+
onChange: PropTypes.func
|
70
|
+
});
|
71
|
+
var RadioItem = /*#__PURE__*/forwardRef(function RadioItem(props, ref) {
|
72
|
+
return /*#__PURE__*/React.createElement(RadioContext.Consumer, null, function (_ref) {
|
73
|
+
var value = _ref.value,
|
74
|
+
onChange = _ref.onChange,
|
75
|
+
restContext = _objectWithoutProperties(_ref, _excluded2);
|
76
|
+
return /*#__PURE__*/React.createElement(Radio, _extends({
|
77
|
+
ref: ref
|
78
|
+
}, restContext, {
|
79
|
+
checked: value != null ? value === props.value : undefined,
|
80
|
+
onChange: onChange != null ? function () {
|
81
|
+
return onChange(props.value);
|
82
|
+
} : undefined
|
83
|
+
}, props));
|
84
|
+
});
|
85
|
+
});
|
86
|
+
RadioItem.propTypes = Radio.propTypes;
|
87
|
+
|
88
|
+
export { Radio, RadioContext, RadioItem as default };
|
@@ -0,0 +1,276 @@
|
|
1
|
+
import React, { ButtonHTMLAttributes, Component, ComponentType, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback, SyntheticEvent } from 'react';
|
2
|
+
import { SelectHandlerParams } from '../list/list';
|
3
|
+
import { Size } from '../input/input';
|
4
|
+
import { LabelType } from '../control-label/control-label';
|
5
|
+
import { ListDataItem } from '../list/consts';
|
6
|
+
import { Directions } from '../popup/popup.consts';
|
7
|
+
import { ControlsHeight } from '../global/controls-height';
|
8
|
+
import SelectPopup, { Filter, FilterFn, Multiple, Tags } from './select__popup';
|
9
|
+
/**
|
10
|
+
* @name Select
|
11
|
+
*/
|
12
|
+
declare function noop(): void;
|
13
|
+
/**
|
14
|
+
* @enum {number}
|
15
|
+
*/
|
16
|
+
export declare enum Type {
|
17
|
+
BUTTON = "BUTTON",
|
18
|
+
INPUT = "INPUT",
|
19
|
+
CUSTOM = "CUSTOM",
|
20
|
+
INLINE = "INLINE",
|
21
|
+
INPUT_WITHOUT_CONTROLS = "INPUT_WITHOUT_CONTROLS"
|
22
|
+
}
|
23
|
+
type SelectItemData<T> = T & {
|
24
|
+
key: string | number;
|
25
|
+
isResetItem?: boolean | null | undefined;
|
26
|
+
separator?: boolean | null | undefined;
|
27
|
+
};
|
28
|
+
export type SelectItem<T = unknown> = ListDataItem<SelectItemData<T>>;
|
29
|
+
declare function getLowerCaseLabel<T>(item: SelectItem<T>): string | null;
|
30
|
+
declare function doesLabelMatch<T>(itemToCheck: SelectItem<T>, fn: (label: string) => boolean): boolean;
|
31
|
+
export interface Add {
|
32
|
+
alwaysVisible?: boolean | null | undefined;
|
33
|
+
regexp?: RegExp | null | undefined;
|
34
|
+
minlength?: number | null | undefined;
|
35
|
+
label?: ((filterString: string) => string) | string | null | undefined;
|
36
|
+
prefix?: string | null | undefined;
|
37
|
+
delayed?: boolean | null | undefined;
|
38
|
+
}
|
39
|
+
export interface DataTestProps {
|
40
|
+
'data-test'?: string | null | undefined;
|
41
|
+
}
|
42
|
+
export interface CustomAnchorProps {
|
43
|
+
wrapperProps: HTMLAttributes<HTMLElement> & DataTestProps & {
|
44
|
+
ref: RefCallback<HTMLElement>;
|
45
|
+
};
|
46
|
+
buttonProps: Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'id' | 'disabled' | 'children'> & {
|
47
|
+
onClick: () => void;
|
48
|
+
} & DataTestProps;
|
49
|
+
popup: ReactNode;
|
50
|
+
}
|
51
|
+
export type CustomAnchor = ((props: CustomAnchorProps) => ReactNode);
|
52
|
+
export interface BaseSelectProps<T = unknown> {
|
53
|
+
data: readonly SelectItem<T>[];
|
54
|
+
filter: boolean | Filter<T>;
|
55
|
+
filterIcon?: string | ComponentType | null | undefined;
|
56
|
+
filterRef?: Ref<HTMLInputElement>;
|
57
|
+
clear: boolean;
|
58
|
+
loading: boolean;
|
59
|
+
disabled: boolean;
|
60
|
+
loadingMessage?: string;
|
61
|
+
notFoundMessage?: string;
|
62
|
+
type: Type;
|
63
|
+
size: Size;
|
64
|
+
hideSelected: boolean;
|
65
|
+
allowAny: boolean;
|
66
|
+
maxHeight: number;
|
67
|
+
hideArrow: boolean;
|
68
|
+
showPopup: boolean;
|
69
|
+
directions: readonly Directions[];
|
70
|
+
label: string | null;
|
71
|
+
selectedLabel: ReactNode;
|
72
|
+
labelType?: LabelType;
|
73
|
+
inputPlaceholder: string;
|
74
|
+
shortcutsEnabled: boolean;
|
75
|
+
tryKeepOpen?: boolean;
|
76
|
+
onBeforeOpen: () => void;
|
77
|
+
onLoadMore: () => void;
|
78
|
+
onOpen: () => void;
|
79
|
+
onFilter: (value: string) => void;
|
80
|
+
onFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
81
|
+
onBlur: () => void;
|
82
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
83
|
+
onSelect: (selected: SelectItem<T> | null, event?: Event | SyntheticEvent) => void;
|
84
|
+
onDeselect: (selected: SelectItem<T> | null) => void;
|
85
|
+
onOutsideClick: (e: PointerEvent) => void;
|
86
|
+
onAdd: (value: string) => void;
|
87
|
+
onDone: () => void;
|
88
|
+
onReset: () => void;
|
89
|
+
dir: 'ltr' | 'rtl';
|
90
|
+
renderBottomToolbar?: () => ReactNode;
|
91
|
+
renderTopToolbar?: () => ReactNode;
|
92
|
+
height?: ControlsHeight | undefined;
|
93
|
+
targetElement?: HTMLElement | null | undefined;
|
94
|
+
className?: string | null | undefined;
|
95
|
+
buttonClassName?: string | null | undefined;
|
96
|
+
id?: string | undefined;
|
97
|
+
getInitial?: (() => string) | null | undefined;
|
98
|
+
minWidth?: number | undefined;
|
99
|
+
popupClassName?: string | null | undefined;
|
100
|
+
popupStyle?: CSSProperties | undefined;
|
101
|
+
top?: number | undefined;
|
102
|
+
left?: number | undefined;
|
103
|
+
renderOptimization?: boolean | undefined;
|
104
|
+
ringPopupTarget?: string | null | undefined;
|
105
|
+
error?: ReactNode | null | undefined;
|
106
|
+
hint?: ReactNode;
|
107
|
+
add?: Add | null | undefined;
|
108
|
+
compact?: boolean | null | undefined;
|
109
|
+
customAnchor?: CustomAnchor | null | undefined;
|
110
|
+
disableMoveOverflow?: boolean | null | undefined;
|
111
|
+
disableScrollToActive?: boolean | null | undefined;
|
112
|
+
'data-test'?: string | null | undefined;
|
113
|
+
}
|
114
|
+
export interface SingleSelectProps<T = unknown> extends BaseSelectProps<T> {
|
115
|
+
multiple: false;
|
116
|
+
onClose: (selected: SelectItem<T> | null) => void;
|
117
|
+
onChange: (selected: SelectItem<T> | null, event?: Event | SyntheticEvent) => void;
|
118
|
+
selected?: SelectItem<T> | null | undefined;
|
119
|
+
tags?: null | undefined;
|
120
|
+
}
|
121
|
+
export interface MultipleSelectProps<T = unknown> extends BaseSelectProps<T> {
|
122
|
+
multiple: true | Multiple;
|
123
|
+
selected: readonly SelectItem<T>[];
|
124
|
+
onClose: (selected: SelectItem<T>[]) => void;
|
125
|
+
onChange: (selected: SelectItem<T>[], event?: Event | SyntheticEvent) => void;
|
126
|
+
tags?: Tags | boolean | null | undefined;
|
127
|
+
}
|
128
|
+
export type SelectProps<T = unknown> = SingleSelectProps<T> | MultipleSelectProps<T>;
|
129
|
+
interface AddButton {
|
130
|
+
prefix: string | null | undefined;
|
131
|
+
label: string;
|
132
|
+
delayed: boolean;
|
133
|
+
}
|
134
|
+
export interface SelectState<T = unknown> {
|
135
|
+
data: SelectItem<T>[];
|
136
|
+
shownData: SelectItem<T>[];
|
137
|
+
selected: SelectItem<T> | SelectItem<T>[] | null | undefined;
|
138
|
+
selectedIndex: number | null;
|
139
|
+
filterValue: string;
|
140
|
+
shortcutsEnabled: boolean;
|
141
|
+
popupShortcuts: boolean;
|
142
|
+
showPopup: boolean;
|
143
|
+
prevData: readonly SelectItem<T>[];
|
144
|
+
prevSelected: SelectItem<T> | readonly SelectItem<T>[] | null | undefined;
|
145
|
+
prevMultiple: Multiple | boolean | null | undefined;
|
146
|
+
multipleMap: Record<string, boolean>;
|
147
|
+
addButton: AddButton | null;
|
148
|
+
focused?: boolean;
|
149
|
+
}
|
150
|
+
/**
|
151
|
+
* @name Select
|
152
|
+
* @constructor
|
153
|
+
* @extends {Component}
|
154
|
+
*/
|
155
|
+
/**
|
156
|
+
* Displays a select.
|
157
|
+
*/
|
158
|
+
export default class Select<T = unknown> extends Component<SelectProps<T>, SelectState<T>> {
|
159
|
+
static defaultProps: {
|
160
|
+
data: never[];
|
161
|
+
filter: boolean;
|
162
|
+
filterIcon: null;
|
163
|
+
filterRef: typeof noop;
|
164
|
+
multiple: boolean;
|
165
|
+
clear: boolean;
|
166
|
+
loading: boolean;
|
167
|
+
disabled: boolean;
|
168
|
+
type: Type;
|
169
|
+
size: Size;
|
170
|
+
targetElement: null;
|
171
|
+
hideSelected: boolean;
|
172
|
+
allowAny: boolean;
|
173
|
+
hideArrow: boolean;
|
174
|
+
showPopup: boolean;
|
175
|
+
maxHeight: number;
|
176
|
+
directions: Directions[];
|
177
|
+
selected: null;
|
178
|
+
label: null;
|
179
|
+
selectedLabel: null;
|
180
|
+
inputPlaceholder: string;
|
181
|
+
hint: null;
|
182
|
+
shortcutsEnabled: boolean;
|
183
|
+
onBeforeOpen: typeof noop;
|
184
|
+
onLoadMore: typeof noop;
|
185
|
+
onOpen: typeof noop;
|
186
|
+
onClose: typeof noop;
|
187
|
+
onFilter: typeof noop;
|
188
|
+
onFocus: typeof noop;
|
189
|
+
onBlur: typeof noop;
|
190
|
+
onKeyDown: typeof noop;
|
191
|
+
onSelect: typeof noop;
|
192
|
+
onDeselect: typeof noop;
|
193
|
+
onOutsideClick: typeof noop;
|
194
|
+
onChange: typeof noop;
|
195
|
+
onAdd: typeof noop;
|
196
|
+
onDone: typeof noop;
|
197
|
+
onReset: typeof noop;
|
198
|
+
tags: null;
|
199
|
+
ringPopupTarget: null;
|
200
|
+
dir: string;
|
201
|
+
};
|
202
|
+
static getDerivedStateFromProps<T = unknown>(nextProps: SelectProps<T>, prevState: SelectState<T>): Partial<SelectState<T>>;
|
203
|
+
state: SelectState<T>;
|
204
|
+
componentDidUpdate(prevProps: SelectProps<T>, prevState: SelectState<T>): void;
|
205
|
+
static contextType: React.Context<ControlsHeight>;
|
206
|
+
static Type: typeof Type;
|
207
|
+
static Size: typeof Size;
|
208
|
+
id: string;
|
209
|
+
shortcutsScope: string;
|
210
|
+
listId: string;
|
211
|
+
private _focusHandler;
|
212
|
+
private _blurHandler;
|
213
|
+
node?: HTMLElement | null;
|
214
|
+
nodeRef: (el: HTMLElement | null) => void;
|
215
|
+
_popup: SelectPopup<SelectItemData<T>> | null;
|
216
|
+
onEmptyPopupEnter: () => void;
|
217
|
+
focus: () => void;
|
218
|
+
private _onEnter;
|
219
|
+
private _onEsc;
|
220
|
+
_inputShortcutHandler: () => void;
|
221
|
+
getValueForFilter(selected: SelectItem<T> | readonly SelectItem<T>[] | null | undefined): string;
|
222
|
+
_getSelectedIndex(selected: SelectItem<T> | readonly SelectItem<T>[] | null | undefined, data: readonly SelectItem<T>[]): number | null;
|
223
|
+
popupRef: (el: SelectPopup<SelectItemData<T>> | null) => void;
|
224
|
+
_getResetOption(): SelectItem<T> | null;
|
225
|
+
_prependResetOption(shownData: SelectItem<T>[]): SelectItem<T>[];
|
226
|
+
private _renderPopup;
|
227
|
+
_showPopup(): void;
|
228
|
+
_hidePopup(tryFocusAnchor?: boolean): void;
|
229
|
+
addHandler: () => void;
|
230
|
+
getToolbar(): React.JSX.Element | null;
|
231
|
+
getTopbar(): React.ReactNode;
|
232
|
+
getLowerCaseLabel: typeof getLowerCaseLabel;
|
233
|
+
doesLabelMatch: typeof doesLabelMatch;
|
234
|
+
getFilterFn(): FilterFn<T>;
|
235
|
+
getListItems(rawFilterString: string, data?: SelectItem<T>[]): SelectItem<T>[];
|
236
|
+
filterValue(): string;
|
237
|
+
filterValue(setValue: string): void;
|
238
|
+
isInputMode(): boolean;
|
239
|
+
_clickHandler: () => void;
|
240
|
+
_openPopupIfClosed: () => void;
|
241
|
+
_filterChangeHandler: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
242
|
+
private _setFilter;
|
243
|
+
private _rebuildMultipleMap;
|
244
|
+
_redrawPopup: () => void;
|
245
|
+
_listSelectHandler: (selected: SelectItem<T>, event?: Event, opts?: SelectHandlerParams) => void;
|
246
|
+
_listSelectAllHandler: (isSelectAll?: boolean) => void;
|
247
|
+
private _onCloseAttempt;
|
248
|
+
clearFilter: (e?: SyntheticEvent) => void;
|
249
|
+
clear: (event?: Event | SyntheticEvent) => boolean;
|
250
|
+
_selectionIsEmpty(): boolean;
|
251
|
+
private _getLabel;
|
252
|
+
private _getPlaceholder;
|
253
|
+
_getSelectedString(): string | null;
|
254
|
+
private _getIcons;
|
255
|
+
private _getAvatar;
|
256
|
+
filter?: HTMLInputElement | null;
|
257
|
+
filterRef: (el: HTMLInputElement | null) => void;
|
258
|
+
getShortcutsMap(): {
|
259
|
+
enter: () => true | undefined;
|
260
|
+
esc: (event: KeyboardEvent) => boolean | undefined;
|
261
|
+
up: () => void;
|
262
|
+
down: () => void;
|
263
|
+
right: typeof noop;
|
264
|
+
left: typeof noop;
|
265
|
+
'shift+up': typeof noop;
|
266
|
+
'shift+down': typeof noop;
|
267
|
+
space: typeof noop;
|
268
|
+
};
|
269
|
+
renderSelect(activeItemId: string | undefined): React.JSX.Element;
|
270
|
+
render(): React.JSX.Element;
|
271
|
+
}
|
272
|
+
export type SingleSelectAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof Select, SingleSelectProps<T>>;
|
273
|
+
export type MultipleSelectAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof Select, MultipleSelectProps<T>>;
|
274
|
+
export type SelectAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof Select, SelectProps<T>>;
|
275
|
+
export declare const RerenderableSelect: React.ForwardRefExoticComponent<SelectProps<unknown> & React.RefAttributes<Select<unknown>>>;
|
276
|
+
export {};
|