@jetbrains/ring-ui-built 7.0.66 → 7.0.70
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 +12 -17
- package/components/_helpers/avatar-info.js +4 -5
- package/components/_helpers/button.classes.js +20 -21
- package/components/_helpers/caption.js +3 -3
- package/components/_helpers/card.js +26 -32
- package/components/_helpers/dialog-body-scroll-preventer.js +1 -2
- package/components/_helpers/icon-svg.js +9 -12
- package/components/_helpers/input.js +78 -86
- package/components/_helpers/loader-core.js +260 -0
- package/components/_helpers/query-assist-suggestions.js +0 -1
- package/components/_helpers/select-filter.js +19 -26
- package/components/_helpers/services-link.js +9 -12
- package/components/_helpers/sidebar.js +36 -44
- package/components/_helpers/tab-link.js +9 -11
- package/components/_helpers/theme.js +20 -24
- package/components/_helpers/title.js +12 -17
- package/components/alert/alert.js +41 -49
- package/components/alert/container.js +9 -12
- package/components/alert-service/alert-service.js +23 -32
- package/components/analytics/analytics-custom-plugin.js +12 -17
- package/components/analytics/analytics.js +1 -3
- package/components/auth/auth-core.js +128 -170
- package/components/auth/auth.js +3 -10
- package/components/auth/background-flow.js +5 -8
- package/components/auth/down-notification.js +9 -17
- package/components/auth/iframe-flow.js +13 -19
- package/components/auth/request-builder.js +4 -9
- package/components/auth/response-parser.js +9 -12
- package/components/auth/storage.js +12 -18
- package/components/auth/token-validator.js +19 -30
- package/components/auth/window-flow.js +22 -27
- package/components/auth-dialog/auth-dialog.js +40 -48
- package/components/auth-dialog-service/auth-dialog-service.js +10 -13
- package/components/avatar/avatar.figma.js +6 -6
- package/components/avatar/avatar.js +58 -59
- package/components/avatar/fallback-avatar.js +8 -11
- package/components/avatar-stack/avatar-stack.figma.js +10 -11
- package/components/avatar-stack/avatar-stack.js +25 -31
- package/components/banner/banner.js +0 -6
- package/components/breadcrumbs/breadcrumbs.figma.js +8 -6
- package/components/breadcrumbs/breadcrumbs.js +4 -5
- package/components/button/button.figma.js +15 -10
- package/components/button/button.js +59 -64
- package/components/button-group/button-group.js +11 -15
- package/components/button-group/caption.js +0 -1
- package/components/button-set/button-set.js +9 -12
- package/components/button-toolbar/button-toolbar.js +8 -11
- package/components/caret/caret.js +20 -28
- package/components/checkbox/checkbox-group.figma.js +8 -10
- package/components/checkbox/checkbox.figma.js +5 -5
- package/components/checkbox/checkbox.js +27 -35
- package/components/clipboard/clipboard-fallback.js +3 -3
- package/components/clipboard/clipboard.js +3 -16
- package/components/code/code.js +8 -14
- package/components/collapse/collapse-content.js +10 -15
- package/components/collapse/collapse-control.js +5 -7
- package/components/collapse/collapse.js +9 -11
- package/components/collapse/utils.js +1 -1
- package/components/confirm/confirm.js +17 -26
- package/components/confirm-service/confirm-service.js +30 -31
- package/components/content-layout/content-layout.js +21 -28
- package/components/content-layout/sidebar.js +0 -2
- package/components/contenteditable/contenteditable.js +23 -28
- package/components/control-help/control-help.js +8 -10
- package/components/control-label/control-label.js +12 -17
- package/components/data-list/data-list.js +57 -65
- package/components/data-list/data-list.mock.js +0 -4
- package/components/data-list/item.js +65 -72
- package/components/data-list/selection.js +11 -19
- package/components/data-list/title.js +0 -4
- package/components/date-picker/consts.js +3 -4
- package/components/date-picker/date-input.js +25 -33
- package/components/date-picker/date-picker.js +179 -193
- package/components/date-picker/date-popup.js +135 -127
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +24 -30
- package/components/date-picker/month-names.js +7 -12
- package/components/date-picker/month-slider.js +16 -22
- package/components/date-picker/month.js +3 -5
- package/components/date-picker/months.js +6 -6
- package/components/date-picker/weekdays.js +0 -1
- package/components/date-picker/years.js +20 -26
- package/components/dialog/dialog-body-scroll-preventer.js +0 -1
- package/components/dialog/dialog.js +73 -83
- package/components/dropdown/anchor.js +0 -4
- package/components/dropdown/dropdown.js +98 -114
- package/components/dropdown-menu/dropdown-menu.js +80 -79
- package/components/editable-heading/editable-heading.js +48 -54
- package/components/error-bubble/error-bubble.figma.js +4 -4
- package/components/error-bubble/error-bubble.js +9 -13
- package/components/error-message/error-message.js +1 -6
- package/components/footer/footer.js +11 -15
- package/components/global/compose-refs.js +1 -4
- package/components/global/compose.js +1 -4
- package/components/global/configuration.js +3 -3
- package/components/global/controls-height.js +0 -1
- package/components/global/create-stateful-context.js +10 -14
- package/components/global/data-tests.js +2 -10
- package/components/global/dom.js +6 -19
- package/components/global/focus-sensor-hoc.js +74 -87
- package/components/global/fuzzy-highlight.js +3 -8
- package/components/global/get-uid.js +1 -1
- package/components/global/inject-styles.js +5 -6
- package/components/global/listeners.js +2 -11
- package/components/global/memoize.js +0 -2
- package/components/global/normalize-indent.js +2 -6
- package/components/global/promise-with-timeout.js +4 -5
- package/components/global/react-dom-renderer.js +4 -9
- package/components/global/rerender-hoc.js +8 -11
- package/components/global/schedule-raf.js +1 -2
- package/components/global/theme.js +0 -5
- package/components/global/trivial-template-tag.js +1 -6
- package/components/global/url.js +2 -6
- package/components/global/use-event-callback.js +2 -3
- package/components/grid/col.js +7 -18
- package/components/grid/grid.js +9 -14
- package/components/grid/row.js +7 -11
- package/components/group/group.js +9 -12
- package/components/header/header-icon.js +8 -13
- package/components/header/header.js +16 -27
- package/components/header/links.js +7 -10
- package/components/header/logo.js +12 -16
- package/components/header/profile.js +73 -83
- package/components/header/services-link.js +0 -2
- package/components/header/services.js +32 -43
- package/components/header/smart-profile.js +44 -59
- package/components/header/smart-services.js +33 -45
- package/components/header/tray.js +8 -10
- package/components/heading/heading.js +27 -27
- package/components/http/http.js +120 -125
- package/components/http/http.mock.js +6 -10
- package/components/hub-source/hub-source-user.js +6 -13
- package/components/hub-source/hub-source-users-groups.js +8 -12
- package/components/hub-source/hub-source.js +8 -10
- package/components/i18n/i18n-context.js +4 -7
- package/components/i18n/i18n.js +5 -5
- package/components/icon/icon-svg.js +0 -4
- package/components/icon/icon.js +28 -32
- package/components/icon/index.js +0 -4
- package/components/input/input.figma.js +8 -8
- package/components/input/input.js +0 -4
- package/components/island/adaptive-island-hoc.js +19 -23
- package/components/island/content.js +70 -75
- package/components/island/header.js +21 -21
- package/components/island/island.js +11 -14
- package/components/link/clickable-link.js +30 -37
- package/components/link/link.js +27 -29
- package/components/list/list-custom.js +6 -11
- package/components/list/list-item.js +49 -56
- package/components/list/list-separator.js +0 -1
- package/components/list/list-title.js +0 -1
- package/components/list/list-users-groups-source.js +14 -22
- package/components/list/list.classes.js +8 -9
- package/components/list/list.js +387 -404
- package/components/loader/loader-core.js +2 -265
- package/components/loader/loader.d.ts +8 -0
- package/components/loader/loader.js +43 -29
- package/components/loader-inline/loader-inline.js +9 -12
- package/components/loader-screen/loader-screen.js +10 -14
- package/components/login-dialog/login-dialog.js +46 -54
- package/components/login-dialog/service.js +13 -15
- package/components/message/message.js +65 -79
- package/components/old-browsers-message/old-browsers-message-stop.js +0 -3
- package/components/old-browsers-message/old-browsers-message.js +1 -4
- package/components/old-browsers-message/white-list.js +5 -7
- package/components/pager/pager.js +73 -88
- package/components/panel/panel.js +9 -12
- package/components/permissions/permissions-cache.js +6 -8
- package/components/permissions/permissions.js +19 -21
- package/components/popup/popup.js +136 -145
- package/components/popup/popup.target.js +8 -10
- package/components/popup/position-css.js +19 -27
- package/components/popup/position.js +22 -28
- package/components/popup-menu/popup-menu.js +27 -37
- package/components/progress-bar/progress-bar.js +26 -32
- package/components/query-assist/query-assist-suggestions.js +0 -6
- package/components/query-assist/query-assist.js +432 -468
- package/components/radio/radio-item.js +30 -40
- package/components/radio/radio.js +6 -10
- package/components/scrollable-section/scrollable-section.js +7 -10
- package/components/select/select-filter.js +0 -6
- package/components/select/select-popup.js +155 -174
- package/components/select/select.js +464 -479
- package/components/shortcuts/core.js +40 -45
- package/components/shortcuts/shortcut-title.js +0 -1
- package/components/shortcuts/shortcuts-hoc.js +9 -15
- package/components/shortcuts/shortcuts.js +3 -5
- package/components/slider/slider.js +53 -66
- package/components/slider/slider.utils.js +1 -4
- package/components/storage/storage-local.js +2 -8
- package/components/storage/storage.js +0 -5
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +21 -30
- package/components/table/cell.js +3 -4
- package/components/table/disable-hover-hoc.js +24 -28
- package/components/table/header-cell.js +30 -38
- package/components/table/header.js +20 -28
- package/components/table/multitable.js +81 -101
- package/components/table/row-with-focus-sensor.js +17 -28
- package/components/table/row.js +89 -99
- package/components/table/selection-adapter.js +0 -2
- package/components/table/selection-shortcuts-hoc.js +159 -161
- package/components/table/selection.js +23 -31
- package/components/table/simple-table.js +16 -22
- package/components/table/smart-table.js +19 -26
- package/components/table/table.js +137 -146
- package/components/tabs/collapsible-more.js +34 -47
- package/components/tabs/collapsible-tab.js +28 -33
- package/components/tabs/collapsible-tabs.js +16 -24
- package/components/tabs/custom-item.js +3 -6
- package/components/tabs/dumb-tabs.js +48 -64
- package/components/tabs/smart-tabs.js +14 -23
- package/components/tabs/tab-link.js +0 -2
- package/components/tabs/tab.js +0 -1
- package/components/tabs/tabs.js +0 -7
- package/components/tag/tag.js +30 -35
- package/components/tags-input/tags-input.js +192 -218
- package/components/tags-list/tags-list.js +26 -31
- package/components/text/text.js +16 -19
- package/components/toggle/toggle.js +19 -23
- package/components/tooltip/tooltip.js +110 -121
- package/components/upload/upload.js +19 -28
- package/components/user-agreement/service.js +247 -252
- package/components/user-agreement/toolbox.eula.js +160 -1
- package/components/user-agreement/user-agreement.js +23 -32
- package/components/user-card/card.js +0 -5
- package/components/user-card/smart-user-card-tooltip.js +41 -50
- package/components/user-card/tooltip.js +32 -38
- package/components/user-card/user-card.js +0 -5
- package/package.json +9 -3
- package/components/_helpers/_rollupPluginBabelHelpers.js +0 -72
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { createRoot } from 'react-dom/client';
|
|
4
3
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
|
@@ -6,7 +5,6 @@ import LoginDialog from './login-dialog.js';
|
|
|
6
5
|
import 'react';
|
|
7
6
|
import 'util-deprecate';
|
|
8
7
|
import '../global/configuration.js';
|
|
9
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
8
|
import '../dialog/dialog.js';
|
|
11
9
|
import 'react-dom';
|
|
12
10
|
import 'classnames';
|
|
@@ -23,7 +21,6 @@ import '../global/schedule-raf.js';
|
|
|
23
21
|
import '../global/get-uid.js';
|
|
24
22
|
import '../shortcuts/shortcuts.js';
|
|
25
23
|
import '../shortcuts/core.js';
|
|
26
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
27
24
|
import 'combokeys';
|
|
28
25
|
import '../global/sniffer.js';
|
|
29
26
|
import 'sniffr';
|
|
@@ -35,21 +32,19 @@ import '@jetbrains/icons/chevron-12px-down';
|
|
|
35
32
|
import '../icon/icon.js';
|
|
36
33
|
import '../icon/icon.constants.js';
|
|
37
34
|
import '../_helpers/icon-svg.js';
|
|
38
|
-
import 'core-js/modules/es.string.replace.js';
|
|
39
35
|
import '../global/memoize.js';
|
|
40
36
|
import '../link/clickable-link.js';
|
|
41
37
|
import '../_helpers/button.classes.js';
|
|
42
38
|
import '../popup/popup.target.js';
|
|
43
39
|
import '../popup/popup.js';
|
|
44
40
|
import '../popup/position.js';
|
|
45
|
-
import 'core-js/modules/es.array.sort.js';
|
|
46
41
|
import '../popup/popup.consts.js';
|
|
47
42
|
import '../popup/position-css.js';
|
|
48
43
|
import '../_helpers/dialog-body-scroll-preventer.js';
|
|
49
44
|
import 'scrollbar-width';
|
|
50
45
|
import '../loader-screen/loader-screen.js';
|
|
51
46
|
import '../loader/loader.js';
|
|
52
|
-
import '../
|
|
47
|
+
import '../_helpers/loader-core.js';
|
|
53
48
|
import '../auth/background-flow.js';
|
|
54
49
|
import '../auth/response-parser.js';
|
|
55
50
|
import '../global/url.js';
|
|
@@ -62,21 +57,24 @@ const reactRoot = createRoot(containerElement);
|
|
|
62
57
|
function renderLoginDialog(props) {
|
|
63
58
|
reactRoot.render(jsx(ControlsHeightContext.Provider, {
|
|
64
59
|
value: getGlobalControlsHeight(),
|
|
65
|
-
children: jsx(LoginDialog,
|
|
60
|
+
children: jsx(LoginDialog, {
|
|
61
|
+
...props
|
|
62
|
+
})
|
|
66
63
|
}));
|
|
67
64
|
}
|
|
68
65
|
function noop() {}
|
|
69
|
-
function showAuthDialog(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
function showAuthDialog(props = {
|
|
67
|
+
onCancel: noop
|
|
68
|
+
}) {
|
|
69
|
+
renderLoginDialog({
|
|
70
|
+
...props,
|
|
74
71
|
show: true
|
|
75
|
-
})
|
|
72
|
+
});
|
|
76
73
|
return () => {
|
|
77
|
-
renderLoginDialog(
|
|
74
|
+
renderLoginDialog({
|
|
75
|
+
...props,
|
|
78
76
|
show: false
|
|
79
|
-
})
|
|
77
|
+
});
|
|
80
78
|
};
|
|
81
79
|
}
|
|
82
80
|
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
3
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
2
|
import { Component } from 'react';
|
|
6
3
|
import classNames from 'classnames';
|
|
@@ -11,8 +8,6 @@ import Icon from '../icon/icon.js';
|
|
|
11
8
|
import { Button } from '../button/button.js';
|
|
12
9
|
import { I18nContext } from '../i18n/i18n-context.js';
|
|
13
10
|
import { T as Theme, d as darkStyles, W as WithThemeClasses, a as ThemeProvider } from '../_helpers/theme.js';
|
|
14
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
15
|
-
import 'core-js/modules/es.string.replace.js';
|
|
16
11
|
import 'react-dom';
|
|
17
12
|
import '../global/get-uid.js';
|
|
18
13
|
import '../global/schedule-raf.js';
|
|
@@ -26,7 +21,6 @@ import '../global/data-tests.js';
|
|
|
26
21
|
import '../tab-trap/tab-trap.js';
|
|
27
22
|
import '../global/configuration.js';
|
|
28
23
|
import '../popup/position.js';
|
|
29
|
-
import 'core-js/modules/es.array.sort.js';
|
|
30
24
|
import '../popup/popup.target.js';
|
|
31
25
|
import '../popup/position-css.js';
|
|
32
26
|
import 'util-deprecate';
|
|
@@ -113,22 +107,24 @@ const getTailOffsets = offset => ({
|
|
|
113
107
|
* Displays a popup containing a message.
|
|
114
108
|
*/
|
|
115
109
|
class Message extends Component {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
110
|
+
static defaultProps = {
|
|
111
|
+
icon: gift,
|
|
112
|
+
directions: [Directions.TOP_RIGHT, Directions.TOP_LEFT, Directions.TOP_CENTER, Directions.BOTTOM_RIGHT, Directions.BOTTOM_LEFT, Directions.BOTTOM_CENTER, Directions.RIGHT_TOP, Directions.RIGHT_BOTTOM, Directions.RIGHT_CENTER, Directions.LEFT_TOP, Directions.LEFT_BOTTOM, Directions.LEFT_CENTER],
|
|
113
|
+
theme: Theme.DARK
|
|
114
|
+
};
|
|
115
|
+
state = {};
|
|
116
|
+
static Directions = Directions;
|
|
117
|
+
static PopupProps = Popup.PopupProps;
|
|
118
|
+
_onDirectionChange = direction => this.setState({
|
|
119
|
+
direction
|
|
120
|
+
});
|
|
121
|
+
popup;
|
|
122
|
+
node;
|
|
123
|
+
popupRef = el => {
|
|
124
|
+
this.popup = el;
|
|
125
|
+
this.node = this.popup?.node;
|
|
126
|
+
};
|
|
130
127
|
getTailOffset() {
|
|
131
|
-
var _this$popup2;
|
|
132
128
|
const DEFAULT_OFFSET = 32;
|
|
133
129
|
const {
|
|
134
130
|
popupProps
|
|
@@ -136,14 +132,14 @@ class Message extends Component {
|
|
|
136
132
|
if (this.props.tailOffset) {
|
|
137
133
|
return this.props.tailOffset;
|
|
138
134
|
}
|
|
139
|
-
const anchor =
|
|
135
|
+
const anchor = popupProps?.anchorElement || this.popup?.parent;
|
|
140
136
|
if (!anchor) {
|
|
141
137
|
return DEFAULT_OFFSET;
|
|
142
138
|
}
|
|
143
139
|
const offset = Math.floor(anchor.offsetWidth / 2);
|
|
144
140
|
const isOpenedToRight = this.state.direction && [Directions.TOP_RIGHT, Directions.BOTTOM_RIGHT].includes(this.state.direction);
|
|
145
|
-
if (popupProps
|
|
146
|
-
return offset -
|
|
141
|
+
if (popupProps?.left && isOpenedToRight) {
|
|
142
|
+
return offset - popupProps?.left;
|
|
147
143
|
}
|
|
148
144
|
return offset;
|
|
149
145
|
}
|
|
@@ -170,63 +166,53 @@ class Message extends Component {
|
|
|
170
166
|
direction
|
|
171
167
|
} = this.state;
|
|
172
168
|
return jsx(I18nContext.Consumer, {
|
|
173
|
-
children:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}
|
|
169
|
+
children: ({
|
|
170
|
+
translate
|
|
171
|
+
}) => jsx(WithThemeClasses, {
|
|
172
|
+
theme: theme,
|
|
173
|
+
children: themeClasses => {
|
|
174
|
+
var _translations$gotIt, _translations$dismiss;
|
|
175
|
+
return jsx(Popup, {
|
|
176
|
+
ref: this.popupRef,
|
|
177
|
+
hidden: false,
|
|
178
|
+
directions: popupDirections,
|
|
179
|
+
className: classNames(classes, themeClasses),
|
|
180
|
+
offset: UNIT * 2,
|
|
181
|
+
onDirectionChange: this._onDirectionChange,
|
|
182
|
+
...popupProps,
|
|
183
|
+
children: jsxs(ThemeProvider, {
|
|
184
|
+
theme: theme,
|
|
185
|
+
passToPopups: true,
|
|
186
|
+
children: [direction && jsx("div", {
|
|
187
|
+
className: tailClasses,
|
|
188
|
+
style: getTailOffsets(this.getTailOffset())[direction]
|
|
189
|
+
}), icon && jsx(Icon, {
|
|
190
|
+
className: styles.icon,
|
|
191
|
+
glyph: icon
|
|
192
|
+
}), title && jsx("h1", {
|
|
193
|
+
"data-test": 'rgMessageTitle',
|
|
194
|
+
className: styles.title,
|
|
195
|
+
children: title
|
|
196
|
+
}), children && jsx("div", {
|
|
197
|
+
className: styles.description,
|
|
198
|
+
children: children
|
|
199
|
+
}), (onClose || buttonProps) && jsx(Button, {
|
|
200
|
+
className: styles.gotIt,
|
|
201
|
+
onClick: onClose,
|
|
202
|
+
primary: true,
|
|
203
|
+
...buttonProps,
|
|
204
|
+
children: (_translations$gotIt = translations?.gotIt) !== null && _translations$gotIt !== void 0 ? _translations$gotIt : translate('gotIt')
|
|
205
|
+
}), onDismiss && jsx(Button, {
|
|
206
|
+
onClick: onDismiss,
|
|
207
|
+
inline: true,
|
|
208
|
+
children: (_translations$dismiss = translations?.dismiss) !== null && _translations$dismiss !== void 0 ? _translations$dismiss : translate('dismiss')
|
|
209
|
+
})]
|
|
210
|
+
})
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
})
|
|
221
214
|
});
|
|
222
215
|
}
|
|
223
216
|
}
|
|
224
|
-
_defineProperty(Message, "defaultProps", {
|
|
225
|
-
icon: gift,
|
|
226
|
-
directions: [Directions.TOP_RIGHT, Directions.TOP_LEFT, Directions.TOP_CENTER, Directions.BOTTOM_RIGHT, Directions.BOTTOM_LEFT, Directions.BOTTOM_CENTER, Directions.RIGHT_TOP, Directions.RIGHT_BOTTOM, Directions.RIGHT_CENTER, Directions.LEFT_TOP, Directions.LEFT_BOTTOM, Directions.LEFT_CENTER],
|
|
227
|
-
theme: Theme.DARK
|
|
228
|
-
});
|
|
229
|
-
_defineProperty(Message, "Directions", Directions);
|
|
230
|
-
_defineProperty(Message, "PopupProps", Popup.PopupProps);
|
|
231
217
|
|
|
232
218
|
export { Message as default };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export { stop as default } from './old-browsers-message.js';
|
|
2
2
|
import './white-list.js';
|
|
3
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
5
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
3
|
import '../global/sniffer.js';
|
|
7
4
|
import 'sniffr';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { isBrowserInWhiteList } from './white-list.js';
|
|
2
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
2
|
import '../global/sniffer.js';
|
|
6
3
|
import 'sniffr';
|
|
7
4
|
|
|
@@ -30,7 +27,7 @@ function changeSmileClickListener(event) {
|
|
|
30
27
|
if (smileChanges >= MAX_SMILE_CHANGES) {
|
|
31
28
|
return '\\\\ (x_x) //';
|
|
32
29
|
}
|
|
33
|
-
return
|
|
30
|
+
return `{{ (${getRandomEye()}_${getRandomEye()}) }}`;
|
|
34
31
|
}
|
|
35
32
|
target.innerHTML = getRandomSmile();
|
|
36
33
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
3
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
1
|
import sniffr from '../global/sniffer.js';
|
|
5
2
|
import 'sniffr';
|
|
6
3
|
|
|
@@ -8,11 +5,11 @@ const MAJOR_VERSION_INDEX = 0;
|
|
|
8
5
|
/**
|
|
9
6
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
|
10
7
|
*/
|
|
11
|
-
if (!["and_chr
|
|
8
|
+
if (!["and_chr 141", "and_ff 143", "and_qq 14.9", "and_uc 15.5", "android 141", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 119", "chrome 118", "chrome 117", "chrome 116", "chrome 115", "chrome 114", "chrome 113", "chrome 112", "chrome 111", "chrome 109", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "edge 119", "edge 118", "edge 117", "edge 116", "edge 115", "edge 114", "edge 113", "edge 112", "edge 111", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "firefox 120", "firefox 119", "firefox 118", "firefox 117", "firefox 116", "firefox 115", "firefox 114", "firefox 113", "firefox 112", "ios_saf 26.0", "ios_saf 18.5-18.6", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "ios_saf 17.1", "ios_saf 17.0", "ios_saf 16.6-16.7", "ios_saf 16.5", "ios_saf 16.4", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 122", "opera 121", "safari 26.0", "safari 18.5-18.6", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "safari 17.1", "safari 17.0", "safari 16.6", "safari 16.5", "safari 16.4", "samsung 28", "samsung 27"]) {
|
|
12
9
|
// eslint-disable-next-line no-console
|
|
13
10
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
|
14
11
|
}
|
|
15
|
-
const SUPPORTED = ["and_chr
|
|
12
|
+
const SUPPORTED = ["and_chr 141", "and_ff 143", "and_qq 14.9", "and_uc 15.5", "android 141", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 119", "chrome 118", "chrome 117", "chrome 116", "chrome 115", "chrome 114", "chrome 113", "chrome 112", "chrome 111", "chrome 109", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "edge 119", "edge 118", "edge 117", "edge 116", "edge 115", "edge 114", "edge 113", "edge 112", "edge 111", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "firefox 120", "firefox 119", "firefox 118", "firefox 117", "firefox 116", "firefox 115", "firefox 114", "firefox 113", "firefox 112", "ios_saf 26.0", "ios_saf 18.5-18.6", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "ios_saf 17.1", "ios_saf 17.0", "ios_saf 16.6-16.7", "ios_saf 16.5", "ios_saf 16.4", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 122", "opera 121", "safari 26.0", "safari 18.5-18.6", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "safari 17.1", "safari 17.0", "safari 16.6", "safari 16.5", "safari 16.4", "samsung 28", "samsung 27"] || [];
|
|
16
13
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
|
17
14
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
|
18
15
|
var _item$match;
|
|
@@ -20,9 +17,10 @@ const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
|
|
20
17
|
if (!WHITE_LISTED_BROWSERS.includes(browserName)) {
|
|
21
18
|
return acc;
|
|
22
19
|
}
|
|
23
|
-
return
|
|
20
|
+
return {
|
|
21
|
+
...acc,
|
|
24
22
|
[browserName]: parseInt(version, 10)
|
|
25
|
-
}
|
|
23
|
+
};
|
|
26
24
|
}, {});
|
|
27
25
|
function isBrowserInWhiteList() {
|
|
28
26
|
return sniffr.browser.version[MAJOR_VERSION_INDEX] >= WHITE_LIST[sniffr.browser.name];
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
2
|
import { PureComponent } from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
@@ -22,16 +20,12 @@ import '../global/configuration.js';
|
|
|
22
20
|
import '../_helpers/button.classes.js';
|
|
23
21
|
import '../icon/icon.constants.js';
|
|
24
22
|
import '../_helpers/icon-svg.js';
|
|
25
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
26
|
-
import 'core-js/modules/es.string.replace.js';
|
|
27
23
|
import '../global/data-tests.js';
|
|
28
24
|
import '../control-label/control-label.js';
|
|
29
25
|
import '../control-help/control-help.js';
|
|
30
26
|
import '../_helpers/caption.js';
|
|
31
|
-
import 'core-js/modules/es.string.trim.js';
|
|
32
27
|
import '@jetbrains/icons/close-12px';
|
|
33
28
|
import 'dequal';
|
|
34
|
-
import '../dropdown/dropdown.js';
|
|
35
29
|
import '../global/typescript-utils.js';
|
|
36
30
|
import '../_helpers/anchor.js';
|
|
37
31
|
import '../avatar/avatar.js';
|
|
@@ -51,12 +45,10 @@ import '../global/sniffer.js';
|
|
|
51
45
|
import 'sniffr';
|
|
52
46
|
import '../tab-trap/tab-trap.js';
|
|
53
47
|
import '../popup/position.js';
|
|
54
|
-
import 'core-js/modules/es.array.sort.js';
|
|
55
48
|
import '../popup/popup.consts.js';
|
|
56
49
|
import '../popup/popup.target.js';
|
|
57
50
|
import '../popup/position-css.js';
|
|
58
51
|
import '../list/list.js';
|
|
59
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
60
52
|
import 'react-virtualized/dist/es/List';
|
|
61
53
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
62
54
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
@@ -94,45 +86,21 @@ import '../i18n/i18n.js';
|
|
|
94
86
|
var style = {"pager":"ring-pager-pager","links":"ring-pager-links","link":"ring-pager-link","linkDisabled":"ring-pager-linkDisabled","actions":"ring-pager-actions","pageSize":"ring-pager-pageSize"};
|
|
95
87
|
|
|
96
88
|
class Pager extends PureComponent {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
_defineProperty(this, "handleNextClick", () => {
|
|
115
|
-
const {
|
|
116
|
-
currentPage,
|
|
117
|
-
onLoadPage
|
|
118
|
-
} = this.props;
|
|
119
|
-
const nextPage = currentPage + 1;
|
|
120
|
-
const total = this.getTotalPages();
|
|
121
|
-
if (currentPage !== total) {
|
|
122
|
-
var _this$props$onPageCha2, _this$props2;
|
|
123
|
-
(_this$props$onPageCha2 = (_this$props2 = this.props).onPageChange) === null || _this$props$onPageCha2 === void 0 || _this$props$onPageCha2.call(_this$props2, nextPage);
|
|
124
|
-
} else if (this.props.openTotal) {
|
|
125
|
-
onLoadPage(nextPage);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
_defineProperty(this, "handlePageChange", memoize(i => event => {
|
|
129
|
-
var _this$props$onPageCha3, _this$props3;
|
|
130
|
-
(_this$props$onPageCha3 = (_this$props3 = this.props).onPageChange) === null || _this$props$onPageCha3 === void 0 || _this$props$onPageCha3.call(_this$props3, i, event);
|
|
131
|
-
}));
|
|
132
|
-
_defineProperty(this, "handleLoadMore", memoize(i => () => {
|
|
133
|
-
this.props.onLoadPage(i);
|
|
134
|
-
}));
|
|
135
|
-
}
|
|
89
|
+
static defaultProps = {
|
|
90
|
+
currentPage: 1,
|
|
91
|
+
pageSize: 50,
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
93
|
+
pageSizes: [20, 50, 100],
|
|
94
|
+
visiblePagesLimit: 7,
|
|
95
|
+
disablePageSizeSelector: false,
|
|
96
|
+
openTotal: false,
|
|
97
|
+
canLoadLastPageWithOpenTotal: false,
|
|
98
|
+
loader: false,
|
|
99
|
+
loaderNavigation: false,
|
|
100
|
+
onPageSizeChange: () => {},
|
|
101
|
+
onLoadPage: () => {}
|
|
102
|
+
};
|
|
103
|
+
static contextType = I18nContext;
|
|
136
104
|
getSelectOptions() {
|
|
137
105
|
const {
|
|
138
106
|
pageSize,
|
|
@@ -142,10 +110,10 @@ class Pager extends PureComponent {
|
|
|
142
110
|
translate
|
|
143
111
|
} = this.context;
|
|
144
112
|
const data = pageSizes.map(size => {
|
|
145
|
-
var _this$props$translati
|
|
113
|
+
var _this$props$translati;
|
|
146
114
|
return {
|
|
147
115
|
key: size,
|
|
148
|
-
label:
|
|
116
|
+
label: `${size} ${(_this$props$translati = this.props.translations?.perPage) !== null && _this$props$translati !== void 0 ? _this$props$translati : translate('perPage')}`
|
|
149
117
|
};
|
|
150
118
|
});
|
|
151
119
|
const selected = data.find(it => it.key === pageSize);
|
|
@@ -161,15 +129,48 @@ class Pager extends PureComponent {
|
|
|
161
129
|
} = this.props;
|
|
162
130
|
return Math.ceil(total / pageSize);
|
|
163
131
|
}
|
|
132
|
+
handlePageSizeChange = item => {
|
|
133
|
+
if (item) {
|
|
134
|
+
this.props.onPageSizeChange(item.key);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
handlePrevClick = () => {
|
|
138
|
+
const {
|
|
139
|
+
currentPage
|
|
140
|
+
} = this.props;
|
|
141
|
+
if (currentPage !== 1) {
|
|
142
|
+
const prevPage = currentPage - 1;
|
|
143
|
+
this.props.onPageChange?.(prevPage);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
handleNextClick = () => {
|
|
147
|
+
const {
|
|
148
|
+
currentPage,
|
|
149
|
+
onLoadPage
|
|
150
|
+
} = this.props;
|
|
151
|
+
const nextPage = currentPage + 1;
|
|
152
|
+
const total = this.getTotalPages();
|
|
153
|
+
if (currentPage !== total) {
|
|
154
|
+
this.props.onPageChange?.(nextPage);
|
|
155
|
+
} else if (this.props.openTotal) {
|
|
156
|
+
onLoadPage(nextPage);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
handlePageChange = memoize(i => event => {
|
|
160
|
+
this.props.onPageChange?.(i, event);
|
|
161
|
+
});
|
|
162
|
+
handleLoadMore = memoize(i => () => {
|
|
163
|
+
this.props.onLoadPage(i);
|
|
164
|
+
});
|
|
164
165
|
getButton(page, content, key, active) {
|
|
165
|
-
return jsx(Button,
|
|
166
|
+
return jsx(Button, {
|
|
166
167
|
href: this.generateHref(page),
|
|
167
168
|
active: active,
|
|
168
169
|
disabled: this.props.loader && !active && !this.props.loaderNavigation,
|
|
169
|
-
loader: this.props.loader && active
|
|
170
|
-
|
|
170
|
+
loader: this.props.loader && active,
|
|
171
|
+
...this.getClickProps(this.handlePageChange(page)),
|
|
171
172
|
children: content
|
|
172
|
-
}
|
|
173
|
+
}, key);
|
|
173
174
|
}
|
|
174
175
|
getClickProps(onClick) {
|
|
175
176
|
const {
|
|
@@ -203,7 +204,7 @@ class Pager extends PureComponent {
|
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
206
|
getPagerLinks() {
|
|
206
|
-
var _this$props$
|
|
207
|
+
var _this$props$translati2, _this$props$translati3;
|
|
207
208
|
const {
|
|
208
209
|
translate
|
|
209
210
|
} = this.context;
|
|
@@ -215,8 +216,8 @@ class Pager extends PureComponent {
|
|
|
215
216
|
const prevIcon = jsx(Icon, {
|
|
216
217
|
glyph: chevronLeftIcon
|
|
217
218
|
}, 'icon');
|
|
218
|
-
const prevText = (_this$props$
|
|
219
|
-
const nextText = (_this$props$
|
|
219
|
+
const prevText = (_this$props$translati2 = this.props.translations?.previousPage) !== null && _this$props$translati2 !== void 0 ? _this$props$translati2 : translate('previousPage');
|
|
220
|
+
const nextText = (_this$props$translati3 = this.props.translations?.nextPage) !== null && _this$props$translati3 !== void 0 ? _this$props$translati3 : translate('nextPage');
|
|
220
221
|
const nextLinkContent = [jsx("span", {
|
|
221
222
|
children: nextText
|
|
222
223
|
}, 'text'), nextIcon];
|
|
@@ -231,22 +232,22 @@ class Pager extends PureComponent {
|
|
|
231
232
|
});
|
|
232
233
|
return jsxs("div", {
|
|
233
234
|
className: style.links,
|
|
234
|
-
children: [prevLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? jsx(Link,
|
|
235
|
+
children: [prevLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? jsx(Link, {
|
|
235
236
|
href: prevLinkHref,
|
|
236
|
-
className: style.link
|
|
237
|
-
|
|
237
|
+
className: style.link,
|
|
238
|
+
...this.getClickProps(this.handlePrevClick),
|
|
238
239
|
children: prevLinkContent
|
|
239
|
-
})
|
|
240
|
+
}) : jsxs("span", {
|
|
240
241
|
className: disabledLinkClasses,
|
|
241
242
|
children: [prevIcon, jsx("span", {
|
|
242
243
|
children: prevText
|
|
243
244
|
}, 'text')]
|
|
244
|
-
}), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? jsx(Link,
|
|
245
|
+
}), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? jsx(Link, {
|
|
245
246
|
href: nextLinkHref,
|
|
246
|
-
className: style.link
|
|
247
|
-
|
|
247
|
+
className: style.link,
|
|
248
|
+
...this.getClickProps(this.handleNextClick),
|
|
248
249
|
children: nextLinkContent
|
|
249
|
-
})
|
|
250
|
+
}) : jsxs("span", {
|
|
250
251
|
className: disabledLinkClasses,
|
|
251
252
|
children: [jsx("span", {
|
|
252
253
|
children: nextText
|
|
@@ -263,7 +264,7 @@ class Pager extends PureComponent {
|
|
|
263
264
|
}
|
|
264
265
|
// eslint-disable-next-line complexity
|
|
265
266
|
getPagerContent() {
|
|
266
|
-
var _this$props$
|
|
267
|
+
var _this$props$translati4, _this$props$translati5;
|
|
267
268
|
const {
|
|
268
269
|
currentPage,
|
|
269
270
|
visiblePagesLimit
|
|
@@ -273,8 +274,7 @@ class Pager extends PureComponent {
|
|
|
273
274
|
translate
|
|
274
275
|
} = this.context;
|
|
275
276
|
if (totalPages < this.props.currentPage) {
|
|
276
|
-
|
|
277
|
-
(_this$props$onPageCha4 = (_this$props4 = this.props).onPageChange) === null || _this$props$onPageCha4 === void 0 || _this$props$onPageCha4.call(_this$props4, totalPages);
|
|
277
|
+
this.props.onPageChange?.(totalPages);
|
|
278
278
|
}
|
|
279
279
|
let start = 1;
|
|
280
280
|
let end = totalPages;
|
|
@@ -306,14 +306,14 @@ class Pager extends PureComponent {
|
|
|
306
306
|
children: [this.getPagerLinks(), jsxs("div", {
|
|
307
307
|
className: style.actions,
|
|
308
308
|
children: [jsxs(ButtonToolbar, {
|
|
309
|
-
children: [start > 1 && this.getButton(1, (_this$props$
|
|
310
|
-
children: [start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && jsx(Button,
|
|
309
|
+
children: [start > 1 && this.getButton(1, (_this$props$translati4 = this.props.translations?.firstPage) !== null && _this$props$translati4 !== void 0 ? _this$props$translati4 : translate('firstPage')), jsxs(ButtonGroup, {
|
|
310
|
+
children: [start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && jsx(Button, {
|
|
311
311
|
href: this.generateHref(end + 1),
|
|
312
|
-
disabled: this.props.loader
|
|
313
|
-
|
|
312
|
+
disabled: this.props.loader,
|
|
313
|
+
...this.getClickProps(this.handleLoadMore(end + 1)),
|
|
314
314
|
children: '...'
|
|
315
|
-
})
|
|
316
|
-
}), lastPageButtonAvailable && this.getButton(this.props.openTotal ? -1 : totalPages, (_this$props$
|
|
315
|
+
})]
|
|
316
|
+
}), lastPageButtonAvailable && this.getButton(this.props.openTotal ? -1 : totalPages, (_this$props$translati5 = this.props.translations?.lastPage) !== null && _this$props$translati5 !== void 0 ? _this$props$translati5 : translate('lastPage'))]
|
|
317
317
|
}), this.getPageSizeSelector()]
|
|
318
318
|
})]
|
|
319
319
|
});
|
|
@@ -331,20 +331,5 @@ class Pager extends PureComponent {
|
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
_defineProperty(Pager, "defaultProps", {
|
|
335
|
-
currentPage: 1,
|
|
336
|
-
pageSize: 50,
|
|
337
|
-
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
338
|
-
pageSizes: [20, 50, 100],
|
|
339
|
-
visiblePagesLimit: 7,
|
|
340
|
-
disablePageSizeSelector: false,
|
|
341
|
-
openTotal: false,
|
|
342
|
-
canLoadLastPageWithOpenTotal: false,
|
|
343
|
-
loader: false,
|
|
344
|
-
loaderNavigation: false,
|
|
345
|
-
onPageSizeChange: () => {},
|
|
346
|
-
onLoadPage: () => {}
|
|
347
|
-
});
|
|
348
|
-
_defineProperty(Pager, "contextType", I18nContext);
|
|
349
334
|
|
|
350
335
|
export { Pager as default };
|