@jetbrains/ring-ui 5.0.127 → 5.0.129
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/alert/alert.js +2 -1
- package/components/alert/container.js +2 -1
- package/components/auth/auth__core.js +2 -1
- package/components/auth/request-builder.js +2 -1
- package/components/auth/response-parser.js +2 -1
- package/components/auth/token-validator.js +2 -1
- package/components/auth-dialog/auth-dialog.js +2 -1
- package/components/avatar/avatar.js +2 -1
- package/components/badge/badge.js +2 -1
- package/components/button/button.js +2 -1
- package/components/button-group/button-group.js +2 -1
- package/components/button-group/caption.js +2 -1
- package/components/button-set/button-set.js +2 -1
- package/components/button-toolbar/button-toolbar.js +2 -1
- package/components/caret/caret.js +2 -1
- package/components/checkbox/checkbox.js +2 -1
- package/components/code/code.js +2 -1
- package/components/confirm/confirm.js +2 -1
- package/components/content-layout/content-layout.js +2 -1
- package/components/content-layout/sidebar.js +2 -1
- package/components/data-list/data-list.js +2 -1
- package/components/data-list/item.js +2 -1
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.js +2 -1
- package/components/date-picker/date-popup.js +2 -1
- package/components/date-picker/day.js +2 -1
- package/components/date-picker/month-slider.js +2 -1
- package/components/date-picker/years.js +2 -1
- package/components/dialog/dialog.d.ts +4 -16
- package/components/dialog/dialog.js +6 -3
- package/components/dropdown/dropdown.js +2 -1
- package/components/error-bubble/error-bubble.js +2 -1
- package/components/error-message/error-message.js +2 -1
- package/components/footer/footer.js +1 -0
- package/components/global/react-dom-renderer.js +2 -1
- package/components/grid/col.js +2 -1
- package/components/grid/grid.js +2 -1
- package/components/grid/row.js +2 -1
- package/components/group/group.js +2 -1
- package/components/header/logo.js +2 -1
- package/components/header/profile.js +2 -1
- package/components/header/services-link.js +2 -1
- package/components/header/services.js +2 -1
- package/components/header/smart-profile.js +2 -1
- package/components/header/smart-services.js +2 -1
- package/components/header/tray-icon.js +2 -1
- package/components/header/tray.js +2 -1
- package/components/hub-source/hub-source.js +2 -1
- package/components/icon/icon.js +2 -1
- package/components/input/input.js +2 -1
- package/components/island/island.js +2 -1
- package/components/island-legacy/content-legacy.js +2 -1
- package/components/island-legacy/header-legacy.js +2 -1
- package/components/island-legacy/island-legacy.js +2 -1
- package/components/link/clickableLink.js +2 -1
- package/components/list/list.js +2 -1
- package/components/list/list__hint.js +2 -1
- package/components/list/list__users-groups-source.js +2 -1
- package/components/loader/loader.js +2 -1
- package/components/loader/loader__core.js +2 -1
- package/components/loader-screen/loader-screen.js +2 -1
- package/components/login-dialog/login-dialog.js +2 -1
- package/components/message/message.js +2 -1
- package/components/pager/pager.js +2 -1
- package/components/panel/panel.js +2 -1
- package/components/permissions/permissions.js +2 -1
- package/components/permissions/permissions__cache.js +2 -1
- package/components/popup/popup.js +2 -1
- package/components/popup-menu/popup-menu.js +2 -1
- package/components/progress-bar/progress-bar.js +2 -1
- package/components/query-assist/query-assist.js +4 -3
- package/components/radio/radio.js +2 -1
- package/components/radio/radio__item.js +2 -1
- package/components/select/select.js +2 -1
- package/components/select/select__filter.js +2 -1
- package/components/select/select__popup.js +4 -2
- package/components/shortcuts/shortcuts.js +2 -1
- package/components/storage/storage__fallback.js +2 -1
- package/components/tab-trap/tab-trap.js +2 -1
- package/components/table/cell.js +2 -1
- package/components/table/header-cell.js +2 -1
- package/components/table/header.js +2 -1
- package/components/table/multitable.js +2 -1
- package/components/table/row.d.ts +1 -0
- package/components/table/row.js +6 -4
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/table.d.ts +2 -0
- package/components/table/table.js +8 -4
- package/components/tabs/smart-tabs.js +2 -1
- package/components/tabs/tab.js +2 -1
- package/components/tag/tag.js +2 -1
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +3 -2
- package/components/tags-list/tags-list.js +2 -1
- package/components/text/text.js +2 -1
- package/components/tooltip/tooltip.js +2 -1
- package/components/user-agreement/user-agreement.js +2 -1
- package/components/user-card/card.js +2 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/components/user-card/smart-user-card-tooltip.js +2 -1
- package/components/user-card/tooltip.js +2 -1
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -29
- package/dist/_helpers/anchor.js +1 -1
- package/dist/_helpers/card.js +44 -47
- package/dist/_helpers/footer.js +1 -0
- package/dist/_helpers/select__filter.js +10 -13
- package/dist/_helpers/services-link.js +10 -10
- package/dist/_helpers/sidebar.js +34 -37
- package/dist/_helpers/theme.js +1 -1
- package/dist/_helpers/title.js +12 -16
- package/dist/alert/alert.js +63 -66
- package/dist/alert/container.js +5 -5
- package/dist/alert-service/alert-service.js +5 -7
- package/dist/analytics/analytics.js +1 -2
- package/dist/analytics/analytics__custom-plugin.js +6 -8
- package/dist/auth/auth.js +1 -1
- package/dist/auth/auth__core.js +26 -26
- package/dist/auth/background-flow.js +4 -5
- package/dist/auth/iframe-flow.js +12 -12
- package/dist/auth/landing.js +1 -1
- package/dist/auth/request-builder.js +3 -5
- package/dist/auth/response-parser.js +5 -6
- package/dist/auth/storage.js +12 -12
- package/dist/auth/token-validator.js +13 -16
- package/dist/auth/window-flow.js +18 -19
- package/dist/auth-dialog/auth-dialog.js +54 -57
- package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
- package/dist/auth-ng/auth-ng.js +1 -1
- package/dist/avatar/avatar.js +30 -33
- package/dist/avatar-ng/avatar-ng.js +1 -1
- package/dist/badge/badge.js +10 -10
- package/dist/badge-ng/badge-ng.js +1 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
- package/dist/button/button.js +24 -27
- package/dist/button-group/button-group.js +5 -5
- package/dist/button-group/caption.js +4 -4
- package/dist/button-ng/button-ng.js +68 -69
- package/dist/button-set/button-set.js +6 -6
- package/dist/button-toolbar/button-toolbar.js +6 -6
- package/dist/caret/caret.js +2 -4
- package/dist/checkbox/checkbox.js +27 -30
- package/dist/checkbox-ng/checkbox-ng.js +0 -1
- package/dist/code/code.js +17 -21
- package/dist/confirm/confirm.js +31 -34
- package/dist/confirm-ng/confirm-ng.js +1 -1
- package/dist/confirm-service/confirm-service.js +1 -1
- package/dist/content-layout/content-layout.js +17 -20
- package/dist/contenteditable/contenteditable.js +11 -11
- package/dist/data-list/data-list.js +49 -55
- package/dist/data-list/item.js +64 -67
- package/dist/data-list/selection.js +0 -1
- package/dist/data-list/title.js +1 -1
- package/dist/data-list-ng/data-list-ng.js +1 -1
- package/dist/date-picker/date-input.js +39 -42
- package/dist/date-picker/date-picker.js +162 -165
- package/dist/date-picker/date-popup.js +119 -119
- package/dist/date-picker/day.js +34 -38
- package/dist/date-picker/month-names.js +11 -14
- package/dist/date-picker/month-slider.js +24 -28
- package/dist/date-picker/month.js +1 -1
- package/dist/date-picker/months.js +1 -1
- package/dist/date-picker/years.js +9 -13
- package/dist/dialog/dialog.d.ts +4 -16
- package/dist/dialog/dialog.js +68 -65
- package/dist/dialog-ng/dialog-ng.js +21 -22
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
- package/dist/dropdown/dropdown.js +101 -104
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/editable-heading/editable-heading.js +1 -1
- package/dist/error-bubble/error-bubble.js +6 -6
- package/dist/error-message/error-message.js +10 -10
- package/dist/error-message-ng/error-message-ng.js +0 -1
- package/dist/footer-ng/footer-ng.js +19 -21
- package/dist/global/angular-component-factory.js +2 -3
- package/dist/global/dom.js +1 -5
- package/dist/global/focus-sensor-hoc.js +58 -61
- package/dist/global/listeners.js +1 -5
- package/dist/global/react-dom-renderer.js +8 -12
- package/dist/global/rerender-hoc.js +1 -5
- package/dist/global/ring-angular-component.js +1 -3
- package/dist/grid/col.js +13 -14
- package/dist/grid/grid.js +5 -5
- package/dist/grid/row.js +16 -17
- package/dist/group/group.js +5 -5
- package/dist/header/header.js +10 -10
- package/dist/header/logo.js +9 -9
- package/dist/header/profile.js +58 -58
- package/dist/header/services.js +19 -22
- package/dist/header/smart-profile.js +40 -43
- package/dist/header/smart-services.js +28 -31
- package/dist/header/tray-icon.js +6 -6
- package/dist/header/tray.js +5 -5
- package/dist/heading/heading.js +1 -1
- package/dist/heading-ng/heading-ng.js +1 -1
- package/dist/http/http.js +111 -107
- package/dist/http/http.mock.js +3 -4
- package/dist/hub-source/hub-source.js +7 -9
- package/dist/hub-source/hub-source__user.js +0 -1
- package/dist/hub-source/hub-source__users-groups.js +4 -5
- package/dist/icon/icon.js +18 -18
- package/dist/icon/icon__svg.js +1 -1
- package/dist/icon-ng/icon-ng.js +0 -1
- package/dist/input/input.js +35 -38
- package/dist/input-ng/input-ng.js +25 -26
- package/dist/island/adaptive-island-hoc.js +21 -25
- package/dist/island/content.js +62 -65
- package/dist/island/header.js +11 -11
- package/dist/island/island.js +8 -8
- package/dist/island-legacy/content-legacy.js +5 -5
- package/dist/island-legacy/header-legacy.js +5 -5
- package/dist/island-legacy/island-legacy.js +5 -5
- package/dist/link/clickableLink.js +27 -30
- package/dist/link/link.js +16 -16
- package/dist/list/list.js +389 -391
- package/dist/list/list__custom.js +6 -10
- package/dist/list/list__hint.js +3 -4
- package/dist/list/list__item.js +4 -7
- package/dist/list/list__link.js +1 -1
- package/dist/list/list__users-groups-source.js +3 -3
- package/dist/loader/loader.js +16 -19
- package/dist/loader/loader__core.js +62 -62
- package/dist/loader-inline/loader-inline.js +6 -6
- package/dist/loader-ng/loader-ng.js +3 -4
- package/dist/loader-screen/loader-screen.js +6 -6
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -1
- package/dist/login-dialog/login-dialog.js +55 -58
- package/dist/login-dialog/service.js +1 -1
- package/dist/markdown/code.js +0 -1
- package/dist/markdown/markdown.js +1 -1
- package/dist/message/message.js +22 -25
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +55 -58
- package/dist/pager-ng/pager-ng.js +1 -1
- package/dist/panel/panel.js +5 -5
- package/dist/panel-ng/panel-ng.js +0 -1
- package/dist/permissions/permissions.js +14 -16
- package/dist/permissions/permissions__cache.js +4 -6
- package/dist/permissions-ng/permissions-ng.js +1 -1
- package/dist/place-under-ng/place-under-ng.js +0 -1
- package/dist/popup/popup.js +118 -121
- package/dist/popup/popup.target.js +1 -1
- package/dist/popup/position.js +0 -1
- package/dist/popup-menu/popup-menu.js +19 -22
- package/dist/progress-bar/progress-bar.js +41 -44
- package/dist/progress-bar-ng/progress-bar-ng.js +1 -1
- package/dist/promised-click-ng/promised-click-ng.js +0 -1
- package/dist/query-assist/query-assist.js +507 -501
- package/dist/query-assist/query-assist__suggestions.js +1 -1
- package/dist/query-assist-ng/query-assist-ng.js +1 -1
- package/dist/radio/radio.js +10 -13
- package/dist/radio/radio__item.js +19 -22
- package/dist/select/select.js +350 -349
- package/dist/select/select__popup.js +148 -152
- package/dist/select-ng/select-ng.js +1 -1
- package/dist/select-ng/select-ng__lazy.js +4 -4
- package/dist/select-ng/select-ng__options.js +14 -15
- package/dist/shortcuts/core.js +35 -36
- package/dist/shortcuts/shortcuts-hoc.js +7 -11
- package/dist/shortcuts/shortcuts.js +10 -11
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -1
- package/dist/shortcuts-ng/shortcuts-ng.js +0 -1
- package/dist/sidebar-ng/sidebar-ng.js +0 -1
- package/dist/storage/storage.js +1 -1
- package/dist/storage/storage__fallback.js +8 -10
- package/dist/storage/storage__local.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +84 -86
- package/dist/table/cell.js +6 -6
- package/dist/table/disable-hover-hoc.js +23 -25
- package/dist/table/header-cell.js +28 -31
- package/dist/table/header.js +58 -61
- package/dist/table/multitable.js +91 -95
- package/dist/table/row-with-focus-sensor.js +15 -18
- package/dist/table/row.d.ts +1 -0
- package/dist/table/row.js +54 -55
- package/dist/table/selection-shortcuts-hoc.js +145 -147
- package/dist/table/selection.js +7 -9
- package/dist/table/smart-table.d.ts +1 -0
- package/dist/table/smart-table.js +21 -24
- package/dist/table/table.d.ts +2 -0
- package/dist/table/table.js +107 -109
- package/dist/table-legacy-ng/table-legacy-ng.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +1 -3
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -1
- package/dist/table-ng/smart-table-ng.js +1 -1
- package/dist/table-ng/table-ng.js +1 -1
- package/dist/tabs/collapsible-more.js +1 -1
- package/dist/tabs/collapsible-tab.js +1 -1
- package/dist/tabs/dumb-tabs.js +46 -49
- package/dist/tabs/smart-tabs.js +10 -10
- package/dist/tabs/tab.js +7 -8
- package/dist/tag/tag.js +42 -45
- package/dist/tags-input/tags-input.d.ts +1 -1
- package/dist/tags-input/tags-input.js +214 -213
- package/dist/tags-input-ng/tags-input-ng.js +1 -1
- package/dist/tags-list/tags-list.js +20 -20
- package/dist/template-ng/template-ng.js +25 -26
- package/dist/text/text.js +6 -6
- package/dist/toggle/toggle.js +19 -19
- package/dist/toggle-ng/toggle-ng.js +1 -1
- package/dist/tooltip/tooltip.js +86 -89
- package/dist/tooltip-ng/tooltip-ng.js +1 -1
- package/dist/user-agreement/service.js +207 -205
- package/dist/user-agreement/user-agreement.js +39 -42
- package/dist/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/dist/user-card/smart-user-card-tooltip.js +32 -35
- package/dist/user-card/tooltip.js +26 -26
- package/dist/user-card-ng/user-card-ng.js +1 -1
- package/package.json +17 -17
package/components/table/cell.js
CHANGED
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import dataTests from '../global/data-tests';
|
|
5
5
|
import style from './table.css';
|
|
6
|
-
|
|
6
|
+
class Cell extends PureComponent {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
children: PropTypes.any,
|
|
9
9
|
className: PropTypes.string,
|
|
@@ -14,3 +14,4 @@ export default class Cell extends PureComponent {
|
|
|
14
14
|
return (<td {...this.props} className={classes} data-test={dataTests('ring-table-cell', this.props['data-test'])}>{this.props.children}</td>);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
export default Cell;
|
|
@@ -6,7 +6,7 @@ import sortedIcon from '@jetbrains/icons/chevron-10px';
|
|
|
6
6
|
import Icon from '../icon/icon';
|
|
7
7
|
import dataTests from '../global/data-tests';
|
|
8
8
|
import style from './table.css';
|
|
9
|
-
|
|
9
|
+
class HeaderCell extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
children: PropTypes.any,
|
|
12
12
|
className: PropTypes.string,
|
|
@@ -54,3 +54,4 @@ export default class HeaderCell extends PureComponent {
|
|
|
54
54
|
</th>);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
+
export default HeaderCell;
|
|
@@ -6,7 +6,7 @@ import Checkbox from '../checkbox/checkbox';
|
|
|
6
6
|
import getUID from '../global/get-uid';
|
|
7
7
|
import style from './table.css';
|
|
8
8
|
import HeaderCell from './header-cell';
|
|
9
|
-
|
|
9
|
+
class Header extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
caption: PropTypes.string,
|
|
12
12
|
selectable: PropTypes.bool,
|
|
@@ -109,3 +109,4 @@ export default class Header extends PureComponent {
|
|
|
109
109
|
</thead>);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
+
export default Header;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PureComponent, Children, cloneElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
3
|
+
class MultiTable extends PureComponent {
|
|
4
4
|
static propTypes = {
|
|
5
5
|
children: PropTypes.any.isRequired
|
|
6
6
|
};
|
|
@@ -79,3 +79,4 @@ export default class MultiTable extends PureComponent {
|
|
|
79
79
|
})}</div>);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
export default MultiTable;
|
|
@@ -25,6 +25,7 @@ export interface RowProps<T extends SelectionItem> extends Omit<HTMLAttributes<H
|
|
|
25
25
|
checkboxTooltip?: string | undefined;
|
|
26
26
|
autofocus?: boolean | null | undefined;
|
|
27
27
|
'data-test'?: string | null | undefined;
|
|
28
|
+
metaColumnClassName?: string | null | undefined;
|
|
28
29
|
}
|
|
29
30
|
export default class Row<T extends SelectionItem> extends PureComponent<RowProps<T>> {
|
|
30
31
|
static defaultProps: {
|
package/components/table/row.js
CHANGED
|
@@ -22,7 +22,7 @@ DragHandle.propTypes = {
|
|
|
22
22
|
alwaysShowDragHandle: PropTypes.bool,
|
|
23
23
|
dragHandleTitle: PropTypes.string
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
class Row extends PureComponent {
|
|
26
26
|
static defaultProps = {
|
|
27
27
|
selectable: true,
|
|
28
28
|
showFocus: false,
|
|
@@ -73,7 +73,7 @@ export default class Row extends PureComponent {
|
|
|
73
73
|
this.row = el;
|
|
74
74
|
};
|
|
75
75
|
render() {
|
|
76
|
-
const { item, columns, selectable, selected, showFocus, draggable, alwaysShowDragHandle, dragHandleTitle, level, collapsible, parentCollapsible, collapsed, onCollapse, onExpand, showDisabledSelection, onSelect, checkboxTooltip, innerRef, focused, autofocus, onFocusReset, onFocusRestore, onHover, className, 'data-test': dataTest, ...restProps } = this.props;
|
|
76
|
+
const { item, columns, selectable, selected, showFocus, draggable, alwaysShowDragHandle, dragHandleTitle, level, collapsible, parentCollapsible, collapsed, onCollapse, onExpand, showDisabledSelection, onSelect, checkboxTooltip, innerRef, focused, autofocus, onFocusReset, onFocusRestore, onHover, className, metaColumnClassName, 'data-test': dataTest, ...restProps } = this.props;
|
|
77
77
|
const classes = classNames(className, {
|
|
78
78
|
[style.row]: true,
|
|
79
79
|
[style.rowFocused]: showFocus,
|
|
@@ -83,7 +83,7 @@ export default class Row extends PureComponent {
|
|
|
83
83
|
'data-test-focused': showFocus || undefined,
|
|
84
84
|
'data-test-selected': selected || undefined
|
|
85
85
|
};
|
|
86
|
-
const metaColumnClasses = style.metaColumn;
|
|
86
|
+
const metaColumnClasses = classNames(metaColumnClassName, style.metaColumn);
|
|
87
87
|
const SUBITEM_OFFSET = 30;
|
|
88
88
|
const COLLAPSIBLE_PARENT_OFFSET = 20;
|
|
89
89
|
const gap = level * SUBITEM_OFFSET + (parentCollapsible ? COLLAPSIBLE_PARENT_OFFSET : 0);
|
|
@@ -114,7 +114,7 @@ export default class Row extends PureComponent {
|
|
|
114
114
|
const getDataTest = column.getDataTest || (() => column.id);
|
|
115
115
|
const value = getValue(item, column);
|
|
116
116
|
const cellClasses = classNames({ [style.cellRight]: column.rightAlign }, column.className);
|
|
117
|
-
const showMetaColumn = draggable || selectable || showDisabledSelection || !!level;
|
|
117
|
+
const showMetaColumn = draggable || selectable || collapsible || showDisabledSelection || !!level;
|
|
118
118
|
return (<Cell key={column.id} className={cellClasses} data-test={getDataTest(item, column)}>
|
|
119
119
|
{index === 0 && (showMetaColumn) && metaColumn}
|
|
120
120
|
{value}
|
|
@@ -123,8 +123,10 @@ export default class Row extends PureComponent {
|
|
|
123
123
|
return (<tr id={this.id} ref={composeRefs(this.rowRef, innerRef)} className={classes} tabIndex={0} data-test={dataTests('ring-table-row', dataTest)} {...testAttrs} {...restProps} onMouseMove={this.onMouseEnter} onClick={this.onClick} onDoubleClick={this.onDoubleClick}>{cells}</tr>);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
export default Row;
|
|
126
127
|
Row.propTypes = {
|
|
127
128
|
className: PropTypes.string,
|
|
129
|
+
metaColumnClassName: PropTypes.string,
|
|
128
130
|
item: PropTypes.object.isRequired,
|
|
129
131
|
columns: PropTypes.array.isRequired,
|
|
130
132
|
selectable: PropTypes.bool,
|
|
@@ -33,6 +33,7 @@ declare class SmartTable<T extends SelectionItem> extends PureComponent<SmartTab
|
|
|
33
33
|
stickyHeader?: React.Validator<boolean | null | undefined> | undefined;
|
|
34
34
|
getItemLevel?: React.Validator<((item: SelectionItem) => number) | null | undefined> | undefined;
|
|
35
35
|
getItemClassName?: React.Validator<((item: SelectionItem) => string | null | undefined) | null | undefined> | undefined;
|
|
36
|
+
getMetaColumnClassName?: React.Validator<((item: SelectionItem) => string | null | undefined) | null | undefined> | undefined;
|
|
36
37
|
getItemDataTest?: React.Validator<((item: SelectionItem) => string | null | undefined) | null | undefined> | undefined;
|
|
37
38
|
isItemCollapsible?: React.Validator<((item: SelectionItem) => boolean) | null | undefined> | undefined;
|
|
38
39
|
isParentCollapsible?: React.Validator<((item: SelectionItem) => boolean) | null | undefined> | undefined;
|
|
@@ -29,6 +29,7 @@ export interface TableProps<T extends SelectionItem> extends FocusSensorAddProps
|
|
|
29
29
|
stickyHeader: boolean;
|
|
30
30
|
getItemLevel: (item: T) => number;
|
|
31
31
|
getItemClassName: (item: T) => string | null | undefined;
|
|
32
|
+
getMetaColumnClassName: (item: T) => string | null | undefined;
|
|
32
33
|
getItemDataTest: (item: T) => string | null | undefined;
|
|
33
34
|
isItemCollapsible: (item: T) => boolean;
|
|
34
35
|
isParentCollapsible: (item: T) => boolean;
|
|
@@ -63,6 +64,7 @@ export declare class Table<T extends SelectionItem> extends PureComponent<TableP
|
|
|
63
64
|
stickyHeader: boolean;
|
|
64
65
|
getItemLevel: () => number;
|
|
65
66
|
getItemClassName: () => null;
|
|
67
|
+
getMetaColumnClassName: () => null;
|
|
66
68
|
getItemDataTest: () => null;
|
|
67
69
|
isItemCollapsible: () => boolean;
|
|
68
70
|
isParentCollapsible: () => boolean;
|
|
@@ -18,7 +18,7 @@ import Row from './row-with-focus-sensor';
|
|
|
18
18
|
/**
|
|
19
19
|
* Interactive table with selection and keyboard navigation support.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
class Table extends PureComponent {
|
|
22
22
|
static defaultProps = {
|
|
23
23
|
isItemSelectable: () => true,
|
|
24
24
|
loading: false,
|
|
@@ -32,6 +32,7 @@ export class Table extends PureComponent {
|
|
|
32
32
|
stickyHeader: true,
|
|
33
33
|
getItemLevel: () => 0,
|
|
34
34
|
getItemClassName: () => null,
|
|
35
|
+
getMetaColumnClassName: () => null,
|
|
35
36
|
getItemDataTest: () => null,
|
|
36
37
|
isItemCollapsible: () => false,
|
|
37
38
|
isParentCollapsible: () => false,
|
|
@@ -106,7 +107,7 @@ export class Table extends PureComponent {
|
|
|
106
107
|
window.scrollTo(scrollX, scrollY);
|
|
107
108
|
};
|
|
108
109
|
render() {
|
|
109
|
-
const { data, selection, columns, caption, getItemKey, selectable, focused, isItemSelectable, getItemLevel, getItemClassName, getItemDataTest, draggable, alwaysShowDragHandle, dragHandleTitle, loading, onSort, sortKey, sortOrder, loaderClassName, stickyHeader, stickyHeaderOffset, isItemCollapsible, isParentCollapsible, isItemCollapsed, onItemCollapse, onItemExpand, isDisabledSelectionVisible, getCheckboxTooltip, onItemDoubleClick, onItemClick, renderEmpty } = this.props;
|
|
110
|
+
const { data, selection, columns, caption, getItemKey, selectable, focused, isItemSelectable, getItemLevel, getItemClassName, getMetaColumnClassName, getItemDataTest, draggable, alwaysShowDragHandle, dragHandleTitle, loading, onSort, sortKey, sortOrder, loaderClassName, stickyHeader, stickyHeaderOffset, isItemCollapsible, isParentCollapsible, isItemCollapsed, onItemCollapse, onItemExpand, isDisabledSelectionVisible, getCheckboxTooltip, onItemDoubleClick, onItemClick, renderEmpty } = this.props;
|
|
110
111
|
// NOTE: Do not construct new object per render because it causes all rows rerendering
|
|
111
112
|
const headerProps = {
|
|
112
113
|
caption, selectable, draggable,
|
|
@@ -150,7 +151,7 @@ export class Table extends PureComponent {
|
|
|
150
151
|
return null;
|
|
151
152
|
}
|
|
152
153
|
const { ref, ...restProps } = props;
|
|
153
|
-
const row = (<Row innerRef={ref} key={getItemKey(value)} level={getItemLevel(value)} item={value} showFocus={selection.isFocused(value)} autofocus={selection.isFocused(value)} focused={selection.isFocused(value)} selectable={selectable && isItemSelectable(value)} selected={selectable && selection.isSelected(value)} onFocus={this.onRowFocus} onSelect={this.onRowSelect} onDoubleClick={onItemDoubleClick} onClick={onItemClick} collapsible={isItemCollapsible(value)} parentCollapsible={isParentCollapsible(value)} collapsed={isItemCollapsed(value)} onCollapse={onItemCollapse} onExpand={onItemExpand} showDisabledSelection={isDisabledSelectionVisible(value)} checkboxTooltip={getCheckboxTooltip(value)} className={classNames(getItemClassName(value), { [style.draggingRow]: isDragged })} draggable={draggable} alwaysShowDragHandle={alwaysShowDragHandle} dragHandleTitle={dragHandleTitle} columns={columns} data-test={getItemDataTest(value)} {...restProps}/>);
|
|
154
|
+
const row = (<Row innerRef={ref} key={getItemKey(value)} level={getItemLevel(value)} item={value} showFocus={selection.isFocused(value)} autofocus={selection.isFocused(value)} focused={selection.isFocused(value)} selectable={selectable && isItemSelectable(value)} selected={selectable && selection.isSelected(value)} onFocus={this.onRowFocus} onSelect={this.onRowSelect} onDoubleClick={onItemDoubleClick} onClick={onItemClick} collapsible={isItemCollapsible(value)} parentCollapsible={isParentCollapsible(value)} collapsed={isItemCollapsed(value)} onCollapse={onItemCollapse} onExpand={onItemExpand} showDisabledSelection={isDisabledSelectionVisible(value)} checkboxTooltip={getCheckboxTooltip(value)} className={classNames(getItemClassName(value), { [style.draggingRow]: isDragged })} metaColumnClassName={getMetaColumnClassName(value)} draggable={draggable} alwaysShowDragHandle={alwaysShowDragHandle} dragHandleTitle={dragHandleTitle} columns={columns} data-test={getItemDataTest(value)} {...restProps}/>);
|
|
154
155
|
return isDragged
|
|
155
156
|
? (<table style={{ ...props.style }} className={style.draggingTable}>
|
|
156
157
|
<tbody>{row}</tbody>
|
|
@@ -174,6 +175,7 @@ export class Table extends PureComponent {
|
|
|
174
175
|
</div>);
|
|
175
176
|
}
|
|
176
177
|
}
|
|
178
|
+
export { Table };
|
|
177
179
|
Table.propTypes = {
|
|
178
180
|
className: PropTypes.string,
|
|
179
181
|
loaderClassName: PropTypes.string,
|
|
@@ -186,6 +188,7 @@ Table.propTypes = {
|
|
|
186
188
|
loading: PropTypes.bool,
|
|
187
189
|
getItemKey: PropTypes.func,
|
|
188
190
|
getItemClassName: PropTypes.func,
|
|
191
|
+
getMetaColumnClassName: PropTypes.func,
|
|
189
192
|
getItemDataTest: PropTypes.func,
|
|
190
193
|
onSort: PropTypes.func,
|
|
191
194
|
onReorder: PropTypes.func,
|
|
@@ -219,7 +222,7 @@ Table.propTypes = {
|
|
|
219
222
|
};
|
|
220
223
|
const getContainer = () => disableHoverHOC(selectionShortcutsHOC(focusSensorHOC(Table)));
|
|
221
224
|
// eslint-disable-next-line react/no-multi-comp
|
|
222
|
-
|
|
225
|
+
class TableContainer extends Component {
|
|
223
226
|
// https://stackoverflow.com/a/53882322/6304152
|
|
224
227
|
static propTypes = getContainer().propTypes;
|
|
225
228
|
Table = getContainer();
|
|
@@ -227,3 +230,4 @@ export default class TableContainer extends Component {
|
|
|
227
230
|
return <this.Table {...this.props}/>;
|
|
228
231
|
}
|
|
229
232
|
}
|
|
233
|
+
export default TableContainer;
|
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import dataTests from '../global/data-tests';
|
|
4
4
|
import Tabs from './dumb-tabs';
|
|
5
|
-
|
|
5
|
+
class SmartTabs extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
children: PropTypes.arrayOf(PropTypes.element).isRequired,
|
|
8
8
|
initSelected: PropTypes.string,
|
|
@@ -23,3 +23,4 @@ export default class SmartTabs extends PureComponent {
|
|
|
23
23
|
return (<Tabs data-test={dataTests('ring-smart-tabs', dataTest)} selected={this.state.selected} onSelect={this.handleSelect} {...restProps}>{children}</Tabs>);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
export default SmartTabs;
|
package/components/tabs/tab.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import dataTests from '../global/data-tests';
|
|
5
|
-
|
|
5
|
+
class Tab extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
title: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
|
8
8
|
id: PropTypes.string,
|
|
@@ -17,3 +17,4 @@ export default class Tab extends PureComponent {
|
|
|
17
17
|
</div>);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
+
export default Tab;
|
package/components/tag/tag.js
CHANGED
|
@@ -9,7 +9,7 @@ import styles from './tag.css';
|
|
|
9
9
|
/**
|
|
10
10
|
* @name Tag
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
class Tag extends PureComponent {
|
|
13
13
|
static propTypes = {
|
|
14
14
|
onRemove: PropTypes.func,
|
|
15
15
|
onClick: PropTypes.func,
|
|
@@ -128,3 +128,4 @@ export default class Tag extends PureComponent {
|
|
|
128
128
|
</span>);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
+
export default Tag;
|
|
@@ -113,7 +113,7 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
|
|
|
113
113
|
addTag: (tag: TagType | null) => void;
|
|
114
114
|
onRemoveTag(tagToRemove: TagType): Promise<void | TagType[]>;
|
|
115
115
|
clickHandler: (event: SyntheticEvent) => void;
|
|
116
|
-
filterExistingTags: (suggestions: readonly SelectItem[]) => SelectItem
|
|
116
|
+
filterExistingTags: (suggestions: readonly SelectItem[]) => SelectItem[];
|
|
117
117
|
loadSuggestions: (query?: string) => void;
|
|
118
118
|
private _focusHandler;
|
|
119
119
|
private _blurHandler;
|
|
@@ -17,7 +17,7 @@ function noop() { }
|
|
|
17
17
|
* @name Tags Input
|
|
18
18
|
*/
|
|
19
19
|
const POPUP_VERTICAL_SHIFT = 2;
|
|
20
|
-
|
|
20
|
+
class TagsInput extends PureComponent {
|
|
21
21
|
static propTypes = {
|
|
22
22
|
className: PropTypes.string,
|
|
23
23
|
tags: PropTypes.array,
|
|
@@ -203,7 +203,7 @@ export default class TagsInput extends PureComponent {
|
|
|
203
203
|
return true;
|
|
204
204
|
}
|
|
205
205
|
if (key === 'ArrowLeft') {
|
|
206
|
-
if (this.getInputNode() && this.caret != null && this.caret.getPosition() > 0) {
|
|
206
|
+
if (this.getInputNode() && this.caret != null && Number(this.caret.getPosition()) > 0) {
|
|
207
207
|
return true;
|
|
208
208
|
}
|
|
209
209
|
this.selectTag();
|
|
@@ -269,4 +269,5 @@ export default class TagsInput extends PureComponent {
|
|
|
269
269
|
</div>);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
+
export default TagsInput;
|
|
272
273
|
export const RerenderableTagsInput = rerenderHOC(TagsInput);
|
|
@@ -6,7 +6,7 @@ function noop() { }
|
|
|
6
6
|
/**
|
|
7
7
|
* @name Tags List
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
class TagsList extends Component {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
children: PropTypes.node,
|
|
12
12
|
tags: PropTypes.array,
|
|
@@ -43,3 +43,4 @@ export default class TagsList extends Component {
|
|
|
43
43
|
</div>);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
export default TagsList;
|
package/components/text/text.js
CHANGED
|
@@ -5,7 +5,7 @@ import styles from './text.css';
|
|
|
5
5
|
/**
|
|
6
6
|
* @name Text
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
class Text extends Component {
|
|
9
9
|
static propTypes = {
|
|
10
10
|
children: PropTypes.node,
|
|
11
11
|
info: PropTypes.bool,
|
|
@@ -19,3 +19,4 @@ export default class Text extends Component {
|
|
|
19
19
|
return (<span className={classes} {...restProps}>{children}</span>);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
export default Text;
|
|
@@ -11,7 +11,7 @@ const TooltipContext = createContext(undefined);
|
|
|
11
11
|
/**
|
|
12
12
|
* @name Tooltip
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
class Tooltip extends Component {
|
|
15
15
|
static propTypes = {
|
|
16
16
|
delay: PropTypes.number,
|
|
17
17
|
selfOverflowOnly: PropTypes.bool,
|
|
@@ -124,3 +124,4 @@ export default class Tooltip extends Component {
|
|
|
124
124
|
</TooltipContext.Provider>);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
+
export default Tooltip;
|
|
@@ -14,7 +14,7 @@ function noop() { }
|
|
|
14
14
|
/**
|
|
15
15
|
* A component that displays a user agreement dialog.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
class UserAgreement extends PureComponent {
|
|
18
18
|
static propTypes = {
|
|
19
19
|
show: PropTypes.bool,
|
|
20
20
|
preview: PropTypes.bool,
|
|
@@ -79,3 +79,4 @@ export default class UserAgreement extends PureComponent {
|
|
|
79
79
|
</Dialog>);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
export default UserAgreement;
|
|
@@ -8,7 +8,7 @@ import clipboard from '../clipboard/clipboard';
|
|
|
8
8
|
import badgeStyles from '../badge/badge.css';
|
|
9
9
|
import Icon, { Size as IconSize } from '../icon/icon';
|
|
10
10
|
import styles from './user-card.css';
|
|
11
|
-
|
|
11
|
+
class UserCard extends PureComponent {
|
|
12
12
|
static propTypes = {
|
|
13
13
|
children: PropTypes.node,
|
|
14
14
|
info: PropTypes.node,
|
|
@@ -88,3 +88,4 @@ export default class UserCard extends PureComponent {
|
|
|
88
88
|
</div>);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
+
export default UserCard;
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import LoaderInline from '../loader-inline/loader-inline';
|
|
4
4
|
import UserCardTooltip from './tooltip';
|
|
5
5
|
import styles from './user-card.css';
|
|
6
|
-
|
|
6
|
+
class SmartUserCardTooltip extends Component {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
children: PropTypes.node,
|
|
9
9
|
userDataSource: PropTypes.func
|
|
@@ -45,3 +45,4 @@ export default class SmartUserCardTooltip extends Component {
|
|
|
45
45
|
</UserCardTooltip>);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
export default SmartUserCardTooltip;
|
|
@@ -6,7 +6,7 @@ import Popup from '../popup/popup';
|
|
|
6
6
|
import UserCard from './card';
|
|
7
7
|
import styles from './user-card.css';
|
|
8
8
|
const DEFAULT_TIMEOUT = 300;
|
|
9
|
-
|
|
9
|
+
class UserCardTooltip extends Component {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
className: PropTypes.string,
|
|
12
12
|
children: PropTypes.node,
|
|
@@ -41,3 +41,4 @@ export default class UserCardTooltip extends Component {
|
|
|
41
41
|
</Dropdown>);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
export default UserCardTooltip;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) {
|
|
2
|
-
key = _toPropertyKey(key);
|
|
3
|
-
if (key in obj) {
|
|
4
|
-
Object.defineProperty(obj, key, {
|
|
5
|
-
value: value,
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true
|
|
9
|
-
});
|
|
10
|
-
} else {
|
|
11
|
-
obj[key] = value;
|
|
12
|
-
}
|
|
13
|
-
return obj;
|
|
14
|
-
}
|
|
15
1
|
function _extends() {
|
|
16
2
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
17
3
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -26,19 +12,5 @@ function _extends() {
|
|
|
26
12
|
};
|
|
27
13
|
return _extends.apply(this, arguments);
|
|
28
14
|
}
|
|
29
|
-
function _toPrimitive(input, hint) {
|
|
30
|
-
if (typeof input !== "object" || input === null) return input;
|
|
31
|
-
var prim = input[Symbol.toPrimitive];
|
|
32
|
-
if (prim !== undefined) {
|
|
33
|
-
var res = prim.call(input, hint || "default");
|
|
34
|
-
if (typeof res !== "object") return res;
|
|
35
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36
|
-
}
|
|
37
|
-
return (hint === "string" ? String : Number)(input);
|
|
38
|
-
}
|
|
39
|
-
function _toPropertyKey(arg) {
|
|
40
|
-
var key = _toPrimitive(arg, "string");
|
|
41
|
-
return typeof key === "symbol" ? key : String(key);
|
|
42
|
-
}
|
|
43
15
|
|
|
44
|
-
export {
|
|
16
|
+
export { _extends as _ };
|
package/dist/_helpers/anchor.js
CHANGED
package/dist/_helpers/card.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -13,16 +13,49 @@ import { Size as Size$1 } from '../icon/icon__constants.js';
|
|
|
13
13
|
var modules_a4196c17 = {"unit":"i__const_unit_0","light":"light_rui_6e59","userCardSpaced":"userCardSpaced_rui_6e59","userInformationContainer":"userInformationContainer_rui_6e59","userAvatar":"userAvatar_rui_6e59","userInformation":"userInformation_rui_6e59","userInformationGeneral":"userInformationGeneral_rui_6e59","userNameLine":"userNameLine_rui_6e59","userName":"userName_rui_6e59","userLogin":"userLogin_rui_6e59","userEmail":"userEmail_rui_6e59","userCopyIcon":"userCopyIcon_rui_6e59","userEmailWrapper":"userEmailWrapper_rui_6e59","unverifiedLabel":"unverifiedLabel_rui_6e59","userNameInfo":"userNameInfo_rui_6e59","userActiveStatus":"userActiveStatus_rui_6e59","online":"online_rui_6e59"};
|
|
14
14
|
|
|
15
15
|
class UserCard extends PureComponent {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
static propTypes = {
|
|
17
|
+
children: PropTypes.node,
|
|
18
|
+
info: PropTypes.node,
|
|
19
|
+
className: PropTypes.string,
|
|
20
|
+
user: PropTypes.shape({
|
|
21
|
+
name: PropTypes.string.isRequired,
|
|
22
|
+
login: PropTypes.string.isRequired,
|
|
23
|
+
avatarUrl: PropTypes.string.isRequired,
|
|
24
|
+
email: PropTypes.string,
|
|
25
|
+
href: PropTypes.string,
|
|
26
|
+
online: PropTypes.bool,
|
|
27
|
+
banned: PropTypes.bool,
|
|
28
|
+
banReason: PropTypes.string,
|
|
29
|
+
unverifiedEmail: PropTypes.bool
|
|
30
|
+
}).isRequired,
|
|
31
|
+
wording: PropTypes.shape({
|
|
32
|
+
banned: PropTypes.string.isRequired,
|
|
33
|
+
online: PropTypes.string.isRequired,
|
|
34
|
+
offline: PropTypes.string.isRequired,
|
|
35
|
+
copyToClipboard: PropTypes.string,
|
|
36
|
+
copiedToClipboard: PropTypes.string,
|
|
37
|
+
copingToClipboardError: PropTypes.string,
|
|
38
|
+
unverified: PropTypes.string
|
|
39
|
+
})
|
|
40
|
+
};
|
|
41
|
+
static defaultProps = {
|
|
42
|
+
wording: {
|
|
43
|
+
banned: 'banned',
|
|
44
|
+
online: 'online',
|
|
45
|
+
offline: 'offline',
|
|
46
|
+
copyToClipboard: 'Copy email to clipboard',
|
|
47
|
+
copiedToClipboard: 'Email was copied to clipboard',
|
|
48
|
+
copingToClipboardError: 'Failed to copy to clipboard',
|
|
49
|
+
unverified: 'Unverified'
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
copyEmail = () => {
|
|
53
|
+
const wording = {
|
|
54
|
+
...UserCard.defaultProps.wording,
|
|
55
|
+
...this.props.wording
|
|
56
|
+
};
|
|
57
|
+
clipboard.copyText(this.props.user.email || '', wording.copiedToClipboard, wording.copingToClipboardError);
|
|
58
|
+
};
|
|
26
59
|
render() {
|
|
27
60
|
const {
|
|
28
61
|
children,
|
|
@@ -88,41 +121,5 @@ class UserCard extends PureComponent {
|
|
|
88
121
|
}))), children)));
|
|
89
122
|
}
|
|
90
123
|
}
|
|
91
|
-
_defineProperty(UserCard, "propTypes", {
|
|
92
|
-
children: PropTypes.node,
|
|
93
|
-
info: PropTypes.node,
|
|
94
|
-
className: PropTypes.string,
|
|
95
|
-
user: PropTypes.shape({
|
|
96
|
-
name: PropTypes.string.isRequired,
|
|
97
|
-
login: PropTypes.string.isRequired,
|
|
98
|
-
avatarUrl: PropTypes.string.isRequired,
|
|
99
|
-
email: PropTypes.string,
|
|
100
|
-
href: PropTypes.string,
|
|
101
|
-
online: PropTypes.bool,
|
|
102
|
-
banned: PropTypes.bool,
|
|
103
|
-
banReason: PropTypes.string,
|
|
104
|
-
unverifiedEmail: PropTypes.bool
|
|
105
|
-
}).isRequired,
|
|
106
|
-
wording: PropTypes.shape({
|
|
107
|
-
banned: PropTypes.string.isRequired,
|
|
108
|
-
online: PropTypes.string.isRequired,
|
|
109
|
-
offline: PropTypes.string.isRequired,
|
|
110
|
-
copyToClipboard: PropTypes.string,
|
|
111
|
-
copiedToClipboard: PropTypes.string,
|
|
112
|
-
copingToClipboardError: PropTypes.string,
|
|
113
|
-
unverified: PropTypes.string
|
|
114
|
-
})
|
|
115
|
-
});
|
|
116
|
-
_defineProperty(UserCard, "defaultProps", {
|
|
117
|
-
wording: {
|
|
118
|
-
banned: 'banned',
|
|
119
|
-
online: 'online',
|
|
120
|
-
offline: 'offline',
|
|
121
|
-
copyToClipboard: 'Copy email to clipboard',
|
|
122
|
-
copiedToClipboard: 'Email was copied to clipboard',
|
|
123
|
-
copingToClipboardError: 'Failed to copy to clipboard',
|
|
124
|
-
unverified: 'Unverified'
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
124
|
|
|
128
125
|
export { UserCard as U, modules_a4196c17 as m };
|
package/dist/_helpers/footer.js
CHANGED
|
@@ -48,6 +48,7 @@ function copyright(year) {
|
|
|
48
48
|
const FooterLine = /*#__PURE__*/memo(function FooterLine(props) {
|
|
49
49
|
const items = Array.isArray(props.item) ? props.item : [props.item];
|
|
50
50
|
function renderItem(item) {
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
52
|
if ( /*#__PURE__*/isValidElement(item) || typeof item !== 'object') {
|
|
52
53
|
return item;
|
|
53
54
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -10,14 +10,10 @@ var modules_b607bec2 = {"unit":"i__const_unit_0","filterWithTagsFocused":"filter
|
|
|
10
10
|
|
|
11
11
|
function noop() {}
|
|
12
12
|
class SelectFilter extends Component {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.input = el;
|
|
18
|
-
this.props.inputRef(el);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
13
|
+
static defaultProps = {
|
|
14
|
+
placeholder: 'Filter items',
|
|
15
|
+
inputRef: noop
|
|
16
|
+
};
|
|
21
17
|
componentWillUnmount() {
|
|
22
18
|
this.blur();
|
|
23
19
|
}
|
|
@@ -34,6 +30,11 @@ class SelectFilter extends Component {
|
|
|
34
30
|
this.input.blur();
|
|
35
31
|
}
|
|
36
32
|
}
|
|
33
|
+
input;
|
|
34
|
+
inputRef = el => {
|
|
35
|
+
this.input = el;
|
|
36
|
+
this.props.inputRef(el);
|
|
37
|
+
};
|
|
37
38
|
render() {
|
|
38
39
|
const {
|
|
39
40
|
className,
|
|
@@ -52,10 +53,6 @@ class SelectFilter extends Component {
|
|
|
52
53
|
})));
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
_defineProperty(SelectFilter, "defaultProps", {
|
|
56
|
-
placeholder: 'Filter items',
|
|
57
|
-
inputRef: noop
|
|
58
|
-
});
|
|
59
56
|
SelectFilter.propTypes = {
|
|
60
57
|
placeholder: PropTypes.string,
|
|
61
58
|
className: PropTypes.string,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Link from '../link/link.js';
|
|
@@ -6,6 +6,15 @@ import Link from '../link/link.js';
|
|
|
6
6
|
var modules_74a7bf8b = {"unit":"i__const_unit_0","light":"light_rui_e0d5","services":"services_rui_e0d5","active":"active_rui_e0d5","item":"item_rui_e0d5","itemLogo":"itemLogo_rui_e0d5","activeItem":"activeItem_rui_e0d5 item_rui_e0d5 active_rui_e0d5","line":"line_rui_e0d5","itemStacked":"itemStacked_rui_e0d5","activeItemStacked":"activeItemStacked_rui_e0d5 itemStacked_rui_e0d5 active_rui_e0d5"};
|
|
7
7
|
|
|
8
8
|
class ServicesLink extends PureComponent {
|
|
9
|
+
static propTypes = {
|
|
10
|
+
isActive: PropTypes.bool,
|
|
11
|
+
service: PropTypes.shape({
|
|
12
|
+
applicationName: PropTypes.string,
|
|
13
|
+
iconUrl: PropTypes.string,
|
|
14
|
+
homeUrl: PropTypes.string,
|
|
15
|
+
name: PropTypes.string
|
|
16
|
+
})
|
|
17
|
+
};
|
|
9
18
|
render() {
|
|
10
19
|
const {
|
|
11
20
|
service,
|
|
@@ -25,14 +34,5 @@ class ServicesLink extends PureComponent {
|
|
|
25
34
|
}, /*#__PURE__*/React.createElement(WrapText, null, service.name))] : /*#__PURE__*/React.createElement(WrapText, null, service.name));
|
|
26
35
|
}
|
|
27
36
|
}
|
|
28
|
-
_defineProperty(ServicesLink, "propTypes", {
|
|
29
|
-
isActive: PropTypes.bool,
|
|
30
|
-
service: PropTypes.shape({
|
|
31
|
-
applicationName: PropTypes.string,
|
|
32
|
-
iconUrl: PropTypes.string,
|
|
33
|
-
homeUrl: PropTypes.string,
|
|
34
|
-
name: PropTypes.string
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
37
|
|
|
38
38
|
export { ServicesLink as S, modules_74a7bf8b as m };
|