@jetbrains/ring-ui 8.0.0-beta.1 → 8.0.0-beta.10
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/babel.config.js +1 -9
- package/components/alert/alert-actions.d.ts +4 -0
- package/components/alert/alert-actions.js +5 -0
- package/components/alert/alert-heading.d.ts +4 -0
- package/components/alert/alert-heading.js +6 -0
- package/components/alert/alert.css +63 -22
- package/components/alert/alert.d.ts +14 -1
- package/components/alert/alert.js +34 -19
- package/components/alert/container.css +1 -2
- package/components/alert-service/alert-service.d.ts +2 -1
- package/components/alert-service/alert-service.js +8 -4
- package/components/auth/auth-core.d.ts +5 -9
- package/components/auth/auth-core.js +56 -15
- package/components/auth-dialog-service/auth-dialog-service.js +2 -2
- package/components/avatar/avatar-info.js +0 -2
- package/components/avatar/avatar-size.d.ts +0 -4
- package/components/avatar/avatar-size.js +0 -4
- package/components/avatar/avatar.js +0 -6
- package/components/avatar/fallback-avatar.js +0 -28
- package/components/avatar-stack/avatar-stack.js +1 -1
- package/components/banner/banner.css +3 -3
- package/components/button/button.css +4 -4
- package/components/button/button.d.ts +0 -4
- package/components/button/button.js +2 -7
- package/components/button-group/button-group.css +5 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/collapse/collapse-content.d.ts +7 -0
- package/components/collapse/collapse-content.js +44 -11
- package/components/collapse/collapse-context.d.ts +2 -0
- package/components/collapse/collapse-context.js +2 -0
- package/components/collapse/collapse-control.js +2 -2
- package/components/collapse/collapse.css +8 -2
- package/components/collapse/collapse.d.ts +9 -0
- package/components/collapse/collapse.js +12 -3
- package/components/{expand → collapsible-group}/collapsible-group.css +7 -1
- package/components/collapsible-group/collapsible-group.d.ts +33 -0
- package/components/{expand → collapsible-group}/collapsible-group.js +13 -21
- package/components/confirm-service/confirm-service.js +2 -2
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +1 -1
- package/components/date-picker/consts.d.ts +1 -0
- package/components/date-picker/date-input.js +6 -2
- package/components/date-picker/months.js +2 -2
- package/components/date-picker/use-scroll-behavior.js +5 -6
- package/components/date-picker/years.js +2 -2
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +2 -2
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +4 -4
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +18 -19
- package/components/global/compose-refs.d.ts +2 -1
- package/components/global/compose-refs.js +24 -8
- package/components/global/create-stateful-context.js +5 -5
- package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
- package/components/global/focus-with-temporary-tabindex.js +21 -0
- package/components/global/intersection-observer-context.d.ts +31 -11
- package/components/global/intersection-observer-context.js +47 -28
- package/components/global/is-within-interactive-element.d.ts +6 -0
- package/components/global/is-within-interactive-element.js +26 -0
- package/components/global/is-within-navigable-element.d.ts +6 -0
- package/components/global/is-within-navigable-element.js +27 -0
- package/components/global/parse-css-duration.d.ts +5 -0
- package/components/global/parse-css-duration.js +13 -0
- package/components/global/rerender-hoc.d.ts +4 -2
- package/components/global/rerender-hoc.js +4 -4
- package/components/global/schedule-with-cleanup.d.ts +12 -0
- package/components/global/schedule-with-cleanup.js +34 -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} +2 -2
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +8 -8
- package/components/global/variables.css +18 -28
- package/components/global/variables.interface.d.ts +0 -4
- package/components/global/variables_dark.css +18 -25
- package/components/header/header.css +3 -3
- package/components/http/http.d.ts +2 -2
- package/components/http/http.js +2 -2
- package/components/i18n/i18n-context.js +1 -1
- package/components/i18n/i18n.d.ts +1 -0
- package/components/i18n/messages.json +1 -0
- package/components/icon/icon.css +0 -27
- package/components/icon/icon.d.ts +0 -1
- package/components/icon/icon.js +2 -4
- package/components/input/input.d.ts +1 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +7 -2
- package/components/island/content.js +5 -5
- package/components/legacy-table/cell.js +1 -1
- package/components/legacy-table/header-cell.js +1 -1
- package/components/legacy-table/header.js +1 -1
- package/components/legacy-table/multitable.d.ts +1 -1
- package/components/legacy-table/row.d.ts +1 -1
- package/components/legacy-table/row.js +1 -1
- 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 +3 -3
- package/components/legacy-table/smart-table.d.ts +5 -5
- package/components/legacy-table/smart-table.js +3 -3
- package/components/legacy-table/table.js +1 -1
- package/components/list/consts.d.ts +0 -1
- package/components/list/consts.js +0 -1
- package/components/list/list.d.ts +0 -4
- package/components/login-dialog/service.js +2 -2
- package/components/popup/popup.d.ts +2 -0
- package/components/popup/popup.js +2 -2
- package/components/popup/popup.target.d.ts +3 -2
- package/components/popup/popup.target.js +4 -6
- 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 +3 -4
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +1 -1
- package/components/select/select-popup.d.ts +3 -2
- package/components/select/select-popup.js +3 -3
- package/components/select/select.d.ts +6 -2
- package/components/select/select.js +2 -4
- package/components/selection-toolbar/selection-toolbar.css +86 -0
- package/components/selection-toolbar/selection-toolbar.d.ts +11 -0
- package/components/selection-toolbar/selection-toolbar.js +23 -0
- package/components/slider/slider.js +4 -5
- package/components/tab-trap/tab-trap.d.ts +3 -3
- package/components/tab-trap/tab-trap.js +3 -5
- package/components/table/default-item-renderer.d.ts +41 -11
- package/components/table/default-item-renderer.js +60 -47
- package/components/table/internal/reorder-animation-context.d.ts +21 -0
- package/components/table/internal/reorder-animation-context.js +60 -0
- package/components/table/internal/reorder-handle.d.ts +9 -0
- package/components/table/internal/reorder-handle.js +334 -0
- package/components/table/internal/reorder-layout-context.d.ts +16 -0
- package/components/table/internal/reorder-layout-context.js +69 -0
- package/components/table/internal/table-header.d.ts +1 -0
- package/components/table/internal/table-header.js +143 -0
- package/components/table/internal/virtualization.d.ts +41 -0
- package/components/table/{table-virtualize.js → internal/virtualization.js} +82 -46
- package/components/table/item-virtualization.d.ts +37 -0
- package/components/table/item-virtualization.js +26 -0
- package/components/table/reorder-animation.d.ts +37 -0
- package/components/table/reorder-animation.js +11 -0
- package/components/table/reorder-item-layout.d.ts +32 -0
- package/components/table/reorder-item-layout.js +23 -0
- package/components/table/table-const.d.ts +8 -6
- package/components/table/table-const.js +7 -5
- package/components/table/table-primitives.d.ts +64 -0
- package/components/table/table-primitives.js +34 -0
- package/components/table/table-props.d.ts +304 -0
- package/components/table/table-props.js +1 -0
- package/components/table/table.css +179 -67
- package/components/table/table.d.ts +231 -224
- package/components/table/table.js +327 -2
- package/components/tag/tag.css +3 -3
- package/components/tags-input/tags-input.d.ts +3 -1
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +6 -5
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +3 -7
- package/components/user-agreement/service.js +2 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/components/util-stories.d.ts +26 -0
- package/components/util-stories.js +61 -0
- package/package.json +44 -47
- package/components/content-layout/content-layout.css +0 -109
- package/components/content-layout/content-layout.d.ts +0 -20
- package/components/content-layout/content-layout.js +0 -40
- package/components/content-layout/sidebar.d.ts +0 -26
- package/components/content-layout/sidebar.js +0 -71
- package/components/date-picker/use-intersection-observer.d.ts +0 -6
- package/components/date-picker/use-intersection-observer.js +0 -48
- package/components/expand/collapsible-group.d.ts +0 -16
- package/components/global/composeRefs.d.ts +0 -6
- package/components/global/composeRefs.js +0 -7
- package/components/global/use-event-callback.d.ts +0 -1
- package/components/global/use-event-callback.js +0 -15
- package/components/grid/col.d.ts +0 -16
- package/components/grid/col.js +0 -35
- package/components/grid/grid.css +0 -920
- package/components/grid/grid.d.ts +0 -13
- package/components/grid/grid.js +0 -19
- package/components/grid/row.d.ts +0 -21
- package/components/grid/row.js +0 -41
- package/components/old-browsers-message/__mocks__/old-browsers-message.js +0 -1
- package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
- package/components/old-browsers-message/old-browsers-message-stop.js +0 -2
- package/components/old-browsers-message/old-browsers-message.css +0 -26
- package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
- package/components/old-browsers-message/old-browsers-message.js +0 -86
- package/components/old-browsers-message/white-list.d.ts +0 -2
- package/components/old-browsers-message/white-list.js +0 -24
- package/components/table/table-base.d.ts +0 -24
- package/components/table/table-base.js +0 -79
- package/components/table/table-component.d.ts +0 -53
- package/components/table/table-component.js +0 -101
- package/components/table/table-virtualize.d.ts +0 -32
- /package/components/legacy-table/{table.css → legacy-table.css} +0 -0
|
@@ -17,11 +17,11 @@ export default function adaptiveIslandHOC(ComposedComponent) {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
render() {
|
|
20
|
-
return (<PhaseContext
|
|
21
|
-
<ScrollHandlerContext
|
|
20
|
+
return (<PhaseContext value={this.state.phase}>
|
|
21
|
+
<ScrollHandlerContext value={this.onContentScroll}>
|
|
22
22
|
<ComposedComponent {...this.props}/>
|
|
23
|
-
</ScrollHandlerContext
|
|
24
|
-
</PhaseContext
|
|
23
|
+
</ScrollHandlerContext>
|
|
24
|
+
</PhaseContext>);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { Component, type HTMLAttributes } from 'react';
|
|
1
|
+
import { Component, type Ref, type HTMLAttributes } from 'react';
|
|
2
2
|
import createResizeDetector from 'element-resize-detector';
|
|
3
3
|
export interface IslandContentProps extends Omit<HTMLAttributes<HTMLElement>, 'onScroll'> {
|
|
4
|
+
ref?: Ref<Content>;
|
|
4
5
|
fade?: boolean | null | undefined;
|
|
5
6
|
onScrollToBottom?: (() => void) | null | undefined;
|
|
6
7
|
scrollableWrapperClassName?: string | null | undefined;
|
|
7
8
|
}
|
|
8
9
|
export interface IslandContentInnerProps extends IslandContentProps {
|
|
10
|
+
ref?: Ref<Content>;
|
|
9
11
|
onScroll: (node: HTMLElement) => void;
|
|
10
12
|
bottomBorder: boolean;
|
|
11
13
|
}
|
|
@@ -29,5 +31,8 @@ declare class Content extends Component<IslandContentInnerProps> {
|
|
|
29
31
|
setScrollableNodeAndCalculatePosition: (node: HTMLElement | null) => void;
|
|
30
32
|
render(): import("react").JSX.Element;
|
|
31
33
|
}
|
|
32
|
-
declare const ContentWrapper:
|
|
34
|
+
declare const ContentWrapper: {
|
|
35
|
+
({ ...props }: IslandContentProps): import("react").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
33
38
|
export default ContentWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import createResizeDetector from 'element-resize-detector';
|
|
4
4
|
import scheduleRAF from '../global/schedule-raf';
|
|
@@ -57,7 +57,7 @@ class Content extends Component {
|
|
|
57
57
|
this.calculateScrollPosition();
|
|
58
58
|
};
|
|
59
59
|
render() {
|
|
60
|
-
const { children, className, bottomBorder, scrollableWrapperClassName, onScroll, onScrollToBottom, fade, tabIndex, ...restProps } = this.props;
|
|
60
|
+
const { ref, children, className, bottomBorder, scrollableWrapperClassName, onScroll, onScrollToBottom, fade, tabIndex, ...restProps } = this.props;
|
|
61
61
|
const { scrolledToTop, scrolledToBottom } = this.state;
|
|
62
62
|
const classes = classNames(styles.content, className, {
|
|
63
63
|
[styles.contentWithTopFade]: fade && !scrolledToTop,
|
|
@@ -75,11 +75,11 @@ class Content extends Component {
|
|
|
75
75
|
</div>);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
const ContentWrapper =
|
|
78
|
+
const ContentWrapper = ({ ...props }) => (<ScrollHandlerContext.Consumer>
|
|
79
79
|
{onScroll => {
|
|
80
80
|
const addProps = onScroll ? { onScroll, bottomBorder: true } : {};
|
|
81
|
-
return <Content {...props} {...addProps}
|
|
81
|
+
return <Content {...props} {...addProps}/>;
|
|
82
82
|
}}
|
|
83
|
-
</ScrollHandlerContext.Consumer>)
|
|
83
|
+
</ScrollHandlerContext.Consumer>);
|
|
84
84
|
ContentWrapper.displayName = 'ContentWrapper';
|
|
85
85
|
export default ContentWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import dataTests from '../global/data-tests';
|
|
4
|
-
import style from './table.css';
|
|
4
|
+
import style from './legacy-table.css';
|
|
5
5
|
export default class Cell extends PureComponent {
|
|
6
6
|
render() {
|
|
7
7
|
const classes = classNames(style.cell, this.props.className);
|
|
@@ -4,7 +4,7 @@ import sortableIcon from '@jetbrains/icons/unsorted-12px';
|
|
|
4
4
|
import sortedIcon from '@jetbrains/icons/chevron-12px-down';
|
|
5
5
|
import Icon from '../icon/icon';
|
|
6
6
|
import dataTests from '../global/data-tests';
|
|
7
|
-
import style from './table.css';
|
|
7
|
+
import style from './legacy-table.css';
|
|
8
8
|
export default class HeaderCell extends PureComponent {
|
|
9
9
|
static defaultProps = {
|
|
10
10
|
onSort: () => { },
|
|
@@ -3,7 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import Checkbox from '../checkbox/checkbox';
|
|
4
4
|
import getUID from '../global/get-uid';
|
|
5
5
|
import HeaderCell from './header-cell';
|
|
6
|
-
import style from './table.css';
|
|
6
|
+
import style from './legacy-table.css';
|
|
7
7
|
export default class Header extends PureComponent {
|
|
8
8
|
static defaultProps = {
|
|
9
9
|
selectable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent, type ReactElement } from 'react';
|
|
2
2
|
import { type TableAttrs } from './table';
|
|
3
|
-
import { type SelectionItem } from '
|
|
3
|
+
import { type SelectionItem } from '../global/table-selection';
|
|
4
4
|
type TableComponent = ReactElement<TableAttrs<SelectionItem>>;
|
|
5
5
|
export interface MultiTableProps {
|
|
6
6
|
children: TableComponent[];
|
|
@@ -55,7 +55,7 @@ export default class Row<T extends object> extends PureComponent<RowProps<T>> {
|
|
|
55
55
|
onDoubleClick: () => void;
|
|
56
56
|
row?: HTMLElement | null;
|
|
57
57
|
rowRef: (el: HTMLElement | null) => void;
|
|
58
|
-
composedRowRef: import("memoize-one").MemoizedFn<(...refs: (React.Ref<HTMLElement> | undefined)[]) => (value: T_1 | null) => void>;
|
|
58
|
+
composedRowRef: import("memoize-one").MemoizedFn<(...refs: (React.Ref<HTMLElement> | undefined)[]) => (value: T_1 | null) => () => void>;
|
|
59
59
|
render(): React.JSX.Element;
|
|
60
60
|
}
|
|
61
61
|
export type RowAttrs<T extends object> = React.JSX.LibraryManagedAttributes<typeof Row, RowProps<T>>;
|
|
@@ -11,7 +11,7 @@ import dataTests from '../global/data-tests';
|
|
|
11
11
|
import getUID from '../global/get-uid';
|
|
12
12
|
import { createComposedRef } from '../global/compose-refs';
|
|
13
13
|
import Cell from './cell';
|
|
14
|
-
import style from './table.css';
|
|
14
|
+
import style from './legacy-table.css';
|
|
15
15
|
const DragHandle = ({ alwaysShowDragHandle, dragHandleTitle = 'Drag to reorder' }) => {
|
|
16
16
|
const classes = classNames(style.dragHandle, {
|
|
17
17
|
[style.visibleDragHandle]: alwaysShowDragHandle,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { SelectionItem } from '
|
|
3
|
-
export default function selectionAdapter(getSelection: () =>
|
|
1
|
+
import type TableSelection from '../global/table-selection';
|
|
2
|
+
import type { SelectionItem } from '../global/table-selection';
|
|
3
|
+
export default function selectionAdapter(getSelection: () => TableSelection<SelectionItem>): {
|
|
4
4
|
readonly size: number;
|
|
5
5
|
readonly items: SelectionItem[];
|
|
6
6
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { type ComponentClass } from 'react';
|
|
2
2
|
import { type ShortcutsMap } from '../shortcuts/core';
|
|
3
|
-
import type
|
|
3
|
+
import type TableSelection from '../global/table-selection';
|
|
4
4
|
export interface SelectionShortcutsOuterProps<T extends object> {
|
|
5
|
-
selection:
|
|
5
|
+
selection: TableSelection<T>;
|
|
6
6
|
selectable?: boolean | undefined;
|
|
7
|
-
onSelect?: ((selection:
|
|
7
|
+
onSelect?: ((selection: TableSelection<T>) => void) | undefined;
|
|
8
8
|
shortcuts?: ShortcutsMap | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface SelectionShortcutsAddProps<T extends object> {
|
|
11
|
-
selection:
|
|
11
|
+
selection: TableSelection<T>;
|
|
12
12
|
selectable: boolean;
|
|
13
|
-
onSelect: (selection:
|
|
13
|
+
onSelect: (selection: TableSelection<T>) => void;
|
|
14
14
|
shortcutsMap: ShortcutsMap;
|
|
15
15
|
}
|
|
16
16
|
export type SelectionShortcutsProps<T extends object, P> = Omit<P, keyof SelectionShortcutsAddProps<T>> & SelectionShortcutsOuterProps<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type TableAttrs } from './table';
|
|
3
|
-
import
|
|
3
|
+
import TableSelection, { type SelectionItem } from '../global/table-selection';
|
|
4
4
|
export interface SimpleTableProps<T extends SelectionItem> extends Omit<TableAttrs<T>, 'selection' | 'onSelect' | 'selectable'> {
|
|
5
5
|
}
|
|
6
6
|
declare class SimpleTable<T extends SelectionItem> extends PureComponent<SimpleTableProps<T>> {
|
|
@@ -9,7 +9,7 @@ declare class SimpleTable<T extends SelectionItem> extends PureComponent<SimpleT
|
|
|
9
9
|
wideFirstColumn: boolean;
|
|
10
10
|
};
|
|
11
11
|
state: {
|
|
12
|
-
selection:
|
|
12
|
+
selection: TableSelection<T>;
|
|
13
13
|
};
|
|
14
14
|
classes: string;
|
|
15
15
|
render(): import("react").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import Table from './table';
|
|
4
|
-
import
|
|
5
|
-
import style from './table.css';
|
|
4
|
+
import TableSelection from '../global/table-selection';
|
|
5
|
+
import style from './legacy-table.css';
|
|
6
6
|
class SimpleTable extends PureComponent {
|
|
7
7
|
static defaultProps = {
|
|
8
8
|
selectable: false,
|
|
9
9
|
wideFirstColumn: false,
|
|
10
10
|
};
|
|
11
11
|
state = {
|
|
12
|
-
selection: new
|
|
12
|
+
selection: new TableSelection({
|
|
13
13
|
data: this.props.data,
|
|
14
14
|
}),
|
|
15
15
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type TableAttrs } from './table';
|
|
3
|
-
import
|
|
3
|
+
import TableSelection, { type SelectionItem } from '../global/table-selection';
|
|
4
4
|
export interface SmartTableProps<T extends SelectionItem> extends Omit<TableAttrs<T>, 'selection' | 'onSelect'> {
|
|
5
|
-
onSelectionChange: (selection:
|
|
6
|
-
selection?:
|
|
5
|
+
onSelectionChange: (selection: TableSelection<T>) => void;
|
|
6
|
+
selection?: TableSelection<T>;
|
|
7
7
|
}
|
|
8
8
|
declare class SmartTable<T extends SelectionItem> extends PureComponent<SmartTableProps<T>> {
|
|
9
9
|
static defaultProps: {
|
|
10
10
|
onSelectionChange: () => void;
|
|
11
11
|
};
|
|
12
12
|
state: {
|
|
13
|
-
selection:
|
|
13
|
+
selection: TableSelection<T>;
|
|
14
14
|
};
|
|
15
15
|
UNSAFE_componentWillReceiveProps(nextProps: SmartTableProps<T>): void;
|
|
16
|
-
onSelect: (selection:
|
|
16
|
+
onSelect: (selection: TableSelection<T>) => void;
|
|
17
17
|
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export default SmartTable;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import Table from './table';
|
|
3
|
-
import
|
|
3
|
+
import TableSelection from '../global/table-selection';
|
|
4
4
|
class SmartTable extends PureComponent {
|
|
5
5
|
static defaultProps = {
|
|
6
6
|
onSelectionChange: () => { },
|
|
7
7
|
};
|
|
8
8
|
state = {
|
|
9
|
-
selection: new
|
|
9
|
+
selection: new TableSelection({
|
|
10
10
|
data: this.props.data,
|
|
11
11
|
isItemSelectable: this.props.isItemSelectable,
|
|
12
12
|
}),
|
|
@@ -18,7 +18,7 @@ class SmartTable extends PureComponent {
|
|
|
18
18
|
}
|
|
19
19
|
else if (this.props.data !== data || this.props.isItemSelectable !== isItemSelectable) {
|
|
20
20
|
this.setState({
|
|
21
|
-
selection: new
|
|
21
|
+
selection: new TableSelection({ data, isItemSelectable }),
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -13,7 +13,7 @@ import Header from './header';
|
|
|
13
13
|
import selectionShortcutsHOC from './selection-shortcuts-hoc';
|
|
14
14
|
import disableHoverHOC from './disable-hover-hoc';
|
|
15
15
|
import Row from './row-with-focus-sensor';
|
|
16
|
-
import style from './table.css';
|
|
16
|
+
import style from './legacy-table.css';
|
|
17
17
|
/**
|
|
18
18
|
* Interactive table with selection and keyboard navigation support.
|
|
19
19
|
*/
|
|
@@ -6,7 +6,6 @@ export var Type;
|
|
|
6
6
|
Type[Type["SEPARATOR"] = 0] = "SEPARATOR";
|
|
7
7
|
Type[Type["LINK"] = 1] = "LINK";
|
|
8
8
|
Type[Type["ITEM"] = 2] = "ITEM";
|
|
9
|
-
Type[Type["HINT"] = 3] = "HINT";
|
|
10
9
|
Type[Type["CUSTOM"] = 4] = "CUSTOM";
|
|
11
10
|
Type[Type["TITLE"] = 5] = "TITLE";
|
|
12
11
|
Type[Type["MARGIN"] = 6] = "MARGIN";
|
|
@@ -43,10 +43,6 @@ export interface ListProps<T = unknown> {
|
|
|
43
43
|
maxHeight?: number | null | undefined;
|
|
44
44
|
activeIndex?: number | null | undefined;
|
|
45
45
|
useMouseUp?: boolean | null | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated No longer used. Visibility is detected automatically via IntersectionObserver. Will be removed in Ring UI 8.0.
|
|
48
|
-
*/
|
|
49
|
-
visible?: boolean | null | undefined;
|
|
50
46
|
disableMoveOverflow?: boolean | null | undefined;
|
|
51
47
|
compact?: boolean | null | undefined;
|
|
52
48
|
disableScrollToActive?: boolean | null | undefined;
|
|
@@ -7,9 +7,9 @@ const reactRoot = createRoot(containerElement);
|
|
|
7
7
|
* Renders LoginDialog into virtual node to skip maintaining container
|
|
8
8
|
*/
|
|
9
9
|
function renderLoginDialog(props) {
|
|
10
|
-
reactRoot.render(<ControlsHeightContext
|
|
10
|
+
reactRoot.render(<ControlsHeightContext value={getGlobalControlsHeight()}>
|
|
11
11
|
<LoginDialog {...props}/>
|
|
12
|
-
</ControlsHeightContext
|
|
12
|
+
</ControlsHeightContext>);
|
|
13
13
|
}
|
|
14
14
|
function noop() { }
|
|
15
15
|
export default function showAuthDialog(props = { onCancel: noop }) {
|
|
@@ -45,6 +45,8 @@ export interface BasePopupProps {
|
|
|
45
45
|
onMouseUp?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
46
46
|
onMouseOver?: ((e: React.SyntheticEvent<HTMLElement>) => void) | undefined;
|
|
47
47
|
onMouseOut?: ((e: React.SyntheticEvent<HTMLElement>) => void) | undefined;
|
|
48
|
+
onMouseEnter?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
49
|
+
onMouseLeave?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
48
50
|
onContextMenu?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
49
51
|
onDirectionChange?: ((direction: Directions) => void) | null | undefined;
|
|
50
52
|
onShow?: (() => void) | null | undefined;
|
|
@@ -282,7 +282,7 @@ export default class Popup extends PureComponent {
|
|
|
282
282
|
esc: this._onEscPress,
|
|
283
283
|
};
|
|
284
284
|
render() {
|
|
285
|
-
const { className, style, hidden, attached, keepMounted, client, onMouseDown, onMouseUp, onMouseOver, onMouseOut, onContextMenu, 'data-test': dataTest, largeBorderRadius, } = this.props;
|
|
285
|
+
const { className, style, hidden, attached, keepMounted, client, onMouseDown, onMouseUp, onMouseOver, onMouseOut, onMouseEnter, onMouseLeave, onContextMenu, 'data-test': dataTest, largeBorderRadius, } = this.props;
|
|
286
286
|
const showing = this.state.display === Display.SHOWING;
|
|
287
287
|
const direction = (this.state.direction || '').toLowerCase().replace(/[_]/g, '-');
|
|
288
288
|
return (<ThemeContext.Consumer>
|
|
@@ -305,7 +305,7 @@ export default class Popup extends PureComponent {
|
|
|
305
305
|
|
|
306
306
|
{client !== false &&
|
|
307
307
|
(keepMounted || !hidden) &&
|
|
308
|
-
createPortal(<PopupTarget id={this.uid} ref={this.containerRef} onMouseOver={onMouseOver} onFocus={onMouseOver} onMouseOut={onMouseOut} onBlur={onMouseOut} onContextMenu={onContextMenu}>
|
|
308
|
+
createPortal(<PopupTarget id={this.uid} ref={this.containerRef} onMouseOver={onMouseOver} onFocus={onMouseOver} onMouseOut={onMouseOut} onBlur={onMouseOut} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave} onContextMenu={onContextMenu}>
|
|
309
309
|
<div data-test={dataTests('ring-popup', dataTest)} data-test-shown={!hidden && !showing} data-test-direction={direction} ref={this.popupRef} className={classes} style={style} onMouseDown={onMouseDown} onMouseUp={onMouseUp}
|
|
310
310
|
// mouse handlers are used to track clicking on inner elements
|
|
311
311
|
role='presentation'>
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type Ref, type ReactNode } from 'react';
|
|
2
2
|
interface ComplexConfig {
|
|
3
3
|
target: string | Element | undefined;
|
|
4
4
|
cssPositioning?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const PopupTargetContext: import("react").Context<string | Element | ComplexConfig | undefined>;
|
|
7
7
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
8
|
+
ref?: Ref<HTMLDivElement>;
|
|
8
9
|
id: string;
|
|
9
10
|
children: ReactNode | ((target: ReactNode) => ReactNode);
|
|
10
11
|
}
|
|
11
12
|
export declare function normalizePopupTarget(value: string | Element | undefined | ComplexConfig): string | Element | undefined;
|
|
12
|
-
export declare
|
|
13
|
+
export declare function PopupTarget({ ref, id, children, ...restProps }: PopupTargetProps): import("react").JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { createContext
|
|
1
|
+
import { createContext } from 'react';
|
|
2
2
|
export const PopupTargetContext = createContext(undefined);
|
|
3
3
|
export function normalizePopupTarget(value) {
|
|
4
4
|
return typeof value === 'string' || value instanceof Element ? value : value?.target;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export function PopupTarget({ ref, id, children, ...restProps }) {
|
|
7
7
|
const target = (<div {...restProps} data-portaltarget={id} ref={ref}>
|
|
8
8
|
{typeof children !== 'function' && children}
|
|
9
9
|
</div>);
|
|
10
|
-
return (<PopupTargetContext
|
|
11
|
-
|
|
12
|
-
</PopupTargetContext.Provider>);
|
|
13
|
-
});
|
|
10
|
+
return (<PopupTargetContext value={id}>{typeof children === 'function' ? children(target) : target}</PopupTargetContext>);
|
|
11
|
+
}
|
|
@@ -285,5 +285,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
285
285
|
render(): React.JSX.Element;
|
|
286
286
|
}
|
|
287
287
|
export type QueryAssistAttrs = React.JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;
|
|
288
|
-
export declare const RerenderableQueryAssist:
|
|
288
|
+
export declare const RerenderableQueryAssist: ({ ref, ...props }: QueryAssistProps & {
|
|
289
|
+
ref?: React.Ref<QueryAssist> | undefined;
|
|
290
|
+
}) => React.JSX.Element;
|
|
289
291
|
export {};
|
|
@@ -733,7 +733,7 @@ export default class QueryAssist extends Component {
|
|
|
733
733
|
[styles.hugePlaceholder]: huge,
|
|
734
734
|
[styles.withoutGlass]: !glass || (!renderLoader && huge),
|
|
735
735
|
});
|
|
736
|
-
return (<ControlsHeightContext
|
|
736
|
+
return (<ControlsHeightContext value={ControlsHeight.M}>
|
|
737
737
|
<I18nContext.Consumer>
|
|
738
738
|
{({ translate }) => (<div data-test={dataTests('ring-query-assist', dataTest)} className={containerClasses} role='presentation' ref={this.nodeRef}>
|
|
739
739
|
{this.state.shortcuts && <Shortcuts map={this.shortcutsMap} scope={this.shortcutsScope}/>}
|
|
@@ -768,7 +768,7 @@ export default class QueryAssist extends Component {
|
|
|
768
768
|
</div>)}
|
|
769
769
|
</div>)}
|
|
770
770
|
</I18nContext.Consumer>
|
|
771
|
-
</ControlsHeightContext
|
|
771
|
+
</ControlsHeightContext>);
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
export const RerenderableQueryAssist = rerenderHOC(QueryAssist);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type InputHTMLAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { Component, type Ref, type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
3
|
value?: string | undefined;
|
|
4
4
|
onChange?: ((value: string) => void) | null | undefined;
|
|
@@ -17,7 +17,7 @@ export declare class RadioItemInner extends Component<RadioItemInnerProps> {
|
|
|
17
17
|
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export interface RadioItemProps extends RadioItemInnerProps {
|
|
20
|
+
ref?: Ref<RadioItemInner>;
|
|
20
21
|
value: string;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
export default RadioItem;
|
|
23
|
+
export default function RadioItem({ ref, ...props }: RadioItemProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, createContext
|
|
1
|
+
import { Component, createContext } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import getUID from '../global/get-uid';
|
|
4
4
|
import ControlHelp from '../control-help/control-help';
|
|
@@ -28,9 +28,8 @@ export class RadioItemInner extends Component {
|
|
|
28
28
|
</label>);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
export default function RadioItem({ ref, ...props }) {
|
|
32
32
|
return (<RadioContext.Consumer>
|
|
33
33
|
{({ value, onChange, ...restContext }) => (<RadioItemInner ref={ref} {...restContext} checked={value !== undefined ? value === props.value : undefined} onChange={onChange ? () => onChange(props.value) : undefined} {...props}/>)}
|
|
34
34
|
</RadioContext.Consumer>);
|
|
35
|
-
}
|
|
36
|
-
export default RadioItem;
|
|
35
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { type RadioProps } from './radio-item';
|
|
2
|
+
import RadioItem, { type RadioProps } from './radio-item';
|
|
3
3
|
/**
|
|
4
4
|
* @name Radio
|
|
5
5
|
*/
|
|
6
6
|
export default class Radio extends Component<RadioProps> {
|
|
7
|
-
static Item:
|
|
7
|
+
static Item: typeof RadioItem;
|
|
8
8
|
uid: string;
|
|
9
9
|
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -8,6 +8,6 @@ export default class Radio extends Component {
|
|
|
8
8
|
static Item = RadioItem;
|
|
9
9
|
uid = getUID('ring-radio-');
|
|
10
10
|
render() {
|
|
11
|
-
return <RadioContext
|
|
11
|
+
return <RadioContext value={{ name: this.uid, ...this.props }}>{this.props.children}</RadioContext>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { type ComponentType, type CSSProperties, PureComponent, type ReactNode, type Ref, type SyntheticEvent } from 'react';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { type IconType } from '../icon/icon';
|
|
7
|
-
import Popup from '../popup/popup';
|
|
7
|
+
import Popup, { type PopupAttrs } from '../popup/popup';
|
|
8
8
|
import { type Directions } from '../popup/position';
|
|
9
9
|
import List, { type SelectHandlerParams } from '../list/list';
|
|
10
10
|
import Caret from '../caret/caret';
|
|
@@ -60,6 +60,7 @@ export interface SelectPopupProps<T = unknown> {
|
|
|
60
60
|
ringPopupTarget: string | null;
|
|
61
61
|
onSelectAll: (isSelectAll: boolean) => void;
|
|
62
62
|
onEmptyPopupEnter: (e: KeyboardEvent) => void;
|
|
63
|
+
popupProps?: Partial<PopupAttrs> | undefined;
|
|
63
64
|
className?: string | null | undefined;
|
|
64
65
|
compact?: boolean | null | undefined;
|
|
65
66
|
dir?: 'ltr' | 'rtl' | undefined;
|
|
@@ -127,7 +128,7 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
|
127
128
|
list?: List<T> | null;
|
|
128
129
|
listRef: (el: List<T> | null) => void;
|
|
129
130
|
filterRef: (el: HTMLInputElement | null) => void;
|
|
130
|
-
composedFilterRef: import("memoize-one").MemoizedFn<(...refs: (Ref<HTMLInputElement> | undefined)[]) => (value: T_1 | null) => void>;
|
|
131
|
+
composedFilterRef: import("memoize-one").MemoizedFn<(...refs: (Ref<HTMLInputElement> | undefined)[]) => (value: T_1 | null) => () => void>;
|
|
131
132
|
shortcutsScope: string;
|
|
132
133
|
shortcutsMap: {
|
|
133
134
|
tab: (event: Event) => void;
|
|
@@ -323,8 +323,8 @@ export default class SelectPopup extends PureComponent {
|
|
|
323
323
|
right: event => this.handleNavigation(event),
|
|
324
324
|
};
|
|
325
325
|
render() {
|
|
326
|
-
const { toolbar, topbar, className, multiple, hidden, isInputMode, anchorElement, minWidth, onCloseAttempt, onOutsideClick, directions, top, left, offset, style, dir, filter, } = this.props;
|
|
327
|
-
const classes = classNames(styles.popup, className);
|
|
326
|
+
const { toolbar, topbar, className, multiple, hidden, isInputMode, anchorElement, minWidth, onCloseAttempt, onOutsideClick, directions, top, left, offset, style, dir, filter, popupProps, } = this.props;
|
|
327
|
+
const classes = classNames(styles.popup, className, popupProps?.className);
|
|
328
328
|
return (<PopupTargetContext.Consumer>
|
|
329
329
|
{ringPopupTarget => {
|
|
330
330
|
const filterWithTags = this.getFilterWithTags();
|
|
@@ -332,7 +332,7 @@ export default class SelectPopup extends PureComponent {
|
|
|
332
332
|
const list = this.getList(this.props.ringPopupTarget || normalizePopupTarget(ringPopupTarget));
|
|
333
333
|
const bottomLine = this.getBottomLine();
|
|
334
334
|
const hasContent = filterWithTags || selectAll || list || bottomLine || toolbar || topbar;
|
|
335
|
-
return (<Popup trapFocus={false} ref={this.popupRef} hidden={hidden || !hasContent} attached={isInputMode} className={classes} dontCloseOnAnchorClick anchorElement={anchorElement} minWidth={minWidth} onCloseAttempt={onCloseAttempt} onOutsideClick={onOutsideClick} directions={directions} top={top} left={left} offset={offset} onMouseDown={this.mouseDownHandler} target={this.props.ringPopupTarget} autoCorrectTopOverflow={false} style={style} largeBorderRadius>
|
|
335
|
+
return (<Popup {...popupProps} trapFocus={false} ref={this.popupRef} hidden={hidden || !hasContent} attached={isInputMode} className={classes} dontCloseOnAnchorClick anchorElement={anchorElement} minWidth={minWidth} onCloseAttempt={onCloseAttempt} onOutsideClick={onOutsideClick} directions={directions} top={top} left={left} offset={offset} onMouseDown={this.mouseDownHandler} target={this.props.ringPopupTarget} autoCorrectTopOverflow={false} style={{ ...popupProps?.style, ...style }} largeBorderRadius>
|
|
336
336
|
<div dir={dir}>
|
|
337
337
|
{!hidden && filter && <Shortcuts map={this.shortcutsMap} scope={this.shortcutsScope}/>}
|
|
338
338
|
{topbar}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes, Component, type ComponentType, type CSSProperties, type HTMLAttributes, type ReactNode, type Ref, type RefCallback, type SyntheticEvent } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { type PopupAttrs } from '../popup/popup';
|
|
3
4
|
import { type SelectHandlerParams } from '../list/list';
|
|
4
5
|
import { Size } from '../input/input';
|
|
5
6
|
import { type LabelType } from '../control-label/control-label';
|
|
@@ -99,6 +100,7 @@ export interface BaseSelectProps<T = unknown> {
|
|
|
99
100
|
getInitial?: (() => string) | null | undefined;
|
|
100
101
|
minWidth?: number | undefined;
|
|
101
102
|
popupClassName?: string | null | undefined;
|
|
103
|
+
popupProps?: Partial<PopupAttrs> | undefined;
|
|
102
104
|
popupStyle?: CSSProperties | undefined;
|
|
103
105
|
top?: number | undefined;
|
|
104
106
|
left?: number | undefined;
|
|
@@ -264,7 +266,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
264
266
|
private _getAvatar;
|
|
265
267
|
filter?: HTMLInputElement | null;
|
|
266
268
|
filterRef: (el: HTMLInputElement | null) => void;
|
|
267
|
-
composedFilterRef: import("memoize-one").MemoizedFn<(...refs: (Ref<HTMLInputElement> | undefined)[]) => (value: T_1 | null) => void>;
|
|
269
|
+
composedFilterRef: import("memoize-one").MemoizedFn<(...refs: (Ref<HTMLInputElement> | undefined)[]) => (value: T_1 | null) => () => void>;
|
|
268
270
|
getShortcutsMap(): {
|
|
269
271
|
enter: () => true | undefined;
|
|
270
272
|
esc: (event: KeyboardEvent) => boolean | undefined;
|
|
@@ -282,5 +284,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
282
284
|
export type SingleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, SingleSelectProps<T>>;
|
|
283
285
|
export type MultipleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, MultipleSelectProps<T>>;
|
|
284
286
|
export type SelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, SelectProps<T>>;
|
|
285
|
-
export declare const RerenderableSelect:
|
|
287
|
+
export declare const RerenderableSelect: ({ ref, ...props }: Omit<any, "ref"> & {
|
|
288
|
+
ref?: Ref<any> | undefined;
|
|
289
|
+
}) => React.JSX.Element;
|
|
286
290
|
export {};
|
|
@@ -47,9 +47,7 @@ const getStyle = memoize((iconsLength) => ({
|
|
|
47
47
|
}));
|
|
48
48
|
const isInputMode = (type) => type === Type.INPUT || type === Type.INPUT_WITHOUT_CONTROLS;
|
|
49
49
|
function getLowerCaseLabel(item) {
|
|
50
|
-
if (List.isItemType(List.ListProps.Type.SEPARATOR, item) ||
|
|
51
|
-
List.isItemType(List.ListProps.Type.HINT, item) ||
|
|
52
|
-
typeof item.label !== 'string') {
|
|
50
|
+
if (List.isItemType(List.ListProps.Type.SEPARATOR, item) || typeof item.label !== 'string') {
|
|
53
51
|
return null;
|
|
54
52
|
}
|
|
55
53
|
return item.label.toLowerCase();
|
|
@@ -456,7 +454,7 @@ export default class Select extends Component {
|
|
|
456
454
|
else if (!shownData.length) {
|
|
457
455
|
message = this.props.notFoundMessage ?? translate('noOptionsFound');
|
|
458
456
|
}
|
|
459
|
-
return (<SelectPopup data={_shownData} message={message} toolbar={showPopup && this.getToolbar()} topbar={this.getTopbar()} loading={this.props.loading} activeIndex={activeIndex} hidden={!showPopup} ref={this.popupRef} maxHeight={this.props.maxHeight} minWidth={this.props.minWidth} directions={this.props.directions} className={this.props.popupClassName} style={this.props.popupStyle} top={this.props.top} left={this.props.left} offset={this.props.offset} filter={this.isInputMode() ? false : this.props.filter} // disable popup filter in INPUT mode
|
|
457
|
+
return (<SelectPopup data={_shownData} message={message} toolbar={showPopup && this.getToolbar()} topbar={this.getTopbar()} loading={this.props.loading} activeIndex={activeIndex} hidden={!showPopup} ref={this.popupRef} maxHeight={this.props.maxHeight} minWidth={this.props.minWidth} directions={this.props.directions} popupProps={this.props.popupProps} className={this.props.popupClassName} style={this.props.popupStyle} top={this.props.top} left={this.props.left} offset={this.props.offset} filter={this.isInputMode() ? false : this.props.filter} // disable popup filter in INPUT mode
|
|
460
458
|
filterIcon={this.props.filterIcon} filterRef={this.props.filterRef} multiple={this.props.multiple} filterValue={this.state.filterValue} anchorElement={anchorElement} onCloseAttempt={this._onCloseAttempt} onOutsideClick={this.props.onOutsideClick} onSelect={this._listSelectHandler} onSelectAll={this._listSelectAllHandler} onFilter={this._filterChangeHandler} onClear={this.clearFilter} onLoadMore={this.props.onLoadMore} isInputMode={this.isInputMode()} selected={this.state.selected} tags={this.props.tags} compact={this.props.compact} renderOptimization={this.props.renderOptimization} ringPopupTarget={this.props.ringPopupTarget} disableMoveOverflow={this.props.disableMoveOverflow} disableScrollToActive={this.props.disableScrollToActive} dir={this.props.dir} onEmptyPopupEnter={this.onEmptyPopupEnter} listId={this.listId} preventListOverscroll={this.props.preventListOverscroll}/>);
|
|
461
459
|
}}
|
|
462
460
|
</I18nContext.Consumer>);
|