@jetbrains/ring-ui 5.1.21 → 5.1.23
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/package.json +25 -25
- package/components/alert/alert.css +0 -147
- package/components/alert/alert.d.ts +0 -113
- package/components/alert/alert.js +0 -186
- package/components/alert/container.css +0 -28
- package/components/alert/container.d.ts +0 -15
- package/components/alert/container.js +0 -30
- package/components/alert-service/alert-service.d.ts +0 -34
- package/components/alert-service/alert-service.js +0 -107
- package/components/alert-service/alert-service.stories.css +0 -20
- package/components/analytics/analytics.d.ts +0 -38
- package/components/analytics/analytics.js +0 -82
- package/components/analytics/analytics__custom-plugin.d.ts +0 -29
- package/components/analytics/analytics__custom-plugin.js +0 -61
- package/components/analytics/analytics__fus-plugin.d.ts +0 -52
- package/components/analytics/analytics__fus-plugin.js +0 -22
- package/components/analytics/analytics__ga-plugin.d.ts +0 -27
- package/components/analytics/analytics__ga-plugin.js +0 -89
- package/components/analytics/analytics__plugin-utils.d.ts +0 -31
- package/components/analytics/analytics__plugin-utils.js +0 -92
- package/components/auth/auth.d.ts +0 -3
- package/components/auth/auth.js +0 -42
- package/components/auth/auth__core.d.ts +0 -236
- package/components/auth/auth__core.js +0 -834
- package/components/auth/background-flow.d.ts +0 -31
- package/components/auth/background-flow.js +0 -97
- package/components/auth/down-notification.css +0 -17
- package/components/auth/down-notification.d.ts +0 -15
- package/components/auth/down-notification.js +0 -52
- package/components/auth/iframe-flow.d.ts +0 -20
- package/components/auth/iframe-flow.js +0 -81
- package/components/auth/landing-entry.d.ts +0 -3
- package/components/auth/landing-entry.js +0 -2
- package/components/auth/landing.d.ts +0 -2
- package/components/auth/landing.html +0 -12
- package/components/auth/landing.js +0 -26
- package/components/auth/request-builder.d.ts +0 -48
- package/components/auth/request-builder.js +0 -64
- package/components/auth/response-parser.d.ts +0 -70
- package/components/auth/response-parser.js +0 -99
- package/components/auth/storage.d.ts +0 -112
- package/components/auth/storage.js +0 -224
- package/components/auth/token-validator.d.ts +0 -93
- package/components/auth/token-validator.js +0 -169
- package/components/auth/window-flow.d.ts +0 -26
- package/components/auth/window-flow.js +0 -102
- package/components/auth-dialog/auth-dialog.css +0 -56
- package/components/auth-dialog/auth-dialog.d.ts +0 -60
- package/components/auth-dialog/auth-dialog.js +0 -93
- package/components/auth-dialog-service/auth-dialog-service.d.ts +0 -5
- package/components/auth-dialog-service/auth-dialog-service.js +0 -25
- package/components/auth-ng/auth-ng.js +0 -143
- package/components/auth-ng/auth-ng.mock.js +0 -28
- package/components/auth-ng/auth-ng.stories.js +0 -41
- package/components/autofocus-ng/autofocus-ng.js +0 -51
- package/components/autofocus-ng/autofocus-ng.stories.js +0 -41
- package/components/autofocus-ng/autofocus-ng.test.js +0 -49
- package/components/avatar/avatar-example-datauri.d.ts +0 -1
- package/components/avatar/avatar-example-datauri.js +0 -24
- package/components/avatar/avatar.css +0 -27
- package/components/avatar/avatar.d.ts +0 -52
- package/components/avatar/avatar.js +0 -98
- package/components/avatar/fallback-avatar.d.ts +0 -17
- package/components/avatar/fallback-avatar.js +0 -113
- package/components/avatar-editor-ng/avatar-editor-ng.css +0 -104
- package/components/avatar-editor-ng/avatar-editor-ng.js +0 -133
- package/components/avatar-editor-ng/avatar-editor-ng.stories.js +0 -41
- package/components/avatar-editor-ng/avatar-editor-ng__template.js +0 -28
- package/components/avatar-ng/avatar-ng.js +0 -7
- package/components/avatar-ng/avatar-ng.stories.js +0 -33
- package/components/badge/badge.css +0 -44
- package/components/badge/badge.d.ts +0 -24
- package/components/badge/badge.js +0 -35
- package/components/badge-ng/badge-ng.js +0 -8
- package/components/badge-ng/badge-ng.stories.js +0 -32
- package/components/breadcrumb-ng/breadcrumb-ng.js +0 -60
- package/components/breadcrumb-ng/breadcrumb-ng.stories.js +0 -33
- package/components/breadcrumb-ng/breadcrumb.css +0 -70
- package/components/button/button.css +0 -398
- package/components/button/button.d.ts +0 -67
- package/components/button/button.js +0 -70
- package/components/button/button__classes.d.ts +0 -2
- package/components/button/button__classes.js +0 -18
- package/components/button-group/button-group.css +0 -235
- package/components/button-group/button-group.d.ts +0 -18
- package/components/button-group/button-group.js +0 -21
- package/components/button-group/caption.d.ts +0 -8
- package/components/button-group/caption.js +0 -14
- package/components/button-group-ng/button-group-ng.css +0 -4
- package/components/button-group-ng/button-group-ng.js +0 -43
- package/components/button-group-ng/button-group-ng.stories.js +0 -30
- package/components/button-ng/button-ng.css +0 -23
- package/components/button-ng/button-ng.js +0 -192
- package/components/button-ng/button-ng.stories.js +0 -114
- package/components/button-ng/button-ng.test.js +0 -95
- package/components/button-set/button-set.css +0 -22
- package/components/button-set/button-set.d.ts +0 -16
- package/components/button-set/button-set.js +0 -22
- package/components/button-set-ng/button-set-ng.js +0 -22
- package/components/button-set-ng/button-set-ng.stories.js +0 -30
- package/components/button-toolbar/button-toolbar.css +0 -26
- package/components/button-toolbar/button-toolbar.d.ts +0 -16
- package/components/button-toolbar/button-toolbar.js +0 -20
- package/components/button-toolbar-ng/button-toolbar-ng.js +0 -23
- package/components/button-toolbar-ng/button-toolbar-ng.stories.js +0 -35
- package/components/caret/caret.d.ts +0 -66
- package/components/caret/caret.js +0 -216
- package/components/checkbox/checkbox.css +0 -146
- package/components/checkbox/checkbox.d.ts +0 -45
- package/components/checkbox/checkbox.js +0 -72
- package/components/checkbox-ng/checkbox-ng.js +0 -64
- package/components/checkbox-ng/checkbox-ng.stories.js +0 -80
- package/components/checkbox-ng/checkbox-ng.test.js +0 -61
- package/components/clipboard/clipboard-fallback.d.ts +0 -2
- package/components/clipboard/clipboard-fallback.js +0 -44
- package/components/clipboard/clipboard.d.ts +0 -5
- package/components/clipboard/clipboard.js +0 -41
- package/components/code/code.css +0 -31
- package/components/code/code.d.ts +0 -44
- package/components/code/code.js +0 -94
- package/components/code/highlight.css +0 -112
- package/components/compiler-ng/compiler-ng.js +0 -63
- package/components/compiler-ng/compiler-ng.stories.js +0 -32
- package/components/compiler-ng/compiler-ng.test.js +0 -207
- package/components/confirm/confirm.css +0 -9
- package/components/confirm/confirm.d.ts +0 -48
- package/components/confirm/confirm.js +0 -59
- package/components/confirm-ng/confirm-ng.js +0 -30
- package/components/confirm-ng/confirm-ng.stories.js +0 -43
- package/components/confirm-service/confirm-service.d.ts +0 -21
- package/components/confirm-service/confirm-service.js +0 -51
- package/components/content-layout/content-layout.css +0 -108
- package/components/content-layout/content-layout.d.ts +0 -26
- package/components/content-layout/content-layout.js +0 -45
- package/components/content-layout/sidebar.d.ts +0 -31
- package/components/content-layout/sidebar.js +0 -76
- package/components/contenteditable/contenteditable.d.ts +0 -47
- package/components/contenteditable/contenteditable.js +0 -47
- package/components/control-label/control-label.css +0 -23
- package/components/control-label/control-label.d.ts +0 -11
- package/components/control-label/control-label.js +0 -22
- package/components/data-list/data-list.css +0 -98
- package/components/data-list/data-list.d.ts +0 -85
- package/components/data-list/data-list.js +0 -119
- package/components/data-list/data-list.mock.d.ts +0 -16
- package/components/data-list/data-list.mock.js +0 -207
- package/components/data-list/item.d.ts +0 -50
- package/components/data-list/item.js +0 -114
- package/components/data-list/selection.d.ts +0 -16
- package/components/data-list/selection.js +0 -81
- package/components/data-list/title.d.ts +0 -26
- package/components/data-list/title.js +0 -65
- package/components/data-list-ng/data-list-ng.js +0 -7
- package/components/data-list-ng/data-list-ng.stories.js +0 -54
- package/components/date-picker/consts.d.ts +0 -98
- package/components/date-picker/consts.js +0 -44
- package/components/date-picker/date-input.d.ts +0 -47
- package/components/date-picker/date-input.js +0 -91
- package/components/date-picker/date-picker.css +0 -603
- package/components/date-picker/date-picker.d.ts +0 -77
- package/components/date-picker/date-picker.js +0 -218
- package/components/date-picker/date-popup.d.ts +0 -55
- package/components/date-picker/date-popup.js +0 -347
- package/components/date-picker/day.d.ts +0 -30
- package/components/date-picker/day.js +0 -88
- package/components/date-picker/formats.d.ts +0 -2
- package/components/date-picker/formats.js +0 -1
- package/components/date-picker/month-names.d.ts +0 -13
- package/components/date-picker/month-names.js +0 -62
- package/components/date-picker/month-slider.d.ts +0 -29
- package/components/date-picker/month-slider.js +0 -56
- package/components/date-picker/month.d.ts +0 -14
- package/components/date-picker/month.js +0 -33
- package/components/date-picker/months.d.ts +0 -11
- package/components/date-picker/months.js +0 -101
- package/components/date-picker/weekdays.d.ts +0 -13
- package/components/date-picker/weekdays.js +0 -24
- package/components/date-picker/years.d.ts +0 -25
- package/components/date-picker/years.js +0 -87
- package/components/dialog/dialog.css +0 -134
- package/components/dialog/dialog.d.ts +0 -64
- package/components/dialog/dialog.js +0 -128
- package/components/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/components/dialog/dialog__body-scroll-preventer.js +0 -43
- package/components/dialog-ng/dialog-ng.css +0 -98
- package/components/dialog-ng/dialog-ng.js +0 -606
- package/components/dialog-ng/dialog-ng.stories.js +0 -240
- package/components/dialog-ng/dialog-ng.test.js +0 -829
- package/components/dialog-ng/dialog-ng__template.js +0 -70
- package/components/docked-panel-ng/docked-panel-ng.css +0 -28
- package/components/docked-panel-ng/docked-panel-ng.js +0 -169
- package/components/docked-panel-ng/docked-panel-ng.stories.js +0 -39
- package/components/dropdown/anchor.d.ts +0 -11
- package/components/dropdown/anchor.js +0 -16
- package/components/dropdown/dropdown.css +0 -18
- package/components/dropdown/dropdown.d.ts +0 -87
- package/components/dropdown/dropdown.js +0 -159
- package/components/dropdown-menu/dropdown-menu.d.ts +0 -26
- package/components/dropdown-menu/dropdown-menu.js +0 -56
- package/components/editable-heading/editable-heading.css +0 -198
- package/components/editable-heading/editable-heading.d.ts +0 -32
- package/components/editable-heading/editable-heading.js +0 -141
- package/components/error-bubble/error-bubble-legacy.css +0 -79
- package/components/error-bubble/error-bubble.css +0 -56
- package/components/error-bubble/error-bubble.d.ts +0 -18
- package/components/error-bubble/error-bubble.js +0 -28
- package/components/error-message/error-message.css +0 -37
- package/components/error-message/error-message.d.ts +0 -27
- package/components/error-message/error-message.js +0 -37
- package/components/error-message-ng/error-message-ng.js +0 -50
- package/components/error-message-ng/error-message-ng.stories.js +0 -33
- package/components/error-page/error-page.css +0 -24
- package/components/error-page/error-page.gif +0 -0
- package/components/error-page-ng/error-page-ng.css +0 -6
- package/components/error-page-ng/error-page-ng.js +0 -269
- package/components/error-page-ng/error-page-ng.stories.js +0 -31
- package/components/error-page-ng/error-page-ng.test.js +0 -138
- package/components/footer/footer.css +0 -85
- package/components/footer/footer.d.ts +0 -28
- package/components/footer/footer.js +0 -97
- package/components/footer-ng/footer-ng.js +0 -61
- package/components/footer-ng/footer-ng.stories.js +0 -35
- package/components/footer-ng/footer-ng.test.js +0 -41
- package/components/form/form.css +0 -268
- package/components/form/form.stories.js +0 -128
- package/components/form-ng/error-bubble-ng.css +0 -7
- package/components/form-ng/form-ng.js +0 -176
- package/components/form-ng/form-ng.stories.js +0 -73
- package/components/global/angular-component-factory.js +0 -93
- package/components/global/angular-component-factory.test.js +0 -138
- package/components/global/compose.d.ts +0 -7
- package/components/global/compose.js +0 -4
- package/components/global/composeRefs.d.ts +0 -3
- package/components/global/composeRefs.js +0 -8
- package/components/global/controls-height.d.ts +0 -9
- package/components/global/controls-height.js +0 -16
- package/components/global/create-stateful-context.d.ts +0 -27
- package/components/global/create-stateful-context.js +0 -38
- package/components/global/data-tests.d.ts +0 -3
- package/components/global/data-tests.js +0 -17
- package/components/global/dom.d.ts +0 -37
- package/components/global/dom.js +0 -83
- package/components/global/focus-sensor-hoc.d.ts +0 -19
- package/components/global/focus-sensor-hoc.js +0 -102
- package/components/global/fuzzy-highlight.d.ts +0 -11
- package/components/global/fuzzy-highlight.js +0 -58
- package/components/global/get-event-key.d.ts +0 -2
- package/components/global/get-event-key.js +0 -100
- package/components/global/get-uid.d.ts +0 -1
- package/components/global/get-uid.js +0 -16
- package/components/global/global.css +0 -107
- package/components/global/inject-styles.d.ts +0 -3
- package/components/global/inject-styles.js +0 -12
- package/components/global/linear-function.d.ts +0 -6
- package/components/global/linear-function.js +0 -13
- package/components/global/listeners.d.ts +0 -8
- package/components/global/listeners.js +0 -27
- package/components/global/memoize.d.ts +0 -1
- package/components/global/memoize.js +0 -15
- package/components/global/normalize-indent.d.ts +0 -1
- package/components/global/normalize-indent.js +0 -30
- package/components/global/promise-with-timeout.d.ts +0 -5
- package/components/global/promise-with-timeout.js +0 -11
- package/components/global/prop-types.d.ts +0 -4
- package/components/global/prop-types.js +0 -4
- package/components/global/react-dom-renderer.d.ts +0 -16
- package/components/global/react-dom-renderer.js +0 -25
- package/components/global/react-render-adapter.d.ts +0 -29
- package/components/global/react-render-adapter.js +0 -24
- package/components/global/rerender-hoc.d.ts +0 -41
- package/components/global/rerender-hoc.js +0 -28
- package/components/global/ring-angular-component.js +0 -13
- package/components/global/ring-angular-component.test.js +0 -32
- package/components/global/schedule-raf.d.ts +0 -1
- package/components/global/schedule-raf.js +0 -27
- package/components/global/sniffer.d.ts +0 -3
- package/components/global/sniffer.js +0 -4
- package/components/global/theme.d.ts +0 -21
- package/components/global/theme.js +0 -70
- package/components/global/trivial-template-tag.d.ts +0 -1
- package/components/global/trivial-template-tag.js +0 -9
- package/components/global/typescript-utils.d.ts +0 -2
- package/components/global/typescript-utils.js +0 -2
- package/components/global/url.d.ts +0 -57
- package/components/global/url.js +0 -136
- package/components/global/use-event-callback.d.ts +0 -1
- package/components/global/use-event-callback.js +0 -14
- package/components/global/variables.css +0 -180
- package/components/global/variables.d.ts +0 -90
- package/components/global/variables.js +0 -1
- package/components/global/variables_dark.css +0 -128
- package/components/grid/col.d.ts +0 -31
- package/components/grid/col.js +0 -49
- package/components/grid/grid.css +0 -915
- package/components/grid/grid.d.ts +0 -14
- package/components/grid/grid.js +0 -22
- package/components/grid/row.d.ts +0 -40
- package/components/grid/row.js +0 -51
- package/components/group/group.css +0 -9
- package/components/group/group.d.ts +0 -12
- package/components/group/group.js +0 -20
- package/components/group-ng/group-ng.js +0 -16
- package/components/group-ng/group.stories.js +0 -29
- package/components/header/header.css +0 -171
- package/components/header/header.d.ts +0 -34
- package/components/header/header.js +0 -46
- package/components/header/logo.d.ts +0 -14
- package/components/header/logo.js +0 -22
- package/components/header/profile.d.ts +0 -75
- package/components/header/profile.js +0 -119
- package/components/header/services-link.d.ts +0 -25
- package/components/header/services-link.js +0 -28
- package/components/header/services.css +0 -99
- package/components/header/services.d.ts +0 -33
- package/components/header/services.js +0 -62
- package/components/header/smart-profile.d.ts +0 -36
- package/components/header/smart-profile.js +0 -86
- package/components/header/smart-services.d.ts +0 -25
- package/components/header/smart-services.js +0 -49
- package/components/header/tray-icon.d.ts +0 -32
- package/components/header/tray-icon.js +0 -20
- package/components/header/tray.d.ts +0 -9
- package/components/header/tray.js +0 -18
- package/components/heading/heading.css +0 -50
- package/components/heading/heading.d.ts +0 -25
- package/components/heading/heading.js +0 -52
- package/components/heading-ng/heading-ng.js +0 -8
- package/components/heading-ng/heading-ng.stories.js +0 -29
- package/components/http/http.d.ts +0 -61
- package/components/http/http.js +0 -204
- package/components/http/http.mock.d.ts +0 -20
- package/components/http/http.mock.js +0 -52
- package/components/hub-source/hub-source.d.ts +0 -42
- package/components/hub-source/hub-source.js +0 -107
- package/components/hub-source/hub-source__user.d.ts +0 -4
- package/components/hub-source/hub-source__user.js +0 -20
- package/components/hub-source/hub-source__users-groups.d.ts +0 -24
- package/components/hub-source/hub-source__users-groups.js +0 -53
- package/components/i18n/README.md +0 -46
- package/components/i18n/i18n-context.d.ts +0 -13
- package/components/i18n/i18n-context.js +0 -14
- package/components/i18n/i18n.d.ts +0 -59
- package/components/i18n/i18n.js +0 -26
- package/components/i18n/messages.json +0 -53
- package/components/icon/icon.css +0 -102
- package/components/icon/icon.d.ts +0 -43
- package/components/icon/icon.js +0 -69
- package/components/icon/icon__constants.d.ts +0 -30
- package/components/icon/icon__constants.js +0 -32
- package/components/icon/icon__svg.d.ts +0 -15
- package/components/icon/icon__svg.js +0 -58
- package/components/icon/index.d.ts +0 -2
- package/components/icon/index.js +0 -2
- package/components/icon-ng/icon-ng.js +0 -89
- package/components/icon-ng/icon-ng.stories.js +0 -34
- package/components/input/input-legacy.css +0 -125
- package/components/input/input.css +0 -196
- package/components/input/input.d.ts +0 -77
- package/components/input/input.js +0 -165
- package/components/input-ng/input-ng.css +0 -7
- package/components/input-ng/input-ng.js +0 -160
- package/components/input-ng/input-ng.stories.js +0 -127
- package/components/input-ng/input-ng.test.js +0 -32
- package/components/input-size/input-size.css +0 -84
- package/components/input-size/input-size.stories.js +0 -219
- package/components/island/adaptive-island-hoc.d.ts +0 -61
- package/components/island/adaptive-island-hoc.js +0 -28
- package/components/island/content.d.ts +0 -43
- package/components/island/content.js +0 -100
- package/components/island/header.d.ts +0 -8
- package/components/island/header.js +0 -78
- package/components/island/island.css +0 -132
- package/components/island/island.d.ts +0 -78
- package/components/island/island.js +0 -31
- package/components/island-legacy/content-legacy.d.ts +0 -10
- package/components/island-legacy/content-legacy.js +0 -17
- package/components/island-legacy/header-legacy.d.ts +0 -10
- package/components/island-legacy/header-legacy.js +0 -19
- package/components/island-legacy/island-legacy.css +0 -100
- package/components/island-legacy/island-legacy.d.ts +0 -12
- package/components/island-legacy/island-legacy.js +0 -19
- package/components/island-ng/island-content-ng.js +0 -56
- package/components/island-ng/island-header-ng.js +0 -34
- package/components/island-ng/island-ng-class-fixer.js +0 -7
- package/components/island-ng/island-ng.js +0 -35
- package/components/island-ng/island-ng.stories.js +0 -54
- package/components/line/line.css +0 -16
- package/components/link/clickableLink.d.ts +0 -20
- package/components/link/clickableLink.js +0 -33
- package/components/link/link.css +0 -88
- package/components/link/link.d.ts +0 -148
- package/components/link/link.js +0 -73
- package/components/link/link__legacy.css +0 -29
- package/components/link-ng/link-ng.js +0 -26
- package/components/link-ng/link-ng.stories.js +0 -22
- package/components/link-ng/link-ng.test.js +0 -29
- package/components/list/consts.d.ts +0 -77
- package/components/list/consts.js +0 -29
- package/components/list/list.css +0 -301
- package/components/list/list.d.ts +0 -196
- package/components/list/list.js +0 -591
- package/components/list/list.stories.css +0 -3
- package/components/list/list__custom.d.ts +0 -6
- package/components/list/list__custom.js +0 -52
- package/components/list/list__hint.d.ts +0 -15
- package/components/list/list__hint.js +0 -16
- package/components/list/list__item.d.ts +0 -8
- package/components/list/list__item.js +0 -130
- package/components/list/list__link.d.ts +0 -9
- package/components/list/list__link.js +0 -43
- package/components/list/list__separator.d.ts +0 -5
- package/components/list/list__separator.js +0 -21
- package/components/list/list__title.d.ts +0 -5
- package/components/list/list__title.js +0 -28
- package/components/list/list__users-groups-source.d.ts +0 -27
- package/components/list/list__users-groups-source.js +0 -74
- package/components/loader/loader.css +0 -29
- package/components/loader/loader.d.ts +0 -28
- package/components/loader/loader.js +0 -44
- package/components/loader/loader__core.d.ts +0 -75
- package/components/loader/loader__core.js +0 -219
- package/components/loader-inline/loader-inline.css +0 -74
- package/components/loader-inline/loader-inline.d.ts +0 -18
- package/components/loader-inline/loader-inline.js +0 -27
- package/components/loader-inline-ng/loader-inline-ng.js +0 -17
- package/components/loader-inline-ng/loader-inline-ng.stories.js +0 -28
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -28
- package/components/loader-ng/loader-ng.js +0 -37
- package/components/loader-ng/loader-ng.stories.js +0 -27
- package/components/loader-ng/loader-ng.test.js +0 -41
- package/components/loader-screen/loader-screen.css +0 -29
- package/components/loader-screen/loader-screen.d.ts +0 -17
- package/components/loader-screen/loader-screen.js +0 -25
- package/components/loader-screen-ng/loader-screen-ng.js +0 -95
- package/components/loader-screen-ng/loader-screen-ng.stories.js +0 -30
- package/components/login-dialog/login-dialog.css +0 -25
- package/components/login-dialog/login-dialog.d.ts +0 -47
- package/components/login-dialog/login-dialog.js +0 -84
- package/components/login-dialog/service.d.ts +0 -2
- package/components/login-dialog/service.js +0 -23
- package/components/markdown/code.d.ts +0 -7
- package/components/markdown/code.js +0 -17
- package/components/markdown/heading.d.ts +0 -11
- package/components/markdown/heading.js +0 -9
- package/components/markdown/link.d.ts +0 -12
- package/components/markdown/link.js +0 -10
- package/components/markdown/markdown.css +0 -76
- package/components/markdown/markdown.d.ts +0 -15
- package/components/markdown/markdown.js +0 -44
- package/components/message/message.css +0 -64
- package/components/message/message.d.ts +0 -55
- package/components/message/message.js +0 -129
- package/components/message-bundle-ng/message-bundle-ng.js +0 -67
- package/components/old-browsers-message/old-browsers-message.css +0 -28
- package/components/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/components/old-browsers-message/old-browsers-message.js +0 -83
- package/components/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/components/old-browsers-message/old-browsers-message__stop.js +0 -2
- package/components/old-browsers-message/white-list.d.ts +0 -2
- package/components/old-browsers-message/white-list.js +0 -25
- package/components/pager/pager.css +0 -21
- package/components/pager/pager.d.ts +0 -78
- package/components/pager/pager.js +0 -229
- package/components/pager-ng/pager-ng.js +0 -7
- package/components/pager-ng/pager-ng.stories.js +0 -37
- package/components/palette/palette.css +0 -216
- package/components/palette/palette.stories.js +0 -63
- package/components/panel/panel.css +0 -22
- package/components/panel/panel.d.ts +0 -12
- package/components/panel/panel.js +0 -20
- package/components/panel-ng/panel-ng.js +0 -20
- package/components/permissions/permissions.d.ts +0 -111
- package/components/permissions/permissions.js +0 -177
- package/components/permissions/permissions__cache.d.ts +0 -93
- package/components/permissions/permissions__cache.js +0 -228
- package/components/permissions-ng/permissions-ng.css +0 -5
- package/components/permissions-ng/permissions-ng.js +0 -246
- package/components/permissions-ng/permissions-ng.stories.js +0 -49
- package/components/permissions-ng/permissions-ng.test.js +0 -82
- package/components/place-under-ng/place-under-ng.js +0 -190
- package/components/place-under-ng/place-under-ng.stories.js +0 -94
- package/components/place-under-ng/place-under-ng.test.js +0 -182
- package/components/popup/popup.consts.d.ts +0 -37
- package/components/popup/popup.consts.js +0 -45
- package/components/popup/popup.css +0 -34
- package/components/popup/popup.d.ts +0 -147
- package/components/popup/popup.js +0 -312
- package/components/popup/popup.target.d.ts +0 -7
- package/components/popup/popup.target.js +0 -15
- package/components/popup/position.d.ts +0 -30
- package/components/popup/position.js +0 -202
- package/components/popup-menu/popup-menu.d.ts +0 -60
- package/components/popup-menu/popup-menu.js +0 -41
- package/components/progress-bar/progress-bar.css +0 -83
- package/components/progress-bar/progress-bar.d.ts +0 -64
- package/components/progress-bar/progress-bar.js +0 -76
- package/components/progress-bar-ng/progress-bar-ng.js +0 -7
- package/components/progress-bar-ng/progress-bar-ng.stories.js +0 -52
- package/components/promised-click-ng/promised-click-ng.js +0 -118
- package/components/promised-click-ng/promised-click-ng.stories.js +0 -42
- package/components/promised-click-ng/promised-click-ng.test.js +0 -166
- package/components/proxy-attrs/proxy-attrs.js +0 -24
- package/components/proxy-attrs/proxy-attrs.test.js +0 -102
- package/components/query-assist/query-assist.css +0 -276
- package/components/query-assist/query-assist.d.ts +0 -333
- package/components/query-assist/query-assist.js +0 -847
- package/components/query-assist/query-assist__suggestions.d.ts +0 -29
- package/components/query-assist/query-assist__suggestions.js +0 -60
- package/components/query-assist-ng/query-assist-ng.js +0 -7
- package/components/query-assist-ng/query-assist-ng.stories.js +0 -89
- package/components/radio/radio.css +0 -125
- package/components/radio/radio.d.ts +0 -18
- package/components/radio/radio.js +0 -27
- package/components/radio/radio__item.d.ts +0 -28
- package/components/radio/radio__item.js +0 -41
- package/components/radio-ng/radio-ng.js +0 -61
- package/components/radio-ng/radio-ng.stories.js +0 -31
- package/components/radio-ng/radio-ng.test.js +0 -55
- package/components/save-field-ng/save-field-ng.css +0 -13
- package/components/save-field-ng/save-field-ng.js +0 -358
- package/components/save-field-ng/save-field-ng.stories.js +0 -221
- package/components/save-field-ng/save-field-ng__template.js +0 -32
- package/components/select/select-popup.css +0 -105
- package/components/select/select.css +0 -236
- package/components/select/select.d.ts +0 -303
- package/components/select/select.js +0 -957
- package/components/select/select__filter.d.ts +0 -19
- package/components/select/select__filter.js +0 -49
- package/components/select/select__popup.d.ts +0 -166
- package/components/select/select__popup.js +0 -408
- package/components/select-ng/select-ng.js +0 -561
- package/components/select-ng/select-ng.stories.js +0 -483
- package/components/select-ng/select-ng.test.js +0 -620
- package/components/select-ng/select-ng__lazy.js +0 -83
- package/components/select-ng/select-ng__lazy.test.js +0 -81
- package/components/select-ng/select-ng__options.js +0 -147
- package/components/shortcuts/core.d.ts +0 -74
- package/components/shortcuts/core.js +0 -191
- package/components/shortcuts/shortcut-title.d.ts +0 -1
- package/components/shortcuts/shortcut-title.js +0 -50
- package/components/shortcuts/shortcuts-hoc.d.ts +0 -65
- package/components/shortcuts/shortcuts-hoc.js +0 -19
- package/components/shortcuts/shortcuts.d.ts +0 -28
- package/components/shortcuts/shortcuts.js +0 -50
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +0 -116
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -101
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.stories.js +0 -126
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.test.js +0 -113
- package/components/shortcuts-hint-ng/shortcuts-hint-ng__template.js +0 -48
- package/components/shortcuts-ng/shortcuts-ng.js +0 -285
- package/components/sidebar/sidebar.css +0 -159
- package/components/sidebar-ng/sidebar-ng.js +0 -99
- package/components/sidebar-ng/sidebar-ng.stories.js +0 -94
- package/components/sidebar-ng/sidebar-ng.test.js +0 -37
- package/components/sidebar-ng/sidebar-ng__button-template.js +0 -18
- package/components/sidebar-ng/sidebar-ng__template.js +0 -10
- package/components/storage/storage.d.ts +0 -18
- package/components/storage/storage.js +0 -22
- package/components/storage/storage__fallback.d.ts +0 -79
- package/components/storage/storage__fallback.js +0 -181
- package/components/storage/storage__local.d.ts +0 -38
- package/components/storage/storage__local.js +0 -119
- package/components/tab-trap/tab-trap.css +0 -6
- package/components/tab-trap/tab-trap.d.ts +0 -43
- package/components/tab-trap/tab-trap.js +0 -125
- package/components/table/cell.d.ts +0 -13
- package/components/table/cell.js +0 -16
- package/components/table/disable-hover-hoc.d.ts +0 -64
- package/components/table/disable-hover-hoc.js +0 -32
- package/components/table/header-cell.d.ts +0 -43
- package/components/table/header-cell.js +0 -56
- package/components/table/header.d.ts +0 -56
- package/components/table/header.js +0 -67
- package/components/table/multitable.d.ts +0 -25
- package/components/table/multitable.js +0 -81
- package/components/table/row-with-focus-sensor.d.ts +0 -18
- package/components/table/row-with-focus-sensor.js +0 -25
- package/components/table/row.d.ts +0 -59
- package/components/table/row.js +0 -154
- package/components/table/selection-adapter.d.ts +0 -5
- package/components/table/selection-adapter.js +0 -10
- package/components/table/selection-shortcuts-hoc.d.ts +0 -17
- package/components/table/selection-shortcuts-hoc.js +0 -146
- package/components/table/selection.d.ts +0 -47
- package/components/table/selection.js +0 -150
- package/components/table/smart-table.d.ts +0 -64
- package/components/table/smart-table.js +0 -40
- package/components/table/table.css +0 -261
- package/components/table/table.d.ts +0 -159
- package/components/table/table.examples2.json +0 -19
- package/components/table/table.js +0 -231
- package/components/table/table.stories.json +0 -45
- package/components/table-legacy/table-legacy.css +0 -348
- package/components/table-legacy/table-legacy__toolbar.css +0 -27
- package/components/table-legacy-ng/table-legacy-ng.js +0 -433
- package/components/table-legacy-ng/table-legacy-ng.stories.js +0 -192
- package/components/table-legacy-ng/table-legacy-ng.test.js +0 -296
- package/components/table-legacy-ng/table-legacy-ng__pager.js +0 -32
- package/components/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +0 -105
- package/components/table-legacy-ng/table-legacy-ng__selection.js +0 -165
- package/components/table-legacy-ng/table-legacy-ng__toolbar.js +0 -58
- package/components/table-ng/smart-table-ng.js +0 -7
- package/components/table-ng/table-ng.js +0 -7
- package/components/table-ng/table-ng.stories.js +0 -84
- package/components/tabs/collapsible-more.d.ts +0 -29
- package/components/tabs/collapsible-more.js +0 -97
- package/components/tabs/collapsible-tab.d.ts +0 -16
- package/components/tabs/collapsible-tab.js +0 -34
- package/components/tabs/collapsible-tabs.d.ts +0 -43
- package/components/tabs/collapsible-tabs.js +0 -196
- package/components/tabs/custom-item.d.ts +0 -9
- package/components/tabs/custom-item.js +0 -5
- package/components/tabs/dumb-tabs.d.ts +0 -35
- package/components/tabs/dumb-tabs.js +0 -56
- package/components/tabs/smart-tabs.d.ts +0 -20
- package/components/tabs/smart-tabs.js +0 -25
- package/components/tabs/tab-link.d.ts +0 -18
- package/components/tabs/tab-link.js +0 -24
- package/components/tabs/tab.d.ts +0 -27
- package/components/tabs/tab.js +0 -19
- package/components/tabs/tabs.css +0 -224
- package/components/tabs/tabs.d.ts +0 -7
- package/components/tabs/tabs.js +0 -7
- package/components/tabs-ng/tabs-ng.js +0 -206
- package/components/tabs-ng/tabs-ng.stories.js +0 -30
- package/components/tabs-ng/tabs-ng.test.js +0 -76
- package/components/tabs-ng/tabs-ng__template.js +0 -38
- package/components/tag/tag.css +0 -185
- package/components/tag/tag.d.ts +0 -64
- package/components/tag/tag.js +0 -130
- package/components/tags-input/tags-input.css +0 -101
- package/components/tags-input/tags-input.d.ts +0 -165
- package/components/tags-input/tags-input.js +0 -275
- package/components/tags-input-ng/tags-input-ng.js +0 -7
- package/components/tags-input-ng/tags-input-ng.stories.js +0 -41
- package/components/tags-list/tags-list.d.ts +0 -46
- package/components/tags-list/tags-list.js +0 -45
- package/components/template-ng/template-ng.js +0 -57
- package/components/template-ng/template-ng.stories.js +0 -32
- package/components/template-ng/template-ng.test.js +0 -97
- package/components/text/text.css +0 -21
- package/components/text/text.d.ts +0 -23
- package/components/text/text.js +0 -31
- package/components/title-ng/title-ng.js +0 -120
- package/components/title-ng/title-ng.stories.js +0 -30
- package/components/title-ng/title-ng.test.js +0 -47
- package/components/toggle/toggle.css +0 -201
- package/components/toggle/toggle.d.ts +0 -39
- package/components/toggle/toggle.js +0 -46
- package/components/toggle-ng/toggle-ng.js +0 -8
- package/components/toggle-ng/toggle-ng.stories.js +0 -22
- package/components/tooltip/tooltip.css +0 -19
- package/components/tooltip/tooltip.d.ts +0 -65
- package/components/tooltip/tooltip.js +0 -126
- package/components/tooltip-ng/tooltip-ng.css +0 -25
- package/components/tooltip-ng/tooltip-ng.js +0 -100
- package/components/tooltip-ng/tooltip-ng.stories.js +0 -36
- package/components/tooltip-ng/tooltip-ng.test.js +0 -69
- package/components/user-agreement/service.d.ts +0 -67
- package/components/user-agreement/service.js +0 -241
- package/components/user-agreement/toolbox.eula.d.ts +0 -2
- package/components/user-agreement/toolbox.eula.js +0 -160
- package/components/user-agreement/user-agreement.css +0 -29
- package/components/user-agreement/user-agreement.d.ts +0 -61
- package/components/user-agreement/user-agreement.js +0 -82
- package/components/user-card/card.d.ts +0 -71
- package/components/user-card/card.js +0 -89
- package/components/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/components/user-card/smart-user-card-tooltip.js +0 -47
- package/components/user-card/tooltip.d.ts +0 -36
- package/components/user-card/tooltip.js +0 -43
- package/components/user-card/user-card.css +0 -125
- package/components/user-card/user-card.d.ts +0 -11
- package/components/user-card/user-card.js +0 -11
- package/components/user-card-ng/user-card-ng.js +0 -16
- package/components/user-card-ng/user-card-ng.stories.js +0 -66
- package/dist/_helpers/_rollupPluginBabelHelpers.js +0 -648
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button-group.js +0 -3
- package/dist/_helpers/button-set.js +0 -3
- package/dist/_helpers/button-toolbar.js +0 -3
- package/dist/_helpers/button__classes.js +0 -34
- package/dist/_helpers/card.js +0 -132
- package/dist/_helpers/checkbox.js +0 -3
- package/dist/_helpers/control-label.js +0 -3
- package/dist/_helpers/date-picker.js +0 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -54
- package/dist/_helpers/error-message.js +0 -3
- package/dist/_helpers/footer.js +0 -110
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/group.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/icon.js +0 -3
- package/dist/_helpers/input.js +0 -3
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/link.js +0 -3
- package/dist/_helpers/list.js +0 -3
- package/dist/_helpers/loader-inline.js +0 -3
- package/dist/_helpers/loader-screen.js +0 -3
- package/dist/_helpers/panel.js +0 -3
- package/dist/_helpers/query-assist__suggestions.js +0 -102
- package/dist/_helpers/radio.js +0 -3
- package/dist/_helpers/select__filter.js +0 -94
- package/dist/_helpers/services-link.js +0 -50
- package/dist/_helpers/sidebar.js +0 -123
- package/dist/_helpers/table.js +0 -3
- package/dist/_helpers/tabs.js +0 -3
- package/dist/_helpers/theme.js +0 -95
- package/dist/_helpers/title.js +0 -103
- package/dist/alert/alert.d.ts +0 -113
- package/dist/alert/alert.js +0 -294
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -34
- package/dist/alert-service/alert-service.js +0 -219
- package/dist/analytics/analytics.d.ts +0 -38
- package/dist/analytics/analytics.js +0 -107
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -29
- package/dist/analytics/analytics__custom-plugin.js +0 -94
- package/dist/analytics/analytics__fus-plugin.d.ts +0 -52
- package/dist/analytics/analytics__fus-plugin.js +0 -38
- package/dist/analytics/analytics__ga-plugin.d.ts +0 -27
- package/dist/analytics/analytics__ga-plugin.js +0 -116
- package/dist/analytics/analytics__plugin-utils.d.ts +0 -31
- package/dist/analytics/analytics__plugin-utils.js +0 -100
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -133
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1652
- package/dist/auth/background-flow.d.ts +0 -31
- package/dist/auth/background-flow.js +0 -146
- package/dist/auth/down-notification.d.ts +0 -15
- package/dist/auth/down-notification.js +0 -158
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -194
- package/dist/auth/landing-entry.d.ts +0 -3
- package/dist/auth/landing-entry.js +0 -5
- package/dist/auth/landing.d.ts +0 -2
- package/dist/auth/landing.js +0 -155
- package/dist/auth/request-builder.d.ts +0 -48
- package/dist/auth/request-builder.js +0 -102
- package/dist/auth/response-parser.d.ts +0 -70
- package/dist/auth/response-parser.js +0 -137
- package/dist/auth/storage.d.ts +0 -112
- package/dist/auth/storage.js +0 -428
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -268
- package/dist/auth/window-flow.d.ts +0 -26
- package/dist/auth/window-flow.js +0 -153
- package/dist/auth-dialog/auth-dialog.d.ts +0 -60
- package/dist/auth-dialog/auth-dialog.js +0 -219
- package/dist/auth-dialog-service/auth-dialog-service.d.ts +0 -5
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -89
- package/dist/auth-ng/auth-ng.js +0 -229
- package/dist/auth-ng/auth-ng.mock.js +0 -29
- package/dist/autofocus-ng/autofocus-ng.js +0 -57
- package/dist/avatar/avatar-example-datauri.d.ts +0 -1
- package/dist/avatar/avatar-example-datauri.js +0 -4
- package/dist/avatar/avatar.d.ts +0 -52
- package/dist/avatar/avatar.js +0 -180
- package/dist/avatar/fallback-avatar.d.ts +0 -17
- package/dist/avatar/fallback-avatar.js +0 -150
- package/dist/avatar-editor-ng/avatar-editor-ng.js +0 -188
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +0 -3
- package/dist/avatar-ng/avatar-ng.js +0 -35
- package/dist/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -59
- package/dist/badge-ng/badge-ng.js +0 -26
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -45
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -132
- package/dist/button/button__classes.d.ts +0 -2
- package/dist/button/button__classes.js +0 -2
- package/dist/button-group/button-group.d.ts +0 -18
- package/dist/button-group/button-group.js +0 -48
- package/dist/button-group/caption.d.ts +0 -8
- package/dist/button-group/caption.js +0 -30
- package/dist/button-group-ng/button-group-ng.js +0 -45
- package/dist/button-ng/button-ng.js +0 -199
- package/dist/button-set/button-set.d.ts +0 -16
- package/dist/button-set/button-set.js +0 -46
- package/dist/button-set-ng/button-set-ng.js +0 -17
- package/dist/button-toolbar/button-toolbar.d.ts +0 -16
- package/dist/button-toolbar/button-toolbar.js +0 -45
- package/dist/button-toolbar-ng/button-toolbar-ng.js +0 -23
- package/dist/caret/caret.d.ts +0 -66
- package/dist/caret/caret.js +0 -258
- package/dist/checkbox/checkbox.d.ts +0 -45
- package/dist/checkbox/checkbox.js +0 -130
- package/dist/checkbox-ng/checkbox-ng.js +0 -51
- package/dist/clipboard/clipboard-fallback.d.ts +0 -2
- package/dist/clipboard/clipboard-fallback.js +0 -42
- package/dist/clipboard/clipboard.d.ts +0 -5
- package/dist/clipboard/clipboard.js +0 -185
- package/dist/code/code.d.ts +0 -44
- package/dist/code/code.js +0 -192
- package/dist/compiler-ng/compiler-ng.js +0 -51
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -153
- package/dist/confirm-ng/confirm-ng.js +0 -91
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -140
- package/dist/content-layout/content-layout.d.ts +0 -26
- package/dist/content-layout/content-layout.js +0 -79
- package/dist/content-layout/sidebar.d.ts +0 -31
- package/dist/content-layout/sidebar.js +0 -7
- package/dist/contenteditable/contenteditable.d.ts +0 -47
- package/dist/contenteditable/contenteditable.js +0 -84
- package/dist/control-label/control-label.d.ts +0 -11
- package/dist/control-label/control-label.js +0 -35
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -249
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -197
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -237
- package/dist/data-list/selection.d.ts +0 -16
- package/dist/data-list/selection.js +0 -146
- package/dist/data-list/title.d.ts +0 -26
- package/dist/data-list/title.js +0 -30
- package/dist/data-list-ng/data-list-ng.js +0 -78
- package/dist/date-picker/consts.d.ts +0 -98
- package/dist/date-picker/consts.js +0 -46
- package/dist/date-picker/date-input.d.ts +0 -47
- package/dist/date-picker/date-input.js +0 -180
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -405
- package/dist/date-picker/date-popup.d.ts +0 -55
- package/dist/date-picker/date-popup.js +0 -491
- package/dist/date-picker/day.d.ts +0 -30
- package/dist/date-picker/day.js +0 -133
- package/dist/date-picker/formats.d.ts +0 -2
- package/dist/date-picker/formats.js +0 -3
- package/dist/date-picker/month-names.d.ts +0 -13
- package/dist/date-picker/month-names.js +0 -110
- package/dist/date-picker/month-slider.d.ts +0 -29
- package/dist/date-picker/month-slider.js +0 -93
- package/dist/date-picker/month.d.ts +0 -14
- package/dist/date-picker/month.js +0 -58
- package/dist/date-picker/months.d.ts +0 -11
- package/dist/date-picker/months.js +0 -133
- package/dist/date-picker/weekdays.d.ts +0 -13
- package/dist/date-picker/weekdays.js +0 -39
- package/dist/date-picker/years.d.ts +0 -25
- package/dist/date-picker/years.js +0 -134
- package/dist/dialog/dialog.d.ts +0 -64
- package/dist/dialog/dialog.js +0 -239
- package/dist/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -6
- package/dist/dialog-ng/dialog-ng.js +0 -618
- package/dist/dialog-ng/dialog-ng__template.js +0 -3
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -158
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -25
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -248
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -26
- package/dist/dropdown-menu/dropdown-menu.js +0 -196
- package/dist/editable-heading/editable-heading.d.ts +0 -32
- package/dist/editable-heading/editable-heading.js +0 -276
- package/dist/error-bubble/error-bubble.d.ts +0 -18
- package/dist/error-bubble/error-bubble.js +0 -86
- package/dist/error-message/error-message.d.ts +0 -27
- package/dist/error-message/error-message.js +0 -78
- package/dist/error-message-ng/error-message-ng.js +0 -40
- package/dist/footer/footer.d.ts +0 -28
- package/dist/footer/footer.js +0 -19
- package/dist/footer-ng/footer-ng.js +0 -86
- package/dist/form-ng/form-ng.js +0 -155
- package/dist/global/angular-component-factory.js +0 -98
- package/dist/global/compose.d.ts +0 -7
- package/dist/global/compose.js +0 -17
- package/dist/global/composeRefs.d.ts +0 -3
- package/dist/global/composeRefs.js +0 -19
- package/dist/global/controls-height.d.ts +0 -9
- package/dist/global/controls-height.js +0 -19
- package/dist/global/create-stateful-context.d.ts +0 -27
- package/dist/global/create-stateful-context.js +0 -49
- package/dist/global/data-tests.d.ts +0 -3
- package/dist/global/data-tests.js +0 -30
- package/dist/global/dom.d.ts +0 -37
- package/dist/global/dom.js +0 -150
- package/dist/global/focus-sensor-hoc.d.ts +0 -19
- package/dist/global/focus-sensor-hoc.js +0 -165
- package/dist/global/fuzzy-highlight.d.ts +0 -11
- package/dist/global/fuzzy-highlight.js +0 -90
- package/dist/global/get-event-key.d.ts +0 -2
- package/dist/global/get-event-key.js +0 -101
- package/dist/global/get-uid.d.ts +0 -1
- package/dist/global/get-uid.js +0 -22
- package/dist/global/inject-styles.d.ts +0 -3
- package/dist/global/inject-styles.js +0 -22
- package/dist/global/linear-function.d.ts +0 -6
- package/dist/global/linear-function.js +0 -15
- package/dist/global/listeners.d.ts +0 -8
- package/dist/global/listeners.js +0 -58
- package/dist/global/memoize.d.ts +0 -1
- package/dist/global/memoize.js +0 -23
- package/dist/global/normalize-indent.d.ts +0 -1
- package/dist/global/normalize-indent.js +0 -61
- package/dist/global/promise-with-timeout.d.ts +0 -5
- package/dist/global/promise-with-timeout.js +0 -19
- package/dist/global/prop-types.d.ts +0 -4
- package/dist/global/prop-types.js +0 -9
- package/dist/global/react-dom-renderer.d.ts +0 -16
- package/dist/global/react-dom-renderer.js +0 -53
- package/dist/global/react-render-adapter.d.ts +0 -29
- package/dist/global/react-render-adapter.js +0 -35
- package/dist/global/rerender-hoc.d.ts +0 -41
- package/dist/global/rerender-hoc.js +0 -56
- package/dist/global/ring-angular-component.js +0 -27
- package/dist/global/schedule-raf.d.ts +0 -1
- package/dist/global/schedule-raf.js +0 -28
- package/dist/global/sniffer.d.ts +0 -3
- package/dist/global/sniffer.js +0 -6
- package/dist/global/theme.d.ts +0 -21
- package/dist/global/theme.js +0 -40
- package/dist/global/trivial-template-tag.d.ts +0 -1
- package/dist/global/trivial-template-tag.js +0 -21
- package/dist/global/typescript-utils.d.ts +0 -2
- package/dist/global/typescript-utils.js +0 -8
- package/dist/global/url.d.ts +0 -57
- package/dist/global/url.js +0 -141
- package/dist/global/use-event-callback.d.ts +0 -1
- package/dist/global/use-event-callback.js +0 -17
- package/dist/global/variables.d.ts +0 -90
- package/dist/global/variables.js +0 -1
- package/dist/grid/col.d.ts +0 -31
- package/dist/grid/col.js +0 -81
- package/dist/grid/grid.d.ts +0 -14
- package/dist/grid/grid.js +0 -47
- package/dist/grid/row.d.ts +0 -40
- package/dist/grid/row.js +0 -76
- package/dist/group/group.d.ts +0 -12
- package/dist/group/group.js +0 -38
- package/dist/group-ng/group-ng.js +0 -11
- package/dist/header/header.d.ts +0 -34
- package/dist/header/header.js +0 -188
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -52
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -255
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -18
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -173
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -302
- package/dist/header/smart-services.d.ts +0 -25
- package/dist/header/smart-services.js +0 -192
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -58
- package/dist/header/tray.d.ts +0 -9
- package/dist/header/tray.js +0 -41
- package/dist/heading/heading.d.ts +0 -25
- package/dist/heading/heading.js +0 -70
- package/dist/heading-ng/heading-ng.js +0 -23
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -397
- package/dist/http/http.mock.d.ts +0 -20
- package/dist/http/http.mock.js +0 -112
- package/dist/hub-source/hub-source.d.ts +0 -42
- package/dist/hub-source/hub-source.js +0 -215
- package/dist/hub-source/hub-source__user.d.ts +0 -4
- package/dist/hub-source/hub-source__user.js +0 -59
- package/dist/hub-source/hub-source__users-groups.d.ts +0 -24
- package/dist/hub-source/hub-source__users-groups.js +0 -84
- package/dist/i18n/i18n-context.d.ts +0 -13
- package/dist/i18n/i18n-context.js +0 -27
- package/dist/i18n/i18n.d.ts +0 -59
- package/dist/i18n/i18n.js +0 -139
- package/dist/icon/icon.d.ts +0 -43
- package/dist/icon/icon.js +0 -110
- package/dist/icon/icon__constants.d.ts +0 -30
- package/dist/icon/icon__constants.js +0 -34
- package/dist/icon/icon__svg.d.ts +0 -15
- package/dist/icon/icon__svg.js +0 -79
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -18
- package/dist/icon-ng/icon-ng.js +0 -94
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -255
- package/dist/input-ng/input-ng.js +0 -126
- package/dist/island/adaptive-island-hoc.d.ts +0 -61
- package/dist/island/adaptive-island-hoc.js +0 -53
- package/dist/island/content.d.ts +0 -43
- package/dist/island/content.js +0 -151
- package/dist/island/header.d.ts +0 -8
- package/dist/island/header.js +0 -100
- package/dist/island/island.d.ts +0 -78
- package/dist/island/island.js +0 -60
- package/dist/island-legacy/content-legacy.d.ts +0 -10
- package/dist/island-legacy/content-legacy.js +0 -34
- package/dist/island-legacy/header-legacy.d.ts +0 -10
- package/dist/island-legacy/header-legacy.js +0 -36
- package/dist/island-legacy/island-legacy.d.ts +0 -12
- package/dist/island-legacy/island-legacy.js +0 -36
- package/dist/island-ng/island-content-ng.js +0 -44
- package/dist/island-ng/island-header-ng.js +0 -29
- package/dist/island-ng/island-ng-class-fixer.js +0 -12
- package/dist/island-ng/island-ng.js +0 -27
- package/dist/link/clickableLink.d.ts +0 -20
- package/dist/link/clickableLink.js +0 -69
- package/dist/link/link.d.ts +0 -148
- package/dist/link/link.js +0 -126
- package/dist/link-ng/link-ng.js +0 -21
- package/dist/list/consts.d.ts +0 -77
- package/dist/list/consts.js +0 -31
- package/dist/list/list.d.ts +0 -196
- package/dist/list/list.js +0 -800
- package/dist/list/list__custom.d.ts +0 -6
- package/dist/list/list__custom.js +0 -92
- package/dist/list/list__hint.d.ts +0 -15
- package/dist/list/list__hint.js +0 -33
- package/dist/list/list__item.d.ts +0 -8
- package/dist/list/list__item.js +0 -236
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -81
- package/dist/list/list__separator.d.ts +0 -5
- package/dist/list/list__separator.js +0 -39
- package/dist/list/list__title.d.ts +0 -5
- package/dist/list/list__title.js +0 -48
- package/dist/list/list__users-groups-source.d.ts +0 -27
- package/dist/list/list__users-groups-source.js +0 -192
- package/dist/loader/loader.d.ts +0 -28
- package/dist/loader/loader.js +0 -91
- package/dist/loader/loader__core.d.ts +0 -75
- package/dist/loader/loader__core.js +0 -325
- package/dist/loader-inline/loader-inline.d.ts +0 -18
- package/dist/loader-inline/loader-inline.js +0 -49
- package/dist/loader-inline-ng/loader-inline-ng.js +0 -14
- package/dist/loader-ng/loader-ng.js +0 -58
- package/dist/loader-screen/loader-screen.d.ts +0 -17
- package/dist/loader-screen/loader-screen.js +0 -61
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -96
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -214
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -95
- package/dist/markdown/code.d.ts +0 -7
- package/dist/markdown/code.js +0 -52
- package/dist/markdown/heading.d.ts +0 -11
- package/dist/markdown/heading.js +0 -20
- package/dist/markdown/link.d.ts +0 -12
- package/dist/markdown/link.js +0 -34
- package/dist/markdown/markdown.d.ts +0 -15
- package/dist/markdown/markdown.js +0 -102
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -266
- package/dist/message-bundle-ng/message-bundle-ng.js +0 -151
- package/dist/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +0 -92
- package/dist/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -11
- package/dist/old-browsers-message/white-list.d.ts +0 -2
- package/dist/old-browsers-message/white-list.js +0 -37
- package/dist/pager/pager.d.ts +0 -78
- package/dist/pager/pager.js +0 -397
- package/dist/pager-ng/pager-ng.js +0 -126
- package/dist/panel/panel.d.ts +0 -12
- package/dist/panel/panel.js +0 -38
- package/dist/panel-ng/panel-ng.js +0 -25
- package/dist/permissions/permissions.d.ts +0 -111
- package/dist/permissions/permissions.js +0 -220
- package/dist/permissions/permissions__cache.d.ts +0 -93
- package/dist/permissions/permissions__cache.js +0 -257
- package/dist/permissions-ng/permissions-ng.js +0 -324
- package/dist/place-under-ng/place-under-ng.js +0 -156
- package/dist/popup/popup.consts.d.ts +0 -37
- package/dist/popup/popup.consts.js +0 -44
- package/dist/popup/popup.d.ts +0 -147
- package/dist/popup/popup.js +0 -422
- package/dist/popup/popup.target.d.ts +0 -7
- package/dist/popup/popup.target.js +0 -24
- package/dist/popup/position.d.ts +0 -30
- package/dist/popup/position.js +0 -270
- package/dist/popup-menu/popup-menu.d.ts +0 -60
- package/dist/popup-menu/popup-menu.js +0 -138
- package/dist/progress-bar/progress-bar.d.ts +0 -64
- package/dist/progress-bar/progress-bar.js +0 -120
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -22
- package/dist/promised-click-ng/promised-click-ng.js +0 -136
- package/dist/proxy-attrs/proxy-attrs.js +0 -27
- package/dist/query-assist/query-assist.d.ts +0 -333
- package/dist/query-assist/query-assist.js +0 -1099
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -72
- package/dist/query-assist-ng/query-assist-ng.js +0 -112
- package/dist/radio/radio.d.ts +0 -18
- package/dist/radio/radio.js +0 -49
- package/dist/radio/radio__item.d.ts +0 -28
- package/dist/radio/radio__item.js +0 -87
- package/dist/radio-ng/radio-ng.js +0 -47
- package/dist/save-field-ng/save-field-ng.js +0 -318
- package/dist/save-field-ng/save-field-ng__template.js +0 -3
- package/dist/select/select.d.ts +0 -303
- package/dist/select/select.js +0 -1311
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -84
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -631
- package/dist/select-ng/select-ng.js +0 -620
- package/dist/select-ng/select-ng__lazy.js +0 -198
- package/dist/select-ng/select-ng__options.js +0 -143
- package/dist/shortcuts/core.d.ts +0 -74
- package/dist/shortcuts/core.js +0 -247
- package/dist/shortcuts/shortcut-title.d.ts +0 -1
- package/dist/shortcuts/shortcut-title.js +0 -56
- package/dist/shortcuts/shortcuts-hoc.d.ts +0 -65
- package/dist/shortcuts/shortcuts-hoc.js +0 -59
- package/dist/shortcuts/shortcuts.d.ts +0 -28
- package/dist/shortcuts/shortcuts.js +0 -90
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -151
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +0 -3
- package/dist/shortcuts-ng/shortcuts-ng.js +0 -259
- package/dist/sidebar-ng/sidebar-ng.js +0 -126
- package/dist/sidebar-ng/sidebar-ng__button-template.js +0 -3
- package/dist/sidebar-ng/sidebar-ng__template.js +0 -3
- package/dist/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -91
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -253
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -217
- package/dist/style.css +0 -1
- package/dist/tab-trap/tab-trap.d.ts +0 -43
- package/dist/tab-trap/tab-trap.js +0 -179
- package/dist/table/cell.d.ts +0 -13
- package/dist/table/cell.js +0 -37
- package/dist/table/disable-hover-hoc.d.ts +0 -64
- package/dist/table/disable-hover-hoc.js +0 -62
- package/dist/table/header-cell.d.ts +0 -43
- package/dist/table/header-cell.js +0 -110
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -153
- package/dist/table/multitable.d.ts +0 -25
- package/dist/table/multitable.js +0 -139
- package/dist/table/row-with-focus-sensor.d.ts +0 -18
- package/dist/table/row-with-focus-sensor.js +0 -117
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -299
- package/dist/table/selection-adapter.d.ts +0 -5
- package/dist/table/selection-adapter.js +0 -14
- package/dist/table/selection-shortcuts-hoc.d.ts +0 -17
- package/dist/table/selection-shortcuts-hoc.js +0 -204
- package/dist/table/selection.d.ts +0 -47
- package/dist/table/selection.js +0 -256
- package/dist/table/smart-table.d.ts +0 -64
- package/dist/table/smart-table.js +0 -147
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -461
- package/dist/table-legacy-ng/table-legacy-ng.js +0 -480
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +0 -149
- package/dist/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +0 -115
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +0 -193
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -64
- package/dist/table-ng/smart-table-ng.js +0 -88
- package/dist/table-ng/table-ng.js +0 -87
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -221
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -95
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -352
- package/dist/tabs/custom-item.d.ts +0 -9
- package/dist/tabs/custom-item.js +0 -11
- package/dist/tabs/dumb-tabs.d.ts +0 -35
- package/dist/tabs/dumb-tabs.js +0 -188
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -139
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -48
- package/dist/tabs/tab.d.ts +0 -27
- package/dist/tabs/tab.js +0 -41
- package/dist/tabs/tabs.d.ts +0 -7
- package/dist/tabs/tabs.js +0 -97
- package/dist/tabs-ng/tabs-ng.js +0 -185
- package/dist/tabs-ng/tabs-ng__template.js +0 -3
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -214
- package/dist/tags-input/tags-input.d.ts +0 -165
- package/dist/tags-input/tags-input.js +0 -535
- package/dist/tags-input-ng/tags-input-ng.js +0 -120
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -103
- package/dist/template-ng/template-ng.js +0 -68
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -57
- package/dist/title-ng/title-ng.js +0 -108
- package/dist/toggle/toggle.d.ts +0 -39
- package/dist/toggle/toggle.js +0 -86
- package/dist/toggle-ng/toggle-ng.js +0 -26
- package/dist/tooltip/tooltip.d.ts +0 -65
- package/dist/tooltip/tooltip.js +0 -227
- package/dist/tooltip-ng/tooltip-ng.js +0 -118
- package/dist/user-agreement/service.d.ts +0 -67
- package/dist/user-agreement/service.js +0 -500
- package/dist/user-agreement/toolbox.eula.d.ts +0 -2
- package/dist/user-agreement/toolbox.eula.js +0 -3
- package/dist/user-agreement/user-agreement.d.ts +0 -61
- package/dist/user-agreement/user-agreement.js +0 -189
- package/dist/user-card/card.d.ts +0 -71
- package/dist/user-card/card.js +0 -78
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -170
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -142
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -83
- package/dist/user-card-ng/user-card-ng.js +0 -93
package/dist/select/select.js
DELETED
|
@@ -1,1311 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, g as _objectSpread2, e as _objectWithoutProperties, p as _toPropertyKey, d as _createClass, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
3
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
4
|
-
import 'core-js/modules/es.string.trim.js';
|
|
5
|
-
import 'core-js/modules/es.array.filter.js';
|
|
6
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
7
|
-
import 'core-js/modules/es.array.concat.js';
|
|
8
|
-
import 'core-js/modules/es.string.replace.js';
|
|
9
|
-
import 'core-js/modules/es.array.map.js';
|
|
10
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
11
|
-
import 'core-js/modules/es.array.slice.js';
|
|
12
|
-
import 'core-js/modules/es.object.values.js';
|
|
13
|
-
import React, { Fragment, Component } from 'react';
|
|
14
|
-
import classNames from 'classnames';
|
|
15
|
-
import PropTypes from 'prop-types';
|
|
16
|
-
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
17
|
-
import closeIcon from '@jetbrains/icons/close-12px';
|
|
18
|
-
import deepEqual from 'deep-equal';
|
|
19
|
-
import '../dropdown/dropdown.js';
|
|
20
|
-
import Avatar, { Size as Size$1 } from '../avatar/avatar.js';
|
|
21
|
-
import Popup from '../popup/popup.js';
|
|
22
|
-
import List, { ActiveItemContext } from '../list/list.js';
|
|
23
|
-
import { Size, Input } from '../input/input.js';
|
|
24
|
-
import { ControlLabel } from '../control-label/control-label.js';
|
|
25
|
-
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
26
|
-
import { Button } from '../button/button.js';
|
|
27
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
|
28
|
-
import getUID from '../global/get-uid.js';
|
|
29
|
-
import rerenderHOC from '../global/rerender-hoc.js';
|
|
30
|
-
import fuzzyHighlight from '../global/fuzzy-highlight.js';
|
|
31
|
-
import memoize from '../global/memoize.js';
|
|
32
|
-
import { I18nContext } from '../i18n/i18n-context.js';
|
|
33
|
-
import composeRefs from '../global/composeRefs.js';
|
|
34
|
-
import { refObject } from '../global/prop-types.js';
|
|
35
|
-
import { isArray } from '../global/typescript-utils.js';
|
|
36
|
-
import { ControlsHeight, ControlsHeightContext } from '../global/controls-height.js';
|
|
37
|
-
import { m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
38
|
-
import SelectPopup from './select__popup.js';
|
|
39
|
-
import { A as Anchor } from '../_helpers/anchor.js';
|
|
40
|
-
import 'core-js/modules/es.object.entries.js';
|
|
41
|
-
import '@jetbrains/icons/chevron-10px';
|
|
42
|
-
import '../icon/icon.js';
|
|
43
|
-
import 'util-deprecate';
|
|
44
|
-
import '../icon/icon__constants.js';
|
|
45
|
-
import '../_helpers/icon.js';
|
|
46
|
-
import '../icon/icon__svg.js';
|
|
47
|
-
import 'core-js/modules/es.string.starts-with.js';
|
|
48
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
49
|
-
import 'core-js/modules/es.map.js';
|
|
50
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
51
|
-
import 'core-js/modules/es.weak-map.js';
|
|
52
|
-
import '../link/clickableLink.js';
|
|
53
|
-
import '../_helpers/button__classes.js';
|
|
54
|
-
import '../global/url.js';
|
|
55
|
-
import 'core-js/modules/es.string.match.js';
|
|
56
|
-
import '../global/dom.js';
|
|
57
|
-
import 'core-js/modules/es.string.split.js';
|
|
58
|
-
import 'core-js/modules/es.set.js';
|
|
59
|
-
import '../avatar/fallback-avatar.js';
|
|
60
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
61
|
-
import 'react-dom';
|
|
62
|
-
import '../global/schedule-raf.js';
|
|
63
|
-
import '../tab-trap/tab-trap.js';
|
|
64
|
-
import '../popup/position.js';
|
|
65
|
-
import 'core-js/modules/es.array.includes.js';
|
|
66
|
-
import 'core-js/modules/es.string.includes.js';
|
|
67
|
-
import 'core-js/modules/es.array.sort.js';
|
|
68
|
-
import '../popup/popup.consts.js';
|
|
69
|
-
import '../popup/popup.target.js';
|
|
70
|
-
import '../shortcuts/core.js';
|
|
71
|
-
import 'core-js/modules/es.array.splice.js';
|
|
72
|
-
import 'combokeys';
|
|
73
|
-
import '../global/sniffer.js';
|
|
74
|
-
import 'sniffr';
|
|
75
|
-
import 'core-js/modules/es.symbol.js';
|
|
76
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
77
|
-
import 'react-virtualized/dist/es/List';
|
|
78
|
-
import 'react-virtualized/dist/es/AutoSizer';
|
|
79
|
-
import 'react-virtualized/dist/es/WindowScroller';
|
|
80
|
-
import 'react-virtualized/dist/es/CellMeasurer';
|
|
81
|
-
import 'memoize-one';
|
|
82
|
-
import '../global/create-stateful-context.js';
|
|
83
|
-
import '../list/list__link.js';
|
|
84
|
-
import '../link/link.js';
|
|
85
|
-
import '../_helpers/link.js';
|
|
86
|
-
import '../_helpers/list.js';
|
|
87
|
-
import '../list/list__item.js';
|
|
88
|
-
import '../checkbox/checkbox.js';
|
|
89
|
-
import '@jetbrains/icons/checkmark-14px';
|
|
90
|
-
import '@jetbrains/icons/remove-14px';
|
|
91
|
-
import '../_helpers/checkbox.js';
|
|
92
|
-
import '../list/list__custom.js';
|
|
93
|
-
import '../global/get-event-key.js';
|
|
94
|
-
import '../list/list__title.js';
|
|
95
|
-
import '../list/list__separator.js';
|
|
96
|
-
import '../list/list__hint.js';
|
|
97
|
-
import '../list/consts.js';
|
|
98
|
-
import '../i18n/i18n.js';
|
|
99
|
-
import '../_helpers/control-label.js';
|
|
100
|
-
import '../global/react-render-adapter.js';
|
|
101
|
-
import '@jetbrains/icons/search';
|
|
102
|
-
import '../loader-inline/loader-inline.js';
|
|
103
|
-
import '../_helpers/loader-inline.js';
|
|
104
|
-
import '../shortcuts/shortcuts-hoc.js';
|
|
105
|
-
import '../tags-list/tags-list.js';
|
|
106
|
-
import '../tag/tag.js';
|
|
107
|
-
import '../caret/caret.js';
|
|
108
|
-
import '../text/text.js';
|
|
109
|
-
import '../_helpers/select__filter.js';
|
|
110
|
-
|
|
111
|
-
var modules_9d0de074 = {"unit":"i__const_unit_0","button-shadow":"i__const_button_shadow_1","select":"select_rui_11de","value":"value_rui_11de ellipsis_rui_8bff font_rui_8bff","icons":"icons_rui_11de","light":"light_rui_2ac4","toolbar":"toolbar_rui_11de","button":"button_rui_11de","buttonSpaced":"buttonSpaced_rui_11de","inputMode":"inputMode_rui_11de","selectedIcon":"selectedIcon_rui_11de resetButton_rui_8bff","clearIcon":"clearIcon_rui_11de","sizeS":"sizeS_rui_11de","sizeM":"sizeM_rui_11de","sizeL":"sizeL_rui_11de","sizeFULL":"sizeFULL_rui_11de","sizeAUTO":"sizeAUTO_rui_11de","buttonMode":"buttonMode_rui_11de","open":"open_rui_11de","buttonContainer":"buttonContainer_rui_11de","buttonValue":"buttonValue_rui_11de ellipsis_rui_8bff","buttonValueOpen":"buttonValueOpen_rui_11de","buttonValueEmpty":"buttonValueEmpty_rui_11de","heightS":"heightS_rui_11de","label":"label_rui_11de","disabled":"disabled_rui_11de","avatar":"avatar_rui_11de","popup":"popup_rui_11de","chevron":"chevron_rui_11de","chevronIcon":"chevronIcon_rui_11de"};
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @name Select
|
|
115
|
-
*/
|
|
116
|
-
function noop() {}
|
|
117
|
-
/**
|
|
118
|
-
* @enum {number}
|
|
119
|
-
*/
|
|
120
|
-
var Type;
|
|
121
|
-
(function (Type) {
|
|
122
|
-
Type["BUTTON"] = "BUTTON";
|
|
123
|
-
Type["INPUT"] = "INPUT";
|
|
124
|
-
Type["CUSTOM"] = "CUSTOM";
|
|
125
|
-
Type["INLINE"] = "INLINE";
|
|
126
|
-
Type["INPUT_WITHOUT_CONTROLS"] = "INPUT_WITHOUT_CONTROLS";
|
|
127
|
-
})(Type || (Type = {}));
|
|
128
|
-
var ICONS_OFFSET = 5;
|
|
129
|
-
var ICON_WIDTH = 20;
|
|
130
|
-
var getStyle = memoize(function (iconsLength) {
|
|
131
|
-
return {
|
|
132
|
-
paddingRight: ICONS_OFFSET + iconsLength * ICON_WIDTH
|
|
133
|
-
};
|
|
134
|
-
});
|
|
135
|
-
var _isInputMode = function isInputMode(type) {
|
|
136
|
-
return type === Type.INPUT || type === Type.INPUT_WITHOUT_CONTROLS;
|
|
137
|
-
};
|
|
138
|
-
function getLowerCaseLabel(item) {
|
|
139
|
-
if (List.isItemType(List.ListProps.Type.SEPARATOR, item) || List.isItemType(List.ListProps.Type.HINT, item) || typeof item.label !== 'string') {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
return item.label.toLowerCase();
|
|
143
|
-
}
|
|
144
|
-
function doesLabelMatch(itemToCheck, fn) {
|
|
145
|
-
var lowerCaseLabel = getLowerCaseLabel(itemToCheck);
|
|
146
|
-
if (lowerCaseLabel == null) {
|
|
147
|
-
return true;
|
|
148
|
-
}
|
|
149
|
-
return fn(lowerCaseLabel);
|
|
150
|
-
}
|
|
151
|
-
function _getFilterFn(filter) {
|
|
152
|
-
if (typeof filter === 'object') {
|
|
153
|
-
if (filter.fn) {
|
|
154
|
-
return filter.fn;
|
|
155
|
-
}
|
|
156
|
-
if (filter.fuzzy) {
|
|
157
|
-
return function (itemToCheck, checkString) {
|
|
158
|
-
return doesLabelMatch(itemToCheck, function (lowerCaseLabel) {
|
|
159
|
-
return fuzzyHighlight(checkString, lowerCaseLabel).matched;
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return function (itemToCheck, checkString) {
|
|
165
|
-
return doesLabelMatch(itemToCheck, function (lowerCaseLabel) {
|
|
166
|
-
return lowerCaseLabel.indexOf(checkString) >= 0;
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
function buildMultipleMap(selected) {
|
|
171
|
-
return selected.reduce(function (acc, item) {
|
|
172
|
-
acc[item.key] = true;
|
|
173
|
-
return acc;
|
|
174
|
-
}, {});
|
|
175
|
-
}
|
|
176
|
-
function _getListItems(props, state, rawFilterString) {
|
|
177
|
-
var data = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : props.data;
|
|
178
|
-
var filterString = rawFilterString.trim();
|
|
179
|
-
if (_isInputMode(props.type) && !props.allowAny && state.selected && !Array.isArray(state.selected) && filterString === state.selected.label) {
|
|
180
|
-
filterString = ''; // ignore multiple if it is exactly the selected item
|
|
181
|
-
}
|
|
182
|
-
var lowerCaseString = filterString.toLowerCase();
|
|
183
|
-
var filteredData = [];
|
|
184
|
-
var exactMatch = false;
|
|
185
|
-
var check = _getFilterFn(props.filter);
|
|
186
|
-
var _loop = function _loop() {
|
|
187
|
-
var item = _objectSpread2({}, data[i]);
|
|
188
|
-
if (check(item, lowerCaseString, data)) {
|
|
189
|
-
var _state$multipleMap2;
|
|
190
|
-
exactMatch = item.label === filterString;
|
|
191
|
-
if (props.multiple && !(typeof props.multiple === 'object' && props.multiple.removeSelectedItems)) {
|
|
192
|
-
var _state$multipleMap;
|
|
193
|
-
item.checkbox = !!((_state$multipleMap = state.multipleMap) !== null && _state$multipleMap !== void 0 && _state$multipleMap[item.key]);
|
|
194
|
-
}
|
|
195
|
-
if (props.multiple && typeof props.multiple === 'object' && props.multiple.limit && Array.isArray(state.selected)) {
|
|
196
|
-
item.disabled = props.multiple.limit === state.selected.length && !state.selected.find(function (selectedItem) {
|
|
197
|
-
return selectedItem.key === item.key;
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
// Ignore item if it's multiple and is already selected
|
|
201
|
-
if (!(props.multiple && typeof props.multiple === 'object' && props.multiple.removeSelectedItems && (_state$multipleMap2 = state.multipleMap) !== null && _state$multipleMap2 !== void 0 && _state$multipleMap2[item.key])) {
|
|
202
|
-
filteredData.push(item);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
for (var i = 0; i < data.length; i++) {
|
|
207
|
-
_loop();
|
|
208
|
-
}
|
|
209
|
-
var addButton = null;
|
|
210
|
-
var add = props.add;
|
|
211
|
-
if (add && filterString && !exactMatch || add && add.alwaysVisible) {
|
|
212
|
-
if (!(add.regexp && !add.regexp.test(filterString)) && !(add.minlength && filterString.length < +add.minlength) || add.alwaysVisible) {
|
|
213
|
-
var _add$delayed;
|
|
214
|
-
var label;
|
|
215
|
-
if (add.label) {
|
|
216
|
-
label = typeof add.label === 'function' ? add.label(filterString) : add.label;
|
|
217
|
-
} else {
|
|
218
|
-
label = filterString;
|
|
219
|
-
}
|
|
220
|
-
addButton = {
|
|
221
|
-
prefix: add.prefix,
|
|
222
|
-
label,
|
|
223
|
-
delayed: (_add$delayed = add.delayed) !== null && _add$delayed !== void 0 ? _add$delayed : true
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
return {
|
|
228
|
-
filteredData,
|
|
229
|
-
addButton
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
function getSelectedIndex(selected, data) {
|
|
233
|
-
var firstSelected = Array.isArray(selected) ? selected[0] : selected;
|
|
234
|
-
if (firstSelected == null) {
|
|
235
|
-
return null;
|
|
236
|
-
}
|
|
237
|
-
for (var i = 0; i < data.length; i++) {
|
|
238
|
-
var item = data[i];
|
|
239
|
-
if (item.key === undefined) {
|
|
240
|
-
continue;
|
|
241
|
-
}
|
|
242
|
-
if (item.key === firstSelected.key) {
|
|
243
|
-
return i;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return null;
|
|
247
|
-
}
|
|
248
|
-
var getItemLabel = function getItemLabel(_ref) {
|
|
249
|
-
var selectedLabel = _ref.selectedLabel,
|
|
250
|
-
label = _ref.label;
|
|
251
|
-
if (selectedLabel != null) {
|
|
252
|
-
return selectedLabel;
|
|
253
|
-
}
|
|
254
|
-
return typeof label === 'string' ? label : '';
|
|
255
|
-
};
|
|
256
|
-
var _getValueForFilter = function getValueForFilter(selected, type, filterValue) {
|
|
257
|
-
return selected && !isArray(selected) && _isInputMode(type) ? getItemLabel(selected) : filterValue;
|
|
258
|
-
};
|
|
259
|
-
function isSameSelected(prevSelected, selected) {
|
|
260
|
-
if (!prevSelected || !selected || prevSelected.length !== selected.length) {
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
var keysMap = selected.reduce(function (result, item) {
|
|
264
|
-
result[item.key] = true;
|
|
265
|
-
return result;
|
|
266
|
-
}, {});
|
|
267
|
-
return prevSelected.every(function (it) {
|
|
268
|
-
return keysMap[it.key];
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* @name Select
|
|
273
|
-
* @constructor
|
|
274
|
-
* @extends {Component}
|
|
275
|
-
*/
|
|
276
|
-
/**
|
|
277
|
-
* Displays a select.
|
|
278
|
-
*/
|
|
279
|
-
var Select = /*#__PURE__*/function (_Component) {
|
|
280
|
-
_inherits(Select, _Component);
|
|
281
|
-
var _super = _createSuper(Select);
|
|
282
|
-
function Select() {
|
|
283
|
-
var _this;
|
|
284
|
-
_classCallCheck(this, Select);
|
|
285
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
286
|
-
args[_key] = arguments[_key];
|
|
287
|
-
}
|
|
288
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
289
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
290
|
-
data: [],
|
|
291
|
-
shownData: [],
|
|
292
|
-
selected: _this.props.multiple ? [] : null,
|
|
293
|
-
selectedIndex: null,
|
|
294
|
-
filterValue: _this.props.filter && typeof _this.props.filter === 'object' && _this.props.filter.value || '',
|
|
295
|
-
shortcutsEnabled: false,
|
|
296
|
-
popupShortcuts: false,
|
|
297
|
-
showPopup: _this.props.showPopup,
|
|
298
|
-
prevData: _this.props.data,
|
|
299
|
-
prevSelected: null,
|
|
300
|
-
prevMultiple: _this.props.multiple,
|
|
301
|
-
multipleMap: {},
|
|
302
|
-
addButton: null
|
|
303
|
-
});
|
|
304
|
-
_defineProperty(_assertThisInitialized(_this), "id", getUID('select-'));
|
|
305
|
-
_defineProperty(_assertThisInitialized(_this), "shortcutsScope", _this.id);
|
|
306
|
-
_defineProperty(_assertThisInitialized(_this), "listId", "".concat(_this.id, ":list"));
|
|
307
|
-
_defineProperty(_assertThisInitialized(_this), "_focusHandler", function (e) {
|
|
308
|
-
_this.props.onFocus(e);
|
|
309
|
-
_this.setState({
|
|
310
|
-
shortcutsEnabled: true,
|
|
311
|
-
focused: true
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
_defineProperty(_assertThisInitialized(_this), "_blurHandler", function () {
|
|
315
|
-
var _this$_popup;
|
|
316
|
-
_this.props.onBlur();
|
|
317
|
-
if (_this._popup && _this._popup.isVisible() && !_this._popup.isClickingPopup) {
|
|
318
|
-
window.setTimeout(function () {
|
|
319
|
-
_this.setState({
|
|
320
|
-
showPopup: false
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
if (!((_this$_popup = _this._popup) !== null && _this$_popup !== void 0 && _this$_popup.isClickingPopup)) {
|
|
325
|
-
_this.setState({
|
|
326
|
-
shortcutsEnabled: false,
|
|
327
|
-
focused: false
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
_defineProperty(_assertThisInitialized(_this), "node", void 0);
|
|
332
|
-
_defineProperty(_assertThisInitialized(_this), "nodeRef", function (el) {
|
|
333
|
-
_this.node = el;
|
|
334
|
-
});
|
|
335
|
-
_defineProperty(_assertThisInitialized(_this), "_popup", null);
|
|
336
|
-
_defineProperty(_assertThisInitialized(_this), "onEmptyPopupEnter", function () {
|
|
337
|
-
if (_this.state.addButton) {
|
|
338
|
-
_this.addHandler();
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
_defineProperty(_assertThisInitialized(_this), "focus", function () {
|
|
342
|
-
var _this$node;
|
|
343
|
-
var focusableSelectExists = (_this$node = _this.node) === null || _this$node === void 0 ? void 0 : _this$node.querySelector('[data-test~=ring-select__focus]');
|
|
344
|
-
var restoreFocusNode = _this.props.targetElement || focusableSelectExists;
|
|
345
|
-
restoreFocusNode === null || restoreFocusNode === void 0 || restoreFocusNode.focus();
|
|
346
|
-
});
|
|
347
|
-
_defineProperty(_assertThisInitialized(_this), "_onEnter", function () {
|
|
348
|
-
var _this$_popup2;
|
|
349
|
-
if (_this.state.addButton && _this.state.shownData.length === 0) {
|
|
350
|
-
_this.addHandler();
|
|
351
|
-
}
|
|
352
|
-
_this.props.onDone();
|
|
353
|
-
if (!((_this$_popup2 = _this._popup) !== null && _this$_popup2 !== void 0 && _this$_popup2.isVisible()) && _this.props.allowAny) {
|
|
354
|
-
return true;
|
|
355
|
-
}
|
|
356
|
-
return undefined;
|
|
357
|
-
});
|
|
358
|
-
_defineProperty(_assertThisInitialized(_this), "_onEsc", function (event) {
|
|
359
|
-
var _this$_popup3;
|
|
360
|
-
if (!((_this$_popup3 = _this._popup) !== null && _this$_popup3 !== void 0 && _this$_popup3.isVisible())) {
|
|
361
|
-
return true;
|
|
362
|
-
} else if (_this.props.multiple || !_this.props.getInitial) {
|
|
363
|
-
return false;
|
|
364
|
-
}
|
|
365
|
-
var selected = {
|
|
366
|
-
key: Math.random(),
|
|
367
|
-
label: _this.props.getInitial()
|
|
368
|
-
};
|
|
369
|
-
_this.setState({
|
|
370
|
-
selected,
|
|
371
|
-
filterValue: _this.getValueForFilter(selected)
|
|
372
|
-
}, function () {
|
|
373
|
-
_this.props.onChange(selected, event);
|
|
374
|
-
_this.props.onReset();
|
|
375
|
-
});
|
|
376
|
-
return undefined;
|
|
377
|
-
});
|
|
378
|
-
_defineProperty(_assertThisInitialized(_this), "_inputShortcutHandler", function () {
|
|
379
|
-
if (_this.state.focused && _this._popup && !_this._popup.isVisible()) {
|
|
380
|
-
_this._clickHandler();
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
_defineProperty(_assertThisInitialized(_this), "popupRef", function (el) {
|
|
384
|
-
_this._popup = el;
|
|
385
|
-
});
|
|
386
|
-
_defineProperty(_assertThisInitialized(_this), "addHandler", function () {
|
|
387
|
-
var value = _this.filterValue();
|
|
388
|
-
_this._hidePopup();
|
|
389
|
-
_this.props.onAdd(value);
|
|
390
|
-
});
|
|
391
|
-
_defineProperty(_assertThisInitialized(_this), "getLowerCaseLabel", getLowerCaseLabel);
|
|
392
|
-
_defineProperty(_assertThisInitialized(_this), "doesLabelMatch", doesLabelMatch);
|
|
393
|
-
_defineProperty(_assertThisInitialized(_this), "_clickHandler", function () {
|
|
394
|
-
if (!_this.props.disabled) {
|
|
395
|
-
if (_this.state.showPopup) {
|
|
396
|
-
_this._hidePopup();
|
|
397
|
-
} else {
|
|
398
|
-
_this.props.onBeforeOpen();
|
|
399
|
-
_this._showPopup();
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
_defineProperty(_assertThisInitialized(_this), "_openPopupIfClosed", function () {
|
|
404
|
-
if (_this.props.disabled || _this.state.showPopup) {
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
_this.props.onBeforeOpen();
|
|
408
|
-
_this._showPopup();
|
|
409
|
-
});
|
|
410
|
-
_defineProperty(_assertThisInitialized(_this), "_filterChangeHandler", function (e) {
|
|
411
|
-
_this._setFilter(e.currentTarget.value, e);
|
|
412
|
-
});
|
|
413
|
-
_defineProperty(_assertThisInitialized(_this), "_setFilter", function (value, event) {
|
|
414
|
-
var _this$_popup4;
|
|
415
|
-
if (_this.isInputMode() && !_this.state.focused) {
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
if (value === _this.state.filterValue) {
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
var filterValue = value.replace(/^\s+/g, '');
|
|
422
|
-
_this.props.onFilter(filterValue);
|
|
423
|
-
if (_this.props.allowAny) {
|
|
424
|
-
var fakeSelected = {
|
|
425
|
-
key: Math.random(),
|
|
426
|
-
label: filterValue
|
|
427
|
-
};
|
|
428
|
-
_this.setState({
|
|
429
|
-
selected: filterValue === '' ? null : fakeSelected,
|
|
430
|
-
selectedIndex: null
|
|
431
|
-
}, function () {
|
|
432
|
-
_this.props.onSelect(fakeSelected, event);
|
|
433
|
-
_this.props.onChange(fakeSelected, event);
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
!((_this$_popup4 = _this._popup) !== null && _this$_popup4 !== void 0 && _this$_popup4.isVisible()) && _this.props.onBeforeOpen();
|
|
437
|
-
_this.setState({
|
|
438
|
-
filterValue
|
|
439
|
-
}, function () {
|
|
440
|
-
_this._showPopup();
|
|
441
|
-
});
|
|
442
|
-
});
|
|
443
|
-
_defineProperty(_assertThisInitialized(_this), "_redrawPopup", function () {
|
|
444
|
-
if (_this.props.multiple) {
|
|
445
|
-
setTimeout(function () {
|
|
446
|
-
_this.isInputMode() && _this.clearFilter();
|
|
447
|
-
_this._showPopup();
|
|
448
|
-
}, 0);
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
_defineProperty(_assertThisInitialized(_this), "_listSelectHandler", function (selected, event) {
|
|
452
|
-
var _this$props$tryKeepOp;
|
|
453
|
-
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
454
|
-
var isItem = function isItem(item) {
|
|
455
|
-
return List.isItemType(List.ListProps.Type.ITEM, item);
|
|
456
|
-
};
|
|
457
|
-
var isCustomItem = function isCustomItem(item) {
|
|
458
|
-
return List.isItemType(List.ListProps.Type.CUSTOM, item);
|
|
459
|
-
};
|
|
460
|
-
var isSelectItemEvent = event && (event.type === 'select' || event.type === 'keydown');
|
|
461
|
-
if (isSelectItemEvent) {
|
|
462
|
-
event.preventDefault();
|
|
463
|
-
}
|
|
464
|
-
if (!isItem(selected) && !isCustomItem(selected) || selected.disabled || selected.isResetItem) {
|
|
465
|
-
return;
|
|
466
|
-
}
|
|
467
|
-
var tryKeepOpen = (_this$props$tryKeepOp = _this.props.tryKeepOpen) !== null && _this$props$tryKeepOp !== void 0 ? _this$props$tryKeepOp : opts.tryKeepOpen;
|
|
468
|
-
if (!_this.props.multiple) {
|
|
469
|
-
if (!tryKeepOpen) {
|
|
470
|
-
_this._hidePopup(isSelectItemEvent);
|
|
471
|
-
}
|
|
472
|
-
_this.setState({
|
|
473
|
-
selected,
|
|
474
|
-
selectedIndex: _this._getSelectedIndex(selected, _this.props.data)
|
|
475
|
-
}, function () {
|
|
476
|
-
var newFilterValue = _this.isInputMode() && !_this.props.hideSelected ? getItemLabel(selected) : '';
|
|
477
|
-
_this.filterValue(newFilterValue);
|
|
478
|
-
_this.props.onFilter(newFilterValue);
|
|
479
|
-
_this.props.onSelect(selected, event);
|
|
480
|
-
_this.props.onChange(selected, event);
|
|
481
|
-
});
|
|
482
|
-
} else {
|
|
483
|
-
if (!tryKeepOpen) {
|
|
484
|
-
_this._hidePopup(isSelectItemEvent);
|
|
485
|
-
}
|
|
486
|
-
if (selected.key == null) {
|
|
487
|
-
throw new Error('Multiple selection requires each item to have the "key" property');
|
|
488
|
-
}
|
|
489
|
-
_this.setState(function (prevState) {
|
|
490
|
-
var currentSelection = prevState.selected;
|
|
491
|
-
var nextSelection;
|
|
492
|
-
if (!prevState.multipleMap[selected.key]) {
|
|
493
|
-
nextSelection = currentSelection.concat(selected);
|
|
494
|
-
_this.props.onSelect && _this.props.onSelect(selected, event);
|
|
495
|
-
} else {
|
|
496
|
-
nextSelection = currentSelection.filter(function (item) {
|
|
497
|
-
return item.key !== selected.key;
|
|
498
|
-
});
|
|
499
|
-
_this.props.onDeselect && _this.props.onDeselect(selected);
|
|
500
|
-
}
|
|
501
|
-
_this.props.onChange(nextSelection, event);
|
|
502
|
-
var nextState = {
|
|
503
|
-
filterValue: '',
|
|
504
|
-
selected: nextSelection,
|
|
505
|
-
selectedIndex: _this._getSelectedIndex(selected, _this.props.data)
|
|
506
|
-
};
|
|
507
|
-
if (typeof _this.props.multiple === 'object' && _this.props.multiple.limit && nextSelection.length === _this.props.multiple.limit) {
|
|
508
|
-
nextState.shownData = prevState.shownData.map(function (item) {
|
|
509
|
-
return nextSelection.find(function (selectedItem) {
|
|
510
|
-
return selectedItem.key === item.key;
|
|
511
|
-
}) ? item : _objectSpread2(_objectSpread2({}, item), {}, {
|
|
512
|
-
disabled: true
|
|
513
|
-
});
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
if (!prevState.multipleMap[selected.key]) {
|
|
517
|
-
nextState.multipleMap = _objectSpread2(_objectSpread2({}, prevState.multipleMap), {}, {
|
|
518
|
-
[selected.key]: true
|
|
519
|
-
});
|
|
520
|
-
} else {
|
|
521
|
-
var _prevState$multipleMa = prevState.multipleMap,
|
|
522
|
-
_selected$key = selected.key;
|
|
523
|
-
_prevState$multipleMa[_selected$key];
|
|
524
|
-
var restMultipleMap = _objectWithoutProperties(_prevState$multipleMa, [_selected$key].map(_toPropertyKey));
|
|
525
|
-
nextState.multipleMap = restMultipleMap;
|
|
526
|
-
}
|
|
527
|
-
return _objectSpread2(_objectSpread2({}, prevState), nextState);
|
|
528
|
-
}, function () {
|
|
529
|
-
if (tryKeepOpen) {
|
|
530
|
-
_this._redrawPopup();
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
});
|
|
535
|
-
_defineProperty(_assertThisInitialized(_this), "_listSelectAllHandler", function () {
|
|
536
|
-
var isSelectAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
537
|
-
var isItem = function isItem(item) {
|
|
538
|
-
return List.isItemType(List.ListProps.Type.ITEM, item);
|
|
539
|
-
};
|
|
540
|
-
var isCustomItem = function isCustomItem(item) {
|
|
541
|
-
return List.isItemType(List.ListProps.Type.CUSTOM, item);
|
|
542
|
-
};
|
|
543
|
-
_this.setState(function (prevState) {
|
|
544
|
-
var currentSelection = prevState.selected;
|
|
545
|
-
var nextSelection;
|
|
546
|
-
if (isSelectAll) {
|
|
547
|
-
nextSelection = _this.props.data.filter(function (item) {
|
|
548
|
-
return (isItem(item) || isCustomItem(item)) && !item.disabled;
|
|
549
|
-
});
|
|
550
|
-
nextSelection.filter(function (item) {
|
|
551
|
-
return !_this.props.selected.find(function (selectedItem) {
|
|
552
|
-
return item.key === selectedItem.key;
|
|
553
|
-
});
|
|
554
|
-
}).forEach(function (item) {
|
|
555
|
-
_this.props.onSelect && _this.props.onSelect(item);
|
|
556
|
-
});
|
|
557
|
-
} else {
|
|
558
|
-
nextSelection = [];
|
|
559
|
-
currentSelection.forEach(function (item) {
|
|
560
|
-
_this.props.onDeselect && _this.props.onDeselect(item);
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
_this.props.onChange(nextSelection, event);
|
|
564
|
-
return {
|
|
565
|
-
filterValue: '',
|
|
566
|
-
selected: nextSelection,
|
|
567
|
-
selectedIndex: isSelectAll ? _this._getSelectedIndex(nextSelection, _this.props.data) : null,
|
|
568
|
-
shownData: prevState.shownData.map(function (item) {
|
|
569
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
570
|
-
checkbox: isSelectAll
|
|
571
|
-
});
|
|
572
|
-
}),
|
|
573
|
-
multipleMap: isSelectAll ? buildMultipleMap(_this.props.data.filter(function (item) {
|
|
574
|
-
return !item.disabled;
|
|
575
|
-
})) : {}
|
|
576
|
-
};
|
|
577
|
-
}, _this._redrawPopup);
|
|
578
|
-
});
|
|
579
|
-
_defineProperty(_assertThisInitialized(_this), "_onCloseAttempt", function (event, isEsc) {
|
|
580
|
-
if (_this.isInputMode()) {
|
|
581
|
-
if (!_this.props.allowAny) {
|
|
582
|
-
if (_this.props.hideSelected || !_this.state.selected || _this.props.multiple) {
|
|
583
|
-
_this.clearFilter();
|
|
584
|
-
} else if (_this.state.selected && !Array.isArray(_this.state.selected)) {
|
|
585
|
-
_this.filterValue(getItemLabel(_this.state.selected));
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
var isTagRemoved = _this.props.tags && event && event.target && event.target instanceof Element && event.target.matches('[data-test="ring-tag-remove"]');
|
|
590
|
-
if (!isTagRemoved) {
|
|
591
|
-
_this._hidePopup(isEsc);
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
_defineProperty(_assertThisInitialized(_this), "clearFilter", function (e) {
|
|
595
|
-
_this._setFilter('', e);
|
|
596
|
-
});
|
|
597
|
-
_defineProperty(_assertThisInitialized(_this), "clear", function (event) {
|
|
598
|
-
if (event) {
|
|
599
|
-
event.stopPropagation();
|
|
600
|
-
}
|
|
601
|
-
var empty = _this.props.multiple ? [] : null;
|
|
602
|
-
_this.setState({
|
|
603
|
-
selected: empty,
|
|
604
|
-
selectedIndex: null,
|
|
605
|
-
filterValue: ''
|
|
606
|
-
}, function () {
|
|
607
|
-
if (_this.props.onChange) {
|
|
608
|
-
_this.props.onChange(empty, event);
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
return false;
|
|
612
|
-
});
|
|
613
|
-
_defineProperty(_assertThisInitialized(_this), "filter", void 0);
|
|
614
|
-
_defineProperty(_assertThisInitialized(_this), "filterRef", function (el) {
|
|
615
|
-
_this.filter = el;
|
|
616
|
-
});
|
|
617
|
-
return _this;
|
|
618
|
-
}
|
|
619
|
-
_createClass(Select, [{
|
|
620
|
-
key: "componentDidUpdate",
|
|
621
|
-
value: function componentDidUpdate(prevProps, prevState) {
|
|
622
|
-
var _this$state = this.state,
|
|
623
|
-
showPopup = _this$state.showPopup,
|
|
624
|
-
selected = _this$state.selected;
|
|
625
|
-
var _this$props = this.props,
|
|
626
|
-
onClose = _this$props.onClose,
|
|
627
|
-
onOpen = _this$props.onOpen,
|
|
628
|
-
onChange = _this$props.onChange,
|
|
629
|
-
multiple = _this$props.multiple;
|
|
630
|
-
if (prevState.showPopup && !showPopup) {
|
|
631
|
-
onClose(selected);
|
|
632
|
-
} else if (!prevState.showPopup && showPopup) {
|
|
633
|
-
onOpen();
|
|
634
|
-
}
|
|
635
|
-
if (multiple !== prevProps.multiple && !deepEqual(multiple, prevProps.multiple)) {
|
|
636
|
-
onChange(selected);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
}, {
|
|
640
|
-
key: "getValueForFilter",
|
|
641
|
-
value: function getValueForFilter(selected) {
|
|
642
|
-
return _getValueForFilter(selected, this.props.type, this.state.filterValue);
|
|
643
|
-
}
|
|
644
|
-
}, {
|
|
645
|
-
key: "_getSelectedIndex",
|
|
646
|
-
value: function _getSelectedIndex(selected, data) {
|
|
647
|
-
return getSelectedIndex(selected, data);
|
|
648
|
-
}
|
|
649
|
-
}, {
|
|
650
|
-
key: "_getResetOption",
|
|
651
|
-
value: function _getResetOption() {
|
|
652
|
-
var _this2 = this;
|
|
653
|
-
var isOptionsSelected = Array.isArray(this.state.selected) && this.state.selected.length;
|
|
654
|
-
var reset = this.props.tags && typeof this.props.tags === 'object' ? this.props.tags.reset : null;
|
|
655
|
-
if (!isOptionsSelected || !reset) {
|
|
656
|
-
return null;
|
|
657
|
-
}
|
|
658
|
-
var resetHandler = function resetHandler(item, event) {
|
|
659
|
-
_this2.clear(event);
|
|
660
|
-
_this2.clearFilter();
|
|
661
|
-
_this2.props.onFilter('');
|
|
662
|
-
_this2.setState(function (prevState) {
|
|
663
|
-
return {
|
|
664
|
-
shownData: prevState.shownData.slice(reset.separator ? 2 : 1),
|
|
665
|
-
multipleMap: {}
|
|
666
|
-
};
|
|
667
|
-
});
|
|
668
|
-
_this2._redrawPopup();
|
|
669
|
-
};
|
|
670
|
-
return {
|
|
671
|
-
isResetItem: true,
|
|
672
|
-
separator: reset.separator,
|
|
673
|
-
key: reset.label,
|
|
674
|
-
rgItemType: List.ListProps.Type.CUSTOM,
|
|
675
|
-
template: /*#__PURE__*/React.createElement(Button, {
|
|
676
|
-
text: true,
|
|
677
|
-
className: modules_9d0de074.button,
|
|
678
|
-
"data-test": "ring-select-reset-tags-button",
|
|
679
|
-
height: ControlsHeight.S
|
|
680
|
-
}, reset.label),
|
|
681
|
-
glyph: reset.glyph,
|
|
682
|
-
onClick: resetHandler
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
}, {
|
|
686
|
-
key: "_prependResetOption",
|
|
687
|
-
value: function _prependResetOption(shownData) {
|
|
688
|
-
var resetOption = this._getResetOption();
|
|
689
|
-
if (resetOption) {
|
|
690
|
-
var resetItems = [resetOption];
|
|
691
|
-
if (resetOption.separator) {
|
|
692
|
-
resetItems.push({
|
|
693
|
-
rgItemType: List.ListProps.Type.SEPARATOR
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
return resetItems.concat(shownData);
|
|
697
|
-
}
|
|
698
|
-
return shownData;
|
|
699
|
-
}
|
|
700
|
-
}, {
|
|
701
|
-
key: "_renderPopup",
|
|
702
|
-
value: function _renderPopup() {
|
|
703
|
-
var _this3 = this;
|
|
704
|
-
var anchorElement = this.props.targetElement || this.node;
|
|
705
|
-
var _this$state2 = this.state,
|
|
706
|
-
showPopup = _this$state2.showPopup,
|
|
707
|
-
shownData = _this$state2.shownData;
|
|
708
|
-
var _shownData = this._prependResetOption(shownData);
|
|
709
|
-
return /*#__PURE__*/React.createElement(I18nContext.Consumer, null, function (_ref2) {
|
|
710
|
-
var translate = _ref2.translate;
|
|
711
|
-
var message;
|
|
712
|
-
if (_this3.props.loading) {
|
|
713
|
-
var _this3$props$loadingM;
|
|
714
|
-
message = (_this3$props$loadingM = _this3.props.loadingMessage) !== null && _this3$props$loadingM !== void 0 ? _this3$props$loadingM : translate('loading');
|
|
715
|
-
} else if (!shownData.length) {
|
|
716
|
-
var _this3$props$notFound;
|
|
717
|
-
message = (_this3$props$notFound = _this3.props.notFoundMessage) !== null && _this3$props$notFound !== void 0 ? _this3$props$notFound : translate('noOptionsFound');
|
|
718
|
-
}
|
|
719
|
-
return /*#__PURE__*/React.createElement(SelectPopup, {
|
|
720
|
-
data: _shownData,
|
|
721
|
-
message: message,
|
|
722
|
-
toolbar: showPopup && _this3.getToolbar(),
|
|
723
|
-
topbar: _this3.getTopbar(),
|
|
724
|
-
loading: _this3.props.loading,
|
|
725
|
-
activeIndex: _this3.state.selectedIndex,
|
|
726
|
-
hidden: !showPopup,
|
|
727
|
-
ref: _this3.popupRef,
|
|
728
|
-
maxHeight: _this3.props.maxHeight,
|
|
729
|
-
minWidth: _this3.props.minWidth,
|
|
730
|
-
directions: _this3.props.directions,
|
|
731
|
-
className: _this3.props.popupClassName,
|
|
732
|
-
style: _this3.props.popupStyle,
|
|
733
|
-
top: _this3.props.top,
|
|
734
|
-
left: _this3.props.left,
|
|
735
|
-
filter: _this3.isInputMode() ? false : _this3.props.filter // disable popup filter in INPUT mode
|
|
736
|
-
,
|
|
737
|
-
filterIcon: _this3.props.filterIcon,
|
|
738
|
-
filterRef: _this3.props.filterRef,
|
|
739
|
-
multiple: _this3.props.multiple,
|
|
740
|
-
filterValue: _this3.state.filterValue,
|
|
741
|
-
anchorElement: anchorElement,
|
|
742
|
-
onCloseAttempt: _this3._onCloseAttempt,
|
|
743
|
-
onOutsideClick: _this3.props.onOutsideClick,
|
|
744
|
-
onSelect: _this3._listSelectHandler,
|
|
745
|
-
onSelectAll: _this3._listSelectAllHandler,
|
|
746
|
-
onFilter: _this3._filterChangeHandler,
|
|
747
|
-
onClear: _this3.clearFilter,
|
|
748
|
-
onLoadMore: _this3.props.onLoadMore,
|
|
749
|
-
isInputMode: _this3.isInputMode(),
|
|
750
|
-
selected: _this3.state.selected,
|
|
751
|
-
tags: _this3.props.tags,
|
|
752
|
-
compact: _this3.props.compact,
|
|
753
|
-
renderOptimization: _this3.props.renderOptimization,
|
|
754
|
-
ringPopupTarget: _this3.props.ringPopupTarget,
|
|
755
|
-
disableMoveOverflow: _this3.props.disableMoveOverflow,
|
|
756
|
-
disableScrollToActive: _this3.props.disableScrollToActive,
|
|
757
|
-
dir: _this3.props.dir,
|
|
758
|
-
onEmptyPopupEnter: _this3.onEmptyPopupEnter,
|
|
759
|
-
listId: _this3.listId
|
|
760
|
-
});
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
}, {
|
|
764
|
-
key: "_showPopup",
|
|
765
|
-
value: function _showPopup() {
|
|
766
|
-
if (!this.node) {
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
var shownData = this.getListItems(this.filterValue());
|
|
770
|
-
this.setState({
|
|
771
|
-
showPopup: true,
|
|
772
|
-
shownData
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
}, {
|
|
776
|
-
key: "_hidePopup",
|
|
777
|
-
value: function _hidePopup(tryFocusAnchor) {
|
|
778
|
-
var _this4 = this;
|
|
779
|
-
if (this.node && this.state.showPopup) {
|
|
780
|
-
this.setState(function (prevState) {
|
|
781
|
-
return {
|
|
782
|
-
showPopup: false,
|
|
783
|
-
filterValue: _this4.props.allowAny ? prevState.filterValue : ''
|
|
784
|
-
};
|
|
785
|
-
});
|
|
786
|
-
if (tryFocusAnchor) {
|
|
787
|
-
this.focus();
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
}, {
|
|
792
|
-
key: "getToolbar",
|
|
793
|
-
value: function getToolbar() {
|
|
794
|
-
var _this$props2 = this.props,
|
|
795
|
-
hint = _this$props2.hint,
|
|
796
|
-
renderBottomToolbar = _this$props2.renderBottomToolbar;
|
|
797
|
-
var _ref3 = this.state.addButton || {},
|
|
798
|
-
prefix = _ref3.prefix,
|
|
799
|
-
label = _ref3.label,
|
|
800
|
-
delayed = _ref3.delayed;
|
|
801
|
-
var isToolbarHasElements = this.state.addButton || hint || renderBottomToolbar;
|
|
802
|
-
if (!isToolbarHasElements) {
|
|
803
|
-
return null;
|
|
804
|
-
}
|
|
805
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
806
|
-
className: classNames({
|
|
807
|
-
[modules_9d0de074.toolbar]: Boolean(this.state.addButton || renderBottomToolbar)
|
|
808
|
-
}),
|
|
809
|
-
"data-test": "ring-select-toolbar"
|
|
810
|
-
}, renderBottomToolbar && renderBottomToolbar(), this.state.addButton && /*#__PURE__*/React.createElement(Button, {
|
|
811
|
-
text: true,
|
|
812
|
-
delayed: delayed,
|
|
813
|
-
className: classNames(modules_9d0de074.button, modules_9d0de074.buttonSpaced),
|
|
814
|
-
onClick: this.addHandler,
|
|
815
|
-
"data-test": "ring-select-toolbar-button"
|
|
816
|
-
}, prefix ? "".concat(prefix, " ").concat(label) : label), hint && /*#__PURE__*/React.createElement(List.ListHint, {
|
|
817
|
-
label: hint,
|
|
818
|
-
"data-test": "ring-select-toolbar-hint"
|
|
819
|
-
}));
|
|
820
|
-
}
|
|
821
|
-
}, {
|
|
822
|
-
key: "getTopbar",
|
|
823
|
-
value: function getTopbar() {
|
|
824
|
-
var _this$props$renderTop, _this$props3;
|
|
825
|
-
return (_this$props$renderTop = (_this$props3 = this.props).renderTopToolbar) === null || _this$props$renderTop === void 0 ? void 0 : _this$props$renderTop.call(_this$props3);
|
|
826
|
-
}
|
|
827
|
-
}, {
|
|
828
|
-
key: "getFilterFn",
|
|
829
|
-
value: function getFilterFn() {
|
|
830
|
-
return _getFilterFn(this.props.filter);
|
|
831
|
-
}
|
|
832
|
-
}, {
|
|
833
|
-
key: "getListItems",
|
|
834
|
-
value: function getListItems(rawFilterString, data) {
|
|
835
|
-
var _getListItems2 = _getListItems(this.props, this.state, rawFilterString, data),
|
|
836
|
-
filteredData = _getListItems2.filteredData,
|
|
837
|
-
addButton = _getListItems2.addButton;
|
|
838
|
-
this.setState({
|
|
839
|
-
addButton
|
|
840
|
-
});
|
|
841
|
-
return filteredData;
|
|
842
|
-
}
|
|
843
|
-
}, {
|
|
844
|
-
key: "filterValue",
|
|
845
|
-
value: function filterValue(setValue) {
|
|
846
|
-
if (typeof setValue === 'string' || typeof setValue === 'number') {
|
|
847
|
-
this.setState({
|
|
848
|
-
filterValue: setValue
|
|
849
|
-
});
|
|
850
|
-
return undefined;
|
|
851
|
-
} else {
|
|
852
|
-
return this.state.filterValue;
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}, {
|
|
856
|
-
key: "isInputMode",
|
|
857
|
-
value: function isInputMode() {
|
|
858
|
-
return _isInputMode(this.props.type);
|
|
859
|
-
}
|
|
860
|
-
}, {
|
|
861
|
-
key: "_rebuildMultipleMap",
|
|
862
|
-
value: function _rebuildMultipleMap(selected) {
|
|
863
|
-
if (Array.isArray(selected)) {
|
|
864
|
-
this.setState({
|
|
865
|
-
multipleMap: buildMultipleMap(selected)
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
}, {
|
|
870
|
-
key: "_selectionIsEmpty",
|
|
871
|
-
value: function _selectionIsEmpty() {
|
|
872
|
-
return Array.isArray(this.state.selected) && !this.state.selected.length || !this.state.selected;
|
|
873
|
-
}
|
|
874
|
-
}, {
|
|
875
|
-
key: "_getLabel",
|
|
876
|
-
value: function _getLabel() {
|
|
877
|
-
var _ref4, _this$props$label;
|
|
878
|
-
return (_ref4 = (_this$props$label = this.props.label) !== null && _this$props$label !== void 0 ? _this$props$label : this.props.selectedLabel) !== null && _ref4 !== void 0 ? _ref4 : 'Select an option';
|
|
879
|
-
}
|
|
880
|
-
}, {
|
|
881
|
-
key: "_getPlaceholder",
|
|
882
|
-
value: function _getPlaceholder() {
|
|
883
|
-
if (this._selectionIsEmpty()) {
|
|
884
|
-
var _this$props$label2;
|
|
885
|
-
return (_this$props$label2 = this.props.label) !== null && _this$props$label2 !== void 0 ? _this$props$label2 : 'Select an option';
|
|
886
|
-
}
|
|
887
|
-
return this._getSelectedString();
|
|
888
|
-
}
|
|
889
|
-
}, {
|
|
890
|
-
key: "_getSelectedString",
|
|
891
|
-
value: function _getSelectedString() {
|
|
892
|
-
if (Array.isArray(this.state.selected)) {
|
|
893
|
-
var labels = [];
|
|
894
|
-
for (var i = 0; i < this.state.selected.length; i++) {
|
|
895
|
-
labels.push(getItemLabel(this.state.selected[i]));
|
|
896
|
-
}
|
|
897
|
-
return labels.filter(Boolean).join(', ');
|
|
898
|
-
} else {
|
|
899
|
-
return this.state.selected != null ? getItemLabel(this.state.selected) : null;
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
}, {
|
|
903
|
-
key: "_getIcons",
|
|
904
|
-
value: function _getIcons() {
|
|
905
|
-
var selected = this.state.selected;
|
|
906
|
-
var _this$props4 = this.props,
|
|
907
|
-
disabled = _this$props4.disabled,
|
|
908
|
-
clear = _this$props4.clear,
|
|
909
|
-
hideArrow = _this$props4.hideArrow;
|
|
910
|
-
var icons = [];
|
|
911
|
-
var height = this.props.height || this.context;
|
|
912
|
-
if (!Array.isArray(selected) && selected !== null && selected !== void 0 && selected.icon) {
|
|
913
|
-
icons.push( /*#__PURE__*/React.createElement("button", {
|
|
914
|
-
title: "Toggle options popup",
|
|
915
|
-
type: "button",
|
|
916
|
-
className: modules_9d0de074.selectedIcon,
|
|
917
|
-
key: "selected",
|
|
918
|
-
disabled: this.props.disabled,
|
|
919
|
-
onClick: this._clickHandler,
|
|
920
|
-
style: {
|
|
921
|
-
backgroundImage: "url(".concat(selected.icon, ")")
|
|
922
|
-
}
|
|
923
|
-
}));
|
|
924
|
-
}
|
|
925
|
-
if (clear && !disabled && !this._selectionIsEmpty()) {
|
|
926
|
-
icons.push( /*#__PURE__*/React.createElement(Button, {
|
|
927
|
-
title: "Clear selection",
|
|
928
|
-
"data-test": "ring-clear-select",
|
|
929
|
-
className: modules_9d0de074.clearIcon,
|
|
930
|
-
key: "close",
|
|
931
|
-
disabled: this.props.disabled,
|
|
932
|
-
onClick: this.clear,
|
|
933
|
-
height: height,
|
|
934
|
-
icon: closeIcon
|
|
935
|
-
}));
|
|
936
|
-
}
|
|
937
|
-
if (!hideArrow) {
|
|
938
|
-
icons.push( /*#__PURE__*/React.createElement(Button, {
|
|
939
|
-
title: "Toggle options popup",
|
|
940
|
-
className: modules_9d0de074.chevron,
|
|
941
|
-
iconClassName: modules_9d0de074.chevronIcon,
|
|
942
|
-
icon: chevronDownIcon,
|
|
943
|
-
key: "hide",
|
|
944
|
-
disabled: this.props.disabled,
|
|
945
|
-
height: height,
|
|
946
|
-
onClick: this._clickHandler
|
|
947
|
-
}));
|
|
948
|
-
}
|
|
949
|
-
return icons;
|
|
950
|
-
}
|
|
951
|
-
}, {
|
|
952
|
-
key: "_getAvatar",
|
|
953
|
-
value: function _getAvatar() {
|
|
954
|
-
var _this$state$selected, _this$state$selected2;
|
|
955
|
-
return !Array.isArray(this.state.selected) && (((_this$state$selected = this.state.selected) === null || _this$state$selected === void 0 ? void 0 : _this$state$selected.avatar) || ((_this$state$selected2 = this.state.selected) === null || _this$state$selected2 === void 0 ? void 0 : _this$state$selected2.showGeneratedAvatar)) && /*#__PURE__*/React.createElement(Avatar, {
|
|
956
|
-
className: modules_9d0de074.avatar,
|
|
957
|
-
url: this.state.selected.avatar,
|
|
958
|
-
username: this.state.selected.username,
|
|
959
|
-
size: Size$1.Size20
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
}, {
|
|
963
|
-
key: "getShortcutsMap",
|
|
964
|
-
value: function getShortcutsMap() {
|
|
965
|
-
return {
|
|
966
|
-
enter: this._onEnter,
|
|
967
|
-
esc: this._onEsc,
|
|
968
|
-
up: this._inputShortcutHandler,
|
|
969
|
-
down: this._inputShortcutHandler,
|
|
970
|
-
right: noop,
|
|
971
|
-
left: noop,
|
|
972
|
-
'shift+up': noop,
|
|
973
|
-
'shift+down': noop,
|
|
974
|
-
space: noop
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
}, {
|
|
978
|
-
key: "renderSelect",
|
|
979
|
-
value: function renderSelect(activeItemId) {
|
|
980
|
-
var _this$props$label3, _this$props$label4, _this$_popup5, _this$props$buttonCla;
|
|
981
|
-
var dataTest = this.props['data-test'];
|
|
982
|
-
var selectedLabel = this.props.selectedLabel;
|
|
983
|
-
var shortcutsEnabled = this.state.shortcutsEnabled;
|
|
984
|
-
var classes = classNames(modules_9d0de074.select, 'ring-js-shortcuts', this.props.className, modules_9d0de074["height".concat(this.props.height || this.context)], {
|
|
985
|
-
[modules_9d0de074["size".concat(this.props.size)]]: this.props.type !== Type.INLINE,
|
|
986
|
-
[modules_9d0de074.disabled]: this.props.disabled
|
|
987
|
-
});
|
|
988
|
-
var icons = this._getIcons();
|
|
989
|
-
var style = getStyle(icons.length);
|
|
990
|
-
var iconsNode = /*#__PURE__*/React.createElement("div", {
|
|
991
|
-
className: modules_9d0de074.icons
|
|
992
|
-
}, icons);
|
|
993
|
-
var ariaProps = this.state.showPopup ? {
|
|
994
|
-
'aria-owns': this.listId,
|
|
995
|
-
'aria-activedescendant': activeItemId,
|
|
996
|
-
'aria-label': (_this$props$label3 = this.props.label) !== null && _this$props$label3 !== void 0 ? _this$props$label3 : undefined
|
|
997
|
-
} : {
|
|
998
|
-
'aria-label': (_this$props$label4 = this.props.label) !== null && _this$props$label4 !== void 0 ? _this$props$label4 : undefined
|
|
999
|
-
};
|
|
1000
|
-
switch (this.props.type) {
|
|
1001
|
-
case Type.INPUT_WITHOUT_CONTROLS:
|
|
1002
|
-
case Type.INPUT:
|
|
1003
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1004
|
-
ref: this.nodeRef,
|
|
1005
|
-
className: classNames(classes, modules_9d0de074.inputMode),
|
|
1006
|
-
"data-test": joinDataTestAttributes('ring-select', dataTest)
|
|
1007
|
-
}, shortcutsEnabled && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
1008
|
-
map: this.getShortcutsMap(),
|
|
1009
|
-
scope: this.shortcutsScope
|
|
1010
|
-
}), /*#__PURE__*/React.createElement(Input, _extends({}, ariaProps, {
|
|
1011
|
-
height: this.props.height,
|
|
1012
|
-
autoComplete: "off",
|
|
1013
|
-
id: this.props.id,
|
|
1014
|
-
onClick: this._clickHandler,
|
|
1015
|
-
inputRef: composeRefs(this.filterRef, this.props.filterRef),
|
|
1016
|
-
disabled: this.props.disabled,
|
|
1017
|
-
value: this.state.filterValue,
|
|
1018
|
-
borderless: this.props.type === Type.INPUT_WITHOUT_CONTROLS,
|
|
1019
|
-
style: style,
|
|
1020
|
-
size: Size.FULL,
|
|
1021
|
-
onChange: this._filterChangeHandler,
|
|
1022
|
-
onFocus: this._focusHandler,
|
|
1023
|
-
onBlur: this._blurHandler
|
|
1024
|
-
// Input with error style without description
|
|
1025
|
-
,
|
|
1026
|
-
error: this.props.error != null ? '' : null,
|
|
1027
|
-
label: this.props.type === Type.INPUT ? this._getLabel() : null,
|
|
1028
|
-
placeholder: this.props.inputPlaceholder,
|
|
1029
|
-
onKeyDown: this.props.onKeyDown,
|
|
1030
|
-
"data-test": "ring-select__focus",
|
|
1031
|
-
enableShortcuts: shortcutsEnabled ? Object.keys(_objectSpread2(_objectSpread2({}, this.getShortcutsMap()), (_this$_popup5 = this._popup) === null || _this$_popup5 === void 0 || (_this$_popup5 = _this$_popup5.list) === null || _this$_popup5 === void 0 ? void 0 : _this$_popup5.shortcutsMap)) : undefined,
|
|
1032
|
-
icon: this.props.filterIcon,
|
|
1033
|
-
afterInput: this.props.type === Type.INPUT && iconsNode
|
|
1034
|
-
})), this._renderPopup()), this.props.error && /*#__PURE__*/React.createElement("div", {
|
|
1035
|
-
className: classNames(modules_88cfaf40.errorText, modules_88cfaf40["size".concat(this.props.size)])
|
|
1036
|
-
}, this.props.error));
|
|
1037
|
-
case Type.BUTTON:
|
|
1038
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
1039
|
-
ref: this.nodeRef,
|
|
1040
|
-
className: classNames(classes, modules_9d0de074.buttonMode),
|
|
1041
|
-
"data-test": joinDataTestAttributes('ring-select', dataTest)
|
|
1042
|
-
}, selectedLabel && /*#__PURE__*/React.createElement(ControlLabel, {
|
|
1043
|
-
type: this.props.labelType,
|
|
1044
|
-
disabled: this.props.disabled,
|
|
1045
|
-
htmlFor: this.props.id
|
|
1046
|
-
}, selectedLabel), shortcutsEnabled && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
1047
|
-
map: this.getShortcutsMap(),
|
|
1048
|
-
scope: this.shortcutsScope
|
|
1049
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
1050
|
-
className: modules_9d0de074.buttonContainer
|
|
1051
|
-
}, /*#__PURE__*/React.createElement(Button, _extends({}, ariaProps, {
|
|
1052
|
-
height: this.props.height,
|
|
1053
|
-
id: this.props.id,
|
|
1054
|
-
onClick: this._clickHandler,
|
|
1055
|
-
className: classNames(this.props.buttonClassName, modules_9d0de074.buttonValue, {
|
|
1056
|
-
[modules_9d0de074.buttonValueOpen]: this.state.showPopup,
|
|
1057
|
-
[modules_9d0de074.buttonValueEmpty]: this._selectionIsEmpty()
|
|
1058
|
-
}),
|
|
1059
|
-
disabled: this.props.disabled,
|
|
1060
|
-
style: style,
|
|
1061
|
-
"data-test": "ring-select__button ring-select__focus"
|
|
1062
|
-
}), this._getAvatar(), this._getPlaceholder()), iconsNode), this._renderPopup());
|
|
1063
|
-
case Type.INLINE:
|
|
1064
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
1065
|
-
className: classes,
|
|
1066
|
-
ref: this.nodeRef,
|
|
1067
|
-
"data-test": joinDataTestAttributes('ring-select', dataTest)
|
|
1068
|
-
}, shortcutsEnabled && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
1069
|
-
map: this.getShortcutsMap(),
|
|
1070
|
-
scope: this.shortcutsScope
|
|
1071
|
-
}), /*#__PURE__*/React.createElement(Anchor, _extends({}, ariaProps, {
|
|
1072
|
-
className: (_this$props$buttonCla = this.props.buttonClassName) !== null && _this$props$buttonCla !== void 0 ? _this$props$buttonCla : undefined,
|
|
1073
|
-
id: this.props.id,
|
|
1074
|
-
onClick: this._clickHandler,
|
|
1075
|
-
"data-test": "ring-select__focus",
|
|
1076
|
-
disabled: this.props.disabled,
|
|
1077
|
-
active: this.state.showPopup
|
|
1078
|
-
}), this._getPlaceholder()), this._renderPopup());
|
|
1079
|
-
default:
|
|
1080
|
-
if (this.props.customAnchor) {
|
|
1081
|
-
return /*#__PURE__*/React.createElement(Fragment, null, shortcutsEnabled && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
1082
|
-
map: this.getShortcutsMap(),
|
|
1083
|
-
scope: this.shortcutsScope
|
|
1084
|
-
}), this.props.customAnchor({
|
|
1085
|
-
wrapperProps: {
|
|
1086
|
-
ref: this.nodeRef,
|
|
1087
|
-
'data-test': joinDataTestAttributes('ring-select', dataTest)
|
|
1088
|
-
},
|
|
1089
|
-
buttonProps: _objectSpread2(_objectSpread2({}, ariaProps), {}, {
|
|
1090
|
-
id: this.props.id,
|
|
1091
|
-
onClick: this._clickHandler,
|
|
1092
|
-
disabled: this.props.disabled,
|
|
1093
|
-
children: this._getPlaceholder(),
|
|
1094
|
-
'data-test': 'ring-select__focus'
|
|
1095
|
-
}),
|
|
1096
|
-
popup: this._renderPopup()
|
|
1097
|
-
}));
|
|
1098
|
-
}
|
|
1099
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
1100
|
-
id: this.props.id,
|
|
1101
|
-
ref: this.nodeRef,
|
|
1102
|
-
"data-test": "ring-select"
|
|
1103
|
-
}, this._renderPopup());
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
}, {
|
|
1107
|
-
key: "render",
|
|
1108
|
-
value: function render() {
|
|
1109
|
-
var _this5 = this;
|
|
1110
|
-
return /*#__PURE__*/React.createElement(ActiveItemContext.Provider, null, /*#__PURE__*/React.createElement(ActiveItemContext.ValueContext.Consumer, null, function (activeItemId) {
|
|
1111
|
-
return _this5.renderSelect(activeItemId);
|
|
1112
|
-
}));
|
|
1113
|
-
}
|
|
1114
|
-
}], [{
|
|
1115
|
-
key: "getDerivedStateFromProps",
|
|
1116
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
1117
|
-
var multiple = nextProps.multiple,
|
|
1118
|
-
data = nextProps.data,
|
|
1119
|
-
type = nextProps.type;
|
|
1120
|
-
var prevSelected = prevState.prevSelected,
|
|
1121
|
-
prevData = prevState.prevData,
|
|
1122
|
-
prevMultiple = prevState.prevMultiple,
|
|
1123
|
-
filterValue = prevState.filterValue;
|
|
1124
|
-
var nextState = {
|
|
1125
|
-
prevData: data,
|
|
1126
|
-
prevSelected: nextProps.selected,
|
|
1127
|
-
prevMultiple: multiple
|
|
1128
|
-
};
|
|
1129
|
-
if ('data' in nextProps && data !== prevData) {
|
|
1130
|
-
var _getListItems3 = _getListItems(nextProps, prevState, filterValue, data),
|
|
1131
|
-
filteredData = _getListItems3.filteredData,
|
|
1132
|
-
addButton = _getListItems3.addButton;
|
|
1133
|
-
Object.assign(nextState, {
|
|
1134
|
-
shownData: filteredData,
|
|
1135
|
-
addButton
|
|
1136
|
-
});
|
|
1137
|
-
if (prevState.selected) {
|
|
1138
|
-
Object.assign(nextState, {
|
|
1139
|
-
selectedIndex: getSelectedIndex(prevState.selected, data),
|
|
1140
|
-
filterValue: _getValueForFilter(prevState.selected, type, filterValue)
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
if ('selected' in nextProps && nextProps.selected !== prevSelected) {
|
|
1145
|
-
var _selected = nextProps.selected || (multiple ? [] : null);
|
|
1146
|
-
var selectedIndex = getSelectedIndex(_selected, data || prevData);
|
|
1147
|
-
Object.assign(nextState, {
|
|
1148
|
-
selected: _selected,
|
|
1149
|
-
filterValue: _getValueForFilter(_selected, type, filterValue)
|
|
1150
|
-
});
|
|
1151
|
-
if (!Array.isArray(prevSelected) || !Array.isArray(_selected) || !isSameSelected(prevSelected, _selected)) {
|
|
1152
|
-
Object.assign(nextState, {
|
|
1153
|
-
selectedIndex
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
if (prevMultiple !== multiple && !deepEqual(prevMultiple, multiple)) {
|
|
1158
|
-
nextState.selected = multiple ? [] : null;
|
|
1159
|
-
}
|
|
1160
|
-
if (multiple && !nextState.selected) {
|
|
1161
|
-
nextState.selected = prevState.selected;
|
|
1162
|
-
}
|
|
1163
|
-
var _prevState$nextState = _objectSpread2(_objectSpread2({}, prevState), nextState),
|
|
1164
|
-
selected = _prevState$nextState.selected;
|
|
1165
|
-
if (selected && Array.isArray(selected)) {
|
|
1166
|
-
nextState.multipleMap = buildMultipleMap(selected);
|
|
1167
|
-
var _getListItems4 = _getListItems(nextProps, nextState, filterValue, data),
|
|
1168
|
-
_filteredData = _getListItems4.filteredData,
|
|
1169
|
-
_addButton = _getListItems4.addButton;
|
|
1170
|
-
Object.assign(nextState, {
|
|
1171
|
-
shownData: _filteredData,
|
|
1172
|
-
addButton: _addButton
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
return nextState;
|
|
1176
|
-
}
|
|
1177
|
-
}]);
|
|
1178
|
-
return Select;
|
|
1179
|
-
}(Component);
|
|
1180
|
-
_defineProperty(Select, "defaultProps", {
|
|
1181
|
-
data: [],
|
|
1182
|
-
filter: false,
|
|
1183
|
-
// enable filter (not in INPUT modes)
|
|
1184
|
-
filterIcon: null,
|
|
1185
|
-
filterRef: noop,
|
|
1186
|
-
multiple: false,
|
|
1187
|
-
// multiple can be an object - see demo for more information
|
|
1188
|
-
clear: false,
|
|
1189
|
-
// enable clear button that clears the "selected" state
|
|
1190
|
-
loading: false,
|
|
1191
|
-
// show a loading indicator while data is loading
|
|
1192
|
-
disabled: false,
|
|
1193
|
-
// disable select
|
|
1194
|
-
type: Type.BUTTON,
|
|
1195
|
-
size: Size.M,
|
|
1196
|
-
targetElement: null,
|
|
1197
|
-
// element to bind the popup to (select BUTTON or INPUT by default)
|
|
1198
|
-
hideSelected: false,
|
|
1199
|
-
// INPUT mode: clears the input after an option is selected (useful when the selection is displayed in some custom way elsewhere)
|
|
1200
|
-
allowAny: false,
|
|
1201
|
-
// INPUT mode: allows any value to be entered
|
|
1202
|
-
hideArrow: false,
|
|
1203
|
-
// hide dropdown arrow icon
|
|
1204
|
-
showPopup: false,
|
|
1205
|
-
maxHeight: 600,
|
|
1206
|
-
// height of the options list, including the filter and the 'Add' button
|
|
1207
|
-
directions: [Popup.PopupProps.Directions.BOTTOM_RIGHT, Popup.PopupProps.Directions.BOTTOM_LEFT, Popup.PopupProps.Directions.TOP_LEFT, Popup.PopupProps.Directions.TOP_RIGHT],
|
|
1208
|
-
selected: null,
|
|
1209
|
-
// current selection (item / array of items)
|
|
1210
|
-
label: null,
|
|
1211
|
-
// BUTTON or INPUT label (nothing selected)
|
|
1212
|
-
selectedLabel: null,
|
|
1213
|
-
// BUTTON or INPUT label (something selected)
|
|
1214
|
-
inputPlaceholder: '',
|
|
1215
|
-
// Placeholder for input modes
|
|
1216
|
-
hint: null,
|
|
1217
|
-
// hint text to display under the list
|
|
1218
|
-
shortcutsEnabled: false,
|
|
1219
|
-
onBeforeOpen: noop,
|
|
1220
|
-
onLoadMore: noop,
|
|
1221
|
-
onOpen: noop,
|
|
1222
|
-
onClose: noop,
|
|
1223
|
-
onFilter: noop,
|
|
1224
|
-
// search string as first argument
|
|
1225
|
-
onFocus: noop,
|
|
1226
|
-
onBlur: noop,
|
|
1227
|
-
onKeyDown: noop,
|
|
1228
|
-
onSelect: noop,
|
|
1229
|
-
// single + multi
|
|
1230
|
-
onDeselect: noop,
|
|
1231
|
-
// multi
|
|
1232
|
-
onOutsideClick: noop,
|
|
1233
|
-
// multi
|
|
1234
|
-
onChange: noop,
|
|
1235
|
-
// multi
|
|
1236
|
-
onAdd: noop,
|
|
1237
|
-
// search string as first argument
|
|
1238
|
-
onDone: noop,
|
|
1239
|
-
onReset: noop,
|
|
1240
|
-
tags: null,
|
|
1241
|
-
ringPopupTarget: null,
|
|
1242
|
-
dir: 'ltr'
|
|
1243
|
-
});
|
|
1244
|
-
_defineProperty(Select, "contextType", ControlsHeightContext);
|
|
1245
|
-
_defineProperty(Select, "Type", Type);
|
|
1246
|
-
_defineProperty(Select, "Size", Size);
|
|
1247
|
-
Select.propTypes = {
|
|
1248
|
-
className: PropTypes.string,
|
|
1249
|
-
buttonClassName: PropTypes.string,
|
|
1250
|
-
id: PropTypes.string,
|
|
1251
|
-
multiple: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
|
|
1252
|
-
allowAny: PropTypes.bool,
|
|
1253
|
-
filter: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
|
|
1254
|
-
filterIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
|
1255
|
-
filterRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLInputElement))]),
|
|
1256
|
-
getInitial: PropTypes.func,
|
|
1257
|
-
onClose: PropTypes.func,
|
|
1258
|
-
onOpen: PropTypes.func,
|
|
1259
|
-
onDone: PropTypes.func,
|
|
1260
|
-
onFilter: PropTypes.func,
|
|
1261
|
-
onChange: PropTypes.func,
|
|
1262
|
-
onReset: PropTypes.func,
|
|
1263
|
-
onLoadMore: PropTypes.func,
|
|
1264
|
-
onAdd: PropTypes.func,
|
|
1265
|
-
onBeforeOpen: PropTypes.func,
|
|
1266
|
-
onSelect: PropTypes.func,
|
|
1267
|
-
onDeselect: PropTypes.func,
|
|
1268
|
-
onOutsideClick: PropTypes.func,
|
|
1269
|
-
onFocus: PropTypes.func,
|
|
1270
|
-
onBlur: PropTypes.func,
|
|
1271
|
-
onKeyDown: PropTypes.func,
|
|
1272
|
-
selected: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
1273
|
-
data: PropTypes.array,
|
|
1274
|
-
tags: PropTypes.object,
|
|
1275
|
-
targetElement: PropTypes.object,
|
|
1276
|
-
loading: PropTypes.bool,
|
|
1277
|
-
loadingMessage: PropTypes.string,
|
|
1278
|
-
notFoundMessage: PropTypes.string,
|
|
1279
|
-
maxHeight: PropTypes.number,
|
|
1280
|
-
minWidth: PropTypes.number,
|
|
1281
|
-
directions: PropTypes.array,
|
|
1282
|
-
popupClassName: PropTypes.string,
|
|
1283
|
-
popupStyle: PropTypes.object,
|
|
1284
|
-
top: PropTypes.number,
|
|
1285
|
-
left: PropTypes.number,
|
|
1286
|
-
renderOptimization: PropTypes.bool,
|
|
1287
|
-
ringPopupTarget: PropTypes.string,
|
|
1288
|
-
error: PropTypes.string,
|
|
1289
|
-
hint: List.ListHint.propTypes.label,
|
|
1290
|
-
add: PropTypes.object,
|
|
1291
|
-
type: PropTypes.oneOf(Object.values(Type)),
|
|
1292
|
-
disabled: PropTypes.bool,
|
|
1293
|
-
hideSelected: PropTypes.bool,
|
|
1294
|
-
label: PropTypes.string,
|
|
1295
|
-
selectedLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
|
1296
|
-
inputPlaceholder: PropTypes.string,
|
|
1297
|
-
clear: PropTypes.bool,
|
|
1298
|
-
hideArrow: PropTypes.bool,
|
|
1299
|
-
showPopup: PropTypes.bool,
|
|
1300
|
-
tryKeepOpen: PropTypes.bool,
|
|
1301
|
-
compact: PropTypes.bool,
|
|
1302
|
-
size: PropTypes.oneOf(Object.values(Size)),
|
|
1303
|
-
customAnchor: PropTypes.func,
|
|
1304
|
-
disableMoveOverflow: PropTypes.bool,
|
|
1305
|
-
disableScrollToActive: PropTypes.bool,
|
|
1306
|
-
dir: PropTypes.oneOf(['ltr', 'rtl']),
|
|
1307
|
-
'data-test': PropTypes.string
|
|
1308
|
-
};
|
|
1309
|
-
var RerenderableSelect = rerenderHOC(Select);
|
|
1310
|
-
|
|
1311
|
-
export { RerenderableSelect, Type, Select as default };
|