@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/icon-ng/icon-ng.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import 'core-js/modules/es.string.replace.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
1
|
import angular from 'angular';
|
|
4
2
|
import { Color } from '../icon/icon__constants.js';
|
|
5
3
|
import RingTemplateNg from '../template-ng/template-ng.js';
|
|
@@ -24,7 +22,7 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
24
22
|
height: '@?',
|
|
25
23
|
width: '@?'
|
|
26
24
|
},
|
|
27
|
-
template:
|
|
25
|
+
template: `<span class="${modules_29747b80.icon}" rg-template="normalizedGlyph" rg-template-class="${modules_29747b80.glyph}"></span>`,
|
|
28
26
|
controller: ["$scope", $scope => {
|
|
29
27
|
function decodeBase64IfNeeded(glyph) {
|
|
30
28
|
// This hack allows passing SVG content as string from angular templates like
|
|
@@ -69,18 +67,18 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
if (size && !width && !height) {
|
|
72
|
-
const sizeString =
|
|
73
|
-
const style =
|
|
70
|
+
const sizeString = `${size}px`;
|
|
71
|
+
const style = `width: ${sizeString}; height: ${sizeString};`;
|
|
74
72
|
svgNode.setAttribute('style', style);
|
|
75
73
|
return;
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
if (width) {
|
|
79
|
-
svgNode.setAttribute('style',
|
|
77
|
+
svgNode.setAttribute('style', `width: ${width}px;`);
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
if (height) {
|
|
83
|
-
svgNode.setAttribute('style',
|
|
81
|
+
svgNode.setAttribute('style', `height: ${height}px;`);
|
|
84
82
|
}
|
|
85
83
|
});
|
|
86
84
|
}
|
package/dist/input/input.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';
|
|
@@ -19,7 +18,6 @@ import '../icon/icon__constants.js';
|
|
|
19
18
|
import 'util-deprecate';
|
|
20
19
|
import '../_helpers/icon.js';
|
|
21
20
|
import '../icon/icon__svg.js';
|
|
22
|
-
import 'core-js/modules/es.string.replace.js';
|
|
23
21
|
import '../global/memoize.js';
|
|
24
22
|
|
|
25
23
|
function noop() {}
|
|
@@ -114,7 +112,7 @@ class Input extends PureComponent {
|
|
|
114
112
|
return;
|
|
115
113
|
}
|
|
116
114
|
|
|
117
|
-
el.style.height =
|
|
115
|
+
el.style.height = `${el.scrollHeight + 2}px`;
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
adapt() {
|
|
@@ -151,7 +149,7 @@ class Input extends PureComponent {
|
|
|
151
149
|
empty
|
|
152
150
|
} = this.state;
|
|
153
151
|
const clearable = !!onClear;
|
|
154
|
-
const classes = classNames(className, modules_88cfaf40.outerContainer, [modules_88cfaf40[
|
|
152
|
+
const classes = classNames(className, modules_88cfaf40.outerContainer, [modules_88cfaf40[`size${size}`]], [modules_88cfaf40[`height${height}`]], {
|
|
155
153
|
'ring-js-shortcuts': enableShortcuts === true,
|
|
156
154
|
[modules_88cfaf40.active]: active,
|
|
157
155
|
[modules_88cfaf40.error]: error != null,
|
|
@@ -5,10 +5,8 @@ import closeIcon from '@jetbrains/icons/close';
|
|
|
5
5
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
6
6
|
import { m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
7
7
|
import ButtonNG from '../button-ng/button-ng.js';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
8
|
import '../global/dom.js';
|
|
10
9
|
import '../icon-ng/icon-ng.js';
|
|
11
|
-
import 'core-js/modules/es.string.replace.js';
|
|
12
10
|
import '../icon/icon__constants.js';
|
|
13
11
|
import '../template-ng/template-ng.js';
|
|
14
12
|
import '../_helpers/icon.js';
|
|
@@ -46,7 +44,7 @@ class RingInputComponent extends RingAngularComponent {
|
|
|
46
44
|
return;
|
|
47
45
|
}
|
|
48
46
|
|
|
49
|
-
el.style.height =
|
|
47
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
onKeyUp() {
|
|
@@ -64,7 +62,7 @@ class RingInputComponent extends RingAngularComponent {
|
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
getContainerClasses() {
|
|
67
|
-
return classNames(modules_88cfaf40.outerContainer, this.size ? [modules_88cfaf40[
|
|
65
|
+
return classNames(modules_88cfaf40.outerContainer, this.size ? [modules_88cfaf40[`size${this.size}`]] : null, modules_88cfaf40.heightS, {
|
|
68
66
|
[modules_88cfaf40.active]: this.active,
|
|
69
67
|
[modules_88cfaf40.error]: this.error != null,
|
|
70
68
|
[modules_88cfaf40.empty]: !this.value,
|
|
@@ -102,7 +100,62 @@ _defineProperty(RingInputComponent, "bindings", {
|
|
|
102
100
|
multiline: '<'
|
|
103
101
|
});
|
|
104
102
|
|
|
105
|
-
_defineProperty(RingInputComponent, "template",
|
|
103
|
+
_defineProperty(RingInputComponent, "template", `
|
|
104
|
+
<div
|
|
105
|
+
data-test="ring-input-container"
|
|
106
|
+
ng-class="$ctrl.getContainerClasses()"
|
|
107
|
+
>
|
|
108
|
+
<label
|
|
109
|
+
ng-if="!$ctrl.borderless"
|
|
110
|
+
class="${modules_88cfaf40.label}"
|
|
111
|
+
>{{$ctrl.label}}</label>
|
|
112
|
+
<div class="${modules_88cfaf40.container}">
|
|
113
|
+
<input
|
|
114
|
+
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
115
|
+
type="text"
|
|
116
|
+
data-test="ring-input"
|
|
117
|
+
class="${modules_88cfaf40.input}"
|
|
118
|
+
name="{{$ctrl.name}}"
|
|
119
|
+
ng-if="!$ctrl.multiline"
|
|
120
|
+
placeholder="{{$ctrl.placeholder}}"
|
|
121
|
+
ng-model="$ctrl.value"
|
|
122
|
+
ng-required="$ctrl.required"
|
|
123
|
+
ng-disabled="$ctrl.disabled"
|
|
124
|
+
ng-minlength="$ctrl.ngMinlength"
|
|
125
|
+
ng-maxlength="$ctrl.ngMaxlength"
|
|
126
|
+
ng-change="$ctrl.onInputChange()"
|
|
127
|
+
ng-keyup="$ctrl.onKeyUp()"
|
|
128
|
+
/>
|
|
129
|
+
|
|
130
|
+
<textarea
|
|
131
|
+
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
132
|
+
data-test="ring-input"
|
|
133
|
+
ng-if="$ctrl.multiline"
|
|
134
|
+
class="${modules_88cfaf40.input}"
|
|
135
|
+
rows="1"
|
|
136
|
+
name="{{$ctrl.name}}"
|
|
137
|
+
placeholder="{{$ctrl.placeholder}}"
|
|
138
|
+
ng-model="$ctrl.value"
|
|
139
|
+
ng-required="$ctrl.required"
|
|
140
|
+
ng-disabled="$ctrl.disabled"
|
|
141
|
+
ng-minlength="$ctrl.ngMinlength"
|
|
142
|
+
ng-maxlength="$ctrl.ngMaxlength"
|
|
143
|
+
ng-change="$ctrl.onInputChange()"
|
|
144
|
+
ng-keyup="$ctrl.onKeyUp()"
|
|
145
|
+
></textarea>
|
|
146
|
+
|
|
147
|
+
<rg-button
|
|
148
|
+
ng-if="$ctrl.clearable"
|
|
149
|
+
data-test="ring-input-clear"
|
|
150
|
+
class="${modules_88cfaf40.clear} ${modules_c40fa551.clear}"
|
|
151
|
+
icon="{{:: $ctrl.closeIcon}}"
|
|
152
|
+
ng-click="$ctrl.onClear()"
|
|
153
|
+
></rg-button>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
<div ng-if="!$ctrl.borderless && $ctrl.error" class="${modules_88cfaf40.errorText} ${modules_c40fa551.errorText}">{{$ctrl.error}}</div>
|
|
157
|
+
</div>
|
|
158
|
+
`);
|
|
106
159
|
|
|
107
160
|
angularModule.component('rgInput', RingInputComponent);
|
|
108
161
|
var InputNg = angularModule.name;
|
package/dist/island/content.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, forwardRef } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
package/dist/island/header.js
CHANGED
|
@@ -5,7 +5,6 @@ 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';
|
|
9
8
|
|
|
10
9
|
const Start = {
|
|
11
10
|
FONT_SIZE: 24,
|
|
@@ -48,14 +47,14 @@ class Header extends Component {
|
|
|
48
47
|
[modules_e6a056e1.withBottomBorder]: border || phase != null && phase >= BORDER_APPEAR_PHASE
|
|
49
48
|
});
|
|
50
49
|
const headerStyle = phase != null ? {
|
|
51
|
-
lineHeight:
|
|
50
|
+
lineHeight: `${this.style('LINE_HEIGHT')}px`,
|
|
52
51
|
paddingTop: this.style('PADDING_TOP'),
|
|
53
52
|
paddingBottom: this.style('PADDING_BOTTOM')
|
|
54
53
|
} : undefined;
|
|
55
54
|
const scaleFont = phase != null && this.style('FONT_SIZE') / Start.FONT_SIZE;
|
|
56
55
|
const titleStyle = phase != null && phase < 1 ? {
|
|
57
56
|
fontSize: Start.FONT_SIZE,
|
|
58
|
-
transform:
|
|
57
|
+
transform: `translate(${this.style('X')}px, ${this.style('Y')}px) scale(${scaleFont})`,
|
|
59
58
|
letterSpacing: this.style('SPACING')
|
|
60
59
|
} : undefined;
|
|
61
60
|
return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
package/dist/island/island.js
CHANGED
|
@@ -7,7 +7,6 @@ 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';
|
|
11
10
|
import '../global/linear-function.js';
|
|
12
11
|
import 'element-resize-detector';
|
|
13
12
|
import '../global/schedule-raf.js';
|
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
|
|
7
6
|
const scheduleScroll = scheduleRAF();
|
|
8
7
|
const angularModule = angular.module('Ring.island-ng.header', []);
|
|
@@ -15,7 +14,22 @@ angularModule.directive('rgIslandContent', function islandContentDirective() {
|
|
|
15
14
|
onScroll: '&?'
|
|
16
15
|
},
|
|
17
16
|
compile,
|
|
18
|
-
template:
|
|
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
|
+
`,
|
|
19
33
|
controllerAs: 'contentCtrl',
|
|
20
34
|
controller: ["$scope", "$element", function controller($scope, $element) {
|
|
21
35
|
const el = $element[0];
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
|
|
6
5
|
const angularModule = angular.module('Ring.island-ng.content', []);
|
|
7
6
|
angularModule.directive('rgIslandHeader', function islandHeaderDirective() {
|
|
@@ -12,7 +11,14 @@ angularModule.directive('rgIslandHeader', function islandHeaderDirective() {
|
|
|
12
11
|
border: '=?'
|
|
13
12
|
},
|
|
14
13
|
compile,
|
|
15
|
-
template:
|
|
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
|
+
`,
|
|
16
22
|
controllerAs: 'headerCtrl',
|
|
17
23
|
controller: function controller() {
|
|
18
24
|
this.$onInit = () => {
|
|
@@ -3,7 +3,6 @@ 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';
|
|
7
6
|
import '../global/schedule-raf.js';
|
|
8
7
|
|
|
9
8
|
const angularModule = angular.module('Ring.island-ng', [IslandHeader, IslandContent]);
|
|
@@ -15,7 +14,14 @@ angularModule.directive('rgIsland', function islandDirective() {
|
|
|
15
14
|
narrow: '='
|
|
16
15
|
},
|
|
17
16
|
compile,
|
|
18
|
-
template:
|
|
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
|
+
`,
|
|
19
25
|
controllerAs: 'islandCtrl',
|
|
20
26
|
controller: angular.noop
|
|
21
27
|
};
|
|
@@ -13,7 +13,7 @@ export default class ClickableLink extends PureComponent<ClickableLinkProps> {
|
|
|
13
13
|
onConditionalClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
14
|
activeClassName: PropTypes.Requireable<string>;
|
|
15
15
|
href: PropTypes.Validator<string>;
|
|
16
|
-
children: PropTypes.Validator<
|
|
16
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
17
17
|
};
|
|
18
18
|
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
19
19
|
render(): JSX.Element;
|
package/dist/link/link.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
|
74
74
|
inherit: PropTypes.Requireable<boolean>;
|
|
75
75
|
pseudo: PropTypes.Requireable<boolean>;
|
|
76
76
|
hover: PropTypes.Requireable<boolean>;
|
|
77
|
-
children: PropTypes.Requireable<
|
|
77
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
|
|
78
78
|
'data-test': PropTypes.Requireable<string>;
|
|
79
79
|
href: PropTypes.Requireable<string>;
|
|
80
80
|
onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -138,7 +138,7 @@ declare const _default: {
|
|
|
138
138
|
inherit: PropTypes.Requireable<boolean>;
|
|
139
139
|
pseudo: PropTypes.Requireable<boolean>;
|
|
140
140
|
hover: PropTypes.Requireable<boolean>;
|
|
141
|
-
children: PropTypes.Requireable<
|
|
141
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
|
|
142
142
|
'data-test': PropTypes.Requireable<string>;
|
|
143
143
|
href: PropTypes.Requireable<string>;
|
|
144
144
|
onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
|
package/dist/link/link.js
CHANGED
|
@@ -7,7 +7,6 @@ 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';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* @name Link
|
package/dist/link-ng/link-ng.js
CHANGED
|
@@ -12,7 +12,10 @@ function rgLinkDirective() {
|
|
|
12
12
|
restrict: 'E',
|
|
13
13
|
transclude: true,
|
|
14
14
|
replace: true,
|
|
15
|
-
template:
|
|
15
|
+
template: `
|
|
16
|
+
<a class="${modules_607b0772.link} ${modules_607b0772.compatibilityUnderlineMode}"
|
|
17
|
+
><span class="${modules_607b0772.inner}" ng-transclude></span></a>
|
|
18
|
+
`
|
|
16
19
|
};
|
|
17
20
|
}
|
|
18
21
|
|
package/dist/list/list.js
CHANGED
|
@@ -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, { Component, cloneElement } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -34,7 +33,6 @@ import '../link/clickableLink.js';
|
|
|
34
33
|
import '../_helpers/link.js';
|
|
35
34
|
import '../avatar/avatar.js';
|
|
36
35
|
import '../global/url.js';
|
|
37
|
-
import 'core-js/modules/es.string.replace.js';
|
|
38
36
|
import '../avatar/fallback-avatar.js';
|
|
39
37
|
import '../checkbox/checkbox.js';
|
|
40
38
|
import '@jetbrains/icons/checkmark-14px';
|
|
@@ -141,19 +139,19 @@ class List extends Component {
|
|
|
141
139
|
switch (item.rgItemType) {
|
|
142
140
|
case Type.SEPARATOR:
|
|
143
141
|
case Type.TITLE:
|
|
144
|
-
return
|
|
142
|
+
return `${item.rgItemType}${isFirst ? '_first' : ''}${item.description ? '_desc' : ''}`;
|
|
145
143
|
|
|
146
144
|
case Type.MARGIN:
|
|
147
145
|
return Type.MARGIN;
|
|
148
146
|
|
|
149
147
|
case Type.CUSTOM:
|
|
150
|
-
return
|
|
148
|
+
return `${Type.CUSTOM}_${item.key}`;
|
|
151
149
|
|
|
152
150
|
case Type.ITEM:
|
|
153
151
|
case Type.LINK:
|
|
154
152
|
default:
|
|
155
153
|
if (item.details) {
|
|
156
|
-
return
|
|
154
|
+
return `${Type.ITEM}_${item.details}`;
|
|
157
155
|
}
|
|
158
156
|
|
|
159
157
|
return Type.ITEM;
|
|
@@ -354,7 +352,7 @@ class List extends Component {
|
|
|
354
352
|
const itemId = this.getId(item); // top and bottom margins
|
|
355
353
|
|
|
356
354
|
if (index === 0 || index === this.props.data.length + 1 || item.rgItemType === Type.MARGIN) {
|
|
357
|
-
itemKey = key ||
|
|
355
|
+
itemKey = key || `${Type.MARGIN}_${index}`;
|
|
358
356
|
el = /*#__PURE__*/React.createElement("div", {
|
|
359
357
|
style: {
|
|
360
358
|
height: Dimension.MARGIN
|
|
@@ -434,7 +432,7 @@ class List extends Component {
|
|
|
434
432
|
break;
|
|
435
433
|
|
|
436
434
|
default:
|
|
437
|
-
throw new Error(
|
|
435
|
+
throw new Error(`Unknown menu element type: ${itemProps.rgItemType}`);
|
|
438
436
|
}
|
|
439
437
|
|
|
440
438
|
el = /*#__PURE__*/React.createElement(ItemComponent, itemProps);
|
|
@@ -628,14 +626,14 @@ class List extends Component {
|
|
|
628
626
|
|
|
629
627
|
if (identificator && !isString) {
|
|
630
628
|
warnEmptyKey();
|
|
631
|
-
|
|
629
|
+
`${itemProps.rgItemType}_${JSON.stringify(identificator)}`;
|
|
632
630
|
}
|
|
633
631
|
|
|
634
|
-
return
|
|
632
|
+
return `${itemProps.rgItemType}_${identificator}`;
|
|
635
633
|
}
|
|
636
634
|
|
|
637
635
|
getId(item) {
|
|
638
|
-
return item != null ?
|
|
636
|
+
return item != null ? `${this.id}:${item.key || this._deprecatedGenerateKeyFromContent(item)}` : undefined;
|
|
639
637
|
}
|
|
640
638
|
|
|
641
639
|
get inner() {
|
package/dist/list/list__item.js
CHANGED
|
@@ -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 PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -10,7 +9,6 @@ import Icon from '../icon/icon.js';
|
|
|
10
9
|
import getUID from '../global/get-uid.js';
|
|
11
10
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
|
12
11
|
import '../global/url.js';
|
|
13
|
-
import 'core-js/modules/es.string.replace.js';
|
|
14
12
|
import '../global/dom.js';
|
|
15
13
|
import '../avatar/fallback-avatar.js';
|
|
16
14
|
import '@jetbrains/icons/checkmark-14px';
|
|
@@ -90,7 +88,7 @@ class ListItem extends PureComponent {
|
|
|
90
88
|
[modules_3b67a421.padded]: icon !== undefined || checkbox !== undefined || glyph !== undefined
|
|
91
89
|
});
|
|
92
90
|
const style = {
|
|
93
|
-
paddingLeft:
|
|
91
|
+
paddingLeft: `${(Number(level) || 0) * RING_UNIT + DEFAULT_PADDING + (showCheckbox ? CHECKBOX_WIDTH : 0)}px`
|
|
94
92
|
};
|
|
95
93
|
let computedTitle = null;
|
|
96
94
|
|
|
@@ -162,7 +160,7 @@ class ListItem extends PureComponent {
|
|
|
162
160
|
}), icon && /*#__PURE__*/React.createElement("div", {
|
|
163
161
|
className: modules_3b67a421.icon,
|
|
164
162
|
style: {
|
|
165
|
-
backgroundImage:
|
|
163
|
+
backgroundImage: `url("${icon}")`
|
|
166
164
|
}
|
|
167
165
|
}), rightNodes)), details && /*#__PURE__*/React.createElement("div", {
|
|
168
166
|
className: detailsClasses
|
package/dist/list/list__link.js
CHANGED
|
@@ -7,7 +7,6 @@ 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';
|
|
11
10
|
import '../link/clickableLink.js';
|
|
12
11
|
import '../_helpers/link.js';
|
|
13
12
|
|
|
@@ -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 GroupIcon from '@jetbrains/icons/group';
|
|
4
3
|
import HubSourceUsersGroups from '../hub-source/hub-source__users-groups.js';
|
|
5
4
|
import List from './list.js';
|
|
@@ -33,7 +32,6 @@ import '../_helpers/list.js';
|
|
|
33
32
|
import './list__item.js';
|
|
34
33
|
import '../avatar/avatar.js';
|
|
35
34
|
import '../global/url.js';
|
|
36
|
-
import 'core-js/modules/es.string.replace.js';
|
|
37
35
|
import '../avatar/fallback-avatar.js';
|
|
38
36
|
import '../checkbox/checkbox.js';
|
|
39
37
|
import '@jetbrains/icons/checkmark-14px';
|
|
@@ -58,7 +56,7 @@ const defaultOptions = {
|
|
|
58
56
|
getPluralForUserCount: count => {
|
|
59
57
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
60
58
|
const plural = count % 10 !== 1 || count % 100 === 11;
|
|
61
|
-
return
|
|
59
|
+
return `${count} member${plural ? 's' : ''}`;
|
|
62
60
|
}
|
|
63
61
|
};
|
|
64
62
|
var Filter;
|
package/dist/loader/loader.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 joinDataTestAttributes from '../global/data-tests.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
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';
|
|
4
3
|
|
|
5
4
|
var modules_00b5ad26 = {"unit":"8px","canvas":"canvas_rui_47a4","animate":"animate_rui_47a4","rotation-keyframes":"rotation-keyframes_rui_47a4","text":"text_rui_47a4"};
|
|
6
5
|
|
|
@@ -45,7 +44,7 @@ class Particle {
|
|
|
45
44
|
|
|
46
45
|
draw(ctx) {
|
|
47
46
|
const alpha = this.life >= 0 ? this.life : 0;
|
|
48
|
-
ctx.fillStyle =
|
|
47
|
+
ctx.fillStyle = `rgba(${this.color.r}, ${this.color.g}, ${this.color.b}, ${alpha})`;
|
|
49
48
|
ctx.beginPath();
|
|
50
49
|
ctx.arc(this.x + this.radius, this.y + this.radius, this.radius, 0, Math.PI * 2);
|
|
51
50
|
ctx.fill();
|
|
@@ -128,8 +127,8 @@ class LoaderCore {
|
|
|
128
127
|
this.canvas.width = canvasSize;
|
|
129
128
|
this.canvas.height = canvasSize; //Fixate canvas physical size to avoid real size scaling
|
|
130
129
|
|
|
131
|
-
this.canvas.style.width =
|
|
132
|
-
this.canvas.style.height =
|
|
130
|
+
this.canvas.style.width = `${this.props.size}px`;
|
|
131
|
+
this.canvas.style.height = `${this.props.size}px`;
|
|
133
132
|
this.ctx = this.canvas.getContext('2d');
|
|
134
133
|
(_this$ctx = this.ctx) === null || _this$ctx === void 0 ? void 0 : _this$ctx.scale(pixelRatio, pixelRatio);
|
|
135
134
|
this.height = this.props.size;
|
|
@@ -4,7 +4,6 @@ import classNames from 'classnames';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
6
|
import { m as modules_e49a3529 } from '../_helpers/loader-inline.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @name Loader Inline
|
|
@@ -7,7 +7,7 @@ import { m as modules_e49a3529 } from '../_helpers/loader-inline.js';
|
|
|
7
7
|
|
|
8
8
|
const angularModule = angular.module('Ring.loader-inline', []);
|
|
9
9
|
angularModule.component('rgLoaderInline', {
|
|
10
|
-
template:
|
|
10
|
+
template: `<div data-test="ring-loader-inline-ng" class="${modules_e49a3529.loader}"></div>`
|
|
11
11
|
});
|
|
12
12
|
var loaderInlineNg = angularModule.name;
|
|
13
13
|
|
|
@@ -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 RingAngularComponent from '../global/ring-angular-component.js';
|
|
5
4
|
import LoaderCore from '../loader/loader__core.js';
|
|
@@ -4,7 +4,6 @@ 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';
|
|
8
7
|
import '../global/data-tests.js';
|
|
9
8
|
import '../loader/loader__core.js';
|
|
10
9
|
import '../global/dom.js';
|
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
import '../global/ring-angular-component.js';
|
|
7
6
|
import '../loader/loader__core.js';
|
|
8
7
|
import '../global/dom.js';
|
|
@@ -87,7 +86,12 @@ angularModule.directive('rgLoaderScreen', function rgLoaderScreenDirective() {
|
|
|
87
86
|
scope: {
|
|
88
87
|
message: '@rgLoaderScreen'
|
|
89
88
|
},
|
|
90
|
-
template:
|
|
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
|
+
`
|
|
91
95
|
};
|
|
92
96
|
});
|
|
93
97
|
var loaderScreenNg = angularModule.name;
|
|
@@ -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, { Component } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import Dialog from '../dialog/dialog.js';
|
|
@@ -27,7 +26,6 @@ import 'util-deprecate';
|
|
|
27
26
|
import '../icon/icon__constants.js';
|
|
28
27
|
import '../_helpers/icon.js';
|
|
29
28
|
import '../icon/icon__svg.js';
|
|
30
|
-
import 'core-js/modules/es.string.replace.js';
|
|
31
29
|
import '../global/memoize.js';
|
|
32
30
|
import '../link/clickableLink.js';
|
|
33
31
|
import '../global/controls-height.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { unmountComponentAtNode, render } from '../global/react-render-adapter.js';
|
|
3
3
|
import LoginDialog from './login-dialog.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'react-dom';
|
|
6
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
6
|
import 'prop-types';
|
|
@@ -33,7 +32,6 @@ import 'util-deprecate';
|
|
|
33
32
|
import '../icon/icon__constants.js';
|
|
34
33
|
import '../_helpers/icon.js';
|
|
35
34
|
import '../icon/icon__svg.js';
|
|
36
|
-
import 'core-js/modules/es.string.replace.js';
|
|
37
35
|
import '../global/memoize.js';
|
|
38
36
|
import '../link/clickableLink.js';
|
|
39
37
|
import '../global/controls-height.js';
|