@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
|
@@ -1,1099 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, l as _toConsumableArray, n as _get, o as _getPrototypeOf, e as _objectWithoutProperties, d as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
3
|
-
import 'core-js/modules/es.string.replace.js';
|
|
4
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
5
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
6
|
-
import 'core-js/modules/es.array.filter.js';
|
|
7
|
-
import 'core-js/modules/es.array.splice.js';
|
|
8
|
-
import 'core-js/modules/es.promise.js';
|
|
9
|
-
import 'core-js/modules/es.symbol.js';
|
|
10
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
11
|
-
import 'core-js/modules/es.array.concat.js';
|
|
12
|
-
import 'core-js/modules/es.array.map.js';
|
|
13
|
-
import React, { Component } from 'react';
|
|
14
|
-
import PropTypes from 'prop-types';
|
|
15
|
-
import debounce from 'just-debounce-it';
|
|
16
|
-
import classNames from 'classnames';
|
|
17
|
-
import deepEqual from 'deep-equal';
|
|
18
|
-
import searchIcon from '@jetbrains/icons/search';
|
|
19
|
-
import closeIcon from '@jetbrains/icons/close-12px';
|
|
20
|
-
import getUID from '../global/get-uid.js';
|
|
21
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
|
22
|
-
import { preventDefault, getRect } from '../global/dom.js';
|
|
23
|
-
import Caret from '../caret/caret.js';
|
|
24
|
-
import ContentEditable from '../contenteditable/contenteditable.js';
|
|
25
|
-
import PopupMenu from '../popup-menu/popup-menu.js';
|
|
26
|
-
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
27
|
-
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
28
|
-
import rerenderHOC from '../global/rerender-hoc.js';
|
|
29
|
-
import { Button } from '../button/button.js';
|
|
30
|
-
import Icon from '../icon/icon.js';
|
|
31
|
-
import { ControlsHeightContext, ControlsHeight } from '../global/controls-height.js';
|
|
32
|
-
import { Size } from '../input/input.js';
|
|
33
|
-
import { m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
34
|
-
import { I18nContext } from '../i18n/i18n-context.js';
|
|
35
|
-
import { Q as QueryAssistSuggestions, m as modules_da7ab055 } from '../_helpers/query-assist__suggestions.js';
|
|
36
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
37
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
38
|
-
import 'core-js/modules/es.object.entries.js';
|
|
39
|
-
import 'core-js/modules/es.string.split.js';
|
|
40
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
41
|
-
import 'core-js/modules/es.set.js';
|
|
42
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
43
|
-
import 'react-dom/server';
|
|
44
|
-
import '../popup/popup.js';
|
|
45
|
-
import 'react-dom';
|
|
46
|
-
import '../global/schedule-raf.js';
|
|
47
|
-
import '../tab-trap/tab-trap.js';
|
|
48
|
-
import '../popup/position.js';
|
|
49
|
-
import 'core-js/modules/es.array.includes.js';
|
|
50
|
-
import 'core-js/modules/es.string.includes.js';
|
|
51
|
-
import 'core-js/modules/es.array.sort.js';
|
|
52
|
-
import '../popup/popup.consts.js';
|
|
53
|
-
import '../popup/popup.target.js';
|
|
54
|
-
import '../list/list.js';
|
|
55
|
-
import 'react-virtualized/dist/es/List';
|
|
56
|
-
import 'react-virtualized/dist/es/AutoSizer';
|
|
57
|
-
import 'react-virtualized/dist/es/WindowScroller';
|
|
58
|
-
import 'react-virtualized/dist/es/CellMeasurer';
|
|
59
|
-
import 'util-deprecate';
|
|
60
|
-
import 'memoize-one';
|
|
61
|
-
import '../global/memoize.js';
|
|
62
|
-
import 'core-js/modules/es.map.js';
|
|
63
|
-
import 'core-js/modules/es.weak-map.js';
|
|
64
|
-
import '../global/create-stateful-context.js';
|
|
65
|
-
import '../list/list__link.js';
|
|
66
|
-
import '../link/link.js';
|
|
67
|
-
import '../link/clickableLink.js';
|
|
68
|
-
import '../_helpers/link.js';
|
|
69
|
-
import '../_helpers/list.js';
|
|
70
|
-
import '../list/list__item.js';
|
|
71
|
-
import '../avatar/avatar.js';
|
|
72
|
-
import '../global/url.js';
|
|
73
|
-
import 'core-js/modules/es.string.match.js';
|
|
74
|
-
import '../avatar/fallback-avatar.js';
|
|
75
|
-
import 'core-js/modules/es.array.slice.js';
|
|
76
|
-
import '../checkbox/checkbox.js';
|
|
77
|
-
import '@jetbrains/icons/checkmark-14px';
|
|
78
|
-
import '@jetbrains/icons/remove-14px';
|
|
79
|
-
import '../global/prop-types.js';
|
|
80
|
-
import '../global/composeRefs.js';
|
|
81
|
-
import '../_helpers/checkbox.js';
|
|
82
|
-
import '../icon/icon__constants.js';
|
|
83
|
-
import '../_helpers/icon.js';
|
|
84
|
-
import '../icon/icon__svg.js';
|
|
85
|
-
import 'core-js/modules/es.string.starts-with.js';
|
|
86
|
-
import '../list/list__custom.js';
|
|
87
|
-
import '../global/get-event-key.js';
|
|
88
|
-
import '../list/list__title.js';
|
|
89
|
-
import '../list/list__separator.js';
|
|
90
|
-
import '../list/list__hint.js';
|
|
91
|
-
import '../list/consts.js';
|
|
92
|
-
import '../shortcuts/core.js';
|
|
93
|
-
import 'combokeys';
|
|
94
|
-
import '../global/sniffer.js';
|
|
95
|
-
import 'sniffr';
|
|
96
|
-
import '../_helpers/loader-inline.js';
|
|
97
|
-
import '../global/react-render-adapter.js';
|
|
98
|
-
import '@jetbrains/icons/chevron-10px';
|
|
99
|
-
import '../_helpers/button__classes.js';
|
|
100
|
-
import 'core-js/modules/es.object.values.js';
|
|
101
|
-
import '../control-label/control-label.js';
|
|
102
|
-
import '../_helpers/control-label.js';
|
|
103
|
-
import '../i18n/i18n.js';
|
|
104
|
-
|
|
105
|
-
var _excluded = ["suggestions"];
|
|
106
|
-
var POPUP_COMPENSATION = PopupMenu.ListProps.Dimension.ITEM_PADDING + PopupMenu.PopupProps.Dimension.BORDER_WIDTH;
|
|
107
|
-
var ngModelStateField = 'query';
|
|
108
|
-
function noop() {}
|
|
109
|
-
function cleanText(text) {
|
|
110
|
-
return text.replace(/([\n\r])+/g, ' ');
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* @name Query Assist
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* ## Data source function
|
|
117
|
-
|
|
118
|
-
Component class calls a data source function when user input happens and passes an object with fields \`caret\`, \`focus\` and \`query\` as the only argument.
|
|
119
|
-
The function must return an object with the fields described below. The object can be optionally wrapped in a Promise.
|
|
120
|
-
|
|
121
|
-
### Return object fields
|
|
122
|
-
|
|
123
|
-
\`caret\` and \`query\` should just return server values provided to data source function.
|
|
124
|
-
These fields allow the Query Assist component to recognise and drop earlier responses from the server.
|
|
125
|
-
|
|
126
|
-
+ __caret__ (\`string=0\`) Caret from request
|
|
127
|
-
+ __query__ (\`string=''\`) Query from request
|
|
128
|
-
+ __styleRanges__ (\`Array<suggestion>=\`) Array of \`styleRange\` objects, used to highlight the request in the input field
|
|
129
|
-
+ __suggestions__ (\`Array<styleRange>\`) Array of \`suggestion\` objects to show.
|
|
130
|
-
|
|
131
|
-
### **styleRange** object fields
|
|
132
|
-
|
|
133
|
-
start \`number\` Range start (in characters)
|
|
134
|
-
length \`number\` Range length (in characters)
|
|
135
|
-
style \`string\` Style of the range. Possible values: \`text\`, \`field_value\`, \`field_name\`, \`operator\`
|
|
136
|
-
|
|
137
|
-
### **suggestion** object fields
|
|
138
|
-
|
|
139
|
-
+ __prefix__ \`string=\` Suggestion option prefix
|
|
140
|
-
+ __option__ \`string\` Suggestion option
|
|
141
|
-
+ __suffix__ \`string=\` Suggestion option suffix
|
|
142
|
-
+ __description__ \`string=\` Suggestion option description. Is not visible when a group is set
|
|
143
|
-
+ __matchingStart__ \`number\` (required when matchingEnd is set) Start of the highlighted part of an option in the suggestions list (in characters)
|
|
144
|
-
+ __matchingEnd__ \`number\` (required when matchingEnd is set) End of the highlighted part of an option in the suggestions list (in characters)
|
|
145
|
-
+ __caret__ \`number\` Caret position after option completion (in characters)
|
|
146
|
-
+ __completionStart__ \`number\` Where to start insertion (or replacement, when completing with the \`Tab\` key) of the completion option (in characters)
|
|
147
|
-
+ __completionEnd__ \`number\` Where to end insertion of the completion option (in characters)
|
|
148
|
-
+ __group__ \`string=\` Group title. Options with the same title are grouped under it
|
|
149
|
-
+ __icon__ \`string=\` Icon URI, Data URI is possible
|
|
150
|
-
*/
|
|
151
|
-
var QueryAssist = /*#__PURE__*/function (_Component) {
|
|
152
|
-
_inherits(QueryAssist, _Component);
|
|
153
|
-
var _super = _createSuper(QueryAssist);
|
|
154
|
-
function QueryAssist(_props) {
|
|
155
|
-
var _thisSuper, _this;
|
|
156
|
-
_classCallCheck(this, QueryAssist);
|
|
157
|
-
_this = _super.call(this, _props);
|
|
158
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
159
|
-
dirty: !_this.props.query,
|
|
160
|
-
query: _this.props.query,
|
|
161
|
-
placeholderEnabled: !_this.props.query,
|
|
162
|
-
shortcuts: !!_this.props.focus,
|
|
163
|
-
suggestions: [],
|
|
164
|
-
showPopup: false
|
|
165
|
-
});
|
|
166
|
-
_defineProperty(_assertThisInitialized(_this), "immediateState", void 0);
|
|
167
|
-
_defineProperty(_assertThisInitialized(_this), "requestData", void 0);
|
|
168
|
-
_defineProperty(_assertThisInitialized(_this), "ngModelStateField", ngModelStateField);
|
|
169
|
-
// An array of {query: string; caret: number}[]
|
|
170
|
-
_defineProperty(_assertThisInitialized(_this), "historyStack", []);
|
|
171
|
-
_defineProperty(_assertThisInitialized(_this), "mouseIsDownOnPopup", void 0);
|
|
172
|
-
_defineProperty(_assertThisInitialized(_this), "handleFocusChange", function (e) {
|
|
173
|
-
// otherwise it's blur and false
|
|
174
|
-
var focus = e.type === 'focus';
|
|
175
|
-
_this.immediateState.focus = focus;
|
|
176
|
-
if (!focus) {
|
|
177
|
-
_this.blurInput();
|
|
178
|
-
// Close popup on blur by keyboard (mostly shift+tab)
|
|
179
|
-
if (!_this.mouseIsDownOnPopup) {
|
|
180
|
-
_this.closePopup();
|
|
181
|
-
}
|
|
182
|
-
} else {
|
|
183
|
-
_this.setCaretPosition();
|
|
184
|
-
}
|
|
185
|
-
if (!_this.mouseIsDownOnPopup) {
|
|
186
|
-
_this.props.onFocusChange({
|
|
187
|
-
focus
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
_this.setState({
|
|
191
|
-
shortcuts: focus
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
_defineProperty(_assertThisInitialized(_this), "node", void 0);
|
|
195
|
-
_defineProperty(_assertThisInitialized(_this), "nodeRef", function (node) {
|
|
196
|
-
_this.node = node;
|
|
197
|
-
});
|
|
198
|
-
_defineProperty(_assertThisInitialized(_this), "setCaretPosition", function () {
|
|
199
|
-
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
200
|
-
var queryLength = _this.immediateState.query != null ? _this.immediateState.query.length : 0;
|
|
201
|
-
var newCaretPosition = _this.immediateState.caret < queryLength ? _this.immediateState.caret : queryLength;
|
|
202
|
-
if (params.fromContentEditable) {
|
|
203
|
-
_this.immediateState.selection = _this.immediateState.selection ? _this.immediateState.selection : _this.state.query && _this.state.query.length || null;
|
|
204
|
-
}
|
|
205
|
-
if (_this.immediateState.focus && !_this.props.disabled) {
|
|
206
|
-
if (typeof _this.immediateState.selection === 'number' && Number.isInteger(_this.immediateState.selection) && _this.immediateState.selection > -1) {
|
|
207
|
-
var _this$caret;
|
|
208
|
-
// Set to end of field value if newCaretPosition is inappropriate
|
|
209
|
-
(_this$caret = _this.caret) === null || _this$caret === void 0 || _this$caret.setPosition(newCaretPosition >= 0 ? newCaretPosition : -1);
|
|
210
|
-
_this.scrollInput();
|
|
211
|
-
} else if (_this.immediateState.selection && typeof _this.immediateState.selection === 'object' && _this.immediateState.selection.startOffset !== undefined) {
|
|
212
|
-
var _this$caret2;
|
|
213
|
-
(_this$caret2 = _this.caret) === null || _this$caret2 === void 0 || _this$caret2.setPosition(_this.immediateState.selection);
|
|
214
|
-
} else if (_this.immediateState.selection === undefined || params.forceSetCaret) {
|
|
215
|
-
var _this$caret3;
|
|
216
|
-
(_this$caret3 = _this.caret) === null || _this$caret3 === void 0 || _this$caret3.setPosition(-1);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
_defineProperty(_assertThisInitialized(_this), "togglePlaceholder", function () {
|
|
221
|
-
var query = _this.getQuery();
|
|
222
|
-
var currentQueryIsEmpty = _this.immediateState.query === '';
|
|
223
|
-
var newQueryIsEmpty = query === '';
|
|
224
|
-
if (newQueryIsEmpty !== currentQueryIsEmpty) {
|
|
225
|
-
_this.setState({
|
|
226
|
-
placeholderEnabled: newQueryIsEmpty
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
_defineProperty(_assertThisInitialized(_this), "isComposing", void 0);
|
|
231
|
-
_defineProperty(_assertThisInitialized(_this), "handleInput", function (e) {
|
|
232
|
-
var _this$caret4, _currentCaret$positio;
|
|
233
|
-
_this.togglePlaceholder();
|
|
234
|
-
var currentCaret = (_this$caret4 = _this.caret) === null || _this$caret4 === void 0 ? void 0 : _this$caret4.getPosition();
|
|
235
|
-
var props = {
|
|
236
|
-
dirty: true,
|
|
237
|
-
query: _this.getQuery(),
|
|
238
|
-
caret: typeof currentCaret === 'number' ? currentCaret : (_currentCaret$positio = currentCaret === null || currentCaret === void 0 ? void 0 : currentCaret.position) !== null && _currentCaret$positio !== void 0 ? _currentCaret$positio : 0,
|
|
239
|
-
focus: true
|
|
240
|
-
};
|
|
241
|
-
if (_this.immediateState.query === props.query && !_this.isComposing) {
|
|
242
|
-
_this.handleCaretMove(e);
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
if (_this.isComposing) {
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
_this.immediateState = props;
|
|
249
|
-
if (_this.state.query) {
|
|
250
|
-
var _this$state$styleRang;
|
|
251
|
-
var i = 0;
|
|
252
|
-
while (_this.state.query[i] === _this.immediateState.query[i] && i < _this.state.query.length - 1) {
|
|
253
|
-
i++;
|
|
254
|
-
}
|
|
255
|
-
var diff = _this.immediateState.query.length - _this.state.query.length;
|
|
256
|
-
var originalIndex = _this.immediateState.caret - diff;
|
|
257
|
-
var ranges = _toConsumableArray((_this$state$styleRang = _this.state.styleRanges) !== null && _this$state$styleRang !== void 0 ? _this$state$styleRang : []);
|
|
258
|
-
var range = ranges.find(function (r) {
|
|
259
|
-
return originalIndex >= r.start && originalIndex <= r.start + r.length;
|
|
260
|
-
});
|
|
261
|
-
if (range) {
|
|
262
|
-
range.length += diff;
|
|
263
|
-
}
|
|
264
|
-
ranges.filter(function (r) {
|
|
265
|
-
return r.start > originalIndex;
|
|
266
|
-
}).forEach(function (r) {
|
|
267
|
-
r.start += diff;
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
_this.props.onChange(props);
|
|
271
|
-
if (_this.props.autoOpen === 'force' || props.query.length > 0) {
|
|
272
|
-
var _this$requestData, _this2;
|
|
273
|
-
(_this$requestData = (_this2 = _this).requestData) === null || _this$requestData === void 0 || _this$requestData.call(_this2);
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
// It's necessary to prevent new element creation before any other hooks
|
|
277
|
-
_defineProperty(_assertThisInitialized(_this), "handleEnter", function (e) {
|
|
278
|
-
if (e.key === 'Enter') {
|
|
279
|
-
preventDefault(e);
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
_defineProperty(_assertThisInitialized(_this), "handleTab", function (e) {
|
|
283
|
-
var list = _this._popup && _this._popup.list;
|
|
284
|
-
var suggestion = list && (list.getSelected() || list.getFirst());
|
|
285
|
-
if (suggestion && _this.state.showPopup) {
|
|
286
|
-
preventDefault(e);
|
|
287
|
-
if (_this.getQuery() !== _this.immediateState.suggestionsQuery) {
|
|
288
|
-
return false;
|
|
289
|
-
}
|
|
290
|
-
return _this.handleComplete(suggestion, true);
|
|
291
|
-
}
|
|
292
|
-
if (_this.state.loading) {
|
|
293
|
-
preventDefault(e);
|
|
294
|
-
return false;
|
|
295
|
-
}
|
|
296
|
-
return true;
|
|
297
|
-
});
|
|
298
|
-
_defineProperty(_assertThisInitialized(_this), "setState", function (state, resolve) {
|
|
299
|
-
_get((_thisSuper = _assertThisInitialized(_this), _getPrototypeOf(QueryAssist.prototype)), "setState", _thisSuper).call(_thisSuper, state, function () {
|
|
300
|
-
_this._pushHistory(state);
|
|
301
|
-
resolve === null || resolve === void 0 || resolve();
|
|
302
|
-
});
|
|
303
|
-
});
|
|
304
|
-
_defineProperty(_assertThisInitialized(_this), "undo", function (e) {
|
|
305
|
-
var previous = _this.historyStack.splice(0, 2)[1];
|
|
306
|
-
if (!previous) {
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
_this.setState({
|
|
310
|
-
query: previous.query
|
|
311
|
-
}, function () {
|
|
312
|
-
var _this$caret5;
|
|
313
|
-
(_this$caret5 = _this.caret) === null || _this$caret5 === void 0 || _this$caret5.setPosition(previous.caret);
|
|
314
|
-
_this.handleInput(e);
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
_defineProperty(_assertThisInitialized(_this), "handlePaste", function (e) {
|
|
318
|
-
var INSERT_COMMAND = 'insertText';
|
|
319
|
-
if (e.clipboardData && document.queryCommandSupported(INSERT_COMMAND)) {
|
|
320
|
-
preventDefault(e);
|
|
321
|
-
var text = cleanText(e.clipboardData.getData('text/plain'));
|
|
322
|
-
document.execCommand(INSERT_COMMAND, false, text);
|
|
323
|
-
_this.handleInput(e);
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
_defineProperty(_assertThisInitialized(_this), "handleCaretMove", function (e) {
|
|
327
|
-
var _this$caret6, _currentCaret$positio2;
|
|
328
|
-
if (_this.isComposing) {
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
var currentCaret = (_this$caret6 = _this.caret) === null || _this$caret6 === void 0 ? void 0 : _this$caret6.getPosition();
|
|
332
|
-
var caret = typeof currentCaret === 'number' ? currentCaret : (_currentCaret$positio2 = currentCaret === null || currentCaret === void 0 ? void 0 : currentCaret.position) !== null && _currentCaret$positio2 !== void 0 ? _currentCaret$positio2 : 0;
|
|
333
|
-
var popupHidden = !_this.state.showPopup && e.type === 'click';
|
|
334
|
-
if (!_this.props.disabled && (caret !== _this.immediateState.caret || popupHidden)) {
|
|
335
|
-
_this.immediateState.prevCaret = _this.immediateState.caret;
|
|
336
|
-
_this.immediateState.caret = caret;
|
|
337
|
-
_this.scrollInput();
|
|
338
|
-
if (_this.immediateState.query.length > 0) {
|
|
339
|
-
var _this$requestData2, _this3;
|
|
340
|
-
(_this$requestData2 = (_this3 = _this).requestData) === null || _this$requestData2 === void 0 || _this$requestData2.call(_this3);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
if (_this.props.autoOpen !== 'force' && _this.immediateState.query.length < 1) {
|
|
344
|
-
_this.setState({
|
|
345
|
-
showPopup: false
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
_defineProperty(_assertThisInitialized(_this), "handleStyleRangesResponse", function (_ref) {
|
|
350
|
-
_ref.suggestions;
|
|
351
|
-
var restProps = _objectWithoutProperties(_ref, _excluded);
|
|
352
|
-
return _this.handleResponse(restProps);
|
|
353
|
-
});
|
|
354
|
-
_defineProperty(_assertThisInitialized(_this), "handleResponse", function (_ref2) {
|
|
355
|
-
var _ref2$query = _ref2.query,
|
|
356
|
-
query = _ref2$query === void 0 ? '' : _ref2$query,
|
|
357
|
-
_ref2$caret = _ref2.caret,
|
|
358
|
-
caret = _ref2$caret === void 0 ? 0 : _ref2$caret,
|
|
359
|
-
styleRanges = _ref2.styleRanges,
|
|
360
|
-
_ref2$suggestions = _ref2.suggestions,
|
|
361
|
-
suggestions = _ref2$suggestions === void 0 ? [] : _ref2$suggestions;
|
|
362
|
-
var afterCompletion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
363
|
-
return new Promise(function (resolve, reject) {
|
|
364
|
-
if (query === _this.getQuery() && (caret === _this.immediateState.caret || _this.immediateState.caret === undefined)) {
|
|
365
|
-
var _this$caret7;
|
|
366
|
-
// Do not setState on unmounted component
|
|
367
|
-
if (!_this.node) {
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
var state = {
|
|
371
|
-
dirty: _this.immediateState.dirty,
|
|
372
|
-
loading: false,
|
|
373
|
-
placeholderEnabled: !query,
|
|
374
|
-
query,
|
|
375
|
-
suggestions,
|
|
376
|
-
showPopup: !!suggestions.length && (_this.props.autoOpen === 'force' || !afterCompletion)
|
|
377
|
-
};
|
|
378
|
-
_this.immediateState.suggestionsQuery = query;
|
|
379
|
-
// Do not update deep equal styleRanges to simplify shouldComponentUpdate check
|
|
380
|
-
if (!deepEqual(_this.state.styleRanges, styleRanges)) {
|
|
381
|
-
state.styleRanges = styleRanges;
|
|
382
|
-
}
|
|
383
|
-
_this.immediateState.selection = (_this$caret7 = _this.caret) === null || _this$caret7 === void 0 ? void 0 : _this$caret7.getPosition({
|
|
384
|
-
avoidFocus: true
|
|
385
|
-
});
|
|
386
|
-
_this.setState(state, resolve);
|
|
387
|
-
} else {
|
|
388
|
-
reject(new Error('Current and response queries mismatch'));
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
});
|
|
392
|
-
_defineProperty(_assertThisInitialized(_this), "handleApply", function () {
|
|
393
|
-
_this.closePopup();
|
|
394
|
-
_this.immediateState.dirty = false;
|
|
395
|
-
// Only set dirty to false when query is saved already
|
|
396
|
-
if (_this.immediateState.query === _this.state.query) {
|
|
397
|
-
_this.setState({
|
|
398
|
-
dirty: false
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
return _this.props.onApply(_this.immediateState);
|
|
402
|
-
});
|
|
403
|
-
_defineProperty(_assertThisInitialized(_this), "handleComplete", function (data, replace) {
|
|
404
|
-
var _suggestion$caret, _suggestion$caret2, _this$requestData3, _this4;
|
|
405
|
-
if (!data || !data.data) {
|
|
406
|
-
_this.handleApply();
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
var query = _this.getQuery();
|
|
410
|
-
var currentCaret = _this.immediateState.caret;
|
|
411
|
-
var suggestion = data.data;
|
|
412
|
-
var prefix = suggestion.prefix || '';
|
|
413
|
-
var suffix = suggestion.suffix || '';
|
|
414
|
-
var state = {
|
|
415
|
-
prevCaret: currentCaret,
|
|
416
|
-
caret: (_suggestion$caret = suggestion.caret) !== null && _suggestion$caret !== void 0 ? _suggestion$caret : 0,
|
|
417
|
-
selection: (_suggestion$caret2 = suggestion.caret) !== null && _suggestion$caret2 !== void 0 ? _suggestion$caret2 : 0,
|
|
418
|
-
query: query.substr(0, suggestion.completionStart) + prefix + suggestion.option + suffix
|
|
419
|
-
};
|
|
420
|
-
if (typeof replace === 'boolean' && replace) {
|
|
421
|
-
var _suggestion$completio;
|
|
422
|
-
state.query += _this.immediateState.query.substr((_suggestion$completio = suggestion.completionEnd) !== null && _suggestion$completio !== void 0 ? _suggestion$completio : 0);
|
|
423
|
-
} else {
|
|
424
|
-
state.query += _this.immediateState.query.substr(_this.immediateState.caret);
|
|
425
|
-
}
|
|
426
|
-
_this.props.onChange(state);
|
|
427
|
-
_this.props.onApplySuggestion(data.data, state);
|
|
428
|
-
var focusState = {
|
|
429
|
-
focus: true
|
|
430
|
-
};
|
|
431
|
-
_this.props.onFocusChange(focusState);
|
|
432
|
-
if (state.query !== _this.immediateState.query) {
|
|
433
|
-
_this.setState({
|
|
434
|
-
placeholderEnabled: !state.query,
|
|
435
|
-
query: state.query
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
_this.immediateState = Object.assign(state, focusState);
|
|
439
|
-
if (_this.immediateState.caret !== currentCaret) {
|
|
440
|
-
_this.setCaretPosition();
|
|
441
|
-
}
|
|
442
|
-
_this.closePopup();
|
|
443
|
-
(_this$requestData3 = (_this4 = _this).requestData) === null || _this$requestData3 === void 0 || _this$requestData3.call(_this4, true);
|
|
444
|
-
});
|
|
445
|
-
_defineProperty(_assertThisInitialized(_this), "requestStyleRanges", function () {
|
|
446
|
-
var _this$immediateState = _this.immediateState,
|
|
447
|
-
query = _this$immediateState.query,
|
|
448
|
-
caret = _this$immediateState.caret;
|
|
449
|
-
if (!query) {
|
|
450
|
-
return Promise.reject(new Error('Query is empty'));
|
|
451
|
-
}
|
|
452
|
-
return _this.sendRequest({
|
|
453
|
-
query,
|
|
454
|
-
caret,
|
|
455
|
-
omitSuggestions: true
|
|
456
|
-
}).then(_this.handleStyleRangesResponse).catch(noop);
|
|
457
|
-
});
|
|
458
|
-
_defineProperty(_assertThisInitialized(_this), "requestHandler", function () {
|
|
459
|
-
var afterCompletion = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
460
|
-
if (_this.props.disabled) {
|
|
461
|
-
return Promise.reject(new Error('QueryAssist(@jetbrains/ring-ui): null exception'));
|
|
462
|
-
}
|
|
463
|
-
var _this$immediateState2 = _this.immediateState,
|
|
464
|
-
query = _this$immediateState2.query,
|
|
465
|
-
caret = _this$immediateState2.caret;
|
|
466
|
-
return _this.sendRequest({
|
|
467
|
-
query,
|
|
468
|
-
caret
|
|
469
|
-
}).then(function (data) {
|
|
470
|
-
return _this.handleResponse(data, afterCompletion);
|
|
471
|
-
}).catch(noop);
|
|
472
|
-
});
|
|
473
|
-
_defineProperty(_assertThisInitialized(_this), "handleCtrlSpace", function (e) {
|
|
474
|
-
preventDefault(e);
|
|
475
|
-
if (!_this.state.showPopup) {
|
|
476
|
-
var _this$requestData4, _this5;
|
|
477
|
-
(_this$requestData4 = (_this5 = _this).requestData) === null || _this$requestData4 === void 0 || _this$requestData4.call(_this5);
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
_defineProperty(_assertThisInitialized(_this), "trackPopupMouseState", function (e) {
|
|
481
|
-
_this.mouseIsDownOnPopup = e.type === 'mousedown';
|
|
482
|
-
});
|
|
483
|
-
_defineProperty(_assertThisInitialized(_this), "trackCompositionState", function (e) {
|
|
484
|
-
_this.isComposing = e.type !== 'compositionend';
|
|
485
|
-
});
|
|
486
|
-
_defineProperty(_assertThisInitialized(_this), "closePopup", function () {
|
|
487
|
-
if (_this.node) {
|
|
488
|
-
_this.setState({
|
|
489
|
-
showPopup: false
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
_defineProperty(_assertThisInitialized(_this), "clearQuery", function () {
|
|
494
|
-
var state = {
|
|
495
|
-
dirty: false,
|
|
496
|
-
caret: 0,
|
|
497
|
-
query: '',
|
|
498
|
-
focus: true
|
|
499
|
-
};
|
|
500
|
-
_this.props.onChange(state);
|
|
501
|
-
_this.props.onClear();
|
|
502
|
-
_this.immediateState = state;
|
|
503
|
-
_this.setState({
|
|
504
|
-
dirty: false,
|
|
505
|
-
query: '',
|
|
506
|
-
placeholderEnabled: true,
|
|
507
|
-
loading: false
|
|
508
|
-
});
|
|
509
|
-
});
|
|
510
|
-
_defineProperty(_assertThisInitialized(_this), "input", void 0);
|
|
511
|
-
_defineProperty(_assertThisInitialized(_this), "caret", void 0);
|
|
512
|
-
_defineProperty(_assertThisInitialized(_this), "inputRef", function (node) {
|
|
513
|
-
if (!node) {
|
|
514
|
-
return;
|
|
515
|
-
}
|
|
516
|
-
_this.input = node;
|
|
517
|
-
_this.caret = new Caret(_this.input);
|
|
518
|
-
});
|
|
519
|
-
_defineProperty(_assertThisInitialized(_this), "_popup", void 0);
|
|
520
|
-
_defineProperty(_assertThisInitialized(_this), "popupRef", function (node) {
|
|
521
|
-
_this._popup = node;
|
|
522
|
-
});
|
|
523
|
-
_defineProperty(_assertThisInitialized(_this), "placeholder", void 0);
|
|
524
|
-
_defineProperty(_assertThisInitialized(_this), "placeholderRef", function (node) {
|
|
525
|
-
_this.placeholder = node;
|
|
526
|
-
});
|
|
527
|
-
_defineProperty(_assertThisInitialized(_this), "glass", void 0);
|
|
528
|
-
_defineProperty(_assertThisInitialized(_this), "glassRef", function (node) {
|
|
529
|
-
_this.glass = node;
|
|
530
|
-
});
|
|
531
|
-
_defineProperty(_assertThisInitialized(_this), "loader", void 0);
|
|
532
|
-
_defineProperty(_assertThisInitialized(_this), "loaderRef", function (node) {
|
|
533
|
-
_this.loader = node;
|
|
534
|
-
});
|
|
535
|
-
_defineProperty(_assertThisInitialized(_this), "clear", void 0);
|
|
536
|
-
_defineProperty(_assertThisInitialized(_this), "clearRef", function (node) {
|
|
537
|
-
_this.clear = node;
|
|
538
|
-
});
|
|
539
|
-
_defineProperty(_assertThisInitialized(_this), "shortcutsScope", getUID('ring-query-assist-'));
|
|
540
|
-
_defineProperty(_assertThisInitialized(_this), "shortcutsMap", {
|
|
541
|
-
del: noop,
|
|
542
|
-
enter: function enter() {
|
|
543
|
-
return _this.handleComplete();
|
|
544
|
-
},
|
|
545
|
-
'command+enter': function commandEnter() {
|
|
546
|
-
return _this.handleComplete();
|
|
547
|
-
},
|
|
548
|
-
'ctrl+enter': function ctrlEnter() {
|
|
549
|
-
return _this.handleComplete();
|
|
550
|
-
},
|
|
551
|
-
'ctrl+space': _this.handleCtrlSpace,
|
|
552
|
-
tab: _this.handleTab,
|
|
553
|
-
'meta+z': _this.undo,
|
|
554
|
-
right: noop,
|
|
555
|
-
left: noop,
|
|
556
|
-
space: noop,
|
|
557
|
-
home: noop,
|
|
558
|
-
end: noop
|
|
559
|
-
});
|
|
560
|
-
_defineProperty(_assertThisInitialized(_this), "listShortcutsMap", {
|
|
561
|
-
home: noop,
|
|
562
|
-
end: noop
|
|
563
|
-
});
|
|
564
|
-
var _query = _props.query || '';
|
|
565
|
-
_this.immediateState = {
|
|
566
|
-
query: _query,
|
|
567
|
-
caret: typeof _props.caret === 'number' && Number.isFinite(_props.caret) ? _props.caret : _query.length,
|
|
568
|
-
focus: Boolean(_props.autoOpen || _props.focus)
|
|
569
|
-
};
|
|
570
|
-
return _this;
|
|
571
|
-
}
|
|
572
|
-
_createClass(QueryAssist, [{
|
|
573
|
-
key: "componentDidMount",
|
|
574
|
-
value: function componentDidMount() {
|
|
575
|
-
var query = this.props.query || '';
|
|
576
|
-
this.immediateState = {
|
|
577
|
-
query,
|
|
578
|
-
caret: typeof this.props.caret === 'number' && Number.isFinite(this.props.caret) ? this.props.caret : query.length,
|
|
579
|
-
focus: Boolean(this.props.autoOpen || this.props.focus)
|
|
580
|
-
};
|
|
581
|
-
this.setupRequestHandler(this.props.delay);
|
|
582
|
-
if (this.props.autoOpen === 'force' || this.props.autoOpen && query.length > 0) {
|
|
583
|
-
this.requestHandler().catch(noop);
|
|
584
|
-
} else {
|
|
585
|
-
this.requestStyleRanges().catch(noop);
|
|
586
|
-
}
|
|
587
|
-
this.setCaretPosition();
|
|
588
|
-
this._pushHistory(this.state);
|
|
589
|
-
}
|
|
590
|
-
}, {
|
|
591
|
-
key: "shouldComponentUpdate",
|
|
592
|
-
value: function shouldComponentUpdate(props, state) {
|
|
593
|
-
return state.query !== this.state.query || state.dirty !== this.state.dirty || state.loading !== this.state.loading || state.showPopup !== this.state.showPopup || state.suggestions !== this.state.suggestions || state.styleRanges !== this.state.styleRanges || state.placeholderEnabled !== this.state.placeholderEnabled || props.placeholder !== this.props.placeholder || props.disabled !== this.props.disabled || props.clear !== this.props.clear || props.focus !== this.props.focus || props.actions !== this.props.actions || props.loader !== this.props.loader || props.glass !== this.props.glass;
|
|
594
|
-
}
|
|
595
|
-
}, {
|
|
596
|
-
key: "componentDidUpdate",
|
|
597
|
-
value: function componentDidUpdate(prevProps) {
|
|
598
|
-
var _this$props = this.props,
|
|
599
|
-
caret = _this$props.caret,
|
|
600
|
-
delay = _this$props.delay,
|
|
601
|
-
query = _this$props.query;
|
|
602
|
-
var queryChanged = query !== prevProps.query;
|
|
603
|
-
this.updateFocus(prevProps);
|
|
604
|
-
this.setupRequestHandler(delay);
|
|
605
|
-
var shouldSetCaret = typeof caret === 'number' && caret !== prevProps.caret;
|
|
606
|
-
if (shouldSetCaret) {
|
|
607
|
-
this.immediateState.prevCaret = prevProps.caret;
|
|
608
|
-
this.immediateState.caret = caret;
|
|
609
|
-
}
|
|
610
|
-
if (typeof query === 'string' && queryChanged && query !== this.immediateState.query) {
|
|
611
|
-
this.immediateState.query = query;
|
|
612
|
-
if (query && (this.props.autoOpen === 'force' || prevProps.autoOpen && query.length > 0)) {
|
|
613
|
-
var _this$requestData5;
|
|
614
|
-
(_this$requestData5 = this.requestData) === null || _this$requestData5 === void 0 || _this$requestData5.call(this);
|
|
615
|
-
} else if (query) {
|
|
616
|
-
this.requestStyleRanges();
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}, {
|
|
621
|
-
key: "updateFocus",
|
|
622
|
-
value: function updateFocus(_ref3) {
|
|
623
|
-
var focus = _ref3.focus,
|
|
624
|
-
caret = _ref3.caret;
|
|
625
|
-
var isCaretChanged = caret !== this.props.caret;
|
|
626
|
-
var isFocusChanged = focus !== this.props.focus;
|
|
627
|
-
if (isFocusChanged || isCaretChanged) {
|
|
628
|
-
var focusValue = isFocusChanged ? this.props.focus : true;
|
|
629
|
-
this.setFocus(focusValue);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}, {
|
|
633
|
-
key: "scrollInput",
|
|
634
|
-
value: function scrollInput() {
|
|
635
|
-
var _this$caret8, _this$input, _this$input2, _this$input3;
|
|
636
|
-
var caretOffset = (_this$caret8 = this.caret) === null || _this$caret8 === void 0 ? void 0 : _this$caret8.getOffset();
|
|
637
|
-
if (((_this$input = this.input) === null || _this$input === void 0 ? void 0 : _this$input.clientWidth) !== ((_this$input2 = this.input) === null || _this$input2 === void 0 ? void 0 : _this$input2.scrollWidth) && caretOffset != null && ((_this$input3 = this.input) === null || _this$input3 === void 0 ? void 0 : _this$input3.clientWidth) != null && caretOffset > this.input.clientWidth) {
|
|
638
|
-
this.input.scrollLeft += caretOffset;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
}, {
|
|
642
|
-
key: "getQuery",
|
|
643
|
-
value: function getQuery() {
|
|
644
|
-
var _this$input$textConte, _this$input4;
|
|
645
|
-
return (_this$input$textConte = (_this$input4 = this.input) === null || _this$input4 === void 0 || (_this$input4 = _this$input4.textContent) === null || _this$input4 === void 0 ? void 0 : _this$input4.replace(/\s/g, ' ')) !== null && _this$input$textConte !== void 0 ? _this$input$textConte : '';
|
|
646
|
-
}
|
|
647
|
-
}, {
|
|
648
|
-
key: "isRenderingGlassOrLoader",
|
|
649
|
-
value: function isRenderingGlassOrLoader() {
|
|
650
|
-
var renderLoader = this.props.loader !== false && this.state.loading;
|
|
651
|
-
return this.props.glass || renderLoader;
|
|
652
|
-
}
|
|
653
|
-
}, {
|
|
654
|
-
key: "_pushHistory",
|
|
655
|
-
value: function _pushHistory(state) {
|
|
656
|
-
var _this$historyStack$;
|
|
657
|
-
var queryIsSet = ('query' in state);
|
|
658
|
-
var queryIsSame = ((_this$historyStack$ = this.historyStack[0]) === null || _this$historyStack$ === void 0 ? void 0 : _this$historyStack$.query) === state.query;
|
|
659
|
-
if (queryIsSet && !queryIsSame) {
|
|
660
|
-
var _this$caret$getPositi, _this$caret9;
|
|
661
|
-
this.historyStack.unshift({
|
|
662
|
-
query: state.query,
|
|
663
|
-
caret: (_this$caret$getPositi = (_this$caret9 = this.caret) === null || _this$caret9 === void 0 ? void 0 : _this$caret9.getPosition({
|
|
664
|
-
avoidFocus: true
|
|
665
|
-
})) !== null && _this$caret$getPositi !== void 0 ? _this$caret$getPositi : -1
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}, {
|
|
670
|
-
key: "sendRequest",
|
|
671
|
-
value: function sendRequest(params) {
|
|
672
|
-
var _this6 = this;
|
|
673
|
-
var value = this.props.dataSource(params);
|
|
674
|
-
var dataPromise = Promise.resolve(value);
|
|
675
|
-
var CLOSE_POPUP_TIMEOUT = 500;
|
|
676
|
-
// Close popup after timeout between long requests
|
|
677
|
-
var timeout = window.setTimeout(function () {
|
|
678
|
-
if (_this6.node) {
|
|
679
|
-
_this6.setState({
|
|
680
|
-
loading: true
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
if (params.query === _this6.immediateState.query) {
|
|
684
|
-
_this6.closePopup();
|
|
685
|
-
}
|
|
686
|
-
}, CLOSE_POPUP_TIMEOUT);
|
|
687
|
-
dataPromise.then(function () {
|
|
688
|
-
return window.clearTimeout(timeout);
|
|
689
|
-
}).catch(function () {
|
|
690
|
-
window.clearTimeout(timeout);
|
|
691
|
-
_this6.setState({
|
|
692
|
-
loading: false
|
|
693
|
-
});
|
|
694
|
-
});
|
|
695
|
-
return dataPromise;
|
|
696
|
-
}
|
|
697
|
-
}, {
|
|
698
|
-
key: "getPopupOffset",
|
|
699
|
-
value: function getPopupOffset(suggestions) {
|
|
700
|
-
var ICON_SPACING = 12;
|
|
701
|
-
var minOffset = this.isRenderingGlassOrLoader() ? ICON_SPACING : 0;
|
|
702
|
-
if (!this.input) {
|
|
703
|
-
return minOffset;
|
|
704
|
-
}
|
|
705
|
-
// First suggestion should be enough?
|
|
706
|
-
var suggestion = suggestions && suggestions[0];
|
|
707
|
-
// Check if suggestion begins not from the end
|
|
708
|
-
var completionStart = suggestion && suggestion.completionStart !== suggestion.completionEnd && suggestion.completionStart;
|
|
709
|
-
var inputChildren = this.input.firstChild instanceof Element && this.input.firstChild.children;
|
|
710
|
-
var completionStartNode = inputChildren && typeof completionStart === 'number' && inputChildren[Math.min(completionStart, inputChildren.length - 1)];
|
|
711
|
-
var offset = completionStartNode && getRect(completionStartNode).right - getRect(this.input).left;
|
|
712
|
-
if (!offset) {
|
|
713
|
-
var _this$caret$getOffset, _this$caret10;
|
|
714
|
-
var caret = (_this$caret$getOffset = (_this$caret10 = this.caret) === null || _this$caret10 === void 0 ? void 0 : _this$caret10.getOffset()) !== null && _this$caret$getOffset !== void 0 ? _this$caret$getOffset : 0;
|
|
715
|
-
// Do not compensate caret in the beginning of field
|
|
716
|
-
if (caret === 0) {
|
|
717
|
-
return minOffset;
|
|
718
|
-
} else {
|
|
719
|
-
offset = caret;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
var result = offset - POPUP_COMPENSATION;
|
|
723
|
-
return result < minOffset ? minOffset : result;
|
|
724
|
-
}
|
|
725
|
-
}, {
|
|
726
|
-
key: "blurInput",
|
|
727
|
-
value: function blurInput() {
|
|
728
|
-
this.immediateState.selection = null;
|
|
729
|
-
if (!this.props.focus) {
|
|
730
|
-
var _this$caret11;
|
|
731
|
-
(_this$caret11 = this.caret) === null || _this$caret11 === void 0 || _this$caret11.target.blur();
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
/**
|
|
735
|
-
* Optionally setup data request delay. For each component create a separate
|
|
736
|
-
* instance of the delayed function. This may help reduce the load on the server
|
|
737
|
-
* when the user quickly inputs data.
|
|
738
|
-
*/
|
|
739
|
-
}, {
|
|
740
|
-
key: "setupRequestHandler",
|
|
741
|
-
value: function setupRequestHandler(delay) {
|
|
742
|
-
var needDelay = typeof delay === 'number';
|
|
743
|
-
var hasDelay = this.requestData !== this.requestHandler;
|
|
744
|
-
if (!this.requestData || hasDelay !== needDelay) {
|
|
745
|
-
if (needDelay) {
|
|
746
|
-
this.requestData = debounce(this.requestHandler, delay);
|
|
747
|
-
} else {
|
|
748
|
-
this.requestData = this.requestHandler;
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
}, {
|
|
753
|
-
key: "_renderSuggestion",
|
|
754
|
-
value: function _renderSuggestion(suggestion) {
|
|
755
|
-
var ITEM = PopupMenu.ListProps.Type.ITEM;
|
|
756
|
-
var description = suggestion.description,
|
|
757
|
-
icon = suggestion.icon,
|
|
758
|
-
group = suggestion.group;
|
|
759
|
-
var key = QueryAssistSuggestions.createKey(suggestion);
|
|
760
|
-
var label = QueryAssistSuggestions.renderLabel(suggestion);
|
|
761
|
-
return {
|
|
762
|
-
key,
|
|
763
|
-
icon,
|
|
764
|
-
label,
|
|
765
|
-
description,
|
|
766
|
-
group,
|
|
767
|
-
rgItemType: ITEM,
|
|
768
|
-
data: suggestion
|
|
769
|
-
};
|
|
770
|
-
}
|
|
771
|
-
}, {
|
|
772
|
-
key: "renderSuggestions",
|
|
773
|
-
value: function renderSuggestions() {
|
|
774
|
-
var suggestions = this.state.suggestions;
|
|
775
|
-
if (!suggestions || !suggestions.length) {
|
|
776
|
-
return [];
|
|
777
|
-
}
|
|
778
|
-
return QueryAssistSuggestions.renderList(suggestions, this._renderSuggestion);
|
|
779
|
-
}
|
|
780
|
-
}, {
|
|
781
|
-
key: "renderQuery",
|
|
782
|
-
value: function renderQuery() {
|
|
783
|
-
var _this$state = this.state,
|
|
784
|
-
dirty = _this$state.dirty,
|
|
785
|
-
styleRanges = _this$state.styleRanges,
|
|
786
|
-
query = _this$state.query;
|
|
787
|
-
var classes = [];
|
|
788
|
-
var LETTER_CLASS = 'letter';
|
|
789
|
-
var LETTER_DEFAULT_CLASS = modules_da7ab055.letterDefault;
|
|
790
|
-
if (styleRanges && styleRanges.length) {
|
|
791
|
-
styleRanges.forEach(function (item, index) {
|
|
792
|
-
if (dirty && index === styleRanges.length - 1 && item.style === 'text') {
|
|
793
|
-
return;
|
|
794
|
-
}
|
|
795
|
-
var styleName = "".concat(LETTER_CLASS, "-").concat(item.style.replace('_', '-'));
|
|
796
|
-
for (var i = item.start; i < item.start + item.length; i++) {
|
|
797
|
-
classes[i] = modules_da7ab055[styleName];
|
|
798
|
-
}
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
return query && Array.from(query).map(function (letter, index, letters) {
|
|
802
|
-
var className = classNames(modules_da7ab055.letter, classes[index] || LETTER_DEFAULT_CLASS);
|
|
803
|
-
var dataTest = letters.length - 1 === index ? 'ring-query-assist-last-letter' : null;
|
|
804
|
-
// \u00a0 ===
|
|
805
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
806
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
807
|
-
key: index + letter,
|
|
808
|
-
className: className,
|
|
809
|
-
"data-test": dataTest
|
|
810
|
-
}, letter === ' ' ? '\u00a0' : letter);
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
}, {
|
|
814
|
-
key: "setFocus",
|
|
815
|
-
value: function setFocus(focus) {
|
|
816
|
-
this.setState({
|
|
817
|
-
shortcuts: !!focus
|
|
818
|
-
});
|
|
819
|
-
var isComponentFocused = Boolean(this.immediateState.focus);
|
|
820
|
-
if (focus === false && isComponentFocused) {
|
|
821
|
-
this.immediateState.focus = focus;
|
|
822
|
-
this.blurInput();
|
|
823
|
-
} else if (focus === true && !isComponentFocused) {
|
|
824
|
-
this.immediateState.focus = focus;
|
|
825
|
-
this.setCaretPosition({
|
|
826
|
-
forceSetCaret: true
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}, {
|
|
831
|
-
key: "renderActions",
|
|
832
|
-
value: function renderActions() {
|
|
833
|
-
var _this7 = this;
|
|
834
|
-
var actions = _toConsumableArray(this.props.actions || []);
|
|
835
|
-
var renderClear = this.props.clear && !!this.state.query;
|
|
836
|
-
if (renderClear) {
|
|
837
|
-
actions.push( /*#__PURE__*/React.createElement(I18nContext.Consumer, {
|
|
838
|
-
key: 'clearAction'
|
|
839
|
-
}, function (_ref4) {
|
|
840
|
-
var _this7$props$translat, _this7$props$translat2;
|
|
841
|
-
var translate = _ref4.translate;
|
|
842
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
843
|
-
icon: closeIcon,
|
|
844
|
-
className: modules_da7ab055.clear,
|
|
845
|
-
title: (_this7$props$translat = (_this7$props$translat2 = _this7.props.translations) === null || _this7$props$translat2 === void 0 ? void 0 : _this7$props$translat2.clearTitle) !== null && _this7$props$translat !== void 0 ? _this7$props$translat : translate('clearTitle'),
|
|
846
|
-
ref: _this7.clearRef,
|
|
847
|
-
onClick: _this7.clearQuery,
|
|
848
|
-
"data-test": "query-assist-clear-icon"
|
|
849
|
-
});
|
|
850
|
-
}));
|
|
851
|
-
}
|
|
852
|
-
return actions;
|
|
853
|
-
}
|
|
854
|
-
}, {
|
|
855
|
-
key: "render",
|
|
856
|
-
value: function render() {
|
|
857
|
-
var _this8 = this;
|
|
858
|
-
var _this$props2 = this.props,
|
|
859
|
-
glass = _this$props2.glass,
|
|
860
|
-
dataTest = _this$props2['data-test'],
|
|
861
|
-
className = _this$props2.className,
|
|
862
|
-
useCustomItemRender = _this$props2.useCustomItemRender,
|
|
863
|
-
huge = _this$props2.huge,
|
|
864
|
-
size = _this$props2.size,
|
|
865
|
-
translations = _this$props2.translations;
|
|
866
|
-
var renderPlaceholder = !!this.props.placeholder && this.state.placeholderEnabled;
|
|
867
|
-
var renderLoader = this.props.loader !== false && this.state.loading;
|
|
868
|
-
var renderGlass = glass && !renderLoader;
|
|
869
|
-
var actions = this.renderActions();
|
|
870
|
-
var containerClasses = classNames(className, modules_88cfaf40["size".concat(huge ? Size.FULL : size)], {
|
|
871
|
-
[modules_da7ab055.queryAssist]: true,
|
|
872
|
-
[modules_da7ab055.withIcon]: renderGlass && !huge || renderLoader,
|
|
873
|
-
[modules_da7ab055.huge]: huge,
|
|
874
|
-
[modules_da7ab055.queryAssistDisabled]: this.props.disabled
|
|
875
|
-
});
|
|
876
|
-
var inputClasses = classNames(this.props.inputClassName, {
|
|
877
|
-
["".concat(modules_da7ab055.input, " ring-js-shortcuts")]: true,
|
|
878
|
-
[modules_da7ab055.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
|
879
|
-
[modules_da7ab055.inputGap2]: actions.length === 2,
|
|
880
|
-
// TODO: replace with flex-box layout
|
|
881
|
-
[modules_da7ab055.inputRevertOrder]: !glass || huge
|
|
882
|
-
});
|
|
883
|
-
var placeholderStyles = classNames({
|
|
884
|
-
[modules_da7ab055.placeholder]: true,
|
|
885
|
-
[modules_da7ab055.hugePlaceholder]: huge,
|
|
886
|
-
[modules_da7ab055.withoutGlass]: !glass || !renderLoader && huge
|
|
887
|
-
});
|
|
888
|
-
return /*#__PURE__*/React.createElement(ControlsHeightContext.Provider, {
|
|
889
|
-
value: ControlsHeight.M
|
|
890
|
-
}, /*#__PURE__*/React.createElement(I18nContext.Consumer, null, function (_ref5) {
|
|
891
|
-
var _translations$searchT, _translations$searchT2, _translations$searchT3;
|
|
892
|
-
var translate = _ref5.translate;
|
|
893
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
894
|
-
"data-test": joinDataTestAttributes('ring-query-assist', dataTest),
|
|
895
|
-
className: containerClasses,
|
|
896
|
-
role: "presentation",
|
|
897
|
-
ref: _this8.nodeRef
|
|
898
|
-
}, _this8.state.shortcuts && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
899
|
-
map: _this8.shortcutsMap,
|
|
900
|
-
scope: _this8.shortcutsScope
|
|
901
|
-
}), renderGlass && !huge && /*#__PURE__*/React.createElement(Icon, {
|
|
902
|
-
glyph: searchIcon,
|
|
903
|
-
className: modules_da7ab055.icon,
|
|
904
|
-
title: (_translations$searchT = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT !== void 0 ? _translations$searchT : translate('searchTitle'),
|
|
905
|
-
ref: _this8.glassRef,
|
|
906
|
-
"data-test": "query-assist-search-icon"
|
|
907
|
-
}), renderLoader && /*#__PURE__*/React.createElement("div", {
|
|
908
|
-
className: classNames(modules_da7ab055.icon, modules_da7ab055.loader, {
|
|
909
|
-
[modules_da7ab055.loaderOnTheRight]: !glass && !huge,
|
|
910
|
-
[modules_da7ab055.loaderActive]: renderLoader
|
|
911
|
-
}),
|
|
912
|
-
ref: _this8.loaderRef
|
|
913
|
-
}, /*#__PURE__*/React.createElement(LoaderInline, null)), /*#__PURE__*/React.createElement(ContentEditable, {
|
|
914
|
-
"aria-label": (_translations$searchT2 = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT2 !== void 0 ? _translations$searchT2 : translate('searchTitle'),
|
|
915
|
-
className: inputClasses,
|
|
916
|
-
"data-test": "ring-query-assist-input",
|
|
917
|
-
inputRef: _this8.inputRef,
|
|
918
|
-
disabled: _this8.props.disabled,
|
|
919
|
-
onComponentUpdate: function onComponentUpdate() {
|
|
920
|
-
return _this8.setCaretPosition({
|
|
921
|
-
fromContentEditable: true
|
|
922
|
-
});
|
|
923
|
-
},
|
|
924
|
-
onBlur: _this8.handleFocusChange,
|
|
925
|
-
onClick: _this8.handleCaretMove,
|
|
926
|
-
onCompositionStart: _this8.trackCompositionState,
|
|
927
|
-
onCompositionEnd: _this8.trackCompositionState,
|
|
928
|
-
onFocus: _this8.handleFocusChange,
|
|
929
|
-
onInput: _this8.handleInput // To support IE use the same method
|
|
930
|
-
,
|
|
931
|
-
onKeyUp: _this8.handleInput // to handle input and key up
|
|
932
|
-
,
|
|
933
|
-
onKeyDown: _this8.handleEnter,
|
|
934
|
-
onPaste: _this8.handlePaste,
|
|
935
|
-
spellCheck: "false"
|
|
936
|
-
}, _this8.state.query && /*#__PURE__*/React.createElement("span", null, _this8.renderQuery())), renderPlaceholder && /*#__PURE__*/React.createElement("button", {
|
|
937
|
-
type: "button",
|
|
938
|
-
className: placeholderStyles,
|
|
939
|
-
ref: _this8.placeholderRef,
|
|
940
|
-
onClick: _this8.handleCaretMove,
|
|
941
|
-
"data-test": "query-assist-placeholder"
|
|
942
|
-
}, _this8.props.placeholder), actions.length ? /*#__PURE__*/React.createElement("div", {
|
|
943
|
-
"data-test": "ring-query-assist-actions",
|
|
944
|
-
className: modules_da7ab055.actions
|
|
945
|
-
}, actions) : null, /*#__PURE__*/React.createElement(PopupMenu, {
|
|
946
|
-
hidden: !_this8.state.showPopup,
|
|
947
|
-
onCloseAttempt: _this8.closePopup,
|
|
948
|
-
ref: _this8.popupRef,
|
|
949
|
-
anchorElement: _this8.node,
|
|
950
|
-
keepMounted: true,
|
|
951
|
-
attached: true,
|
|
952
|
-
className: _this8.props.popupClassName,
|
|
953
|
-
directions: [PopupMenu.PopupProps.Directions.BOTTOM_RIGHT],
|
|
954
|
-
data: useCustomItemRender ? _this8.state.suggestions : _this8.renderSuggestions(),
|
|
955
|
-
"data-test": "ring-query-assist-popup",
|
|
956
|
-
hint: _this8.props.hint,
|
|
957
|
-
shortcutsMap: _this8.listShortcutsMap,
|
|
958
|
-
hintOnSelection: _this8.props.hintOnSelection,
|
|
959
|
-
left: _this8.getPopupOffset(_this8.state.suggestions),
|
|
960
|
-
maxHeight: PopupMenu.PopupProps.MaxHeight.SCREEN,
|
|
961
|
-
onMouseDown: _this8.trackPopupMouseState,
|
|
962
|
-
onMouseUp: _this8.trackPopupMouseState,
|
|
963
|
-
onSelect: function onSelect(item) {
|
|
964
|
-
return _this8.handleComplete(item);
|
|
965
|
-
}
|
|
966
|
-
}), glass && huge && /*#__PURE__*/React.createElement("div", {
|
|
967
|
-
className: modules_da7ab055.rightSearchButton,
|
|
968
|
-
"data-test": "query-assist-search-button"
|
|
969
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
970
|
-
glyph: searchIcon,
|
|
971
|
-
className: modules_da7ab055.rightSearchIcon,
|
|
972
|
-
title: (_translations$searchT3 = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT3 !== void 0 ? _translations$searchT3 : translate('searchTitle'),
|
|
973
|
-
onClick: _this8.handleApply,
|
|
974
|
-
ref: _this8.glassRef,
|
|
975
|
-
"data-test": "query-assist-search-icon"
|
|
976
|
-
})));
|
|
977
|
-
}));
|
|
978
|
-
}
|
|
979
|
-
}], [{
|
|
980
|
-
key: "getDerivedStateFromProps",
|
|
981
|
-
value: function getDerivedStateFromProps(_ref6, _ref7) {
|
|
982
|
-
var query = _ref6.query;
|
|
983
|
-
var prevQuery = _ref7.prevQuery;
|
|
984
|
-
var nextState = {
|
|
985
|
-
prevQuery: query
|
|
986
|
-
};
|
|
987
|
-
if (typeof query === 'string' && query !== prevQuery) {
|
|
988
|
-
nextState.query = query;
|
|
989
|
-
nextState.placeholderEnabled = !query;
|
|
990
|
-
}
|
|
991
|
-
return nextState;
|
|
992
|
-
}
|
|
993
|
-
}]);
|
|
994
|
-
return QueryAssist;
|
|
995
|
-
}(Component);
|
|
996
|
-
_defineProperty(QueryAssist, "propTypes", {
|
|
997
|
-
/**
|
|
998
|
-
* Open suggestions popup during the initial render
|
|
999
|
-
*/
|
|
1000
|
-
autoOpen: PropTypes.oneOf([true, false, 'force']),
|
|
1001
|
-
/**
|
|
1002
|
-
* Initial caret position
|
|
1003
|
-
*/
|
|
1004
|
-
caret: PropTypes.number,
|
|
1005
|
-
/**
|
|
1006
|
-
* Show clickable "cross" icon on the right which clears the query
|
|
1007
|
-
*/
|
|
1008
|
-
clear: PropTypes.bool,
|
|
1009
|
-
/**
|
|
1010
|
-
* Additional class for the component
|
|
1011
|
-
*/
|
|
1012
|
-
className: PropTypes.string,
|
|
1013
|
-
/**
|
|
1014
|
-
* Additional class for the popup
|
|
1015
|
-
*/
|
|
1016
|
-
popupClassName: PropTypes.string,
|
|
1017
|
-
/**
|
|
1018
|
-
* Additional class for the input
|
|
1019
|
-
*/
|
|
1020
|
-
inputClassName: PropTypes.string,
|
|
1021
|
-
/**
|
|
1022
|
-
* Data source function
|
|
1023
|
-
*/
|
|
1024
|
-
dataSource: PropTypes.func.isRequired,
|
|
1025
|
-
/**
|
|
1026
|
-
* Input debounce delay
|
|
1027
|
-
*/
|
|
1028
|
-
delay: PropTypes.number,
|
|
1029
|
-
/**
|
|
1030
|
-
* Disable the component
|
|
1031
|
-
*/
|
|
1032
|
-
disabled: PropTypes.bool,
|
|
1033
|
-
/**
|
|
1034
|
-
* Initial focus
|
|
1035
|
-
*/
|
|
1036
|
-
focus: PropTypes.bool,
|
|
1037
|
-
/**
|
|
1038
|
-
* Hint under the suggestions list
|
|
1039
|
-
*/
|
|
1040
|
-
hint: PropTypes.string,
|
|
1041
|
-
/**
|
|
1042
|
-
* Hint under the suggestions list visible when a suggestion is selected
|
|
1043
|
-
*/
|
|
1044
|
-
hintOnSelection: PropTypes.string,
|
|
1045
|
-
/**
|
|
1046
|
-
* Show clickable "glass" icon on the right which applies the query
|
|
1047
|
-
*/
|
|
1048
|
-
glass: PropTypes.bool,
|
|
1049
|
-
/**
|
|
1050
|
-
* Show loader when a data request is in process
|
|
1051
|
-
*/
|
|
1052
|
-
loader: PropTypes.bool,
|
|
1053
|
-
/**
|
|
1054
|
-
* Field placeholder value
|
|
1055
|
-
*/
|
|
1056
|
-
placeholder: PropTypes.string,
|
|
1057
|
-
/**
|
|
1058
|
-
* Called when the query is applied. An object with fields `caret`, `focus` and `query` is passed as an argument
|
|
1059
|
-
*/
|
|
1060
|
-
onApply: PropTypes.func,
|
|
1061
|
-
/**
|
|
1062
|
-
* Called when the query is changed. An object with fields `caret` and `query` is passed as an argument
|
|
1063
|
-
*/
|
|
1064
|
-
onChange: PropTypes.func,
|
|
1065
|
-
/**
|
|
1066
|
-
* Called when the query is cleared. Called without arguments
|
|
1067
|
-
*/
|
|
1068
|
-
onClear: PropTypes.func,
|
|
1069
|
-
/**
|
|
1070
|
-
* Called when the suggestion is applied
|
|
1071
|
-
*/
|
|
1072
|
-
onApplySuggestion: PropTypes.func,
|
|
1073
|
-
/**
|
|
1074
|
-
* Called when the focus status is changed. An object with fields `focus` is passed as an argument
|
|
1075
|
-
*/
|
|
1076
|
-
onFocusChange: PropTypes.func,
|
|
1077
|
-
/**
|
|
1078
|
-
* Initial query
|
|
1079
|
-
*/
|
|
1080
|
-
query: PropTypes.string,
|
|
1081
|
-
useCustomItemRender: PropTypes.bool,
|
|
1082
|
-
translations: PropTypes.object,
|
|
1083
|
-
actions: PropTypes.array,
|
|
1084
|
-
'data-test': PropTypes.string,
|
|
1085
|
-
huge: PropTypes.bool,
|
|
1086
|
-
size: PropTypes.string
|
|
1087
|
-
});
|
|
1088
|
-
_defineProperty(QueryAssist, "defaultProps", {
|
|
1089
|
-
onApply: noop,
|
|
1090
|
-
onChange: noop,
|
|
1091
|
-
onApplySuggestion: noop,
|
|
1092
|
-
onClear: noop,
|
|
1093
|
-
onFocusChange: noop,
|
|
1094
|
-
size: Size.L
|
|
1095
|
-
});
|
|
1096
|
-
_defineProperty(QueryAssist, "ngModelStateField", ngModelStateField);
|
|
1097
|
-
var RerenderableQueryAssist = rerenderHOC(QueryAssist);
|
|
1098
|
-
|
|
1099
|
-
export { RerenderableQueryAssist, QueryAssist as default };
|