@jetbrains/ring-ui-built 7.0.72 → 7.0.73
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/anchor.js +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +35 -16
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- package/components/list/list-custom.d.ts +1 -1
- package/components/list/list-custom.js +2 -2
- package/components/list/list-hint.d.ts +1 -1
- package/components/list/list-hint.js +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +3 -9
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import chevronLeftIcon from '@jetbrains/icons/chevron-left';
|
|
@@ -11,6 +10,7 @@ import memoize from '../global/memoize.js';
|
|
|
11
10
|
import Link from '../link/link.js';
|
|
12
11
|
import Icon from '../icon/icon.js';
|
|
13
12
|
import { I18nContext } from '../i18n/i18n-context.js';
|
|
13
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
import '@jetbrains/icons/chevron-down';
|
|
15
15
|
import '@jetbrains/icons/chevron-12px-down';
|
|
16
16
|
import 'util-deprecate';
|
|
@@ -20,6 +20,7 @@ import '../global/configuration.js';
|
|
|
20
20
|
import '../_helpers/button.classes.js';
|
|
21
21
|
import '../icon/icon.constants.js';
|
|
22
22
|
import '../_helpers/icon-svg.js';
|
|
23
|
+
import 'react-compiler-runtime';
|
|
23
24
|
import '../global/data-tests.js';
|
|
24
25
|
import '../control-label/control-label.js';
|
|
25
26
|
import '../control-help/control-help.js';
|
|
@@ -31,10 +32,10 @@ import '../_helpers/anchor.js';
|
|
|
31
32
|
import '../avatar/avatar.js';
|
|
32
33
|
import '../global/url.js';
|
|
33
34
|
import '../global/dom.js';
|
|
34
|
-
import '../_helpers/avatar-info.js';
|
|
35
|
-
import '../avatar/avatar-size.js';
|
|
36
35
|
import '../avatar/fallback-avatar.js';
|
|
37
36
|
import '../global/get-uid.js';
|
|
37
|
+
import '../avatar/avatar-size.js';
|
|
38
|
+
import '../_helpers/avatar-info.js';
|
|
38
39
|
import '../popup/popup.js';
|
|
39
40
|
import 'react-dom';
|
|
40
41
|
import '../global/schedule-raf.js';
|
|
@@ -60,9 +61,9 @@ import '../checkbox/checkbox.js';
|
|
|
60
61
|
import '@jetbrains/icons/checkmark-12px';
|
|
61
62
|
import '@jetbrains/icons/remove-12px';
|
|
62
63
|
import '../global/compose-refs.js';
|
|
63
|
-
import '../_helpers/list.js';
|
|
64
64
|
import '../list/consts.js';
|
|
65
65
|
import '../list/list.classes.js';
|
|
66
|
+
import '../_helpers/list.js';
|
|
66
67
|
import '../_helpers/link.js';
|
|
67
68
|
import '../list/list-custom.js';
|
|
68
69
|
import '../global/get-event-key.js';
|
|
@@ -89,7 +90,7 @@ class Pager extends PureComponent {
|
|
|
89
90
|
static defaultProps = {
|
|
90
91
|
currentPage: 1,
|
|
91
92
|
pageSize: 50,
|
|
92
|
-
// eslint-disable-next-line
|
|
93
|
+
// eslint-disable-next-line no-magic-numbers
|
|
93
94
|
pageSizes: [20, 50, 100],
|
|
94
95
|
visiblePagesLimit: 7,
|
|
95
96
|
disablePageSizeSelector: false,
|
|
@@ -163,7 +164,7 @@ class Pager extends PureComponent {
|
|
|
163
164
|
this.props.onLoadPage(i);
|
|
164
165
|
});
|
|
165
166
|
getButton(page, content, key, active) {
|
|
166
|
-
return jsx(Button, {
|
|
167
|
+
return /*#__PURE__*/jsx(Button, {
|
|
167
168
|
href: this.generateHref(page),
|
|
168
169
|
active: active,
|
|
169
170
|
disabled: this.props.loader && !active && !this.props.loaderNavigation,
|
|
@@ -191,10 +192,10 @@ class Pager extends PureComponent {
|
|
|
191
192
|
}
|
|
192
193
|
getPageSizeSelector() {
|
|
193
194
|
const selectOptions = this.getSelectOptions();
|
|
194
|
-
return !this.props.disablePageSizeSelector && jsx("div", {
|
|
195
|
-
"data-test":
|
|
195
|
+
return !this.props.disablePageSizeSelector && /*#__PURE__*/jsx("div", {
|
|
196
|
+
"data-test": "ring-pager-page-size-selector",
|
|
196
197
|
className: style.pageSize,
|
|
197
|
-
children: jsx(Select, {
|
|
198
|
+
children: /*#__PURE__*/jsx(Select, {
|
|
198
199
|
data: selectOptions.data,
|
|
199
200
|
selected: selectOptions.selected,
|
|
200
201
|
onSelect: this.handlePageSizeChange,
|
|
@@ -210,18 +211,18 @@ class Pager extends PureComponent {
|
|
|
210
211
|
} = this.context;
|
|
211
212
|
const prevLinkAvailable = this.props.currentPage !== 1;
|
|
212
213
|
const nextLinkAvailable = this.props.openTotal || this.props.currentPage !== this.getTotalPages();
|
|
213
|
-
const nextIcon = jsx(Icon, {
|
|
214
|
+
const nextIcon = /*#__PURE__*/jsx(Icon, {
|
|
214
215
|
glyph: chevronRightIcon
|
|
215
216
|
}, 'icon');
|
|
216
|
-
const prevIcon = jsx(Icon, {
|
|
217
|
+
const prevIcon = /*#__PURE__*/jsx(Icon, {
|
|
217
218
|
glyph: chevronLeftIcon
|
|
218
219
|
}, 'icon');
|
|
219
220
|
const prevText = (_this$props$translati2 = this.props.translations?.previousPage) !== null && _this$props$translati2 !== void 0 ? _this$props$translati2 : translate('previousPage');
|
|
220
221
|
const nextText = (_this$props$translati3 = this.props.translations?.nextPage) !== null && _this$props$translati3 !== void 0 ? _this$props$translati3 : translate('nextPage');
|
|
221
|
-
const nextLinkContent = [jsx("span", {
|
|
222
|
+
const nextLinkContent = [/*#__PURE__*/jsx("span", {
|
|
222
223
|
children: nextText
|
|
223
224
|
}, 'text'), nextIcon];
|
|
224
|
-
const prevLinkContent = [prevIcon, jsx("span", {
|
|
225
|
+
const prevLinkContent = [prevIcon, /*#__PURE__*/jsx("span", {
|
|
225
226
|
children: prevText
|
|
226
227
|
}, 'text')];
|
|
227
228
|
const prevLinkHref = this.generateHref(this.props.currentPage - 1);
|
|
@@ -230,26 +231,26 @@ class Pager extends PureComponent {
|
|
|
230
231
|
[style.link]: true,
|
|
231
232
|
[style.linkDisabled]: true
|
|
232
233
|
});
|
|
233
|
-
return jsxs("div", {
|
|
234
|
+
return /*#__PURE__*/jsxs("div", {
|
|
234
235
|
className: style.links,
|
|
235
|
-
children: [prevLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? jsx(Link, {
|
|
236
|
+
children: [prevLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/jsx(Link, {
|
|
236
237
|
href: prevLinkHref,
|
|
237
238
|
className: style.link,
|
|
238
239
|
...this.getClickProps(this.handlePrevClick),
|
|
239
240
|
children: prevLinkContent
|
|
240
|
-
}) : jsxs("span", {
|
|
241
|
+
}) : /*#__PURE__*/jsxs("span", {
|
|
241
242
|
className: disabledLinkClasses,
|
|
242
|
-
children: [prevIcon, jsx("span", {
|
|
243
|
+
children: [prevIcon, /*#__PURE__*/jsx("span", {
|
|
243
244
|
children: prevText
|
|
244
245
|
}, 'text')]
|
|
245
|
-
}), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? jsx(Link, {
|
|
246
|
+
}), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/jsx(Link, {
|
|
246
247
|
href: nextLinkHref,
|
|
247
248
|
className: style.link,
|
|
248
249
|
...this.getClickProps(this.handleNextClick),
|
|
249
250
|
children: nextLinkContent
|
|
250
|
-
}) : jsxs("span", {
|
|
251
|
+
}) : /*#__PURE__*/jsxs("span", {
|
|
251
252
|
className: disabledLinkClasses,
|
|
252
|
-
children: [jsx("span", {
|
|
253
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
253
254
|
children: nextText
|
|
254
255
|
}, 'text'), nextIcon]
|
|
255
256
|
})]
|
|
@@ -302,12 +303,12 @@ class Pager extends PureComponent {
|
|
|
302
303
|
buttons.push(this.getButton(i, i, i, i === currentPage));
|
|
303
304
|
}
|
|
304
305
|
const lastPageButtonAvailable = !this.props.disableLastPageButton && end < totalPages && !this.props.openTotal || this.props.openTotal && this.props.canLoadLastPageWithOpenTotal;
|
|
305
|
-
return jsxs("div", {
|
|
306
|
-
children: [this.getPagerLinks(), jsxs("div", {
|
|
306
|
+
return /*#__PURE__*/jsxs("div", {
|
|
307
|
+
children: [this.getPagerLinks(), /*#__PURE__*/jsxs("div", {
|
|
307
308
|
className: style.actions,
|
|
308
|
-
children: [jsxs(ButtonToolbar, {
|
|
309
|
-
children: [start > 1 && this.getButton(1, (_this$props$translati4 = this.props.translations?.firstPage) !== null && _this$props$translati4 !== void 0 ? _this$props$translati4 : translate('firstPage')), jsxs(ButtonGroup, {
|
|
310
|
-
children: [start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && jsx(Button, {
|
|
309
|
+
children: [/*#__PURE__*/jsxs(ButtonToolbar, {
|
|
310
|
+
children: [start > 1 && this.getButton(1, (_this$props$translati4 = this.props.translations?.firstPage) !== null && _this$props$translati4 !== void 0 ? _this$props$translati4 : translate('firstPage')), /*#__PURE__*/jsxs(ButtonGroup, {
|
|
311
|
+
children: [start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && /*#__PURE__*/jsx(Button, {
|
|
311
312
|
href: this.generateHref(end + 1),
|
|
312
313
|
disabled: this.props.loader,
|
|
313
314
|
...this.getClickProps(this.handleLoadMore(end + 1)),
|
|
@@ -324,8 +325,8 @@ class Pager extends PureComponent {
|
|
|
324
325
|
if (!shouldRenderPagerContent && this.props.disablePageSizeSelector) {
|
|
325
326
|
return null;
|
|
326
327
|
}
|
|
327
|
-
return jsx("div", {
|
|
328
|
-
"data-test":
|
|
328
|
+
return /*#__PURE__*/jsx("div", {
|
|
329
|
+
"data-test": "ring-pager",
|
|
329
330
|
className: classes,
|
|
330
331
|
children: shouldRenderPagerContent ? this.getPagerContent() : this.getPageSizeSelector()
|
|
331
332
|
});
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var styles = {"panel":"ring-panel-panel"};
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @name Panel
|
|
9
|
-
*/
|
|
10
7
|
class Panel extends PureComponent {
|
|
11
8
|
render() {
|
|
12
9
|
const {
|
|
@@ -15,8 +12,8 @@ class Panel extends PureComponent {
|
|
|
15
12
|
...props
|
|
16
13
|
} = this.props;
|
|
17
14
|
const classes = classNames(styles.panel, className);
|
|
18
|
-
return jsx("div", {
|
|
19
|
-
"data-test":
|
|
15
|
+
return /*#__PURE__*/jsx("div", {
|
|
16
|
+
"data-test": "ring-panel",
|
|
20
17
|
...props,
|
|
21
18
|
className: classes,
|
|
22
19
|
children: children
|
|
@@ -141,12 +141,12 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
141
141
|
* @private
|
|
142
142
|
*/
|
|
143
143
|
private _onDocumentClick;
|
|
144
|
-
getInternalContent():
|
|
144
|
+
getInternalContent(): React.JSX.Element | P["children"] | undefined;
|
|
145
145
|
shortcutsScope: string;
|
|
146
146
|
shortcutsMap: {
|
|
147
147
|
esc: (evt: KeyboardEvent) => void;
|
|
148
148
|
};
|
|
149
|
-
render():
|
|
149
|
+
render(): React.JSX.Element;
|
|
150
150
|
}
|
|
151
151
|
export type PopupAttrs = React.JSX.LibraryManagedAttributes<typeof Popup, PopupProps>;
|
|
152
152
|
export type BasePopupAttrs = React.JSX.LibraryManagedAttributes<typeof Popup, BasePopupProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import { createPortal } from 'react-dom';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -13,10 +12,12 @@ import position from './position.js';
|
|
|
13
12
|
import { DEFAULT_DIRECTIONS, Display, MaxHeight, MinWidth, Dimension, Directions } from './popup.consts.js';
|
|
14
13
|
import { PopupTargetContext, PopupTarget } from './popup.target.js';
|
|
15
14
|
import { supportsCSSAnchorPositioning, setCSSAnchorPositioning } from './position-css.js';
|
|
15
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
16
16
|
import '../shortcuts/core.js';
|
|
17
17
|
import 'combokeys';
|
|
18
18
|
import '../global/sniffer.js';
|
|
19
19
|
import 'sniffr';
|
|
20
|
+
import 'react-compiler-runtime';
|
|
20
21
|
|
|
21
22
|
var styles = {"popup":"ring-popup-popup ring-global-font","cssAnchoredPopup":"ring-popup-cssAnchoredPopup","largeBorderRadius":"ring-popup-largeBorderRadius","hidden":"ring-popup-hidden","showing":"ring-popup-showing","attached":"ring-popup-attached"};
|
|
22
23
|
|
|
@@ -305,7 +306,7 @@ class Popup extends PureComponent {
|
|
|
305
306
|
autoFocusFirst,
|
|
306
307
|
children
|
|
307
308
|
} = this.props;
|
|
308
|
-
return trapFocus ? jsx(TabTrap, {
|
|
309
|
+
return trapFocus ? /*#__PURE__*/jsx(TabTrap, {
|
|
309
310
|
autoFocusFirst: autoFocusFirst,
|
|
310
311
|
focusBackOnExit: true,
|
|
311
312
|
children: children
|
|
@@ -340,19 +341,20 @@ class Popup extends PureComponent {
|
|
|
340
341
|
[styles.largeBorderRadius]: largeBorderRadius
|
|
341
342
|
});
|
|
342
343
|
const direction = (this.state.direction || '').toLowerCase().replace(/[_]/g, '-');
|
|
343
|
-
return jsx(PopupTargetContext.Consumer, {
|
|
344
|
+
return /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
|
|
344
345
|
children: value => {
|
|
345
346
|
this.ringPopupTarget = value;
|
|
346
|
-
return jsxs("span", {
|
|
347
|
+
return /*#__PURE__*/jsxs("span", {
|
|
347
348
|
// prevent bubbling through portal
|
|
348
|
-
onClick: stop
|
|
349
|
+
onClick: stop
|
|
349
350
|
// This handler only blocks bubbling through React portal
|
|
350
|
-
|
|
351
|
+
,
|
|
352
|
+
role: "presentation",
|
|
351
353
|
ref: this.portalRef,
|
|
352
|
-
children: [this.shouldUseShortcuts() && jsx(Shortcuts, {
|
|
354
|
+
children: [this.shouldUseShortcuts() && /*#__PURE__*/jsx(Shortcuts, {
|
|
353
355
|
map: this.shortcutsMap,
|
|
354
356
|
scope: this.shortcutsScope
|
|
355
|
-
}), client !== false && (keepMounted || !hidden) && /*#__PURE__*/createPortal(jsx(PopupTarget, {
|
|
357
|
+
}), client !== false && (keepMounted || !hidden) && /*#__PURE__*/createPortal(/*#__PURE__*/jsx(PopupTarget, {
|
|
356
358
|
id: this.uid,
|
|
357
359
|
ref: this.containerRef,
|
|
358
360
|
onMouseOver: onMouseOver,
|
|
@@ -360,7 +362,7 @@ class Popup extends PureComponent {
|
|
|
360
362
|
onMouseOut: onMouseOut,
|
|
361
363
|
onBlur: onMouseOut,
|
|
362
364
|
onContextMenu: onContextMenu,
|
|
363
|
-
children: jsx("div", {
|
|
365
|
+
children: /*#__PURE__*/jsx("div", {
|
|
364
366
|
"data-test": joinDataTestAttributes('ring-popup', dataTest),
|
|
365
367
|
"data-test-shown": !hidden && !showing,
|
|
366
368
|
"data-test-direction": direction,
|
|
@@ -368,9 +370,10 @@ class Popup extends PureComponent {
|
|
|
368
370
|
className: classes,
|
|
369
371
|
style: style,
|
|
370
372
|
onMouseDown: onMouseDown,
|
|
371
|
-
onMouseUp: onMouseUp
|
|
373
|
+
onMouseUp: onMouseUp
|
|
372
374
|
// mouse handlers are used to track clicking on inner elements
|
|
373
|
-
|
|
375
|
+
,
|
|
376
|
+
role: "presentation",
|
|
374
377
|
children: this.getInternalContent()
|
|
375
378
|
})
|
|
376
379
|
}), this.getContainer() || document.body)]
|
|
@@ -1,22 +1,74 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { createContext, forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
const PopupTargetContext = /*#__PURE__*/createContext(undefined);
|
|
5
|
-
const PopupTarget = /*#__PURE__*/forwardRef(function PopupTarget({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
const PopupTarget = /*#__PURE__*/forwardRef(function PopupTarget(t0, ref) {
|
|
7
|
+
const $ = c(16);
|
|
8
|
+
if ($[0] !== "cd7853174a74114db99dbe80583a6d13c2de13a265e3549291bec1d28f76662d") {
|
|
9
|
+
for (let $i = 0; $i < 16; $i += 1) {
|
|
10
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
11
|
+
}
|
|
12
|
+
$[0] = "cd7853174a74114db99dbe80583a6d13c2de13a265e3549291bec1d28f76662d";
|
|
13
|
+
}
|
|
14
|
+
let children;
|
|
15
|
+
let id;
|
|
16
|
+
let restProps;
|
|
17
|
+
if ($[1] !== t0) {
|
|
18
|
+
({
|
|
19
|
+
id,
|
|
20
|
+
children,
|
|
21
|
+
...restProps
|
|
22
|
+
} = t0);
|
|
23
|
+
$[1] = t0;
|
|
24
|
+
$[2] = children;
|
|
25
|
+
$[3] = id;
|
|
26
|
+
$[4] = restProps;
|
|
27
|
+
} else {
|
|
28
|
+
children = $[2];
|
|
29
|
+
id = $[3];
|
|
30
|
+
restProps = $[4];
|
|
31
|
+
}
|
|
32
|
+
const t1 = typeof children !== "function" && children;
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[5] !== id || $[6] !== ref || $[7] !== restProps || $[8] !== t1) {
|
|
35
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
36
|
+
...restProps,
|
|
37
|
+
"data-portaltarget": id,
|
|
38
|
+
ref: ref,
|
|
39
|
+
children: t1
|
|
40
|
+
});
|
|
41
|
+
$[5] = id;
|
|
42
|
+
$[6] = ref;
|
|
43
|
+
$[7] = restProps;
|
|
44
|
+
$[8] = t1;
|
|
45
|
+
$[9] = t2;
|
|
46
|
+
} else {
|
|
47
|
+
t2 = $[9];
|
|
48
|
+
}
|
|
49
|
+
const target = t2;
|
|
50
|
+
let t3;
|
|
51
|
+
if ($[10] !== children || $[11] !== target) {
|
|
52
|
+
t3 = typeof children === "function" ? children(target) : target;
|
|
53
|
+
$[10] = children;
|
|
54
|
+
$[11] = target;
|
|
55
|
+
$[12] = t3;
|
|
56
|
+
} else {
|
|
57
|
+
t3 = $[12];
|
|
58
|
+
}
|
|
59
|
+
let t4;
|
|
60
|
+
if ($[13] !== id || $[14] !== t3) {
|
|
61
|
+
t4 = /*#__PURE__*/jsx(PopupTargetContext.Provider, {
|
|
62
|
+
value: id,
|
|
63
|
+
children: t3
|
|
64
|
+
});
|
|
65
|
+
$[13] = id;
|
|
66
|
+
$[14] = t3;
|
|
67
|
+
$[15] = t4;
|
|
68
|
+
} else {
|
|
69
|
+
t4 = $[15];
|
|
70
|
+
}
|
|
71
|
+
return t4;
|
|
20
72
|
});
|
|
21
73
|
|
|
22
74
|
export { PopupTarget, PopupTargetContext };
|
|
@@ -62,7 +62,7 @@ export default class PopupMenu<T = unknown> extends Popup<PopupMenuProps<T>> {
|
|
|
62
62
|
list?: List<T> | null;
|
|
63
63
|
listRef: (el: List<T> | null) => void;
|
|
64
64
|
/** @override */
|
|
65
|
-
getInternalContent(): import("react
|
|
65
|
+
getInternalContent(): import("react").JSX.Element;
|
|
66
66
|
}
|
|
67
67
|
export type PopupMenuAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof PopupMenu, PopupMenuProps<T>>;
|
|
68
68
|
export declare const ListProps: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import Popup from '../popup/popup.js';
|
|
3
2
|
import List from '../list/list.js';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-dom';
|
|
6
6
|
import 'classnames';
|
|
@@ -14,6 +14,7 @@ import '../global/sniffer.js';
|
|
|
14
14
|
import 'sniffr';
|
|
15
15
|
import '../global/data-tests.js';
|
|
16
16
|
import '../tab-trap/tab-trap.js';
|
|
17
|
+
import 'react-compiler-runtime';
|
|
17
18
|
import '../global/configuration.js';
|
|
18
19
|
import '../popup/position.js';
|
|
19
20
|
import '../popup/popup.consts.js';
|
|
@@ -30,9 +31,9 @@ import '../global/create-stateful-context.js';
|
|
|
30
31
|
import '../list/list-item.js';
|
|
31
32
|
import '../avatar/avatar.js';
|
|
32
33
|
import '../global/url.js';
|
|
33
|
-
import '../_helpers/avatar-info.js';
|
|
34
|
-
import '../avatar/avatar-size.js';
|
|
35
34
|
import '../avatar/fallback-avatar.js';
|
|
35
|
+
import '../avatar/avatar-size.js';
|
|
36
|
+
import '../_helpers/avatar-info.js';
|
|
36
37
|
import '../checkbox/checkbox.js';
|
|
37
38
|
import '@jetbrains/icons/checkmark-12px';
|
|
38
39
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -44,18 +45,15 @@ import '../control-help/control-help.js';
|
|
|
44
45
|
import '../link/link.js';
|
|
45
46
|
import '../link/clickable-link.js';
|
|
46
47
|
import '../_helpers/link.js';
|
|
47
|
-
import '../_helpers/list.js';
|
|
48
48
|
import '../list/consts.js';
|
|
49
49
|
import '../list/list.classes.js';
|
|
50
|
+
import '../_helpers/list.js';
|
|
50
51
|
import '../list/list-custom.js';
|
|
51
52
|
import '../global/get-event-key.js';
|
|
52
53
|
import '../list/list-title.js';
|
|
53
54
|
import '../list/list-separator.js';
|
|
54
55
|
import '../list/list-hint.js';
|
|
55
56
|
|
|
56
|
-
/**
|
|
57
|
-
* @name Popup Menu
|
|
58
|
-
*/
|
|
59
57
|
class PopupMenu extends Popup {
|
|
60
58
|
static isItemType = List.isItemType;
|
|
61
59
|
static ListProps = List.ListProps;
|
|
@@ -82,8 +80,8 @@ class PopupMenu extends Popup {
|
|
|
82
80
|
className,
|
|
83
81
|
...props
|
|
84
82
|
} = this.props;
|
|
85
|
-
return jsx("div", {
|
|
86
|
-
children: jsx(List, {
|
|
83
|
+
return /*#__PURE__*/jsx("div", {
|
|
84
|
+
children: /*#__PURE__*/jsx(List, {
|
|
87
85
|
ref: this.listRef,
|
|
88
86
|
...props,
|
|
89
87
|
maxHeight: this.popup && parseFloat(this.popup.style.maxHeight),
|
|
@@ -45,6 +45,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
|
45
45
|
progressbarWrapperRef: (el: HTMLElement | null) => void;
|
|
46
46
|
progressbar?: HTMLElement | null;
|
|
47
47
|
progressbarRef: (el: HTMLElement | null) => void;
|
|
48
|
-
render(): import("react
|
|
48
|
+
render(): import("react").JSX.Element;
|
|
49
49
|
}
|
|
50
50
|
export type ProgressBarAttrs = React.JSX.LibraryManagedAttributes<typeof ProgressBar, ProgressBarProps>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var styles = {"progressBar":"ring-progress-bar-progressBar","globalMode":"ring-progress-bar-globalMode","line":"ring-progress-bar-line","progress-bar-animation":"ring-progress-bar-progress-bar-animation","staticLineColor":"ring-progress-bar-staticLineColor"};
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @name Progress Bar
|
|
9
|
-
*/
|
|
10
7
|
class ProgressBar extends PureComponent {
|
|
11
8
|
/**
|
|
12
9
|
* @param {number} value The progress task value
|
|
@@ -47,14 +44,14 @@ class ProgressBar extends PureComponent {
|
|
|
47
44
|
[styles.globalMode]: global,
|
|
48
45
|
[styles.staticLineColor]: staticColor
|
|
49
46
|
});
|
|
50
|
-
return jsx("div", {
|
|
47
|
+
return /*#__PURE__*/jsx("div", {
|
|
51
48
|
...otherProps,
|
|
52
49
|
className: classes,
|
|
53
50
|
ref: this.progressbarWrapperRef,
|
|
54
|
-
children: jsx("div", {
|
|
51
|
+
children: /*#__PURE__*/jsx("div", {
|
|
55
52
|
className: styles.line,
|
|
56
53
|
ref: this.progressbarRef,
|
|
57
|
-
role:
|
|
54
|
+
role: "progressbar",
|
|
58
55
|
"aria-label": label,
|
|
59
56
|
"aria-valuenow": value,
|
|
60
57
|
"aria-valuemin": 0,
|
|
@@ -18,7 +18,7 @@ export interface SuggestionItem {
|
|
|
18
18
|
}
|
|
19
19
|
export default class QueryAssistSuggestions {
|
|
20
20
|
static createKey(suggestion: QueryAssistSuggestion): string;
|
|
21
|
-
static renderLabel(suggestion: QueryAssistSuggestion): import("react
|
|
21
|
+
static renderLabel(suggestion: QueryAssistSuggestion): import("react").JSX.Element;
|
|
22
22
|
static renderGroupSeparator(suggestion: QueryAssistSuggestion, prevSuggestion: string): {
|
|
23
23
|
key: string;
|
|
24
24
|
description: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import 'react/jsx-runtime';
|
|
2
1
|
import '../list/list.js';
|
|
3
2
|
export { Q as default } from '../_helpers/query-assist-suggestions.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import 'react-virtualized/dist/es/List';
|
|
@@ -20,12 +20,13 @@ import 'combokeys';
|
|
|
20
20
|
import '../global/sniffer.js';
|
|
21
21
|
import 'sniffr';
|
|
22
22
|
import '../global/create-stateful-context.js';
|
|
23
|
+
import 'react-compiler-runtime';
|
|
23
24
|
import '../list/list-item.js';
|
|
24
25
|
import '../avatar/avatar.js';
|
|
25
26
|
import '../global/url.js';
|
|
26
|
-
import '../_helpers/avatar-info.js';
|
|
27
|
-
import '../avatar/avatar-size.js';
|
|
28
27
|
import '../avatar/fallback-avatar.js';
|
|
28
|
+
import '../avatar/avatar-size.js';
|
|
29
|
+
import '../_helpers/avatar-info.js';
|
|
29
30
|
import '../checkbox/checkbox.js';
|
|
30
31
|
import '@jetbrains/icons/checkmark-12px';
|
|
31
32
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -37,9 +38,9 @@ import '../control-help/control-help.js';
|
|
|
37
38
|
import '../link/link.js';
|
|
38
39
|
import '../link/clickable-link.js';
|
|
39
40
|
import '../_helpers/link.js';
|
|
40
|
-
import '../_helpers/list.js';
|
|
41
41
|
import '../list/consts.js';
|
|
42
42
|
import '../list/list.classes.js';
|
|
43
|
+
import '../_helpers/list.js';
|
|
43
44
|
import '../list/list-custom.js';
|
|
44
45
|
import '../global/get-event-key.js';
|
|
45
46
|
import '../list/list-title.js';
|
|
@@ -251,7 +251,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
251
251
|
setupRequestHandler(delay?: number | null): void;
|
|
252
252
|
private _renderSuggestion;
|
|
253
253
|
renderSuggestions(): import("../list/consts").ListDataItem<SuggestionItem>[];
|
|
254
|
-
renderQuery(): "" |
|
|
254
|
+
renderQuery(): "" | React.JSX.Element[] | null | undefined;
|
|
255
255
|
setFocus(focus: boolean | null | undefined): void;
|
|
256
256
|
input?: HTMLElement | null;
|
|
257
257
|
caret?: Caret;
|
|
@@ -270,7 +270,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
270
270
|
shortcutsMap: ShortcutsMap;
|
|
271
271
|
listShortcutsMap: ShortcutsMap;
|
|
272
272
|
renderActions(): ReactNode[];
|
|
273
|
-
render():
|
|
273
|
+
render(): React.JSX.Element;
|
|
274
274
|
}
|
|
275
275
|
export type QueryAssistAttrs = React.JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;
|
|
276
276
|
export declare const RerenderableQueryAssist: React.ForwardRefExoticComponent<QueryAssistProps & React.RefAttributes<QueryAssist>>;
|