@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/list/list__link.js
CHANGED
|
@@ -7,6 +7,7 @@ import joinDataTestAttributes from '../global/data-tests.js';
|
|
|
7
7
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
|
8
8
|
import 'focus-visible';
|
|
9
9
|
import '../global/memoize.js';
|
|
10
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
11
|
import '../link/clickableLink.js';
|
|
11
12
|
import '../_helpers/link.js';
|
|
12
13
|
|
|
@@ -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 GroupIcon from '@jetbrains/icons/group';
|
|
3
4
|
import HubSourceUsersGroups from '../hub-source/hub-source__users-groups.js';
|
|
4
5
|
import List from './list.js';
|
|
@@ -32,6 +33,7 @@ import '../_helpers/list.js';
|
|
|
32
33
|
import './list__item.js';
|
|
33
34
|
import '../avatar/avatar.js';
|
|
34
35
|
import '../global/url.js';
|
|
36
|
+
import 'core-js/modules/es.string.replace.js';
|
|
35
37
|
import '../avatar/fallback-avatar.js';
|
|
36
38
|
import '../checkbox/checkbox.js';
|
|
37
39
|
import '@jetbrains/icons/checkmark';
|
|
@@ -56,7 +58,7 @@ const defaultOptions = {
|
|
|
56
58
|
getPluralForUserCount: count => {
|
|
57
59
|
// eslint-disable-next-line no-magic-numbers
|
|
58
60
|
const plural = count % 10 !== 1 || count % 100 === 11;
|
|
59
|
-
return
|
|
61
|
+
return "".concat(count, " member").concat(plural ? 's' : '');
|
|
60
62
|
}
|
|
61
63
|
};
|
|
62
64
|
const Filter = {
|
package/dist/loader/loader.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 joinDataTestAttributes from '../global/data-tests.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { getPixelRatio } from '../global/dom.js';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
|
|
4
|
-
var modules_00b5ad26 = {"unit":"8px","canvas":"
|
|
5
|
+
var modules_00b5ad26 = {"unit":"8px","canvas":"canvas_rui_99a5","animate":"animate_rui_99a5","rotation-keyframes":"rotation-keyframes_rui_99a5","text":"text_rui_99a5"};
|
|
5
6
|
|
|
6
7
|
const INITIAL_TICKS = 100;
|
|
7
8
|
|
|
@@ -31,7 +32,7 @@ class Particle {
|
|
|
31
32
|
|
|
32
33
|
draw(ctx) {
|
|
33
34
|
const alpha = this.life >= 0 ? this.life : 0;
|
|
34
|
-
ctx.fillStyle =
|
|
35
|
+
ctx.fillStyle = "rgba(".concat(this.color.r, ", ").concat(this.color.g, ", ").concat(this.color.b, ", ").concat(alpha, ")");
|
|
35
36
|
ctx.beginPath();
|
|
36
37
|
ctx.arc(this.x + this.radius, this.y + this.radius, this.radius, 0, Math.PI * 2);
|
|
37
38
|
ctx.fill();
|
|
@@ -79,8 +80,8 @@ class LoaderCore {
|
|
|
79
80
|
this.canvas.width = canvasSize;
|
|
80
81
|
this.canvas.height = canvasSize; //Fixate canvas physical size to avoid real size scaling
|
|
81
82
|
|
|
82
|
-
this.canvas.style.width =
|
|
83
|
-
this.canvas.style.height =
|
|
83
|
+
this.canvas.style.width = "".concat(this.props.size, "px");
|
|
84
|
+
this.canvas.style.height = "".concat(this.props.size, "px");
|
|
84
85
|
this.ctx = this.canvas.getContext('2d');
|
|
85
86
|
this.ctx.scale(pixelRatio, pixelRatio);
|
|
86
87
|
}
|
|
@@ -4,8 +4,10 @@ import '../global/memoize.js';
|
|
|
4
4
|
import '../global/radial-gradient-mask.js';
|
|
5
5
|
import '../global/theme.js';
|
|
6
6
|
export { i as default } from '../_helpers/inject-styles.js';
|
|
7
|
+
import 'core-js/modules/es.string.replace.js';
|
|
7
8
|
import 'conic-gradient';
|
|
8
9
|
import '../global/supports-css.js';
|
|
10
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
11
|
import '../global/get-uid.js';
|
|
10
12
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
11
13
|
import 'react';
|
|
@@ -5,7 +5,9 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import Theme, { withTheme } from '../global/theme.js';
|
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
7
7
|
import { i as injectStyles, m as modules_e49a3529 } from '../_helpers/inject-styles.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
9
|
import '../global/conic-gradient.js';
|
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
|
9
11
|
import 'conic-gradient';
|
|
10
12
|
import '../global/memoize.js';
|
|
11
13
|
import '../global/supports-css.js';
|
|
@@ -30,7 +32,7 @@ class LoaderInline extends PureComponent {
|
|
|
30
32
|
children,
|
|
31
33
|
...restProps
|
|
32
34
|
} = this.props;
|
|
33
|
-
const classes = classNames(modules_e49a3529.loader, className,
|
|
35
|
+
const classes = classNames(modules_e49a3529.loader, className, "".concat(modules_e49a3529.loader, "_").concat(theme));
|
|
34
36
|
const loader = /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
|
35
37
|
"data-test": joinDataTestAttributes('ring-loader-inline', dataTest),
|
|
36
38
|
className: classes
|
|
@@ -3,8 +3,10 @@ import angular from 'angular';
|
|
|
3
3
|
import { m as modules_e49a3529, i as injectStyles } from '../_helpers/inject-styles.js';
|
|
4
4
|
import Theme from '../global/theme.js';
|
|
5
5
|
import '../global/conic-gradient.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
6
7
|
import 'conic-gradient';
|
|
7
8
|
import '../global/memoize.js';
|
|
9
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
10
|
import '../global/supports-css.js';
|
|
9
11
|
import '../global/inject-styles.js';
|
|
10
12
|
import '../global/radial-gradient-mask.js';
|
|
@@ -19,7 +21,7 @@ const angularModule = angular.module('Ring.loader-inline', []);
|
|
|
19
21
|
|
|
20
22
|
class LoaderController {
|
|
21
23
|
constructor() {
|
|
22
|
-
_defineProperty(this, "getThemeClass", () =>
|
|
24
|
+
_defineProperty(this, "getThemeClass", () => "".concat(modules_e49a3529.loader, "_").concat(this.theme));
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
$onInit() {
|
|
@@ -34,7 +36,7 @@ angularModule.component('rgLoaderInline', {
|
|
|
34
36
|
bindings: {
|
|
35
37
|
theme: '@?'
|
|
36
38
|
},
|
|
37
|
-
template:
|
|
39
|
+
template: "<div data-test=\"ring-loader-inline-ng\" class=\"".concat(modules_e49a3529.loader, "\" ng-class=\"$ctrl.getThemeClass()\"></div>"),
|
|
38
40
|
controller: LoaderController
|
|
39
41
|
});
|
|
40
42
|
var loaderInlineNg = angularModule.name;
|
|
@@ -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 angular from 'angular';
|
|
3
4
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
4
5
|
import LoaderCore from '../loader/loader__core.js';
|
|
@@ -4,6 +4,7 @@ import classNames from 'classnames';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import Loader from '../loader/loader.js';
|
|
6
6
|
import { m as modules_122a82e9 } from '../_helpers/loader-screen.js';
|
|
7
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
8
|
import '../global/data-tests.js';
|
|
8
9
|
import '../loader/loader__core.js';
|
|
9
10
|
import '../global/dom.js';
|
|
@@ -2,6 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import loaderNg from '../loader-ng/loader-ng.js';
|
|
3
3
|
import { m as modules_122a82e9 } from '../_helpers/loader-screen.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
import '../global/ring-angular-component.js';
|
|
6
7
|
import '../loader/loader__core.js';
|
|
7
8
|
import '../global/dom.js';
|
|
@@ -86,12 +87,7 @@ angularModule.directive('rgLoaderScreen', function rgLoaderScreenDirective() {
|
|
|
86
87
|
scope: {
|
|
87
88
|
message: '@rgLoaderScreen'
|
|
88
89
|
},
|
|
89
|
-
template:
|
|
90
|
-
<div class="${modules_122a82e9.loaderScreen}" ng-if="$root.isLoaderVisible()">
|
|
91
|
-
<rg-loader class="${modules_122a82e9.loader}"
|
|
92
|
-
message="{{$root.isInitialLoading() ? message : ''}}"></rg-loader>
|
|
93
|
-
</div>
|
|
94
|
-
`
|
|
90
|
+
template: "\n<div class=\"".concat(modules_122a82e9.loaderScreen, "\" ng-if=\"$root.isLoaderVisible()\">\n <rg-loader class=\"").concat(modules_122a82e9.loader, "\"\n message=\"{{$root.isInitialLoading() ? message : ''}}\"></rg-loader>\n</div>\n ")
|
|
95
91
|
};
|
|
96
92
|
});
|
|
97
93
|
var loaderScreenNg = angularModule.name;
|
|
@@ -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 } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import Dialog from '../dialog/dialog.js';
|
|
@@ -26,6 +27,7 @@ import 'util-deprecate';
|
|
|
26
27
|
import '../icon/icon__constants.js';
|
|
27
28
|
import '../_helpers/icon.js';
|
|
28
29
|
import '../icon/icon__svg.js';
|
|
30
|
+
import 'core-js/modules/es.string.replace.js';
|
|
29
31
|
import '../global/memoize.js';
|
|
30
32
|
import '../global/theme.js';
|
|
31
33
|
import '../link/clickableLink.js';
|
|
@@ -46,7 +48,7 @@ import '../auth/response-parser.js';
|
|
|
46
48
|
import 'es6-error';
|
|
47
49
|
import '../global/url.js';
|
|
48
50
|
|
|
49
|
-
var modules_45da1992 = {"unit":"8px","iFrame":"
|
|
51
|
+
var modules_45da1992 = {"unit":"8px","iFrame":"iFrame_rui_12bb","dialogContent":"dialogContent_rui_12bb","nonOpaqueLoader":"nonOpaqueLoader_rui_12bb","fallbackLinkContainer":"fallbackLinkContainer_rui_12bb"};
|
|
50
52
|
|
|
51
53
|
const HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
|
52
54
|
const HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { unmountComponentAtNode, render } from 'react-dom';
|
|
3
3
|
import LoginDialog from './login-dialog.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
import 'prop-types';
|
|
6
7
|
import '../dialog/dialog.js';
|
|
7
8
|
import 'classnames';
|
|
@@ -31,6 +32,7 @@ import 'util-deprecate';
|
|
|
31
32
|
import '../icon/icon__constants.js';
|
|
32
33
|
import '../_helpers/icon.js';
|
|
33
34
|
import '../icon/icon__svg.js';
|
|
35
|
+
import 'core-js/modules/es.string.replace.js';
|
|
34
36
|
import '../global/memoize.js';
|
|
35
37
|
import '../global/theme.js';
|
|
36
38
|
import '../link/clickableLink.js';
|
package/dist/markdown/code.js
CHANGED
|
@@ -5,6 +5,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import 'highlight.js/lib/core';
|
|
7
7
|
import '../global/normalize-indent.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
9
|
import '../global/trivial-template-tag.js';
|
|
9
10
|
import '../global/memoize.js';
|
|
10
11
|
|
package/dist/markdown/link.js
CHANGED
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
import '../global/data-tests.js';
|
|
9
10
|
import '../link/clickableLink.js';
|
|
10
11
|
import '../_helpers/link.js';
|
|
@@ -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 ReactMarkdown from 'react-markdown';
|
|
@@ -21,7 +22,7 @@ import '../_helpers/link.js';
|
|
|
21
22
|
import '../heading/heading.js';
|
|
22
23
|
import 'util-deprecate';
|
|
23
24
|
|
|
24
|
-
var modules_9c709e64 = {"unit":"8px","p-margin":"10px","inline":"
|
|
25
|
+
var modules_9c709e64 = {"unit":"8px","p-margin":"10px","inline":"inline_rui_96c1","markdown":"markdown_rui_96c1 font_rui_43e5"};
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* @name Markdown
|
package/dist/message/message.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';
|
|
@@ -6,6 +7,7 @@ import gift from '@jetbrains/icons/gift';
|
|
|
6
7
|
import Popup from '../popup/popup.js';
|
|
7
8
|
import Icon from '../icon/icon.js';
|
|
8
9
|
import Button from '../button/button.js';
|
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
|
9
11
|
import 'react-dom';
|
|
10
12
|
import '../global/get-uid.js';
|
|
11
13
|
import '../global/schedule-raf.js';
|
|
@@ -31,7 +33,7 @@ import '../global/theme.js';
|
|
|
31
33
|
import '../link/clickableLink.js';
|
|
32
34
|
import '../_helpers/button__classes.js';
|
|
33
35
|
|
|
34
|
-
var modules_8b837449 = {"unit":"8px","padding":"12px","message":"
|
|
36
|
+
var modules_8b837449 = {"unit":"8px","padding":"12px","message":"message_rui_87b7","icon":"icon_rui_87b7","title":"title_rui_87b7 font-lower_rui_43e5 font_rui_43e5","description":"description_rui_87b7 font-smaller-lower_rui_43e5 font-smaller_rui_43e5 font-lower_rui_43e5 font_rui_43e5","button":"button_rui_87b7","tail":"tail_rui_87b7"};
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* @name Message
|
|
@@ -117,12 +119,16 @@ class Message extends Component {
|
|
|
117
119
|
}));
|
|
118
120
|
|
|
119
121
|
_defineProperty(this, "popupRef", el => {
|
|
122
|
+
var _this$popup;
|
|
123
|
+
|
|
120
124
|
this.popup = el;
|
|
121
|
-
this.node = this.popup
|
|
125
|
+
this.node = (_this$popup = this.popup) === null || _this$popup === void 0 ? void 0 : _this$popup.node;
|
|
122
126
|
});
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
getTailOffset() {
|
|
130
|
+
var _this$popup2;
|
|
131
|
+
|
|
126
132
|
const DEFAULT_OFFSET = 32;
|
|
127
133
|
const {
|
|
128
134
|
popupProps
|
|
@@ -132,7 +138,7 @@ class Message extends Component {
|
|
|
132
138
|
return this.props.tailOffset;
|
|
133
139
|
}
|
|
134
140
|
|
|
135
|
-
const anchor = popupProps
|
|
141
|
+
const anchor = (popupProps === null || popupProps === void 0 ? void 0 : popupProps.anchorElement) || ((_this$popup2 = this.popup) === null || _this$popup2 === void 0 ? void 0 : _this$popup2.parent);
|
|
136
142
|
|
|
137
143
|
if (!anchor) {
|
|
138
144
|
return DEFAULT_OFFSET;
|
|
@@ -141,8 +147,8 @@ class Message extends Component {
|
|
|
141
147
|
const offset = Math.floor(anchor.offsetWidth / 2);
|
|
142
148
|
const isOpenedToRight = [Directions.TOP_RIGHT, Directions.BOTTOM_RIGHT].includes(this.state.direction);
|
|
143
149
|
|
|
144
|
-
if (popupProps
|
|
145
|
-
return offset - popupProps
|
|
150
|
+
if (popupProps !== null && popupProps !== void 0 && popupProps.left && isOpenedToRight) {
|
|
151
|
+
return offset - (popupProps === null || popupProps === void 0 ? void 0 : popupProps.left);
|
|
146
152
|
}
|
|
147
153
|
|
|
148
154
|
return offset;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isBrowserInWhiteList } from './white-list.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import '../global/sniffer.js';
|
|
3
4
|
import 'sniffr';
|
|
4
5
|
|
|
@@ -34,7 +35,7 @@ function changeSmileClickListener(event) {
|
|
|
34
35
|
return '\\\\ (x_x) //';
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
return
|
|
38
|
+
return "{{ (".concat(getRandomEye(), "_").concat(getRandomEye(), ") }}");
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
target.innerHTML = getRandomSmile();
|
package/dist/pager/pager.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';
|
|
@@ -20,6 +21,7 @@ import '../icon/icon__constants.js';
|
|
|
20
21
|
import 'util-deprecate';
|
|
21
22
|
import '../_helpers/icon.js';
|
|
22
23
|
import '../icon/icon__svg.js';
|
|
24
|
+
import 'core-js/modules/es.string.replace.js';
|
|
23
25
|
import '../button-group/caption.js';
|
|
24
26
|
import '../_helpers/button-group.js';
|
|
25
27
|
import '../_helpers/button-toolbar.js';
|
|
@@ -86,7 +88,7 @@ import '../caret/caret.js';
|
|
|
86
88
|
import '../text/text.js';
|
|
87
89
|
import '../_helpers/select__filter.js';
|
|
88
90
|
|
|
89
|
-
var modules_1a5f0d42 = {"unit":"8px","pager":"
|
|
91
|
+
var modules_1a5f0d42 = {"unit":"8px","pager":"pager_rui_07ee","links":"links_rui_07ee","link":"link_rui_07ee","linkDisabled":"linkDisabled_rui_07ee"};
|
|
90
92
|
|
|
91
93
|
class Pager extends PureComponent {
|
|
92
94
|
constructor() {
|
|
@@ -138,7 +140,7 @@ class Pager extends PureComponent {
|
|
|
138
140
|
} = this.props;
|
|
139
141
|
const data = pageSizes.map(size => ({
|
|
140
142
|
key: size,
|
|
141
|
-
label:
|
|
143
|
+
label: "".concat(size, " ").concat(this.props.translations.perPage)
|
|
142
144
|
}));
|
|
143
145
|
const selected = data.find(it => it.key === pageSize);
|
|
144
146
|
return {
|
|
@@ -1,6 +1,7 @@
|
|
|
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';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
6
7
|
import 'react-dom';
|
|
@@ -18,6 +19,7 @@ import 'util-deprecate';
|
|
|
18
19
|
import '../icon/icon__constants.js';
|
|
19
20
|
import '../_helpers/icon.js';
|
|
20
21
|
import '../icon/icon__svg.js';
|
|
22
|
+
import 'core-js/modules/es.string.replace.js';
|
|
21
23
|
import '../global/memoize.js';
|
|
22
24
|
import '../global/theme.js';
|
|
23
25
|
import '../link/clickableLink.js';
|
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
|
|
6
7
|
const angularModule = angular.module('Ring.panel', []);
|
|
7
8
|
angularModule.directive('rgPanel', function rgEqualValueDirective() {
|
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
import '../auth/auth.js';
|
|
6
7
|
import '../auth/window-flow.js';
|
|
7
8
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -12,6 +13,7 @@ import '../auth/down-notification.js';
|
|
|
12
13
|
import 'react';
|
|
13
14
|
import 'prop-types';
|
|
14
15
|
import '../alert-service/alert-service.js';
|
|
16
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
15
17
|
import 'react-dom';
|
|
16
18
|
import '../global/get-uid.js';
|
|
17
19
|
import '../alert/alert.js';
|
|
@@ -201,7 +203,7 @@ angularModule.directive('rgPermissionIf', ["$animate", "userPermissions", "$inte
|
|
|
201
203
|
$transclude(childScope, clone => {
|
|
202
204
|
block = {
|
|
203
205
|
startNode: clone[0],
|
|
204
|
-
endNode: clone[clone.length++] = document.createComment(
|
|
206
|
+
endNode: clone[clone.length++] = document.createComment(" end rgPermissionIf: ".concat(iAttrs.rgPermissionIf, " "))
|
|
205
207
|
};
|
|
206
208
|
$animate.enter(clone, iElement.parent(), iElement);
|
|
207
209
|
});
|
|
@@ -3,6 +3,7 @@ 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';
|
|
6
7
|
|
|
7
8
|
const resizeDetector = createResizeDetector();
|
|
8
9
|
const angularModule = angular.module('Ring.place-under', []);
|
|
@@ -82,7 +83,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
82
83
|
const syncedElementOffsetTop = syncElement.getBoundingClientRect().top + documentScrollTop;
|
|
83
84
|
const bottom = syncedElementOffsetTop + syncedElementHeight;
|
|
84
85
|
const margin = Math.max(bottom - documentScrollTop, syncedElementHeight);
|
|
85
|
-
element.style.marginTop =
|
|
86
|
+
element.style.marginTop = "".concat(margin + topOffset, "px");
|
|
86
87
|
|
|
87
88
|
if (syncHeight) {
|
|
88
89
|
/**
|
|
@@ -115,7 +116,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
element.style.height =
|
|
119
|
+
element.style.height = "calc(100% - ".concat(parseInt(element.style.marginTop, 10) + bottomOffset, "px)");
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
package/dist/popup/popup.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
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';
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { createPortal } from 'react-dom';
|
|
4
6
|
import PropTypes from 'prop-types';
|
|
@@ -18,11 +20,11 @@ import 'combokeys';
|
|
|
18
20
|
import '../global/sniffer.js';
|
|
19
21
|
import 'sniffr';
|
|
20
22
|
|
|
21
|
-
var modules_2f69e2e2 = {"popup":"
|
|
23
|
+
var modules_2f69e2e2 = {"popup":"popup_rui_227e font_rui_43e5","hidden":"hidden_rui_227e","showing":"showing_rui_227e","attached":"attached_rui_227e"};
|
|
22
24
|
|
|
23
25
|
const stop = e => e.stopPropagation();
|
|
24
26
|
|
|
25
|
-
const getPopupContainer = target => typeof target === 'string' ? document.querySelector(
|
|
27
|
+
const getPopupContainer = target => typeof target === 'string' ? document.querySelector("[data-portaltarget=".concat(target, "]")) : target;
|
|
26
28
|
/**
|
|
27
29
|
* @constructor
|
|
28
30
|
* @name Popup
|
|
@@ -91,7 +93,7 @@ class Popup extends PureComponent {
|
|
|
91
93
|
const value = style[key];
|
|
92
94
|
|
|
93
95
|
if (typeof value === 'number') {
|
|
94
|
-
this.popup.style[key] =
|
|
96
|
+
this.popup.style[key] = "".concat(value, "px");
|
|
95
97
|
} else {
|
|
96
98
|
this.popup.style[key] = value.toString();
|
|
97
99
|
}
|
package/dist/popup/position.js
CHANGED
|
@@ -2,6 +2,7 @@ import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft, getWin
|
|
|
2
2
|
import { Directions, MaxHeight, Dimension, MinWidth } 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';
|
|
5
6
|
|
|
6
7
|
function getScrollingCoordinates(container) {
|
|
7
8
|
if (container !== null) {
|
|
@@ -1,8 +1,10 @@
|
|
|
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 from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import Popup from '../popup/popup.js';
|
|
5
6
|
import List from '../list/list.js';
|
|
7
|
+
import 'core-js/modules/es.string.replace.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import 'classnames';
|
|
8
10
|
import '../global/get-uid.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
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';
|
|
5
6
|
import Theme from '../global/theme.js';
|
|
6
7
|
|
|
7
|
-
var modules_fb7af416 = {"unit":"8px","light":"
|
|
8
|
+
var modules_fb7af416 = {"unit":"8px","light":"light_rui_cc63","progressBar":"progressBar_rui_cc63","dark":"dark_rui_cc63","line":"line_rui_cc63","globalMode":"globalMode_rui_cc63","progress-bar":"progress-bar_rui_cc63"};
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @name Progress Bar
|
|
@@ -45,7 +46,7 @@ class ProgressBar extends PureComponent {
|
|
|
45
46
|
label,
|
|
46
47
|
...otherProps
|
|
47
48
|
} = this.props;
|
|
48
|
-
const width = value ?
|
|
49
|
+
const width = value ? "".concat(ProgressBar.toPercent(value, max), "%") : null;
|
|
49
50
|
const classes = classNames(modules_fb7af416.progressBar, className, {
|
|
50
51
|
[modules_fb7af416.light]: theme === Theme.LIGHT,
|
|
51
52
|
[modules_fb7af416.dark]: theme === Theme.DARK,
|
|
@@ -1,6 +1,7 @@
|
|
|
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';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
6
7
|
import 'react-dom';
|
|
@@ -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 angular from 'angular';
|
|
3
4
|
import { m as modules_e81895c9 } from '../_helpers/button__classes.js';
|
|
4
5
|
import { applyMethodToClasses } from '../global/dom.js';
|
|
@@ -8,6 +9,7 @@ import 'classnames';
|
|
|
8
9
|
import '../global/theme.js';
|
|
9
10
|
import 'react';
|
|
10
11
|
import '../icon-ng/icon-ng.js';
|
|
12
|
+
import 'core-js/modules/es.string.replace.js';
|
|
11
13
|
import '../icon/icon__constants.js';
|
|
12
14
|
import '../template-ng/template-ng.js';
|
|
13
15
|
import '../_helpers/icon.js';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
|
+
|
|
1
3
|
function proxyAttrs(template, attrsWhitelist) {
|
|
2
4
|
return function copyAttrs(iElement, iAttrs) {
|
|
3
5
|
const PREFIX = 'data-proxy-';
|
|
@@ -7,9 +9,9 @@ function proxyAttrs(template, attrsWhitelist) {
|
|
|
7
9
|
if (iAttrs[attrName] !== undefined) {
|
|
8
10
|
const attrLower = iAttrs.$attr[attrName];
|
|
9
11
|
const attrValue = iAttrs[attrName];
|
|
10
|
-
const attrFind =
|
|
11
|
-
const attrReplace =
|
|
12
|
-
resultTemplate = resultTemplate.replace(RegExp(
|
|
12
|
+
const attrFind = "".concat(PREFIX).concat(attrLower).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
13
|
+
const attrReplace = "".concat(attrLower, "=\"").concat(attrValue, "\"");
|
|
14
|
+
resultTemplate = resultTemplate.replace(RegExp("".concat(attrFind, "(=\"\")*"), 'g'), attrReplace);
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
17
|
return resultTemplate;
|
|
@@ -1,4 +1,6 @@
|
|
|
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';
|
|
2
4
|
import React, { Component } from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
4
6
|
import debounce from 'just-debounce-it';
|
|
@@ -266,7 +268,7 @@ class QueryAssist extends Component {
|
|
|
266
268
|
super.setState(state, () => {
|
|
267
269
|
this._pushHistory(state);
|
|
268
270
|
|
|
269
|
-
resolve
|
|
271
|
+
resolve === null || resolve === void 0 ? void 0 : resolve();
|
|
270
272
|
});
|
|
271
273
|
});
|
|
272
274
|
|
|
@@ -654,15 +656,17 @@ class QueryAssist extends Component {
|
|
|
654
656
|
}
|
|
655
657
|
|
|
656
658
|
_pushHistory(state) {
|
|
659
|
+
var _this$historyStack$;
|
|
660
|
+
|
|
657
661
|
const queryIsSet = ('query' in state);
|
|
658
|
-
const queryIsSame = this.historyStack[0]
|
|
662
|
+
const queryIsSame = ((_this$historyStack$ = this.historyStack[0]) === null || _this$historyStack$ === void 0 ? void 0 : _this$historyStack$.query) === state.query;
|
|
659
663
|
|
|
660
664
|
if (queryIsSet && !queryIsSame) {
|
|
661
|
-
var _this$caret$getPositi;
|
|
665
|
+
var _this$caret$getPositi, _this$caret;
|
|
662
666
|
|
|
663
667
|
this.historyStack.unshift({
|
|
664
668
|
query: state.query,
|
|
665
|
-
caret: (_this$caret$getPositi = this.caret
|
|
669
|
+
caret: (_this$caret$getPositi = (_this$caret = this.caret) === null || _this$caret === void 0 ? void 0 : _this$caret.getPosition({
|
|
666
670
|
avoidFocus: true
|
|
667
671
|
})) !== null && _this$caret$getPositi !== void 0 ? _this$caret$getPositi : -1
|
|
668
672
|
});
|
|
@@ -801,7 +805,7 @@ class QueryAssist extends Component {
|
|
|
801
805
|
return;
|
|
802
806
|
}
|
|
803
807
|
|
|
804
|
-
const styleName =
|
|
808
|
+
const styleName = "".concat(LETTER_CLASS, "-").concat(item.style.replace('_', '-'));
|
|
805
809
|
|
|
806
810
|
for (let i = item.start; i < item.start + item.length; i++) {
|
|
807
811
|
classes[i] = modules_da7ab055[styleName];
|
|
@@ -873,7 +877,7 @@ class QueryAssist extends Component {
|
|
|
873
877
|
const renderUnderline = theme === Theme.DARK;
|
|
874
878
|
const actions = this.renderActions();
|
|
875
879
|
const inputClasses = classNames({
|
|
876
|
-
[
|
|
880
|
+
["".concat(modules_da7ab055.input, " ring-js-shortcuts")]: true,
|
|
877
881
|
[modules_da7ab055.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
|
878
882
|
[modules_da7ab055.inputGap2]: actions.length === 2,
|
|
879
883
|
// TODO: replace with flex-box layout
|