@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
package/components/table/row.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
@@ -12,6 +12,7 @@ import getUID from '../global/get-uid.js';
|
|
|
12
12
|
import { createComposedRef } from '../global/compose-refs.js';
|
|
13
13
|
import Cell from './cell.js';
|
|
14
14
|
import { s as style } from '../_helpers/table.js';
|
|
15
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
15
16
|
import '@jetbrains/icons/checkmark-12px';
|
|
16
17
|
import '@jetbrains/icons/remove-12px';
|
|
17
18
|
import '../icon/icon.js';
|
|
@@ -42,19 +43,45 @@ import '../popup/position-css.js';
|
|
|
42
43
|
import '../_helpers/theme.js';
|
|
43
44
|
import 'memoize-one';
|
|
44
45
|
|
|
45
|
-
const DragHandle =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
const DragHandle = t0 => {
|
|
47
|
+
const $ = c(6);
|
|
48
|
+
if ($[0] !== "76275aa4db7d4efa60de02fbe68cf8112bea4364168de4c4ce14a1880acc9fa1") {
|
|
49
|
+
for (let $i = 0; $i < 6; $i += 1) {
|
|
50
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
51
|
+
}
|
|
52
|
+
$[0] = "76275aa4db7d4efa60de02fbe68cf8112bea4364168de4c4ce14a1880acc9fa1";
|
|
53
|
+
}
|
|
54
|
+
const {
|
|
55
|
+
alwaysShowDragHandle,
|
|
56
|
+
dragHandleTitle: t1
|
|
57
|
+
} = t0;
|
|
58
|
+
const dragHandleTitle = t1 === undefined ? "Drag to reorder" : t1;
|
|
59
|
+
let t2;
|
|
60
|
+
if ($[1] !== alwaysShowDragHandle) {
|
|
61
|
+
t2 = classNames(style.dragHandle, {
|
|
62
|
+
[style.visibleDragHandle]: alwaysShowDragHandle
|
|
63
|
+
});
|
|
64
|
+
$[1] = alwaysShowDragHandle;
|
|
65
|
+
$[2] = t2;
|
|
66
|
+
} else {
|
|
67
|
+
t2 = $[2];
|
|
68
|
+
}
|
|
69
|
+
const classes = t2;
|
|
70
|
+
let t3;
|
|
71
|
+
if ($[3] !== classes || $[4] !== dragHandleTitle) {
|
|
72
|
+
t3 = /*#__PURE__*/jsx(Button, {
|
|
73
|
+
"data-movable-handle": true,
|
|
74
|
+
title: dragHandleTitle,
|
|
75
|
+
className: classes,
|
|
76
|
+
icon: dragIcon
|
|
77
|
+
});
|
|
78
|
+
$[3] = classes;
|
|
79
|
+
$[4] = dragHandleTitle;
|
|
80
|
+
$[5] = t3;
|
|
81
|
+
} else {
|
|
82
|
+
t3 = $[5];
|
|
83
|
+
}
|
|
84
|
+
return t3;
|
|
58
85
|
};
|
|
59
86
|
class Row extends PureComponent {
|
|
60
87
|
static defaultProps = {
|
|
@@ -165,15 +192,15 @@ class Row extends PureComponent {
|
|
|
165
192
|
const metaColumnStyle = {
|
|
166
193
|
paddingLeft: `${gap}px`
|
|
167
194
|
};
|
|
168
|
-
const metaColumn = jsxs("div", {
|
|
195
|
+
const metaColumn = /*#__PURE__*/jsxs("div", {
|
|
169
196
|
className: metaColumnClasses,
|
|
170
197
|
style: metaColumnStyle,
|
|
171
|
-
children: [draggable && jsx(DragHandle, {
|
|
198
|
+
children: [draggable && /*#__PURE__*/jsx(DragHandle, {
|
|
172
199
|
alwaysShowDragHandle: alwaysShowDragHandle,
|
|
173
200
|
dragHandleTitle: dragHandleTitle
|
|
174
|
-
}), selectable && jsx(Tooltip, {
|
|
201
|
+
}), selectable && /*#__PURE__*/jsx(Tooltip, {
|
|
175
202
|
title: checkboxTooltip,
|
|
176
|
-
children: jsx(Checkbox, {
|
|
203
|
+
children: /*#__PURE__*/jsx(Checkbox, {
|
|
177
204
|
"aria-labelledby": this.id,
|
|
178
205
|
className: showFocus ? 'ring-checkbox_focus' : '',
|
|
179
206
|
checked: selected,
|
|
@@ -181,18 +208,18 @@ class Row extends PureComponent {
|
|
|
181
208
|
onChange: this.onCheckboxChange,
|
|
182
209
|
tabIndex: -1
|
|
183
210
|
})
|
|
184
|
-
}), !selectable && showDisabledSelection && jsx(Tooltip, {
|
|
211
|
+
}), !selectable && showDisabledSelection && /*#__PURE__*/jsx(Tooltip, {
|
|
185
212
|
title: checkboxTooltip,
|
|
186
|
-
children: jsx(Checkbox, {
|
|
213
|
+
children: /*#__PURE__*/jsx(Checkbox, {
|
|
187
214
|
"aria-labelledby": this.id,
|
|
188
215
|
checked: selected,
|
|
189
216
|
disabled: true
|
|
190
217
|
})
|
|
191
|
-
}), collapsible && collapsed && jsx(Button, {
|
|
218
|
+
}), collapsible && collapsed && /*#__PURE__*/jsx(Button, {
|
|
192
219
|
className: style.rowCollapseExpandButton,
|
|
193
220
|
icon: chevronRightIcon,
|
|
194
221
|
onClick: () => onExpand(item)
|
|
195
|
-
}), collapsible && !collapsed && jsx(Button, {
|
|
222
|
+
}), collapsible && !collapsed && /*#__PURE__*/jsx(Button, {
|
|
196
223
|
className: style.rowCollapseExpandButton,
|
|
197
224
|
icon: chevronDownIcon,
|
|
198
225
|
onClick: () => onCollapse(item)
|
|
@@ -207,14 +234,14 @@ class Row extends PureComponent {
|
|
|
207
234
|
[style.cellRight]: column.rightAlign
|
|
208
235
|
}, column.className);
|
|
209
236
|
const showMetaColumn = draggable || selectable || collapsible || showDisabledSelection || !!level;
|
|
210
|
-
return jsxs(Cell, {
|
|
237
|
+
return /*#__PURE__*/jsxs(Cell, {
|
|
211
238
|
colSpan: column.colSpan,
|
|
212
239
|
className: cellClasses,
|
|
213
240
|
"data-test": getDataTest(item, column),
|
|
214
241
|
children: [index === 0 && showMetaColumn && metaColumn, value]
|
|
215
242
|
}, column.id);
|
|
216
243
|
});
|
|
217
|
-
return jsx("tr", {
|
|
244
|
+
return /*#__PURE__*/jsx("tr", {
|
|
218
245
|
id: this.id,
|
|
219
246
|
ref: this.composedRowRef(this.rowRef, innerRef),
|
|
220
247
|
className: classes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
function selectionShortcutsHOC(ComposedComponent) {
|
|
5
5
|
class SelectionShortcuts extends PureComponent {
|
|
@@ -153,7 +153,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
153
153
|
shortcuts,
|
|
154
154
|
...restProps
|
|
155
155
|
} = this.props;
|
|
156
|
-
return jsx(ComposedComponent, {
|
|
156
|
+
return /*#__PURE__*/jsx(ComposedComponent, {
|
|
157
157
|
...restProps,
|
|
158
158
|
selection: selection,
|
|
159
159
|
selectable: selectable,
|
|
@@ -12,6 +12,6 @@ declare class SimpleTable<T extends SelectionItem> extends PureComponent<SimpleT
|
|
|
12
12
|
selection: Selection<T>;
|
|
13
13
|
};
|
|
14
14
|
classes: string;
|
|
15
|
-
render(): import("react
|
|
15
|
+
render(): import("react").JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
export default SimpleTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
|
-
import { s as style } from '../_helpers/table.js';
|
|
5
3
|
import TableContainer from './table.js';
|
|
6
4
|
import Selection$1 from './selection.js';
|
|
5
|
+
import { s as style } from '../_helpers/table.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
import 'react-movable';
|
|
8
8
|
import '../global/focus-sensor-hoc.js';
|
|
9
9
|
import '../global/compose-refs.js';
|
|
@@ -25,6 +25,7 @@ import '../icon/icon.js';
|
|
|
25
25
|
import 'util-deprecate';
|
|
26
26
|
import '../icon/icon.constants.js';
|
|
27
27
|
import '../_helpers/icon-svg.js';
|
|
28
|
+
import 'react-compiler-runtime';
|
|
28
29
|
import '../global/memoize.js';
|
|
29
30
|
import '../control-help/control-help.js';
|
|
30
31
|
import './header-cell.js';
|
|
@@ -67,7 +68,7 @@ class SimpleTable extends PureComponent {
|
|
|
67
68
|
};
|
|
68
69
|
classes = classNames(style.disabledHover, this.props.className);
|
|
69
70
|
render() {
|
|
70
|
-
return jsx(TableContainer, {
|
|
71
|
+
return /*#__PURE__*/jsx(TableContainer, {
|
|
71
72
|
...this.props,
|
|
72
73
|
className: this.classes,
|
|
73
74
|
...this.state
|
|
@@ -14,6 +14,6 @@ declare class SmartTable<T extends SelectionItem> extends PureComponent<SmartTab
|
|
|
14
14
|
};
|
|
15
15
|
UNSAFE_componentWillReceiveProps(nextProps: SmartTableProps<T>): void;
|
|
16
16
|
onSelect: (selection: Selection<T>) => void;
|
|
17
|
-
render(): import("react
|
|
17
|
+
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export default SmartTable;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import TableContainer from './table.js';
|
|
4
3
|
import Selection$1 from './selection.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import 'react-movable';
|
|
7
7
|
import '../global/focus-sensor-hoc.js';
|
|
@@ -24,13 +24,14 @@ import '../icon/icon.js';
|
|
|
24
24
|
import 'util-deprecate';
|
|
25
25
|
import '../icon/icon.constants.js';
|
|
26
26
|
import '../_helpers/icon-svg.js';
|
|
27
|
+
import 'react-compiler-runtime';
|
|
27
28
|
import '../global/memoize.js';
|
|
28
29
|
import '../control-help/control-help.js';
|
|
29
|
-
import '../_helpers/table.js';
|
|
30
30
|
import './header-cell.js';
|
|
31
31
|
import '@jetbrains/icons/unsorted-12px';
|
|
32
32
|
import '@jetbrains/icons/chevron-12px-down';
|
|
33
33
|
import '../global/data-tests.js';
|
|
34
|
+
import '../_helpers/table.js';
|
|
34
35
|
import './selection-shortcuts-hoc.js';
|
|
35
36
|
import './disable-hover-hoc.js';
|
|
36
37
|
import './row-with-focus-sensor.js';
|
|
@@ -91,7 +92,7 @@ class SmartTable extends PureComponent {
|
|
|
91
92
|
this.props.onSelectionChange(selection);
|
|
92
93
|
};
|
|
93
94
|
render() {
|
|
94
|
-
return jsx(TableContainer, {
|
|
95
|
+
return /*#__PURE__*/jsx(TableContainer, {
|
|
95
96
|
...this.props,
|
|
96
97
|
selection: this.state.selection,
|
|
97
98
|
onSelect: this.onSelect
|
|
@@ -98,10 +98,10 @@ export declare class Table<T extends SelectionItem> extends PureComponent<TableP
|
|
|
98
98
|
onSortEnd: ({ oldIndex, newIndex }: OnChangeMeta) => void;
|
|
99
99
|
onCheckboxChange: (e: SyntheticEvent<HTMLInputElement>) => void;
|
|
100
100
|
restoreFocusWithoutScroll: () => void;
|
|
101
|
-
render():
|
|
101
|
+
render(): React.JSX.Element;
|
|
102
102
|
}
|
|
103
103
|
export type TableAttrs<T extends SelectionItem> = DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>;
|
|
104
104
|
export default class TableContainer<T extends SelectionItem> extends Component<TableAttrs<T>> {
|
|
105
105
|
Table: React.ComponentClass<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>, any>;
|
|
106
|
-
render():
|
|
106
|
+
render(): React.JSX.Element;
|
|
107
107
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Component, PureComponent, createElement } from 'react';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { arrayMove, List } from 'react-movable';
|
|
5
4
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
|
@@ -7,10 +6,11 @@ import getUID from '../global/get-uid.js';
|
|
|
7
6
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
8
7
|
import Loader from '../loader/loader.js';
|
|
9
8
|
import Header from './header.js';
|
|
10
|
-
import { s as style } from '../_helpers/table.js';
|
|
11
9
|
import selectionShortcutsHOC from './selection-shortcuts-hoc.js';
|
|
12
10
|
import disableHoverHOC from './disable-hover-hoc.js';
|
|
13
11
|
import RowWithFocusSensorCallbacks from './row-with-focus-sensor.js';
|
|
12
|
+
import { s as style } from '../_helpers/table.js';
|
|
13
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
import '../global/compose-refs.js';
|
|
15
15
|
import 'memoize-one';
|
|
16
16
|
import '../shortcuts/core.js';
|
|
@@ -26,6 +26,7 @@ import '../icon/icon.js';
|
|
|
26
26
|
import 'util-deprecate';
|
|
27
27
|
import '../icon/icon.constants.js';
|
|
28
28
|
import '../_helpers/icon-svg.js';
|
|
29
|
+
import 'react-compiler-runtime';
|
|
29
30
|
import '../global/memoize.js';
|
|
30
31
|
import '../control-help/control-help.js';
|
|
31
32
|
import './header-cell.js';
|
|
@@ -53,9 +54,6 @@ import '../popup/position-css.js';
|
|
|
53
54
|
import '../_helpers/theme.js';
|
|
54
55
|
import './cell.js';
|
|
55
56
|
|
|
56
|
-
/**
|
|
57
|
-
* Interactive table with selection and keyboard navigation support.
|
|
58
|
-
*/
|
|
59
57
|
class Table extends PureComponent {
|
|
60
58
|
static defaultProps = {
|
|
61
59
|
isItemSelectable: () => true,
|
|
@@ -247,22 +245,22 @@ class Table extends PureComponent {
|
|
|
247
245
|
children,
|
|
248
246
|
props
|
|
249
247
|
}) => {
|
|
250
|
-
const empty = jsx("tr", {
|
|
251
|
-
children: jsx("td", {
|
|
248
|
+
const empty = /*#__PURE__*/jsx("tr", {
|
|
249
|
+
children: /*#__PURE__*/jsx("td", {
|
|
252
250
|
colSpan: columnsArray.length || 1,
|
|
253
251
|
className: style.tableMessage,
|
|
254
252
|
children: renderEmpty ? renderEmpty() : null
|
|
255
253
|
})
|
|
256
254
|
});
|
|
257
255
|
const tbody = Array.isArray(children) && children.length > 0 ? children : empty;
|
|
258
|
-
return jsxs("table", {
|
|
256
|
+
return /*#__PURE__*/jsxs("table", {
|
|
259
257
|
className: classes,
|
|
260
|
-
"data-test":
|
|
261
|
-
children: [jsx(Header, {
|
|
258
|
+
"data-test": "ring-table",
|
|
259
|
+
children: [/*#__PURE__*/jsx(Header, {
|
|
262
260
|
...headerProps
|
|
263
|
-
}), jsx("tbody", {
|
|
261
|
+
}), /*#__PURE__*/jsx("tbody", {
|
|
264
262
|
...props,
|
|
265
|
-
"data-test":
|
|
263
|
+
"data-test": "ring-table-body",
|
|
266
264
|
children: tbody
|
|
267
265
|
})]
|
|
268
266
|
});
|
|
@@ -312,27 +310,27 @@ class Table extends PureComponent {
|
|
|
312
310
|
...restProps,
|
|
313
311
|
key: (_restProps$key = restProps.key) !== null && _restProps$key !== void 0 ? _restProps$key : getItemKey(value)
|
|
314
312
|
});
|
|
315
|
-
return isDragged ? jsx("table", {
|
|
313
|
+
return isDragged ? /*#__PURE__*/jsx("table", {
|
|
316
314
|
style: {
|
|
317
315
|
...props.style
|
|
318
316
|
},
|
|
319
317
|
className: style.draggingTable,
|
|
320
|
-
children: jsx("tbody", {
|
|
318
|
+
children: /*#__PURE__*/jsx("tbody", {
|
|
321
319
|
children: row
|
|
322
320
|
})
|
|
323
321
|
}) : row;
|
|
324
322
|
};
|
|
325
|
-
return jsxs("div", {
|
|
323
|
+
return /*#__PURE__*/jsxs("div", {
|
|
326
324
|
className: wrapperClasses,
|
|
327
|
-
"data-test":
|
|
325
|
+
"data-test": "ring-table-wrapper",
|
|
328
326
|
ref: this.props.innerRef,
|
|
329
|
-
children: [focused && jsx(Shortcuts, {
|
|
327
|
+
children: [focused && /*#__PURE__*/jsx(Shortcuts, {
|
|
330
328
|
map: this.props.shortcutsMap,
|
|
331
329
|
scope: this.state.shortcutsScope
|
|
332
|
-
}), jsx("div", {
|
|
333
|
-
role:
|
|
330
|
+
}), /*#__PURE__*/jsx("div", {
|
|
331
|
+
role: "presentation",
|
|
334
332
|
onMouseDown: this.onMouseDown,
|
|
335
|
-
children: draggable ? jsx(List, {
|
|
333
|
+
children: draggable ? /*#__PURE__*/jsx(List, {
|
|
336
334
|
values: data,
|
|
337
335
|
renderList: renderList,
|
|
338
336
|
renderItem: renderItem,
|
|
@@ -341,9 +339,9 @@ class Table extends PureComponent {
|
|
|
341
339
|
children: data.map((value, index) => renderItem({
|
|
342
340
|
value}))
|
|
343
341
|
})
|
|
344
|
-
}), loading && jsx("div", {
|
|
342
|
+
}), loading && /*#__PURE__*/jsx("div", {
|
|
345
343
|
className: style.loadingOverlay,
|
|
346
|
-
children: renderLoader ? renderLoader(loaderClassName) : jsx(Loader, {
|
|
344
|
+
children: renderLoader ? renderLoader(loaderClassName) : /*#__PURE__*/jsx(Loader, {
|
|
347
345
|
className: loaderClassName
|
|
348
346
|
})
|
|
349
347
|
})]
|
|
@@ -356,7 +354,7 @@ class TableContainer extends Component {
|
|
|
356
354
|
// https://stackoverflow.com/a/53882322/6304152
|
|
357
355
|
Table = getContainer();
|
|
358
356
|
render() {
|
|
359
|
-
return jsx(this.Table, {
|
|
357
|
+
return /*#__PURE__*/jsx(this.Table, {
|
|
360
358
|
...this.props
|
|
361
359
|
});
|
|
362
360
|
}
|
|
@@ -6,7 +6,7 @@ export interface FakeMoreButtonProps {
|
|
|
6
6
|
moreClassName?: string | null | undefined;
|
|
7
7
|
moreActiveClassName?: string | null | undefined;
|
|
8
8
|
}
|
|
9
|
-
export declare const AnchorLink: ({ hasActiveChildren, moreClassName, moreActiveClassName, ...restProps }: Omit<ContainerProps<ButtonButtonProps>, "children"> & FakeMoreButtonProps) => import("react
|
|
9
|
+
export declare const AnchorLink: ({ hasActiveChildren, moreClassName, moreActiveClassName, ...restProps }: Omit<ContainerProps<ButtonButtonProps>, "children"> & FakeMoreButtonProps) => import("react").JSX.Element;
|
|
10
10
|
export interface MoreButtonProps {
|
|
11
11
|
items: ReactElement<TabProps>[];
|
|
12
12
|
selected?: string | undefined;
|
|
@@ -17,5 +17,5 @@ export interface MoreButtonProps {
|
|
|
17
17
|
morePopupItemClassName?: string | undefined;
|
|
18
18
|
morePopupBeforeEnd: ReactNode;
|
|
19
19
|
}
|
|
20
|
-
export declare const MoreButton: import("react").MemoExoticComponent<({ items, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupItemClassName, morePopupBeforeEnd, }: MoreButtonProps) => import("react
|
|
21
|
-
export declare const FakeMoreButton: import("react").MemoExoticComponent<({ moreClassName, moreActiveClassName, hasActiveChildren }: FakeMoreButtonProps) => import("react
|
|
20
|
+
export declare const MoreButton: import("react").MemoExoticComponent<({ items, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupItemClassName, morePopupBeforeEnd, }: MoreButtonProps) => import("react").JSX.Element | null>;
|
|
21
|
+
export declare const FakeMoreButton: import("react").MemoExoticComponent<({ moreClassName, moreActiveClassName, hasActiveChildren }: FakeMoreButtonProps) => import("react").JSX.Element>;
|