@jetbrains/ring-ui 4.1.13 → 4.1.17
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/date-picker/date-picker.css +1 -0
- package/components/select/select.js +3 -1
- package/dist/_helpers/anchor.js +1 -1
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +1 -1
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +3 -2
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/inject-styles.js +5 -5
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +2 -1
- package/dist/_helpers/services-link.js +2 -2
- package/dist/_helpers/sidebar.js +3 -2
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/title.js +2 -1
- package/dist/alert/alert.js +3 -1
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +2 -0
- package/dist/analytics/analytics.js +5 -3
- package/dist/analytics/analytics__custom-plugin.js +2 -1
- package/dist/analytics/analytics__fus-plugin.js +1 -0
- package/dist/analytics/analytics__plugin-utils.js +4 -3
- package/dist/analytics-ng/analytics-ng.js +3 -2
- package/dist/auth/auth.js +2 -0
- package/dist/auth/auth__core.js +16 -12
- package/dist/auth/background-flow.js +2 -1
- package/dist/auth/down-notification.js +3 -1
- package/dist/auth/iframe-flow.js +2 -0
- package/dist/auth/landing.js +6 -4
- package/dist/auth/request-builder.js +1 -0
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +2 -0
- package/dist/auth/token-validator.js +2 -0
- package/dist/auth/window-flow.js +2 -1
- package/dist/auth-dialog/auth-dialog.js +4 -2
- package/dist/auth-dialog-service/auth-dialog-service.js +2 -0
- package/dist/auth-ng/auth-ng.js +3 -1
- package/dist/autofocus-ng/autofocus-ng.js +1 -0
- package/dist/avatar/avatar-example-datauri.js +1 -23
- package/dist/avatar/avatar.js +5 -3
- package/dist/avatar/fallback-avatar.js +4 -3
- package/dist/avatar-editor-ng/avatar-editor-ng.js +2 -0
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
- package/dist/avatar-ng/avatar-ng.js +2 -0
- package/dist/badge/badge.js +1 -0
- package/dist/badge-ng/badge-ng.js +1 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +4 -28
- package/dist/button/button.js +2 -0
- package/dist/button-group-ng/button-group-ng.js +2 -1
- package/dist/button-ng/button-ng.js +5 -11
- package/dist/button-set-ng/button-set-ng.js +1 -1
- package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -0
- package/dist/caret/caret.js +2 -0
- package/dist/checkbox/checkbox.js +2 -0
- package/dist/checkbox-ng/checkbox-ng.js +3 -20
- package/dist/code/code.js +4 -3
- package/dist/confirm/confirm.js +3 -1
- package/dist/confirm-ng/confirm-ng.js +2 -0
- package/dist/confirm-service/confirm-service.js +2 -0
- package/dist/content-layout/content-layout.js +1 -0
- package/dist/content-layout/sidebar.js +1 -0
- package/dist/data-list/data-list.js +2 -0
- package/dist/data-list/data-list.mock.js +1 -0
- package/dist/data-list/item.js +2 -0
- package/dist/data-list/selection.js +1 -0
- package/dist/data-list/title.js +2 -0
- package/dist/data-list-ng/data-list-ng.js +2 -0
- package/dist/date-picker/consts.js +2 -2
- package/dist/date-picker/date-input.js +3 -1
- package/dist/date-picker/date-picker.js +10 -8
- package/dist/date-picker/date-popup.js +2 -0
- package/dist/date-picker/day.js +1 -0
- package/dist/date-picker/month-names.js +1 -0
- package/dist/date-picker/month-slider.js +1 -0
- package/dist/date-picker/month.js +1 -0
- package/dist/date-picker/months.js +1 -0
- package/dist/date-picker/years.js +1 -0
- package/dist/dialog/dialog.js +2 -0
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
- package/dist/dialog-ng/dialog-ng.js +11 -6
- package/dist/dialog-ng/dialog-ng__template.js +1 -69
- package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
- package/dist/dropdown/anchor.js +2 -0
- package/dist/dropdown/dropdown.js +2 -0
- package/dist/dropdown-menu/dropdown-menu.js +3 -1
- package/dist/error-bubble/error-bubble.js +3 -1
- package/dist/error-message/error-message.js +3 -1
- package/dist/error-message-ng/error-message-ng.js +3 -21
- package/dist/footer/footer.js +1 -0
- package/dist/footer-ng/footer-ng.js +3 -14
- package/dist/form-ng/form-ng.js +2 -4
- package/dist/global/angular-component-factory.js +3 -2
- package/dist/global/conic-gradient.js +4 -4
- package/dist/global/create-stateful-context.js +3 -2
- package/dist/global/data-tests.js +2 -0
- package/dist/global/dom.js +1 -0
- package/dist/global/focus-sensor-hoc.js +1 -0
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/inject-styles.js +5 -7
- package/dist/global/listeners.js +2 -0
- package/dist/global/memoize.js +2 -0
- package/dist/global/normalize-indent.js +2 -0
- package/dist/global/radial-gradient-mask.js +8 -19
- package/dist/global/react-dom-renderer.js +1 -0
- package/dist/global/rerender-hoc.js +2 -1
- package/dist/global/supports-css.js +2 -0
- package/dist/global/theme.js +1 -1
- package/dist/global/trivial-template-tag.js +2 -0
- package/dist/global/url.js +3 -1
- package/dist/grid/col.js +1 -1
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.js +2 -0
- package/dist/header/logo.js +2 -0
- package/dist/header/profile.js +2 -0
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.js +2 -0
- package/dist/header/smart-profile.js +7 -3
- package/dist/header/smart-services.js +3 -1
- package/dist/header/tray-icon.js +2 -0
- package/dist/heading/heading.js +3 -3
- package/dist/http/http.js +4 -2
- package/dist/http/http.mock.js +2 -0
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__user.js +4 -2
- package/dist/hub-source/hub-source__users-groups.js +3 -2
- package/dist/icon/icon.js +3 -3
- package/dist/icon/icon__svg.js +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon-ng/icon-ng.js +7 -5
- package/dist/input/input.js +4 -2
- package/dist/input-ng/input-ng.js +6 -61
- package/dist/island/adaptive-island-hoc.js +1 -0
- package/dist/island/content.js +1 -0
- package/dist/island/header.js +3 -2
- package/dist/island/island.js +1 -0
- package/dist/island-ng/island-content-ng.js +2 -16
- package/dist/island-ng/island-header-ng.js +2 -8
- package/dist/island-ng/island-ng-class-fixer.js +2 -0
- package/dist/island-ng/island-ng.js +2 -8
- package/dist/link/clickableLink.js +1 -0
- package/dist/link/link.js +1 -0
- package/dist/link-ng/link-ng.js +1 -4
- package/dist/list/list.js +10 -8
- package/dist/list/list__custom.js +1 -0
- package/dist/list/list__item.js +5 -3
- package/dist/list/list__link.js +1 -0
- package/dist/list/list__users-groups-source.js +3 -1
- package/dist/loader/loader.js +1 -0
- package/dist/loader/loader__core.js +5 -4
- package/dist/loader-inline/inject-styles.js +2 -0
- package/dist/loader-inline/loader-inline.js +3 -1
- package/dist/loader-inline-ng/loader-inline-ng.js +4 -2
- package/dist/loader-ng/loader-ng.js +1 -0
- package/dist/loader-screen/loader-screen.js +1 -0
- package/dist/loader-screen-ng/loader-screen-ng.js +2 -6
- package/dist/login-dialog/login-dialog.js +3 -1
- package/dist/login-dialog/service.js +2 -0
- package/dist/markdown/code.js +1 -0
- package/dist/markdown/link.js +1 -0
- package/dist/markdown/markdown.js +2 -1
- package/dist/message/message.js +11 -5
- package/dist/old-browsers-message/old-browsers-message.js +2 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +1 -0
- package/dist/old-browsers-message/white-list.js +1 -0
- package/dist/pager/pager.js +4 -2
- package/dist/pager-ng/pager-ng.js +2 -0
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +3 -1
- package/dist/place-under-ng/place-under-ng.js +3 -2
- package/dist/popup/popup.js +5 -3
- package/dist/popup/position.js +1 -0
- package/dist/popup-menu/popup-menu.js +2 -0
- package/dist/progress-bar/progress-bar.js +3 -2
- package/dist/progress-bar-ng/progress-bar-ng.js +1 -0
- package/dist/promised-click-ng/promised-click-ng.js +2 -0
- package/dist/proxy-attrs/proxy-attrs.js +5 -3
- package/dist/query-assist/query-assist.js +10 -6
- package/dist/query-assist/query-assist__suggestions.js +2 -0
- package/dist/query-assist-ng/query-assist-ng.js +2 -0
- package/dist/radio/radio.js +1 -0
- package/dist/radio/radio__item.js +1 -0
- package/dist/radio-ng/radio-ng.js +2 -18
- package/dist/save-field-ng/save-field-ng.js +3 -1
- package/dist/save-field-ng/save-field-ng__template.js +1 -32
- package/dist/select/select.js +13 -8
- package/dist/select/select__filter.js +2 -0
- package/dist/select/select__popup.js +3 -1
- package/dist/select-ng/select-ng.js +2 -0
- package/dist/select-ng/select-ng__lazy.js +2 -0
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.js +1 -0
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +3 -0
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +1 -48
- package/dist/shortcuts-ng/shortcuts-ng.js +4 -3
- package/dist/sidebar-ng/sidebar-ng.js +2 -0
- package/dist/sidebar-ng/sidebar-ng__button-template.js +1 -18
- package/dist/sidebar-ng/sidebar-ng__template.js +1 -10
- package/dist/storage/storage.js +2 -0
- package/dist/storage/storage__fallback.js +4 -3
- package/dist/storage/storage__local.js +2 -0
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +2 -1
- package/dist/table/cell.js +1 -0
- package/dist/table/disable-hover-hoc.js +1 -0
- package/dist/table/header-cell.js +2 -0
- package/dist/table/header.js +2 -0
- package/dist/table/multitable.js +1 -0
- package/dist/table/row-with-focus-sensor.js +2 -0
- package/dist/table/row.js +3 -1
- package/dist/table/selection-adapter.js +2 -0
- package/dist/table/selection-shortcuts-hoc.js +1 -0
- package/dist/table/selection.js +2 -0
- package/dist/table/smart-table.js +2 -0
- package/dist/table/table.js +2 -0
- package/dist/table-legacy-ng/table-legacy-ng.js +10 -45
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +3 -7
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
- package/dist/table-ng/smart-table-ng.js +2 -0
- package/dist/table-ng/table-ng.js +2 -0
- package/dist/tabs/collapsible-more.js +2 -0
- package/dist/tabs/collapsible-tab.js +1 -0
- package/dist/tabs/collapsible-tabs.js +2 -0
- package/dist/tabs/dumb-tabs.js +2 -0
- package/dist/tabs/smart-tabs.js +2 -0
- package/dist/tabs/tab-link.js +1 -0
- package/dist/tabs/tab.js +1 -0
- package/dist/tabs/tabs.js +2 -0
- package/dist/tabs-ng/tabs-ng.js +1 -0
- package/dist/tabs-ng/tabs-ng__template.js +1 -38
- package/dist/tag/tag.js +3 -1
- package/dist/tags-input/tags-input.js +4 -2
- package/dist/tags-input-ng/tags-input-ng.js +2 -0
- package/dist/tags-list/tags-list.js +3 -1
- package/dist/template-ng/template-ng.js +1 -0
- package/dist/text/text.js +1 -1
- package/dist/theme-ng/theme-ng.js +1 -0
- package/dist/toggle/toggle.js +2 -1
- package/dist/toggle-ng/toggle-ng.js +1 -0
- package/dist/tooltip/tooltip.js +9 -3
- package/dist/tooltip-ng/tooltip-ng.js +2 -0
- package/dist/user-agreement/service.js +2 -0
- package/dist/user-agreement/toolbox.eula.js +1 -160
- package/dist/user-agreement/user-agreement.js +3 -1
- package/dist/user-card/card.js +2 -0
- package/dist/user-card/smart-user-card-tooltip.js +2 -0
- package/dist/user-card/tooltip.js +2 -0
- package/dist/user-card/user-card.js +2 -0
- package/dist/user-card-ng/user-card-ng.js +2 -0
- package/package.json +14 -14
package/dist/heading/heading.js
CHANGED
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import deprecate from 'util-deprecate';
|
|
6
6
|
|
|
7
|
-
var modules_901b77ec = {"heading":"
|
|
7
|
+
var modules_901b77ec = {"heading":"heading_rui_5e23 font_rui_43e5","caps":"caps_rui_5e23"};
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @name Heading
|
|
@@ -25,7 +25,7 @@ const Heading = /*#__PURE__*/memo(function Heading(_ref) {
|
|
|
25
25
|
...restProps
|
|
26
26
|
} = _ref;
|
|
27
27
|
const classes = classNames(modules_901b77ec.heading, className);
|
|
28
|
-
const Tag = level <= Levels.H4 ?
|
|
28
|
+
const Tag = level <= Levels.H4 ? "h".concat(level) : fallbackHeading();
|
|
29
29
|
return /*#__PURE__*/React.createElement(Tag, _extends({}, restProps, {
|
|
30
30
|
className: classes
|
|
31
31
|
}), children);
|
|
@@ -55,7 +55,7 @@ function makeHeading(level, useCaps) {
|
|
|
55
55
|
className: classes
|
|
56
56
|
}));
|
|
57
57
|
});
|
|
58
|
-
H.displayName =
|
|
58
|
+
H.displayName = "H".concat(level);
|
|
59
59
|
H.propTypes = {
|
|
60
60
|
children: PropTypes.node,
|
|
61
61
|
className: PropTypes.string,
|
package/dist/http/http.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import ExtendableError from 'es6-error';
|
|
3
4
|
import { encodeURL, joinBaseURLAndPath } from '../global/url.js';
|
|
5
|
+
import 'core-js/modules/es.string.replace.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* @name HTTP
|
|
@@ -19,7 +21,7 @@ const defaultFetchConfig = {
|
|
|
19
21
|
class HTTPError extends ExtendableError {
|
|
20
22
|
constructor(response) {
|
|
21
23
|
let data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
22
|
-
super(
|
|
24
|
+
super("".concat(response.status, " ").concat(response.statusText || ''));
|
|
23
25
|
this.data = data;
|
|
24
26
|
this.status = response.status;
|
|
25
27
|
}
|
|
@@ -136,7 +138,7 @@ class HTTP {
|
|
|
136
138
|
} = params;
|
|
137
139
|
const combinedHeaders = { ...this.fetchConfig.headers,
|
|
138
140
|
...(token ? {
|
|
139
|
-
Authorization:
|
|
141
|
+
Authorization: "".concat(TOKEN_TYPE, " ").concat(token)
|
|
140
142
|
} : {}),
|
|
141
143
|
...headers
|
|
142
144
|
};
|
package/dist/http/http.mock.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
2
|
import HTTP from './http.js';
|
|
2
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import 'es6-error';
|
|
4
5
|
import '../global/url.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
7
|
|
|
6
8
|
const authMock = {
|
|
7
9
|
requestToken: () => 'mock token',
|
|
@@ -3,7 +3,7 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
3
3
|
const defaultOptions = {
|
|
4
4
|
searchMax: 20,
|
|
5
5
|
searchSideThreshold: 100,
|
|
6
|
-
queryFormatter: query =>
|
|
6
|
+
queryFormatter: query => "".concat(query, " or ").concat(query, "*")
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* HubSource is designed to speed up search requests for small installations.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import HTTP from '../http/http.js';
|
|
2
2
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import 'es6-error';
|
|
4
5
|
import '../global/url.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
7
|
|
|
6
8
|
const DEFAULT_FIELDS = 'id,name,login,banned,banReason,profile(email/email,avatar/url)';
|
|
7
9
|
function convertUserForCard(hubUser) {
|
|
@@ -13,14 +15,14 @@ function convertUserForCard(hubUser) {
|
|
|
13
15
|
banReason: hubUser.banReason,
|
|
14
16
|
email: hubUser.profile.email && hubUser.profile.email.email,
|
|
15
17
|
avatarUrl: hubUser.profile.avatar.url,
|
|
16
|
-
href:
|
|
18
|
+
href: "".concat(serverUri, "users/").concat(hubUser.id)
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
function createHubUserCardSource(auth, userId) {
|
|
20
22
|
let fields = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_FIELDS;
|
|
21
23
|
const http = new HTTP(auth);
|
|
22
24
|
return async function getHubUser() {
|
|
23
|
-
const hubUser = await http.get(
|
|
25
|
+
const hubUser = await http.get("".concat(auth.config.serverUri, "api/rest/users/").concat(userId, "?fields=").concat(fields));
|
|
24
26
|
return convertUserForCard(hubUser, auth.config.serverUri);
|
|
25
27
|
};
|
|
26
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
2
|
import HubSource from './hub-source.js';
|
|
2
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
4
|
|
|
@@ -12,7 +13,7 @@ class HubSourceUsersGroups {
|
|
|
12
13
|
this.usersSource = new HubSource(auth, 'users', {
|
|
13
14
|
searchMax: this.options.searchMax,
|
|
14
15
|
searchSideThreshold: this.options.searchSideThreshold,
|
|
15
|
-
queryFormatter: query =>
|
|
16
|
+
queryFormatter: query => "nameStartsWith: ".concat(HubSourceUsersGroups.wrapMultiwordQuery(query), " or loginStartsWith: ").concat(HubSourceUsersGroups.wrapMultiwordQuery(query))
|
|
16
17
|
});
|
|
17
18
|
this.groupsSource = new HubSource(auth, 'usergroups', {
|
|
18
19
|
searchMax: this.options.searchMax,
|
|
@@ -22,7 +23,7 @@ class HubSourceUsersGroups {
|
|
|
22
23
|
|
|
23
24
|
static wrapMultiwordQuery(query) {
|
|
24
25
|
if (query && query.indexOf(' ') !== -1) {
|
|
25
|
-
return
|
|
26
|
+
return "{".concat(query, "}");
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
return query;
|
package/dist/icon/icon.js
CHANGED
|
@@ -7,11 +7,11 @@ import { Color, Size } from './icon__constants.js';
|
|
|
7
7
|
export { Size } from './icon__constants.js';
|
|
8
8
|
import { m as modules_29747b80 } from '../_helpers/icon.js';
|
|
9
9
|
import IconSVG from './icon__svg.js';
|
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
11
|
import '../global/memoize.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
13
|
|
|
12
|
-
const warnSize = deprecate(() => {},
|
|
13
|
-
|
|
14
|
-
We strongly recommend to use icons handcrafted for particular sizes. If your icon doesn't exist in the desired size, please ask your designer to draw one. "Responsive" checkmark should be unchecked when exporting icon.'`);
|
|
14
|
+
const warnSize = deprecate(() => {}, "`size`, `width` and `height` props are not recommended to use in Ring UI `Icon` component. The intrinsic sizes of SVG icon (`width` and `height` SVG attributes) are used instead.\n\nWe strongly recommend to use icons handcrafted for particular sizes. If your icon doesn't exist in the desired size, please ask your designer to draw one. \"Responsive\" checkmark should be unchecked when exporting icon.'");
|
|
15
15
|
class Icon extends PureComponent {
|
|
16
16
|
warnSize() {
|
|
17
17
|
if (this.props.suppressSizeWarning) {
|
package/dist/icon/icon__svg.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
3
|
import React, { memo } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
import memoize from '../global/memoize.js';
|
|
6
7
|
import { m as modules_29747b80 } from '../_helpers/icon.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
9
|
|
|
8
10
|
function convertReactSVGDOMProperty(str) {
|
|
9
11
|
return str.replace(/[-|:]([a-z])/g, g => g[1].toUpperCase());
|
package/dist/icon/index.js
CHANGED
package/dist/icon-ng/icon-ng.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
3
|
import angular from 'angular';
|
|
2
4
|
import { Color } from '../icon/icon__constants.js';
|
|
3
5
|
import RingTemplateNg from '../template-ng/template-ng.js';
|
|
@@ -22,7 +24,7 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
22
24
|
height: '@?',
|
|
23
25
|
width: '@?'
|
|
24
26
|
},
|
|
25
|
-
template:
|
|
27
|
+
template: "<span class=\"".concat(modules_29747b80.icon, "\" rg-template=\"normalizedGlyph\" rg-template-class=\"").concat(modules_29747b80.glyph, "\"></span>"),
|
|
26
28
|
controller: ["$scope", $scope => {
|
|
27
29
|
function decodeBase64IfNeeded(glyph) {
|
|
28
30
|
// This hack allows passing SVG content as string from angular templates like
|
|
@@ -67,18 +69,18 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
if (size && !width && !height) {
|
|
70
|
-
const sizeString =
|
|
71
|
-
const style =
|
|
72
|
+
const sizeString = "".concat(size, "px");
|
|
73
|
+
const style = "width: ".concat(sizeString, "; height: ").concat(sizeString, ";");
|
|
72
74
|
svgNode.setAttribute('style', style);
|
|
73
75
|
return;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
if (width) {
|
|
77
|
-
svgNode.setAttribute('style',
|
|
79
|
+
svgNode.setAttribute('style', "width: ".concat(width, "px;"));
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
if (height) {
|
|
81
|
-
svgNode.setAttribute('style',
|
|
83
|
+
svgNode.setAttribute('style', "height: ".concat(height, "px;"));
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
}
|
package/dist/input/input.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -17,6 +18,7 @@ import '../icon/icon__constants.js';
|
|
|
17
18
|
import 'util-deprecate';
|
|
18
19
|
import '../_helpers/icon.js';
|
|
19
20
|
import '../icon/icon__svg.js';
|
|
21
|
+
import 'core-js/modules/es.string.replace.js';
|
|
20
22
|
import '../global/memoize.js';
|
|
21
23
|
|
|
22
24
|
function noop() {}
|
|
@@ -96,7 +98,7 @@ class Input extends PureComponent {
|
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
el.style.height =
|
|
101
|
+
el.style.height = "".concat(el.scrollHeight, "px");
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
adapt() {
|
|
@@ -136,7 +138,7 @@ class Input extends PureComponent {
|
|
|
136
138
|
empty
|
|
137
139
|
} = this.state;
|
|
138
140
|
const clearable = !!onClear;
|
|
139
|
-
const classes = classNames(modules_88cfaf40.container, className, modules_88cfaf40[theme], [modules_88cfaf40[
|
|
141
|
+
const classes = classNames(modules_88cfaf40.container, className, modules_88cfaf40[theme], [modules_88cfaf40["size".concat(size)]], {
|
|
140
142
|
'ring-js-shortcuts': enableShortcuts === true,
|
|
141
143
|
[modules_88cfaf40.active]: active,
|
|
142
144
|
[modules_88cfaf40.error]: error != null,
|
|
@@ -7,14 +7,16 @@ import { m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
|
7
7
|
import Theme from '../global/theme.js';
|
|
8
8
|
import ButtonNG from '../button-ng/button-ng.js';
|
|
9
9
|
import 'react';
|
|
10
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
11
|
import '../global/dom.js';
|
|
11
12
|
import '../icon-ng/icon-ng.js';
|
|
13
|
+
import 'core-js/modules/es.string.replace.js';
|
|
12
14
|
import '../icon/icon__constants.js';
|
|
13
15
|
import '../template-ng/template-ng.js';
|
|
14
16
|
import '../_helpers/icon.js';
|
|
15
17
|
import '../_helpers/button__classes.js';
|
|
16
18
|
|
|
17
|
-
var modules_c40fa551 = {"errorText":"
|
|
19
|
+
var modules_c40fa551 = {"errorText":"errorText_rui_6171","clear":"clear_rui_6171"};
|
|
18
20
|
|
|
19
21
|
const angularModule = angular.module('Ring.input', [ButtonNG]);
|
|
20
22
|
|
|
@@ -44,7 +46,7 @@ class RingInputComponent extends RingAngularComponent {
|
|
|
44
46
|
return;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
el.style.height =
|
|
49
|
+
el.style.height = "".concat(el.scrollHeight, "px");
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
onKeyUp() {
|
|
@@ -62,7 +64,7 @@ class RingInputComponent extends RingAngularComponent {
|
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
getContainerClasses() {
|
|
65
|
-
return classNames(modules_88cfaf40.container, modules_88cfaf40[this.theme || Theme.LIGHT], this.size ? [modules_88cfaf40[
|
|
67
|
+
return classNames(modules_88cfaf40.container, modules_88cfaf40[this.theme || Theme.LIGHT], this.size ? [modules_88cfaf40["size".concat(this.size)]] : null, {
|
|
66
68
|
[modules_88cfaf40.active]: this.active,
|
|
67
69
|
[modules_88cfaf40.error]: this.error != null,
|
|
68
70
|
[modules_88cfaf40.empty]: !this.value,
|
|
@@ -101,64 +103,7 @@ _defineProperty(RingInputComponent, "bindings", {
|
|
|
101
103
|
multiline: '<'
|
|
102
104
|
});
|
|
103
105
|
|
|
104
|
-
_defineProperty(RingInputComponent, "template",
|
|
105
|
-
<div
|
|
106
|
-
data-test="ring-input-container"
|
|
107
|
-
ng-class="$ctrl.getContainerClasses()"
|
|
108
|
-
>
|
|
109
|
-
<input
|
|
110
|
-
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
111
|
-
type="text"
|
|
112
|
-
data-test="ring-input"
|
|
113
|
-
class="${modules_88cfaf40.input}"
|
|
114
|
-
name="{{$ctrl.name}}"
|
|
115
|
-
ng-if="!$ctrl.multiline"
|
|
116
|
-
placeholder="{{$ctrl.placeholder}}"
|
|
117
|
-
ng-model="$ctrl.value"
|
|
118
|
-
ng-required="$ctrl.required"
|
|
119
|
-
ng-disabled="$ctrl.disabled"
|
|
120
|
-
ng-minlength="$ctrl.ngMinlength"
|
|
121
|
-
ng-maxlength="$ctrl.ngMaxlength"
|
|
122
|
-
ng-change="$ctrl.onInputChange()"
|
|
123
|
-
ng-keyup="$ctrl.onKeyUp()"
|
|
124
|
-
/>
|
|
125
|
-
|
|
126
|
-
<textarea
|
|
127
|
-
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
128
|
-
data-test="ring-input"
|
|
129
|
-
ng-if="$ctrl.multiline"
|
|
130
|
-
class="${modules_88cfaf40.input}"
|
|
131
|
-
rows="1"
|
|
132
|
-
name="{{$ctrl.name}}"
|
|
133
|
-
placeholder="{{$ctrl.placeholder}}"
|
|
134
|
-
ng-model="$ctrl.value"
|
|
135
|
-
ng-required="$ctrl.required"
|
|
136
|
-
ng-disabled="$ctrl.disabled"
|
|
137
|
-
ng-minlength="$ctrl.ngMinlength"
|
|
138
|
-
ng-maxlength="$ctrl.ngMaxlength"
|
|
139
|
-
ng-change="$ctrl.onInputChange()"
|
|
140
|
-
ng-keyup="$ctrl.onKeyUp()"
|
|
141
|
-
></textarea>
|
|
142
|
-
|
|
143
|
-
<rg-button
|
|
144
|
-
ng-if="$ctrl.clearable"
|
|
145
|
-
data-test="ring-input-clear"
|
|
146
|
-
class="${modules_88cfaf40.clear} ${modules_c40fa551.clear}"
|
|
147
|
-
icon="{{:: $ctrl.closeIcon}}"
|
|
148
|
-
ng-click="$ctrl.onClear()"
|
|
149
|
-
></rg-button>
|
|
150
|
-
|
|
151
|
-
<label
|
|
152
|
-
ng-if="!$ctrl.borderless"
|
|
153
|
-
class="${modules_88cfaf40.label}"
|
|
154
|
-
>{{$ctrl.label}}</label>
|
|
155
|
-
|
|
156
|
-
<div ng-if="!$ctrl.borderless" class="${modules_88cfaf40.underline}"></div>
|
|
157
|
-
<div ng-if="!$ctrl.borderless" class="${modules_88cfaf40.focusUnderline}"></div>
|
|
158
|
-
<div ng-if="!$ctrl.borderless" class="${modules_88cfaf40.errorUnderline}"></div>
|
|
159
|
-
<div ng-if="!$ctrl.borderless && $ctrl.error" class="${modules_88cfaf40.errorText} ${modules_c40fa551.errorText}">{{$ctrl.error}}</div>
|
|
160
|
-
</div>
|
|
161
|
-
`);
|
|
106
|
+
_defineProperty(RingInputComponent, "template", "\n<div\n data-test=\"ring-input-container\"\n ng-class=\"$ctrl.getContainerClasses()\"\n>\n <input\n aria-label=\"{{$ctrl.label || $ctrl.placeholder}}\"\n type=\"text\"\n data-test=\"ring-input\"\n class=\"".concat(modules_88cfaf40.input, "\"\n name=\"{{$ctrl.name}}\"\n ng-if=\"!$ctrl.multiline\"\n placeholder=\"{{$ctrl.placeholder}}\"\n ng-model=\"$ctrl.value\"\n ng-required=\"$ctrl.required\"\n ng-disabled=\"$ctrl.disabled\"\n ng-minlength=\"$ctrl.ngMinlength\"\n ng-maxlength=\"$ctrl.ngMaxlength\"\n ng-change=\"$ctrl.onInputChange()\"\n ng-keyup=\"$ctrl.onKeyUp()\"\n />\n\n <textarea\n aria-label=\"{{$ctrl.label || $ctrl.placeholder}}\"\n data-test=\"ring-input\"\n ng-if=\"$ctrl.multiline\"\n class=\"").concat(modules_88cfaf40.input, "\"\n rows=\"1\"\n name=\"{{$ctrl.name}}\"\n placeholder=\"{{$ctrl.placeholder}}\"\n ng-model=\"$ctrl.value\"\n ng-required=\"$ctrl.required\"\n ng-disabled=\"$ctrl.disabled\"\n ng-minlength=\"$ctrl.ngMinlength\"\n ng-maxlength=\"$ctrl.ngMaxlength\"\n ng-change=\"$ctrl.onInputChange()\"\n ng-keyup=\"$ctrl.onKeyUp()\"\n ></textarea>\n\n <rg-button\n ng-if=\"$ctrl.clearable\"\n data-test=\"ring-input-clear\"\n class=\"").concat(modules_88cfaf40.clear, " ").concat(modules_c40fa551.clear, "\"\n icon=\"{{:: $ctrl.closeIcon}}\"\n ng-click=\"$ctrl.onClear()\"\n ></rg-button>\n\n <label\n ng-if=\"!$ctrl.borderless\"\n class=\"").concat(modules_88cfaf40.label, "\"\n >{{$ctrl.label}}</label>\n\n <div ng-if=\"!$ctrl.borderless\" class=\"").concat(modules_88cfaf40.underline, "\"></div>\n <div ng-if=\"!$ctrl.borderless\" class=\"").concat(modules_88cfaf40.focusUnderline, "\"></div>\n <div ng-if=\"!$ctrl.borderless\" class=\"").concat(modules_88cfaf40.errorUnderline, "\"></div>\n <div ng-if=\"!$ctrl.borderless && $ctrl.error\" class=\"").concat(modules_88cfaf40.errorText, " ").concat(modules_c40fa551.errorText, "\">{{$ctrl.error}}</div>\n</div>\n "));
|
|
162
107
|
|
|
163
108
|
angularModule.component('rgInput', RingInputComponent);
|
|
164
109
|
var InputNg = angularModule.name;
|
package/dist/island/content.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { Component } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
package/dist/island/header.js
CHANGED
|
@@ -5,6 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { interpolateLinear } from '../global/linear-function.js';
|
|
6
6
|
import { m as modules_e6a056e1 } from '../_helpers/island.js';
|
|
7
7
|
import { PhaseContext } from './adaptive-island-hoc.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
9
|
|
|
9
10
|
const Start = {
|
|
10
11
|
FONT_SIZE: 24,
|
|
@@ -39,14 +40,14 @@ class Header extends Component {
|
|
|
39
40
|
[modules_e6a056e1.withBottomBorder]: border || phase >= BORDER_APPEAR_PHASE
|
|
40
41
|
});
|
|
41
42
|
const headerStyle = phase != null ? {
|
|
42
|
-
lineHeight:
|
|
43
|
+
lineHeight: "".concat(this.style('LINE_HEIGHT'), "px"),
|
|
43
44
|
// need to append px because number is a valid line-height value
|
|
44
45
|
paddingTop: this.style('PADDING')
|
|
45
46
|
} : null;
|
|
46
47
|
const scaleFont = phase != null && this.style('FONT_SIZE') / Start.FONT_SIZE;
|
|
47
48
|
const titleStyle = phase != null && phase < 1 ? {
|
|
48
49
|
fontSize: Start.FONT_SIZE,
|
|
49
|
-
transform:
|
|
50
|
+
transform: "translate(".concat(this.style('X'), "px, ").concat(this.style('Y'), "px) scale(").concat(scaleFont, ")"),
|
|
50
51
|
letterSpacing: this.style('SPACING')
|
|
51
52
|
} : null;
|
|
52
53
|
return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
package/dist/island/island.js
CHANGED
|
@@ -7,6 +7,7 @@ import adaptiveIslandHOC from './adaptive-island-hoc.js';
|
|
|
7
7
|
import { m as modules_e6a056e1 } from '../_helpers/island.js';
|
|
8
8
|
export { default as Header } from './header.js';
|
|
9
9
|
export { default as Content } from './content.js';
|
|
10
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
11
|
import '../global/linear-function.js';
|
|
11
12
|
import 'element-resize-detector';
|
|
12
13
|
import '../global/schedule-raf.js';
|
|
@@ -2,6 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import { m as modules_e6a056e1 } from '../_helpers/island.js';
|
|
3
3
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
4
4
|
import compile from './island-ng-class-fixer.js';
|
|
5
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
6
|
|
|
6
7
|
const scheduleScroll = scheduleRAF();
|
|
7
8
|
const angularModule = angular.module('Ring.island-ng.header', []);
|
|
@@ -14,22 +15,7 @@ angularModule.directive('rgIslandContent', function islandContentDirective() {
|
|
|
14
15
|
onScroll: '&?'
|
|
15
16
|
},
|
|
16
17
|
compile,
|
|
17
|
-
template:
|
|
18
|
-
<div
|
|
19
|
-
data-test="ring-island-content"
|
|
20
|
-
class=${modules_e6a056e1.content}
|
|
21
|
-
ng-class="{
|
|
22
|
-
'${modules_e6a056e1.contentWithTopFade}': contentCtrl.fade,
|
|
23
|
-
'${modules_e6a056e1.contentWithBottomFade}': contentCtrl.fade
|
|
24
|
-
}"
|
|
25
|
-
>
|
|
26
|
-
<div
|
|
27
|
-
tabindex="0"
|
|
28
|
-
class="${modules_e6a056e1.scrollableWrapper} js-scrollable-wrapper"
|
|
29
|
-
ng-transclude
|
|
30
|
-
></div>
|
|
31
|
-
</div>
|
|
32
|
-
`,
|
|
18
|
+
template: "\n<div\n data-test=\"ring-island-content\"\n class=".concat(modules_e6a056e1.content, "\n ng-class=\"{\n '").concat(modules_e6a056e1.contentWithTopFade, "': contentCtrl.fade,\n '").concat(modules_e6a056e1.contentWithBottomFade, "': contentCtrl.fade\n }\"\n>\n <div\n tabindex=\"0\"\n class=\"").concat(modules_e6a056e1.scrollableWrapper, " js-scrollable-wrapper\"\n ng-transclude\n ></div>\n</div>\n"),
|
|
33
19
|
controllerAs: 'contentCtrl',
|
|
34
20
|
controller: ["$scope", "$element", function controller($scope, $element) {
|
|
35
21
|
const el = $element[0];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
import { m as modules_e6a056e1 } from '../_helpers/island.js';
|
|
3
3
|
import compile from './island-ng-class-fixer.js';
|
|
4
|
+
import 'core-js/modules/es.string.replace.js';
|
|
4
5
|
|
|
5
6
|
const angularModule = angular.module('Ring.island-ng.content', []);
|
|
6
7
|
angularModule.directive('rgIslandHeader', function islandHeaderDirective() {
|
|
@@ -11,14 +12,7 @@ angularModule.directive('rgIslandHeader', function islandHeaderDirective() {
|
|
|
11
12
|
border: '=?'
|
|
12
13
|
},
|
|
13
14
|
compile,
|
|
14
|
-
template:
|
|
15
|
-
<div
|
|
16
|
-
data-test="ring-island-header"
|
|
17
|
-
class="${modules_e6a056e1.header}"
|
|
18
|
-
ng-class="{'${modules_e6a056e1.withBottomBorder}': headerCtrl.border}"
|
|
19
|
-
ng-transclude
|
|
20
|
-
></div>
|
|
21
|
-
`,
|
|
15
|
+
template: "\n<div\n data-test=\"ring-island-header\"\n class=\"".concat(modules_e6a056e1.header, "\"\n ng-class=\"{'").concat(modules_e6a056e1.withBottomBorder, "': headerCtrl.border}\" \n ng-transclude\n></div>\n"),
|
|
22
16
|
controllerAs: 'headerCtrl',
|
|
23
17
|
controller: function controller() {
|
|
24
18
|
this.$onInit = () => {
|
|
@@ -3,6 +3,7 @@ import { m as modules_e6a056e1 } from '../_helpers/island.js';
|
|
|
3
3
|
import IslandHeader from './island-header-ng.js';
|
|
4
4
|
import IslandContent from './island-content-ng.js';
|
|
5
5
|
import compile from './island-ng-class-fixer.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
6
7
|
import '../global/schedule-raf.js';
|
|
7
8
|
|
|
8
9
|
const angularModule = angular.module('Ring.island-ng', [IslandHeader, IslandContent]);
|
|
@@ -14,14 +15,7 @@ angularModule.directive('rgIsland', function islandDirective() {
|
|
|
14
15
|
narrow: '='
|
|
15
16
|
},
|
|
16
17
|
compile,
|
|
17
|
-
template:
|
|
18
|
-
<div
|
|
19
|
-
data-test="ring-island"
|
|
20
|
-
class="${modules_e6a056e1.island}"
|
|
21
|
-
ng-class="{'${modules_e6a056e1.narrowIsland}': islandCtrl.narrow}"
|
|
22
|
-
ng-transclude
|
|
23
|
-
></div>
|
|
24
|
-
`,
|
|
18
|
+
template: "\n<div \n data-test=\"ring-island\"\n class=\"".concat(modules_e6a056e1.island, "\" \n ng-class=\"{'").concat(modules_e6a056e1.narrowIsland, "': islandCtrl.narrow}\" \n ng-transclude\n></div>\n"),
|
|
25
19
|
controllerAs: 'islandCtrl',
|
|
26
20
|
controller: angular.noop
|
|
27
21
|
};
|
package/dist/link/link.js
CHANGED
|
@@ -7,6 +7,7 @@ import memoize from '../global/memoize.js';
|
|
|
7
7
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
8
8
|
import ClickableLink from './clickableLink.js';
|
|
9
9
|
import { m as modules_607b0772 } from '../_helpers/link.js';
|
|
10
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @name Link
|
package/dist/link-ng/link-ng.js
CHANGED
|
@@ -12,10 +12,7 @@ function rgLinkDirective() {
|
|
|
12
12
|
restrict: 'E',
|
|
13
13
|
transclude: true,
|
|
14
14
|
replace: true,
|
|
15
|
-
template:
|
|
16
|
-
<a class="${modules_607b0772.link} ${modules_607b0772.compatibilityUnderlineMode}"
|
|
17
|
-
><span class="${modules_607b0772.inner}" ng-transclude></span></a>
|
|
18
|
-
`
|
|
15
|
+
template: "\n<a class=\"".concat(modules_607b0772.link, " ").concat(modules_607b0772.compatibilityUnderlineMode, "\"\n><span class=\"").concat(modules_607b0772.inner, "\" ng-transclude></span></a>\n ")
|
|
19
16
|
};
|
|
20
17
|
}
|
|
21
18
|
|
package/dist/list/list.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { Component, cloneElement } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -33,6 +34,7 @@ import '../link/clickableLink.js';
|
|
|
33
34
|
import '../_helpers/link.js';
|
|
34
35
|
import '../avatar/avatar.js';
|
|
35
36
|
import '../global/url.js';
|
|
37
|
+
import 'core-js/modules/es.string.replace.js';
|
|
36
38
|
import '../avatar/fallback-avatar.js';
|
|
37
39
|
import '../checkbox/checkbox.js';
|
|
38
40
|
import '@jetbrains/icons/checkmark';
|
|
@@ -132,19 +134,19 @@ class List extends Component {
|
|
|
132
134
|
switch (item.rgItemType) {
|
|
133
135
|
case Type.SEPARATOR:
|
|
134
136
|
case Type.TITLE:
|
|
135
|
-
return
|
|
137
|
+
return "".concat(item.rgItemType).concat(isFirst ? '_first' : '').concat(item.description ? '_desc' : '');
|
|
136
138
|
|
|
137
139
|
case Type.MARGIN:
|
|
138
140
|
return Type.MARGIN;
|
|
139
141
|
|
|
140
142
|
case Type.CUSTOM:
|
|
141
|
-
return
|
|
143
|
+
return "".concat(Type.CUSTOM, "_").concat(item.key);
|
|
142
144
|
|
|
143
145
|
case Type.ITEM:
|
|
144
146
|
case Type.LINK:
|
|
145
147
|
default:
|
|
146
148
|
if (item.details) {
|
|
147
|
-
return
|
|
149
|
+
return "".concat(Type.ITEM, "_").concat(item.details);
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
return Type.ITEM;
|
|
@@ -333,7 +335,7 @@ class List extends Component {
|
|
|
333
335
|
const itemId = this.getId(item); // top and bottom margins
|
|
334
336
|
|
|
335
337
|
if (index === 0 || index === this.props.data.length + 1 || item.rgItemType === Type.MARGIN) {
|
|
336
|
-
itemKey = key ||
|
|
338
|
+
itemKey = key || "".concat(Type.MARGIN, "_").concat(index);
|
|
337
339
|
el = /*#__PURE__*/React.createElement("div", {
|
|
338
340
|
style: {
|
|
339
341
|
height: Dimension.MARGIN
|
|
@@ -412,7 +414,7 @@ class List extends Component {
|
|
|
412
414
|
break;
|
|
413
415
|
|
|
414
416
|
default:
|
|
415
|
-
throw new Error(
|
|
417
|
+
throw new Error("Unknown menu element type: ".concat(itemProps.rgItemType));
|
|
416
418
|
}
|
|
417
419
|
|
|
418
420
|
el = /*#__PURE__*/React.createElement(ItemComponent, itemProps);
|
|
@@ -608,14 +610,14 @@ class List extends Component {
|
|
|
608
610
|
|
|
609
611
|
if (identificator && !isString) {
|
|
610
612
|
warnEmptyKey();
|
|
611
|
-
|
|
613
|
+
"".concat(itemProps.rgItemType, "_").concat(JSON.stringify(identificator));
|
|
612
614
|
}
|
|
613
615
|
|
|
614
|
-
return
|
|
616
|
+
return "".concat(itemProps.rgItemType, "_").concat(identificator);
|
|
615
617
|
}
|
|
616
618
|
|
|
617
619
|
getId(item) {
|
|
618
|
-
return item != null ?
|
|
620
|
+
return item != null ? "".concat(this.id, ":").concat(item.key || this._deprecatedGenerateKeyFromContent(item)) : null;
|
|
619
621
|
}
|
|
620
622
|
|
|
621
623
|
get inner() {
|
package/dist/list/list__item.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -9,6 +10,7 @@ import Icon from '../icon/icon.js';
|
|
|
9
10
|
import getUID from '../global/get-uid.js';
|
|
10
11
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
|
11
12
|
import '../global/url.js';
|
|
13
|
+
import 'core-js/modules/es.string.replace.js';
|
|
12
14
|
import '../global/dom.js';
|
|
13
15
|
import '../avatar/fallback-avatar.js';
|
|
14
16
|
import '@jetbrains/icons/checkmark';
|
|
@@ -20,7 +22,7 @@ import '../_helpers/icon.js';
|
|
|
20
22
|
import '../icon/icon__svg.js';
|
|
21
23
|
import '../global/memoize.js';
|
|
22
24
|
|
|
23
|
-
var modules_5b0fb3e8 = {"unit":"8px","footer-height":"64px","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","middle-screen-media":"(min-width: 960px) and (max-width: 1199px)","large-screen-media":"(min-width: 1200px)","clearfix":"
|
|
25
|
+
var modules_5b0fb3e8 = {"unit":"8px","footer-height":"64px","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","middle-screen-media":"(min-width: 960px) and (max-width: 1199px)","large-screen-media":"(min-width: 1200px)","clearfix":"clearfix_rui_e616","font":"font_rui_e616","font-lower":"font-lower_rui_e616 font_rui_e616","font-smaller":"font-smaller_rui_e616 font-lower_rui_e616 font_rui_e616","font-smaller-lower":"font-smaller-lower_rui_e616 font-smaller_rui_e616 font-lower_rui_e616 font_rui_e616","font-larger-lower":"font-larger-lower_rui_e616 font-lower_rui_e616 font_rui_e616","font-larger":"font-larger_rui_e616 font-larger-lower_rui_e616 font-lower_rui_e616 font_rui_e616","thin-font":"thin-font_rui_e616","monospace-font":"monospace-font_rui_e616","ellipsis":"ellipsis_rui_e616","resetButton":"resetButton_rui_e616"};
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* @constructor
|
|
@@ -88,7 +90,7 @@ class ListItem extends PureComponent {
|
|
|
88
90
|
[modules_3b67a421.padded]: icon !== undefined || checkbox !== undefined || glyph !== undefined
|
|
89
91
|
});
|
|
90
92
|
const style = {
|
|
91
|
-
paddingLeft:
|
|
93
|
+
paddingLeft: "".concat((+level || 0) * RING_UNIT + DEFAULT_PADDING + (showCheckbox ? CHECKBOX_WIDTH : 0), "px")
|
|
92
94
|
};
|
|
93
95
|
let computedTitle = null;
|
|
94
96
|
|
|
@@ -160,7 +162,7 @@ class ListItem extends PureComponent {
|
|
|
160
162
|
}), icon && /*#__PURE__*/React.createElement("div", {
|
|
161
163
|
className: modules_3b67a421.icon,
|
|
162
164
|
style: {
|
|
163
|
-
backgroundImage:
|
|
165
|
+
backgroundImage: "url(\"".concat(icon, "\")")
|
|
164
166
|
}
|
|
165
167
|
}), rightNodes)), details && /*#__PURE__*/React.createElement("div", {
|
|
166
168
|
className: detailsClasses
|