@jetbrains/ring-ui-built 8.0.0-beta.2 → 8.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_helpers/anchor.js +1 -1
- package/components/_helpers/avatar-info.js +1 -1
- package/components/_helpers/heading.js +2 -2
- package/components/_helpers/icon-svg.js +1 -1
- package/components/_helpers/legacy-table.js +3 -0
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/table.js +1 -1
- package/components/_helpers/theme.js +50 -38
- package/components/alert/alert.js +2 -2
- package/components/alert-service/alert-service.js +1 -1
- package/components/auth/auth-core.js +1 -1
- package/components/auth/auth.js +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +2 -2
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +2 -2
- package/components/avatar/avatar-info.js +1 -1
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/fallback-avatar.js +1 -1
- package/components/avatar-stack/avatar-stack.js +1 -1
- package/components/banner/banner.js +1 -1
- package/components/button/button.js +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +1 -1
- package/components/clipboard/clipboard.js +1 -1
- package/components/collapse/collapse-content.js +5 -5
- package/components/collapse/collapse-control.js +5 -5
- package/components/collapse/collapse.js +4 -4
- package/components/collapsible-group/collapsible-group.d.ts +20 -0
- package/components/collapsible-group/collapsible-group.js +382 -0
- package/components/components/util-stories.js +63 -1
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +2 -2
- package/components/contenteditable/contenteditable.js +1 -1
- package/components/control-help/control-help.js +1 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +1 -1
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +1 -1
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/item.js +1 -1
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +2 -2
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-picker.js +1 -2
- package/components/date-picker/date-popup.js +4 -5
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.js +1 -1
- package/components/date-picker/months.js +4 -5
- package/components/date-picker/use-scroll-behavior.js +45 -44
- package/components/date-picker/weekdays.js +1 -1
- package/components/date-picker/years.js +6 -7
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +3 -3
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.js +1 -1
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +68 -63
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +127 -113
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -1
- package/components/expand/collapsible-group.d.ts +8 -16
- package/components/expand/collapsible-group.js +34 -364
- package/components/footer/footer.js +1 -1
- package/components/global/compose-refs.d.ts +2 -1
- package/components/global/compose-refs.js +44 -8
- package/components/global/create-stateful-context.js +11 -11
- package/components/global/focus-sensor-hoc.js +1 -0
- package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
- package/components/global/focus-with-temporary-tabindex.js +23 -0
- package/components/global/intersection-observer-context.d.ts +31 -11
- package/components/global/intersection-observer-context.js +55 -57
- package/components/global/is-within-interactive-element.d.ts +6 -0
- package/components/global/is-within-interactive-element.js +11 -0
- package/components/global/is-within-navigable-element.d.ts +6 -0
- package/components/global/is-within-navigable-element.js +11 -0
- package/components/global/parse-css-duration.d.ts +5 -0
- package/components/global/parse-css-duration.js +14 -0
- package/components/global/rerender-hoc.d.ts +4 -2
- package/components/global/rerender-hoc.js +11 -24
- package/components/global/schedule-with-cleanup.d.ts +12 -0
- package/components/global/schedule-with-cleanup.js +36 -0
- package/components/{legacy-table/selection.d.ts → global/table-selection.d.ts} +14 -14
- package/components/{legacy-table/selection.js → global/table-selection.js} +4 -4
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +2 -2
- package/components/header/header-icon.js +1 -1
- package/components/header/header.js +2 -2
- package/components/header/links.js +1 -1
- package/components/header/logo.js +1 -1
- package/components/header/profile.js +1 -1
- package/components/header/services.js +1 -1
- package/components/header/smart-profile.js +1 -1
- package/components/header/smart-services.js +1 -1
- package/components/heading/heading.js +4 -4
- package/components/i18n/i18n-context.js +4 -4
- package/components/icon/icon-svg.js +1 -1
- package/components/icon/icon.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +1 -1
- package/components/internal/column-animation.js +133 -0
- package/components/internal/table-header.js +1109 -0
- package/components/internal/virtual-items.js +353 -0
- package/components/island/adaptive-island-hoc.js +3 -3
- package/components/island/content.d.ts +7 -2
- package/components/island/content.js +27 -18
- package/components/island/header.js +1 -1
- package/components/island/island.js +1 -1
- package/components/legacy-table/cell.js +1 -1
- package/components/legacy-table/header-cell.js +4 -4
- package/components/legacy-table/header.js +2 -2
- package/components/legacy-table/multitable.d.ts +1 -1
- package/components/legacy-table/row-with-focus-sensor.js +2 -2
- package/components/legacy-table/row.d.ts +1 -1
- package/components/legacy-table/row.js +4 -4
- package/components/legacy-table/selection-adapter.d.ts +3 -3
- package/components/legacy-table/selection-shortcuts-hoc.d.ts +5 -5
- package/components/legacy-table/simple-table.d.ts +2 -2
- package/components/legacy-table/simple-table.js +4 -4
- package/components/legacy-table/smart-table.d.ts +5 -5
- package/components/legacy-table/smart-table.js +5 -5
- package/components/legacy-table/table.js +2 -2
- package/components/list/list-item.js +1 -1
- package/components/list/list-users-groups-source.js +1 -1
- package/components/list/list.js +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +2 -2
- package/components/markdown/markdown.js +2 -2
- package/components/message/message.js +2 -2
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +1 -1
- package/components/popup/popup.d.ts +2 -0
- package/components/popup/popup.js +6 -2
- package/components/popup/popup.target.d.ts +3 -2
- package/components/popup/popup.target.js +32 -28
- package/components/popup-menu/popup-menu.js +1 -1
- package/components/query-assist/query-assist-suggestions.js +1 -1
- package/components/query-assist/query-assist.d.ts +3 -1
- package/components/query-assist/query-assist.js +2 -2
- package/components/radio/radio-item.d.ts +3 -3
- package/components/radio/radio-item.js +32 -18
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +2 -2
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/chevron-button.js +1 -1
- package/components/select/select-filter.js +1 -1
- package/components/select/select-popup.d.ts +1 -1
- package/components/select/select-popup.js +1 -1
- package/components/select/select.d.ts +4 -2
- package/components/select/select.js +1 -1
- package/components/slider/slider.js +100 -96
- package/components/storage/storage-local.js +1 -1
- package/components/storage/storage.js +1 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +3 -3
- package/components/tab-trap/tab-trap.js +83 -80
- package/components/table/default-item-renderer.d.ts +35 -11
- package/components/table/default-item-renderer.js +118 -171
- package/components/table/internal/column-animation.d.ts +16 -0
- package/components/table/internal/table-header.d.ts +4 -0
- package/components/table/internal/virtual-items.d.ts +34 -0
- package/components/table/item-virtualization.d.ts +35 -0
- package/components/table/item-virtualization.js +71 -0
- package/components/table/table-const.d.ts +40 -6
- package/components/table/table-const.js +15 -6
- package/components/table/table-primitives.d.ts +21 -0
- package/components/table/table-primitives.js +123 -0
- package/components/table/table-props.d.ts +280 -0
- package/components/table/table-props.js +1 -0
- package/components/table/table.d.ts +205 -224
- package/components/table/table.js +356 -14
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/smart-tabs.js +1 -1
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.d.ts +3 -1
- package/components/tags-input/tags-input.js +1 -1
- package/components/tags-list/tags-list.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.js +3 -3
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +7 -29
- package/components/user-agreement/service.js +8 -8
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.js +1 -1
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.js +1 -1
- package/components/user-card/user-card.js +1 -1
- package/components/util-stories.d.ts +26 -0
- package/package.json +7 -7
- package/components/_helpers/table2.js +0 -3
- package/components/date-picker/use-intersection-observer.d.ts +0 -6
- package/components/date-picker/use-intersection-observer.js +0 -93
- package/components/global/composeRefs.d.ts +0 -6
- package/components/global/composeRefs.js +0 -9
- package/components/global/use-event-callback.d.ts +0 -1
- package/components/global/use-event-callback.js +0 -44
- package/components/table/table-base.d.ts +0 -24
- package/components/table/table-base.js +0 -311
- package/components/table/table-component.d.ts +0 -53
- package/components/table/table-component.js +0 -316
- package/components/table/table-virtualize.d.ts +0 -32
- package/components/table/table-virtualize.js +0 -330
|
@@ -1,25 +1,367 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'react
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '../
|
|
6
|
-
import './
|
|
7
|
-
import '
|
|
8
|
-
import '../
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import './table-
|
|
13
|
-
import '
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { useRef, Fragment } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { IntersectionObserverContext } from '../global/intersection-observer-context.js';
|
|
5
|
+
import { useVirtualItems, SpacerRow, CollapseItemIntoSpacerContext } from '../internal/virtual-items.js';
|
|
6
|
+
import { DefaultItemRenderer } from './default-item-renderer.js';
|
|
7
|
+
import { ColumnAnimationContext, TablePropsContext, defaultRowHeight } from './table-const.js';
|
|
8
|
+
import { focusWithTemporaryTabIndex } from '../global/focus-with-temporary-tabindex.js';
|
|
9
|
+
import { useColumnAnimation } from '../internal/column-animation.js';
|
|
10
|
+
import { useComposedRef } from '../global/compose-refs.js';
|
|
11
|
+
import { TableHeader } from '../internal/table-header.js';
|
|
12
|
+
import { keyboardFocusableAttrName } from './table-primitives.js';
|
|
13
|
+
import { isWithinNavigableElement } from '../global/is-within-navigable-element.js';
|
|
14
|
+
import { s as styles } from '../_helpers/table.js';
|
|
15
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
16
|
+
import '../global/schedule-with-cleanup.js';
|
|
17
|
+
import './item-virtualization.js';
|
|
18
|
+
import 'memoize-one';
|
|
19
|
+
import '../global/parse-css-duration.js';
|
|
14
20
|
import '@jetbrains/icons/arrow-12px-down';
|
|
15
21
|
import '@jetbrains/icons/arrow-12px-up';
|
|
22
|
+
import '@jetbrains/icons/drag-12px';
|
|
23
|
+
import '@jetbrains/icons/settings-12px';
|
|
16
24
|
import '@jetbrains/icons/trash-12px';
|
|
25
|
+
import '@jetbrains/icons/unsorted-12px';
|
|
17
26
|
import '../icon/icon.js';
|
|
18
27
|
import 'util-deprecate';
|
|
19
28
|
import '../icon/icon.constants.js';
|
|
20
29
|
import '../_helpers/icon-svg.js';
|
|
21
30
|
import '../global/memoize.js';
|
|
31
|
+
import '../global/is-within-interactive-element.js';
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
function Table(props) {
|
|
34
|
+
const $ = c(67);
|
|
35
|
+
if ($[0] !== "1440c2302382a13607fbec3a1414b9f71b4289aa94d28f71036161709e9e4ef7") {
|
|
36
|
+
for (let $i = 0; $i < 67; $i += 1) {
|
|
37
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
38
|
+
}
|
|
39
|
+
$[0] = "1440c2302382a13607fbec3a1414b9f71b4289aa94d28f71036161709e9e4ef7";
|
|
40
|
+
}
|
|
41
|
+
let className;
|
|
42
|
+
let columns;
|
|
43
|
+
let data;
|
|
44
|
+
let getKey;
|
|
45
|
+
let noColumnReorderAnimation;
|
|
46
|
+
let renderItem;
|
|
47
|
+
let restProps;
|
|
48
|
+
let scrollerRef;
|
|
49
|
+
let t0;
|
|
50
|
+
let t1;
|
|
51
|
+
let t2;
|
|
52
|
+
let t3;
|
|
53
|
+
let t4;
|
|
54
|
+
let tbodyClassName;
|
|
55
|
+
let userRef;
|
|
56
|
+
if ($[1] !== props) {
|
|
57
|
+
const {
|
|
58
|
+
data: t5,
|
|
59
|
+
columns: t6,
|
|
60
|
+
getKey: t7,
|
|
61
|
+
noHeader,
|
|
62
|
+
stickyHeader,
|
|
63
|
+
onSort,
|
|
64
|
+
onColumnDelete,
|
|
65
|
+
onColumnReorder,
|
|
66
|
+
noColumnReorderAnimation: t8,
|
|
67
|
+
renderItem: t9,
|
|
68
|
+
virtualizeRows: t10,
|
|
69
|
+
scrollerRef: t11,
|
|
70
|
+
estimateHeight: t12,
|
|
71
|
+
lookaheadPx: t13,
|
|
72
|
+
retentionMarginPx: t14,
|
|
73
|
+
minScrollAndResizeDeltaPx: t15,
|
|
74
|
+
columnEditing,
|
|
75
|
+
onColumnEditingRequest,
|
|
76
|
+
columnEditButton,
|
|
77
|
+
theadClassName,
|
|
78
|
+
theadTrClassName,
|
|
79
|
+
tbodyClassName: t16,
|
|
80
|
+
ref: t17,
|
|
81
|
+
className: t18,
|
|
82
|
+
...t19
|
|
83
|
+
} = props;
|
|
84
|
+
data = t5;
|
|
85
|
+
columns = t6;
|
|
86
|
+
getKey = t7;
|
|
87
|
+
noColumnReorderAnimation = t8;
|
|
88
|
+
renderItem = t9;
|
|
89
|
+
t0 = t10;
|
|
90
|
+
scrollerRef = t11;
|
|
91
|
+
t1 = t12;
|
|
92
|
+
t2 = t13;
|
|
93
|
+
t3 = t14;
|
|
94
|
+
t4 = t15;
|
|
95
|
+
tbodyClassName = t16;
|
|
96
|
+
userRef = t17;
|
|
97
|
+
className = t18;
|
|
98
|
+
restProps = t19;
|
|
99
|
+
$[1] = props;
|
|
100
|
+
$[2] = className;
|
|
101
|
+
$[3] = columns;
|
|
102
|
+
$[4] = data;
|
|
103
|
+
$[5] = getKey;
|
|
104
|
+
$[6] = noColumnReorderAnimation;
|
|
105
|
+
$[7] = renderItem;
|
|
106
|
+
$[8] = restProps;
|
|
107
|
+
$[9] = scrollerRef;
|
|
108
|
+
$[10] = t0;
|
|
109
|
+
$[11] = t1;
|
|
110
|
+
$[12] = t2;
|
|
111
|
+
$[13] = t3;
|
|
112
|
+
$[14] = t4;
|
|
113
|
+
$[15] = tbodyClassName;
|
|
114
|
+
$[16] = userRef;
|
|
115
|
+
} else {
|
|
116
|
+
className = $[2];
|
|
117
|
+
columns = $[3];
|
|
118
|
+
data = $[4];
|
|
119
|
+
getKey = $[5];
|
|
120
|
+
noColumnReorderAnimation = $[6];
|
|
121
|
+
renderItem = $[7];
|
|
122
|
+
restProps = $[8];
|
|
123
|
+
scrollerRef = $[9];
|
|
124
|
+
t0 = $[10];
|
|
125
|
+
t1 = $[11];
|
|
126
|
+
t2 = $[12];
|
|
127
|
+
t3 = $[13];
|
|
128
|
+
t4 = $[14];
|
|
129
|
+
tbodyClassName = $[15];
|
|
130
|
+
userRef = $[16];
|
|
131
|
+
}
|
|
132
|
+
const virtualizeRows = t0 === undefined ? false : t0;
|
|
133
|
+
const estimateHeight = t1 === undefined ? _temp : t1;
|
|
134
|
+
const lookaheadPx = t2 === undefined ? 400 : t2;
|
|
135
|
+
const retentionMarginPx = t3 === undefined ? 450 : t3;
|
|
136
|
+
const minScrollAndResizeDeltaPx = t4 === undefined ? 50 : t4;
|
|
137
|
+
const localRef = useRef(null);
|
|
138
|
+
let t5;
|
|
139
|
+
if ($[17] !== data || $[18] !== estimateHeight || $[19] !== lookaheadPx || $[20] !== minScrollAndResizeDeltaPx || $[21] !== retentionMarginPx || $[22] !== scrollerRef || $[23] !== virtualizeRows) {
|
|
140
|
+
t5 = {
|
|
141
|
+
enabled: virtualizeRows,
|
|
142
|
+
data,
|
|
143
|
+
scrollerRef,
|
|
144
|
+
tableRef: localRef,
|
|
145
|
+
estimateHeight,
|
|
146
|
+
lookaheadPx,
|
|
147
|
+
retentionMarginPx,
|
|
148
|
+
minScrollAndResizeDeltaPx
|
|
149
|
+
};
|
|
150
|
+
$[17] = data;
|
|
151
|
+
$[18] = estimateHeight;
|
|
152
|
+
$[19] = lookaheadPx;
|
|
153
|
+
$[20] = minScrollAndResizeDeltaPx;
|
|
154
|
+
$[21] = retentionMarginPx;
|
|
155
|
+
$[22] = scrollerRef;
|
|
156
|
+
$[23] = virtualizeRows;
|
|
157
|
+
$[24] = t5;
|
|
158
|
+
} else {
|
|
159
|
+
t5 = $[24];
|
|
160
|
+
}
|
|
161
|
+
const {
|
|
162
|
+
virtualItems,
|
|
163
|
+
intersectionObserverHandle,
|
|
164
|
+
collapseItemIntoSpacer
|
|
165
|
+
} = useVirtualItems(t5);
|
|
166
|
+
let t6;
|
|
167
|
+
if ($[25] !== columns || $[26] !== noColumnReorderAnimation) {
|
|
168
|
+
t6 = {
|
|
169
|
+
disabled: noColumnReorderAnimation,
|
|
170
|
+
tableRef: localRef,
|
|
171
|
+
columns
|
|
172
|
+
};
|
|
173
|
+
$[25] = columns;
|
|
174
|
+
$[26] = noColumnReorderAnimation;
|
|
175
|
+
$[27] = t6;
|
|
176
|
+
} else {
|
|
177
|
+
t6 = $[27];
|
|
178
|
+
}
|
|
179
|
+
const {
|
|
180
|
+
columnAnimation,
|
|
181
|
+
expectColumnReorder
|
|
182
|
+
} = useColumnAnimation(t6);
|
|
183
|
+
let t7;
|
|
184
|
+
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
185
|
+
t7 = e => {
|
|
186
|
+
if (e.defaultPrevented || isWithinNavigableElement(e.target)) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
const arrowUp = e.key === "ArrowUp";
|
|
190
|
+
const arrowDown = e.key === "ArrowDown";
|
|
191
|
+
if (!arrowUp && !arrowDown) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
const currentRow = e.target.closest("tr");
|
|
195
|
+
if (currentRow?.parentElement?.parentElement !== localRef.current) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
let candidate = currentRow;
|
|
199
|
+
while (candidate) {
|
|
200
|
+
candidate = arrowUp ? candidate.previousElementSibling : candidate.nextElementSibling;
|
|
201
|
+
if (candidate?.hasAttribute(keyboardFocusableAttrName)) {
|
|
202
|
+
focusWithTemporaryTabIndex(candidate);
|
|
203
|
+
e.preventDefault();
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
$[28] = t7;
|
|
209
|
+
} else {
|
|
210
|
+
t7 = $[28];
|
|
211
|
+
}
|
|
212
|
+
const handleRowNavigation = t7;
|
|
213
|
+
let t8;
|
|
214
|
+
if ($[29] !== className) {
|
|
215
|
+
t8 = classNames(styles.table, className);
|
|
216
|
+
$[29] = className;
|
|
217
|
+
$[30] = t8;
|
|
218
|
+
} else {
|
|
219
|
+
t8 = $[30];
|
|
220
|
+
}
|
|
221
|
+
const t9 = useComposedRef(userRef, localRef);
|
|
222
|
+
let t10;
|
|
223
|
+
if ($[31] !== expectColumnReorder) {
|
|
224
|
+
t10 = /*#__PURE__*/jsx(TableHeader, {
|
|
225
|
+
expectColumnReorder: expectColumnReorder
|
|
226
|
+
});
|
|
227
|
+
$[31] = expectColumnReorder;
|
|
228
|
+
$[32] = t10;
|
|
229
|
+
} else {
|
|
230
|
+
t10 = $[32];
|
|
231
|
+
}
|
|
232
|
+
const t11 = virtualizeRows ? virtualItems : data;
|
|
233
|
+
let t12;
|
|
234
|
+
if ($[33] !== columns || $[34] !== data || $[35] !== getKey || $[36] !== renderItem || $[37] !== t11 || $[38] !== virtualizeRows) {
|
|
235
|
+
let t13;
|
|
236
|
+
if ($[40] !== columns || $[41] !== data || $[42] !== getKey || $[43] !== renderItem || $[44] !== virtualizeRows) {
|
|
237
|
+
t13 = (item, index) => {
|
|
238
|
+
let dataItem;
|
|
239
|
+
let dataItemIndex;
|
|
240
|
+
if (virtualizeRows) {
|
|
241
|
+
const virtualItem = item;
|
|
242
|
+
if (virtualItem.type === "spacer") {
|
|
243
|
+
return /*#__PURE__*/jsx(SpacerRow, {
|
|
244
|
+
spacer: virtualItem,
|
|
245
|
+
colSpan: columns.length
|
|
246
|
+
}, virtualItem.key);
|
|
247
|
+
}
|
|
248
|
+
dataItemIndex = virtualItem.index;
|
|
249
|
+
if (dataItemIndex < 0 || dataItemIndex >= data.length) {
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
dataItem = data[dataItemIndex];
|
|
253
|
+
} else {
|
|
254
|
+
dataItem = item;
|
|
255
|
+
dataItemIndex = index;
|
|
256
|
+
}
|
|
257
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
258
|
+
children: renderItem ? renderItem(dataItem, dataItemIndex, data) : /*#__PURE__*/jsx(DefaultItemRenderer, {
|
|
259
|
+
index: dataItemIndex
|
|
260
|
+
})
|
|
261
|
+
}, getKey(dataItem, dataItemIndex, data));
|
|
262
|
+
};
|
|
263
|
+
$[40] = columns;
|
|
264
|
+
$[41] = data;
|
|
265
|
+
$[42] = getKey;
|
|
266
|
+
$[43] = renderItem;
|
|
267
|
+
$[44] = virtualizeRows;
|
|
268
|
+
$[45] = t13;
|
|
269
|
+
} else {
|
|
270
|
+
t13 = $[45];
|
|
271
|
+
}
|
|
272
|
+
t12 = t11.map(t13);
|
|
273
|
+
$[33] = columns;
|
|
274
|
+
$[34] = data;
|
|
275
|
+
$[35] = getKey;
|
|
276
|
+
$[36] = renderItem;
|
|
277
|
+
$[37] = t11;
|
|
278
|
+
$[38] = virtualizeRows;
|
|
279
|
+
$[39] = t12;
|
|
280
|
+
} else {
|
|
281
|
+
t12 = $[39];
|
|
282
|
+
}
|
|
283
|
+
let t13;
|
|
284
|
+
if ($[46] !== t12 || $[47] !== tbodyClassName) {
|
|
285
|
+
t13 = /*#__PURE__*/jsx("tbody", {
|
|
286
|
+
className: tbodyClassName,
|
|
287
|
+
onKeyDown: handleRowNavigation,
|
|
288
|
+
children: t12
|
|
289
|
+
});
|
|
290
|
+
$[46] = t12;
|
|
291
|
+
$[47] = tbodyClassName;
|
|
292
|
+
$[48] = t13;
|
|
293
|
+
} else {
|
|
294
|
+
t13 = $[48];
|
|
295
|
+
}
|
|
296
|
+
let t14;
|
|
297
|
+
if ($[49] !== collapseItemIntoSpacer || $[50] !== t13) {
|
|
298
|
+
t14 = /*#__PURE__*/jsx(CollapseItemIntoSpacerContext, {
|
|
299
|
+
value: collapseItemIntoSpacer,
|
|
300
|
+
children: t13
|
|
301
|
+
});
|
|
302
|
+
$[49] = collapseItemIntoSpacer;
|
|
303
|
+
$[50] = t13;
|
|
304
|
+
$[51] = t14;
|
|
305
|
+
} else {
|
|
306
|
+
t14 = $[51];
|
|
307
|
+
}
|
|
308
|
+
let t15;
|
|
309
|
+
if ($[52] !== intersectionObserverHandle || $[53] !== t14) {
|
|
310
|
+
t15 = /*#__PURE__*/jsx(IntersectionObserverContext, {
|
|
311
|
+
value: intersectionObserverHandle,
|
|
312
|
+
children: t14
|
|
313
|
+
});
|
|
314
|
+
$[52] = intersectionObserverHandle;
|
|
315
|
+
$[53] = t14;
|
|
316
|
+
$[54] = t15;
|
|
317
|
+
} else {
|
|
318
|
+
t15 = $[54];
|
|
319
|
+
}
|
|
320
|
+
let t16;
|
|
321
|
+
if ($[55] !== restProps || $[56] !== t10 || $[57] !== t15 || $[58] !== t8 || $[59] !== t9) {
|
|
322
|
+
t16 = /*#__PURE__*/jsxs("table", {
|
|
323
|
+
className: t8,
|
|
324
|
+
ref: t9,
|
|
325
|
+
...restProps,
|
|
326
|
+
children: [t10, t15]
|
|
327
|
+
});
|
|
328
|
+
$[55] = restProps;
|
|
329
|
+
$[56] = t10;
|
|
330
|
+
$[57] = t15;
|
|
331
|
+
$[58] = t8;
|
|
332
|
+
$[59] = t9;
|
|
333
|
+
$[60] = t16;
|
|
334
|
+
} else {
|
|
335
|
+
t16 = $[60];
|
|
336
|
+
}
|
|
337
|
+
let t17;
|
|
338
|
+
if ($[61] !== columnAnimation || $[62] !== t16) {
|
|
339
|
+
t17 = /*#__PURE__*/jsx(ColumnAnimationContext, {
|
|
340
|
+
value: columnAnimation,
|
|
341
|
+
children: t16
|
|
342
|
+
});
|
|
343
|
+
$[61] = columnAnimation;
|
|
344
|
+
$[62] = t16;
|
|
345
|
+
$[63] = t17;
|
|
346
|
+
} else {
|
|
347
|
+
t17 = $[63];
|
|
348
|
+
}
|
|
349
|
+
let t18;
|
|
350
|
+
if ($[64] !== props || $[65] !== t17) {
|
|
351
|
+
t18 = /*#__PURE__*/jsx(TablePropsContext, {
|
|
352
|
+
value: props,
|
|
353
|
+
children: t17
|
|
354
|
+
});
|
|
355
|
+
$[64] = props;
|
|
356
|
+
$[65] = t17;
|
|
357
|
+
$[66] = t18;
|
|
358
|
+
} else {
|
|
359
|
+
t18 = $[66];
|
|
360
|
+
}
|
|
361
|
+
return t18;
|
|
362
|
+
}
|
|
363
|
+
function _temp() {
|
|
364
|
+
return defaultRowHeight;
|
|
365
|
+
}
|
|
24
366
|
|
|
25
367
|
export { Table as default };
|
|
@@ -8,7 +8,7 @@ import CollapsibleTabs from './collapsible-tabs.js';
|
|
|
8
8
|
import { CustomItem } from './custom-item.js';
|
|
9
9
|
import { getTabId } from './tabs.utils.js';
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
-
import 'react
|
|
11
|
+
import 'react/compiler-runtime';
|
|
12
12
|
import '../link/link.js';
|
|
13
13
|
import '../link/clickable-link.js';
|
|
14
14
|
import '../_helpers/link.js';
|
|
@@ -5,7 +5,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../global/memoize.js';
|
|
7
7
|
import '../_helpers/tab-link.js';
|
|
8
|
-
import 'react
|
|
8
|
+
import 'react/compiler-runtime';
|
|
9
9
|
import '../link/link.js';
|
|
10
10
|
import '../link/clickable-link.js';
|
|
11
11
|
import '../_helpers/link.js';
|
package/components/tabs/tabs.js
CHANGED
|
@@ -7,7 +7,7 @@ import 'classnames';
|
|
|
7
7
|
import '../global/memoize.js';
|
|
8
8
|
import '../global/data-tests.js';
|
|
9
9
|
import '../_helpers/tab-link.js';
|
|
10
|
-
import 'react
|
|
10
|
+
import 'react/compiler-runtime';
|
|
11
11
|
import '../link/link.js';
|
|
12
12
|
import '../link/clickable-link.js';
|
|
13
13
|
import 'react/jsx-runtime';
|
package/components/tag/tag.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ControlsHeight } from '../global/configuration.js';
|
|
|
10
10
|
import 'util-deprecate';
|
|
11
11
|
import '../icon/icon.constants.js';
|
|
12
12
|
import '../_helpers/icon-svg.js';
|
|
13
|
-
import 'react
|
|
13
|
+
import 'react/compiler-runtime';
|
|
14
14
|
import '../global/memoize.js';
|
|
15
15
|
import '@jetbrains/icons/chevron-down';
|
|
16
16
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -110,6 +110,8 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
|
|
|
110
110
|
selectRef: (el: Select | null) => void;
|
|
111
111
|
render(): React.JSX.Element;
|
|
112
112
|
}
|
|
113
|
-
export declare const RerenderableTagsInput:
|
|
113
|
+
export declare const RerenderableTagsInput: ({ ref, ...props }: TagsInputProps & {
|
|
114
|
+
ref?: React.Ref<TagsInput> | undefined;
|
|
115
|
+
}) => React.JSX.Element;
|
|
114
116
|
export type TagsInputAttrs = React.JSX.LibraryManagedAttributes<typeof TagsInput, TagsInputProps>;
|
|
115
117
|
export {};
|
|
@@ -17,7 +17,7 @@ import 'dequal';
|
|
|
17
17
|
import '../global/data-tests.js';
|
|
18
18
|
import '../global/typescript-utils.js';
|
|
19
19
|
import '../_helpers/anchor.js';
|
|
20
|
-
import 'react
|
|
20
|
+
import 'react/compiler-runtime';
|
|
21
21
|
import '../button/button.js';
|
|
22
22
|
import '@jetbrains/icons/chevron-down';
|
|
23
23
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -7,7 +7,7 @@ import '../icon/icon.js';
|
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../icon/icon.constants.js';
|
|
9
9
|
import '../_helpers/icon-svg.js';
|
|
10
|
-
import 'react
|
|
10
|
+
import 'react/compiler-runtime';
|
|
11
11
|
import '../global/memoize.js';
|
|
12
12
|
import '../button/button.js';
|
|
13
13
|
import '@jetbrains/icons/chevron-down';
|
|
@@ -3,7 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
4
4
|
import ControlHelp from '../control-help/control-help.js';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
-
import 'react
|
|
6
|
+
import 'react/compiler-runtime';
|
|
7
7
|
|
|
8
8
|
var styles = {"toggle":"ring-toggle-toggle","switch":"ring-toggle-switch","disabled":"ring-toggle-disabled","label":"ring-toggle-label","help":"ring-toggle-help","leftLabel":"ring-toggle-leftLabel","switchWrapper":"ring-toggle-switchWrapper","input":"ring-toggle-input","size16":"ring-toggle-size16","size14":"ring-toggle-size14","size20":"ring-toggle-size20"};
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import Popup from '../popup/popup.js';
|
|
|
4
4
|
import { Listeners } from '../global/dom.js';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
6
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
7
|
-
import { T as Theme,
|
|
7
|
+
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import '../global/get-uid.js';
|
|
@@ -15,7 +15,7 @@ import 'combokeys';
|
|
|
15
15
|
import '../global/sniffer.js';
|
|
16
16
|
import 'sniffr';
|
|
17
17
|
import '../tab-trap/tab-trap.js';
|
|
18
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
19
19
|
import '../global/configuration.js';
|
|
20
20
|
import '../popup/position.js';
|
|
21
21
|
import '../popup/popup.consts.js';
|
|
@@ -200,7 +200,7 @@ class Tooltip extends Component {
|
|
|
200
200
|
}, popupProps?.className),
|
|
201
201
|
children: title
|
|
202
202
|
});
|
|
203
|
-
return /*#__PURE__*/jsx(TooltipContext
|
|
203
|
+
return /*#__PURE__*/jsx(TooltipContext, {
|
|
204
204
|
value: {
|
|
205
205
|
onNestedTooltipShow,
|
|
206
206
|
onNestedTooltipHide
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
2
|
export type UploadVariant = 'empty' | 'error' | 'success';
|
|
3
3
|
interface Props {
|
|
4
4
|
className?: string;
|
|
@@ -10,10 +10,11 @@ interface Props {
|
|
|
10
10
|
accept?: HTMLInputElement['accept'];
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
variant?: UploadVariant;
|
|
13
|
+
ref?: Ref<UploadHandle>;
|
|
13
14
|
children?: ReactNode;
|
|
14
15
|
}
|
|
15
16
|
export interface UploadHandle {
|
|
16
17
|
openFilePicker: () => void;
|
|
17
18
|
}
|
|
18
|
-
export
|
|
19
|
-
export
|
|
19
|
+
export default function UploadInner({ children, className, onFilesSelected, onFilesRejected, validate, variant, multiple, renderIcon, accept, disabled, ref, }: Props): import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import {
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { useRef, useState, useImperativeHandle } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import attachmentIcon from '@jetbrains/icons/attachment';
|
|
5
5
|
import Icon from '../icon/icon.js';
|
|
@@ -17,11 +17,11 @@ const defaultRenderIcon = () => /*#__PURE__*/jsx(Icon, {
|
|
|
17
17
|
});
|
|
18
18
|
function UploadInner(t0) {
|
|
19
19
|
const $ = c(29);
|
|
20
|
-
if ($[0] !== "
|
|
20
|
+
if ($[0] !== "d58de564c5913f5a17e892bfa80bc62db12ed2c472d455b1315750c6d5bfd08f") {
|
|
21
21
|
for (let $i = 0; $i < 29; $i += 1) {
|
|
22
22
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
23
23
|
}
|
|
24
|
-
$[0] = "
|
|
24
|
+
$[0] = "d58de564c5913f5a17e892bfa80bc62db12ed2c472d455b1315750c6d5bfd08f";
|
|
25
25
|
}
|
|
26
26
|
const {
|
|
27
27
|
children,
|
|
@@ -34,7 +34,7 @@ function UploadInner(t0) {
|
|
|
34
34
|
renderIcon: t3,
|
|
35
35
|
accept,
|
|
36
36
|
disabled,
|
|
37
|
-
|
|
37
|
+
ref
|
|
38
38
|
} = t0;
|
|
39
39
|
const validate = t1 === undefined ? _temp : t1;
|
|
40
40
|
const variant = t2 === undefined ? "empty" : t2;
|
|
@@ -54,7 +54,7 @@ function UploadInner(t0) {
|
|
|
54
54
|
t4 = $[1];
|
|
55
55
|
t5 = $[2];
|
|
56
56
|
}
|
|
57
|
-
useImperativeHandle(
|
|
57
|
+
useImperativeHandle(ref, t4, t5);
|
|
58
58
|
let t6;
|
|
59
59
|
if ($[3] !== onFilesRejected || $[4] !== onFilesSelected || $[5] !== validate) {
|
|
60
60
|
t6 = files => {
|
|
@@ -182,27 +182,5 @@ function _temp2(e) {
|
|
|
182
182
|
function _temp() {
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
|
-
const Upload = /*#__PURE__*/forwardRef(function Upload(props, ref) {
|
|
186
|
-
const $ = c(4);
|
|
187
|
-
if ($[0] !== "7d5a4ecc65f01d46fa3e08e16dbed39a1cd6f740a025c62cc404b96900b00084") {
|
|
188
|
-
for (let $i = 0; $i < 4; $i += 1) {
|
|
189
|
-
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
190
|
-
}
|
|
191
|
-
$[0] = "7d5a4ecc65f01d46fa3e08e16dbed39a1cd6f740a025c62cc404b96900b00084";
|
|
192
|
-
}
|
|
193
|
-
let t0;
|
|
194
|
-
if ($[1] !== props || $[2] !== ref) {
|
|
195
|
-
t0 = /*#__PURE__*/jsx(UploadInner, {
|
|
196
|
-
...props,
|
|
197
|
-
forwardedRef: ref
|
|
198
|
-
});
|
|
199
|
-
$[1] = props;
|
|
200
|
-
$[2] = ref;
|
|
201
|
-
$[3] = t0;
|
|
202
|
-
} else {
|
|
203
|
-
t0 = $[3];
|
|
204
|
-
}
|
|
205
|
-
return t0;
|
|
206
|
-
});
|
|
207
185
|
|
|
208
|
-
export {
|
|
186
|
+
export { UploadInner as default };
|
|
@@ -8,13 +8,8 @@ import { ControlsHeightContext, getGlobalControlsHeight } from '../global/contro
|
|
|
8
8
|
import UserAgreement from './user-agreement.js';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
import '../global/get-uid.js';
|
|
11
|
-
import '../alert/container.js';
|
|
12
11
|
import 'react';
|
|
13
|
-
import 'react-dom';
|
|
14
12
|
import 'classnames';
|
|
15
|
-
import '../global/data-tests.js';
|
|
16
|
-
import '../link/clickable-link.js';
|
|
17
|
-
import '../_helpers/link.js';
|
|
18
13
|
import '@jetbrains/icons/exception';
|
|
19
14
|
import '@jetbrains/icons/checkmark';
|
|
20
15
|
import '@jetbrains/icons/warning';
|
|
@@ -23,16 +18,21 @@ import '../icon/icon.js';
|
|
|
23
18
|
import 'util-deprecate';
|
|
24
19
|
import '../icon/icon.constants.js';
|
|
25
20
|
import '../_helpers/icon-svg.js';
|
|
26
|
-
import 'react
|
|
21
|
+
import 'react/compiler-runtime';
|
|
27
22
|
import '../global/memoize.js';
|
|
28
23
|
import '../loader-inline/loader-inline.js';
|
|
24
|
+
import '../global/data-tests.js';
|
|
29
25
|
import '../global/dom.js';
|
|
30
26
|
import '../button/button.js';
|
|
31
27
|
import '@jetbrains/icons/chevron-down';
|
|
32
28
|
import '@jetbrains/icons/chevron-12px-down';
|
|
29
|
+
import '../link/clickable-link.js';
|
|
33
30
|
import '../_helpers/button.classes.js';
|
|
34
|
-
import '../_helpers/theme.js';
|
|
35
31
|
import '../global/configuration.js';
|
|
32
|
+
import '../_helpers/theme.js';
|
|
33
|
+
import '../alert/container.js';
|
|
34
|
+
import 'react-dom';
|
|
35
|
+
import '../_helpers/link.js';
|
|
36
36
|
import '../dialog/dialog.js';
|
|
37
37
|
import '../island/island.js';
|
|
38
38
|
import '../island/adaptive-island-hoc.js';
|
|
@@ -277,7 +277,7 @@ class UserAgreementService {
|
|
|
277
277
|
preview,
|
|
278
278
|
...restOptions
|
|
279
279
|
};
|
|
280
|
-
this.reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext
|
|
280
|
+
this.reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext, {
|
|
281
281
|
value: getGlobalControlsHeight(),
|
|
282
282
|
children: /*#__PURE__*/jsx(UserAgreement, {
|
|
283
283
|
...props
|
|
@@ -14,7 +14,7 @@ import '../island/island.js';
|
|
|
14
14
|
import '../global/data-tests.js';
|
|
15
15
|
import '../island/adaptive-island-hoc.js';
|
|
16
16
|
import '../global/linear-function.js';
|
|
17
|
-
import 'react
|
|
17
|
+
import 'react/compiler-runtime';
|
|
18
18
|
import 'element-resize-detector';
|
|
19
19
|
import '../global/schedule-raf.js';
|
|
20
20
|
import '../global/get-uid.js';
|
|
@@ -18,7 +18,7 @@ import '../global/url.js';
|
|
|
18
18
|
import '../global/dom.js';
|
|
19
19
|
import '../global/memoize.js';
|
|
20
20
|
import '../avatar/fallback-avatar.js';
|
|
21
|
-
import 'react
|
|
21
|
+
import 'react/compiler-runtime';
|
|
22
22
|
import '../global/get-uid.js';
|
|
23
23
|
import '../_helpers/avatar-info.js';
|
|
24
24
|
import '../global/data-tests.js';
|