@jetbrains/ring-ui-built 6.0.34 → 6.0.36
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/components/_helpers/_rollupPluginBabelHelpers.js +1 -10
- package/components/_helpers/anchor.js +9 -6
- package/components/_helpers/caption.js +5 -4
- package/components/_helpers/card.js +65 -49
- package/components/_helpers/icon__svg.js +4 -3
- package/components/_helpers/input.js +45 -36
- package/components/_helpers/query-assist__suggestions.js +18 -14
- package/components/_helpers/select__filter.js +22 -17
- package/components/_helpers/services-link.js +14 -12
- package/components/_helpers/sidebar.js +20 -16
- package/components/_helpers/tab-link.js +21 -13
- package/components/_helpers/theme.js +18 -11
- package/components/_helpers/title.js +20 -16
- package/components/alert/alert.d.ts +2 -1
- package/components/alert/alert.js +20 -17
- package/components/alert/container.d.ts +2 -2
- package/components/alert/container.js +14 -11
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +14 -14
- package/components/analytics/analytics.js +1 -1
- package/components/analytics/analytics__custom-plugin.js +1 -1
- package/components/auth/auth.js +1 -0
- package/components/auth/auth__core.js +3 -2
- package/components/auth/background-flow.js +1 -1
- package/components/auth/down-notification.d.ts +1 -1
- package/components/auth/down-notification.js +21 -14
- package/components/auth/iframe-flow.js +7 -5
- package/components/auth/request-builder.js +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +42 -32
- package/components/auth-dialog-service/auth-dialog-service.js +6 -7
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +29 -28
- package/components/avatar/fallback-avatar.d.ts +2 -2
- package/components/avatar/fallback-avatar.js +50 -37
- package/components/badge/badge.d.ts +2 -2
- package/components/badge/badge.js +7 -8
- package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.js +27 -0
- package/components/button/button.d.ts +2 -1
- package/components/button/button.js +26 -25
- package/components/button-group/button-group.d.ts +4 -2
- package/components/button-group/button-group.js +19 -10
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-group/caption.js +1 -0
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-set/button-set.js +7 -8
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.js +4 -6
- package/components/caret/caret.js +1 -1
- package/components/checkbox/checkbox.d.ts +3 -2
- package/components/checkbox/checkbox.js +33 -28
- package/components/clipboard/clipboard.js +3 -2
- package/components/code/code.d.ts +3 -3
- package/components/code/code.js +14 -11
- package/components/collapse/collapse-content.d.ts +2 -1
- package/components/collapse/collapse-content.js +13 -10
- package/components/collapse/collapse-control.d.ts +1 -1
- package/components/collapse/collapse-control.js +10 -11
- package/components/collapse/collapse.d.ts +2 -1
- package/components/collapse/collapse.js +16 -16
- package/components/confirm/confirm.d.ts +2 -1
- package/components/confirm/confirm.js +29 -21
- package/components/confirm-service/confirm-service.js +6 -4
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/content-layout.js +12 -12
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/content-layout/sidebar.js +1 -0
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/contenteditable/contenteditable.js +5 -7
- package/components/control-help/control-help.d.ts +4 -0
- package/components/control-help/control-help.js +16 -0
- package/components/control-label/control-label.d.ts +2 -1
- package/components/control-label/control-label.js +7 -4
- package/components/data-list/data-list.d.ts +11 -11
- package/components/data-list/data-list.js +44 -40
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +165 -73
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +49 -40
- package/components/data-list/selection.js +1 -1
- package/components/data-list/title.d.ts +3 -3
- package/components/data-list/title.js +2 -0
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +5 -3
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +43 -34
- package/components/date-picker/date-popup.d.ts +2 -1
- package/components/date-picker/date-popup.js +51 -45
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +11 -8
- package/components/date-picker/month-names.d.ts +2 -2
- package/components/date-picker/month-names.js +27 -25
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +15 -13
- package/components/date-picker/month.d.ts +2 -2
- package/components/date-picker/month.js +18 -15
- package/components/date-picker/months.d.ts +2 -2
- package/components/date-picker/months.js +18 -15
- package/components/date-picker/weekdays.d.ts +2 -2
- package/components/date-picker/weekdays.js +14 -13
- package/components/date-picker/years.d.ts +3 -3
- package/components/date-picker/years.js +19 -17
- package/components/dialog/dialog.d.ts +2 -1
- package/components/dialog/dialog.js +48 -45
- package/components/dropdown/anchor.d.ts +3 -3
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +12 -12
- package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/components/dropdown-menu/dropdown-menu.js +41 -29
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +74 -58
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-bubble/error-bubble.js +20 -19
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +22 -20
- package/components/footer/footer.d.ts +2 -2
- package/components/footer/footer.js +31 -27
- package/components/form/form.js +1 -1
- package/components/global/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +10 -7
- package/components/global/data-tests.js +1 -1
- package/components/global/dom.js +1 -1
- package/components/global/focus-sensor-hoc.js +4 -3
- package/components/global/fuzzy-highlight.js +1 -1
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/inject-styles.js +1 -1
- package/components/global/listeners.js +1 -1
- package/components/global/normalize-indent.js +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/global/react-dom-renderer.js +4 -3
- package/components/global/rerender-hoc.d.ts +2 -2
- package/components/global/rerender-hoc.js +5 -4
- package/components/global/theme.d.ts +3 -3
- package/components/global/theme.js +1 -0
- package/components/global/trivial-template-tag.js +1 -1
- package/components/grid/col.d.ts +2 -2
- package/components/grid/col.js +7 -5
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.js +7 -8
- package/components/grid/row.d.ts +2 -2
- package/components/grid/row.js +7 -5
- package/components/group/group.d.ts +2 -2
- package/components/group/group.js +7 -8
- package/components/header/header.d.ts +2 -2
- package/components/header/header.js +12 -14
- package/components/header/logo.d.ts +2 -2
- package/components/header/logo.js +7 -5
- package/components/header/profile.d.ts +4 -3
- package/components/header/profile.js +40 -29
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services-link.js +1 -0
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +31 -31
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-profile.js +5 -3
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/smart-services.js +4 -3
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray-icon.js +4 -3
- package/components/header/tray.d.ts +2 -2
- package/components/header/tray.js +11 -8
- package/components/heading/heading.d.ts +6 -6
- package/components/heading/heading.js +8 -9
- package/components/http/http.js +1 -1
- package/components/http/http.mock.js +2 -1
- package/components/hub-source/hub-source.js +1 -1
- package/components/hub-source/hub-source__user.js +1 -1
- package/components/hub-source/hub-source__users-groups.js +1 -1
- package/components/i18n/i18n-context.d.ts +1 -1
- package/components/i18n/i18n-context.js +7 -4
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +12 -10
- package/components/icon/icon__svg.d.ts +3 -3
- package/components/icon/icon__svg.js +1 -0
- package/components/icon/index.js +1 -0
- package/components/input/input.d.ts +3 -2
- package/components/input/input.js +2 -0
- package/components/island/adaptive-island-hoc.d.ts +11 -11
- package/components/island/adaptive-island-hoc.js +10 -7
- package/components/island/content.d.ts +3 -3
- package/components/island/content.js +29 -23
- package/components/island/header.d.ts +2 -2
- package/components/island/header.js +18 -13
- package/components/island/island.d.ts +10 -10
- package/components/island/island.js +7 -8
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/content-legacy.js +7 -5
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.js +10 -7
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.js +7 -5
- package/components/link/clickableLink.d.ts +2 -1
- package/components/link/clickableLink.js +8 -6
- package/components/link/link.d.ts +15 -15
- package/components/link/link.js +12 -9
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +10 -10
- package/components/list/list.js +109 -95
- package/components/list/list__custom.d.ts +2 -1
- package/components/list/list__custom.js +7 -5
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__hint.js +7 -9
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__item.js +73 -65
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__link.js +8 -10
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__separator.js +7 -5
- package/components/list/list__title.d.ts +2 -2
- package/components/list/list__title.js +15 -11
- package/components/list/list__users-groups-source.js +3 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +5 -10
- package/components/loader/loader__core.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-inline/loader-inline.js +10 -9
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/loader-screen/loader-screen.js +10 -11
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/login-dialog/login-dialog.js +21 -16
- package/components/login-dialog/service.js +6 -4
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +7 -8
- package/components/message/message.d.ts +2 -2
- package/components/message/message.js +50 -41
- package/components/old-browsers-message/white-list.js +1 -1
- package/components/pager/pager.d.ts +2 -1
- package/components/pager/pager.js +71 -53
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +7 -8
- package/components/permissions/permissions.js +1 -1
- package/components/permissions/permissions__cache.js +1 -1
- package/components/popup/popup.d.ts +2 -1
- package/components/popup/popup.js +46 -39
- package/components/popup/popup.target.d.ts +3 -3
- package/components/popup/popup.target.js +11 -8
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/popup-menu/popup-menu.js +13 -9
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +17 -18
- package/components/query-assist/query-assist.d.ts +3 -2
- package/components/query-assist/query-assist.js +122 -109
- package/components/query-assist/query-assist__suggestions.d.ts +2 -2
- package/components/query-assist/query-assist__suggestions.js +3 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +8 -8
- package/components/radio/radio__item.d.ts +9 -6
- package/components/radio/radio__item.js +46 -37
- package/components/select/select.d.ts +5 -2
- package/components/select/select.js +201 -180
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__filter.js +2 -0
- package/components/select/select__popup.d.ts +6 -4
- package/components/select/select__popup.js +101 -84
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +8 -8
- package/components/shortcuts/shortcuts-hoc.js +10 -8
- package/components/shortcuts/shortcuts.js +1 -1
- package/components/slider/slider.d.ts +2 -1
- package/components/slider/slider.js +78 -78
- package/components/slider/slider.utils.js +1 -1
- package/components/storage/storage.js +2 -1
- package/components/storage/storage__fallback.js +1 -1
- package/components/storage/storage__local.js +3 -2
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +2 -1
- package/components/tab-trap/tab-trap.js +25 -20
- package/components/table/cell.d.ts +2 -2
- package/components/table/cell.js +7 -5
- package/components/table/disable-hover-hoc.d.ts +9 -9
- package/components/table/disable-hover-hoc.js +4 -3
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header-cell.js +17 -13
- package/components/table/header.d.ts +3 -3
- package/components/table/header.js +34 -26
- package/components/table/multitable.d.ts +2 -2
- package/components/table/multitable.js +12 -10
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -3
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +50 -44
- package/components/table/selection-adapter.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +4 -3
- package/components/table/selection.js +1 -1
- package/components/table/smart-table.d.ts +44 -44
- package/components/table/smart-table.js +5 -3
- package/components/table/table.d.ts +2 -1
- package/components/table/table.js +55 -45
- package/components/tabs/collapsible-more.d.ts +4 -4
- package/components/tabs/collapsible-more.js +37 -30
- package/components/tabs/collapsible-tab.d.ts +2 -1
- package/components/tabs/collapsible-tab.js +6 -6
- package/components/tabs/collapsible-tabs.d.ts +4 -4
- package/components/tabs/collapsible-tabs.js +51 -46
- package/components/tabs/dumb-tabs.d.ts +2 -1
- package/components/tabs/dumb-tabs.js +24 -18
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.js +8 -4
- package/components/tabs/tab-link.d.ts +3 -3
- package/components/tabs/tab-link.js +1 -0
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tab.js +7 -5
- package/components/tabs/tabs.js +2 -0
- package/components/tag/tag.d.ts +2 -1
- package/components/tag/tag.js +31 -28
- package/components/tags-input/tags-input.d.ts +3 -2
- package/components/tags-input/tags-input.js +52 -47
- package/components/tags-list/tags-list.d.ts +2 -1
- package/components/tags-list/tags-list.js +8 -5
- package/components/text/text.d.ts +2 -2
- package/components/text/text.js +7 -4
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +25 -20
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +26 -21
- package/components/user-agreement/service.js +20 -12
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +56 -39
- package/components/user-card/card.d.ts +2 -1
- package/components/user-card/card.js +1 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/smart-user-card-tooltip.js +11 -7
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +15 -11
- package/components/user-card/user-card.js +1 -0
- package/package.json +5 -5
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { Component, ReactNode, HTMLAttributes } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
export declare const FOCUSABLE_ELEMENTS = "input, button, select, textarea, a[href], *[tabindex]:not([data-trap-button]):not([data-scrollable-container])";
|
4
5
|
export interface TabTrapProps extends HTMLAttributes<HTMLElement> {
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper, j as _toConsumableArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
5
|
-
import
|
5
|
+
import { Component } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import { isNodeInVisiblePartOfPage } from '../global/dom.js';
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
8
9
|
import 'core-js/modules/es.array.iterator.js';
|
9
10
|
import 'core-js/modules/es.object.assign.js';
|
10
11
|
import 'core-js/modules/es.object.entries.js';
|
@@ -136,27 +137,31 @@ var TabTrap = /*#__PURE__*/function (_Component) {
|
|
136
137
|
var focusBackOnExit = _this$props.focusBackOnExit,
|
137
138
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
138
139
|
if (trapDisabled) {
|
139
|
-
return /*#__PURE__*/
|
140
|
+
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
140
141
|
ref: this.containerRef
|
141
|
-
}, restProps),
|
142
|
+
}, restProps), {}, {
|
143
|
+
children: children
|
144
|
+
}));
|
142
145
|
}
|
143
|
-
return /*#__PURE__*/
|
146
|
+
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
144
147
|
ref: this.containerRef
|
145
|
-
}, restProps),
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
148
|
+
}, restProps), {}, {
|
149
|
+
children: [/*#__PURE__*/jsx("div", {
|
150
|
+
// It never actually stays focused
|
151
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
152
|
+
tabIndex: 0,
|
153
|
+
ref: this.trapButtonRef,
|
154
|
+
className: modules_6dce58ae.trapButton,
|
155
|
+
onFocus: this.focusLastIfEnabled,
|
156
|
+
onBlur: this.handleBlurIfWithoutFocus,
|
157
|
+
"data-trap-button": true
|
158
|
+
}), children, /*#__PURE__*/jsx("div", {
|
159
|
+
// It never actually stays focused
|
160
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
161
|
+
tabIndex: 0,
|
162
|
+
onFocus: focusBackOnExit ? this.restoreFocus : this.focusFirst,
|
163
|
+
"data-trap-button": true
|
164
|
+
})]
|
160
165
|
}));
|
161
166
|
}
|
162
167
|
}]);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, TdHTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface CellProps extends TdHTMLAttributes<HTMLTableDataCellElement> {
|
4
4
|
'data-test'?: string | null | undefined;
|
@@ -9,5 +9,5 @@ export default class Cell extends PureComponent<CellProps> {
|
|
9
9
|
className: PropTypes.Requireable<string>;
|
10
10
|
'data-test': PropTypes.Requireable<string>;
|
11
11
|
};
|
12
|
-
render():
|
12
|
+
render(): import("react").JSX.Element;
|
13
13
|
}
|
package/components/table/cell.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
2
|
-
import
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { PureComponent } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
6
|
import { m as modules_1db4bbca } from '../_helpers/table.js';
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
7
8
|
import 'core-js/modules/es.array.concat.js';
|
8
9
|
import 'core-js/modules/es.array.reduce.js';
|
9
10
|
import 'core-js/modules/es.object.entries.js';
|
@@ -19,10 +20,11 @@ var Cell = /*#__PURE__*/function (_PureComponent) {
|
|
19
20
|
key: "render",
|
20
21
|
value: function render() {
|
21
22
|
var classes = classNames(modules_1db4bbca.cell, this.props.className);
|
22
|
-
return /*#__PURE__*/
|
23
|
+
return /*#__PURE__*/jsx("td", _objectSpread2(_objectSpread2({}, this.props), {}, {
|
23
24
|
className: classes,
|
24
|
-
"data-test": joinDataTestAttributes('ring-table-cell', this.props['data-test'])
|
25
|
-
|
25
|
+
"data-test": joinDataTestAttributes('ring-table-cell', this.props['data-test']),
|
26
|
+
children: this.props.children
|
27
|
+
}));
|
26
28
|
}
|
27
29
|
}]);
|
28
30
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { ComponentType } from 'react';
|
2
2
|
export interface DisableHoverAddProps {
|
3
3
|
disabledHover: boolean;
|
4
4
|
}
|
@@ -12,16 +12,16 @@ export default function disableHoverHOC<P extends DisableHoverAddProps>(Composed
|
|
12
12
|
componentWillUnmount(): void;
|
13
13
|
onMouseMove: () => void;
|
14
14
|
onKeyDown: (e: KeyboardEvent) => void;
|
15
|
-
render():
|
15
|
+
render(): import("react").JSX.Element;
|
16
16
|
context: unknown;
|
17
17
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
18
18
|
forceUpdate(callback?: (() => void) | undefined): void;
|
19
19
|
readonly props: Readonly<DisableHoverProps<P>>;
|
20
20
|
refs: {
|
21
|
-
[key: string]:
|
21
|
+
[key: string]: import("react").ReactInstance;
|
22
22
|
};
|
23
23
|
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
24
|
-
componentDidCatch?(error: Error, errorInfo:
|
24
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
25
25
|
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
|
26
26
|
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
27
27
|
componentWillMount?(): void;
|
@@ -39,16 +39,16 @@ export default function disableHoverHOC<P extends DisableHoverAddProps>(Composed
|
|
39
39
|
componentWillUnmount(): void;
|
40
40
|
onMouseMove: () => void;
|
41
41
|
onKeyDown: (e: KeyboardEvent) => void;
|
42
|
-
render():
|
42
|
+
render(): import("react").JSX.Element;
|
43
43
|
context: unknown;
|
44
44
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
45
45
|
forceUpdate(callback?: (() => void) | undefined): void;
|
46
46
|
readonly props: Readonly<DisableHoverProps<P>>;
|
47
47
|
refs: {
|
48
|
-
[key: string]:
|
48
|
+
[key: string]: import("react").ReactInstance;
|
49
49
|
};
|
50
50
|
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
51
|
-
componentDidCatch?(error: Error, errorInfo:
|
51
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
52
52
|
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
|
53
53
|
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
54
54
|
componentWillMount?(): void;
|
@@ -58,7 +58,7 @@ export default function disableHoverHOC<P extends DisableHoverAddProps>(Composed
|
|
58
58
|
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
59
59
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
60
60
|
};
|
61
|
-
propTypes:
|
61
|
+
propTypes: import("react").WeakValidationMap<P> | undefined;
|
62
62
|
defaultProps: Partial<P> | undefined;
|
63
|
-
contextType?:
|
63
|
+
contextType?: import("react").Context<any> | undefined;
|
64
64
|
};
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.includes.js';
|
4
|
-
import
|
4
|
+
import { PureComponent } from 'react';
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
5
6
|
|
6
7
|
function disableHoverHOC(ComposedComponent) {
|
7
8
|
var _DisableHover;
|
@@ -49,7 +50,7 @@ function disableHoverHOC(ComposedComponent) {
|
|
49
50
|
}, {
|
50
51
|
key: "render",
|
51
52
|
value: function render() {
|
52
|
-
return /*#__PURE__*/
|
53
|
+
return /*#__PURE__*/jsx(ComposedComponent, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
53
54
|
disabledHover: this.state.disabledHover
|
54
55
|
}));
|
55
56
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, ReactNode, SyntheticEvent, ThHTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface Column<T = never> {
|
4
4
|
id: string;
|
@@ -40,5 +40,5 @@ export default class HeaderCell extends PureComponent<HeaderCellProps> {
|
|
40
40
|
sorted?: boolean;
|
41
41
|
onClick: () => void;
|
42
42
|
onChildrenClick(e: SyntheticEvent): void;
|
43
|
-
render():
|
43
|
+
render(): import("react").JSX.Element;
|
44
44
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import sortableIcon from '@jetbrains/icons/unsorted-10px';
|
@@ -8,6 +8,7 @@ import chevronDown from '@jetbrains/icons/chevron-10px';
|
|
8
8
|
import Icon from '../icon/icon.js';
|
9
9
|
import joinDataTestAttributes from '../global/data-tests.js';
|
10
10
|
import { m as modules_1db4bbca } from '../_helpers/table.js';
|
11
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
11
12
|
import 'util-deprecate';
|
12
13
|
import '../icon/icon__constants.js';
|
13
14
|
import '../_helpers/icon__svg.js';
|
@@ -75,19 +76,22 @@ var HeaderCell = /*#__PURE__*/function (_PureComponent) {
|
|
75
76
|
[modules_1db4bbca.sortedUp]: sortOrder && this.sorted,
|
76
77
|
[modules_1db4bbca.cellRight]: column.rightAlign
|
77
78
|
});
|
78
|
-
return /*#__PURE__*/
|
79
|
+
return /*#__PURE__*/jsxs("th", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
79
80
|
className: classes,
|
80
81
|
onClick: this.onClick,
|
81
|
-
"data-test": joinDataTestAttributes('ring-table-header-cell', dataTest)
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
82
|
+
"data-test": joinDataTestAttributes('ring-table-header-cell', dataTest),
|
83
|
+
children: [/*#__PURE__*/jsx("span", {
|
84
|
+
onClick: this.onChildrenClick,
|
85
|
+
role: "presentation",
|
86
|
+
children: this.props.children
|
87
|
+
}), column.getHeaderValue ? column.getHeaderValue() : column.title, this.sortable && /*#__PURE__*/jsx("span", {
|
88
|
+
className: modules_1db4bbca.sorter,
|
89
|
+
children: /*#__PURE__*/jsx(Icon, {
|
90
|
+
glyph: glyph,
|
91
|
+
className: modules_1db4bbca.icon
|
92
|
+
})
|
93
|
+
})]
|
94
|
+
}));
|
91
95
|
}
|
92
96
|
}]);
|
93
97
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { ChangeEventHandler, PureComponent, ReactNode, SyntheticEvent } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { Column, SortParams } from './header-cell';
|
4
4
|
export interface HeaderProps {
|
@@ -51,7 +51,7 @@ export default class Header extends PureComponent<HeaderProps> {
|
|
51
51
|
};
|
52
52
|
id: string;
|
53
53
|
onCheckboxFocus: (event: SyntheticEvent<HTMLElement>) => void;
|
54
|
-
createCells(widths?: never[]): (
|
55
|
-
render():
|
54
|
+
createCells(widths?: never[]): (import("react").JSX.Element | null)[];
|
55
|
+
render(): import("react").JSX.Element;
|
56
56
|
}
|
57
57
|
export type HeaderAttrs = JSX.LibraryManagedAttributes<typeof Header, HeaderProps>;
|
@@ -1,13 +1,14 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.map.js';
|
4
|
-
import
|
4
|
+
import { PureComponent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import Checkbox from '../checkbox/checkbox.js';
|
8
8
|
import getUID from '../global/get-uid.js';
|
9
9
|
import { m as modules_1db4bbca } from '../_helpers/table.js';
|
10
10
|
import HeaderCell from './header-cell.js';
|
11
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
11
12
|
import '@jetbrains/icons/checkmark-12px';
|
12
13
|
import '@jetbrains/icons/remove-12px';
|
13
14
|
import '../icon/icon.js';
|
@@ -26,6 +27,7 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
26
27
|
import '../global/prop-types.js';
|
27
28
|
import '../global/composeRefs.js';
|
28
29
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
30
|
+
import '../control-help/control-help.js';
|
29
31
|
import 'core-js/modules/es.regexp.to-string.js';
|
30
32
|
import '@jetbrains/icons/unsorted-10px';
|
31
33
|
import '@jetbrains/icons/chevron-10px';
|
@@ -64,15 +66,16 @@ var Header = /*#__PURE__*/function (_PureComponent) {
|
|
64
66
|
sortKey = _this$props.sortKey,
|
65
67
|
sortOrder = _this$props.sortOrder;
|
66
68
|
var metaColumnClasses = classNames(modules_1db4bbca.metaColumn, modules_1db4bbca.headerMetaColumn);
|
67
|
-
var metaColumn = /*#__PURE__*/
|
68
|
-
className: metaColumnClasses
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
69
|
+
var metaColumn = /*#__PURE__*/jsx("div", {
|
70
|
+
className: metaColumnClasses,
|
71
|
+
children: selectable && /*#__PURE__*/jsx(Checkbox, {
|
72
|
+
"aria-labelledby": this.id,
|
73
|
+
disabled: checkboxDisabled,
|
74
|
+
checked: checked,
|
75
|
+
onChange: onCheckboxChange,
|
76
|
+
onFocus: this.onCheckboxFocus
|
77
|
+
})
|
78
|
+
});
|
76
79
|
var colSpan = 0;
|
77
80
|
return columns.map(function (column, index) {
|
78
81
|
var columnStyle = widths[index] ? {
|
@@ -89,11 +92,12 @@ var Header = /*#__PURE__*/function (_PureComponent) {
|
|
89
92
|
if (colSpan > (_this2.props.maxColSpan || Infinity)) {
|
90
93
|
return null;
|
91
94
|
}
|
92
|
-
return /*#__PURE__*/
|
93
|
-
key: column.id,
|
95
|
+
return /*#__PURE__*/jsx(HeaderCell, _objectSpread2(_objectSpread2({
|
94
96
|
"data-test": column.id,
|
95
97
|
colSpan: column.colSpan
|
96
|
-
}, props),
|
98
|
+
}, props), {}, {
|
99
|
+
children: index === 0 && (draggable || selectable) && metaColumn
|
100
|
+
}), column.id);
|
97
101
|
});
|
98
102
|
}
|
99
103
|
}, {
|
@@ -104,7 +108,7 @@ var Header = /*#__PURE__*/function (_PureComponent) {
|
|
104
108
|
sticky = _this$props2.sticky,
|
105
109
|
topStickOffset = _this$props2.topStickOffset;
|
106
110
|
var regularCells = this.createCells();
|
107
|
-
return /*#__PURE__*/
|
111
|
+
return /*#__PURE__*/jsxs("thead", {
|
108
112
|
id: this.id,
|
109
113
|
"data-test": "ring-table-header",
|
110
114
|
style: {
|
@@ -113,17 +117,21 @@ var Header = /*#__PURE__*/function (_PureComponent) {
|
|
113
117
|
className: classNames({
|
114
118
|
[modules_1db4bbca.tableHead]: true,
|
115
119
|
[modules_1db4bbca.subHeaderSticky]: sticky
|
116
|
-
})
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
"
|
126
|
-
|
120
|
+
}),
|
121
|
+
children: [caption && /*#__PURE__*/jsx("tr", {
|
122
|
+
"data-test": "ring-table-header-row",
|
123
|
+
children: /*#__PURE__*/jsx("th", {
|
124
|
+
className: classNames(modules_1db4bbca.headerCell, modules_1db4bbca.caption),
|
125
|
+
colSpan: regularCells.length + 1,
|
126
|
+
"data-test": "ring-table-header-cell",
|
127
|
+
children: caption
|
128
|
+
})
|
129
|
+
}), /*#__PURE__*/jsx("tr", {
|
130
|
+
className: modules_1db4bbca.subHeader,
|
131
|
+
"data-test": "ring-table-header-row",
|
132
|
+
children: regularCells
|
133
|
+
})]
|
134
|
+
});
|
127
135
|
}
|
128
136
|
}]);
|
129
137
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, ReactElement } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { TableAttrs } from './table';
|
4
4
|
import { SelectionItem } from './selection';
|
@@ -21,5 +21,5 @@ export default class MultiTable extends PureComponent<MultiTableProps> {
|
|
21
21
|
'command+a': () => boolean;
|
22
22
|
'ctrl+a': () => boolean;
|
23
23
|
};
|
24
|
-
render():
|
24
|
+
render(): import("react").JSX.Element;
|
25
25
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.array.find-index.js';
|
@@ -7,8 +7,9 @@ import 'core-js/modules/es.array.map.js';
|
|
7
7
|
import 'core-js/modules/es.object.to-string.js';
|
8
8
|
import 'core-js/modules/es.string.includes.js';
|
9
9
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
10
|
-
import
|
10
|
+
import { Children, cloneElement, PureComponent } from 'react';
|
11
11
|
import PropTypes from 'prop-types';
|
12
|
+
import { jsx } from 'react/jsx-runtime';
|
12
13
|
|
13
14
|
var MultiTable = /*#__PURE__*/function (_PureComponent) {
|
14
15
|
function MultiTable() {
|
@@ -120,14 +121,15 @@ var MultiTable = /*#__PURE__*/function (_PureComponent) {
|
|
120
121
|
key: "render",
|
121
122
|
value: function render() {
|
122
123
|
var _this2 = this;
|
123
|
-
return /*#__PURE__*/
|
124
|
-
"data-test": "ring-multitable"
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
124
|
+
return /*#__PURE__*/jsx("div", {
|
125
|
+
"data-test": "ring-multitable",
|
126
|
+
children: Children.map(this.props.children, function (child) {
|
127
|
+
var props = {
|
128
|
+
shortcuts: _this2.shortcuts
|
129
|
+
};
|
130
|
+
return /*#__PURE__*/cloneElement(child, props);
|
131
|
+
})
|
132
|
+
});
|
131
133
|
}
|
132
134
|
}]);
|
133
135
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, ComponentType } from 'react';
|
2
2
|
import { FocusSensorProps } from '../global/focus-sensor-hoc';
|
3
3
|
import Row, { RowProps } from './row';
|
4
4
|
import { SelectionItem } from './selection';
|
@@ -9,10 +9,10 @@ export interface RowWithFocusSensorCallbacksProps<T extends SelectionItem> exten
|
|
9
9
|
onExpand?: (item: T) => void;
|
10
10
|
}
|
11
11
|
export default class RowWithFocusSensorCallbacks<T extends SelectionItem> extends PureComponent<RowWithFocusSensorCallbacksProps<T>> {
|
12
|
-
RowWithFocusSensor:
|
12
|
+
RowWithFocusSensor: ComponentType<FocusSensorProps<RowProps<T>, HTMLDivElement, typeof Row>>;
|
13
13
|
onFocus: () => void;
|
14
14
|
onSelect: (item: T, selected: boolean) => void;
|
15
15
|
onCollapse: () => void;
|
16
16
|
onExpand: () => void;
|
17
|
-
render():
|
17
|
+
render(): import("react").JSX.Element;
|
18
18
|
}
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { a as _inherits, b as _createClass,
|
1
|
+
import { a as _inherits, b as _createClass, d as _objectSpread2, e as _classCallCheck, f as _callSuper, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { PureComponent } from 'react';
|
4
4
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
5
5
|
import Row from './row.js';
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
6
7
|
import 'prop-types';
|
7
8
|
import '../global/prop-types.js';
|
8
9
|
import '../global/composeRefs.js';
|
@@ -28,6 +29,7 @@ import 'core-js/modules/es.array.iterator.js';
|
|
28
29
|
import 'core-js/modules/es.map.js';
|
29
30
|
import 'core-js/modules/es.weak-map.js';
|
30
31
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
32
|
+
import '../control-help/control-help.js';
|
31
33
|
import '../button/button.js';
|
32
34
|
import '@jetbrains/icons/chevron-10px';
|
33
35
|
import '../link/clickableLink.js';
|
@@ -101,7 +103,7 @@ var RowWithFocusSensorCallbacks = /*#__PURE__*/function (_PureComponent) {
|
|
101
103
|
return _createClass(RowWithFocusSensorCallbacks, [{
|
102
104
|
key: "render",
|
103
105
|
value: function render() {
|
104
|
-
return /*#__PURE__*/
|
106
|
+
return /*#__PURE__*/jsx(this.RowWithFocusSensor, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
105
107
|
onFocus: this.onFocus,
|
106
108
|
onSelect: this.onSelect,
|
107
109
|
onCollapse: this.onCollapse,
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { HTMLAttributes, PureComponent } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import { FocusSensorAddProps } from '../global/focus-sensor-hoc';
|
3
4
|
import { Column } from './header-cell';
|
4
5
|
import { SelectionItem } from './selection';
|