@jetbrains/ring-ui-built 8.0.0-beta.4 → 8.0.0-beta.5
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/alert.js +3 -0
- package/components/_helpers/caption.js +1 -1
- package/components/_helpers/header.js +1 -1
- package/components/_helpers/table.js +1 -1
- package/components/alert/alert-actions.d.ts +4 -0
- package/components/alert/alert-actions.js +51 -0
- package/components/alert/alert-heading.d.ts +4 -0
- package/components/alert/alert-heading.js +62 -0
- package/components/alert/alert.d.ts +14 -1
- package/components/alert/alert.js +43 -25
- package/components/alert-service/alert-service.d.ts +2 -1
- package/components/alert-service/alert-service.js +15 -5
- package/components/auth/auth-core.d.ts +5 -9
- package/components/auth/auth-core.js +71 -17
- package/components/auth/auth.js +7 -1
- package/components/auth/down-notification.js +7 -1
- package/components/auth/storage.js +7 -1
- package/components/clipboard/clipboard.js +7 -1
- package/components/date-picker/consts.d.ts +1 -0
- package/components/date-picker/date-input.js +3 -2
- package/components/header/header.js +7 -1
- package/components/header/smart-profile.js +7 -1
- package/components/http/http.d.ts +2 -2
- package/components/http/http.js +2 -2
- package/components/i18n/i18n.d.ts +1 -0
- package/components/i18n/i18n.js +2 -0
- package/components/internal/reorder-animation-context.js +159 -0
- package/components/internal/reorder-handle.js +750 -0
- package/components/internal/reorder-layout-context.js +141 -0
- package/components/internal/table-header.js +221 -645
- package/components/internal/{virtual-items.js → virtualization.js} +29 -14
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/storage/storage-local.js +7 -1
- package/components/storage/storage.js +7 -1
- package/components/style.css +1 -1
- package/components/table/default-item-renderer.d.ts +7 -1
- package/components/table/default-item-renderer.js +119 -67
- package/components/table/internal/reorder-animation-context.d.ts +21 -0
- package/components/table/internal/reorder-handle.d.ts +9 -0
- package/components/table/internal/reorder-layout-context.d.ts +16 -0
- package/components/table/internal/table-header.d.ts +1 -4
- package/components/table/internal/{virtual-items.d.ts → virtualization.d.ts} +10 -3
- package/components/table/item-virtualization.d.ts +5 -3
- package/components/table/item-virtualization.js +13 -11
- package/components/table/reorder-animation.d.ts +37 -0
- package/components/table/reorder-animation.js +18 -0
- package/components/table/reorder-item-layout.d.ts +32 -0
- package/components/table/reorder-item-layout.js +57 -0
- package/components/table/table-const.d.ts +0 -32
- package/components/table/table-const.js +1 -8
- package/components/table/table-primitives.d.ts +43 -0
- package/components/table/table-primitives.js +62 -5
- package/components/table/table-props.d.ts +29 -5
- package/components/table/table.d.ts +31 -5
- package/components/table/table.js +177 -170
- package/components/user-agreement/service.js +7 -1
- package/components/user-card/card.js +7 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/components/user-card/smart-user-card-tooltip.js +7 -1
- package/components/user-card/tooltip.js +7 -1
- package/components/user-card/user-card.js +7 -1
- package/components/util-stories.d.ts +2 -2
- package/package.json +2 -2
- package/components/internal/column-animation.js +0 -133
- package/components/table/internal/column-animation.d.ts +0 -16
|
@@ -1,48 +1,52 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useRef, Fragment } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import {
|
|
5
|
-
import { useVirtualItems, SpacerRow, CollapseItemIntoSpacerContext } from '../internal/virtual-items.js';
|
|
4
|
+
import { useVirtualItems, SpacerRow, VirtualizationContext } from '../internal/virtualization.js';
|
|
6
5
|
import { DefaultItemRenderer } from './default-item-renderer.js';
|
|
7
|
-
import {
|
|
6
|
+
import { TablePropsContext, defaultRowHeight } from './table-const.js';
|
|
8
7
|
import { focusWithTemporaryTabIndex } from '../global/focus-with-temporary-tabindex.js';
|
|
9
|
-
import {
|
|
8
|
+
import { useReorderAnimationContextValue, ReorderAnimationContext } from '../internal/reorder-animation-context.js';
|
|
10
9
|
import { useComposedRef } from '../global/compose-refs.js';
|
|
11
10
|
import { TableHeader } from '../internal/table-header.js';
|
|
12
11
|
import { keyboardFocusableAttrName } from './table-primitives.js';
|
|
13
12
|
import { isWithinNavigableElement } from '../global/is-within-navigable-element.js';
|
|
13
|
+
import { useReorderLayoutContextValue, ReorderLayoutContext } from '../internal/reorder-layout-context.js';
|
|
14
14
|
import { s as styles } from '../_helpers/table.js';
|
|
15
15
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
16
|
+
import '../global/intersection-observer-context.js';
|
|
16
17
|
import '../global/schedule-with-cleanup.js';
|
|
17
18
|
import './item-virtualization.js';
|
|
19
|
+
import './reorder-item-layout.js';
|
|
18
20
|
import 'memoize-one';
|
|
19
|
-
import '../
|
|
20
|
-
import '@jetbrains/icons/arrow-12px-down';
|
|
21
|
-
import '@jetbrains/icons/arrow-12px-up';
|
|
21
|
+
import '../internal/reorder-handle.js';
|
|
22
22
|
import '@jetbrains/icons/drag-12px';
|
|
23
|
-
import '@jetbrains/icons/settings-12px';
|
|
24
|
-
import '@jetbrains/icons/trash-12px';
|
|
25
|
-
import '@jetbrains/icons/unsorted-12px';
|
|
26
23
|
import '../icon/icon.js';
|
|
27
24
|
import 'util-deprecate';
|
|
28
25
|
import '../icon/icon.constants.js';
|
|
29
26
|
import '../_helpers/icon-svg.js';
|
|
30
27
|
import '../global/memoize.js';
|
|
28
|
+
import '../global/parse-css-duration.js';
|
|
29
|
+
import '@jetbrains/icons/arrow-12px-down';
|
|
30
|
+
import '@jetbrains/icons/arrow-12px-up';
|
|
31
|
+
import '@jetbrains/icons/settings-12px';
|
|
32
|
+
import '@jetbrains/icons/trash-12px';
|
|
33
|
+
import '@jetbrains/icons/unsorted-12px';
|
|
31
34
|
import '../global/is-within-interactive-element.js';
|
|
32
35
|
|
|
33
36
|
function Table(props) {
|
|
34
|
-
const $ = c(
|
|
35
|
-
if ($[0] !== "
|
|
36
|
-
for (let $i = 0; $i <
|
|
37
|
+
const $ = c(68);
|
|
38
|
+
if ($[0] !== "0b2671256cf6184450b7f5a987c20b706c8cb7e8a0bf848df36efecc0eb647dc") {
|
|
39
|
+
for (let $i = 0; $i < 68; $i += 1) {
|
|
37
40
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
38
41
|
}
|
|
39
|
-
$[0] = "
|
|
42
|
+
$[0] = "0b2671256cf6184450b7f5a987c20b706c8cb7e8a0bf848df36efecc0eb647dc";
|
|
40
43
|
}
|
|
41
44
|
let className;
|
|
42
45
|
let columns;
|
|
43
46
|
let data;
|
|
44
47
|
let getKey;
|
|
45
48
|
let noColumnReorderAnimation;
|
|
49
|
+
let noItemReorderAnimation;
|
|
46
50
|
let renderItem;
|
|
47
51
|
let restProps;
|
|
48
52
|
let scrollerRef;
|
|
@@ -64,70 +68,76 @@ function Table(props) {
|
|
|
64
68
|
onColumnDelete,
|
|
65
69
|
onColumnReorder,
|
|
66
70
|
noColumnReorderAnimation: t8,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
canReorderItem,
|
|
72
|
+
onItemReorder,
|
|
73
|
+
noItemReorderAnimation: t9,
|
|
74
|
+
renderItem: t10,
|
|
75
|
+
virtualizeRows: t11,
|
|
76
|
+
scrollerRef: t12,
|
|
77
|
+
estimateHeight: t13,
|
|
78
|
+
lookaheadPx: t14,
|
|
79
|
+
retentionMarginPx: t15,
|
|
80
|
+
minScrollAndResizeDeltaPx: t16,
|
|
74
81
|
columnEditing,
|
|
75
82
|
onColumnEditingRequest,
|
|
76
83
|
columnEditButton,
|
|
77
84
|
theadClassName,
|
|
78
85
|
theadTrClassName,
|
|
79
|
-
tbodyClassName:
|
|
80
|
-
ref:
|
|
81
|
-
className:
|
|
82
|
-
...
|
|
86
|
+
tbodyClassName: t17,
|
|
87
|
+
ref: t18,
|
|
88
|
+
className: t19,
|
|
89
|
+
...t20
|
|
83
90
|
} = props;
|
|
84
91
|
data = t5;
|
|
85
92
|
columns = t6;
|
|
86
93
|
getKey = t7;
|
|
87
94
|
noColumnReorderAnimation = t8;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
noItemReorderAnimation = t9;
|
|
96
|
+
renderItem = t10;
|
|
97
|
+
t0 = t11;
|
|
98
|
+
scrollerRef = t12;
|
|
99
|
+
t1 = t13;
|
|
100
|
+
t2 = t14;
|
|
101
|
+
t3 = t15;
|
|
102
|
+
t4 = t16;
|
|
103
|
+
tbodyClassName = t17;
|
|
104
|
+
userRef = t18;
|
|
105
|
+
className = t19;
|
|
106
|
+
restProps = t20;
|
|
99
107
|
$[1] = props;
|
|
100
108
|
$[2] = className;
|
|
101
109
|
$[3] = columns;
|
|
102
110
|
$[4] = data;
|
|
103
111
|
$[5] = getKey;
|
|
104
112
|
$[6] = noColumnReorderAnimation;
|
|
105
|
-
$[7] =
|
|
106
|
-
$[8] =
|
|
107
|
-
$[9] =
|
|
108
|
-
$[10] =
|
|
109
|
-
$[11] =
|
|
110
|
-
$[12] =
|
|
111
|
-
$[13] =
|
|
112
|
-
$[14] =
|
|
113
|
-
$[15] =
|
|
114
|
-
$[16] =
|
|
113
|
+
$[7] = noItemReorderAnimation;
|
|
114
|
+
$[8] = renderItem;
|
|
115
|
+
$[9] = restProps;
|
|
116
|
+
$[10] = scrollerRef;
|
|
117
|
+
$[11] = t0;
|
|
118
|
+
$[12] = t1;
|
|
119
|
+
$[13] = t2;
|
|
120
|
+
$[14] = t3;
|
|
121
|
+
$[15] = t4;
|
|
122
|
+
$[16] = tbodyClassName;
|
|
123
|
+
$[17] = userRef;
|
|
115
124
|
} else {
|
|
116
125
|
className = $[2];
|
|
117
126
|
columns = $[3];
|
|
118
127
|
data = $[4];
|
|
119
128
|
getKey = $[5];
|
|
120
129
|
noColumnReorderAnimation = $[6];
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
noItemReorderAnimation = $[7];
|
|
131
|
+
renderItem = $[8];
|
|
132
|
+
restProps = $[9];
|
|
133
|
+
scrollerRef = $[10];
|
|
134
|
+
t0 = $[11];
|
|
135
|
+
t1 = $[12];
|
|
136
|
+
t2 = $[13];
|
|
137
|
+
t3 = $[14];
|
|
138
|
+
t4 = $[15];
|
|
139
|
+
tbodyClassName = $[16];
|
|
140
|
+
userRef = $[17];
|
|
131
141
|
}
|
|
132
142
|
const virtualizeRows = t0 === undefined ? false : t0;
|
|
133
143
|
const estimateHeight = t1 === undefined ? _temp : t1;
|
|
@@ -136,53 +146,26 @@ function Table(props) {
|
|
|
136
146
|
const minScrollAndResizeDeltaPx = t4 === undefined ? 50 : t4;
|
|
137
147
|
const localRef = useRef(null);
|
|
138
148
|
let t5;
|
|
139
|
-
if ($[
|
|
149
|
+
if ($[18] !== columns || $[19] !== data || $[20] !== noColumnReorderAnimation || $[21] !== noItemReorderAnimation) {
|
|
140
150
|
t5 = {
|
|
141
|
-
|
|
142
|
-
|
|
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,
|
|
151
|
+
noColumnReorderAnimation,
|
|
152
|
+
noItemReorderAnimation,
|
|
170
153
|
tableRef: localRef,
|
|
154
|
+
data,
|
|
171
155
|
columns
|
|
172
156
|
};
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
157
|
+
$[18] = columns;
|
|
158
|
+
$[19] = data;
|
|
159
|
+
$[20] = noColumnReorderAnimation;
|
|
160
|
+
$[21] = noItemReorderAnimation;
|
|
161
|
+
$[22] = t5;
|
|
176
162
|
} else {
|
|
177
|
-
|
|
163
|
+
t5 = $[22];
|
|
178
164
|
}
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
let t7;
|
|
184
|
-
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
185
|
-
t7 = e => {
|
|
165
|
+
const reorderAnimationContextValue = useReorderAnimationContextValue(t5);
|
|
166
|
+
let t6;
|
|
167
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
168
|
+
t6 = function handleRowNavigation(e) {
|
|
186
169
|
if (e.defaultPrevented || isWithinNavigableElement(e.target)) {
|
|
187
170
|
return;
|
|
188
171
|
}
|
|
@@ -205,35 +188,60 @@ function Table(props) {
|
|
|
205
188
|
}
|
|
206
189
|
}
|
|
207
190
|
};
|
|
208
|
-
$[
|
|
191
|
+
$[23] = t6;
|
|
192
|
+
} else {
|
|
193
|
+
t6 = $[23];
|
|
194
|
+
}
|
|
195
|
+
const handleRowNavigation = t6;
|
|
196
|
+
let t7;
|
|
197
|
+
if ($[24] !== data || $[25] !== estimateHeight || $[26] !== lookaheadPx || $[27] !== minScrollAndResizeDeltaPx || $[28] !== retentionMarginPx || $[29] !== scrollerRef || $[30] !== virtualizeRows) {
|
|
198
|
+
t7 = {
|
|
199
|
+
enabled: virtualizeRows,
|
|
200
|
+
data,
|
|
201
|
+
scrollerRef,
|
|
202
|
+
tableRef: localRef,
|
|
203
|
+
estimateHeight,
|
|
204
|
+
lookaheadPx,
|
|
205
|
+
retentionMarginPx,
|
|
206
|
+
minScrollAndResizeDeltaPx
|
|
207
|
+
};
|
|
208
|
+
$[24] = data;
|
|
209
|
+
$[25] = estimateHeight;
|
|
210
|
+
$[26] = lookaheadPx;
|
|
211
|
+
$[27] = minScrollAndResizeDeltaPx;
|
|
212
|
+
$[28] = retentionMarginPx;
|
|
213
|
+
$[29] = scrollerRef;
|
|
214
|
+
$[30] = virtualizeRows;
|
|
215
|
+
$[31] = t7;
|
|
209
216
|
} else {
|
|
210
|
-
t7 = $[
|
|
217
|
+
t7 = $[31];
|
|
211
218
|
}
|
|
212
|
-
const
|
|
219
|
+
const {
|
|
220
|
+
virtualItems,
|
|
221
|
+
virtualizationContextValue
|
|
222
|
+
} = useVirtualItems(t7);
|
|
223
|
+
const itemReorderLayoutContextValue = useReorderLayoutContextValue();
|
|
213
224
|
let t8;
|
|
214
|
-
if ($[
|
|
225
|
+
if ($[32] !== className) {
|
|
215
226
|
t8 = classNames(styles.table, className);
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
227
|
+
$[32] = className;
|
|
228
|
+
$[33] = t8;
|
|
218
229
|
} else {
|
|
219
|
-
t8 = $[
|
|
230
|
+
t8 = $[33];
|
|
220
231
|
}
|
|
221
232
|
const t9 = useComposedRef(userRef, localRef);
|
|
222
233
|
let t10;
|
|
223
|
-
if ($[
|
|
224
|
-
t10 = /*#__PURE__*/jsx(TableHeader, {
|
|
225
|
-
|
|
226
|
-
});
|
|
227
|
-
$[31] = expectColumnReorder;
|
|
228
|
-
$[32] = t10;
|
|
234
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
235
|
+
t10 = /*#__PURE__*/jsx(TableHeader, {});
|
|
236
|
+
$[34] = t10;
|
|
229
237
|
} else {
|
|
230
|
-
t10 = $[
|
|
238
|
+
t10 = $[34];
|
|
231
239
|
}
|
|
232
240
|
const t11 = virtualizeRows ? virtualItems : data;
|
|
233
241
|
let t12;
|
|
234
|
-
if ($[
|
|
242
|
+
if ($[35] !== columns || $[36] !== data || $[37] !== getKey || $[38] !== renderItem || $[39] !== t11 || $[40] !== virtualizeRows) {
|
|
235
243
|
let t13;
|
|
236
|
-
if ($[
|
|
244
|
+
if ($[42] !== columns || $[43] !== data || $[44] !== getKey || $[45] !== renderItem || $[46] !== virtualizeRows) {
|
|
237
245
|
t13 = (item, index) => {
|
|
238
246
|
let dataItem;
|
|
239
247
|
let dataItemIndex;
|
|
@@ -260,103 +268,102 @@ function Table(props) {
|
|
|
260
268
|
})
|
|
261
269
|
}, getKey(dataItem, dataItemIndex, data));
|
|
262
270
|
};
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
271
|
+
$[42] = columns;
|
|
272
|
+
$[43] = data;
|
|
273
|
+
$[44] = getKey;
|
|
274
|
+
$[45] = renderItem;
|
|
275
|
+
$[46] = virtualizeRows;
|
|
276
|
+
$[47] = t13;
|
|
269
277
|
} else {
|
|
270
|
-
t13 = $[
|
|
278
|
+
t13 = $[47];
|
|
271
279
|
}
|
|
272
280
|
t12 = t11.map(t13);
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
281
|
+
$[35] = columns;
|
|
282
|
+
$[36] = data;
|
|
283
|
+
$[37] = getKey;
|
|
284
|
+
$[38] = renderItem;
|
|
285
|
+
$[39] = t11;
|
|
286
|
+
$[40] = virtualizeRows;
|
|
287
|
+
$[41] = t12;
|
|
280
288
|
} else {
|
|
281
|
-
t12 = $[
|
|
289
|
+
t12 = $[41];
|
|
282
290
|
}
|
|
283
291
|
let t13;
|
|
284
|
-
if ($[
|
|
285
|
-
t13 = /*#__PURE__*/jsx(
|
|
286
|
-
|
|
287
|
-
onKeyDown: handleRowNavigation,
|
|
292
|
+
if ($[48] !== itemReorderLayoutContextValue || $[49] !== t12) {
|
|
293
|
+
t13 = /*#__PURE__*/jsx(ReorderLayoutContext, {
|
|
294
|
+
value: itemReorderLayoutContextValue,
|
|
288
295
|
children: t12
|
|
289
296
|
});
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
297
|
+
$[48] = itemReorderLayoutContextValue;
|
|
298
|
+
$[49] = t12;
|
|
299
|
+
$[50] = t13;
|
|
293
300
|
} else {
|
|
294
|
-
t13 = $[
|
|
301
|
+
t13 = $[50];
|
|
295
302
|
}
|
|
296
303
|
let t14;
|
|
297
|
-
if ($[
|
|
298
|
-
t14 = /*#__PURE__*/jsx(
|
|
299
|
-
value:
|
|
304
|
+
if ($[51] !== t13 || $[52] !== virtualizationContextValue) {
|
|
305
|
+
t14 = /*#__PURE__*/jsx(VirtualizationContext, {
|
|
306
|
+
value: virtualizationContextValue,
|
|
300
307
|
children: t13
|
|
301
308
|
});
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
304
|
-
$[
|
|
309
|
+
$[51] = t13;
|
|
310
|
+
$[52] = virtualizationContextValue;
|
|
311
|
+
$[53] = t14;
|
|
305
312
|
} else {
|
|
306
|
-
t14 = $[
|
|
313
|
+
t14 = $[53];
|
|
307
314
|
}
|
|
308
315
|
let t15;
|
|
309
|
-
if ($[
|
|
310
|
-
t15 = /*#__PURE__*/jsx(
|
|
311
|
-
|
|
316
|
+
if ($[54] !== t14 || $[55] !== tbodyClassName) {
|
|
317
|
+
t15 = /*#__PURE__*/jsx("tbody", {
|
|
318
|
+
className: tbodyClassName,
|
|
319
|
+
onKeyDown: handleRowNavigation,
|
|
312
320
|
children: t14
|
|
313
321
|
});
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
322
|
+
$[54] = t14;
|
|
323
|
+
$[55] = tbodyClassName;
|
|
324
|
+
$[56] = t15;
|
|
317
325
|
} else {
|
|
318
|
-
t15 = $[
|
|
326
|
+
t15 = $[56];
|
|
319
327
|
}
|
|
320
328
|
let t16;
|
|
321
|
-
if ($[
|
|
329
|
+
if ($[57] !== restProps || $[58] !== t15 || $[59] !== t8 || $[60] !== t9) {
|
|
322
330
|
t16 = /*#__PURE__*/jsxs("table", {
|
|
323
331
|
className: t8,
|
|
324
332
|
ref: t9,
|
|
325
333
|
...restProps,
|
|
326
334
|
children: [t10, t15]
|
|
327
335
|
});
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
$[60] = t16;
|
|
336
|
+
$[57] = restProps;
|
|
337
|
+
$[58] = t15;
|
|
338
|
+
$[59] = t8;
|
|
339
|
+
$[60] = t9;
|
|
340
|
+
$[61] = t16;
|
|
334
341
|
} else {
|
|
335
|
-
t16 = $[
|
|
342
|
+
t16 = $[61];
|
|
336
343
|
}
|
|
337
344
|
let t17;
|
|
338
|
-
if ($[
|
|
339
|
-
t17 = /*#__PURE__*/jsx(
|
|
340
|
-
value:
|
|
345
|
+
if ($[62] !== reorderAnimationContextValue || $[63] !== t16) {
|
|
346
|
+
t17 = /*#__PURE__*/jsx(ReorderAnimationContext, {
|
|
347
|
+
value: reorderAnimationContextValue,
|
|
341
348
|
children: t16
|
|
342
349
|
});
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
350
|
+
$[62] = reorderAnimationContextValue;
|
|
351
|
+
$[63] = t16;
|
|
352
|
+
$[64] = t17;
|
|
346
353
|
} else {
|
|
347
|
-
t17 = $[
|
|
354
|
+
t17 = $[64];
|
|
348
355
|
}
|
|
349
356
|
let t18;
|
|
350
|
-
if ($[
|
|
357
|
+
if ($[65] !== props || $[66] !== t17) {
|
|
351
358
|
t18 = /*#__PURE__*/jsx(TablePropsContext, {
|
|
352
359
|
value: props,
|
|
353
360
|
children: t17
|
|
354
361
|
});
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
362
|
+
$[65] = props;
|
|
363
|
+
$[66] = t17;
|
|
364
|
+
$[67] = t18;
|
|
358
365
|
} else {
|
|
359
|
-
t18 = $[
|
|
366
|
+
t18 = $[67];
|
|
360
367
|
}
|
|
361
368
|
return t18;
|
|
362
369
|
}
|
|
@@ -11,8 +11,9 @@ import '../global/get-uid.js';
|
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'classnames';
|
|
13
13
|
import '@jetbrains/icons/exception';
|
|
14
|
-
import '@jetbrains/icons/
|
|
14
|
+
import '@jetbrains/icons/success';
|
|
15
15
|
import '@jetbrains/icons/warning';
|
|
16
|
+
import '@jetbrains/icons/info-filled';
|
|
16
17
|
import '@jetbrains/icons/close';
|
|
17
18
|
import '../icon/icon.js';
|
|
18
19
|
import 'util-deprecate';
|
|
@@ -30,6 +31,11 @@ import '../link/clickable-link.js';
|
|
|
30
31
|
import '../_helpers/button.classes.js';
|
|
31
32
|
import '../global/configuration.js';
|
|
32
33
|
import '../_helpers/theme.js';
|
|
34
|
+
import '../alert/alert-heading.js';
|
|
35
|
+
import '../heading/heading.js';
|
|
36
|
+
import '../_helpers/heading.js';
|
|
37
|
+
import '../_helpers/alert.js';
|
|
38
|
+
import '../alert/alert-actions.js';
|
|
33
39
|
import '../alert/container.js';
|
|
34
40
|
import 'react-dom';
|
|
35
41
|
import '../_helpers/link.js';
|
|
@@ -28,8 +28,9 @@ import '../alert-service/alert-service.js';
|
|
|
28
28
|
import 'react-dom/client';
|
|
29
29
|
import '../alert/alert.js';
|
|
30
30
|
import '@jetbrains/icons/exception';
|
|
31
|
-
import '@jetbrains/icons/
|
|
31
|
+
import '@jetbrains/icons/success';
|
|
32
32
|
import '@jetbrains/icons/warning';
|
|
33
|
+
import '@jetbrains/icons/info-filled';
|
|
33
34
|
import '@jetbrains/icons/close';
|
|
34
35
|
import '../loader-inline/loader-inline.js';
|
|
35
36
|
import '../button/button.js';
|
|
@@ -40,6 +41,11 @@ import '../global/configuration.js';
|
|
|
40
41
|
import '../_helpers/button.classes.js';
|
|
41
42
|
import '../_helpers/icon-svg.js';
|
|
42
43
|
import '../_helpers/theme.js';
|
|
44
|
+
import '../alert/alert-heading.js';
|
|
45
|
+
import '../heading/heading.js';
|
|
46
|
+
import '../_helpers/heading.js';
|
|
47
|
+
import '../_helpers/alert.js';
|
|
48
|
+
import '../alert/alert-actions.js';
|
|
43
49
|
import '../alert/container.js';
|
|
44
50
|
import 'react-dom';
|
|
45
51
|
import '../clipboard/clipboard-fallback.js';
|
|
@@ -10,6 +10,6 @@ export default class SmartUserCardTooltip extends Component<SmartUserCardTooltip
|
|
|
10
10
|
loading: boolean;
|
|
11
11
|
};
|
|
12
12
|
loadUser: () => Promise<void>;
|
|
13
|
-
renderNoUser: () =>
|
|
13
|
+
renderNoUser: () => import("react").JSX.Element | "";
|
|
14
14
|
render(): import("react").JSX.Element;
|
|
15
15
|
}
|
|
@@ -51,9 +51,15 @@ import '../alert-service/alert-service.js';
|
|
|
51
51
|
import 'react-dom/client';
|
|
52
52
|
import '../alert/alert.js';
|
|
53
53
|
import '@jetbrains/icons/exception';
|
|
54
|
-
import '@jetbrains/icons/
|
|
54
|
+
import '@jetbrains/icons/success';
|
|
55
55
|
import '@jetbrains/icons/warning';
|
|
56
|
+
import '@jetbrains/icons/info-filled';
|
|
56
57
|
import '@jetbrains/icons/close';
|
|
58
|
+
import '../alert/alert-heading.js';
|
|
59
|
+
import '../heading/heading.js';
|
|
60
|
+
import '../_helpers/heading.js';
|
|
61
|
+
import '../_helpers/alert.js';
|
|
62
|
+
import '../alert/alert-actions.js';
|
|
57
63
|
import '../alert/container.js';
|
|
58
64
|
import '../clipboard/clipboard-fallback.js';
|
|
59
65
|
import '../tag/tag.js';
|
|
@@ -49,10 +49,16 @@ import '../alert-service/alert-service.js';
|
|
|
49
49
|
import 'react-dom/client';
|
|
50
50
|
import '../alert/alert.js';
|
|
51
51
|
import '@jetbrains/icons/exception';
|
|
52
|
-
import '@jetbrains/icons/
|
|
52
|
+
import '@jetbrains/icons/success';
|
|
53
53
|
import '@jetbrains/icons/warning';
|
|
54
|
+
import '@jetbrains/icons/info-filled';
|
|
54
55
|
import '@jetbrains/icons/close';
|
|
55
56
|
import '../loader-inline/loader-inline.js';
|
|
57
|
+
import '../alert/alert-heading.js';
|
|
58
|
+
import '../heading/heading.js';
|
|
59
|
+
import '../_helpers/heading.js';
|
|
60
|
+
import '../_helpers/alert.js';
|
|
61
|
+
import '../alert/alert-actions.js';
|
|
56
62
|
import '../alert/container.js';
|
|
57
63
|
import '../clipboard/clipboard-fallback.js';
|
|
58
64
|
import '../tag/tag.js';
|
|
@@ -25,8 +25,9 @@ import '../alert-service/alert-service.js';
|
|
|
25
25
|
import 'react-dom/client';
|
|
26
26
|
import '../alert/alert.js';
|
|
27
27
|
import '@jetbrains/icons/exception';
|
|
28
|
-
import '@jetbrains/icons/
|
|
28
|
+
import '@jetbrains/icons/success';
|
|
29
29
|
import '@jetbrains/icons/warning';
|
|
30
|
+
import '@jetbrains/icons/info-filled';
|
|
30
31
|
import '@jetbrains/icons/close';
|
|
31
32
|
import '../icon/icon.js';
|
|
32
33
|
import '../icon/icon.constants.js';
|
|
@@ -39,6 +40,11 @@ import '../global/controls-height.js';
|
|
|
39
40
|
import '../global/configuration.js';
|
|
40
41
|
import '../_helpers/button.classes.js';
|
|
41
42
|
import '../_helpers/theme.js';
|
|
43
|
+
import '../alert/alert-heading.js';
|
|
44
|
+
import '../heading/heading.js';
|
|
45
|
+
import '../_helpers/heading.js';
|
|
46
|
+
import '../_helpers/alert.js';
|
|
47
|
+
import '../alert/alert-actions.js';
|
|
42
48
|
import '../alert/container.js';
|
|
43
49
|
import 'react-dom';
|
|
44
50
|
import '../clipboard/clipboard-fallback.js';
|
|
@@ -19,9 +19,9 @@ export declare function createRandom(seed: bigint): {
|
|
|
19
19
|
/**
|
|
20
20
|
* Up to random n items (in random order) from the array
|
|
21
21
|
*/
|
|
22
|
-
<T>(array: T[], n: number): T[];
|
|
22
|
+
<T>(array: readonly T[], n: number): T[];
|
|
23
23
|
/**
|
|
24
24
|
* Random item from the array
|
|
25
25
|
*/
|
|
26
|
-
<T>(array: T[]): T;
|
|
26
|
+
<T>(array: readonly T[]): T;
|
|
27
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.5",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"dequal": "^2.0.3",
|
|
121
121
|
"element-resize-detector": "^1.2.4",
|
|
122
122
|
"fastdom": "^1.0.12",
|
|
123
|
-
"focus-trap": "^8.2.
|
|
123
|
+
"focus-trap": "^8.2.2",
|
|
124
124
|
"highlight.js": "^10.7.2",
|
|
125
125
|
"just-debounce-it": "^3.2.0",
|
|
126
126
|
"memoize-one": "^6.0.0",
|