@jetbrains/ring-ui 5.0.27 → 5.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/auth/auth__core.js +1 -1
- package/components/button/button.d.ts +1 -1
- package/components/code/code.d.ts +2 -2
- package/components/confirm-service/confirm-service.d.ts +7 -1
- package/components/confirm-service/confirm-service.js +7 -5
- package/components/date-picker/consts.d.ts +1 -1
- package/components/date-picker/date-input.d.ts +2 -2
- package/components/date-picker/date-picker.d.ts +5 -5
- package/components/date-picker/date-popup.d.ts +5 -5
- package/components/date-picker/day.d.ts +6 -6
- package/components/date-picker/month-names.d.ts +2 -2
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/years.d.ts +1 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/error-message/error-message.d.ts +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/grid/col.d.ts +4 -4
- package/components/header/profile.d.ts +1 -1
- package/components/header/tray-icon.d.ts +1 -1
- package/components/http/http.d.ts +10 -8
- package/components/http/http.js +17 -5
- package/components/icon/icon.d.ts +1 -1
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/link.d.ts +2 -2
- package/components/radio/radio.d.ts +2 -2
- package/components/shortcuts/shortcuts-hoc.d.ts +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/table-legacy/table-legacy.css +1 -1
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +1 -1
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tag/tag.d.ts +1 -1
- package/components/tags-input/tags-input.d.ts +2 -2
- package/components/user-card/card.d.ts +2 -2
- package/dist/_helpers/button__classes.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +1 -2
- package/dist/_helpers/select__filter.js +0 -1
- package/dist/_helpers/services-link.js +1 -1
- package/dist/_helpers/sidebar.js +1 -2
- package/dist/_helpers/theme.js +0 -1
- package/dist/_helpers/title.js +0 -1
- package/dist/alert/alert.js +0 -2
- package/dist/alert-service/alert-service.js +0 -2
- package/dist/analytics/analytics.js +3 -4
- package/dist/analytics/analytics__custom-plugin.js +1 -2
- package/dist/analytics/analytics__fus-plugin.js +0 -1
- package/dist/analytics/analytics__plugin-utils.js +3 -4
- package/dist/analytics-ng/analytics-ng.js +2 -3
- package/dist/auth/auth.js +0 -2
- package/dist/auth/auth__core.js +11 -13
- package/dist/auth/background-flow.js +1 -2
- package/dist/auth/down-notification.js +0 -2
- package/dist/auth/iframe-flow.js +0 -2
- package/dist/auth/landing.js +4 -6
- package/dist/auth/request-builder.js +0 -1
- package/dist/auth/response-parser.js +0 -1
- package/dist/auth/storage.js +0 -2
- package/dist/auth/token-validator.js +0 -2
- package/dist/auth/window-flow.js +1 -2
- package/dist/auth-dialog/auth-dialog.js +1 -3
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -2
- package/dist/auth-ng/auth-ng.js +1 -3
- package/dist/autofocus-ng/autofocus-ng.js +0 -1
- package/dist/avatar/avatar-example-datauri.js +23 -1
- package/dist/avatar/avatar.js +2 -4
- package/dist/avatar/fallback-avatar.js +3 -4
- package/dist/avatar-editor-ng/avatar-editor-ng.js +0 -2
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +28 -1
- package/dist/avatar-ng/avatar-ng.js +0 -2
- package/dist/badge/badge.js +0 -1
- package/dist/badge-ng/badge-ng.js +0 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +27 -3
- package/dist/button/button.d.ts +1 -1
- package/dist/button/button.js +0 -2
- package/dist/button-group/button-group.js +0 -1
- package/dist/button-group-ng/button-group-ng.js +0 -1
- package/dist/button-ng/button-ng.js +10 -4
- package/dist/button-set/button-set.js +0 -1
- package/dist/button-set-ng/button-set-ng.js +1 -1
- package/dist/button-toolbar/button-toolbar.js +0 -1
- package/dist/button-toolbar-ng/button-toolbar-ng.js +0 -1
- package/dist/caret/caret.js +0 -2
- package/dist/checkbox/checkbox.js +0 -2
- package/dist/checkbox-ng/checkbox-ng.js +21 -4
- package/dist/code/code.d.ts +2 -2
- package/dist/code/code.js +1 -2
- package/dist/confirm/confirm.js +0 -2
- package/dist/confirm-ng/confirm-ng.js +0 -2
- package/dist/confirm-service/confirm-service.d.ts +7 -1
- package/dist/confirm-service/confirm-service.js +11 -9
- package/dist/content-layout/content-layout.js +0 -1
- package/dist/content-layout/sidebar.js +0 -1
- package/dist/data-list/data-list.js +0 -2
- package/dist/data-list/data-list.mock.js +0 -1
- package/dist/data-list/item.js +0 -2
- package/dist/data-list/selection.js +0 -1
- package/dist/data-list/title.js +0 -2
- package/dist/data-list-ng/data-list-ng.js +0 -2
- package/dist/date-picker/consts.d.ts +1 -1
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.d.ts +2 -2
- package/dist/date-picker/date-input.js +1 -3
- package/dist/date-picker/date-picker.d.ts +5 -5
- package/dist/date-picker/date-picker.js +7 -9
- package/dist/date-picker/date-popup.d.ts +5 -5
- package/dist/date-picker/date-popup.js +0 -2
- package/dist/date-picker/day.d.ts +6 -6
- package/dist/date-picker/day.js +0 -1
- package/dist/date-picker/month-names.d.ts +2 -2
- package/dist/date-picker/month-names.js +0 -1
- package/dist/date-picker/month-slider.d.ts +1 -1
- package/dist/date-picker/month-slider.js +0 -1
- package/dist/date-picker/month.d.ts +1 -1
- package/dist/date-picker/month.js +0 -1
- package/dist/date-picker/months.d.ts +1 -1
- package/dist/date-picker/months.js +0 -1
- package/dist/date-picker/years.d.ts +1 -1
- package/dist/date-picker/years.js +0 -1
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.js +0 -2
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -1
- package/dist/dialog-ng/dialog-ng.js +3 -6
- package/dist/dialog-ng/dialog-ng__template.js +70 -1
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
- package/dist/dropdown/anchor.js +0 -2
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +0 -2
- package/dist/dropdown-menu/dropdown-menu.js +1 -3
- package/dist/error-bubble/error-bubble.js +0 -2
- package/dist/error-message/error-message.d.ts +1 -1
- package/dist/error-message/error-message.js +1 -3
- package/dist/error-message-ng/error-message-ng.js +21 -3
- package/dist/footer/footer.js +0 -1
- package/dist/footer-ng/footer-ng.js +14 -3
- package/dist/form-ng/form-ng.js +4 -2
- package/dist/global/angular-component-factory.js +2 -3
- package/dist/global/create-stateful-context.js +2 -3
- package/dist/global/data-tests.js +0 -2
- package/dist/global/dom.js +0 -1
- package/dist/global/focus-sensor-hoc.js +0 -1
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/inject-styles.js +7 -5
- package/dist/global/listeners.js +0 -1
- package/dist/global/memoize.js +0 -2
- package/dist/global/normalize-indent.js +0 -2
- package/dist/global/react-dom-renderer.js +0 -1
- package/dist/global/react-render-adapter.js +0 -1
- package/dist/global/rerender-hoc.d.ts +1 -1
- package/dist/global/rerender-hoc.js +1 -2
- package/dist/global/theme.js +0 -2
- package/dist/global/trivial-template-tag.js +0 -2
- package/dist/global/url.js +1 -3
- package/dist/grid/col.d.ts +4 -4
- package/dist/grid/col.js +1 -2
- package/dist/grid/grid.js +0 -1
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.js +0 -2
- package/dist/header/logo.js +0 -2
- package/dist/header/profile.d.ts +1 -1
- package/dist/header/profile.js +0 -2
- package/dist/header/services-link.js +0 -1
- package/dist/header/services.js +0 -2
- package/dist/header/smart-profile.js +2 -4
- package/dist/header/smart-services.js +1 -3
- package/dist/header/tray-icon.d.ts +1 -1
- package/dist/header/tray-icon.js +0 -2
- package/dist/heading/heading.js +2 -2
- package/dist/heading-ng/heading-ng.js +0 -1
- package/dist/http/http.d.ts +10 -8
- package/dist/http/http.js +21 -11
- package/dist/http/http.mock.js +0 -2
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__user.js +2 -4
- package/dist/hub-source/hub-source__users-groups.js +2 -3
- package/dist/icon/icon.d.ts +1 -1
- package/dist/icon/icon.js +3 -3
- package/dist/icon/icon__svg.js +0 -2
- package/dist/icon/index.js +0 -2
- package/dist/icon-ng/icon-ng.js +5 -7
- package/dist/input/input.js +2 -4
- package/dist/input-ng/input-ng.js +58 -5
- package/dist/island/adaptive-island-hoc.js +0 -1
- package/dist/island/content.js +0 -1
- package/dist/island/header.js +2 -3
- package/dist/island/island.js +0 -1
- package/dist/island-ng/island-content-ng.js +16 -2
- package/dist/island-ng/island-header-ng.js +8 -2
- package/dist/island-ng/island-ng-class-fixer.js +0 -2
- package/dist/island-ng/island-ng.js +8 -2
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/clickableLink.js +0 -1
- package/dist/link/link.d.ts +2 -2
- package/dist/link/link.js +0 -1
- package/dist/link-ng/link-ng.js +4 -1
- package/dist/list/list.js +8 -10
- package/dist/list/list__custom.js +0 -1
- package/dist/list/list__item.js +2 -4
- package/dist/list/list__link.js +0 -1
- package/dist/list/list__users-groups-source.js +1 -3
- package/dist/loader/loader.js +0 -1
- package/dist/loader/loader__core.js +3 -4
- package/dist/loader-inline/loader-inline.js +0 -1
- package/dist/loader-inline-ng/loader-inline-ng.js +1 -1
- package/dist/loader-ng/loader-ng.js +0 -1
- package/dist/loader-screen/loader-screen.js +0 -1
- package/dist/loader-screen-ng/loader-screen-ng.js +6 -2
- package/dist/login-dialog/login-dialog.js +0 -2
- package/dist/login-dialog/service.js +0 -2
- package/dist/markdown/code.js +0 -2
- package/dist/markdown/link.js +0 -1
- package/dist/markdown/markdown.js +0 -2
- package/dist/message/message.js +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +1 -2
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
- package/dist/old-browsers-message/white-list.js +2 -3
- package/dist/pager/pager.js +1 -3
- package/dist/pager-ng/pager-ng.js +0 -2
- package/dist/panel-ng/panel-ng.js +0 -1
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +1 -3
- package/dist/place-under-ng/place-under-ng.js +2 -3
- package/dist/popup/popup.js +2 -4
- package/dist/popup/position.js +0 -1
- package/dist/popup-menu/popup-menu.js +0 -2
- package/dist/progress-bar/progress-bar.js +1 -2
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -1
- package/dist/promised-click-ng/promised-click-ng.js +0 -2
- package/dist/proxy-attrs/proxy-attrs.js +3 -5
- package/dist/query-assist/query-assist.js +2 -4
- package/dist/query-assist/query-assist__suggestions.js +0 -2
- package/dist/query-assist-ng/query-assist-ng.js +0 -2
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radio.js +0 -1
- package/dist/radio/radio__item.js +0 -1
- package/dist/radio-ng/radio-ng.js +18 -2
- package/dist/save-field-ng/save-field-ng.js +1 -3
- package/dist/save-field-ng/save-field-ng__template.js +32 -1
- package/dist/select/select.js +5 -7
- package/dist/select/select__filter.js +0 -2
- package/dist/select/select__popup.js +1 -3
- package/dist/select-ng/select-ng.js +0 -2
- package/dist/select-ng/select-ng__lazy.js +0 -2
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +1 -1
- package/dist/shortcuts/shortcuts-hoc.js +0 -1
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -3
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +48 -1
- package/dist/shortcuts-ng/shortcuts-ng.js +3 -4
- package/dist/sidebar-ng/sidebar-ng.js +0 -2
- package/dist/sidebar-ng/sidebar-ng__button-template.js +18 -1
- package/dist/sidebar-ng/sidebar-ng__template.js +10 -1
- package/dist/storage/storage.js +0 -2
- package/dist/storage/storage__fallback.js +3 -4
- package/dist/storage/storage__local.js +0 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +0 -1
- package/dist/table/cell.js +0 -1
- package/dist/table/disable-hover-hoc.js +0 -1
- package/dist/table/header-cell.js +0 -2
- package/dist/table/header.js +0 -2
- package/dist/table/multitable.js +0 -1
- package/dist/table/row-with-focus-sensor.js +0 -2
- package/dist/table/row.js +1 -3
- package/dist/table/selection-adapter.js +0 -2
- package/dist/table/selection-shortcuts-hoc.js +0 -1
- package/dist/table/selection.js +0 -1
- package/dist/table/smart-table.js +0 -2
- package/dist/table/table.js +0 -2
- package/dist/table-legacy-ng/table-legacy-ng.js +45 -10
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +7 -3
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +1 -2
- package/dist/table-ng/smart-table-ng.js +0 -2
- package/dist/table-ng/table-ng.js +0 -2
- package/dist/tabs/collapsible-more.js +0 -2
- package/dist/tabs/collapsible-tab.js +0 -1
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +0 -2
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +1 -1
- package/dist/tabs/dumb-tabs.js +0 -2
- package/dist/tabs/smart-tabs.js +0 -2
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +0 -1
- package/dist/tabs/tab.d.ts +1 -1
- package/dist/tabs/tab.js +0 -1
- package/dist/tabs/tabs.js +0 -2
- package/dist/tabs-ng/tabs-ng.js +0 -1
- package/dist/tabs-ng/tabs-ng__template.js +38 -1
- package/dist/tag/tag.d.ts +1 -1
- package/dist/tag/tag.js +0 -2
- package/dist/tags-input/tags-input.d.ts +2 -2
- package/dist/tags-input/tags-input.js +0 -2
- package/dist/tags-input-ng/tags-input-ng.js +0 -2
- package/dist/tags-list/tags-list.js +0 -2
- package/dist/template-ng/template-ng.js +0 -1
- package/dist/theme-ng/theme-ng.js +0 -1
- package/dist/toggle/toggle.js +0 -1
- package/dist/toggle-ng/toggle-ng.js +0 -1
- package/dist/tooltip/tooltip.js +0 -2
- package/dist/tooltip-ng/tooltip-ng.js +0 -2
- package/dist/user-agreement/service.js +0 -2
- package/dist/user-agreement/toolbox.eula.js +160 -1
- package/dist/user-agreement/user-agreement.js +0 -2
- package/dist/user-card/card.d.ts +2 -2
- package/dist/user-card/card.js +0 -2
- package/dist/user-card/smart-user-card-tooltip.js +0 -2
- package/dist/user-card/tooltip.js +0 -2
- package/dist/user-card/user-card.js +0 -2
- package/dist/user-card-ng/user-card-ng.js +0 -2
- package/package.json +38 -37
package/dist/markdown/code.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import 'core-js/modules/es.string.replace.js';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import Code from '../code/code.js';
|
|
5
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
5
|
import 'classnames';
|
|
8
6
|
import 'highlight.js/lib/core';
|
|
9
7
|
import '../global/normalize-indent.js';
|
package/dist/markdown/link.js
CHANGED
|
@@ -5,7 +5,6 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
5
5
|
import 'focus-visible';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../global/memoize.js';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
8
|
import '../global/data-tests.js';
|
|
10
9
|
import '../link/clickableLink.js';
|
|
11
10
|
import '../_helpers/link.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { PureComponent } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import ReactMarkdown from 'react-markdown';
|
|
@@ -11,7 +10,6 @@ import trivialTemplateTag from '../global/trivial-template-tag.js';
|
|
|
11
10
|
import MarkdownCode from './code.js';
|
|
12
11
|
import MarkdownLink from './link.js';
|
|
13
12
|
import MarkdownHeading from './heading.js';
|
|
14
|
-
import 'core-js/modules/es.string.replace.js';
|
|
15
13
|
import '../code/code.js';
|
|
16
14
|
import 'highlight.js/lib/core';
|
|
17
15
|
import '../global/memoize.js';
|
package/dist/message/message.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { Component } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -9,7 +8,6 @@ import { Directions } from '../popup/popup.consts.js';
|
|
|
9
8
|
import Icon from '../icon/icon.js';
|
|
10
9
|
import { Button } from '../button/button.js';
|
|
11
10
|
import { T as Theme, m as modules_59717246, a as ThemeProvider } from '../_helpers/theme.js';
|
|
12
|
-
import 'core-js/modules/es.string.replace.js';
|
|
13
11
|
import 'react-dom';
|
|
14
12
|
import '../global/get-uid.js';
|
|
15
13
|
import '../global/schedule-raf.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isBrowserInWhiteList } from './white-list.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import '../global/sniffer.js';
|
|
4
3
|
import 'sniffr';
|
|
5
4
|
|
|
@@ -35,7 +34,7 @@ function changeSmileClickListener(event) {
|
|
|
35
34
|
return '\\\\ (x_x) //';
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
return
|
|
37
|
+
return `{{ (${getRandomEye()}_${getRandomEye()}) }}`;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
target.innerHTML = getRandomSmile();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
1
|
import sniffr from '../global/sniffer.js';
|
|
3
2
|
import 'sniffr';
|
|
4
3
|
|
|
@@ -7,12 +6,12 @@ const MAJOR_VERSION_INDEX = 0;
|
|
|
7
6
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
if (!["and_chr
|
|
9
|
+
if (!["and_chr 105", "chrome 104", "chrome 103", "edge 104", "edge 103", "firefox 103", "ios_saf 15.6", "ios_saf 15.5", "ios_saf 14.5-14.8", "op_mini all", "safari 15.6", "samsung 18.0", "samsung 17.0"]) {
|
|
11
10
|
// eslint-disable-next-line no-console
|
|
12
11
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
const SUPPORTED = ["and_chr
|
|
14
|
+
const SUPPORTED = ["and_chr 105", "chrome 104", "chrome 103", "edge 104", "edge 103", "firefox 103", "ios_saf 15.6", "ios_saf 15.5", "ios_saf 14.5-14.8", "op_mini all", "safari 15.6", "samsung 18.0", "samsung 17.0"] || [];
|
|
16
15
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
|
17
16
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
|
18
17
|
var _item$match;
|
package/dist/pager/pager.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { PureComponent } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -21,7 +20,6 @@ import '../icon/icon__constants.js';
|
|
|
21
20
|
import 'util-deprecate';
|
|
22
21
|
import '../_helpers/icon.js';
|
|
23
22
|
import '../icon/icon__svg.js';
|
|
24
|
-
import 'core-js/modules/es.string.replace.js';
|
|
25
23
|
import '../global/data-tests.js';
|
|
26
24
|
import '../button-group/caption.js';
|
|
27
25
|
import '../_helpers/button-group.js';
|
|
@@ -148,7 +146,7 @@ class Pager extends PureComponent {
|
|
|
148
146
|
} = this.props;
|
|
149
147
|
const data = pageSizes.map(size => ({
|
|
150
148
|
key: size,
|
|
151
|
-
label:
|
|
149
|
+
label: `${size} ${this.props.translations.perPage}`
|
|
152
150
|
}));
|
|
153
151
|
const selected = data.find(it => it.key === pageSize);
|
|
154
152
|
return {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import Pager$1 from '../pager/pager.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'angular';
|
|
6
5
|
import 'react';
|
|
7
6
|
import '../global/react-render-adapter.js';
|
|
@@ -20,7 +19,6 @@ import 'util-deprecate';
|
|
|
20
19
|
import '../icon/icon__constants.js';
|
|
21
20
|
import '../_helpers/icon.js';
|
|
22
21
|
import '../icon/icon__svg.js';
|
|
23
|
-
import 'core-js/modules/es.string.replace.js';
|
|
24
22
|
import '../global/memoize.js';
|
|
25
23
|
import '../link/clickableLink.js';
|
|
26
24
|
import '../global/controls-height.js';
|
|
@@ -2,7 +2,6 @@ import angular from 'angular';
|
|
|
2
2
|
import { m as modules_cf670408 } from '../_helpers/panel.js';
|
|
3
3
|
import { addClasses } from '../global/dom.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
5
|
|
|
7
6
|
const angularModule = angular.module('Ring.panel', []);
|
|
8
7
|
angularModule.directive('rgPanel', function rgEqualValueDirective() {
|
|
@@ -2,7 +2,6 @@ import angular from 'angular';
|
|
|
2
2
|
import '../auth-ng/auth-ng.js';
|
|
3
3
|
import Permissions from '../permissions/permissions.js';
|
|
4
4
|
import PermissionCache from '../permissions/permissions__cache.js';
|
|
5
|
-
import 'core-js/modules/es.string.replace.js';
|
|
6
5
|
import '../auth/auth.js';
|
|
7
6
|
import '../auth/window-flow.js';
|
|
8
7
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -13,7 +12,6 @@ import '../auth/down-notification.js';
|
|
|
13
12
|
import 'react';
|
|
14
13
|
import 'prop-types';
|
|
15
14
|
import '../alert-service/alert-service.js';
|
|
16
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
17
15
|
import '../global/react-render-adapter.js';
|
|
18
16
|
import 'react-dom';
|
|
19
17
|
import '../global/get-uid.js';
|
|
@@ -214,7 +212,7 @@ angularModule.directive('rgPermissionIf', ["$animate", "userPermissions", "$inte
|
|
|
214
212
|
$transclude(childScope, clone => {
|
|
215
213
|
block = {
|
|
216
214
|
startNode: clone[0],
|
|
217
|
-
endNode: clone[clone.length++] = document.createComment(
|
|
215
|
+
endNode: clone[clone.length++] = document.createComment(` end rgPermissionIf: ${iAttrs.rgPermissionIf} `)
|
|
218
216
|
};
|
|
219
217
|
$animate.enter(clone, iElement.parent(), iElement);
|
|
220
218
|
});
|
|
@@ -3,7 +3,6 @@ import debounce from 'just-debounce-it';
|
|
|
3
3
|
import createResizeDetector from 'element-resize-detector';
|
|
4
4
|
import { getDocumentScrollTop } from '../global/dom.js';
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
6
|
|
|
8
7
|
const resizeDetector = createResizeDetector();
|
|
9
8
|
const angularModule = angular.module('Ring.place-under', []);
|
|
@@ -83,7 +82,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
83
82
|
const syncedElementOffsetTop = syncElement.getBoundingClientRect().top + documentScrollTop;
|
|
84
83
|
const bottom = syncedElementOffsetTop + syncedElementHeight;
|
|
85
84
|
const margin = Math.max(bottom - documentScrollTop, syncedElementHeight);
|
|
86
|
-
element.style.marginTop =
|
|
85
|
+
element.style.marginTop = `${margin + topOffset}px`;
|
|
87
86
|
|
|
88
87
|
if (syncHeight) {
|
|
89
88
|
/**
|
|
@@ -116,7 +115,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
|
|
119
|
-
element.style.height =
|
|
118
|
+
element.style.height = `calc(100% - ${parseInt(element.style.marginTop, 10) + bottomOffset}px)`;
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
|
package/dist/popup/popup.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
-
import 'core-js/modules/es.string.replace.js';
|
|
4
2
|
import React, { PureComponent } from 'react';
|
|
5
3
|
import { createPortal } from 'react-dom';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
@@ -24,7 +22,7 @@ var modules_2f69e2e2 = {"popup":"popup_rui_7cd4 font_rui_8bff","hidden":"hidden_
|
|
|
24
22
|
|
|
25
23
|
const stop = e => e.stopPropagation();
|
|
26
24
|
|
|
27
|
-
const getPopupContainer = target => typeof target === 'string' ? document.querySelector(
|
|
25
|
+
const getPopupContainer = target => typeof target === 'string' ? document.querySelector(`[data-portaltarget=${target}]`) : target;
|
|
28
26
|
/**
|
|
29
27
|
* @constructor
|
|
30
28
|
* @name Popup
|
|
@@ -106,7 +104,7 @@ class Popup extends PureComponent {
|
|
|
106
104
|
const propKey = key;
|
|
107
105
|
|
|
108
106
|
if (typeof value === 'number') {
|
|
109
|
-
popup.style[propKey] =
|
|
107
|
+
popup.style[propKey] = `${value}px`;
|
|
110
108
|
} else {
|
|
111
109
|
popup.style[propKey] = value.toString();
|
|
112
110
|
}
|
package/dist/popup/position.js
CHANGED
|
@@ -2,7 +2,6 @@ import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft, getWin
|
|
|
2
2
|
import { MaxHeight, Dimension, MinWidth, Directions } from './popup.consts.js';
|
|
3
3
|
export { Dimension, Directions, MaxHeight, MinWidth } from './popup.consts.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
5
|
|
|
7
6
|
function getScrollingCoordinates(container) {
|
|
8
7
|
if (container !== null) {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import Popup from '../popup/popup.js';
|
|
6
5
|
import List from '../list/list.js';
|
|
7
|
-
import 'core-js/modules/es.string.replace.js';
|
|
8
6
|
import 'react-dom';
|
|
9
7
|
import 'classnames';
|
|
10
8
|
import '../global/get-uid.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { PureComponent } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -48,7 +47,7 @@ class ProgressBar extends PureComponent {
|
|
|
48
47
|
label,
|
|
49
48
|
...otherProps
|
|
50
49
|
} = this.props;
|
|
51
|
-
const width = value ?
|
|
50
|
+
const width = value ? `${ProgressBar.toPercent(value, max)}%` : undefined;
|
|
52
51
|
const classes = classNames(modules_fb7af416.progressBar, className, {
|
|
53
52
|
[modules_fb7af416.globalMode]: global
|
|
54
53
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import ProgressBar from '../progress-bar/progress-bar.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'angular';
|
|
6
5
|
import 'react';
|
|
7
6
|
import '../global/react-render-adapter.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import angular from 'angular';
|
|
4
3
|
import { m as modules_e81895c9 } from '../_helpers/button__classes.js';
|
|
5
4
|
import { applyMethodToClasses } from '../global/dom.js';
|
|
@@ -7,7 +6,6 @@ import RingAngularComponent from '../global/ring-angular-component.js';
|
|
|
7
6
|
import { LOADER_BACKGROUND_SELECTOR } from '../button-ng/button-ng.js';
|
|
8
7
|
import 'classnames';
|
|
9
8
|
import '../icon-ng/icon-ng.js';
|
|
10
|
-
import 'core-js/modules/es.string.replace.js';
|
|
11
9
|
import '../icon/icon__constants.js';
|
|
12
10
|
import '../template-ng/template-ng.js';
|
|
13
11
|
import '../_helpers/icon.js';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import 'core-js/modules/es.string.replace.js';
|
|
2
|
-
|
|
3
1
|
function proxyAttrs(template, attrsWhitelist) {
|
|
4
2
|
return function copyAttrs(iElement, iAttrs) {
|
|
5
3
|
const PREFIX = 'data-proxy-';
|
|
@@ -9,9 +7,9 @@ function proxyAttrs(template, attrsWhitelist) {
|
|
|
9
7
|
if (iAttrs[attrName] !== undefined) {
|
|
10
8
|
const attrLower = iAttrs.$attr[attrName];
|
|
11
9
|
const attrValue = iAttrs[attrName];
|
|
12
|
-
const attrFind =
|
|
13
|
-
const attrReplace =
|
|
14
|
-
resultTemplate = resultTemplate.replace(RegExp(
|
|
10
|
+
const attrFind = `${PREFIX}${attrLower}`.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
11
|
+
const attrReplace = `${attrLower}="${attrValue}"`;
|
|
12
|
+
resultTemplate = resultTemplate.replace(RegExp(`${attrFind}(="")*`, 'g'), attrReplace);
|
|
15
13
|
}
|
|
16
14
|
});
|
|
17
15
|
return resultTemplate;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.string.replace.js';
|
|
3
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import PropTypes from 'prop-types';
|
|
6
4
|
import debounce from 'just-debounce-it';
|
|
@@ -867,7 +865,7 @@ class QueryAssist extends Component {
|
|
|
867
865
|
return;
|
|
868
866
|
}
|
|
869
867
|
|
|
870
|
-
const styleName =
|
|
868
|
+
const styleName = `${LETTER_CLASS}-${item.style.replace('_', '-')}`;
|
|
871
869
|
|
|
872
870
|
for (let i = item.start; i < item.start + item.length; i++) {
|
|
873
871
|
classes[i] = modules_da7ab055[styleName];
|
|
@@ -942,7 +940,7 @@ class QueryAssist extends Component {
|
|
|
942
940
|
[modules_da7ab055.huge]: huge
|
|
943
941
|
});
|
|
944
942
|
const inputClasses = classNames({
|
|
945
|
-
[
|
|
943
|
+
[`${modules_da7ab055.input} ring-js-shortcuts`]: true,
|
|
946
944
|
[modules_da7ab055.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
|
947
945
|
[modules_da7ab055.inputGap2]: actions.length === 2,
|
|
948
946
|
[modules_da7ab055.inputLeftGap]: this.isRenderingGlassOrLoader() && glass,
|
|
@@ -2,7 +2,6 @@ import 'react';
|
|
|
2
2
|
import '../list/list.js';
|
|
3
3
|
export { Q as default } from '../_helpers/query-assist__suggestions.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
5
|
import 'prop-types';
|
|
7
6
|
import 'classnames';
|
|
8
7
|
import 'react-virtualized/dist/es/List';
|
|
@@ -31,7 +30,6 @@ import '../_helpers/list.js';
|
|
|
31
30
|
import '../list/list__item.js';
|
|
32
31
|
import '../avatar/avatar.js';
|
|
33
32
|
import '../global/url.js';
|
|
34
|
-
import 'core-js/modules/es.string.replace.js';
|
|
35
33
|
import '../avatar/fallback-avatar.js';
|
|
36
34
|
import '../checkbox/checkbox.js';
|
|
37
35
|
import '@jetbrains/icons/checkmark-14px';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import QueryAssist from '../query-assist/query-assist.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'angular';
|
|
6
5
|
import 'react';
|
|
7
6
|
import '../global/react-render-adapter.js';
|
|
@@ -9,7 +8,6 @@ import 'react-dom';
|
|
|
9
8
|
import '../global/ring-angular-component.js';
|
|
10
9
|
import '../global/react-dom-renderer.js';
|
|
11
10
|
import 'prop-types';
|
|
12
|
-
import 'core-js/modules/es.string.replace.js';
|
|
13
11
|
import 'just-debounce-it';
|
|
14
12
|
import 'classnames';
|
|
15
13
|
import 'deep-equal';
|
package/dist/radio/radio.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export default class Radio extends Component<RadioProps> {
|
|
|
8
8
|
static propTypes: {
|
|
9
9
|
name: PropTypes.Requireable<string>;
|
|
10
10
|
disabled: PropTypes.Requireable<boolean>;
|
|
11
|
-
value: PropTypes.Requireable<string | number | boolean
|
|
11
|
+
value: PropTypes.Requireable<NonNullable<string | number | boolean | null | undefined>>;
|
|
12
12
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
children: PropTypes.Validator<
|
|
13
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
14
14
|
};
|
|
15
15
|
static Item: React.ForwardRefExoticComponent<import("./radio__item").RadioItemProps & React.RefAttributes<import("./radio__item").Radio>>;
|
|
16
16
|
uid: string;
|
package/dist/radio/radio.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { createContext, Component, forwardRef } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -2,7 +2,6 @@ import angular from 'angular';
|
|
|
2
2
|
import { m as modules_df92307a } from '../_helpers/radio.js';
|
|
3
3
|
import proxyAttrs from '../proxy-attrs/proxy-attrs.js';
|
|
4
4
|
import getUID from '../global/get-uid.js';
|
|
5
|
-
import 'core-js/modules/es.string.replace.js';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* @name Radio Ng
|
|
@@ -14,7 +13,24 @@ angularModule.directive('rgRadio', function rgCheckboxDirective() {
|
|
|
14
13
|
restrict: 'E',
|
|
15
14
|
transclude: true,
|
|
16
15
|
replace: true,
|
|
17
|
-
template: proxyAttrs(
|
|
16
|
+
template: proxyAttrs(`
|
|
17
|
+
<label class="${modules_df92307a.radio}" data-test="ring-radio">
|
|
18
|
+
<input
|
|
19
|
+
type="radio"
|
|
20
|
+
class=${modules_df92307a.input}
|
|
21
|
+
|
|
22
|
+
data-proxy-ng-disabled
|
|
23
|
+
data-proxy-ng-model
|
|
24
|
+
data-proxy-ng-change
|
|
25
|
+
data-proxy-name
|
|
26
|
+
data-proxy-value
|
|
27
|
+
data-proxy-ng-value
|
|
28
|
+
/>
|
|
29
|
+
<span class="${modules_df92307a.circle}"></span><span
|
|
30
|
+
class="${modules_df92307a.label}" ng-transclude></span>
|
|
31
|
+
</label>
|
|
32
|
+
|
|
33
|
+
`),
|
|
18
34
|
link: function link(scope, iElement) {
|
|
19
35
|
const element = iElement[0];
|
|
20
36
|
const input = element.querySelector('input[type="radio"]');
|
|
@@ -12,7 +12,6 @@ import 'react';
|
|
|
12
12
|
import 'classnames';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import '../global/data-tests.js';
|
|
15
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
16
15
|
import '../_helpers/loader-inline.js';
|
|
17
16
|
import '../_helpers/button-set.js';
|
|
18
17
|
import '../global/dom.js';
|
|
@@ -22,7 +21,6 @@ import '../global/sniffer.js';
|
|
|
22
21
|
import 'sniffr';
|
|
23
22
|
import '../global/ring-angular-component.js';
|
|
24
23
|
import '../icon-ng/icon-ng.js';
|
|
25
|
-
import 'core-js/modules/es.string.replace.js';
|
|
26
24
|
import '../icon/icon__constants.js';
|
|
27
25
|
import '../template-ng/template-ng.js';
|
|
28
26
|
import '../_helpers/icon.js';
|
|
@@ -165,7 +163,7 @@ angularModule.directive('rgSaveField', ["RingMessageBundle", "$timeout", "$q", "
|
|
|
165
163
|
}
|
|
166
164
|
|
|
167
165
|
function addMultilineProcessing(controlName) {
|
|
168
|
-
const stopWatch = scope.$watch(
|
|
166
|
+
const stopWatch = scope.$watch(`saveFieldForm.${controlName}`, control => {
|
|
169
167
|
if (!control || !control.$formatters || !control.$parsers) {
|
|
170
168
|
return;
|
|
171
169
|
}
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
var template =
|
|
1
|
+
var template = `<div class="ring-save-field" ng-form="saveFieldForm" rg-shortcuts="ring-save-field" shortcuts-map="keyMap" shortcuts-focus="focus">
|
|
2
|
+
<span class="ring-save-field__transclude-placeholder" ng-transclude=""></span>
|
|
3
|
+
|
|
4
|
+
<rg-button
|
|
5
|
+
ng-show="saveFieldForm.$dirty && saveFieldForm.$valid"
|
|
6
|
+
mode="primary"
|
|
7
|
+
class="ring-save-field__button ng-hide"
|
|
8
|
+
ng-mousedown="cancelBlur()"
|
|
9
|
+
|
|
10
|
+
rg-promised-click="submitChanges($event)"
|
|
11
|
+
promised-mode="loader"
|
|
12
|
+
>
|
|
13
|
+
{{wording.save}}
|
|
14
|
+
</rg-button>
|
|
15
|
+
|
|
16
|
+
<rg-button
|
|
17
|
+
ng-show="saveFieldForm.$dirty && !loading"
|
|
18
|
+
class="ring-save-field__button ng-hide"
|
|
19
|
+
ng-click="cancelChanges($event)"
|
|
20
|
+
ng-mousedown="cancelBlur()"
|
|
21
|
+
>
|
|
22
|
+
{{wording.cancel}}
|
|
23
|
+
</rg-button>
|
|
24
|
+
|
|
25
|
+
<rg-button
|
|
26
|
+
ng-show="done"
|
|
27
|
+
ng-disabled="true"
|
|
28
|
+
class="ring-save-field__button ng-hide"
|
|
29
|
+
>
|
|
30
|
+
{{wording.saved}}
|
|
31
|
+
</rg-button>
|
|
32
|
+
</div>`;
|
|
2
33
|
|
|
3
34
|
export { template as default };
|
package/dist/select/select.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
-
import 'core-js/modules/es.string.replace.js';
|
|
4
2
|
import React, { Component, Fragment } from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
@@ -305,7 +303,7 @@ class Select extends Component {
|
|
|
305
303
|
|
|
306
304
|
_defineProperty(this, "shortcutsScope", this.id);
|
|
307
305
|
|
|
308
|
-
_defineProperty(this, "listId",
|
|
306
|
+
_defineProperty(this, "listId", `${this.id}:list`);
|
|
309
307
|
|
|
310
308
|
_defineProperty(this, "_focusHandler", e => {
|
|
311
309
|
this.props.onFocus(e);
|
|
@@ -944,7 +942,7 @@ class Select extends Component {
|
|
|
944
942
|
className: classNames(modules_9d0de074.button, modules_9d0de074.buttonSpaced),
|
|
945
943
|
onClick: this.addHandler,
|
|
946
944
|
"data-test": "ring-select-toolbar-button"
|
|
947
|
-
}, prefix ?
|
|
945
|
+
}, prefix ? `${prefix} ${label}` : label), hint && /*#__PURE__*/React.createElement(List.ListHint, {
|
|
948
946
|
label: hint,
|
|
949
947
|
"data-test": "ring-select-toolbar-hint"
|
|
950
948
|
}));
|
|
@@ -1032,7 +1030,7 @@ class Select extends Component {
|
|
|
1032
1030
|
disabled: this.props.disabled,
|
|
1033
1031
|
onClick: this._clickHandler,
|
|
1034
1032
|
style: {
|
|
1035
|
-
backgroundImage:
|
|
1033
|
+
backgroundImage: `url(${selected.icon})`
|
|
1036
1034
|
}
|
|
1037
1035
|
}));
|
|
1038
1036
|
}
|
|
@@ -1096,8 +1094,8 @@ class Select extends Component {
|
|
|
1096
1094
|
const {
|
|
1097
1095
|
shortcutsEnabled
|
|
1098
1096
|
} = this.state;
|
|
1099
|
-
const classes = classNames(modules_9d0de074.select, 'ring-js-shortcuts', this.props.className, modules_9d0de074[
|
|
1100
|
-
[modules_9d0de074[
|
|
1097
|
+
const classes = classNames(modules_9d0de074.select, 'ring-js-shortcuts', this.props.className, modules_9d0de074[`height${this.props.height || this.context}`], {
|
|
1098
|
+
[modules_9d0de074[`size${this.props.size}`]]: this.props.type !== Type.INLINE,
|
|
1101
1099
|
[modules_9d0de074.disabled]: this.props.disabled
|
|
1102
1100
|
});
|
|
1103
1101
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import 'react';
|
|
4
3
|
import 'prop-types';
|
|
5
4
|
import 'classnames';
|
|
@@ -18,7 +17,6 @@ import 'util-deprecate';
|
|
|
18
17
|
import '../icon/icon__constants.js';
|
|
19
18
|
import '../_helpers/icon.js';
|
|
20
19
|
import '../icon/icon__svg.js';
|
|
21
|
-
import 'core-js/modules/es.string.replace.js';
|
|
22
20
|
import '../global/memoize.js';
|
|
23
21
|
import '../link/clickableLink.js';
|
|
24
22
|
import '../_helpers/button__classes.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { PureComponent } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
5
4
|
import searchIcon from '@jetbrains/icons/search';
|
|
@@ -26,7 +25,6 @@ import 'util-deprecate';
|
|
|
26
25
|
import '../icon/icon__constants.js';
|
|
27
26
|
import '../_helpers/icon.js';
|
|
28
27
|
import '../icon/icon__svg.js';
|
|
29
|
-
import 'core-js/modules/es.string.replace.js';
|
|
30
28
|
import 'react-dom';
|
|
31
29
|
import '../global/schedule-raf.js';
|
|
32
30
|
import '../global/data-tests.js';
|
|
@@ -178,7 +176,7 @@ class SelectPopup extends PureComponent {
|
|
|
178
176
|
onClick: this.handleSelectAll
|
|
179
177
|
}, activeFilters.length !== this.props.selected.length ? multiple.selectAllLabel || 'Select all' : multiple.deselectAllLabel || 'Deselect all'), ((_multiple$renderSelec = multiple.renderSelectedItemsDescription) === null || _multiple$renderSelec === void 0 ? void 0 : _multiple$renderSelec.call(multiple, this.props.selected, activeFilters.length)) || /*#__PURE__*/React.createElement(Text, {
|
|
180
178
|
info: true
|
|
181
|
-
},
|
|
179
|
+
}, `${this.props.selected.length} selected`));
|
|
182
180
|
});
|
|
183
181
|
|
|
184
182
|
_defineProperty(this, "_adjustListMaxHeight", memoizeOne((hidden, userDefinedMaxHeight, ringPopupTarget) => {
|
|
@@ -8,9 +8,7 @@ import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
|
8
8
|
import { ControlsHeight } from '../global/controls-height.js';
|
|
9
9
|
import SelectNgOptions from './select-ng__options.js';
|
|
10
10
|
import SelectLazy from './select-ng__lazy.js';
|
|
11
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
12
11
|
import 'react-dom';
|
|
13
|
-
import 'core-js/modules/es.string.replace.js';
|
|
14
12
|
import 'classnames';
|
|
15
13
|
import 'prop-types';
|
|
16
14
|
import '@jetbrains/icons/chevron-down';
|
|
@@ -3,9 +3,7 @@ import angular from 'angular';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { render, hydrate } from '../global/react-render-adapter.js';
|
|
5
5
|
import { RerenderableSelect } from '../select/select.js';
|
|
6
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
6
|
import 'react-dom';
|
|
8
|
-
import 'core-js/modules/es.string.replace.js';
|
|
9
7
|
import 'classnames';
|
|
10
8
|
import 'prop-types';
|
|
11
9
|
import '@jetbrains/icons/chevron-down';
|
|
@@ -10,7 +10,7 @@ class Options {
|
|
|
10
10
|
let match;
|
|
11
11
|
|
|
12
12
|
if (!(match = optionsString.match(this.constructor.OPTIONS_REGEXP))) {
|
|
13
|
-
throw new Error('Bad rgSelect expression format. Expected: [{item}] [[as] item.text] [select as item.selectLabel]' +
|
|
13
|
+
throw new Error('Bad rgSelect expression format. Expected: [{item}] [[as] item.text] [select as item.selectLabel]' + ` [describe as {item.description}] [for] {item} in {items|dataSource(query)} [track by item.id], Received: ${optionsString}`);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Now we can write only `item.value as item.label for item in items`
|
|
@@ -83,7 +83,7 @@ class Options {
|
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
if (matchedOptions.length > 1) {
|
|
86
|
-
throw new Error(
|
|
86
|
+
throw new Error(`Error(rg-select): You can not have two options with same value(${toString(value)})`);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
return matchedOptions[0];
|
|
@@ -8,7 +8,7 @@ export interface ShortcutsHOCProps {
|
|
|
8
8
|
rgShortcutsOptions: ShortcutsHOCOptions;
|
|
9
9
|
rgShortcutsMap: ShortcutsMap;
|
|
10
10
|
}
|
|
11
|
-
export default function shortcutsHOC<P>(ComposedComponent: ComponentType<P> | string): {
|
|
11
|
+
export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentType<P> | string): {
|
|
12
12
|
new (props: (P & ShortcutsHOCProps) | Readonly<P & ShortcutsHOCProps>): {
|
|
13
13
|
_shortcutsScopeUid: string;
|
|
14
14
|
render(): JSX.Element;
|