@jetbrains/ring-ui-built 6.0.28 → 6.0.29
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/_rollupPluginBabelHelpers.js +4 -15
- package/components/_helpers/anchor.js +1 -1
- package/components/_helpers/caption.js +4 -6
- package/components/_helpers/card.js +5 -7
- package/components/_helpers/icon__svg.js +1 -1
- package/components/_helpers/input.js +12 -14
- package/components/_helpers/query-assist__suggestions.js +2 -3
- package/components/_helpers/select__filter.js +6 -8
- package/components/_helpers/services-link.js +4 -6
- package/components/_helpers/sidebar.js +9 -11
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/theme.js +1 -1
- package/components/_helpers/title.js +7 -9
- package/components/alert/alert.js +17 -19
- package/components/alert/container.js +4 -6
- package/components/alert-service/alert-service.js +9 -10
- package/components/analytics/analytics.js +2 -3
- package/components/analytics/analytics__custom-plugin.js +2 -3
- package/components/auth/auth.js +9 -8
- package/components/auth/auth__core.js +16 -16
- package/components/auth/background-flow.js +4 -5
- package/components/auth/down-notification.js +7 -7
- package/components/auth/iframe-flow.js +7 -8
- package/components/auth/request-builder.js +3 -4
- package/components/auth/response-parser.js +10 -12
- package/components/auth/storage.js +10 -11
- package/components/auth/token-validator.js +12 -14
- package/components/auth/window-flow.js +4 -5
- package/components/auth-dialog/auth-dialog.js +13 -15
- package/components/auth-dialog-service/auth-dialog-service.js +7 -7
- package/components/avatar/avatar.js +14 -16
- package/components/avatar/fallback-avatar.js +5 -5
- package/components/badge/badge.js +6 -8
- package/components/button/button.js +7 -9
- package/components/button-group/button-group.js +6 -8
- package/components/button-set/button-set.js +6 -8
- package/components/button-toolbar/button-toolbar.js +6 -8
- package/components/caret/caret.js +7 -8
- package/components/checkbox/checkbox.js +7 -9
- package/components/clipboard/clipboard.js +8 -8
- package/components/code/code.js +12 -14
- package/components/collapse/collapse-content.js +7 -7
- package/components/collapse/collapse-control.js +2 -2
- package/components/collapse/collapse.js +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +6 -6
- package/components/content-layout/content-layout.js +7 -9
- package/components/contenteditable/contenteditable.js +4 -6
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.js +19 -23
- package/components/data-list/data-list.mock.js +2 -2
- package/components/data-list/item.js +12 -14
- package/components/data-list/selection.js +10 -12
- package/components/data-list/title.js +1 -1
- package/components/date-picker/consts.js +2 -2
- package/components/date-picker/date-input.js +12 -14
- package/components/date-picker/date-picker.js +19 -21
- package/components/date-picker/date-popup.js +23 -25
- package/components/date-picker/day.js +14 -16
- package/components/date-picker/month-names.js +7 -9
- package/components/date-picker/month-slider.js +10 -12
- package/components/date-picker/month.js +5 -5
- package/components/date-picker/months.js +4 -4
- package/components/date-picker/weekdays.js +3 -3
- package/components/date-picker/years.js +12 -14
- package/components/dialog/dialog.js +18 -20
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.js +13 -15
- package/components/dropdown-menu/dropdown-menu.js +10 -10
- package/components/editable-heading/editable-heading.js +5 -5
- package/components/error-bubble/error-bubble.js +11 -13
- package/components/error-message/error-message.js +6 -8
- package/components/footer/footer.js +2 -2
- package/components/global/create-stateful-context.js +1 -1
- package/components/global/data-tests.js +3 -3
- package/components/global/dom.js +7 -8
- package/components/global/focus-sensor-hoc.js +15 -17
- package/components/global/fuzzy-highlight.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/inject-styles.js +1 -1
- package/components/global/listeners.js +4 -5
- package/components/global/memoize.js +1 -1
- package/components/global/normalize-indent.js +5 -5
- package/components/global/react-dom-renderer.js +7 -9
- package/components/global/rerender-hoc.js +5 -7
- package/components/global/theme.js +7 -7
- package/components/global/trivial-template-tag.js +2 -2
- package/components/global/url.js +1 -1
- package/components/grid/col.js +7 -9
- package/components/grid/grid.js +6 -8
- package/components/grid/row.js +5 -7
- package/components/group/group.js +4 -6
- package/components/header/header.js +13 -14
- package/components/header/logo.js +5 -7
- package/components/header/profile.js +12 -14
- package/components/header/services-link.js +2 -2
- package/components/header/services.js +12 -14
- package/components/header/smart-profile.js +17 -18
- package/components/header/smart-services.js +16 -17
- package/components/header/tray-icon.js +5 -7
- package/components/header/tray.js +4 -6
- package/components/heading/heading.js +1 -1
- package/components/http/http.js +11 -13
- package/components/http/http.mock.js +15 -17
- package/components/hub-source/hub-source.js +4 -5
- package/components/hub-source/hub-source__user.js +6 -6
- package/components/hub-source/hub-source__users-groups.js +4 -5
- package/components/i18n/i18n.js +1 -1
- package/components/icon/icon.js +5 -7
- package/components/icon/icon__svg.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.js +1 -1
- package/components/island/adaptive-island-hoc.js +6 -8
- package/components/island/content.js +13 -15
- package/components/island/header.js +4 -6
- package/components/island/island.js +6 -8
- package/components/island-legacy/content-legacy.js +4 -6
- package/components/island-legacy/header-legacy.js +4 -6
- package/components/island-legacy/island-legacy.js +4 -6
- package/components/link/clickableLink.js +5 -7
- package/components/link/link.js +6 -8
- package/components/list/list.js +47 -49
- package/components/list/list__custom.js +6 -8
- package/components/list/list__hint.js +4 -6
- package/components/list/list__item.js +13 -15
- package/components/list/list__link.js +5 -7
- package/components/list/list__separator.js +4 -6
- package/components/list/list__title.js +4 -6
- package/components/list/list__users-groups-source.js +11 -13
- package/components/loader/loader.js +9 -11
- package/components/loader/loader__core.js +7 -9
- package/components/loader-inline/loader-inline.js +6 -8
- package/components/loader-screen/loader-screen.js +7 -9
- package/components/login-dialog/login-dialog.js +12 -14
- package/components/login-dialog/service.js +7 -7
- package/components/markdown/markdown.js +4 -6
- package/components/message/message.js +17 -19
- package/components/old-browsers-message/old-browsers-message.js +1 -1
- package/components/old-browsers-message/old-browsers-message__stop.js +1 -1
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +16 -18
- package/components/panel/panel.js +4 -6
- package/components/permissions/permissions.js +4 -5
- package/components/permissions/permissions__cache.js +2 -3
- package/components/popup/popup.js +33 -35
- package/components/popup/popup.target.js +1 -1
- package/components/popup/position.js +9 -9
- package/components/popup-menu/popup-menu.js +14 -16
- package/components/progress-bar/progress-bar.js +8 -10
- package/components/query-assist/query-assist.js +64 -66
- package/components/query-assist/query-assist__suggestions.js +6 -6
- package/components/radio/radio.js +5 -7
- package/components/radio/radio__item.js +9 -11
- package/components/select/select.js +48 -50
- package/components/select/select__filter.js +6 -6
- package/components/select/select__popup.js +36 -38
- package/components/shortcuts/core.js +7 -8
- package/components/shortcuts/shortcuts-hoc.js +8 -10
- package/components/shortcuts/shortcuts.js +8 -10
- package/components/slider/slider.js +6 -6
- package/components/slider/slider.utils.js +4 -4
- package/components/storage/storage.js +8 -8
- package/components/storage/storage__fallback.js +5 -6
- package/components/storage/storage__local.js +9 -10
- package/components/tab-trap/tab-trap.js +24 -26
- package/components/table/cell.js +6 -8
- package/components/table/disable-hover-hoc.js +7 -9
- package/components/table/header-cell.d.ts +1 -0
- package/components/table/header-cell.js +8 -10
- package/components/table/header.d.ts +2 -1
- package/components/table/header.js +15 -10
- package/components/table/multitable.js +13 -15
- package/components/table/row-with-focus-sensor.js +14 -16
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +29 -23
- package/components/table/selection-adapter.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +19 -21
- package/components/table/selection.js +4 -5
- package/components/table/smart-table.d.ts +2 -1
- package/components/table/smart-table.js +10 -12
- package/components/table/table.d.ts +2 -1
- package/components/table/table.js +29 -30
- package/components/tabs/collapsible-more.js +8 -8
- package/components/tabs/collapsible-tab.js +3 -3
- package/components/tabs/collapsible-tabs.js +10 -10
- package/components/tabs/dumb-tabs.js +11 -13
- package/components/tabs/smart-tabs.js +13 -15
- package/components/tabs/tab-link.js +2 -2
- package/components/tabs/tab.js +6 -8
- package/components/tabs/tabs.js +5 -5
- package/components/tag/tag.js +9 -11
- package/components/tags-input/tags-input.js +39 -41
- package/components/tags-list/tags-list.js +5 -7
- package/components/text/text.js +4 -6
- package/components/toggle/toggle.js +6 -8
- package/components/tooltip/tooltip.js +27 -29
- package/components/user-agreement/service.js +7 -7
- package/components/user-agreement/user-agreement.js +11 -13
- package/components/user-card/card.js +9 -9
- package/components/user-card/smart-user-card-tooltip.js +14 -16
- package/components/user-card/tooltip.js +11 -13
- package/components/user-card/user-card.js +9 -9
- package/package.json +1 -1
@@ -1,14 +1,14 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as
|
2
|
-
import 'core-js/modules/es.array.filter.js';
|
3
|
-
import 'core-js/modules/es.object.to-string.js';
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, f as _classCallCheck, g as _callSuper, h as _asyncToGenerator, i as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
4
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
+
import 'core-js/modules/es.array.filter.js';
|
4
|
+
import 'core-js/modules/es.array.index-of.js';
|
5
5
|
import 'core-js/modules/es.array.iterator.js';
|
6
|
-
import 'core-js/modules/es.map.js';
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
6
|
import 'core-js/modules/es.array.map.js';
|
9
|
-
import 'core-js/modules/es.
|
10
|
-
import 'core-js/modules/es.promise.js';
|
7
|
+
import 'core-js/modules/es.map.js';
|
11
8
|
import 'core-js/modules/es.object.assign.js';
|
9
|
+
import 'core-js/modules/es.object.to-string.js';
|
10
|
+
import 'core-js/modules/es.promise.js';
|
11
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
12
12
|
import React, { Component, PureComponent } from 'react';
|
13
13
|
import PropTypes from 'prop-types';
|
14
14
|
import classNames from 'classnames';
|
@@ -22,14 +22,14 @@ import { S as Size, m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
22
22
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
23
23
|
import getUID from '../global/get-uid.js';
|
24
24
|
import { ControlLabel } from '../control-label/control-label.js';
|
25
|
+
import 'core-js/modules/es.array.find.js';
|
25
26
|
import 'core-js/modules/es.array.reduce.js';
|
26
|
-
import 'core-js/modules/es.
|
27
|
+
import 'core-js/modules/es.array.slice.js';
|
28
|
+
import 'core-js/modules/es.object.values.js';
|
27
29
|
import 'core-js/modules/es.regexp.exec.js';
|
28
|
-
import 'core-js/modules/es.array.find.js';
|
29
30
|
import 'core-js/modules/es.string.replace.js';
|
31
|
+
import 'core-js/modules/es.string.trim.js';
|
30
32
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
31
|
-
import 'core-js/modules/es.array.slice.js';
|
32
|
-
import 'core-js/modules/es.object.values.js';
|
33
33
|
import '@jetbrains/icons/chevron-down';
|
34
34
|
import '@jetbrains/icons/close-12px';
|
35
35
|
import 'deep-equal';
|
@@ -52,8 +52,8 @@ import '../avatar/avatar.js';
|
|
52
52
|
import '../global/url.js';
|
53
53
|
import 'core-js/modules/es.string.match.js';
|
54
54
|
import '../global/dom.js';
|
55
|
-
import 'core-js/modules/es.string.split.js';
|
56
55
|
import 'core-js/modules/es.set.js';
|
56
|
+
import 'core-js/modules/es.string.split.js';
|
57
57
|
import '../avatar/fallback-avatar.js';
|
58
58
|
import 'core-js/modules/es.array.from.js';
|
59
59
|
import 'core-js/modules/es.regexp.to-string.js';
|
@@ -62,10 +62,10 @@ import 'react-dom';
|
|
62
62
|
import '../global/schedule-raf.js';
|
63
63
|
import '../shortcuts/shortcuts.js';
|
64
64
|
import '../shortcuts/core.js';
|
65
|
+
import 'core-js/modules/es.array.find-index.js';
|
65
66
|
import 'core-js/modules/es.array.includes.js';
|
66
|
-
import 'core-js/modules/es.string.includes.js';
|
67
67
|
import 'core-js/modules/es.array.splice.js';
|
68
|
-
import 'core-js/modules/es.
|
68
|
+
import 'core-js/modules/es.string.includes.js';
|
69
69
|
import 'combokeys';
|
70
70
|
import '../global/sniffer.js';
|
71
71
|
import 'sniffr';
|
@@ -117,13 +117,11 @@ function noop() {}
|
|
117
117
|
*/
|
118
118
|
var POPUP_VERTICAL_SHIFT = 2;
|
119
119
|
var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
120
|
-
_inherits(TagsInput, _PureComponent);
|
121
|
-
var _super = _createSuper(TagsInput);
|
122
120
|
function TagsInput(props) {
|
123
121
|
var _this;
|
124
122
|
_classCallCheck(this, TagsInput);
|
125
|
-
_this =
|
126
|
-
_defineProperty(
|
123
|
+
_this = _callSuper(this, TagsInput, [props]);
|
124
|
+
_defineProperty(_this, "state", {
|
127
125
|
tags: [],
|
128
126
|
prevTags: null,
|
129
127
|
suggestions: [],
|
@@ -132,22 +130,22 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
132
130
|
query: '',
|
133
131
|
activeIndex: 0
|
134
132
|
});
|
135
|
-
_defineProperty(
|
136
|
-
_defineProperty(
|
137
|
-
_defineProperty(
|
138
|
-
_defineProperty(
|
133
|
+
_defineProperty(_this, "ngModelStateField", void 0);
|
134
|
+
_defineProperty(_this, "id", _this.props.id || getUID('ring-tags-list-'));
|
135
|
+
_defineProperty(_this, "node", void 0);
|
136
|
+
_defineProperty(_this, "nodeRef", function (node) {
|
139
137
|
_this.node = node;
|
140
138
|
});
|
141
|
-
_defineProperty(
|
142
|
-
_defineProperty(
|
143
|
-
_defineProperty(
|
139
|
+
_defineProperty(_this, "input", void 0);
|
140
|
+
_defineProperty(_this, "caret", void 0);
|
141
|
+
_defineProperty(_this, "focusInput", function () {
|
144
142
|
var _this$getInputNode;
|
145
143
|
(_this$getInputNode = _this.getInputNode()) === null || _this$getInputNode === void 0 || _this$getInputNode.focus();
|
146
144
|
});
|
147
|
-
_defineProperty(
|
145
|
+
_defineProperty(_this, "focus", function () {
|
148
146
|
_this.focusInput();
|
149
147
|
});
|
150
|
-
_defineProperty(
|
148
|
+
_defineProperty(_this, "addTag", function (tag) {
|
151
149
|
var _this$select, _this$select2;
|
152
150
|
if (tag == null) {
|
153
151
|
return;
|
@@ -169,14 +167,14 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
169
167
|
_this.setActiveIndex();
|
170
168
|
}
|
171
169
|
});
|
172
|
-
_defineProperty(
|
170
|
+
_defineProperty(_this, "clickHandler", function (event) {
|
173
171
|
var _this$select3;
|
174
172
|
if (event.target !== _this.node && event.target.parentElement !== _this.node) {
|
175
173
|
return;
|
176
174
|
}
|
177
175
|
(_this$select3 = _this.select) === null || _this$select3 === void 0 || _this$select3._clickHandler();
|
178
176
|
});
|
179
|
-
_defineProperty(
|
177
|
+
_defineProperty(_this, "filterExistingTags", function (suggestions) {
|
180
178
|
var tagsMap = new Map(_this.state.tags.map(function (tag) {
|
181
179
|
return [tag.key, tag];
|
182
180
|
}));
|
@@ -184,7 +182,7 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
184
182
|
return !tagsMap.has(suggestion.key);
|
185
183
|
});
|
186
184
|
});
|
187
|
-
_defineProperty(
|
185
|
+
_defineProperty(_this, "loadSuggestions", function () {
|
188
186
|
var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
189
187
|
return _this.setState({
|
190
188
|
loading: true,
|
@@ -234,18 +232,18 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
234
232
|
}, _callee, null, [[0, 14]]);
|
235
233
|
})));
|
236
234
|
});
|
237
|
-
_defineProperty(
|
235
|
+
_defineProperty(_this, "_focusHandler", function () {
|
238
236
|
_this.setActiveIndex(null);
|
239
237
|
_this.setState({
|
240
238
|
focused: true
|
241
239
|
});
|
242
240
|
});
|
243
|
-
_defineProperty(
|
241
|
+
_defineProperty(_this, "_blurHandler", function () {
|
244
242
|
_this.setState({
|
245
243
|
focused: false
|
246
244
|
});
|
247
245
|
});
|
248
|
-
_defineProperty(
|
246
|
+
_defineProperty(_this, "selectTag", function (moveForward) {
|
249
247
|
var activeIndex = typeof _this.state.activeIndex === 'number' ? _this.state.activeIndex : _this.state.tags.length + 1;
|
250
248
|
var newActiveIndex = activeIndex + (moveForward ? 1 : -1);
|
251
249
|
if (newActiveIndex >= _this.state.tags.length) {
|
@@ -257,7 +255,7 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
257
255
|
_this.setActiveIndex(newActiveIndex);
|
258
256
|
}
|
259
257
|
});
|
260
|
-
_defineProperty(
|
258
|
+
_defineProperty(_this, "handleKeyDown", function (event) {
|
261
259
|
var _this$select4;
|
262
260
|
var key = getEventKey(event);
|
263
261
|
var isInputFocused = function isInputFocused() {
|
@@ -314,30 +312,31 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
314
312
|
}
|
315
313
|
return true;
|
316
314
|
});
|
317
|
-
_defineProperty(
|
315
|
+
_defineProperty(_this, "handleClick", memoize(function (tag) {
|
318
316
|
return function () {
|
319
317
|
_this.setActiveIndex(_this.state.tags.indexOf(tag));
|
320
318
|
};
|
321
319
|
}));
|
322
|
-
_defineProperty(
|
320
|
+
_defineProperty(_this, "handleRemove", memoize(function (tag) {
|
323
321
|
return function () {
|
324
322
|
return _this.onRemoveTag(tag);
|
325
323
|
};
|
326
324
|
}));
|
327
|
-
_defineProperty(
|
325
|
+
_defineProperty(_this, "handleTagCreation", function (label) {
|
328
326
|
_this.addTag({
|
329
327
|
key: label,
|
330
328
|
label
|
331
329
|
});
|
332
330
|
});
|
333
|
-
_defineProperty(
|
334
|
-
_defineProperty(
|
331
|
+
_defineProperty(_this, "select", void 0);
|
332
|
+
_defineProperty(_this, "selectRef", function (el) {
|
335
333
|
_this.select = el;
|
336
334
|
});
|
337
335
|
_this.ngModelStateField = TagsInput.ngModelStateField;
|
338
336
|
return _this;
|
339
337
|
}
|
340
|
-
|
338
|
+
_inherits(TagsInput, _PureComponent);
|
339
|
+
return _createClass(TagsInput, [{
|
341
340
|
key: "componentDidMount",
|
342
341
|
value: function componentDidMount() {
|
343
342
|
if (this.props.autoOpen && !this.props.disabled) {
|
@@ -474,7 +473,6 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
474
473
|
return nextState;
|
475
474
|
}
|
476
475
|
}]);
|
477
|
-
return TagsInput;
|
478
476
|
}(PureComponent);
|
479
477
|
_defineProperty(TagsInput, "propTypes", {
|
480
478
|
className: PropTypes.string,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, e as _extends, c as _objectWithoutProperties, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import React, { Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -17,8 +17,8 @@ import '../global/memoize.js';
|
|
17
17
|
import 'core-js/modules/es.array.iterator.js';
|
18
18
|
import 'core-js/modules/es.map.js';
|
19
19
|
import 'core-js/modules/es.object.to-string.js';
|
20
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
21
20
|
import 'core-js/modules/es.weak-map.js';
|
21
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
22
22
|
import '../button/button.js';
|
23
23
|
import '@jetbrains/icons/chevron-10px';
|
24
24
|
import '../link/clickableLink.js';
|
@@ -31,13 +31,12 @@ function noop() {}
|
|
31
31
|
* @name Tags List
|
32
32
|
*/
|
33
33
|
var TagsList = /*#__PURE__*/function (_Component) {
|
34
|
-
_inherits(TagsList, _Component);
|
35
|
-
var _super = _createSuper(TagsList);
|
36
34
|
function TagsList() {
|
37
35
|
_classCallCheck(this, TagsList);
|
38
|
-
return
|
36
|
+
return _callSuper(this, TagsList, arguments);
|
39
37
|
}
|
40
|
-
|
38
|
+
_inherits(TagsList, _Component);
|
39
|
+
return _createClass(TagsList, [{
|
41
40
|
key: "renderTag",
|
42
41
|
value: function renderTag(tag, focusTag) {
|
43
42
|
var TagComponent = this.props.customTagComponent || Tag;
|
@@ -78,7 +77,6 @@ var TagsList = /*#__PURE__*/function (_Component) {
|
|
78
77
|
}, props), tagsList, children);
|
79
78
|
}
|
80
79
|
}]);
|
81
|
-
return TagsList;
|
82
80
|
}(Component);
|
83
81
|
_defineProperty(TagsList, "propTypes", {
|
84
82
|
children: PropTypes.node,
|
package/components/text/text.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import React, { Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -16,13 +16,12 @@ var TextSize = {
|
|
16
16
|
* @name Text
|
17
17
|
*/
|
18
18
|
var Text = /*#__PURE__*/function (_Component) {
|
19
|
-
_inherits(Text, _Component);
|
20
|
-
var _super = _createSuper(Text);
|
21
19
|
function Text() {
|
22
20
|
_classCallCheck(this, Text);
|
23
|
-
return
|
21
|
+
return _callSuper(this, Text, arguments);
|
24
22
|
}
|
25
|
-
|
23
|
+
_inherits(Text, _Component);
|
24
|
+
return _createClass(Text, [{
|
26
25
|
key: "render",
|
27
26
|
value: function render() {
|
28
27
|
var _this$props = this.props,
|
@@ -42,7 +41,6 @@ var Text = /*#__PURE__*/function (_Component) {
|
|
42
41
|
}, restProps), children);
|
43
42
|
}
|
44
43
|
}]);
|
45
|
-
return Text;
|
46
44
|
}(Component);
|
47
45
|
_defineProperty(Text, "propTypes", {
|
48
46
|
children: PropTypes.node,
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.values.js';
|
3
3
|
import React, { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
|
+
import 'core-js/modules/es.array.concat.js';
|
7
8
|
import 'core-js/modules/es.array.reduce.js';
|
8
|
-
import 'core-js/modules/es.object.to-string.js';
|
9
9
|
import 'core-js/modules/es.object.entries.js';
|
10
|
-
import 'core-js/modules/es.
|
10
|
+
import 'core-js/modules/es.object.to-string.js';
|
11
11
|
|
12
12
|
var modules_331c5aa7 = {"padding":"2px","duration":"300ms","timing-function":"cubic-bezier(0.23, 1, 0.32, 1)","light":"light_rui_2ac4","toggle":"toggle_rui_21f9","switch":"switch_rui_21f9","disabled":"disabled_rui_21f9","label":"label_rui_21f9","leftLabel":"leftLabel_rui_21f9","switchWrapper":"switchWrapper_rui_21f9","input":"input_rui_21f9","size16":"size16_rui_21f9","size14":"size14_rui_21f9","size20":"size20_rui_21f9","paleSwitch":"paleSwitch_rui_21f9"};
|
13
13
|
|
@@ -18,13 +18,12 @@ var Size = {
|
|
18
18
|
Size20: modules_331c5aa7.size20
|
19
19
|
};
|
20
20
|
var Toggle = /*#__PURE__*/function (_PureComponent) {
|
21
|
-
_inherits(Toggle, _PureComponent);
|
22
|
-
var _super = _createSuper(Toggle);
|
23
21
|
function Toggle() {
|
24
22
|
_classCallCheck(this, Toggle);
|
25
|
-
return
|
23
|
+
return _callSuper(this, Toggle, arguments);
|
26
24
|
}
|
27
|
-
|
25
|
+
_inherits(Toggle, _PureComponent);
|
26
|
+
return _createClass(Toggle, [{
|
28
27
|
key: "render",
|
29
28
|
value: function render() {
|
30
29
|
var _this$props = this.props,
|
@@ -62,7 +61,6 @@ var Toggle = /*#__PURE__*/function (_PureComponent) {
|
|
62
61
|
}, children));
|
63
62
|
}
|
64
63
|
}]);
|
65
|
-
return Toggle;
|
66
64
|
}(PureComponent);
|
67
65
|
_defineProperty(Toggle, "propTypes", {
|
68
66
|
children: PropTypes.node,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { Component, createContext } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -7,24 +7,24 @@ import Popup from '../popup/popup.js';
|
|
7
7
|
import { Listeners } from '../global/dom.js';
|
8
8
|
import joinDataTestAttributes from '../global/data-tests.js';
|
9
9
|
import scheduleRAF from '../global/schedule-raf.js';
|
10
|
-
import 'core-js/modules/es.object.to-string.js';
|
11
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
12
10
|
import 'core-js/modules/es.object.entries.js';
|
13
|
-
import 'core-js/modules/es.
|
11
|
+
import 'core-js/modules/es.object.to-string.js';
|
14
12
|
import 'core-js/modules/es.regexp.exec.js';
|
13
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
15
14
|
import 'core-js/modules/es.string.replace.js';
|
15
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
16
16
|
import 'react-dom';
|
17
17
|
import '../global/get-uid.js';
|
18
18
|
import '../shortcuts/shortcuts.js';
|
19
19
|
import 'core-js/modules/es.array.map.js';
|
20
20
|
import '../shortcuts/core.js';
|
21
|
+
import 'core-js/modules/es.array.find-index.js';
|
21
22
|
import 'core-js/modules/es.array.includes.js';
|
22
|
-
import 'core-js/modules/es.string.includes.js';
|
23
|
-
import 'core-js/modules/es.object.assign.js';
|
24
23
|
import 'core-js/modules/es.array.slice.js';
|
25
24
|
import 'core-js/modules/es.array.splice.js';
|
25
|
+
import 'core-js/modules/es.object.assign.js';
|
26
|
+
import 'core-js/modules/es.string.includes.js';
|
26
27
|
import 'core-js/modules/es.string.match.js';
|
27
|
-
import 'core-js/modules/es.array.find-index.js';
|
28
28
|
import 'combokeys';
|
29
29
|
import '../global/sniffer.js';
|
30
30
|
import 'sniffr';
|
@@ -33,9 +33,9 @@ import 'core-js/modules/es.array.filter.js';
|
|
33
33
|
import '../popup/position.js';
|
34
34
|
import 'core-js/modules/es.array.sort.js';
|
35
35
|
import '../popup/popup.consts.js';
|
36
|
-
import 'core-js/modules/es.string.split.js';
|
37
36
|
import 'core-js/modules/es.array.iterator.js';
|
38
37
|
import 'core-js/modules/es.set.js';
|
38
|
+
import 'core-js/modules/es.string.split.js';
|
39
39
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
40
40
|
import '../popup/popup.target.js';
|
41
41
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -49,26 +49,24 @@ var TooltipContext = /*#__PURE__*/createContext(undefined);
|
|
49
49
|
* @name Tooltip
|
50
50
|
*/
|
51
51
|
var Tooltip = /*#__PURE__*/function (_Component) {
|
52
|
-
_inherits(Tooltip, _Component);
|
53
|
-
var _super = _createSuper(Tooltip);
|
54
52
|
function Tooltip() {
|
55
53
|
var _this;
|
56
54
|
_classCallCheck(this, Tooltip);
|
57
55
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
58
56
|
args[_key] = arguments[_key];
|
59
57
|
}
|
60
|
-
_this =
|
61
|
-
_defineProperty(
|
58
|
+
_this = _callSuper(this, Tooltip, [].concat(args));
|
59
|
+
_defineProperty(_this, "state", {
|
62
60
|
showPopup: false,
|
63
61
|
showNestedPopup: false
|
64
62
|
});
|
65
|
-
_defineProperty(
|
66
|
-
_defineProperty(
|
67
|
-
_defineProperty(
|
68
|
-
_defineProperty(
|
63
|
+
_defineProperty(_this, "timeout", void 0);
|
64
|
+
_defineProperty(_this, "listeners", new Listeners());
|
65
|
+
_defineProperty(_this, "containerNode", void 0);
|
66
|
+
_defineProperty(_this, "containerRef", function (el) {
|
69
67
|
_this.containerNode = el;
|
70
68
|
});
|
71
|
-
_defineProperty(
|
69
|
+
_defineProperty(_this, "tryToShowPopup", function () {
|
72
70
|
var _this$props = _this.props,
|
73
71
|
delay = _this$props.delay,
|
74
72
|
title = _this$props.title;
|
@@ -81,11 +79,11 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
81
79
|
_this.showPopup();
|
82
80
|
}
|
83
81
|
});
|
84
|
-
_defineProperty(
|
82
|
+
_defineProperty(_this, "showPopup", function () {
|
85
83
|
var _this$context;
|
86
84
|
if (_this.props.selfOverflowOnly) {
|
87
|
-
var
|
88
|
-
containerNode =
|
85
|
+
var _this2 = _this,
|
86
|
+
containerNode = _this2.containerNode;
|
89
87
|
// rare cases when containerNode is null are possible;
|
90
88
|
// probably the collision is due to the asynchronous nature of the code,
|
91
89
|
// i.e. this code runs after the component is unmounted,
|
@@ -106,7 +104,7 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
106
104
|
showPopup: true
|
107
105
|
});
|
108
106
|
});
|
109
|
-
_defineProperty(
|
107
|
+
_defineProperty(_this, "hidePopup", function () {
|
110
108
|
var _this$context2;
|
111
109
|
clearTimeout(_this.timeout);
|
112
110
|
(_this$context2 = _this.context) === null || _this$context2 === void 0 || _this$context2.onNestedTooltipHide();
|
@@ -114,23 +112,24 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
114
112
|
showPopup: false
|
115
113
|
});
|
116
114
|
});
|
117
|
-
_defineProperty(
|
118
|
-
_defineProperty(
|
115
|
+
_defineProperty(_this, "popup", void 0);
|
116
|
+
_defineProperty(_this, "popupRef", function (el) {
|
119
117
|
_this.popup = el;
|
120
118
|
});
|
121
|
-
_defineProperty(
|
119
|
+
_defineProperty(_this, "onNestedTooltipShow", function () {
|
122
120
|
_this.setState({
|
123
121
|
showNestedPopup: true
|
124
122
|
});
|
125
123
|
});
|
126
|
-
_defineProperty(
|
124
|
+
_defineProperty(_this, "onNestedTooltipHide", function () {
|
127
125
|
_this.setState({
|
128
126
|
showNestedPopup: false
|
129
127
|
});
|
130
128
|
});
|
131
129
|
return _this;
|
132
130
|
}
|
133
|
-
|
131
|
+
_inherits(Tooltip, _Component);
|
132
|
+
return _createClass(Tooltip, [{
|
134
133
|
key: "componentDidMount",
|
135
134
|
value: function componentDidMount() {
|
136
135
|
if (this.props.title) {
|
@@ -155,13 +154,13 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
155
154
|
}, {
|
156
155
|
key: "addListeners",
|
157
156
|
value: function addListeners() {
|
158
|
-
var
|
157
|
+
var _this3 = this;
|
159
158
|
if (this.containerNode != null) {
|
160
159
|
this.listeners.add(this.containerNode, 'mouseover', this.tryToShowPopup);
|
161
160
|
this.listeners.add(this.containerNode, 'mouseout', this.hidePopup);
|
162
161
|
}
|
163
162
|
this.listeners.add(document, 'scroll', function () {
|
164
|
-
return scheduleScroll(
|
163
|
+
return scheduleScroll(_this3.hidePopup);
|
165
164
|
}, {
|
166
165
|
passive: true
|
167
166
|
});
|
@@ -208,7 +207,6 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
208
207
|
}, popupProps), title)));
|
209
208
|
}
|
210
209
|
}]);
|
211
|
-
return Tooltip;
|
212
210
|
}(Component);
|
213
211
|
_defineProperty(Tooltip, "propTypes", {
|
214
212
|
delay: PropTypes.number,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { b as _createClass, f as _classCallCheck, _ as _defineProperty, h as _asyncToGenerator, d as _objectSpread2, i as _regeneratorRuntime, j as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.iterator.js';
|
3
3
|
import 'core-js/modules/es.object.to-string.js';
|
4
4
|
import 'core-js/modules/es.promise.js';
|
@@ -14,12 +14,12 @@ import { ControlsHeightContext, getGlobalControlsHeight } from '../global/contro
|
|
14
14
|
import UserAgreement from './user-agreement.js';
|
15
15
|
import '../storage/storage__local.js';
|
16
16
|
import '../storage/storage__fallback.js';
|
17
|
-
import 'core-js/modules/es.reflect.delete-property.js';
|
18
17
|
import 'core-js/modules/es.array.concat.js';
|
19
18
|
import 'core-js/modules/es.array.index-of.js';
|
19
|
+
import 'core-js/modules/es.reflect.delete-property.js';
|
20
20
|
import 'deep-equal';
|
21
|
-
import 'core-js/modules/es.array.map.js';
|
22
21
|
import 'core-js/modules/es.array.filter.js';
|
22
|
+
import 'core-js/modules/es.array.map.js';
|
23
23
|
import '../global/get-uid.js';
|
24
24
|
import 'core-js/modules/es.regexp.to-string.js';
|
25
25
|
import '../alert/container.js';
|
@@ -49,9 +49,9 @@ import 'core-js/modules/es.weak-map.js';
|
|
49
49
|
import '../loader-inline/loader-inline.js';
|
50
50
|
import '../global/dom.js';
|
51
51
|
import 'core-js/modules/es.object.assign.js';
|
52
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
53
|
-
import 'core-js/modules/es.string.split.js';
|
54
52
|
import 'core-js/modules/es.set.js';
|
53
|
+
import 'core-js/modules/es.string.split.js';
|
54
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
55
55
|
import '../button/button.js';
|
56
56
|
import '@jetbrains/icons/chevron-10px';
|
57
57
|
import '../_helpers/button__classes.js';
|
@@ -61,12 +61,12 @@ import '../popup/popup.js';
|
|
61
61
|
import '../global/schedule-raf.js';
|
62
62
|
import '../shortcuts/shortcuts.js';
|
63
63
|
import '../shortcuts/core.js';
|
64
|
+
import 'core-js/modules/es.array.find-index.js';
|
64
65
|
import 'core-js/modules/es.array.includes.js';
|
65
|
-
import 'core-js/modules/es.string.includes.js';
|
66
66
|
import 'core-js/modules/es.array.slice.js';
|
67
67
|
import 'core-js/modules/es.array.splice.js';
|
68
|
+
import 'core-js/modules/es.string.includes.js';
|
68
69
|
import 'core-js/modules/es.string.match.js';
|
69
|
-
import 'core-js/modules/es.array.find-index.js';
|
70
70
|
import 'combokeys';
|
71
71
|
import '../global/sniffer.js';
|
72
72
|
import 'sniffr';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -21,24 +21,24 @@ import 'core-js/modules/es.object.entries.js';
|
|
21
21
|
import '../shortcuts/shortcuts.js';
|
22
22
|
import 'core-js/modules/es.array.map.js';
|
23
23
|
import '../shortcuts/core.js';
|
24
|
+
import 'core-js/modules/es.array.find-index.js';
|
24
25
|
import 'core-js/modules/es.array.includes.js';
|
25
|
-
import 'core-js/modules/es.string.includes.js';
|
26
|
-
import 'core-js/modules/es.object.assign.js';
|
27
26
|
import 'core-js/modules/es.array.slice.js';
|
28
27
|
import 'core-js/modules/es.array.splice.js';
|
28
|
+
import 'core-js/modules/es.object.assign.js';
|
29
29
|
import 'core-js/modules/es.regexp.exec.js';
|
30
|
+
import 'core-js/modules/es.string.includes.js';
|
30
31
|
import 'core-js/modules/es.string.match.js';
|
31
|
-
import 'core-js/modules/es.array.find-index.js';
|
32
32
|
import 'combokeys';
|
33
33
|
import '../global/sniffer.js';
|
34
34
|
import 'sniffr';
|
35
35
|
import '../tab-trap/tab-trap.js';
|
36
36
|
import 'core-js/modules/es.array.filter.js';
|
37
37
|
import '../global/dom.js';
|
38
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
39
|
-
import 'core-js/modules/es.string.split.js';
|
40
38
|
import 'core-js/modules/es.array.iterator.js';
|
41
39
|
import 'core-js/modules/es.set.js';
|
40
|
+
import 'core-js/modules/es.string.split.js';
|
41
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
42
42
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
43
43
|
import '../popup/popup.target.js';
|
44
44
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
@@ -70,26 +70,25 @@ function noop() {}
|
|
70
70
|
* A component that displays a user agreement dialog.
|
71
71
|
*/
|
72
72
|
var UserAgreement = /*#__PURE__*/function (_PureComponent) {
|
73
|
-
_inherits(UserAgreement, _PureComponent);
|
74
|
-
var _super = _createSuper(UserAgreement);
|
75
73
|
function UserAgreement() {
|
76
74
|
var _this;
|
77
75
|
_classCallCheck(this, UserAgreement);
|
78
76
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
79
77
|
args[_key] = arguments[_key];
|
80
78
|
}
|
81
|
-
_this =
|
82
|
-
_defineProperty(
|
79
|
+
_this = _callSuper(this, UserAgreement, [].concat(args));
|
80
|
+
_defineProperty(_this, "state", {
|
83
81
|
scrolledDown: false
|
84
82
|
});
|
85
|
-
_defineProperty(
|
83
|
+
_defineProperty(_this, "onScrollToBottom", function () {
|
86
84
|
return _this.setState({
|
87
85
|
scrolledDown: true
|
88
86
|
});
|
89
87
|
});
|
90
88
|
return _this;
|
91
89
|
}
|
92
|
-
|
90
|
+
_inherits(UserAgreement, _PureComponent);
|
91
|
+
return _createClass(UserAgreement, [{
|
93
92
|
key: "render",
|
94
93
|
value: function render() {
|
95
94
|
var _this2 = this;
|
@@ -143,7 +142,6 @@ var UserAgreement = /*#__PURE__*/function (_PureComponent) {
|
|
143
142
|
});
|
144
143
|
}
|
145
144
|
}]);
|
146
|
-
return UserAgreement;
|
147
145
|
}(PureComponent);
|
148
146
|
_defineProperty(UserAgreement, "propTypes", {
|
149
147
|
show: PropTypes.bool,
|
@@ -13,23 +13,23 @@ import '../i18n/i18n-context.js';
|
|
13
13
|
export { U as default } from '../_helpers/card.js';
|
14
14
|
import '../icon/icon__constants.js';
|
15
15
|
import '../global/url.js';
|
16
|
+
import 'core-js/modules/es.array.index-of.js';
|
16
17
|
import 'core-js/modules/es.regexp.exec.js';
|
17
18
|
import 'core-js/modules/es.string.match.js';
|
18
|
-
import 'core-js/modules/es.array.index-of.js';
|
19
19
|
import 'core-js/modules/es.string.replace.js';
|
20
20
|
import '../global/dom.js';
|
21
|
-
import 'core-js/modules/es.object.assign.js';
|
22
|
-
import 'core-js/modules/es.object.to-string.js';
|
23
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
24
21
|
import 'core-js/modules/es.array.filter.js';
|
25
|
-
import 'core-js/modules/es.string.split.js';
|
26
|
-
import 'core-js/modules/es.object.entries.js';
|
27
22
|
import 'core-js/modules/es.array.iterator.js';
|
23
|
+
import 'core-js/modules/es.object.assign.js';
|
24
|
+
import 'core-js/modules/es.object.entries.js';
|
25
|
+
import 'core-js/modules/es.object.to-string.js';
|
28
26
|
import 'core-js/modules/es.set.js';
|
27
|
+
import 'core-js/modules/es.string.split.js';
|
28
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
29
29
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
30
30
|
import '../avatar/fallback-avatar.js';
|
31
|
-
import 'core-js/modules/es.array.map.js';
|
32
31
|
import 'core-js/modules/es.array.from.js';
|
32
|
+
import 'core-js/modules/es.array.map.js';
|
33
33
|
import 'core-js/modules/es.array.slice.js';
|
34
34
|
import '../global/get-uid.js';
|
35
35
|
import 'core-js/modules/es.regexp.to-string.js';
|
@@ -64,10 +64,10 @@ import '../popup/popup.js';
|
|
64
64
|
import '../global/schedule-raf.js';
|
65
65
|
import '../shortcuts/shortcuts.js';
|
66
66
|
import '../shortcuts/core.js';
|
67
|
+
import 'core-js/modules/es.array.find-index.js';
|
67
68
|
import 'core-js/modules/es.array.includes.js';
|
68
|
-
import 'core-js/modules/es.string.includes.js';
|
69
69
|
import 'core-js/modules/es.array.splice.js';
|
70
|
-
import 'core-js/modules/es.
|
70
|
+
import 'core-js/modules/es.string.includes.js';
|
71
71
|
import 'combokeys';
|
72
72
|
import '../global/sniffer.js';
|
73
73
|
import 'sniffr';
|