@jetbrains/ring-ui 6.0.4-beta.0 → 6.0.4
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/README.md +10 -6
- package/components/alert/alert.css +12 -13
- package/components/alert/container.css +4 -6
- package/components/alert-service/alert-service.stories.css +0 -3
- package/components/auth/down-notification.css +2 -4
- package/components/auth/request-builder.d.ts +1 -0
- package/components/auth-dialog/auth-dialog.css +10 -12
- package/components/badge/badge.css +1 -3
- package/components/button/button.css +13 -14
- package/components/button-group/button-group.css +6 -5
- package/components/button-set/button-set.css +1 -2
- package/components/button-toolbar/button-toolbar.css +1 -2
- package/components/checkbox/checkbox.css +3 -4
- package/components/code/code.css +3 -5
- package/components/code/code.d.ts +1 -0
- package/components/collapse/collapse-content.d.ts +11 -0
- package/components/collapse/collapse-content.js +72 -0
- package/components/collapse/collapse-context.d.ts +10 -0
- package/components/collapse/collapse-context.js +10 -0
- package/components/collapse/collapse-control.d.ts +11 -0
- package/components/collapse/collapse-control.js +22 -0
- package/components/collapse/collapse.css +40 -0
- package/components/collapse/collapse.d.ts +12 -0
- package/components/collapse/collapse.js +26 -0
- package/components/collapse/collapse.stories.css +25 -0
- package/components/collapse/consts.d.ts +4 -0
- package/components/collapse/consts.js +4 -0
- package/components/collapse/utils.d.ts +1 -0
- package/components/collapse/utils.js +1 -0
- package/components/confirm/confirm.css +1 -3
- package/components/content-layout/content-layout.css +7 -7
- package/components/data-list/data-list.css +4 -5
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-picker.css +40 -41
- package/components/date-picker/date-picker.js +7 -7
- package/components/date-picker/date-popup.js +4 -4
- package/components/date-picker/day.js +9 -9
- package/components/date-picker/month-names.js +6 -6
- package/components/date-picker/month-slider.js +3 -3
- package/components/date-picker/month.js +5 -5
- package/components/date-picker/months.js +6 -6
- package/components/date-picker/weekdays.js +4 -4
- package/components/date-picker/years.js +8 -8
- package/components/dialog/dialog.css +12 -13
- package/components/editable-heading/editable-heading.css +25 -20
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +42 -27
- package/components/error-bubble/error-bubble-legacy.css +6 -8
- package/components/error-bubble/error-bubble.css +6 -8
- package/components/footer/footer.css +6 -8
- package/components/form/form.css +31 -33
- package/components/global/global.css +1 -7
- package/components/global/variables_dark.css +2 -2
- package/components/grid/grid.css +6 -6
- package/components/grid/row.js +3 -3
- package/components/group/group.css +1 -3
- package/components/header/header.css +12 -14
- package/components/header/profile.js +1 -1
- package/components/header/services.css +12 -14
- package/components/icon/icon.css +2 -4
- package/components/input/input-legacy.css +2 -4
- package/components/input/input.css +8 -10
- package/components/input-size/input-size.css +4 -6
- package/components/island/header.js +1 -1
- package/components/island/island.css +6 -7
- package/components/island-legacy/island-legacy.css +6 -8
- package/components/line/line.css +1 -3
- package/components/link/link.css +1 -1
- package/components/link/link.d.ts +2 -2
- package/components/link/link.js +1 -1
- package/components/list/list.css +17 -20
- package/components/list/list.d.ts +0 -1
- package/components/list/list.js +5 -6
- package/components/loader/loader.css +1 -3
- package/components/loader/loader__core.js +6 -6
- package/components/loader-inline/loader-inline.css +5 -6
- package/components/login-dialog/login-dialog.css +1 -3
- package/components/markdown/markdown.css +2 -3
- package/components/message/message.css +5 -8
- package/components/old-browsers-message/old-browsers-message.css +2 -4
- package/components/pager/pager.css +2 -4
- package/components/panel/panel.css +3 -5
- package/components/popup/popup.js +3 -3
- package/components/progress-bar/progress-bar.css +9 -4
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +9 -3
- package/components/query-assist/query-assist.css +3 -4
- package/components/query-assist/query-assist.js +1 -1
- package/components/radio/radio.css +7 -10
- package/components/select/select-popup.css +13 -11
- package/components/select/select.css +13 -14
- package/components/select/select.js +21 -21
- package/components/sidebar/sidebar.css +13 -15
- package/components/table/table.css +15 -17
- package/components/table-legacy/table-legacy.css +22 -24
- package/components/table-legacy/table-legacy__toolbar.css +2 -4
- package/components/tabs/tabs.css +3 -4
- package/components/tag/tag.css +12 -13
- package/components/tags-input/tags-input.css +1 -2
- package/components/toggle/toggle.css +21 -22
- package/components/tooltip/tooltip.css +3 -5
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-card/user-card.css +3 -5
- package/package.json +74 -77
- package/typings.d.ts +0 -54
- package/webpack.config.js +1 -24
- 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/dist/_helpers/_rollupPluginBabelHelpers.js +0 -648
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button__classes.js +0 -34
- package/dist/_helpers/caption.js +0 -31
- package/dist/_helpers/card.js +0 -132
- package/dist/_helpers/date-picker.js +0 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -54
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/heading.js +0 -3
- package/dist/_helpers/icon__svg.js +0 -75
- package/dist/_helpers/input.js +0 -235
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/link.js +0 -3
- package/dist/_helpers/list.js +0 -3
- package/dist/_helpers/query-assist__suggestions.js +0 -102
- package/dist/_helpers/select__filter.js +0 -94
- package/dist/_helpers/services-link.js +0 -48
- package/dist/_helpers/sidebar.js +0 -123
- package/dist/_helpers/tab-link.js +0 -34
- package/dist/_helpers/table.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 -292
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -36
- package/dist/alert-service/alert-service.js +0 -218
- package/dist/analytics/analytics.d.ts +0 -18
- package/dist/analytics/analytics.js +0 -31
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -28
- package/dist/analytics/analytics__custom-plugin.js +0 -90
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -130
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1650
- 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 -155
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -192
- 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 -152
- package/dist/auth/request-builder.d.ts +0 -47
- package/dist/auth/request-builder.js +0 -101
- 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 -422
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -267
- 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 -6
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -90
- 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/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -59
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -131
- 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 -5
- package/dist/button-set/button-set.d.ts +0 -16
- package/dist/button-set/button-set.js +0 -47
- package/dist/button-toolbar/button-toolbar.d.ts +0 -16
- package/dist/button-toolbar/button-toolbar.js +0 -46
- 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/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 -183
- package/dist/code/code.d.ts +0 -43
- package/dist/code/code.js +0 -192
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -151
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -139
- 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 -36
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -246
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -192
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -234
- 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 -28
- 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 -177
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -402
- package/dist/date-picker/date-popup.d.ts +0 -55
- package/dist/date-picker/date-popup.js +0 -488
- 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 -238
- package/dist/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -6
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -24
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -247
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -36
- package/dist/dropdown-menu/dropdown-menu.js +0 -194
- package/dist/editable-heading/editable-heading.d.ts +0 -32
- package/dist/editable-heading/editable-heading.js +0 -245
- 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/footer/footer.d.ts +0 -28
- package/dist/footer/footer.js +0 -118
- 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 -1
- package/dist/global/react-render-adapter.js +0 -6
- package/dist/global/rerender-hoc.d.ts +0 -10
- package/dist/global/rerender-hoc.js +0 -46
- 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 -89
- 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 -70
- package/dist/group/group.d.ts +0 -12
- package/dist/group/group.js +0 -39
- package/dist/header/header.d.ts +0 -34
- package/dist/header/header.js +0 -184
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -51
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -252
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -13
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -172
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -298
- package/dist/header/smart-services.d.ts +0 -26
- package/dist/header/smart-services.js +0 -189
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -57
- 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 -69
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -385
- 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 -44
- 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 -109
- 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 -14
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -17
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -35
- 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 -99
- 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/link/clickableLink.d.ts +0 -20
- package/dist/link/clickableLink.js +0 -69
- package/dist/link/link.d.ts +0 -138
- package/dist/link/link.js +0 -86
- package/dist/list/consts.d.ts +0 -77
- package/dist/list/consts.js +0 -27
- package/dist/list/list.d.ts +0 -206
- package/dist/list/list.js +0 -795
- 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 -234
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -76
- 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 -190
- 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 -313
- package/dist/loader-inline/loader-inline.d.ts +0 -18
- package/dist/loader-inline/loader-inline.js +0 -50
- package/dist/loader-screen/loader-screen.d.ts +0 -17
- package/dist/loader-screen/loader-screen.js +0 -62
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -212
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -94
- package/dist/markdown/markdown.d.ts +0 -12
- package/dist/markdown/markdown.js +0 -43
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -265
- 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 -385
- package/dist/panel/panel.d.ts +0 -12
- package/dist/panel/panel.js +0 -39
- 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/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 -419
- 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 -80
- package/dist/popup-menu/popup-menu.js +0 -136
- package/dist/progress-bar/progress-bar.d.ts +0 -58
- package/dist/progress-bar/progress-bar.js +0 -113
- package/dist/query-assist/query-assist.d.ts +0 -306
- package/dist/query-assist/query-assist.js +0 -1092
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -70
- package/dist/radio/radio.d.ts +0 -18
- package/dist/radio/radio.js +0 -48
- package/dist/radio/radio__item.d.ts +0 -28
- package/dist/radio/radio__item.js +0 -88
- package/dist/select/select.d.ts +0 -276
- package/dist/select/select.js +0 -1285
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -80
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -626
- 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/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -89
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -251
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -215
- 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 -109
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -151
- 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 -115
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -297
- 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 -145
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -459
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -217
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -88
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -349
- 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 -184
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -136
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -13
- 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 -94
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -213
- package/dist/tags-input/tags-input.d.ts +0 -138
- package/dist/tags-input/tags-input.js +0 -529
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -102
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -57
- package/dist/toggle/toggle.d.ts +0 -39
- package/dist/toggle/toggle.js +0 -86
- package/dist/tooltip/tooltip.d.ts +0 -65
- package/dist/tooltip/tooltip.js +0 -227
- package/dist/user-agreement/service.d.ts +0 -69
- package/dist/user-agreement/service.js +0 -484
- 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 -60
- package/dist/user-agreement/user-agreement.js +0 -170
- package/dist/user-card/card.d.ts +0 -70
- package/dist/user-card/card.js +0 -76
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -168
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -140
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -81
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { a as _inherits, b as _createSuper, c as _classCallCheck, _ as _defineProperty, k as _assertThisInitialized, d as _createClass, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.concat.js';
|
|
3
|
-
import React, { PureComponent } from 'react';
|
|
4
|
-
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
|
5
|
-
import Row from './row.js';
|
|
6
|
-
import 'prop-types';
|
|
7
|
-
import '../global/prop-types.js';
|
|
8
|
-
import '../global/composeRefs.js';
|
|
9
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
10
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
11
|
-
import 'core-js/modules/es.array.map.js';
|
|
12
|
-
import 'classnames';
|
|
13
|
-
import '@jetbrains/icons/chevron-right';
|
|
14
|
-
import '@jetbrains/icons/chevron-down';
|
|
15
|
-
import '@jetbrains/icons/drag';
|
|
16
|
-
import '../checkbox/checkbox.js';
|
|
17
|
-
import '@jetbrains/icons/checkmark-14px';
|
|
18
|
-
import '@jetbrains/icons/remove-14px';
|
|
19
|
-
import '../icon/icon.js';
|
|
20
|
-
import 'util-deprecate';
|
|
21
|
-
import '../icon/icon__constants.js';
|
|
22
|
-
import '../_helpers/icon__svg.js';
|
|
23
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
24
|
-
import 'core-js/modules/es.string.replace.js';
|
|
25
|
-
import 'core-js/modules/es.string.starts-with.js';
|
|
26
|
-
import '../global/memoize.js';
|
|
27
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
28
|
-
import 'core-js/modules/es.map.js';
|
|
29
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
30
|
-
import 'core-js/modules/es.weak-map.js';
|
|
31
|
-
import '../button/button.js';
|
|
32
|
-
import '@jetbrains/icons/chevron-10px';
|
|
33
|
-
import '../link/clickableLink.js';
|
|
34
|
-
import '../global/controls-height.js';
|
|
35
|
-
import '../_helpers/button__classes.js';
|
|
36
|
-
import '../tooltip/tooltip.js';
|
|
37
|
-
import '../popup/popup.js';
|
|
38
|
-
import 'core-js/modules/es.object.entries.js';
|
|
39
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
40
|
-
import 'react-dom';
|
|
41
|
-
import '../global/get-uid.js';
|
|
42
|
-
import '../global/schedule-raf.js';
|
|
43
|
-
import '../global/dom.js';
|
|
44
|
-
import 'core-js/modules/es.array.filter.js';
|
|
45
|
-
import 'core-js/modules/es.string.split.js';
|
|
46
|
-
import 'core-js/modules/es.set.js';
|
|
47
|
-
import '../shortcuts/shortcuts.js';
|
|
48
|
-
import '../shortcuts/core.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.slice.js';
|
|
52
|
-
import 'core-js/modules/es.array.splice.js';
|
|
53
|
-
import 'core-js/modules/es.string.match.js';
|
|
54
|
-
import 'combokeys';
|
|
55
|
-
import '../global/sniffer.js';
|
|
56
|
-
import 'sniffr';
|
|
57
|
-
import '../global/data-tests.js';
|
|
58
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
59
|
-
import '../tab-trap/tab-trap.js';
|
|
60
|
-
import '../popup/position.js';
|
|
61
|
-
import 'core-js/modules/es.array.sort.js';
|
|
62
|
-
import '../popup/popup.consts.js';
|
|
63
|
-
import '../popup/popup.target.js';
|
|
64
|
-
import './cell.js';
|
|
65
|
-
import '../_helpers/table.js';
|
|
66
|
-
|
|
67
|
-
var getContainer = function getContainer() {
|
|
68
|
-
return focusSensorHOC(Row);
|
|
69
|
-
};
|
|
70
|
-
var RowWithFocusSensorCallbacks = /*#__PURE__*/function (_PureComponent) {
|
|
71
|
-
_inherits(RowWithFocusSensorCallbacks, _PureComponent);
|
|
72
|
-
var _super = _createSuper(RowWithFocusSensorCallbacks);
|
|
73
|
-
function RowWithFocusSensorCallbacks() {
|
|
74
|
-
var _this;
|
|
75
|
-
_classCallCheck(this, RowWithFocusSensorCallbacks);
|
|
76
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
77
|
-
args[_key] = arguments[_key];
|
|
78
|
-
}
|
|
79
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
80
|
-
// https://stackoverflow.com/a/53882322/6304152
|
|
81
|
-
_defineProperty(_assertThisInitialized(_this), "RowWithFocusSensor", getContainer());
|
|
82
|
-
_defineProperty(_assertThisInitialized(_this), "onFocus", function () {
|
|
83
|
-
var _this$props$onFocus, _this$props;
|
|
84
|
-
(_this$props$onFocus = (_this$props = _this.props).onFocus) === null || _this$props$onFocus === void 0 ? void 0 : _this$props$onFocus.call(_this$props, _this.props.item);
|
|
85
|
-
});
|
|
86
|
-
_defineProperty(_assertThisInitialized(_this), "onSelect", function (item, selected) {
|
|
87
|
-
var _this$props$onSelect, _this$props2;
|
|
88
|
-
(_this$props$onSelect = (_this$props2 = _this.props).onSelect) === null || _this$props$onSelect === void 0 ? void 0 : _this$props$onSelect.call(_this$props2, item, selected);
|
|
89
|
-
});
|
|
90
|
-
_defineProperty(_assertThisInitialized(_this), "onCollapse", function () {
|
|
91
|
-
var _this$props$onCollaps, _this$props3;
|
|
92
|
-
(_this$props$onCollaps = (_this$props3 = _this.props).onCollapse) === null || _this$props$onCollaps === void 0 ? void 0 : _this$props$onCollaps.call(_this$props3, _this.props.item);
|
|
93
|
-
});
|
|
94
|
-
_defineProperty(_assertThisInitialized(_this), "onExpand", function () {
|
|
95
|
-
var _this$props$onExpand, _this$props4;
|
|
96
|
-
(_this$props$onExpand = (_this$props4 = _this.props).onExpand) === null || _this$props$onExpand === void 0 ? void 0 : _this$props$onExpand.call(_this$props4, _this.props.item);
|
|
97
|
-
});
|
|
98
|
-
return _this;
|
|
99
|
-
}
|
|
100
|
-
_createClass(RowWithFocusSensorCallbacks, [{
|
|
101
|
-
key: "render",
|
|
102
|
-
value: function render() {
|
|
103
|
-
return /*#__PURE__*/React.createElement(this.RowWithFocusSensor, _extends({}, this.props, {
|
|
104
|
-
onFocus: this.onFocus,
|
|
105
|
-
onSelect: this.onSelect,
|
|
106
|
-
onCollapse: this.onCollapse,
|
|
107
|
-
onExpand: this.onExpand
|
|
108
|
-
}));
|
|
109
|
-
}
|
|
110
|
-
}]);
|
|
111
|
-
return RowWithFocusSensorCallbacks;
|
|
112
|
-
}(PureComponent);
|
|
113
|
-
RowWithFocusSensorCallbacks.propTypes = Row.propTypes;
|
|
114
|
-
|
|
115
|
-
export { RowWithFocusSensorCallbacks as default };
|
package/dist/table/row.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes, PureComponent } from 'react';
|
|
2
|
-
import { FocusSensorAddProps } from '../global/focus-sensor-hoc';
|
|
3
|
-
import { Column } from './header-cell';
|
|
4
|
-
import { SelectionItem } from './selection';
|
|
5
|
-
export interface RowProps<T extends SelectionItem> extends Omit<HTMLAttributes<HTMLTableRowElement>, 'onClick' | 'onDoubleClick' | 'onSelect'>, FocusSensorAddProps<HTMLTableRowElement> {
|
|
6
|
-
item: T;
|
|
7
|
-
columns: readonly Column<T>[];
|
|
8
|
-
selectable: boolean;
|
|
9
|
-
showFocus: boolean;
|
|
10
|
-
draggable: boolean;
|
|
11
|
-
alwaysShowDragHandle: boolean;
|
|
12
|
-
dragHandleTitle?: string;
|
|
13
|
-
selected: boolean;
|
|
14
|
-
onHover: (item: T, e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
15
|
-
onSelect: (item: T, selected: boolean) => void;
|
|
16
|
-
onDoubleClick: (item: T) => void;
|
|
17
|
-
onClick: (item: T, e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
18
|
-
level: number;
|
|
19
|
-
collapsible: boolean;
|
|
20
|
-
parentCollapsible: boolean;
|
|
21
|
-
collapsed: boolean;
|
|
22
|
-
onCollapse: (item: T) => void;
|
|
23
|
-
onExpand: (item: T) => void;
|
|
24
|
-
showDisabledSelection?: boolean | null | undefined;
|
|
25
|
-
checkboxTooltip?: string | undefined;
|
|
26
|
-
autofocus?: boolean | null | undefined;
|
|
27
|
-
'data-test'?: string | null | undefined;
|
|
28
|
-
metaColumnClassName?: string | null | undefined;
|
|
29
|
-
}
|
|
30
|
-
export default class Row<T extends SelectionItem> extends PureComponent<RowProps<T>> {
|
|
31
|
-
static defaultProps: {
|
|
32
|
-
selectable: boolean;
|
|
33
|
-
showFocus: boolean;
|
|
34
|
-
draggable: boolean;
|
|
35
|
-
alwaysShowDragHandle: boolean;
|
|
36
|
-
selected: boolean;
|
|
37
|
-
onHover: () => void;
|
|
38
|
-
onSelect: () => void;
|
|
39
|
-
onDoubleClick: () => void;
|
|
40
|
-
onClick: () => void;
|
|
41
|
-
level: number;
|
|
42
|
-
collapsible: boolean;
|
|
43
|
-
parentCollapsible: boolean;
|
|
44
|
-
collapsed: boolean;
|
|
45
|
-
onCollapse: () => void;
|
|
46
|
-
onExpand: () => void;
|
|
47
|
-
};
|
|
48
|
-
id: string;
|
|
49
|
-
onMouseEnter: (e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
50
|
-
onClick: (e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
51
|
-
onCheckboxFocus: () => void;
|
|
52
|
-
onCheckboxChange: () => void;
|
|
53
|
-
toggleSelection(): void;
|
|
54
|
-
onDoubleClick: () => void;
|
|
55
|
-
row?: HTMLElement | null;
|
|
56
|
-
rowRef: (el: HTMLElement | null) => void;
|
|
57
|
-
render(): React.JSX.Element;
|
|
58
|
-
}
|
|
59
|
-
export type RowAttrs<T extends SelectionItem> = JSX.LibraryManagedAttributes<typeof Row, RowProps<T>>;
|
package/dist/table/row.js
DELETED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.concat.js';
|
|
3
|
-
import 'core-js/modules/es.array.map.js';
|
|
4
|
-
import React, { PureComponent } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
8
|
-
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
9
|
-
import dragIcon from '@jetbrains/icons/drag';
|
|
10
|
-
import Checkbox from '../checkbox/checkbox.js';
|
|
11
|
-
import { Button } from '../button/button.js';
|
|
12
|
-
import Tooltip from '../tooltip/tooltip.js';
|
|
13
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
|
14
|
-
import getUID from '../global/get-uid.js';
|
|
15
|
-
import composeRefs from '../global/composeRefs.js';
|
|
16
|
-
import Cell from './cell.js';
|
|
17
|
-
import { m as modules_1db4bbca } from '../_helpers/table.js';
|
|
18
|
-
import '@jetbrains/icons/checkmark-14px';
|
|
19
|
-
import '@jetbrains/icons/remove-14px';
|
|
20
|
-
import '../icon/icon.js';
|
|
21
|
-
import 'util-deprecate';
|
|
22
|
-
import '../icon/icon__constants.js';
|
|
23
|
-
import '../_helpers/icon__svg.js';
|
|
24
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
25
|
-
import 'core-js/modules/es.string.replace.js';
|
|
26
|
-
import 'core-js/modules/es.string.starts-with.js';
|
|
27
|
-
import '../global/memoize.js';
|
|
28
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
29
|
-
import 'core-js/modules/es.map.js';
|
|
30
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
31
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
32
|
-
import 'core-js/modules/es.weak-map.js';
|
|
33
|
-
import '../global/prop-types.js';
|
|
34
|
-
import '@jetbrains/icons/chevron-10px';
|
|
35
|
-
import '../link/clickableLink.js';
|
|
36
|
-
import '../global/controls-height.js';
|
|
37
|
-
import '../_helpers/button__classes.js';
|
|
38
|
-
import '../popup/popup.js';
|
|
39
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
40
|
-
import 'core-js/modules/es.object.entries.js';
|
|
41
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
42
|
-
import 'react-dom';
|
|
43
|
-
import '../global/schedule-raf.js';
|
|
44
|
-
import '../global/dom.js';
|
|
45
|
-
import 'core-js/modules/es.array.filter.js';
|
|
46
|
-
import 'core-js/modules/es.string.split.js';
|
|
47
|
-
import 'core-js/modules/es.set.js';
|
|
48
|
-
import '../shortcuts/shortcuts.js';
|
|
49
|
-
import '../shortcuts/core.js';
|
|
50
|
-
import 'core-js/modules/es.array.includes.js';
|
|
51
|
-
import 'core-js/modules/es.string.includes.js';
|
|
52
|
-
import 'core-js/modules/es.array.slice.js';
|
|
53
|
-
import 'core-js/modules/es.array.splice.js';
|
|
54
|
-
import 'core-js/modules/es.string.match.js';
|
|
55
|
-
import 'combokeys';
|
|
56
|
-
import '../global/sniffer.js';
|
|
57
|
-
import 'sniffr';
|
|
58
|
-
import '../tab-trap/tab-trap.js';
|
|
59
|
-
import '../popup/position.js';
|
|
60
|
-
import 'core-js/modules/es.array.sort.js';
|
|
61
|
-
import '../popup/popup.consts.js';
|
|
62
|
-
import '../popup/popup.target.js';
|
|
63
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
64
|
-
|
|
65
|
-
var _excluded = ["item", "columns", "selectable", "selected", "showFocus", "draggable", "alwaysShowDragHandle", "dragHandleTitle", "level", "collapsible", "parentCollapsible", "collapsed", "onCollapse", "onExpand", "showDisabledSelection", "onSelect", "checkboxTooltip", "innerRef", "focused", "autofocus", "onFocusReset", "onFocusRestore", "onHover", "className", "metaColumnClassName", "data-test"];
|
|
66
|
-
var DragHandle = function DragHandle(_ref) {
|
|
67
|
-
var alwaysShowDragHandle = _ref.alwaysShowDragHandle,
|
|
68
|
-
_ref$dragHandleTitle = _ref.dragHandleTitle,
|
|
69
|
-
dragHandleTitle = _ref$dragHandleTitle === void 0 ? 'Drag to reorder' : _ref$dragHandleTitle;
|
|
70
|
-
var classes = classNames(modules_1db4bbca.dragHandle, {
|
|
71
|
-
[modules_1db4bbca.visibleDragHandle]: alwaysShowDragHandle
|
|
72
|
-
});
|
|
73
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
74
|
-
"data-movable-handle": true,
|
|
75
|
-
title: dragHandleTitle,
|
|
76
|
-
className: classes,
|
|
77
|
-
icon: dragIcon
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
DragHandle.propTypes = {
|
|
81
|
-
alwaysShowDragHandle: PropTypes.bool,
|
|
82
|
-
dragHandleTitle: PropTypes.string
|
|
83
|
-
};
|
|
84
|
-
var Row = /*#__PURE__*/function (_PureComponent) {
|
|
85
|
-
_inherits(Row, _PureComponent);
|
|
86
|
-
var _super = _createSuper(Row);
|
|
87
|
-
function Row() {
|
|
88
|
-
var _this;
|
|
89
|
-
_classCallCheck(this, Row);
|
|
90
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
91
|
-
args[_key] = arguments[_key];
|
|
92
|
-
}
|
|
93
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
94
|
-
_defineProperty(_assertThisInitialized(_this), "id", getUID('table-row-'));
|
|
95
|
-
_defineProperty(_assertThisInitialized(_this), "onMouseEnter", function (e) {
|
|
96
|
-
var _this$props = _this.props,
|
|
97
|
-
item = _this$props.item,
|
|
98
|
-
onHover = _this$props.onHover;
|
|
99
|
-
onHover(item, e);
|
|
100
|
-
});
|
|
101
|
-
_defineProperty(_assertThisInitialized(_this), "onClick", function (e) {
|
|
102
|
-
var item = _this.props.item;
|
|
103
|
-
_this.props.onClick(item, e);
|
|
104
|
-
if (e.shiftKey) {
|
|
105
|
-
_this.toggleSelection();
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
_defineProperty(_assertThisInitialized(_this), "onCheckboxFocus", function () {
|
|
109
|
-
_this.props.onFocusRestore();
|
|
110
|
-
});
|
|
111
|
-
_defineProperty(_assertThisInitialized(_this), "onCheckboxChange", function () {
|
|
112
|
-
_this.toggleSelection();
|
|
113
|
-
});
|
|
114
|
-
_defineProperty(_assertThisInitialized(_this), "onDoubleClick", function () {
|
|
115
|
-
var item = _this.props.item;
|
|
116
|
-
_this.props.onDoubleClick(item);
|
|
117
|
-
});
|
|
118
|
-
_defineProperty(_assertThisInitialized(_this), "row", void 0);
|
|
119
|
-
_defineProperty(_assertThisInitialized(_this), "rowRef", function (el) {
|
|
120
|
-
_this.row = el;
|
|
121
|
-
});
|
|
122
|
-
return _this;
|
|
123
|
-
}
|
|
124
|
-
_createClass(Row, [{
|
|
125
|
-
key: "toggleSelection",
|
|
126
|
-
value: function toggleSelection() {
|
|
127
|
-
var _this$props2 = this.props,
|
|
128
|
-
selectable = _this$props2.selectable,
|
|
129
|
-
selected = _this$props2.selected,
|
|
130
|
-
onSelect = _this$props2.onSelect,
|
|
131
|
-
item = _this$props2.item;
|
|
132
|
-
if (selectable) {
|
|
133
|
-
onSelect(item, !selected);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}, {
|
|
137
|
-
key: "render",
|
|
138
|
-
value: function render() {
|
|
139
|
-
var _this$props3 = this.props,
|
|
140
|
-
item = _this$props3.item,
|
|
141
|
-
columns = _this$props3.columns,
|
|
142
|
-
selectable = _this$props3.selectable,
|
|
143
|
-
selected = _this$props3.selected,
|
|
144
|
-
showFocus = _this$props3.showFocus,
|
|
145
|
-
draggable = _this$props3.draggable,
|
|
146
|
-
alwaysShowDragHandle = _this$props3.alwaysShowDragHandle,
|
|
147
|
-
dragHandleTitle = _this$props3.dragHandleTitle,
|
|
148
|
-
level = _this$props3.level,
|
|
149
|
-
collapsible = _this$props3.collapsible,
|
|
150
|
-
parentCollapsible = _this$props3.parentCollapsible,
|
|
151
|
-
collapsed = _this$props3.collapsed,
|
|
152
|
-
onCollapse = _this$props3.onCollapse,
|
|
153
|
-
onExpand = _this$props3.onExpand,
|
|
154
|
-
showDisabledSelection = _this$props3.showDisabledSelection;
|
|
155
|
-
_this$props3.onSelect;
|
|
156
|
-
var checkboxTooltip = _this$props3.checkboxTooltip,
|
|
157
|
-
innerRef = _this$props3.innerRef;
|
|
158
|
-
_this$props3.focused;
|
|
159
|
-
_this$props3.autofocus;
|
|
160
|
-
_this$props3.onFocusReset;
|
|
161
|
-
_this$props3.onFocusRestore;
|
|
162
|
-
_this$props3.onHover;
|
|
163
|
-
var className = _this$props3.className,
|
|
164
|
-
metaColumnClassName = _this$props3.metaColumnClassName,
|
|
165
|
-
dataTest = _this$props3['data-test'],
|
|
166
|
-
restProps = _objectWithoutProperties(_this$props3, _excluded);
|
|
167
|
-
var classes = classNames(className, {
|
|
168
|
-
[modules_1db4bbca.row]: true,
|
|
169
|
-
[modules_1db4bbca.rowFocused]: showFocus,
|
|
170
|
-
[modules_1db4bbca.rowSelected]: selected
|
|
171
|
-
});
|
|
172
|
-
var testAttrs = {
|
|
173
|
-
'data-test-focused': showFocus || undefined,
|
|
174
|
-
'data-test-selected': selected || undefined
|
|
175
|
-
};
|
|
176
|
-
var metaColumnClasses = classNames(metaColumnClassName, modules_1db4bbca.metaColumn);
|
|
177
|
-
var SUBITEM_OFFSET = 30;
|
|
178
|
-
var COLLAPSIBLE_PARENT_OFFSET = 20;
|
|
179
|
-
var gap = level * SUBITEM_OFFSET + (parentCollapsible ? COLLAPSIBLE_PARENT_OFFSET : 0);
|
|
180
|
-
var metaColumnStyle = {
|
|
181
|
-
paddingLeft: "".concat(gap, "px")
|
|
182
|
-
};
|
|
183
|
-
var metaColumn = /*#__PURE__*/React.createElement("div", {
|
|
184
|
-
className: metaColumnClasses,
|
|
185
|
-
style: metaColumnStyle
|
|
186
|
-
}, draggable && /*#__PURE__*/React.createElement(DragHandle, {
|
|
187
|
-
alwaysShowDragHandle: alwaysShowDragHandle,
|
|
188
|
-
dragHandleTitle: dragHandleTitle
|
|
189
|
-
}), selectable && /*#__PURE__*/React.createElement(Tooltip, {
|
|
190
|
-
title: checkboxTooltip
|
|
191
|
-
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
192
|
-
"aria-labelledby": this.id,
|
|
193
|
-
className: showFocus ? 'ring-checkbox_focus' : '',
|
|
194
|
-
checked: selected,
|
|
195
|
-
onFocus: this.onCheckboxFocus,
|
|
196
|
-
onChange: this.onCheckboxChange,
|
|
197
|
-
tabIndex: -1
|
|
198
|
-
})), !selectable && showDisabledSelection && /*#__PURE__*/React.createElement(Tooltip, {
|
|
199
|
-
title: checkboxTooltip
|
|
200
|
-
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
201
|
-
"aria-labelledby": this.id,
|
|
202
|
-
checked: selected,
|
|
203
|
-
disabled: true
|
|
204
|
-
})), collapsible && collapsed && /*#__PURE__*/React.createElement(Button, {
|
|
205
|
-
className: modules_1db4bbca.rowCollapseExpandButton,
|
|
206
|
-
icon: chevronRightIcon,
|
|
207
|
-
onClick: function onClick() {
|
|
208
|
-
return onExpand(item);
|
|
209
|
-
}
|
|
210
|
-
}), collapsible && !collapsed && /*#__PURE__*/React.createElement(Button, {
|
|
211
|
-
className: modules_1db4bbca.rowCollapseExpandButton,
|
|
212
|
-
icon: chevronDownIcon,
|
|
213
|
-
onClick: function onClick() {
|
|
214
|
-
return onCollapse(item);
|
|
215
|
-
}
|
|
216
|
-
}));
|
|
217
|
-
var cells = columns.map(function (column, index) {
|
|
218
|
-
var getValue = column.getValue || function () {
|
|
219
|
-
return item[column.id];
|
|
220
|
-
};
|
|
221
|
-
var getDataTest = column.getDataTest || function () {
|
|
222
|
-
return column.id;
|
|
223
|
-
};
|
|
224
|
-
var value = getValue(item, column);
|
|
225
|
-
var cellClasses = classNames({
|
|
226
|
-
[modules_1db4bbca.cellRight]: column.rightAlign
|
|
227
|
-
}, column.className);
|
|
228
|
-
var showMetaColumn = draggable || selectable || collapsible || showDisabledSelection || !!level;
|
|
229
|
-
return /*#__PURE__*/React.createElement(Cell, {
|
|
230
|
-
key: column.id,
|
|
231
|
-
className: cellClasses,
|
|
232
|
-
"data-test": getDataTest(item, column)
|
|
233
|
-
}, index === 0 && showMetaColumn && metaColumn, value);
|
|
234
|
-
});
|
|
235
|
-
return /*#__PURE__*/React.createElement("tr", _extends({
|
|
236
|
-
id: this.id,
|
|
237
|
-
ref: composeRefs(this.rowRef, innerRef),
|
|
238
|
-
className: classes,
|
|
239
|
-
tabIndex: 0,
|
|
240
|
-
"data-test": joinDataTestAttributes('ring-table-row', dataTest)
|
|
241
|
-
}, testAttrs, restProps, {
|
|
242
|
-
onMouseMove: this.onMouseEnter,
|
|
243
|
-
onClick: this.onClick,
|
|
244
|
-
onDoubleClick: this.onDoubleClick
|
|
245
|
-
}), cells);
|
|
246
|
-
}
|
|
247
|
-
}]);
|
|
248
|
-
return Row;
|
|
249
|
-
}(PureComponent);
|
|
250
|
-
_defineProperty(Row, "defaultProps", {
|
|
251
|
-
selectable: true,
|
|
252
|
-
showFocus: false,
|
|
253
|
-
draggable: false,
|
|
254
|
-
alwaysShowDragHandle: false,
|
|
255
|
-
selected: false,
|
|
256
|
-
onHover: function onHover() {},
|
|
257
|
-
onSelect: function onSelect() {},
|
|
258
|
-
onDoubleClick: function onDoubleClick() {},
|
|
259
|
-
onClick: function onClick() {},
|
|
260
|
-
level: 0,
|
|
261
|
-
collapsible: false,
|
|
262
|
-
parentCollapsible: false,
|
|
263
|
-
collapsed: false,
|
|
264
|
-
onCollapse: function onCollapse() {},
|
|
265
|
-
onExpand: function onExpand() {}
|
|
266
|
-
});
|
|
267
|
-
Row.propTypes = {
|
|
268
|
-
className: PropTypes.string,
|
|
269
|
-
metaColumnClassName: PropTypes.string,
|
|
270
|
-
item: PropTypes.object.isRequired,
|
|
271
|
-
columns: PropTypes.array.isRequired,
|
|
272
|
-
selectable: PropTypes.bool,
|
|
273
|
-
showFocus: PropTypes.bool,
|
|
274
|
-
draggable: PropTypes.bool,
|
|
275
|
-
alwaysShowDragHandle: PropTypes.bool,
|
|
276
|
-
selected: PropTypes.bool,
|
|
277
|
-
onHover: PropTypes.func,
|
|
278
|
-
onSelect: PropTypes.func,
|
|
279
|
-
onDoubleClick: PropTypes.func,
|
|
280
|
-
onClick: PropTypes.func,
|
|
281
|
-
onFocusRestore: PropTypes.func,
|
|
282
|
-
level: PropTypes.number,
|
|
283
|
-
collapsible: PropTypes.bool,
|
|
284
|
-
parentCollapsible: PropTypes.bool,
|
|
285
|
-
collapsed: PropTypes.bool,
|
|
286
|
-
onCollapse: PropTypes.func,
|
|
287
|
-
onExpand: PropTypes.func,
|
|
288
|
-
showDisabledSelection: PropTypes.bool,
|
|
289
|
-
checkboxTooltip: PropTypes.string,
|
|
290
|
-
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
291
|
-
focused: PropTypes.bool,
|
|
292
|
-
autofocus: PropTypes.bool,
|
|
293
|
-
onFocusReset: PropTypes.func,
|
|
294
|
-
'data-test': PropTypes.string
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
export { Row as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { l as _toConsumableArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
|
|
3
|
-
function selectionAdapter(getSelection) {
|
|
4
|
-
return {
|
|
5
|
-
get size() {
|
|
6
|
-
return getSelection().getActive().size;
|
|
7
|
-
},
|
|
8
|
-
get items() {
|
|
9
|
-
return _toConsumableArray(getSelection().getActive());
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { selectionAdapter as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { ShortcutsMap } from '../shortcuts/core';
|
|
3
|
-
import Selection, { SelectionItem } from './selection';
|
|
4
|
-
export interface SelectionShortcutsOuterProps<T extends SelectionItem> {
|
|
5
|
-
selection: Selection<T>;
|
|
6
|
-
selectable?: boolean | undefined;
|
|
7
|
-
onSelect?: ((selection: Selection<T>) => void) | undefined;
|
|
8
|
-
shortcuts?: ShortcutsMap | undefined;
|
|
9
|
-
}
|
|
10
|
-
export interface SelectionShortcutsAddProps<T extends SelectionItem> {
|
|
11
|
-
selection: Selection<T>;
|
|
12
|
-
selectable: boolean;
|
|
13
|
-
onSelect: (selection: Selection<T>) => void;
|
|
14
|
-
shortcutsMap: ShortcutsMap;
|
|
15
|
-
}
|
|
16
|
-
export type SelectionShortcutsProps<T extends SelectionItem, P> = Omit<P, keyof SelectionShortcutsAddProps<T>> & SelectionShortcutsOuterProps<T>;
|
|
17
|
-
export default function selectionShortcutsHOC<T extends SelectionItem, P extends SelectionShortcutsAddProps<T>>(ComposedComponent: ComponentType<P>): ComponentType<SelectionShortcutsProps<T, P>>;
|