@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
|
@@ -5,7 +5,12 @@ import { setTimeoutWithCleanup } from '../global/schedule-with-cleanup.js';
|
|
|
5
5
|
import { s as styles } from '../_helpers/table.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const VirtualizationContext = /*#__PURE__*/createContext({
|
|
9
|
+
intersectionObserverHandle: {
|
|
10
|
+
observe: () => () => {}
|
|
11
|
+
},
|
|
12
|
+
collapseItemIntoSpacer: () => {}
|
|
13
|
+
});
|
|
9
14
|
/**
|
|
10
15
|
* RAF is somewhat too frequent. Most updates happen on virtualization boundaries
|
|
11
16
|
* within the invisible overscroll area, so they don't require such a high update rate.
|
|
@@ -13,12 +18,12 @@ const CollapseItemIntoSpacerContext = /*#__PURE__*/createContext(() => {});
|
|
|
13
18
|
*/
|
|
14
19
|
const virtualizationThrottleDelay = 50;
|
|
15
20
|
function useVirtualItems(t0) {
|
|
16
|
-
const $ = c(
|
|
17
|
-
if ($[0] !== "
|
|
18
|
-
for (let $i = 0; $i <
|
|
21
|
+
const $ = c(43);
|
|
22
|
+
if ($[0] !== "22c57a068d0e63509a04fa6cf4f7cf2a8bbbdc9b615fb1a7fae4fb9998ef4721") {
|
|
23
|
+
for (let $i = 0; $i < 43; $i += 1) {
|
|
19
24
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
20
25
|
}
|
|
21
|
-
$[0] = "
|
|
26
|
+
$[0] = "22c57a068d0e63509a04fa6cf4f7cf2a8bbbdc9b615fb1a7fae4fb9998ef4721";
|
|
22
27
|
}
|
|
23
28
|
const {
|
|
24
29
|
enabled,
|
|
@@ -247,7 +252,7 @@ function useVirtualItems(t0) {
|
|
|
247
252
|
const intersectionObserverHandle = useIntersectionObserverHandle(scrollerRef, scrollerRef ? retentionMarginPx : undefined, !scrollerRef ? retentionMarginPx : undefined);
|
|
248
253
|
let t9;
|
|
249
254
|
if ($[34] !== enabled || $[35] !== recomputeVirtualItems) {
|
|
250
|
-
t9 = (index, height_1)
|
|
255
|
+
t9 = function collapseItemIntoSpacer(index, height_1) {
|
|
251
256
|
if (!enabled) {
|
|
252
257
|
return;
|
|
253
258
|
}
|
|
@@ -262,20 +267,30 @@ function useVirtualItems(t0) {
|
|
|
262
267
|
}
|
|
263
268
|
const collapseItemIntoSpacer = t9;
|
|
264
269
|
let t10;
|
|
265
|
-
if ($[37] !== collapseItemIntoSpacer || $[38] !== intersectionObserverHandle
|
|
270
|
+
if ($[37] !== collapseItemIntoSpacer || $[38] !== intersectionObserverHandle) {
|
|
266
271
|
t10 = {
|
|
267
|
-
virtualItems,
|
|
268
272
|
intersectionObserverHandle,
|
|
269
273
|
collapseItemIntoSpacer
|
|
270
274
|
};
|
|
271
275
|
$[37] = collapseItemIntoSpacer;
|
|
272
276
|
$[38] = intersectionObserverHandle;
|
|
273
|
-
$[39] =
|
|
277
|
+
$[39] = t10;
|
|
278
|
+
} else {
|
|
279
|
+
t10 = $[39];
|
|
280
|
+
}
|
|
281
|
+
let t11;
|
|
282
|
+
if ($[40] !== t10 || $[41] !== virtualItems) {
|
|
283
|
+
t11 = {
|
|
284
|
+
virtualItems,
|
|
285
|
+
virtualizationContextValue: t10
|
|
286
|
+
};
|
|
274
287
|
$[40] = t10;
|
|
288
|
+
$[41] = virtualItems;
|
|
289
|
+
$[42] = t11;
|
|
275
290
|
} else {
|
|
276
|
-
|
|
291
|
+
t11 = $[42];
|
|
277
292
|
}
|
|
278
|
-
return
|
|
293
|
+
return t11;
|
|
279
294
|
}
|
|
280
295
|
function _temp(cb_0) {
|
|
281
296
|
return cb_0();
|
|
@@ -294,11 +309,11 @@ function spacerKey(index) {
|
|
|
294
309
|
}
|
|
295
310
|
function SpacerRow(t0) {
|
|
296
311
|
const $ = c(10);
|
|
297
|
-
if ($[0] !== "
|
|
312
|
+
if ($[0] !== "22c57a068d0e63509a04fa6cf4f7cf2a8bbbdc9b615fb1a7fae4fb9998ef4721") {
|
|
298
313
|
for (let $i = 0; $i < 10; $i += 1) {
|
|
299
314
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
300
315
|
}
|
|
301
|
-
$[0] = "
|
|
316
|
+
$[0] = "22c57a068d0e63509a04fa6cf4f7cf2a8bbbdc9b615fb1a7fae4fb9998ef4721";
|
|
302
317
|
}
|
|
303
318
|
const {
|
|
304
319
|
spacer: t1,
|
|
@@ -350,4 +365,4 @@ function SpacerRow(t0) {
|
|
|
350
365
|
return t4;
|
|
351
366
|
}
|
|
352
367
|
|
|
353
|
-
export {
|
|
368
|
+
export { SpacerRow, VirtualizationContext, useVirtualItems };
|
|
@@ -6,11 +6,11 @@ const MAJOR_VERSION_INDEX = 0;
|
|
|
6
6
|
/**
|
|
7
7
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
|
8
8
|
*/
|
|
9
|
-
if (!["and_chr 149", "and_ff 151", "and_qq 14.9", "and_uc 15.5", "android 149", "chrome 149", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 118", "chrome 116", "chrome 112", "chrome 109", "edge 149", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 151", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "
|
|
9
|
+
if (!["and_chr 149", "and_ff 151", "and_qq 14.9", "and_uc 15.5", "android 149", "chrome 149", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 118", "chrome 116", "chrome 112", "chrome 109", "edge 149", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 151", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "ios_saf 26.5", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 131", "opera 127", "safari 26.4", "safari 26.3", "safari 26.2", "safari 26.1", "safari 26.0", "safari 18.5-18.7", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "samsung 30", "samsung 29"]) {
|
|
10
10
|
// eslint-disable-next-line no-console
|
|
11
11
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
|
12
12
|
}
|
|
13
|
-
const SUPPORTED = ["and_chr 149", "and_ff 151", "and_qq 14.9", "and_uc 15.5", "android 149", "chrome 149", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 118", "chrome 116", "chrome 112", "chrome 109", "edge 149", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 151", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "
|
|
13
|
+
const SUPPORTED = ["and_chr 149", "and_ff 151", "and_qq 14.9", "and_uc 15.5", "android 149", "chrome 149", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 118", "chrome 116", "chrome 112", "chrome 109", "edge 149", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 151", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "ios_saf 26.5", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 131", "opera 127", "safari 26.4", "safari 26.3", "safari 26.2", "safari 26.1", "safari 26.0", "safari 18.5-18.7", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "samsung 30", "samsung 29"] || [];
|
|
14
14
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
|
15
15
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
|
16
16
|
var _item$match;
|
|
@@ -5,8 +5,9 @@ import '../alert/alert.js';
|
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '@jetbrains/icons/exception';
|
|
8
|
-
import '@jetbrains/icons/
|
|
8
|
+
import '@jetbrains/icons/success';
|
|
9
9
|
import '@jetbrains/icons/warning';
|
|
10
|
+
import '@jetbrains/icons/info-filled';
|
|
10
11
|
import '@jetbrains/icons/close';
|
|
11
12
|
import '../icon/icon.js';
|
|
12
13
|
import 'util-deprecate';
|
|
@@ -26,6 +27,11 @@ import '../global/controls-height.js';
|
|
|
26
27
|
import '../global/configuration.js';
|
|
27
28
|
import '../_helpers/button.classes.js';
|
|
28
29
|
import '../_helpers/theme.js';
|
|
30
|
+
import '../alert/alert-heading.js';
|
|
31
|
+
import '../heading/heading.js';
|
|
32
|
+
import '../_helpers/heading.js';
|
|
33
|
+
import '../_helpers/alert.js';
|
|
34
|
+
import '../alert/alert-actions.js';
|
|
29
35
|
import '../alert/container.js';
|
|
30
36
|
import 'react-dom';
|
|
31
37
|
|
|
@@ -6,8 +6,9 @@ import '../alert/alert.js';
|
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@jetbrains/icons/exception';
|
|
9
|
-
import '@jetbrains/icons/
|
|
9
|
+
import '@jetbrains/icons/success';
|
|
10
10
|
import '@jetbrains/icons/warning';
|
|
11
|
+
import '@jetbrains/icons/info-filled';
|
|
11
12
|
import '@jetbrains/icons/close';
|
|
12
13
|
import '../icon/icon.js';
|
|
13
14
|
import 'util-deprecate';
|
|
@@ -27,6 +28,11 @@ import '../global/controls-height.js';
|
|
|
27
28
|
import '../global/configuration.js';
|
|
28
29
|
import '../_helpers/button.classes.js';
|
|
29
30
|
import '../_helpers/theme.js';
|
|
31
|
+
import '../alert/alert-heading.js';
|
|
32
|
+
import '../heading/heading.js';
|
|
33
|
+
import '../_helpers/heading.js';
|
|
34
|
+
import '../_helpers/alert.js';
|
|
35
|
+
import '../alert/alert-actions.js';
|
|
30
36
|
import '../alert/container.js';
|
|
31
37
|
import 'react-dom';
|
|
32
38
|
|