@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 { Component } from 'react';
|
|
3
2
|
import debounce from 'just-debounce-it';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -20,7 +19,9 @@ import { ControlsHeightContext } from '../global/controls-height.js';
|
|
|
20
19
|
import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
|
21
20
|
import { I18nContext } from '../i18n/i18n-context.js';
|
|
22
21
|
import { Q as QueryAssistSuggestions, s as styles } from '../_helpers/query-assist-suggestions.js';
|
|
22
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
23
23
|
import { ControlsHeight } from '../global/configuration.js';
|
|
24
|
+
import 'react-compiler-runtime';
|
|
24
25
|
import 'react-dom/server';
|
|
25
26
|
import '../popup/popup.js';
|
|
26
27
|
import 'react-dom';
|
|
@@ -42,9 +43,9 @@ import '../global/create-stateful-context.js';
|
|
|
42
43
|
import '../list/list-item.js';
|
|
43
44
|
import '../avatar/avatar.js';
|
|
44
45
|
import '../global/url.js';
|
|
45
|
-
import '../_helpers/avatar-info.js';
|
|
46
|
-
import '../avatar/avatar-size.js';
|
|
47
46
|
import '../avatar/fallback-avatar.js';
|
|
47
|
+
import '../avatar/avatar-size.js';
|
|
48
|
+
import '../_helpers/avatar-info.js';
|
|
48
49
|
import '../checkbox/checkbox.js';
|
|
49
50
|
import '@jetbrains/icons/checkmark-12px';
|
|
50
51
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -53,9 +54,9 @@ import '../control-help/control-help.js';
|
|
|
53
54
|
import '../link/link.js';
|
|
54
55
|
import '../link/clickable-link.js';
|
|
55
56
|
import '../_helpers/link.js';
|
|
56
|
-
import '../_helpers/list.js';
|
|
57
57
|
import '../list/consts.js';
|
|
58
58
|
import '../list/list.classes.js';
|
|
59
|
+
import '../_helpers/list.js';
|
|
59
60
|
import '../icon/icon.constants.js';
|
|
60
61
|
import '../_helpers/icon-svg.js';
|
|
61
62
|
import '../list/list-custom.js';
|
|
@@ -690,7 +691,7 @@ class QueryAssist extends Component {
|
|
|
690
691
|
const className = classNames(styles.letter, classes[index] || LETTER_DEFAULT_CLASS);
|
|
691
692
|
const dataTest = letters.length - 1 === index ? 'ring-query-assist-last-letter' : null;
|
|
692
693
|
// \u00a0 ===
|
|
693
|
-
return jsx("span", {
|
|
694
|
+
return /*#__PURE__*/jsx("span", {
|
|
694
695
|
className: className,
|
|
695
696
|
"data-test": dataTest,
|
|
696
697
|
children: letter === ' ' ? '\u00a0' : letter
|
|
@@ -764,18 +765,18 @@ class QueryAssist extends Component {
|
|
|
764
765
|
const actions = [...(this.props.actions || [])];
|
|
765
766
|
const renderClear = this.props.clear && !!this.state.query;
|
|
766
767
|
if (renderClear) {
|
|
767
|
-
actions.push(jsx(I18nContext.Consumer, {
|
|
768
|
+
actions.push(/*#__PURE__*/jsx(I18nContext.Consumer, {
|
|
768
769
|
children: ({
|
|
769
770
|
translate
|
|
770
771
|
}) => {
|
|
771
772
|
var _this$props$translati;
|
|
772
|
-
return jsx(Button, {
|
|
773
|
+
return /*#__PURE__*/jsx(Button, {
|
|
773
774
|
icon: closeIcon,
|
|
774
775
|
className: styles.clear,
|
|
775
776
|
title: (_this$props$translati = this.props.translations?.clearTitle) !== null && _this$props$translati !== void 0 ? _this$props$translati : translate('clearTitle'),
|
|
776
777
|
ref: this.clearRef,
|
|
777
778
|
onClick: this.clearQuery,
|
|
778
|
-
"data-test":
|
|
779
|
+
"data-test": "query-assist-clear-icon"
|
|
779
780
|
});
|
|
780
781
|
}
|
|
781
782
|
}, 'clearAction'));
|
|
@@ -814,38 +815,38 @@ class QueryAssist extends Component {
|
|
|
814
815
|
[styles.hugePlaceholder]: huge,
|
|
815
816
|
[styles.withoutGlass]: !glass || !renderLoader && huge
|
|
816
817
|
});
|
|
817
|
-
return jsx(ControlsHeightContext.Provider, {
|
|
818
|
+
return /*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
|
818
819
|
value: ControlsHeight.M,
|
|
819
|
-
children: jsx(I18nContext.Consumer, {
|
|
820
|
+
children: /*#__PURE__*/jsx(I18nContext.Consumer, {
|
|
820
821
|
children: ({
|
|
821
822
|
translate
|
|
822
823
|
}) => {
|
|
823
824
|
var _translations$searchT, _translations$searchT2, _translations$searchT3;
|
|
824
|
-
return jsxs("div", {
|
|
825
|
+
return /*#__PURE__*/jsxs("div", {
|
|
825
826
|
"data-test": joinDataTestAttributes('ring-query-assist', dataTest),
|
|
826
827
|
className: containerClasses,
|
|
827
|
-
role:
|
|
828
|
+
role: "presentation",
|
|
828
829
|
ref: this.nodeRef,
|
|
829
|
-
children: [this.state.shortcuts && jsx(Shortcuts, {
|
|
830
|
+
children: [this.state.shortcuts && /*#__PURE__*/jsx(Shortcuts, {
|
|
830
831
|
map: this.shortcutsMap,
|
|
831
832
|
scope: this.shortcutsScope
|
|
832
|
-
}), renderGlass && !huge && jsx(Icon, {
|
|
833
|
+
}), renderGlass && !huge && /*#__PURE__*/jsx(Icon, {
|
|
833
834
|
glyph: searchIcon,
|
|
834
835
|
className: styles.icon,
|
|
835
836
|
title: (_translations$searchT = translations?.searchTitle) !== null && _translations$searchT !== void 0 ? _translations$searchT : translate('searchTitle'),
|
|
836
837
|
ref: this.glassRef,
|
|
837
|
-
"data-test":
|
|
838
|
-
}), renderLoader && jsx("div", {
|
|
838
|
+
"data-test": "query-assist-search-icon"
|
|
839
|
+
}), renderLoader && /*#__PURE__*/jsx("div", {
|
|
839
840
|
className: classNames(styles.icon, styles.loader, {
|
|
840
841
|
[styles.loaderOnTheRight]: !glass && !huge,
|
|
841
842
|
[styles.loaderActive]: renderLoader
|
|
842
843
|
}),
|
|
843
844
|
ref: this.loaderRef,
|
|
844
|
-
children: jsx(LoaderInline, {})
|
|
845
|
-
}), jsx(ContentEditable, {
|
|
845
|
+
children: /*#__PURE__*/jsx(LoaderInline, {})
|
|
846
|
+
}), /*#__PURE__*/jsx(ContentEditable, {
|
|
846
847
|
"aria-label": (_translations$searchT2 = translations?.searchTitle) !== null && _translations$searchT2 !== void 0 ? _translations$searchT2 : translate('searchTitle'),
|
|
847
848
|
className: inputClasses,
|
|
848
|
-
"data-test":
|
|
849
|
+
"data-test": "ring-query-assist-input",
|
|
849
850
|
inputRef: this.inputRef,
|
|
850
851
|
disabled: this.props.disabled,
|
|
851
852
|
onComponentUpdate: () => this.setCaretPosition({
|
|
@@ -856,28 +857,30 @@ class QueryAssist extends Component {
|
|
|
856
857
|
onCompositionStart: this.trackCompositionState,
|
|
857
858
|
onCompositionEnd: this.trackCompositionState,
|
|
858
859
|
onFocus: this.handleFocusChange,
|
|
859
|
-
onInput: this.handleInput
|
|
860
|
-
|
|
860
|
+
onInput: this.handleInput // To support IE use the same method
|
|
861
|
+
,
|
|
862
|
+
onKeyUp: this.handleInput // to handle input and key up
|
|
863
|
+
,
|
|
861
864
|
onKeyDown: this.handleEnter,
|
|
862
865
|
onPaste: this.handlePaste,
|
|
863
|
-
spellCheck:
|
|
864
|
-
children: this.state.query && jsx("span", {
|
|
866
|
+
spellCheck: "false",
|
|
867
|
+
children: this.state.query && /*#__PURE__*/jsx("span", {
|
|
865
868
|
children: this.renderQuery()
|
|
866
869
|
})
|
|
867
|
-
}), renderPlaceholder && jsx("button", {
|
|
868
|
-
type:
|
|
870
|
+
}), renderPlaceholder && /*#__PURE__*/jsx("button", {
|
|
871
|
+
type: "button",
|
|
869
872
|
className: placeholderStyles,
|
|
870
873
|
ref: this.placeholderRef,
|
|
871
874
|
onClick: this.handleCaretMove,
|
|
872
|
-
"data-test":
|
|
875
|
+
"data-test": "query-assist-placeholder",
|
|
873
876
|
disabled: this.props.disabled,
|
|
874
877
|
tabIndex: -1,
|
|
875
878
|
children: this.props.placeholder
|
|
876
|
-
}), actions.length ? jsx("div", {
|
|
877
|
-
"data-test":
|
|
879
|
+
}), actions.length ? /*#__PURE__*/jsx("div", {
|
|
880
|
+
"data-test": "ring-query-assist-actions",
|
|
878
881
|
className: styles.actions,
|
|
879
882
|
children: actions
|
|
880
|
-
}) : null, jsx(PopupMenu, {
|
|
883
|
+
}) : null, /*#__PURE__*/jsx(PopupMenu, {
|
|
881
884
|
hidden: !this.state.showPopup,
|
|
882
885
|
onCloseAttempt: this.closePopup,
|
|
883
886
|
ref: this.popupRef,
|
|
@@ -887,7 +890,7 @@ class QueryAssist extends Component {
|
|
|
887
890
|
className: this.props.popupClassName,
|
|
888
891
|
directions: [PopupMenu.PopupProps.Directions.BOTTOM_RIGHT],
|
|
889
892
|
data: useCustomItemRender ? this.state.suggestions : this.renderSuggestions(),
|
|
890
|
-
"data-test":
|
|
893
|
+
"data-test": "ring-query-assist-popup",
|
|
891
894
|
hint: this.props.hint,
|
|
892
895
|
shortcutsMap: this.listShortcutsMap,
|
|
893
896
|
hintOnSelection: this.props.hintOnSelection,
|
|
@@ -896,16 +899,16 @@ class QueryAssist extends Component {
|
|
|
896
899
|
onMouseDown: this.trackPopupMouseState,
|
|
897
900
|
onMouseUp: this.trackPopupMouseState,
|
|
898
901
|
onSelect: item => this.handleComplete(item)
|
|
899
|
-
}), glass && huge && jsx("div", {
|
|
902
|
+
}), glass && huge && /*#__PURE__*/jsx("div", {
|
|
900
903
|
className: styles.rightSearchButton,
|
|
901
|
-
"data-test":
|
|
902
|
-
children: jsx(Icon, {
|
|
904
|
+
"data-test": "query-assist-search-button",
|
|
905
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
903
906
|
glyph: searchIcon,
|
|
904
907
|
className: styles.rightSearchIcon,
|
|
905
908
|
title: (_translations$searchT3 = translations?.searchTitle) !== null && _translations$searchT3 !== void 0 ? _translations$searchT3 : translate('searchTitle'),
|
|
906
909
|
onClick: this.handleApply,
|
|
907
910
|
ref: this.glassRef,
|
|
908
|
-
"data-test":
|
|
911
|
+
"data-test": "query-assist-search-icon"
|
|
909
912
|
})
|
|
910
913
|
})]
|
|
911
914
|
});
|
|
@@ -13,7 +13,7 @@ export declare class RadioItemInner extends Component<RadioItemInnerProps> {
|
|
|
13
13
|
inputRef: (el: HTMLElement | null) => void;
|
|
14
14
|
label?: HTMLElement | null;
|
|
15
15
|
labelRef: (el: HTMLElement | null) => void;
|
|
16
|
-
render(): import("react
|
|
16
|
+
render(): import("react").JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export interface RadioItemProps extends RadioItemInnerProps {
|
|
19
19
|
value: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { forwardRef, createContext, Component } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import getUID from '../global/get-uid.js';
|
|
5
5
|
import ControlHelp from '../control-help/control-help.js';
|
|
6
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
7
|
|
|
7
8
|
var styles = {"radio":"ring-radio-radio","circle":"ring-radio-circle","input":"ring-radio-input","focus":"ring-radio-focus","label":"ring-radio-label"};
|
|
8
9
|
|
|
@@ -25,21 +26,21 @@ class RadioItemInner extends Component {
|
|
|
25
26
|
...restProps
|
|
26
27
|
} = this.props;
|
|
27
28
|
const classes = classNames(styles.radio, className);
|
|
28
|
-
return jsxs("label", {
|
|
29
|
+
return /*#__PURE__*/jsxs("label", {
|
|
29
30
|
ref: this.labelRef,
|
|
30
31
|
className: classes,
|
|
31
32
|
htmlFor: this.uid,
|
|
32
|
-
children: [jsx("input", {
|
|
33
|
+
children: [/*#__PURE__*/jsx("input", {
|
|
33
34
|
id: this.uid,
|
|
34
35
|
...restProps,
|
|
35
36
|
ref: this.inputRef,
|
|
36
37
|
className: styles.input,
|
|
37
|
-
type:
|
|
38
|
-
}), jsx("span", {
|
|
38
|
+
type: "radio"
|
|
39
|
+
}), /*#__PURE__*/jsx("span", {
|
|
39
40
|
className: styles.circle
|
|
40
|
-
}), jsxs("span", {
|
|
41
|
+
}), /*#__PURE__*/jsxs("span", {
|
|
41
42
|
className: styles.label,
|
|
42
|
-
children: [children, help && jsx(ControlHelp, {
|
|
43
|
+
children: [children, help && /*#__PURE__*/jsx(ControlHelp, {
|
|
43
44
|
children: help
|
|
44
45
|
})]
|
|
45
46
|
})]
|
|
@@ -47,19 +48,38 @@ class RadioItemInner extends Component {
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(props, ref) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
const $ = c(4);
|
|
52
|
+
if ($[0] !== "3188350a888d4041d2a02a273f83e84f8d42c8d785cec28bc6b4e5db93df5501") {
|
|
53
|
+
for (let $i = 0; $i < 4; $i += 1) {
|
|
54
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
55
|
+
}
|
|
56
|
+
$[0] = "3188350a888d4041d2a02a273f83e84f8d42c8d785cec28bc6b4e5db93df5501";
|
|
57
|
+
}
|
|
58
|
+
let t0;
|
|
59
|
+
if ($[1] !== props || $[2] !== ref) {
|
|
60
|
+
t0 = /*#__PURE__*/jsx(RadioContext.Consumer, {
|
|
61
|
+
children: t1 => {
|
|
62
|
+
const {
|
|
63
|
+
value,
|
|
64
|
+
onChange,
|
|
65
|
+
...restContext
|
|
66
|
+
} = t1;
|
|
67
|
+
return /*#__PURE__*/jsx(RadioItemInner, {
|
|
68
|
+
ref: ref,
|
|
69
|
+
...restContext,
|
|
70
|
+
checked: value !== undefined ? value === props.value : undefined,
|
|
71
|
+
onChange: onChange ? () => onChange(props.value) : undefined,
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
$[1] = props;
|
|
77
|
+
$[2] = ref;
|
|
78
|
+
$[3] = t0;
|
|
79
|
+
} else {
|
|
80
|
+
t0 = $[3];
|
|
81
|
+
}
|
|
82
|
+
return t0;
|
|
63
83
|
});
|
|
64
84
|
|
|
65
85
|
export { RadioContext, RadioItemInner, RadioItem as default };
|
|
@@ -6,5 +6,5 @@ import { type RadioProps } from './radio-item';
|
|
|
6
6
|
export default class Radio extends Component<RadioProps> {
|
|
7
7
|
static Item: import("react").ForwardRefExoticComponent<import("./radio-item").RadioItemProps & import("react").RefAttributes<import("./radio-item").RadioItemInner>>;
|
|
8
8
|
uid: string;
|
|
9
|
-
render(): import("react
|
|
9
|
+
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import getUID from '../global/get-uid.js';
|
|
4
3
|
import RadioItem, { RadioContext } from './radio-item.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
import 'react-compiler-runtime';
|
|
5
6
|
import 'classnames';
|
|
6
7
|
import '../control-help/control-help.js';
|
|
7
8
|
|
|
8
|
-
/**
|
|
9
|
-
* @name Radio
|
|
10
|
-
*/
|
|
11
9
|
class Radio extends Component {
|
|
12
10
|
static Item = RadioItem;
|
|
13
11
|
uid = getUID('ring-radio-');
|
|
14
12
|
render() {
|
|
15
|
-
return jsx(RadioContext.Provider, {
|
|
13
|
+
return /*#__PURE__*/jsx(RadioContext.Provider, {
|
|
16
14
|
value: {
|
|
17
15
|
name: this.uid,
|
|
18
16
|
...this.props
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
export default function ScrollableSection({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react
|
|
2
|
+
export default function ScrollableSection({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
@@ -1,50 +1,112 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState, useRef,
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
var styles = {"scrollableSection":"ring-scrollable-section-scrollableSection","withTopBorder":"ring-scrollable-section-withTopBorder","withRightBorder":"ring-scrollable-section-withRightBorder","withBottomBorder":"ring-scrollable-section-withBottomBorder","withLeftBorder":"ring-scrollable-section-withLeftBorder"};
|
|
6
7
|
|
|
7
|
-
function ScrollableSection({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
function ScrollableSection(t0) {
|
|
9
|
+
const $ = c(16);
|
|
10
|
+
if ($[0] !== "87f994d0cc39c6d32c770eec60675ea0f3bc80b6b7157262f1770a82243ec370") {
|
|
11
|
+
for (let $i = 0; $i < 16; $i += 1) {
|
|
12
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13
|
+
}
|
|
14
|
+
$[0] = "87f994d0cc39c6d32c770eec60675ea0f3bc80b6b7157262f1770a82243ec370";
|
|
15
|
+
}
|
|
16
|
+
let className;
|
|
17
|
+
let restProps;
|
|
18
|
+
if ($[1] !== t0) {
|
|
19
|
+
({
|
|
20
|
+
className,
|
|
21
|
+
...restProps
|
|
22
|
+
} = t0);
|
|
23
|
+
$[1] = t0;
|
|
24
|
+
$[2] = className;
|
|
25
|
+
$[3] = restProps;
|
|
26
|
+
} else {
|
|
27
|
+
className = $[2];
|
|
28
|
+
restProps = $[3];
|
|
29
|
+
}
|
|
11
30
|
const [scrolledToTop, setScrolledToTop] = useState(false);
|
|
12
31
|
const [scrolledToRight, setScrolledToRight] = useState(false);
|
|
13
32
|
const [scrolledToBottom, setScrolledToBottom] = useState(false);
|
|
14
33
|
const [scrolledToLeft, setScrolledToLeft] = useState(false);
|
|
15
34
|
const ref = useRef(null);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
let t1;
|
|
36
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
37
|
+
t1 = () => {
|
|
38
|
+
if (ref.current) {
|
|
39
|
+
const {
|
|
40
|
+
scrollTop,
|
|
41
|
+
scrollLeft,
|
|
42
|
+
scrollHeight,
|
|
43
|
+
scrollWidth,
|
|
44
|
+
offsetHeight,
|
|
45
|
+
offsetWidth
|
|
46
|
+
} = ref.current;
|
|
47
|
+
setScrolledToTop(scrollTop === 0);
|
|
48
|
+
setScrolledToRight(offsetWidth + scrollLeft >= scrollWidth);
|
|
49
|
+
setScrolledToBottom(offsetHeight + scrollTop >= scrollHeight);
|
|
50
|
+
setScrolledToLeft(scrollLeft === 0);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
$[4] = t1;
|
|
54
|
+
} else {
|
|
55
|
+
t1 = $[4];
|
|
56
|
+
}
|
|
57
|
+
const calculateScrollPosition = t1;
|
|
58
|
+
let t2;
|
|
59
|
+
let t3;
|
|
60
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
61
|
+
t2 = () => {
|
|
62
|
+
requestAnimationFrame(calculateScrollPosition);
|
|
63
|
+
window.addEventListener("resize", calculateScrollPosition);
|
|
64
|
+
return () => window.removeEventListener("resize", calculateScrollPosition);
|
|
65
|
+
};
|
|
66
|
+
t3 = [calculateScrollPosition];
|
|
67
|
+
$[5] = t2;
|
|
68
|
+
$[6] = t3;
|
|
69
|
+
} else {
|
|
70
|
+
t2 = $[5];
|
|
71
|
+
t3 = $[6];
|
|
72
|
+
}
|
|
73
|
+
useEffect(t2, t3);
|
|
74
|
+
const t4 = !scrolledToTop;
|
|
75
|
+
const t5 = !scrolledToRight;
|
|
76
|
+
const t6 = !scrolledToBottom;
|
|
77
|
+
const t7 = !scrolledToLeft;
|
|
78
|
+
let t8;
|
|
79
|
+
if ($[7] !== className || $[8] !== t4 || $[9] !== t5 || $[10] !== t6 || $[11] !== t7) {
|
|
80
|
+
t8 = classNames(styles.scrollableSection, className, {
|
|
81
|
+
[styles.withTopBorder]: t4,
|
|
82
|
+
[styles.withRightBorder]: t5,
|
|
83
|
+
[styles.withBottomBorder]: t6,
|
|
84
|
+
[styles.withLeftBorder]: t7
|
|
85
|
+
});
|
|
86
|
+
$[7] = className;
|
|
87
|
+
$[8] = t4;
|
|
88
|
+
$[9] = t5;
|
|
89
|
+
$[10] = t6;
|
|
90
|
+
$[11] = t7;
|
|
91
|
+
$[12] = t8;
|
|
92
|
+
} else {
|
|
93
|
+
t8 = $[12];
|
|
94
|
+
}
|
|
95
|
+
let t9;
|
|
96
|
+
if ($[13] !== restProps || $[14] !== t8) {
|
|
97
|
+
t9 = /*#__PURE__*/jsx("div", {
|
|
98
|
+
...restProps,
|
|
99
|
+
className: t8,
|
|
100
|
+
ref: ref,
|
|
101
|
+
onScroll: calculateScrollPosition
|
|
102
|
+
});
|
|
103
|
+
$[13] = restProps;
|
|
104
|
+
$[14] = t8;
|
|
105
|
+
$[15] = t9;
|
|
106
|
+
} else {
|
|
107
|
+
t9 = $[15];
|
|
108
|
+
}
|
|
109
|
+
return t9;
|
|
48
110
|
}
|
|
49
111
|
|
|
50
112
|
export { ScrollableSection as default };
|
|
@@ -13,6 +13,6 @@ export default class SelectFilter extends Component<SelectFilterProps> {
|
|
|
13
13
|
blur(): void;
|
|
14
14
|
input?: HTMLInputElement | HTMLTextAreaElement | null;
|
|
15
15
|
inputRef: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
|
|
16
|
-
render(): import("react
|
|
16
|
+
render(): import("react").JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import 'react/jsx-runtime';
|
|
2
1
|
import 'react';
|
|
3
2
|
import 'classnames';
|
|
4
3
|
import '../_helpers/input.js';
|
|
@@ -6,6 +5,7 @@ import '../global/sniffer.js';
|
|
|
6
5
|
import '../list/list.js';
|
|
7
6
|
import '../i18n/i18n-context.js';
|
|
8
7
|
export { S as default } from '../_helpers/select-filter.js';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
9
9
|
import '@jetbrains/icons/close-12px';
|
|
10
10
|
import '../button/button.js';
|
|
11
11
|
import '@jetbrains/icons/chevron-down';
|
|
@@ -14,6 +14,7 @@ import 'util-deprecate';
|
|
|
14
14
|
import '../icon/icon.js';
|
|
15
15
|
import '../icon/icon.constants.js';
|
|
16
16
|
import '../_helpers/icon-svg.js';
|
|
17
|
+
import 'react-compiler-runtime';
|
|
17
18
|
import '../global/memoize.js';
|
|
18
19
|
import '../link/clickable-link.js';
|
|
19
20
|
import '../global/controls-height.js';
|
|
@@ -39,17 +40,17 @@ import '../global/create-stateful-context.js';
|
|
|
39
40
|
import '../list/list-item.js';
|
|
40
41
|
import '../avatar/avatar.js';
|
|
41
42
|
import '../global/url.js';
|
|
42
|
-
import '../_helpers/avatar-info.js';
|
|
43
|
-
import '../avatar/avatar-size.js';
|
|
44
43
|
import '../avatar/fallback-avatar.js';
|
|
44
|
+
import '../avatar/avatar-size.js';
|
|
45
|
+
import '../_helpers/avatar-info.js';
|
|
45
46
|
import '../checkbox/checkbox.js';
|
|
46
47
|
import '@jetbrains/icons/checkmark-12px';
|
|
47
48
|
import '@jetbrains/icons/remove-12px';
|
|
48
49
|
import '../link/link.js';
|
|
49
50
|
import '../_helpers/link.js';
|
|
50
|
-
import '../_helpers/list.js';
|
|
51
51
|
import '../list/consts.js';
|
|
52
52
|
import '../list/list.classes.js';
|
|
53
|
+
import '../_helpers/list.js';
|
|
53
54
|
import '../list/list-custom.js';
|
|
54
55
|
import '../global/get-event-key.js';
|
|
55
56
|
import '../list/list-title.js';
|
|
@@ -110,17 +110,17 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
|
110
110
|
onListSelect: (selected: ListDataItem<T>, event?: Event | SyntheticEvent, opts?: SelectHandlerParams) => void;
|
|
111
111
|
tabPress: (event: Event) => void;
|
|
112
112
|
onClickHandler: () => void | undefined;
|
|
113
|
-
getFilter():
|
|
113
|
+
getFilter(): React.JSX.Element | null;
|
|
114
114
|
handleRemoveTag: (arg: ListDataItem<T>) => (event: SyntheticEvent) => void;
|
|
115
115
|
handleTagClick: (arg: ListDataItem<T>) => () => void;
|
|
116
116
|
getCustomTag(tags: Tags | boolean | null): ((tag: TagAttrs) => ReactNode) | undefined;
|
|
117
|
-
getTags(): false |
|
|
118
|
-
getFilterWithTags():
|
|
119
|
-
getBottomLine(): "" |
|
|
117
|
+
getTags(): false | React.JSX.Element;
|
|
118
|
+
getFilterWithTags(): React.JSX.Element | null;
|
|
119
|
+
getBottomLine(): "" | React.JSX.Element | null;
|
|
120
120
|
handleListResize: () => void;
|
|
121
|
-
getList(ringPopupTarget: string | Element | undefined):
|
|
121
|
+
getList(ringPopupTarget: string | Element | undefined): React.JSX.Element | null;
|
|
122
122
|
handleSelectAll: () => void;
|
|
123
|
-
getSelectAll: () => false |
|
|
123
|
+
getSelectAll: () => false | React.JSX.Element;
|
|
124
124
|
private _adjustListMaxHeight;
|
|
125
125
|
popupRef: (el: Popup | null) => void;
|
|
126
126
|
list?: List<T> | null;
|
|
@@ -132,6 +132,6 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
|
132
132
|
tab: (event: Event) => void;
|
|
133
133
|
};
|
|
134
134
|
popupFilterShortcutsMap: ShortcutsMap;
|
|
135
|
-
render():
|
|
135
|
+
render(): React.JSX.Element;
|
|
136
136
|
}
|
|
137
137
|
export type SelectPopupAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof SelectPopup, SelectPopupProps<T>>;
|