@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
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
import 'prop-types';
|
|
6
7
|
import 'classnames';
|
|
7
8
|
import 'react-virtualized/dist/es/List';
|
|
@@ -30,6 +31,7 @@ import '../_helpers/list.js';
|
|
|
30
31
|
import '../list/list__item.js';
|
|
31
32
|
import '../avatar/avatar.js';
|
|
32
33
|
import '../global/url.js';
|
|
34
|
+
import 'core-js/modules/es.string.replace.js';
|
|
33
35
|
import '../avatar/fallback-avatar.js';
|
|
34
36
|
import '../checkbox/checkbox.js';
|
|
35
37
|
import '@jetbrains/icons/checkmark';
|
|
@@ -1,12 +1,14 @@
|
|
|
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';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
6
7
|
import 'react-dom';
|
|
7
8
|
import '../global/ring-angular-component.js';
|
|
8
9
|
import '../global/react-dom-renderer.js';
|
|
9
10
|
import 'prop-types';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
12
|
import 'just-debounce-it';
|
|
11
13
|
import 'classnames';
|
|
12
14
|
import 'deep-equal';
|
package/dist/radio/radio.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, { createContext, Component, forwardRef } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* @name Radio Ng
|
|
@@ -13,24 +14,7 @@ angularModule.directive('rgRadio', function rgCheckboxDirective() {
|
|
|
13
14
|
restrict: 'E',
|
|
14
15
|
transclude: true,
|
|
15
16
|
replace: true,
|
|
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
|
-
`),
|
|
17
|
+
template: proxyAttrs("\n <label class=\"".concat(modules_df92307a.radio, "\" data-test=\"ring-radio\">\n <input\n type=\"radio\"\n class=").concat(modules_df92307a.input, "\n\n data-proxy-ng-disabled\n data-proxy-ng-model\n data-proxy-ng-change\n data-proxy-name\n data-proxy-value\n data-proxy-ng-value\n />\n <span class=\"").concat(modules_df92307a.circle, "\"></span><span\n class=\"").concat(modules_df92307a.label, "\" ng-transclude></span>\n </label>\n\n")),
|
|
34
18
|
link: function link(scope, iElement) {
|
|
35
19
|
const element = iElement[0];
|
|
36
20
|
const input = element.querySelector('input[type="radio"]');
|
|
@@ -13,8 +13,10 @@ import 'classnames';
|
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import '../global/theme.js';
|
|
15
15
|
import '../global/data-tests.js';
|
|
16
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
16
17
|
import '../_helpers/inject-styles.js';
|
|
17
18
|
import '../global/conic-gradient.js';
|
|
19
|
+
import 'core-js/modules/es.string.replace.js';
|
|
18
20
|
import 'conic-gradient';
|
|
19
21
|
import '../global/memoize.js';
|
|
20
22
|
import '../global/supports-css.js';
|
|
@@ -171,7 +173,7 @@ angularModule.directive('rgSaveField', ["RingMessageBundle", "$timeout", "$q", "
|
|
|
171
173
|
}
|
|
172
174
|
|
|
173
175
|
function addMultilineProcessing(controlName) {
|
|
174
|
-
const stopWatch = scope.$watch(
|
|
176
|
+
const stopWatch = scope.$watch("saveFieldForm.".concat(controlName), control => {
|
|
175
177
|
if (!control || !control.$formatters || !control.$parsers) {
|
|
176
178
|
return;
|
|
177
179
|
}
|
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
var template =
|
|
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>`;
|
|
1
|
+
var template = "<div class=\"ring-save-field\" ng-form=\"saveFieldForm\" rg-shortcuts=\"ring-save-field\" shortcuts-map=\"keyMap\" shortcuts-focus=\"focus\">\n <span class=\"ring-save-field__transclude-placeholder\" ng-transclude=\"\"></span>\n\n <rg-button\n ng-show=\"saveFieldForm.$dirty && saveFieldForm.$valid\"\n mode=\"primary\"\n class=\"ring-save-field__button ng-hide\"\n ng-mousedown=\"cancelBlur()\"\n\n rg-promised-click=\"submitChanges($event)\"\n promised-mode=\"loader\"\n >\n {{wording.save}}\n </rg-button>\n\n <rg-button\n ng-show=\"saveFieldForm.$dirty && !loading\"\n class=\"ring-save-field__button ng-hide\"\n ng-click=\"cancelChanges($event)\"\n ng-mousedown=\"cancelBlur()\"\n >\n {{wording.cancel}}\n </rg-button>\n\n <rg-button\n ng-show=\"done\"\n ng-disabled=\"true\"\n class=\"ring-save-field__button ng-hide\"\n >\n {{wording.saved}}\n </rg-button>\n</div>";
|
|
33
2
|
|
|
34
3
|
export { template as default };
|
package/dist/select/select.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
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';
|
|
2
4
|
import React, { Component, Fragment } from 'react';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import PropTypes from 'prop-types';
|
|
@@ -78,7 +80,7 @@ import '../caret/caret.js';
|
|
|
78
80
|
import '../text/text.js';
|
|
79
81
|
import '../_helpers/select__filter.js';
|
|
80
82
|
|
|
81
|
-
var modules_9d0de074 = {"unit":"8px","select":"
|
|
83
|
+
var modules_9d0de074 = {"unit":"8px","select":"select_rui_a5b8","value":"value_rui_a5b8 ellipsis_rui_43e5 font_rui_43e5","icons":"icons_rui_a5b8","toolbar":"toolbar_rui_a5b8","button":"button_rui_a5b8","buttonSpaced":"buttonSpaced_rui_a5b8","inputMode":"inputMode_rui_a5b8","buttonMode":"buttonMode_rui_a5b8","selectedIcon":"selectedIcon_rui_a5b8 resetButton_rui_43e5","clearIcon":"clearIcon_rui_a5b8","sizeS":"sizeS_rui_a5b8","sizeM":"sizeM_rui_a5b8","sizeL":"sizeL_rui_a5b8","sizeFULL":"sizeFULL_rui_a5b8","sizeAUTO":"sizeAUTO_rui_a5b8","materialMode":"materialMode_rui_a5b8","open":"open_rui_a5b8","buttonContainer":"buttonContainer_rui_a5b8","buttonValue":"buttonValue_rui_a5b8 ellipsis_rui_43e5","buttonValueOpen":"buttonValueOpen_rui_a5b8","label":"label_rui_a5b8","disabled":"disabled_rui_a5b8","selectedLabel":"selectedLabel_rui_a5b8","avatar":"avatar_rui_a5b8","popup":"popup_rui_a5b8","chevron":"chevron_rui_a5b8","chevronIcon":"chevronIcon_rui_a5b8"};
|
|
82
84
|
|
|
83
85
|
/**
|
|
84
86
|
* @name Select
|
|
@@ -285,7 +287,7 @@ class Select extends Component {
|
|
|
285
287
|
|
|
286
288
|
_defineProperty(this, "shortcutsScope", this.id);
|
|
287
289
|
|
|
288
|
-
_defineProperty(this, "listId",
|
|
290
|
+
_defineProperty(this, "listId", "".concat(this.id, ":list"));
|
|
289
291
|
|
|
290
292
|
_defineProperty(this, "_focusHandler", () => {
|
|
291
293
|
this.props.onFocus();
|
|
@@ -885,7 +887,8 @@ class Select extends Component {
|
|
|
885
887
|
});
|
|
886
888
|
|
|
887
889
|
if (tryFocusAnchor) {
|
|
888
|
-
const
|
|
890
|
+
const focusableSelectExists = this.node && this.node.querySelector('[data-test~=ring-select__focus]');
|
|
891
|
+
const restoreFocusNode = this.props.targetElement || focusableSelectExists;
|
|
889
892
|
|
|
890
893
|
if (restoreFocusNode) {
|
|
891
894
|
restoreFocusNode.focus();
|
|
@@ -920,7 +923,7 @@ class Select extends Component {
|
|
|
920
923
|
className: classNames(modules_9d0de074.button, modules_9d0de074.buttonSpaced),
|
|
921
924
|
onClick: this.addHandler,
|
|
922
925
|
"data-test": "ring-select-toolbar-button"
|
|
923
|
-
}, prefix ?
|
|
926
|
+
}, prefix ? "".concat(prefix, " ").concat(label) : label), hint && /*#__PURE__*/React.createElement(List.ListHint, {
|
|
924
927
|
label: hint,
|
|
925
928
|
"data-test": "ring-select-toolbar-hint"
|
|
926
929
|
}));
|
|
@@ -998,7 +1001,7 @@ class Select extends Component {
|
|
|
998
1001
|
} = this.props;
|
|
999
1002
|
const icons = [];
|
|
1000
1003
|
|
|
1001
|
-
if (selected
|
|
1004
|
+
if (selected !== null && selected !== void 0 && selected.icon) {
|
|
1002
1005
|
icons.push( /*#__PURE__*/React.createElement("button", {
|
|
1003
1006
|
title: "Toggle options popup",
|
|
1004
1007
|
type: "button",
|
|
@@ -1007,7 +1010,7 @@ class Select extends Component {
|
|
|
1007
1010
|
disabled: this.props.disabled,
|
|
1008
1011
|
onClick: this._clickHandler,
|
|
1009
1012
|
style: {
|
|
1010
|
-
backgroundImage:
|
|
1013
|
+
backgroundImage: "url(".concat(selected.icon, ")")
|
|
1011
1014
|
}
|
|
1012
1015
|
}));
|
|
1013
1016
|
}
|
|
@@ -1063,12 +1066,14 @@ class Select extends Component {
|
|
|
1063
1066
|
}
|
|
1064
1067
|
|
|
1065
1068
|
renderSelect(activeItemId) {
|
|
1069
|
+
var _this$_popup, _this$_popup$list;
|
|
1070
|
+
|
|
1066
1071
|
const dataTest = this.props['data-test'];
|
|
1067
1072
|
const {
|
|
1068
1073
|
shortcutsEnabled
|
|
1069
1074
|
} = this.state;
|
|
1070
1075
|
const classes = classNames(modules_9d0de074.select, 'ring-js-shortcuts', this.props.className, {
|
|
1071
|
-
[modules_9d0de074[
|
|
1076
|
+
[modules_9d0de074["size".concat(this.props.size)]]: this.props.type !== Type.INLINE,
|
|
1072
1077
|
[modules_9d0de074.disabled]: this.props.disabled
|
|
1073
1078
|
});
|
|
1074
1079
|
|
|
@@ -1111,7 +1116,7 @@ class Select extends Component {
|
|
|
1111
1116
|
onKeyDown: this.props.onKeyDown,
|
|
1112
1117
|
"data-test": "ring-select__focus",
|
|
1113
1118
|
enableShortcuts: shortcutsEnabled ? Object.keys({ ...this.getShortcutsMap(),
|
|
1114
|
-
...this._popup
|
|
1119
|
+
...((_this$_popup = this._popup) === null || _this$_popup === void 0 ? void 0 : (_this$_popup$list = _this$_popup.list) === null || _this$_popup$list === void 0 ? void 0 : _this$_popup$list.shortcutsMap)
|
|
1115
1120
|
}) : undefined
|
|
1116
1121
|
})), this.props.type === Type.INPUT && iconsNode, this._renderPopup());
|
|
1117
1122
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'prop-types';
|
|
4
5
|
import 'classnames';
|
|
@@ -16,6 +17,7 @@ import 'util-deprecate';
|
|
|
16
17
|
import '../icon/icon__constants.js';
|
|
17
18
|
import '../_helpers/icon.js';
|
|
18
19
|
import '../icon/icon__svg.js';
|
|
20
|
+
import 'core-js/modules/es.string.replace.js';
|
|
19
21
|
import '../global/memoize.js';
|
|
20
22
|
import '../link/clickableLink.js';
|
|
21
23
|
import '../_helpers/button__classes.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import searchIcon from '@jetbrains/icons/search';
|
|
@@ -25,6 +26,7 @@ import 'util-deprecate';
|
|
|
25
26
|
import '../icon/icon__constants.js';
|
|
26
27
|
import '../_helpers/icon.js';
|
|
27
28
|
import '../icon/icon__svg.js';
|
|
29
|
+
import 'core-js/modules/es.string.replace.js';
|
|
28
30
|
import 'react-dom';
|
|
29
31
|
import '../global/schedule-raf.js';
|
|
30
32
|
import '../global/data-tests.js';
|
|
@@ -165,7 +167,7 @@ class SelectPopup extends PureComponent {
|
|
|
165
167
|
onClick: this.handleSelectAll
|
|
166
168
|
}, activeFilters.length !== this.props.selected.length ? 'Select all' : 'Deselect all'), /*#__PURE__*/React.createElement(Text, {
|
|
167
169
|
info: true
|
|
168
|
-
},
|
|
170
|
+
}, "".concat(this.props.selected.length, " selected")));
|
|
169
171
|
});
|
|
170
172
|
|
|
171
173
|
_defineProperty(this, "_adjustListMaxHeight", memoizeOne((hidden, userDefinedMaxHeight, ringPopupTarget) => {
|
|
@@ -7,6 +7,8 @@ import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
|
7
7
|
import SelectNgOptions from './select-ng__options.js';
|
|
8
8
|
import SelectLazy from './select-ng__lazy.js';
|
|
9
9
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
10
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
12
|
import 'classnames';
|
|
11
13
|
import 'prop-types';
|
|
12
14
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -3,6 +3,8 @@ import angular from 'angular';
|
|
|
3
3
|
import { render, hydrate } from 'react-dom';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { RerenderableSelect } from '../select/select.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
|
+
import 'core-js/modules/es.string.replace.js';
|
|
6
8
|
import 'classnames';
|
|
7
9
|
import 'prop-types';
|
|
8
10
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -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: ".concat(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(".concat(toString(value), ")"));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
return matchedOptions[0];
|
|
@@ -9,6 +9,8 @@ import IconNG from '../icon-ng/icon-ng.js';
|
|
|
9
9
|
import InputNg from '../input-ng/input-ng.js';
|
|
10
10
|
import { getShortcutTitle } from '../shortcuts/shortcut-title.js';
|
|
11
11
|
import HintPopupTpl from './shortcuts-hint-ng__template.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
13
|
+
import 'core-js/modules/es.promise.finally.js';
|
|
12
14
|
import 'focus-trap';
|
|
13
15
|
import '../global/dom.js';
|
|
14
16
|
import '../shortcuts/core.js';
|
|
@@ -20,6 +22,7 @@ import 'classnames';
|
|
|
20
22
|
import '../global/theme.js';
|
|
21
23
|
import 'react';
|
|
22
24
|
import '../_helpers/button__classes.js';
|
|
25
|
+
import 'core-js/modules/es.string.replace.js';
|
|
23
26
|
import '../icon/icon__constants.js';
|
|
24
27
|
import '../_helpers/icon.js';
|
|
25
28
|
import '../promised-click-ng/promised-click-ng.js';
|
|
@@ -1,50 +1,3 @@
|
|
|
1
|
-
var HintPopupTpl =
|
|
2
|
-
|
|
3
|
-
<div class="shortcuts-hint__search-input-wrapper">
|
|
4
|
-
<rg-input
|
|
5
|
-
ng-attr-placeholder="{{hintPopupCtrl.searchPlaceholder}}"
|
|
6
|
-
ng-model="hintPopupCtrl.searchText"
|
|
7
|
-
></rg-input>
|
|
8
|
-
<rg-icon
|
|
9
|
-
class="shortcuts-hint__search-icon"
|
|
10
|
-
glyph="{{hintPopupCtrl.searchIcon}}"
|
|
11
|
-
></rg-icon>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<div class="shortcuts-hint__columns">
|
|
15
|
-
<div class="shortcuts-hint__table">
|
|
16
|
-
<div ng-repeat="mode in hintPopupCtrl.modes"
|
|
17
|
-
class="shortcuts-hint__shortcut-block">
|
|
18
|
-
|
|
19
|
-
<div class="shortcuts-hint__table-title" ng-if="mode.title">
|
|
20
|
-
<div></div>
|
|
21
|
-
<div class="shortcuts-hint__shortcuts-title">{{hintPopupCtrl.getTitle(mode.title)}}</div>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div ng-repeat="shortcut in mode.shortcuts | shortcutSearch:hintPopupCtrl.searchText"
|
|
25
|
-
class="shortcuts-hint__table-row">
|
|
26
|
-
<div class="shortcuts-hint__shortcut-cell">
|
|
27
|
-
<div class="shortcuts-hint__shortcut"
|
|
28
|
-
ng-if="hintPopupCtrl.isArray(shortcut.key)"
|
|
29
|
-
ng-repeat="key in shortcut.key track by $index">
|
|
30
|
-
{{key | shortcutKeySymbol}}
|
|
31
|
-
</div>
|
|
32
|
-
<span class="shortcuts-hint__shortcut"
|
|
33
|
-
ng-if="!hintPopupCtrl.isArray(shortcut.key)">{{shortcut.key | shortcutKeySymbol}}</span>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="shortcuts-hint__hint">
|
|
36
|
-
<span ng-repeat="title in shortcut.titles">
|
|
37
|
-
{{hintPopupCtrl.getTitle(title)}}
|
|
38
|
-
<br ng-if="!$last">
|
|
39
|
-
</span>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div rg-template="hintPopupCtrl.tailTemplate"></div>
|
|
47
|
-
|
|
48
|
-
</div>`;
|
|
1
|
+
var HintPopupTpl = "<div class=\"shortcuts-hint\">\n\n <div class=\"shortcuts-hint__search-input-wrapper\">\n <rg-input\n ng-attr-placeholder=\"{{hintPopupCtrl.searchPlaceholder}}\"\n ng-model=\"hintPopupCtrl.searchText\"\n ></rg-input>\n <rg-icon\n class=\"shortcuts-hint__search-icon\"\n glyph=\"{{hintPopupCtrl.searchIcon}}\"\n ></rg-icon>\n </div>\n\n <div class=\"shortcuts-hint__columns\">\n <div class=\"shortcuts-hint__table\">\n <div ng-repeat=\"mode in hintPopupCtrl.modes\"\n class=\"shortcuts-hint__shortcut-block\">\n\n <div class=\"shortcuts-hint__table-title\" ng-if=\"mode.title\">\n <div></div>\n <div class=\"shortcuts-hint__shortcuts-title\">{{hintPopupCtrl.getTitle(mode.title)}}</div>\n </div>\n\n <div ng-repeat=\"shortcut in mode.shortcuts | shortcutSearch:hintPopupCtrl.searchText\"\n class=\"shortcuts-hint__table-row\">\n <div class=\"shortcuts-hint__shortcut-cell\">\n <div class=\"shortcuts-hint__shortcut\"\n ng-if=\"hintPopupCtrl.isArray(shortcut.key)\"\n ng-repeat=\"key in shortcut.key track by $index\">\n {{key | shortcutKeySymbol}}\n </div>\n <span class=\"shortcuts-hint__shortcut\"\n ng-if=\"!hintPopupCtrl.isArray(shortcut.key)\">{{shortcut.key | shortcutKeySymbol}}</span>\n </div>\n <div class=\"shortcuts-hint__hint\">\n <span ng-repeat=\"title in shortcut.titles\">\n {{hintPopupCtrl.getTitle(title)}}\n <br ng-if=\"!$last\">\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div rg-template=\"hintPopupCtrl.tailTemplate\"></div>\n\n</div>";
|
|
49
2
|
|
|
50
3
|
export { HintPopupTpl as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
2
|
import angular from 'angular';
|
|
2
3
|
import { getStyles } from '../global/dom.js';
|
|
3
4
|
import shortcutsInstance from '../shortcuts/core.js';
|
|
@@ -37,7 +38,7 @@ angularModule.provider('shortcuts', function provider() {
|
|
|
37
38
|
|
|
38
39
|
|
|
39
40
|
if (!mode) {
|
|
40
|
-
throw new Error(
|
|
41
|
+
throw new Error("Shortcut mode ".concat(name, " is not declared"));
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
mode.forEach(key => {
|
|
@@ -221,7 +222,7 @@ angularModule.directive('rgShortcuts', ["$parse", function rgShortcutsDirective(
|
|
|
221
222
|
const blurGetter = $parse(iAttrs.shortcutsBlur);
|
|
222
223
|
const zone = {
|
|
223
224
|
name,
|
|
224
|
-
scope:
|
|
225
|
+
scope: "".concat(name, "-").concat($scope.$id),
|
|
225
226
|
element: iElement[0],
|
|
226
227
|
onBlur: blurGetter($scope) || angular.noop
|
|
227
228
|
};
|
|
@@ -244,7 +245,7 @@ angularModule.directive('rgShortcutsGlobal', ["shortcuts", function rgShortcutsG
|
|
|
244
245
|
restrict: 'A',
|
|
245
246
|
link: function link($scope, iElement, iAttrs) {
|
|
246
247
|
const name = iAttrs.rgShortcutsGlobal;
|
|
247
|
-
const scope =
|
|
248
|
+
const scope = "".concat(name, "-").concat($scope.$id);
|
|
248
249
|
$scope.$evalAsync(() => {
|
|
249
250
|
shortcuts.bind(name, $scope.$eval(iAttrs.shortcutsMap), scope);
|
|
250
251
|
shortcutsInstance.pushScope(scope);
|
|
@@ -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 chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
4
5
|
import chevronLeftIcon from '@jetbrains/icons/chevron-left';
|
|
@@ -11,6 +12,7 @@ import buttonTemplate from './sidebar-ng__button-template.js';
|
|
|
11
12
|
import 'just-debounce-it';
|
|
12
13
|
import 'element-resize-detector';
|
|
13
14
|
import '../global/dom.js';
|
|
15
|
+
import 'core-js/modules/es.string.replace.js';
|
|
14
16
|
import '../icon/icon__constants.js';
|
|
15
17
|
import '../template-ng/template-ng.js';
|
|
16
18
|
import '../_helpers/icon.js';
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
var buttonTemplate =
|
|
2
|
-
<rg-button
|
|
3
|
-
ng-click="button.model = !button.model"
|
|
4
|
-
ng-disabled="button.dialogIsActive"
|
|
5
|
-
>
|
|
6
|
-
<rg-icon
|
|
7
|
-
ng-show="button.model"
|
|
8
|
-
glyph="{{button.chevronRight}}"
|
|
9
|
-
></rg-icon>
|
|
10
|
-
|
|
11
|
-
<rg-icon
|
|
12
|
-
ng-show="!button.model"
|
|
13
|
-
glyph="{{button.chevronLeft}}"
|
|
14
|
-
></rg-icon>
|
|
15
|
-
|
|
16
|
-
<span ng-transclude></span>
|
|
17
|
-
</rg-button>
|
|
18
|
-
</span>`;
|
|
1
|
+
var buttonTemplate = "<span>\n <rg-button\n ng-click=\"button.model = !button.model\"\n ng-disabled=\"button.dialogIsActive\"\n >\n <rg-icon\n ng-show=\"button.model\"\n glyph=\"{{button.chevronRight}}\"\n ></rg-icon>\n\n <rg-icon\n ng-show=\"!button.model\"\n glyph=\"{{button.chevronLeft}}\"\n ></rg-icon>\n\n <span ng-transclude></span>\n </rg-button>\n</span>";
|
|
19
2
|
|
|
20
3
|
export { buttonTemplate as default };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var template =
|
|
2
|
-
class="ring-sidebar"
|
|
3
|
-
rg-place-under="{{sidebar.placeUnderSibling}}"
|
|
4
|
-
place-top-offset="{{sidebar.topOffset}}"
|
|
5
|
-
sync-height="true"
|
|
6
|
-
ng-class="{'ring-sidebar_active': sidebar.show}"
|
|
7
|
-
>
|
|
8
|
-
<rg-dialog in-sidebar="true" active="sidebar.dialogIsActive"></rg-dialog>
|
|
9
|
-
<div class="ring-sidebar__content" ng-transclude ng-if="!sidebar.dialogIsActive"></div>
|
|
10
|
-
</div>`;
|
|
1
|
+
var template = "<div\n class=\"ring-sidebar\"\n rg-place-under=\"{{sidebar.placeUnderSibling}}\"\n place-top-offset=\"{{sidebar.topOffset}}\"\n sync-height=\"true\"\n ng-class=\"{'ring-sidebar_active': sidebar.show}\"\n>\n <rg-dialog in-sidebar=\"true\" active=\"sidebar.dialogIsActive\"></rg-dialog>\n <div class=\"ring-sidebar__content\" ng-transclude ng-if=\"!sidebar.dialogIsActive\"></div>\n</div>";
|
|
11
2
|
|
|
12
3
|
export { template as default };
|
package/dist/storage/storage.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import LocalStorage from './storage__local.js';
|
|
2
2
|
import FallbackStorage from './storage__fallback.js';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import '../alert-service/alert-service.js';
|
|
4
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
6
|
import 'react';
|
|
@@ -17,6 +18,7 @@ import 'util-deprecate';
|
|
|
17
18
|
import '../icon/icon__constants.js';
|
|
18
19
|
import '../_helpers/icon.js';
|
|
19
20
|
import '../icon/icon__svg.js';
|
|
21
|
+
import 'core-js/modules/es.string.replace.js';
|
|
20
22
|
import '../global/memoize.js';
|
|
21
23
|
import '../loader-inline/loader-inline.js';
|
|
22
24
|
import '../global/theme.js';
|
|
@@ -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 deepEqual from 'deep-equal';
|
|
3
4
|
|
|
4
5
|
const DEFAULT_CHECK_DELAY = 3000;
|
|
@@ -36,12 +37,12 @@ class FallbackStorage {
|
|
|
36
37
|
if (days) {
|
|
37
38
|
date = new Date();
|
|
38
39
|
date.setTime(date.getTime() + days * SECONDS_IN_DAY);
|
|
39
|
-
expires =
|
|
40
|
+
expires = "; expires=".concat(date.toGMTString());
|
|
40
41
|
} else {
|
|
41
42
|
expires = ';';
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
document.cookie =
|
|
45
|
+
document.cookie = "".concat(name, "=").concat(value).concat(expires, "; path=/");
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
*
|
|
@@ -52,7 +53,7 @@ class FallbackStorage {
|
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
static _readCookie(name) {
|
|
55
|
-
const nameEQ =
|
|
56
|
+
const nameEQ = "".concat(name, "=");
|
|
56
57
|
const cookies = document.cookie.split(';');
|
|
57
58
|
let cookie;
|
|
58
59
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
2
|
import alertService from '../alert-service/alert-service.js';
|
|
2
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import 'react';
|
|
@@ -15,6 +16,7 @@ import 'util-deprecate';
|
|
|
15
16
|
import '../icon/icon__constants.js';
|
|
16
17
|
import '../_helpers/icon.js';
|
|
17
18
|
import '../icon/icon__svg.js';
|
|
19
|
+
import 'core-js/modules/es.string.replace.js';
|
|
18
20
|
import '../global/memoize.js';
|
|
19
21
|
import '../loader-inline/loader-inline.js';
|
|
20
22
|
import '../global/theme.js';
|