@jetbrains/ring-ui-built 7.0.125 → 8.0.0-beta.11
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 +3 -5
- package/components/_helpers/caption.js +1 -1
- package/components/_helpers/dialog.js +3 -0
- package/components/_helpers/icon-svg.js +37 -52
- package/components/_helpers/legacy-table.js +3 -0
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/table.js +2 -2
- package/components/_helpers/theme.js +49 -37
- package/components/alert/alert-actions.js +1 -1
- package/components/alert/alert-heading.js +1 -1
- package/components/alert/alert.js +2 -2
- package/components/alert-service/alert-service.js +2 -2
- package/components/auth/auth-core.js +2 -2
- package/components/auth/auth.js +2 -2
- package/components/auth/down-notification.js +2 -2
- package/components/auth/iframe-flow.js +15 -10
- package/components/auth/storage.js +2 -2
- package/components/auth-dialog/auth-dialog.js +11 -6
- package/components/auth-dialog-service/auth-dialog-service.js +19 -11
- package/components/avatar/avatar-info.js +1 -1
- package/components/avatar/avatar-size.d.ts +0 -4
- package/components/avatar/avatar-size.js +0 -4
- package/components/avatar/avatar.js +1 -8
- package/components/avatar/fallback-avatar.js +3 -48
- package/components/avatar-stack/avatar-stack.js +5 -5
- package/components/banner/banner.js +5 -6
- package/components/button/button.d.ts +0 -4
- package/components/button/button.js +4 -10
- package/components/button-group/button-group.js +1 -1
- package/components/button-toolbar/button-toolbar.js +1 -1
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +1 -2
- package/components/clipboard/clipboard.js +2 -2
- package/components/code/code.js +1 -2
- package/components/collapse/collapse-content.js +35 -43
- package/components/collapse/collapse-context.d.ts +1 -0
- package/components/collapse/collapse-context.js +1 -0
- package/components/collapse/collapse-control.js +5 -5
- package/components/collapse/collapse.js +34 -25
- package/components/collapsible-group/collapsible-group.d.ts +5 -1
- package/components/collapsible-group/collapsible-group.js +80 -98
- package/components/components/util-stories.js +63 -1
- package/components/confirm/confirm.js +30 -21
- package/components/confirm-service/confirm-service.js +21 -13
- package/components/contenteditable/contenteditable.js +4 -5
- 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 +4 -4
- package/components/data-list/data-list.js +5 -5
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +2 -2
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/item.js +3 -3
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +2 -2
- package/components/data-list/title.js +1 -2
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.js +2 -3
- 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.d.ts +0 -2
- package/components/date-picker/month.js +17 -18
- package/components/date-picker/months.js +43 -36
- package/components/date-picker/use-scroll-behavior.js +45 -45
- package/components/date-picker/weekdays.js +1 -1
- package/components/date-picker/years.js +61 -55
- package/components/dialog/dialog-body-scroll-preventer.js +49 -2
- package/components/dialog/dialog-controls.d.ts +13 -0
- package/components/dialog/dialog-controls.js +113 -0
- package/components/dialog/dialog-geometry.d.ts +31 -0
- package/components/dialog/dialog-geometry.js +63 -0
- package/components/dialog/dialog.d.ts +15 -7
- package/components/dialog/dialog.js +185 -37
- package/components/dropdown/anchor.js +3 -3
- package/components/dropdown/dropdown.js +3 -3
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +63 -58
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +14 -13
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -2
- 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/configuration.d.ts +0 -5
- package/components/global/configuration.js +2 -10
- package/components/global/controls-height.js +1 -1
- 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/get-viewport-size.d.ts +5 -0
- package/components/global/get-viewport-size.js +6 -0
- package/components/global/intersection-observer-context.d.ts +46 -0
- package/components/global/intersection-observer-context.js +138 -0
- 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/{table/selection.d.ts → global/table-selection.d.ts} +15 -15
- package/components/{table/selection.js → global/table-selection.js} +5 -5
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +1 -1
- package/components/global/variables.interface.d.ts +0 -4
- package/components/header/header-icon.js +3 -3
- package/components/header/header.js +3 -3
- package/components/header/links.js +1 -1
- package/components/header/logo.js +1 -2
- package/components/header/profile.js +5 -5
- package/components/header/services.js +3 -3
- package/components/header/smart-profile.js +3 -3
- package/components/header/smart-services.js +3 -3
- package/components/heading/heading.js +1 -1
- package/components/http/http.js +6 -23
- package/components/i18n/i18n-context.js +4 -4
- package/components/icon/icon-svg.js +1 -2
- package/components/icon/icon.d.ts +0 -1
- package/components/icon/icon.js +2 -6
- package/components/icon/index.js +1 -2
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +3 -3
- 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 +685 -0
- package/components/internal/virtualization.js +368 -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 +4 -3
- package/components/island/island.js +1 -1
- package/components/{table → legacy-table}/cell.js +1 -1
- package/components/{table → legacy-table}/header-cell.js +2 -3
- package/components/{table → legacy-table}/header.js +2 -3
- package/components/{table → legacy-table}/multitable.d.ts +1 -1
- package/components/{table → legacy-table}/row-with-focus-sensor.js +3 -3
- package/components/{table → legacy-table}/row.d.ts +1 -1
- package/components/{table → legacy-table}/row.js +5 -5
- package/components/legacy-table/selection-adapter.d.ts +6 -0
- package/components/{table → legacy-table}/selection-shortcuts-hoc.d.ts +5 -5
- package/components/{table → legacy-table}/simple-table.d.ts +2 -2
- package/components/{table → legacy-table}/simple-table.js +5 -5
- package/components/{table → legacy-table}/smart-table.d.ts +5 -5
- package/components/{table → legacy-table}/smart-table.js +6 -6
- package/components/legacy-table/table.d.ts +109 -0
- package/components/legacy-table/table.js +369 -0
- package/components/list/consts.d.ts +0 -1
- package/components/list/consts.js +0 -1
- package/components/list/list-item.js +3 -5
- package/components/list/list-users-groups-source.js +1 -2
- package/components/list/list.d.ts +0 -4
- package/components/list/list.js +1 -2
- package/components/login-dialog/login-dialog.js +17 -12
- package/components/login-dialog/service.js +19 -11
- package/components/message/message.js +1 -1
- package/components/pager/pager.js +3 -3
- package/components/popup/popup.js +1 -1
- 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 -2
- 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 +33 -19
- 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 +3 -3
- package/components/select/select-filter.js +3 -3
- package/components/select/select-popup.d.ts +3 -2
- package/components/select/select-popup.js +9 -4
- package/components/select/select.d.ts +6 -2
- package/components/select/select.js +5 -4
- package/components/selection-toolbar/selection-toolbar.d.ts +11 -0
- package/components/selection-toolbar/selection-toolbar.js +200 -0
- package/components/slider/slider.js +100 -97
- package/components/storage/storage-local.js +2 -2
- package/components/storage/storage.js +2 -2
- 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 +55 -0
- package/components/table/default-item-renderer.js +240 -0
- 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 -0
- package/components/table/internal/virtualization.d.ts +41 -0
- package/components/table/item-virtualization.d.ts +37 -0
- package/components/table/item-virtualization.js +73 -0
- 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 +10 -0
- package/components/table/table-const.js +13 -0
- package/components/table/table-primitives.d.ts +64 -0
- package/components/table/table-primitives.js +180 -0
- package/components/table/table-props.d.ts +304 -0
- package/components/table/table-props.js +1 -0
- package/components/table/table.d.ts +231 -107
- package/components/table/table.js +351 -346
- 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 +4 -4
- package/components/tags-list/tags-list.js +2 -2
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +5 -3
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +7 -30
- package/components/user-agreement/service.js +12 -4
- package/components/user-agreement/user-agreement.js +24 -20
- package/components/user-card/card.js +4 -4
- package/components/user-card/smart-user-card-tooltip.js +3 -3
- package/components/user-card/tooltip.js +3 -3
- package/components/user-card/user-card.js +5 -5
- package/components/util-stories.d.ts +26 -0
- package/package.json +11 -12
- package/components/__mocks__/old-browsers-message.js +0 -3
- package/components/_helpers/dialog-body-scroll-preventer.js +0 -50
- package/components/_helpers/grid.js +0 -3
- package/components/_helpers/sidebar.js +0 -110
- package/components/content-layout/content-layout.d.ts +0 -20
- package/components/content-layout/content-layout.js +0 -50
- package/components/content-layout/sidebar.d.ts +0 -26
- package/components/content-layout/sidebar.js +0 -5
- package/components/date-picker/use-intersection-observer.d.ts +0 -6
- package/components/date-picker/use-intersection-observer.js +0 -93
- package/components/expand/collapsible-group.d.ts +0 -8
- package/components/expand/collapsible-group.js +0 -52
- package/components/global/composeRefs.d.ts +0 -6
- package/components/global/composeRefs.js +0 -9
- package/components/global/use-event-callback.d.ts +0 -4
- package/components/global/use-event-callback.js +0 -49
- package/components/grid/col.d.ts +0 -16
- package/components/grid/col.js +0 -63
- package/components/grid/grid.d.ts +0 -13
- package/components/grid/grid.js +0 -27
- package/components/grid/row.d.ts +0 -21
- package/components/grid/row.js +0 -72
- package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
- package/components/old-browsers-message/old-browsers-message-stop.js +0 -5
- package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
- package/components/old-browsers-message/old-browsers-message.js +0 -89
- package/components/old-browsers-message/white-list.d.ts +0 -2
- package/components/old-browsers-message/white-list.js +0 -30
- package/components/table/selection-adapter.d.ts +0 -6
- /package/components/{table → legacy-table}/cell.d.ts +0 -0
- /package/components/{table → legacy-table}/disable-hover-hoc.d.ts +0 -0
- /package/components/{table → legacy-table}/disable-hover-hoc.js +0 -0
- /package/components/{table → legacy-table}/header-cell.d.ts +0 -0
- /package/components/{table → legacy-table}/header.d.ts +0 -0
- /package/components/{table → legacy-table}/multitable.js +0 -0
- /package/components/{table → legacy-table}/row-with-focus-sensor.d.ts +0 -0
- /package/components/{table → legacy-table}/selection-adapter.js +0 -0
- /package/components/{table → legacy-table}/selection-shortcuts-hoc.js +0 -0
|
@@ -6,14 +6,13 @@ import 'react';
|
|
|
6
6
|
import '../dialog/dialog.js';
|
|
7
7
|
import 'react-dom';
|
|
8
8
|
import 'classnames';
|
|
9
|
-
import '@jetbrains/icons/close';
|
|
10
9
|
import '../island/island.js';
|
|
11
10
|
import '../global/data-tests.js';
|
|
12
11
|
import '../island/adaptive-island-hoc.js';
|
|
13
12
|
import '../global/linear-function.js';
|
|
14
13
|
import '../_helpers/island.js';
|
|
15
14
|
import '../island/header.js';
|
|
16
|
-
import 'react
|
|
15
|
+
import 'react/compiler-runtime';
|
|
17
16
|
import '../island/content.js';
|
|
18
17
|
import 'element-resize-detector';
|
|
19
18
|
import '../global/schedule-raf.js';
|
|
@@ -26,25 +25,31 @@ import '../global/sniffer.js';
|
|
|
26
25
|
import 'sniffr';
|
|
27
26
|
import '../tab-trap/tab-trap.js';
|
|
28
27
|
import '../global/dom.js';
|
|
28
|
+
import '../popup/popup.target.js';
|
|
29
|
+
import '../popup/popup.js';
|
|
30
|
+
import '../global/configuration.js';
|
|
31
|
+
import '../popup/position.js';
|
|
32
|
+
import '../popup/popup.consts.js';
|
|
33
|
+
import '../popup/position-css.js';
|
|
34
|
+
import '../_helpers/theme.js';
|
|
35
|
+
import '../global/get-viewport-size.js';
|
|
36
|
+
import '../dialog/dialog-body-scroll-preventer.js';
|
|
37
|
+
import 'scrollbar-width';
|
|
38
|
+
import '../_helpers/dialog.js';
|
|
39
|
+
import '../dialog/dialog-controls.js';
|
|
40
|
+
import '@jetbrains/icons/close';
|
|
41
|
+
import '@jetbrains/icons/resize-corner-12px';
|
|
29
42
|
import '../button/button.js';
|
|
30
43
|
import '@jetbrains/icons/chevron-down';
|
|
31
44
|
import '@jetbrains/icons/chevron-12px-down';
|
|
32
|
-
import 'util-deprecate';
|
|
33
45
|
import '../icon/icon.js';
|
|
46
|
+
import 'util-deprecate';
|
|
34
47
|
import '../icon/icon.constants.js';
|
|
35
48
|
import '../_helpers/icon-svg.js';
|
|
36
|
-
import '../global/configuration.js';
|
|
37
49
|
import '../global/memoize.js';
|
|
38
50
|
import '../link/clickable-link.js';
|
|
39
51
|
import '../_helpers/button.classes.js';
|
|
40
|
-
import '../
|
|
41
|
-
import '../popup/popup.js';
|
|
42
|
-
import '../popup/position.js';
|
|
43
|
-
import '../popup/popup.consts.js';
|
|
44
|
-
import '../popup/position-css.js';
|
|
45
|
-
import '../_helpers/theme.js';
|
|
46
|
-
import '../_helpers/dialog-body-scroll-preventer.js';
|
|
47
|
-
import 'scrollbar-width';
|
|
52
|
+
import '../dialog/dialog-geometry.js';
|
|
48
53
|
import '../panel/panel.js';
|
|
49
54
|
|
|
50
55
|
const containerElement = document.createElement('div');
|
|
@@ -53,11 +58,14 @@ const reactRoot = createRoot(containerElement);
|
|
|
53
58
|
* Renders Confirm into virtual node to skip maintaining container
|
|
54
59
|
*/
|
|
55
60
|
function renderConfirm(props) {
|
|
61
|
+
if (!containerElement.isConnected) {
|
|
62
|
+
document.body.appendChild(containerElement);
|
|
63
|
+
}
|
|
56
64
|
const {
|
|
57
65
|
buttonsHeight = getGlobalControlsHeight(),
|
|
58
66
|
...restProps
|
|
59
67
|
} = props;
|
|
60
|
-
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext
|
|
68
|
+
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext, {
|
|
61
69
|
value: buttonsHeight,
|
|
62
70
|
children: /*#__PURE__*/jsx(Confirm, {
|
|
63
71
|
...restProps
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { renderToStaticMarkup } from 'react-dom/server';
|
|
4
|
-
import { getTrustedHTML } from '../global/configuration.js';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
function noop() {}
|
|
@@ -39,18 +38,18 @@ class ContentEditableBase extends Component {
|
|
|
39
38
|
tabIndex: disabled ? undefined : tabIndex,
|
|
40
39
|
contentEditable: !this.props.disabled,
|
|
41
40
|
dangerouslySetInnerHTML: {
|
|
42
|
-
__html
|
|
41
|
+
__html
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
const ContentEditable = t0 => {
|
|
48
47
|
const $ = c(9);
|
|
49
|
-
if ($[0] !== "
|
|
48
|
+
if ($[0] !== "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348") {
|
|
50
49
|
for (let $i = 0; $i < 9; $i += 1) {
|
|
51
50
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
52
51
|
}
|
|
53
|
-
$[0] = "
|
|
52
|
+
$[0] = "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348";
|
|
54
53
|
}
|
|
55
54
|
let children;
|
|
56
55
|
let props;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
import { type FocusSensorOuterProps } from '../global/focus-sensor-hoc';
|
|
6
|
-
import { type SelectionShortcutsAddProps, type SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
|
|
7
|
-
import { type DisableHoverAddProps } from '../table/disable-hover-hoc';
|
|
8
|
-
import { type SelectionItem } from '../table
|
|
6
|
+
import { type SelectionShortcutsAddProps, type SelectionShortcutsOuterProps } from '../legacy-table/selection-shortcuts-hoc';
|
|
7
|
+
import { type DisableHoverAddProps } from '../legacy-table/disable-hover-hoc';
|
|
8
|
+
import { type SelectionItem } from '../global/table-selection';
|
|
9
9
|
import { type FormattedItem, moreLessButtonStates } from './item';
|
|
10
10
|
export interface DataListBaseProps<T extends SelectionItem> {
|
|
11
11
|
data: readonly T[];
|
|
@@ -20,7 +20,7 @@ export interface DataListBaseProps<T extends SelectionItem> {
|
|
|
20
20
|
type FocusableProps<T extends SelectionItem> = DataListBaseProps<T> & DisableHoverAddProps & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsAddProps<T>;
|
|
21
21
|
export type DataListContainerProps<T extends SelectionItem> = DataListBaseProps<T> & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsOuterProps<T>;
|
|
22
22
|
export default class DataListContainer<T extends SelectionItem> extends Component<DataListContainerProps<T>> {
|
|
23
|
-
DataList: import("react").ComponentClass<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
|
|
23
|
+
DataList: import("react").ComponentClass<import("../legacy-table/disable-hover-hoc").DisableHoverProps<import("../legacy-table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
|
|
24
24
|
render(): import("react").JSX.Element;
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, PureComponent } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
|
4
|
-
import selectionShortcutsHOC from '../table/selection-shortcuts-hoc.js';
|
|
5
|
-
import disableHoverHOC from '../table/disable-hover-hoc.js';
|
|
4
|
+
import selectionShortcutsHOC from '../legacy-table/selection-shortcuts-hoc.js';
|
|
5
|
+
import disableHoverHOC from '../legacy-table/disable-hover-hoc.js';
|
|
6
6
|
import getUID from '../global/get-uid.js';
|
|
7
7
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
8
8
|
import Loader from '../loader/loader.js';
|
|
@@ -10,6 +10,7 @@ import Item, { moreLessButtonStates } from './item.js';
|
|
|
10
10
|
import { s as styles } from '../_helpers/title.js';
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
import '../global/compose-refs.js';
|
|
13
|
+
import 'react/compiler-runtime';
|
|
13
14
|
import 'memoize-one';
|
|
14
15
|
import 'core-js/modules/es.array.includes.js';
|
|
15
16
|
import '../shortcuts/core.js';
|
|
@@ -28,14 +29,13 @@ import '../text/text.js';
|
|
|
28
29
|
import '../loader-inline/loader-inline.js';
|
|
29
30
|
import '../button/button.js';
|
|
30
31
|
import '@jetbrains/icons/chevron-12px-down';
|
|
31
|
-
import 'util-deprecate';
|
|
32
32
|
import '../icon/icon.js';
|
|
33
|
+
import 'util-deprecate';
|
|
33
34
|
import '../icon/icon.constants.js';
|
|
34
35
|
import '../_helpers/icon-svg.js';
|
|
35
|
-
import 'react-compiler-runtime';
|
|
36
|
-
import '../global/configuration.js';
|
|
37
36
|
import '../global/memoize.js';
|
|
38
37
|
import '../global/controls-height.js';
|
|
38
|
+
import '../global/configuration.js';
|
|
39
39
|
import '../_helpers/button.classes.js';
|
|
40
40
|
import '../checkbox/checkbox.js';
|
|
41
41
|
import '@jetbrains/icons/checkmark-12px';
|
|
@@ -11,13 +11,13 @@ import '../icon/icon.js';
|
|
|
11
11
|
import 'util-deprecate';
|
|
12
12
|
import '../icon/icon.constants.js';
|
|
13
13
|
import '../_helpers/icon-svg.js';
|
|
14
|
-
import 'react
|
|
15
|
-
import '../global/configuration.js';
|
|
14
|
+
import 'react/compiler-runtime';
|
|
16
15
|
import '../global/memoize.js';
|
|
17
16
|
import '../button/button.js';
|
|
18
17
|
import '@jetbrains/icons/chevron-down';
|
|
19
18
|
import '@jetbrains/icons/chevron-12px-down';
|
|
20
19
|
import '../global/controls-height.js';
|
|
20
|
+
import '../global/configuration.js';
|
|
21
21
|
import '../_helpers/button.classes.js';
|
|
22
22
|
|
|
23
23
|
const items = [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PureComponent, type ReactNode } from 'react';
|
|
2
|
-
import { type SelectionItem } from '../table
|
|
2
|
+
import { type SelectionItem } from '../global/table-selection';
|
|
3
3
|
import type Selection from './selection';
|
|
4
4
|
export declare enum moreLessButtonStates {
|
|
5
5
|
UNUSED = 0,
|
|
@@ -12,14 +12,14 @@ import '../global/data-tests.js';
|
|
|
12
12
|
import '../link/clickable-link.js';
|
|
13
13
|
import '../_helpers/link.js';
|
|
14
14
|
import '@jetbrains/icons/chevron-12px-down';
|
|
15
|
-
import 'util-deprecate';
|
|
16
15
|
import '../icon/icon.js';
|
|
16
|
+
import 'util-deprecate';
|
|
17
17
|
import '../icon/icon.constants.js';
|
|
18
18
|
import '../_helpers/icon-svg.js';
|
|
19
|
-
import 'react
|
|
20
|
-
import '../global/configuration.js';
|
|
19
|
+
import 'react/compiler-runtime';
|
|
21
20
|
import '../global/memoize.js';
|
|
22
21
|
import '../global/controls-height.js';
|
|
22
|
+
import '../global/configuration.js';
|
|
23
23
|
import '../_helpers/button.classes.js';
|
|
24
24
|
import '../global/focus-sensor-hoc.js';
|
|
25
25
|
import '../global/compose-refs.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import TableSelection, { type CloneWithConfig, type SelectionItem, type TableSelectionConfig } from '../table
|
|
1
|
+
import TableSelection, { type CloneWithConfig, type SelectionItem, type TableSelectionConfig } from '../global/table-selection';
|
|
2
2
|
interface DataListSelectionConfig<T extends SelectionItem> extends TableSelectionConfig<T> {
|
|
3
3
|
partialSelected?: Set<T> | undefined;
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'core-js/modules/es.array.includes.js';
|
|
2
|
-
import
|
|
2
|
+
import TableSelection from '../global/table-selection.js';
|
|
3
3
|
|
|
4
|
-
class Selection extends
|
|
4
|
+
class Selection extends TableSelection {
|
|
5
5
|
_partialSelected;
|
|
6
6
|
constructor({
|
|
7
7
|
partialSelected = new Set(),
|
|
@@ -6,6 +6,7 @@ import '../global/get-uid.js';
|
|
|
6
6
|
export { T as default } from '../_helpers/title.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import '../global/compose-refs.js';
|
|
9
|
+
import 'react/compiler-runtime';
|
|
9
10
|
import 'memoize-one';
|
|
10
11
|
import '@jetbrains/icons/checkmark-12px';
|
|
11
12
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -13,8 +14,6 @@ import '../icon/icon.js';
|
|
|
13
14
|
import 'util-deprecate';
|
|
14
15
|
import '../icon/icon.constants.js';
|
|
15
16
|
import '../_helpers/icon-svg.js';
|
|
16
|
-
import 'react-compiler-runtime';
|
|
17
|
-
import '../global/configuration.js';
|
|
18
17
|
import '../global/memoize.js';
|
|
19
18
|
import '../control-help/control-help.js';
|
|
20
19
|
import '../global/data-tests.js';
|
|
@@ -10,11 +10,11 @@ import '@jetbrains/icons/close-12px';
|
|
|
10
10
|
import '../button/button.js';
|
|
11
11
|
import '@jetbrains/icons/chevron-down';
|
|
12
12
|
import '@jetbrains/icons/chevron-12px-down';
|
|
13
|
-
import 'util-deprecate';
|
|
14
13
|
import '../icon/icon.js';
|
|
14
|
+
import 'util-deprecate';
|
|
15
15
|
import '../icon/icon.constants.js';
|
|
16
16
|
import '../_helpers/icon-svg.js';
|
|
17
|
-
import 'react
|
|
17
|
+
import 'react/compiler-runtime';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
19
|
import '../link/clickable-link.js';
|
|
20
20
|
import '../_helpers/button.classes.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { format } from 'date-fns/format';
|
|
@@ -72,10 +72,9 @@ import 'date-fns/getDate';
|
|
|
72
72
|
import 'date-fns/isToday';
|
|
73
73
|
import './consts.js';
|
|
74
74
|
import 'date-fns/add';
|
|
75
|
-
import '
|
|
75
|
+
import '../global/intersection-observer-context.js';
|
|
76
76
|
import './scroll-arith.js';
|
|
77
77
|
import './use-scroll-behavior.js';
|
|
78
|
-
import '../global/use-event-callback.js';
|
|
79
78
|
import './years.js';
|
|
80
79
|
import 'date-fns/addYears';
|
|
81
80
|
import 'date-fns/getYear';
|
|
@@ -20,14 +20,14 @@ import '@jetbrains/icons/close-12px';
|
|
|
20
20
|
import '../button/button.js';
|
|
21
21
|
import '@jetbrains/icons/chevron-down';
|
|
22
22
|
import '@jetbrains/icons/chevron-12px-down';
|
|
23
|
-
import 'util-deprecate';
|
|
24
23
|
import '../icon/icon.js';
|
|
24
|
+
import 'util-deprecate';
|
|
25
25
|
import '../icon/icon.constants.js';
|
|
26
26
|
import '../_helpers/icon-svg.js';
|
|
27
|
-
import 'react
|
|
28
|
-
import '../global/configuration.js';
|
|
27
|
+
import 'react/compiler-runtime';
|
|
29
28
|
import '../link/clickable-link.js';
|
|
30
29
|
import '../global/controls-height.js';
|
|
30
|
+
import '../global/configuration.js';
|
|
31
31
|
import '../_helpers/button.classes.js';
|
|
32
32
|
import '../global/get-uid.js';
|
|
33
33
|
import '../i18n/i18n-context.js';
|
|
@@ -47,10 +47,9 @@ import 'date-fns/addDays';
|
|
|
47
47
|
import 'date-fns/getDate';
|
|
48
48
|
import 'date-fns/isSameDay';
|
|
49
49
|
import 'date-fns/isToday';
|
|
50
|
-
import '
|
|
50
|
+
import '../global/intersection-observer-context.js';
|
|
51
51
|
import './scroll-arith.js';
|
|
52
52
|
import './use-scroll-behavior.js';
|
|
53
|
-
import '../global/use-event-callback.js';
|
|
54
53
|
import '../global/schedule-raf.js';
|
|
55
54
|
import 'date-fns/addYears';
|
|
56
55
|
import 'date-fns/getYear';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type Locale } from 'date-fns';
|
|
2
2
|
import { type MonthsProps } from './consts';
|
|
3
|
-
import { type IntersectionObserverHandle } from './use-intersection-observer';
|
|
4
3
|
export interface MonthProps extends MonthsProps {
|
|
5
4
|
month: Date;
|
|
6
|
-
intersectionObserverHandle: IntersectionObserverHandle | null;
|
|
7
5
|
}
|
|
8
6
|
export default function Month(props: MonthProps): import("react").JSX.Element;
|
|
9
7
|
export declare function getMonthHeight(monthStart: Date | number, locale: Locale | undefined): number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { format } from 'date-fns/format';
|
|
3
3
|
import { getDay } from 'date-fns/getDay';
|
|
4
4
|
import { getDaysInMonth, setDate } from 'date-fns';
|
|
5
5
|
import { useRef, createElement } from 'react';
|
|
6
6
|
import Day from './day.js';
|
|
7
7
|
import units, { getWeekStartsOn, WEEK } from './consts.js';
|
|
8
|
-
import {
|
|
8
|
+
import { useIsIntersecting } from '../global/intersection-observer-context.js';
|
|
9
9
|
import { s as styles } from '../_helpers/date-picker.js';
|
|
10
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
11
11
|
import 'core-js/modules/es.array.includes.js';
|
|
@@ -23,34 +23,33 @@ import 'sniffr';
|
|
|
23
23
|
|
|
24
24
|
function Month(props) {
|
|
25
25
|
const $ = c(13);
|
|
26
|
-
if ($[0] !== "
|
|
26
|
+
if ($[0] !== "f69b6ec913368865656f465501e81a8f3fab6df87b3d741c6b878c75ad08c0c9") {
|
|
27
27
|
for (let $i = 0; $i < 13; $i += 1) {
|
|
28
28
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
29
29
|
}
|
|
30
|
-
$[0] = "
|
|
30
|
+
$[0] = "f69b6ec913368865656f465501e81a8f3fab6df87b3d741c6b878c75ad08c0c9";
|
|
31
31
|
}
|
|
32
32
|
const {
|
|
33
33
|
month,
|
|
34
|
-
locale
|
|
35
|
-
intersectionObserverHandle
|
|
34
|
+
locale
|
|
36
35
|
} = props;
|
|
37
36
|
const containerRef = useRef(null);
|
|
38
|
-
const
|
|
37
|
+
const isIntersecting = useIsIntersecting(containerRef);
|
|
39
38
|
let t0;
|
|
40
|
-
if ($[1] !==
|
|
41
|
-
t0 =
|
|
39
|
+
if ($[1] !== isIntersecting || $[2] !== locale || $[3] !== month) {
|
|
40
|
+
t0 = isIntersecting ? {} : {
|
|
42
41
|
height: getMonthHeight(month, locale)
|
|
43
42
|
};
|
|
44
|
-
$[1] =
|
|
45
|
-
$[2] =
|
|
46
|
-
$[3] =
|
|
43
|
+
$[1] = isIntersecting;
|
|
44
|
+
$[2] = locale;
|
|
45
|
+
$[3] = month;
|
|
47
46
|
$[4] = t0;
|
|
48
47
|
} else {
|
|
49
48
|
t0 = $[4];
|
|
50
49
|
}
|
|
51
50
|
let t1;
|
|
52
|
-
if ($[5] !==
|
|
53
|
-
t1 =
|
|
51
|
+
if ($[5] !== isIntersecting || $[6] !== locale || $[7] !== month || $[8] !== props) {
|
|
52
|
+
t1 = isIntersecting && /*#__PURE__*/jsxs(Fragment, {
|
|
54
53
|
children: [/*#__PURE__*/jsx("span", {
|
|
55
54
|
className: styles.monthTitle,
|
|
56
55
|
children: format(month, "LLLL", {
|
|
@@ -72,10 +71,10 @@ function Month(props) {
|
|
|
72
71
|
key: i_0
|
|
73
72
|
}))]
|
|
74
73
|
});
|
|
75
|
-
$[5] =
|
|
76
|
-
$[6] =
|
|
77
|
-
$[7] =
|
|
78
|
-
$[8] =
|
|
74
|
+
$[5] = isIntersecting;
|
|
75
|
+
$[6] = locale;
|
|
76
|
+
$[7] = month;
|
|
77
|
+
$[8] = props;
|
|
79
78
|
$[9] = t1;
|
|
80
79
|
} else {
|
|
81
80
|
t1 = $[9];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { addMonths } from 'date-fns/addMonths';
|
|
3
3
|
import { startOfMonth } from 'date-fns/startOfMonth';
|
|
4
4
|
import Month, { getMonthHeight } from './month.js';
|
|
@@ -6,7 +6,7 @@ import units from './consts.js';
|
|
|
6
6
|
import { ScrollArith } from './scroll-arith.js';
|
|
7
7
|
import { useScrollBehavior } from './use-scroll-behavior.js';
|
|
8
8
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
9
|
-
import {
|
|
9
|
+
import { useIntersectionObserverHandle, IntersectionObserverContext } from '../global/intersection-observer-context.js';
|
|
10
10
|
import { s as styles } from '../_helpers/date-picker.js';
|
|
11
11
|
import { createElement } from 'react';
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -26,8 +26,6 @@ import 'date-fns/startOfDay';
|
|
|
26
26
|
import 'date-fns/add';
|
|
27
27
|
import '../global/sniffer.js';
|
|
28
28
|
import 'sniffr';
|
|
29
|
-
import '../global/use-event-callback.js';
|
|
30
|
-
import 'util-deprecate';
|
|
31
29
|
|
|
32
30
|
function getMonthHeightWithMargin(date, locale) {
|
|
33
31
|
return units.unit * 2 + getMonthHeight(date, locale);
|
|
@@ -45,16 +43,16 @@ const scheduleScroll = scheduleRAF();
|
|
|
45
43
|
*
|
|
46
44
|
* To avoid an unpainted gap at the viewport boundary, the next month must be reported
|
|
47
45
|
* as visible slightly before it actually enters the viewport. We achieve this by
|
|
48
|
-
* extending the IntersectionObserver
|
|
46
|
+
* extending the IntersectionObserver rootMargin.
|
|
49
47
|
*/
|
|
50
|
-
const
|
|
48
|
+
const intersectionObserverRootMargin = units.cellSize * 2;
|
|
51
49
|
function Months(props) {
|
|
52
|
-
const $ = c(
|
|
53
|
-
if ($[0] !== "
|
|
54
|
-
for (let $i = 0; $i <
|
|
50
|
+
const $ = c(12);
|
|
51
|
+
if ($[0] !== "b514d0ab3a898922fd1a8992e74c2054d3bf131f57e16e7ad928f67f5c608db9") {
|
|
52
|
+
for (let $i = 0; $i < 12; $i += 1) {
|
|
55
53
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
56
54
|
}
|
|
57
|
-
$[0] = "
|
|
55
|
+
$[0] = "b514d0ab3a898922fd1a8992e74c2054d3bf131f57e16e7ad928f67f5c608db9";
|
|
58
56
|
}
|
|
59
57
|
const {
|
|
60
58
|
scrollDate,
|
|
@@ -65,46 +63,55 @@ function Months(props) {
|
|
|
65
63
|
containerRef,
|
|
66
64
|
items
|
|
67
65
|
} = useScrollBehavior(scrollDate, setScrollDate, locale, "monthsScroll", scrollArith, scheduleScroll);
|
|
68
|
-
const
|
|
69
|
-
let
|
|
70
|
-
if ($[1] !==
|
|
71
|
-
let
|
|
72
|
-
if ($[
|
|
73
|
-
|
|
66
|
+
const t0 = useIntersectionObserverHandle(containerRef, intersectionObserverRootMargin);
|
|
67
|
+
let t1;
|
|
68
|
+
if ($[1] !== items || $[2] !== props) {
|
|
69
|
+
let t2;
|
|
70
|
+
if ($[4] !== props) {
|
|
71
|
+
t2 = month => /*#__PURE__*/createElement(Month, {
|
|
74
72
|
...props,
|
|
75
73
|
month: month,
|
|
76
|
-
key: +month
|
|
77
|
-
intersectionObserverHandle: intersectionObserverHandle
|
|
74
|
+
key: +month
|
|
78
75
|
});
|
|
79
|
-
$[
|
|
80
|
-
$[
|
|
81
|
-
$[7] = t1;
|
|
76
|
+
$[4] = props;
|
|
77
|
+
$[5] = t2;
|
|
82
78
|
} else {
|
|
83
|
-
|
|
79
|
+
t2 = $[5];
|
|
84
80
|
}
|
|
85
|
-
|
|
86
|
-
$[1] =
|
|
87
|
-
$[2] =
|
|
88
|
-
$[3] =
|
|
89
|
-
$[4] = t0;
|
|
81
|
+
t1 = items.map(t2);
|
|
82
|
+
$[1] = items;
|
|
83
|
+
$[2] = props;
|
|
84
|
+
$[3] = t1;
|
|
90
85
|
} else {
|
|
91
|
-
|
|
86
|
+
t1 = $[3];
|
|
92
87
|
}
|
|
93
|
-
let
|
|
94
|
-
if ($[
|
|
95
|
-
|
|
88
|
+
let t2;
|
|
89
|
+
if ($[6] !== containerRef || $[7] !== t1) {
|
|
90
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
96
91
|
className: styles.months,
|
|
97
92
|
ref: containerRef,
|
|
98
93
|
"data-test": "ring-date-popup--months",
|
|
99
|
-
children:
|
|
94
|
+
children: t1
|
|
95
|
+
});
|
|
96
|
+
$[6] = containerRef;
|
|
97
|
+
$[7] = t1;
|
|
98
|
+
$[8] = t2;
|
|
99
|
+
} else {
|
|
100
|
+
t2 = $[8];
|
|
101
|
+
}
|
|
102
|
+
let t3;
|
|
103
|
+
if ($[9] !== t0 || $[10] !== t2) {
|
|
104
|
+
t3 = /*#__PURE__*/jsx(IntersectionObserverContext, {
|
|
105
|
+
value: t0,
|
|
106
|
+
children: t2
|
|
100
107
|
});
|
|
101
|
-
$[8] = containerRef;
|
|
102
108
|
$[9] = t0;
|
|
103
|
-
$[10] =
|
|
109
|
+
$[10] = t2;
|
|
110
|
+
$[11] = t3;
|
|
104
111
|
} else {
|
|
105
|
-
|
|
112
|
+
t3 = $[11];
|
|
106
113
|
}
|
|
107
|
-
return
|
|
114
|
+
return t3;
|
|
108
115
|
}
|
|
109
116
|
|
|
110
117
|
export { Months as default };
|