@jetbrains/ring-ui 5.0.0-beta.9 → 5.0.3
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/CHANGELOG.md +20 -0
- package/components/alert/alert.css +1 -1
- package/components/alert-service/alert-service.js +1 -1
- package/components/analytics/analytics__ga-plugin.d.ts +1 -1
- package/components/analytics/analytics__ga-plugin.js +12 -3
- package/components/auth/auth__core.js +5 -1
- package/components/auth-dialog-service/auth-dialog-service.js +1 -1
- package/components/avatar/avatar.d.ts +1 -0
- package/components/avatar/fallback-avatar.js +2 -2
- package/components/button/button.css +2 -2
- package/components/button/button.d.ts +2 -1
- package/components/button-group/button-group.css +4 -2
- package/components/checkbox/checkbox.css +8 -12
- package/components/checkbox/checkbox.js +1 -1
- package/components/checkbox-ng/checkbox-ng.js +1 -1
- package/components/confirm-service/confirm-service.js +1 -1
- package/components/data-list/data-list.d.ts +4 -8
- package/components/date-picker/date-picker.css +1 -0
- package/components/date-picker/date-popup.js +0 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/global/angular-component-factory.js +1 -1
- package/components/global/promise-with-timeout.d.ts +2 -1
- package/components/global/promise-with-timeout.js +5 -2
- package/components/global/react-render-adapter.d.ts +29 -0
- package/components/global/react-render-adapter.js +36 -0
- package/components/global/rerender-hoc.d.ts +5 -9
- package/components/global/rerender-hoc.js +4 -2
- package/components/global/theme.d.ts +1 -0
- package/components/global/theme.js +19 -4
- package/components/global/variables.css +0 -1
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +0 -1
- package/components/header/profile.d.ts +3 -3
- package/components/input/input.css +1 -1
- package/components/input/input.d.ts +3 -1
- package/components/input/input.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +4 -8
- package/components/island/content.d.ts +33 -2
- package/components/island/content.js +5 -4
- package/components/island/island.d.ts +4 -8
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/link.d.ts +14 -22
- package/components/link/link.js +2 -2
- package/components/list/consts.d.ts +3 -1
- package/components/list/list.css +1 -0
- package/components/list/list.d.ts +2 -0
- package/components/list/list.js +12 -13
- package/components/list/list__link.js +2 -2
- package/components/login-dialog/service.js +1 -1
- package/components/message/message.css +12 -26
- package/components/message/message.js +27 -14
- package/components/popup/popup.d.ts +7 -1
- package/components/popup/popup.js +4 -3
- package/components/popup/popup.target.d.ts +1 -1
- package/components/popup/position.d.ts +1 -1
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.d.ts +1 -0
- package/components/query-assist/query-assist.d.ts +5 -9
- package/components/query-assist/query-assist.js +2 -2
- package/components/radio/radio.d.ts +1 -1
- package/components/select/select.css +4 -1
- package/components/select/select.d.ts +12 -14
- package/components/select/select.js +20 -17
- package/components/select/select__popup.d.ts +4 -1
- package/components/select/select__popup.js +4 -3
- package/components/select-ng/select-ng.js +16 -5
- package/components/select-ng/select-ng__lazy.js +19 -8
- package/components/select-ng/select-ng__lazy.test.js +3 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/table/disable-hover-hoc.d.ts +4 -8
- package/components/table/header.d.ts +8 -1
- package/components/table/row-with-focus-sensor.d.ts +4 -4
- package/components/table/row-with-focus-sensor.js +4 -4
- package/components/table/row.d.ts +1 -0
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/smart-table.js +7 -3
- package/components/table/table.d.ts +4 -8
- package/components/tabs/collapsible-more.js +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.d.ts +4 -4
- package/components/tabs/smart-tabs.js +9 -3
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tabs.css +10 -1
- package/components/tag/tag.css +1 -1
- package/components/tag/tag.js +1 -2
- package/components/tags-input/tags-input.d.ts +4 -8
- package/components/tags-list/tags-list.d.ts +1 -1
- package/components/tooltip-ng/tooltip-ng.js +13 -10
- package/components/user-agreement/service.d.ts +14 -62
- package/components/user-agreement/service.js +1 -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 +2 -2
- 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/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-inline.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/theme.js +20 -8
- package/dist/_helpers/title.js +2 -1
- package/dist/alert/alert.js +15 -3
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +14 -1
- package/dist/analytics/analytics.js +4 -3
- package/dist/analytics/analytics__custom-plugin.js +2 -1
- package/dist/analytics/analytics__fus-plugin.js +1 -0
- package/dist/analytics/analytics__ga-plugin.d.ts +1 -1
- package/dist/analytics/analytics__ga-plugin.js +16 -7
- package/dist/analytics/analytics__plugin-utils.js +4 -3
- package/dist/analytics-ng/analytics-ng.js +3 -2
- package/dist/auth/auth.js +13 -0
- package/dist/auth/auth__core.js +29 -12
- package/dist/auth/background-flow.js +2 -1
- package/dist/auth/down-notification.js +14 -1
- package/dist/auth/iframe-flow.js +3 -0
- package/dist/auth/landing.js +17 -4
- package/dist/auth/request-builder.js +1 -0
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +13 -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 +4 -1
- package/dist/auth-ng/auth-ng.js +14 -1
- package/dist/autofocus-ng/autofocus-ng.js +1 -0
- package/dist/avatar/avatar-example-datauri.js +1 -23
- package/dist/avatar/avatar.d.ts +1 -0
- package/dist/avatar/avatar.js +5 -3
- package/dist/avatar/fallback-avatar.js +6 -5
- package/dist/avatar-editor-ng/avatar-editor-ng.js +13 -0
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
- package/dist/avatar-ng/avatar-ng.js +3 -0
- package/dist/badge/badge.js +1 -0
- package/dist/badge-ng/badge-ng.js +2 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +4 -28
- package/dist/button/button.d.ts +2 -1
- 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 +3 -1
- package/dist/checkbox-ng/checkbox-ng.js +4 -21
- package/dist/code/code.js +4 -3
- package/dist/confirm/confirm.js +3 -1
- package/dist/confirm-ng/confirm-ng.js +3 -0
- package/dist/confirm-service/confirm-service.js +4 -1
- package/dist/content-layout/content-layout.js +1 -0
- package/dist/content-layout/sidebar.js +1 -0
- package/dist/data-list/data-list.d.ts +4 -8
- package/dist/data-list/data-list.js +3 -1
- package/dist/data-list/data-list.mock.js +1 -0
- package/dist/data-list/item.js +3 -1
- package/dist/data-list/selection.js +1 -0
- package/dist/data-list/title.js +3 -1
- package/dist/data-list-ng/data-list-ng.js +4 -1
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.js +4 -2
- package/dist/date-picker/date-picker.js +10 -8
- package/dist/date-picker/date-popup.js +4 -3
- 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.d.ts +1 -1
- package/dist/dialog/dialog.js +2 -0
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
- package/dist/dialog-ng/dialog-ng.js +7 -4
- package/dist/dialog-ng/dialog-ng__template.js +1 -70
- package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
- package/dist/dropdown/anchor.js +2 -0
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +2 -0
- package/dist/dropdown-menu/dropdown-menu.js +4 -2
- 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 +8 -6
- 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 +1 -0
- package/dist/global/memoize.js +2 -0
- package/dist/global/normalize-indent.js +2 -0
- package/dist/global/promise-with-timeout.d.ts +2 -1
- package/dist/global/promise-with-timeout.js +6 -2
- package/dist/global/react-dom-renderer.js +1 -0
- package/dist/global/react-render-adapter.d.ts +29 -0
- package/dist/global/react-render-adapter.js +41 -0
- package/dist/global/rerender-hoc.d.ts +5 -9
- package/dist/global/rerender-hoc.js +7 -3
- package/dist/global/theme.d.ts +1 -0
- package/dist/global/theme.js +16 -1
- package/dist/global/trivial-template-tag.js +2 -0
- package/dist/global/url.js +3 -1
- package/dist/global/variables.d.ts +0 -1
- package/dist/grid/col.js +2 -1
- package/dist/grid/grid.js +1 -0
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.js +18 -14
- package/dist/header/logo.js +2 -0
- package/dist/header/profile.d.ts +3 -3
- package/dist/header/profile.js +3 -1
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.js +2 -0
- package/dist/header/smart-profile.js +17 -13
- package/dist/header/smart-services.js +14 -11
- 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.d.ts +3 -1
- package/dist/input/input.js +5 -3
- package/dist/input-ng/input-ng.js +6 -59
- package/dist/island/adaptive-island-hoc.d.ts +4 -8
- package/dist/island/adaptive-island-hoc.js +4 -3
- package/dist/island/content.d.ts +33 -2
- package/dist/island/content.js +8 -4
- package/dist/island/header.js +3 -2
- package/dist/island/island.d.ts +4 -8
- 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.d.ts +1 -1
- package/dist/link/clickableLink.js +1 -0
- package/dist/link/link.d.ts +14 -22
- package/dist/link/link.js +5 -4
- package/dist/link-ng/link-ng.js +1 -4
- package/dist/list/consts.d.ts +3 -1
- package/dist/list/list.d.ts +2 -0
- package/dist/list/list.js +30 -23
- package/dist/list/list__custom.js +1 -0
- package/dist/list/list__item.js +6 -4
- package/dist/list/list__link.js +3 -1
- package/dist/list/list__users-groups-source.js +4 -2
- package/dist/loader/loader.js +1 -0
- package/dist/loader/loader__core.js +5 -4
- package/dist/loader-inline/loader-inline.js +1 -0
- package/dist/loader-inline-ng/loader-inline-ng.js +1 -1
- 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 +4 -1
- 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 +39 -33
- 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 +7 -4
- package/dist/pager-ng/pager-ng.js +5 -2
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +14 -1
- package/dist/place-under-ng/place-under-ng.js +3 -2
- package/dist/popup/popup.d.ts +7 -1
- package/dist/popup/popup.js +11 -7
- package/dist/popup/popup.target.d.ts +1 -1
- package/dist/popup/position.d.ts +1 -1
- package/dist/popup/position.js +3 -2
- package/dist/popup-menu/popup-menu.d.ts +1 -0
- package/dist/popup-menu/popup-menu.js +3 -1
- package/dist/progress-bar/progress-bar.js +3 -2
- package/dist/progress-bar-ng/progress-bar-ng.js +2 -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.d.ts +5 -9
- package/dist/query-assist/query-assist.js +9 -5
- package/dist/query-assist/query-assist__suggestions.js +3 -1
- package/dist/query-assist-ng/query-assist-ng.js +7 -3
- package/dist/radio/radio.d.ts +1 -1
- 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.d.ts +12 -14
- package/dist/select/select.js +33 -22
- package/dist/select/select__filter.js +4 -2
- package/dist/select/select__popup.d.ts +4 -1
- package/dist/select/select__popup.js +9 -4
- package/dist/select-ng/select-ng.js +23 -8
- package/dist/select-ng/select-ng__lazy.js +30 -12
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/dist/shortcuts/shortcuts-hoc.js +4 -3
- package/dist/shortcuts/shortcuts.d.ts +1 -1
- 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 +13 -0
- package/dist/storage/storage__fallback.js +4 -3
- package/dist/storage/storage__local.js +13 -0
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +2 -1
- package/dist/table/cell.js +1 -0
- package/dist/table/disable-hover-hoc.d.ts +4 -8
- package/dist/table/disable-hover-hoc.js +4 -3
- package/dist/table/header-cell.js +2 -0
- package/dist/table/header.d.ts +8 -1
- package/dist/table/header.js +3 -1
- package/dist/table/multitable.js +1 -0
- package/dist/table/row-with-focus-sensor.d.ts +4 -4
- package/dist/table/row-with-focus-sensor.js +15 -5
- package/dist/table/row.d.ts +1 -0
- package/dist/table/row.js +4 -2
- package/dist/table/selection-adapter.js +2 -0
- package/dist/table/selection-shortcuts-hoc.js +1 -0
- package/dist/table/selection.js +1 -0
- package/dist/table/smart-table.d.ts +1 -0
- package/dist/table/smart-table.js +13 -7
- package/dist/table/table.d.ts +4 -8
- package/dist/table/table.js +3 -1
- package/dist/table-legacy-ng/table-legacy-ng.js +13 -47
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +6 -9
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
- package/dist/table-ng/smart-table-ng.js +4 -1
- package/dist/table-ng/table-ng.js +4 -1
- package/dist/tabs/collapsible-more.js +4 -2
- package/dist/tabs/collapsible-tab.js +1 -0
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +3 -1
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +2 -2
- package/dist/tabs/dumb-tabs.js +3 -1
- package/dist/tabs/smart-tabs.d.ts +4 -4
- package/dist/tabs/smart-tabs.js +10 -6
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +1 -0
- package/dist/tabs/tab.d.ts +1 -1
- package/dist/tabs/tab.js +1 -0
- package/dist/tabs/tabs.js +3 -1
- package/dist/tabs-ng/tabs-ng.js +1 -0
- package/dist/tabs-ng/tabs-ng__template.js +1 -38
- package/dist/tag/tag.js +4 -3
- package/dist/tags-input/tags-input.d.ts +4 -8
- package/dist/tags-input/tags-input.js +6 -3
- package/dist/tags-input-ng/tags-input-ng.js +5 -2
- package/dist/tags-list/tags-list.d.ts +1 -1
- 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 +2 -0
- package/dist/tooltip/tooltip.js +3 -1
- package/dist/tooltip-ng/tooltip-ng.js +12 -6
- package/dist/user-agreement/service.d.ts +14 -62
- package/dist/user-agreement/service.js +14 -8
- 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 +3 -0
- package/package.json +74 -66
package/dist/list/list.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { Component, cloneElement } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -33,9 +34,10 @@ import '../link/clickableLink.js';
|
|
|
33
34
|
import '../_helpers/link.js';
|
|
34
35
|
import '../avatar/avatar.js';
|
|
35
36
|
import '../global/url.js';
|
|
37
|
+
import 'core-js/modules/es.string.replace.js';
|
|
36
38
|
import '../avatar/fallback-avatar.js';
|
|
37
39
|
import '../checkbox/checkbox.js';
|
|
38
|
-
import '@jetbrains/icons/checkmark';
|
|
40
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
39
41
|
import '@jetbrains/icons/remove-10px';
|
|
40
42
|
import '../icon/icon.js';
|
|
41
43
|
import '../icon/icon__constants.js';
|
|
@@ -44,9 +46,6 @@ import '../icon/icon__svg.js';
|
|
|
44
46
|
import '../_helpers/checkbox.js';
|
|
45
47
|
import '../global/get-event-key.js';
|
|
46
48
|
|
|
47
|
-
const scheduleScrollListener = scheduleRAF();
|
|
48
|
-
const scheduleHoverListener = scheduleRAF();
|
|
49
|
-
|
|
50
49
|
function noop() {}
|
|
51
50
|
|
|
52
51
|
const warnEmptyKey = deprecate(() => {}, 'No key passed for list item with non-string label. It is considered as a bad practice and has been deprecated, please provide a key.');
|
|
@@ -103,13 +102,17 @@ class List extends Component {
|
|
|
103
102
|
scrolledToBottom: false
|
|
104
103
|
});
|
|
105
104
|
|
|
105
|
+
_defineProperty(this, "scheduleScrollListener", scheduleRAF());
|
|
106
|
+
|
|
107
|
+
_defineProperty(this, "scheduleHoverListener", scheduleRAF());
|
|
108
|
+
|
|
106
109
|
_defineProperty(this, "virtualizedList", void 0);
|
|
107
110
|
|
|
108
111
|
_defineProperty(this, "unmounted", void 0);
|
|
109
112
|
|
|
110
113
|
_defineProperty(this, "container", void 0);
|
|
111
114
|
|
|
112
|
-
_defineProperty(this, "hoverHandler", memoize(index => () => scheduleHoverListener(() => {
|
|
115
|
+
_defineProperty(this, "hoverHandler", memoize(index => () => this.scheduleHoverListener(() => {
|
|
113
116
|
if (this.state.disabledHover) {
|
|
114
117
|
return;
|
|
115
118
|
}
|
|
@@ -138,19 +141,19 @@ class List extends Component {
|
|
|
138
141
|
switch (item.rgItemType) {
|
|
139
142
|
case Type.SEPARATOR:
|
|
140
143
|
case Type.TITLE:
|
|
141
|
-
return
|
|
144
|
+
return "".concat(item.rgItemType).concat(isFirst ? '_first' : '').concat(item.description ? '_desc' : '');
|
|
142
145
|
|
|
143
146
|
case Type.MARGIN:
|
|
144
147
|
return Type.MARGIN;
|
|
145
148
|
|
|
146
149
|
case Type.CUSTOM:
|
|
147
|
-
return
|
|
150
|
+
return "".concat(Type.CUSTOM, "_").concat(item.key);
|
|
148
151
|
|
|
149
152
|
case Type.ITEM:
|
|
150
153
|
case Type.LINK:
|
|
151
154
|
default:
|
|
152
155
|
if (item.details) {
|
|
153
|
-
return
|
|
156
|
+
return "".concat(Type.ITEM, "_").concat(item.details);
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
return Type.ITEM;
|
|
@@ -295,7 +298,7 @@ class List extends Component {
|
|
|
295
298
|
});
|
|
296
299
|
});
|
|
297
300
|
|
|
298
|
-
_defineProperty(this, "scrollEndHandler", () => scheduleScrollListener(() => {
|
|
301
|
+
_defineProperty(this, "scrollEndHandler", () => this.scheduleScrollListener(() => {
|
|
299
302
|
const innerContainer = this.inner;
|
|
300
303
|
|
|
301
304
|
if (innerContainer) {
|
|
@@ -339,7 +342,7 @@ class List extends Component {
|
|
|
339
342
|
const itemId = this.getId(item); // top and bottom margins
|
|
340
343
|
|
|
341
344
|
if (index === 0 || index === this.props.data.length + 1 || item.rgItemType === Type.MARGIN) {
|
|
342
|
-
itemKey = key ||
|
|
345
|
+
itemKey = key || "".concat(Type.MARGIN, "_").concat(index);
|
|
343
346
|
el = /*#__PURE__*/React.createElement("div", {
|
|
344
347
|
style: {
|
|
345
348
|
height: Dimension.MARGIN
|
|
@@ -419,7 +422,7 @@ class List extends Component {
|
|
|
419
422
|
break;
|
|
420
423
|
|
|
421
424
|
default:
|
|
422
|
-
throw new Error(
|
|
425
|
+
throw new Error("Unknown menu element type: ".concat(itemProps.rgItemType));
|
|
423
426
|
}
|
|
424
427
|
|
|
425
428
|
el = /*#__PURE__*/React.createElement(ItemComponent, itemProps);
|
|
@@ -525,24 +528,28 @@ class List extends Component {
|
|
|
525
528
|
}
|
|
526
529
|
}
|
|
527
530
|
|
|
528
|
-
|
|
531
|
+
return nextState;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
componentDidMount() {
|
|
535
|
+
document.addEventListener('mousemove', this.onDocumentMouseMove);
|
|
536
|
+
document.addEventListener('keydown', this.onDocumentKeyDown, true);
|
|
537
|
+
const {
|
|
538
|
+
data,
|
|
539
|
+
activeIndex
|
|
540
|
+
} = this.props;
|
|
541
|
+
|
|
542
|
+
if (activeIndex == null && shouldActivateFirstItem(this.props)) {
|
|
529
543
|
const firstActivatableIndex = data.findIndex(isActivatable);
|
|
530
544
|
|
|
531
545
|
if (firstActivatableIndex >= 0) {
|
|
532
|
-
|
|
546
|
+
this.setState({
|
|
533
547
|
activeIndex: firstActivatableIndex,
|
|
534
548
|
activeItem: data[firstActivatableIndex],
|
|
535
549
|
needScrollToActive: true
|
|
536
550
|
});
|
|
537
551
|
}
|
|
538
552
|
}
|
|
539
|
-
|
|
540
|
-
return nextState;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
componentDidMount() {
|
|
544
|
-
document.addEventListener('mousemove', this.onDocumentMouseMove);
|
|
545
|
-
document.addEventListener('keydown', this.onDocumentKeyDown, true);
|
|
546
553
|
}
|
|
547
554
|
|
|
548
555
|
shouldComponentUpdate(nextProps, nextState) {
|
|
@@ -617,14 +624,14 @@ class List extends Component {
|
|
|
617
624
|
|
|
618
625
|
if (identificator && !isString) {
|
|
619
626
|
warnEmptyKey();
|
|
620
|
-
|
|
627
|
+
"".concat(itemProps.rgItemType, "_").concat(JSON.stringify(identificator));
|
|
621
628
|
}
|
|
622
629
|
|
|
623
|
-
return
|
|
630
|
+
return "".concat(itemProps.rgItemType, "_").concat(identificator);
|
|
624
631
|
}
|
|
625
632
|
|
|
626
633
|
getId(item) {
|
|
627
|
-
return item != null ?
|
|
634
|
+
return item != null ? "".concat(this.id, ":").concat(item.key || this._deprecatedGenerateKeyFromContent(item)) : undefined;
|
|
628
635
|
}
|
|
629
636
|
|
|
630
637
|
get inner() {
|
package/dist/list/list__item.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -9,9 +10,10 @@ import Icon from '../icon/icon.js';
|
|
|
9
10
|
import getUID from '../global/get-uid.js';
|
|
10
11
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
|
11
12
|
import '../global/url.js';
|
|
13
|
+
import 'core-js/modules/es.string.replace.js';
|
|
12
14
|
import '../global/dom.js';
|
|
13
15
|
import '../avatar/fallback-avatar.js';
|
|
14
|
-
import '@jetbrains/icons/checkmark';
|
|
16
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
15
17
|
import '@jetbrains/icons/remove-10px';
|
|
16
18
|
import '../_helpers/checkbox.js';
|
|
17
19
|
import 'util-deprecate';
|
|
@@ -20,7 +22,7 @@ import '../_helpers/icon.js';
|
|
|
20
22
|
import '../icon/icon__svg.js';
|
|
21
23
|
import '../global/memoize.js';
|
|
22
24
|
|
|
23
|
-
var modules_5b0fb3e8 = {"unit":"8px","footer-height":"64px","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","extra-small-screen-media":"(max-width:639px)","small-screen-media":"(min-width:640px) and (max-width:959px)","middle-screen-media":"(min-width:960px) and (max-width:1199px)","large-screen-media":"(min-width:1200px)","clearfix":"
|
|
25
|
+
var modules_5b0fb3e8 = {"unit":"8px","footer-height":"64px","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","middle-screen-media":"(min-width: 960px) and (max-width: 1199px)","large-screen-media":"(min-width: 1200px)","clearfix":"clearfix_rui_8bff","font":"font_rui_8bff","font-lower":"font-lower_rui_8bff font_rui_8bff","font-smaller":"font-smaller_rui_8bff font-lower_rui_8bff font_rui_8bff","font-smaller-lower":"font-smaller-lower_rui_8bff font-smaller_rui_8bff font-lower_rui_8bff font_rui_8bff","font-larger-lower":"font-larger-lower_rui_8bff font-lower_rui_8bff font_rui_8bff","font-larger":"font-larger_rui_8bff font-larger-lower_rui_8bff font-lower_rui_8bff font_rui_8bff","thin-font":"thin-font_rui_8bff","monospace-font":"monospace-font_rui_8bff","ellipsis":"ellipsis_rui_8bff","resetButton":"resetButton_rui_8bff"};
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* @constructor
|
|
@@ -88,7 +90,7 @@ class ListItem extends PureComponent {
|
|
|
88
90
|
[modules_3b67a421.padded]: icon !== undefined || checkbox !== undefined || glyph !== undefined
|
|
89
91
|
});
|
|
90
92
|
const style = {
|
|
91
|
-
paddingLeft:
|
|
93
|
+
paddingLeft: "".concat((Number(level) || 0) * RING_UNIT + DEFAULT_PADDING + (showCheckbox ? CHECKBOX_WIDTH : 0), "px")
|
|
92
94
|
};
|
|
93
95
|
let computedTitle = null;
|
|
94
96
|
|
|
@@ -160,7 +162,7 @@ class ListItem extends PureComponent {
|
|
|
160
162
|
}), icon && /*#__PURE__*/React.createElement("div", {
|
|
161
163
|
className: modules_3b67a421.icon,
|
|
162
164
|
style: {
|
|
163
|
-
backgroundImage:
|
|
165
|
+
backgroundImage: "url(\"".concat(icon, "\")")
|
|
164
166
|
}
|
|
165
167
|
}), rightNodes)), details && /*#__PURE__*/React.createElement("div", {
|
|
166
168
|
className: detailsClasses
|
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
|
|
|
@@ -31,6 +32,7 @@ class ListLink extends PureComponent {
|
|
|
31
32
|
LinkComponent,
|
|
32
33
|
compact,
|
|
33
34
|
hoverClassName,
|
|
35
|
+
children,
|
|
34
36
|
...restProps
|
|
35
37
|
} = this.props;
|
|
36
38
|
const classes = classNames(modules_3b67a421.item, className, {
|
|
@@ -45,7 +47,7 @@ class ListLink extends PureComponent {
|
|
|
45
47
|
hover: hover && !disabled,
|
|
46
48
|
className: classes,
|
|
47
49
|
"data-test": joinDataTestAttributes('ring-list-link', dataTest)
|
|
48
|
-
}), label);
|
|
50
|
+
}), label !== null && label !== void 0 ? label : children);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
}
|
|
@@ -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,9 +33,10 @@ 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
|
-
import '@jetbrains/icons/checkmark';
|
|
39
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
38
40
|
import '@jetbrains/icons/remove-10px';
|
|
39
41
|
import '../icon/icon.js';
|
|
40
42
|
import '../icon/icon__constants.js';
|
|
@@ -56,7 +58,7 @@ const defaultOptions = {
|
|
|
56
58
|
getPluralForUserCount: count => {
|
|
57
59
|
// eslint-disable-next-line @typescript-eslint/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
|
var 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_47a4","animate":"animate_rui_47a4","rotation-keyframes":"rotation-keyframes_rui_47a4","text":"text_rui_47a4"};
|
|
5
6
|
|
|
6
7
|
const INITIAL_TICKS = 100;
|
|
7
8
|
|
|
@@ -44,7 +45,7 @@ class Particle {
|
|
|
44
45
|
|
|
45
46
|
draw(ctx) {
|
|
46
47
|
const alpha = this.life >= 0 ? this.life : 0;
|
|
47
|
-
ctx.fillStyle =
|
|
48
|
+
ctx.fillStyle = "rgba(".concat(this.color.r, ", ").concat(this.color.g, ", ").concat(this.color.b, ", ").concat(alpha, ")");
|
|
48
49
|
ctx.beginPath();
|
|
49
50
|
ctx.arc(this.x + this.radius, this.y + this.radius, this.radius, 0, Math.PI * 2);
|
|
50
51
|
ctx.fill();
|
|
@@ -127,8 +128,8 @@ class LoaderCore {
|
|
|
127
128
|
this.canvas.width = canvasSize;
|
|
128
129
|
this.canvas.height = canvasSize; //Fixate canvas physical size to avoid real size scaling
|
|
129
130
|
|
|
130
|
-
this.canvas.style.width =
|
|
131
|
-
this.canvas.style.height =
|
|
131
|
+
this.canvas.style.width = "".concat(this.props.size, "px");
|
|
132
|
+
this.canvas.style.height = "".concat(this.props.size, "px");
|
|
132
133
|
this.ctx = this.canvas.getContext('2d');
|
|
133
134
|
(_this$ctx = this.ctx) === null || _this$ctx === void 0 ? void 0 : _this$ctx.scale(pixelRatio, pixelRatio);
|
|
134
135
|
this.height = this.props.size;
|
|
@@ -4,6 +4,7 @@ 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';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @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=\"".concat(modules_e49a3529.loader, "\"></div>")
|
|
11
11
|
});
|
|
12
12
|
var loaderInlineNg = angularModule.name;
|
|
13
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 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 '../link/clickableLink.js';
|
|
31
33
|
import '../global/controls-height.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_ea70","dialogContent":"dialogContent_rui_ea70","nonOpaqueLoader":"nonOpaqueLoader_rui_ea70","fallbackLinkContainer":"fallbackLinkContainer_rui_ea70"};
|
|
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';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { unmountComponentAtNode, render } from 'react-
|
|
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
|
+
import 'react-dom';
|
|
4
6
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
7
|
import 'prop-types';
|
|
6
8
|
import '../dialog/dialog.js';
|
|
@@ -31,6 +33,7 @@ import 'util-deprecate';
|
|
|
31
33
|
import '../icon/icon__constants.js';
|
|
32
34
|
import '../_helpers/icon.js';
|
|
33
35
|
import '../icon/icon__svg.js';
|
|
36
|
+
import 'core-js/modules/es.string.replace.js';
|
|
34
37
|
import '../global/memoize.js';
|
|
35
38
|
import '../link/clickableLink.js';
|
|
36
39
|
import '../global/controls-height.js';
|
package/dist/markdown/code.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Code from '../code/code.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
import 'classnames';
|
|
6
7
|
import 'highlight.js/lib/core';
|
|
7
8
|
import '../global/normalize-indent.js';
|
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 { 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_e3b3","markdown":"markdown_rui_e3b3 font_rui_8bff"};
|
|
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';
|
|
@@ -8,6 +9,7 @@ import { Directions } from '../popup/popup.consts.js';
|
|
|
8
9
|
import Icon from '../icon/icon.js';
|
|
9
10
|
import { Button } from '../button/button.js';
|
|
10
11
|
import { T as Theme, m as modules_59717246, a as ThemeProvider } from '../_helpers/theme.js';
|
|
12
|
+
import 'core-js/modules/es.string.replace.js';
|
|
11
13
|
import 'react-dom';
|
|
12
14
|
import '../global/get-uid.js';
|
|
13
15
|
import '../global/schedule-raf.js';
|
|
@@ -32,71 +34,75 @@ import '../link/clickableLink.js';
|
|
|
32
34
|
import '../global/controls-height.js';
|
|
33
35
|
import '../_helpers/button__classes.js';
|
|
34
36
|
|
|
35
|
-
var modules_8b837449 = {"unit":"8px","padding":"12px","container":"
|
|
37
|
+
var modules_8b837449 = {"unit":"8px","padding":"12px","container":"container_rui_f3db","message":"message_rui_f3db","icon":"icon_rui_f3db","title":"title_rui_f3db font-lower_rui_8bff font_rui_8bff","description":"description_rui_f3db","button":"button_rui_f3db","tail":"tail_rui_f3db"};
|
|
36
38
|
|
|
37
39
|
/**
|
|
38
40
|
* @name Message
|
|
39
41
|
*/
|
|
40
42
|
|
|
41
43
|
const UNIT = 8;
|
|
44
|
+
const TAIL_SIZE = 11;
|
|
42
45
|
|
|
43
46
|
const getTailOffsets = offset => ({
|
|
44
47
|
[Directions.BOTTOM_RIGHT]: {
|
|
45
48
|
top: 0,
|
|
46
|
-
left: offset
|
|
47
|
-
transform: 'rotate(
|
|
49
|
+
left: offset + UNIT,
|
|
50
|
+
transform: 'rotate(135deg)'
|
|
48
51
|
},
|
|
49
52
|
[Directions.BOTTOM_LEFT]: {
|
|
50
53
|
top: 0,
|
|
51
|
-
right: offset - UNIT,
|
|
52
|
-
transform: 'rotate(
|
|
54
|
+
right: offset - UNIT - TAIL_SIZE,
|
|
55
|
+
transform: 'rotate(135deg)'
|
|
53
56
|
},
|
|
54
57
|
[Directions.BOTTOM_CENTER]: {
|
|
55
58
|
top: 0,
|
|
56
|
-
left: offset
|
|
57
|
-
transform: 'rotate(
|
|
59
|
+
left: offset + UNIT,
|
|
60
|
+
transform: 'rotate(135deg)'
|
|
58
61
|
},
|
|
59
62
|
[Directions.TOP_RIGHT]: {
|
|
60
|
-
bottom: -
|
|
61
|
-
left: offset - UNIT
|
|
63
|
+
bottom: -TAIL_SIZE,
|
|
64
|
+
left: offset - UNIT,
|
|
65
|
+
transform: 'rotate(-45deg)'
|
|
62
66
|
},
|
|
63
67
|
[Directions.TOP_LEFT]: {
|
|
64
|
-
bottom: -
|
|
65
|
-
right: offset -
|
|
68
|
+
bottom: -TAIL_SIZE,
|
|
69
|
+
right: offset + UNIT - TAIL_SIZE,
|
|
70
|
+
transform: 'rotate(-45deg)'
|
|
66
71
|
},
|
|
67
72
|
[Directions.TOP_CENTER]: {
|
|
68
|
-
bottom: -
|
|
69
|
-
left: offset - UNIT
|
|
73
|
+
bottom: -TAIL_SIZE,
|
|
74
|
+
left: offset - UNIT,
|
|
75
|
+
transform: 'rotate(-45deg)'
|
|
70
76
|
},
|
|
71
77
|
[Directions.RIGHT_TOP]: {
|
|
72
|
-
bottom: offset -
|
|
73
|
-
left:
|
|
74
|
-
transform: 'rotate(
|
|
78
|
+
bottom: offset + UNIT - TAIL_SIZE,
|
|
79
|
+
left: 0,
|
|
80
|
+
transform: 'rotate(45deg)'
|
|
75
81
|
},
|
|
76
82
|
[Directions.RIGHT_BOTTOM]: {
|
|
77
|
-
top: offset,
|
|
78
|
-
left:
|
|
79
|
-
transform: 'rotate(
|
|
83
|
+
top: offset - UNIT,
|
|
84
|
+
left: 0,
|
|
85
|
+
transform: 'rotate(45deg)'
|
|
80
86
|
},
|
|
81
87
|
[Directions.RIGHT_CENTER]: {
|
|
82
|
-
top: offset,
|
|
83
|
-
left:
|
|
84
|
-
transform: 'rotate(
|
|
88
|
+
top: offset - UNIT,
|
|
89
|
+
left: 0,
|
|
90
|
+
transform: 'rotate(45deg)'
|
|
85
91
|
},
|
|
86
92
|
[Directions.LEFT_TOP]: {
|
|
87
|
-
bottom: offset - UNIT,
|
|
88
|
-
right: -
|
|
89
|
-
transform: 'rotate(-
|
|
93
|
+
bottom: offset - UNIT - TAIL_SIZE,
|
|
94
|
+
right: -TAIL_SIZE,
|
|
95
|
+
transform: 'rotate(-135deg)'
|
|
90
96
|
},
|
|
91
97
|
[Directions.LEFT_BOTTOM]: {
|
|
92
|
-
top: offset,
|
|
93
|
-
right: -
|
|
94
|
-
transform: 'rotate(-
|
|
98
|
+
top: offset + UNIT,
|
|
99
|
+
right: -TAIL_SIZE,
|
|
100
|
+
transform: 'rotate(-135deg)'
|
|
95
101
|
},
|
|
96
102
|
[Directions.LEFT_CENTER]: {
|
|
97
|
-
top: offset,
|
|
98
|
-
right: -
|
|
99
|
-
transform: 'rotate(-
|
|
103
|
+
top: offset + UNIT,
|
|
104
|
+
right: -TAIL_SIZE,
|
|
105
|
+
transform: 'rotate(-135deg)'
|
|
100
106
|
}
|
|
101
107
|
});
|
|
102
108
|
/**
|
|
@@ -192,7 +198,7 @@ class Message extends Component {
|
|
|
192
198
|
}), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
193
199
|
className: modules_8b837449.icon,
|
|
194
200
|
glyph: icon
|
|
195
|
-
}), /*#__PURE__*/React.createElement("h1", {
|
|
201
|
+
}), title && /*#__PURE__*/React.createElement("h1", {
|
|
196
202
|
"data-test": "rgMessageTitle",
|
|
197
203
|
className: modules_8b837449.title
|
|
198
204
|
}, title), children && /*#__PURE__*/React.createElement("div", {
|
|
@@ -227,7 +233,7 @@ Message.propTypes = {
|
|
|
227
233
|
children: PropTypes.node,
|
|
228
234
|
className: PropTypes.string,
|
|
229
235
|
tailClassName: PropTypes.string,
|
|
230
|
-
title: PropTypes.string
|
|
236
|
+
title: PropTypes.string,
|
|
231
237
|
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
|
232
238
|
directions: PropTypes.arrayOf(PropTypes.string),
|
|
233
239
|
direction: PropTypes.string,
|
|
@@ -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();
|