@jetbrains/ring-ui 5.0.0-beta.7 → 5.0.1
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 +13 -0
- package/components/alert/alert.css +2 -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 +4 -4
- 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.js +11 -4
- package/components/global/variables.css +0 -1
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +1 -2
- package/components/header/header.css +2 -2
- package/components/header/profile.d.ts +3 -3
- package/components/input/input.css +9 -2
- 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.css +0 -2
- 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-popup.css +5 -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 +12 -7
- 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.js +15 -0
- 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/pager/pager.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -20,11 +21,12 @@ import '../icon/icon__constants.js';
|
|
|
20
21
|
import 'util-deprecate';
|
|
21
22
|
import '../_helpers/icon.js';
|
|
22
23
|
import '../icon/icon__svg.js';
|
|
24
|
+
import 'core-js/modules/es.string.replace.js';
|
|
23
25
|
import '../button-group/caption.js';
|
|
24
26
|
import '../_helpers/button-group.js';
|
|
25
27
|
import '../_helpers/button-toolbar.js';
|
|
26
28
|
import '@jetbrains/icons/chevron-down';
|
|
27
|
-
import '@jetbrains/icons/close';
|
|
29
|
+
import '@jetbrains/icons/close-12px';
|
|
28
30
|
import 'deep-equal';
|
|
29
31
|
import '../dropdown/dropdown.js';
|
|
30
32
|
import '../global/data-tests.js';
|
|
@@ -59,7 +61,7 @@ import '../_helpers/list.js';
|
|
|
59
61
|
import '../_helpers/link.js';
|
|
60
62
|
import '../list/list__item.js';
|
|
61
63
|
import '../checkbox/checkbox.js';
|
|
62
|
-
import '@jetbrains/icons/checkmark';
|
|
64
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
63
65
|
import '@jetbrains/icons/remove-10px';
|
|
64
66
|
import '../_helpers/checkbox.js';
|
|
65
67
|
import '../list/list__custom.js';
|
|
@@ -73,6 +75,7 @@ import '../global/prop-types.js';
|
|
|
73
75
|
import '../global/composeRefs.js';
|
|
74
76
|
import '../_helpers/input.js';
|
|
75
77
|
import '../global/rerender-hoc.js';
|
|
78
|
+
import '../global/react-render-adapter.js';
|
|
76
79
|
import '../global/fuzzy-highlight.js';
|
|
77
80
|
import '../select/select__popup.js';
|
|
78
81
|
import '@jetbrains/icons/search';
|
|
@@ -85,7 +88,7 @@ import '../caret/caret.js';
|
|
|
85
88
|
import '../text/text.js';
|
|
86
89
|
import '../_helpers/select__filter.js';
|
|
87
90
|
|
|
88
|
-
var modules_1a5f0d42 = {"unit":"8px","pager":"
|
|
91
|
+
var modules_1a5f0d42 = {"unit":"8px","pager":"pager_rui_2db7","links":"links_rui_2db7","link":"link_rui_2db7","linkDisabled":"linkDisabled_rui_2db7"};
|
|
89
92
|
|
|
90
93
|
class Pager extends PureComponent {
|
|
91
94
|
constructor() {
|
|
@@ -145,7 +148,7 @@ class Pager extends PureComponent {
|
|
|
145
148
|
} = this.props;
|
|
146
149
|
const data = pageSizes.map(size => ({
|
|
147
150
|
key: size,
|
|
148
|
-
label:
|
|
151
|
+
label: "".concat(size, " ").concat(this.props.translations.perPage)
|
|
149
152
|
}));
|
|
150
153
|
const selected = data.find(it => it.key === pageSize);
|
|
151
154
|
return {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import Pager$1 from '../pager/pager.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import '../global/ring-angular-component.js';
|
|
8
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -18,6 +20,7 @@ import 'util-deprecate';
|
|
|
18
20
|
import '../icon/icon__constants.js';
|
|
19
21
|
import '../_helpers/icon.js';
|
|
20
22
|
import '../icon/icon__svg.js';
|
|
23
|
+
import 'core-js/modules/es.string.replace.js';
|
|
21
24
|
import '../global/memoize.js';
|
|
22
25
|
import '../link/clickableLink.js';
|
|
23
26
|
import '../global/controls-height.js';
|
|
@@ -29,7 +32,7 @@ import '../button-toolbar/button-toolbar.js';
|
|
|
29
32
|
import '../_helpers/button-toolbar.js';
|
|
30
33
|
import '../select/select.js';
|
|
31
34
|
import '@jetbrains/icons/chevron-down';
|
|
32
|
-
import '@jetbrains/icons/close';
|
|
35
|
+
import '@jetbrains/icons/close-12px';
|
|
33
36
|
import 'deep-equal';
|
|
34
37
|
import '../dropdown/dropdown.js';
|
|
35
38
|
import '../global/data-tests.js';
|
|
@@ -64,7 +67,7 @@ import '../_helpers/link.js';
|
|
|
64
67
|
import '../_helpers/list.js';
|
|
65
68
|
import '../list/list__item.js';
|
|
66
69
|
import '../checkbox/checkbox.js';
|
|
67
|
-
import '@jetbrains/icons/checkmark';
|
|
70
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
68
71
|
import '@jetbrains/icons/remove-10px';
|
|
69
72
|
import '../_helpers/checkbox.js';
|
|
70
73
|
import '../list/list__custom.js';
|
|
@@ -2,6 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import { m as modules_cf670408 } from '../_helpers/panel.js';
|
|
3
3
|
import { addClasses } from '../global/dom.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
|
|
6
7
|
const angularModule = angular.module('Ring.panel', []);
|
|
7
8
|
angularModule.directive('rgPanel', function rgEqualValueDirective() {
|
|
@@ -2,6 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import '../auth-ng/auth-ng.js';
|
|
3
3
|
import Permissions from '../permissions/permissions.js';
|
|
4
4
|
import PermissionCache from '../permissions/permissions__cache.js';
|
|
5
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
6
|
import '../auth/auth.js';
|
|
6
7
|
import '../auth/window-flow.js';
|
|
7
8
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -12,6 +13,8 @@ import '../auth/down-notification.js';
|
|
|
12
13
|
import 'react';
|
|
13
14
|
import 'prop-types';
|
|
14
15
|
import '../alert-service/alert-service.js';
|
|
16
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
17
|
+
import '../global/react-render-adapter.js';
|
|
15
18
|
import 'react-dom';
|
|
16
19
|
import '../global/get-uid.js';
|
|
17
20
|
import '../alert/alert.js';
|
|
@@ -38,6 +41,16 @@ import '../global/controls-height.js';
|
|
|
38
41
|
import '../_helpers/button__classes.js';
|
|
39
42
|
import '../_helpers/theme.js';
|
|
40
43
|
import '../popup/popup.target.js';
|
|
44
|
+
import '../popup/popup.js';
|
|
45
|
+
import '../global/schedule-raf.js';
|
|
46
|
+
import '../shortcuts/shortcuts.js';
|
|
47
|
+
import '../shortcuts/core.js';
|
|
48
|
+
import 'combokeys';
|
|
49
|
+
import '../global/sniffer.js';
|
|
50
|
+
import 'sniffr';
|
|
51
|
+
import '../tab-trap/tab-trap.js';
|
|
52
|
+
import '../popup/position.js';
|
|
53
|
+
import '../popup/popup.consts.js';
|
|
41
54
|
import '../alert/container.js';
|
|
42
55
|
import '../link/link.js';
|
|
43
56
|
import '../_helpers/link.js';
|
|
@@ -201,7 +214,7 @@ angularModule.directive('rgPermissionIf', ["$animate", "userPermissions", "$inte
|
|
|
201
214
|
$transclude(childScope, clone => {
|
|
202
215
|
block = {
|
|
203
216
|
startNode: clone[0],
|
|
204
|
-
endNode: clone[clone.length++] = document.createComment(
|
|
217
|
+
endNode: clone[clone.length++] = document.createComment(" end rgPermissionIf: ".concat(iAttrs.rgPermissionIf, " "))
|
|
205
218
|
};
|
|
206
219
|
$animate.enter(clone, iElement.parent(), iElement);
|
|
207
220
|
});
|
|
@@ -3,6 +3,7 @@ import debounce from 'just-debounce-it';
|
|
|
3
3
|
import createResizeDetector from 'element-resize-detector';
|
|
4
4
|
import { getDocumentScrollTop } from '../global/dom.js';
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
7
|
|
|
7
8
|
const resizeDetector = createResizeDetector();
|
|
8
9
|
const angularModule = angular.module('Ring.place-under', []);
|
|
@@ -82,7 +83,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
82
83
|
const syncedElementOffsetTop = syncElement.getBoundingClientRect().top + documentScrollTop;
|
|
83
84
|
const bottom = syncedElementOffsetTop + syncedElementHeight;
|
|
84
85
|
const margin = Math.max(bottom - documentScrollTop, syncedElementHeight);
|
|
85
|
-
element.style.marginTop =
|
|
86
|
+
element.style.marginTop = "".concat(margin + topOffset, "px");
|
|
86
87
|
|
|
87
88
|
if (syncHeight) {
|
|
88
89
|
/**
|
|
@@ -115,7 +116,7 @@ angularModule.factory('rgPlaceUnderHelper', ["$window", $window => {
|
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
element.style.height =
|
|
119
|
+
element.style.height = "calc(100% - ".concat(parseInt(element.style.marginTop, 10) + bottomOffset, "px)");
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
package/dist/popup/popup.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface BasePopupProps {
|
|
|
18
18
|
keepMounted: boolean;
|
|
19
19
|
directions: readonly Directions[];
|
|
20
20
|
autoPositioning: boolean;
|
|
21
|
+
autoPositioningOnScroll: boolean;
|
|
21
22
|
autoCorrectTopOverflow: boolean;
|
|
22
23
|
left: number;
|
|
23
24
|
top: number;
|
|
@@ -27,6 +28,8 @@ export interface BasePopupProps {
|
|
|
27
28
|
autoFocusFirst: boolean;
|
|
28
29
|
offset: number;
|
|
29
30
|
legacy: boolean;
|
|
31
|
+
withTail?: boolean;
|
|
32
|
+
tailOffset?: number;
|
|
30
33
|
anchorElement?: HTMLElement | null | undefined;
|
|
31
34
|
target?: string | Element | null | undefined;
|
|
32
35
|
className?: string | null | undefined;
|
|
@@ -42,6 +45,7 @@ export interface BasePopupProps {
|
|
|
42
45
|
onContextMenu?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
43
46
|
onDirectionChange?: ((direction: Directions) => void) | null | undefined;
|
|
44
47
|
onShow?: (() => void) | null | undefined;
|
|
48
|
+
children?: ReactNode;
|
|
45
49
|
}
|
|
46
50
|
export interface PopupProps extends BasePopupProps {
|
|
47
51
|
children: ReactNode;
|
|
@@ -67,6 +71,7 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
67
71
|
keepMounted: boolean;
|
|
68
72
|
directions: Directions[];
|
|
69
73
|
autoPositioning: boolean;
|
|
74
|
+
autoPositioningOnScroll: boolean;
|
|
70
75
|
autoCorrectTopOverflow: boolean;
|
|
71
76
|
left: number;
|
|
72
77
|
top: number;
|
|
@@ -131,7 +136,7 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
131
136
|
* @private
|
|
132
137
|
*/
|
|
133
138
|
private _onDocumentClick;
|
|
134
|
-
getInternalContent():
|
|
139
|
+
getInternalContent(): JSX.Element | P["children"] | undefined;
|
|
135
140
|
shortcutsScope: string;
|
|
136
141
|
shortcutsMap: {
|
|
137
142
|
esc: (evt: KeyboardEvent) => void;
|
|
@@ -139,3 +144,4 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
139
144
|
render(): JSX.Element;
|
|
140
145
|
}
|
|
141
146
|
export declare type PopupAttrs = JSX.LibraryManagedAttributes<typeof Popup, PopupProps>;
|
|
147
|
+
export declare type BasePopupAttrs = JSX.LibraryManagedAttributes<typeof Popup, BasePopupProps>;
|
package/dist/popup/popup.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { createPortal } from 'react-dom';
|
|
4
6
|
import PropTypes from 'prop-types';
|
|
@@ -18,11 +20,11 @@ import 'combokeys';
|
|
|
18
20
|
import '../global/sniffer.js';
|
|
19
21
|
import 'sniffr';
|
|
20
22
|
|
|
21
|
-
var modules_2f69e2e2 = {"popup":"
|
|
23
|
+
var modules_2f69e2e2 = {"popup":"popup_rui_7cd4 font_rui_8bff","hidden":"hidden_rui_7cd4","showing":"showing_rui_7cd4","attached":"attached_rui_7cd4"};
|
|
22
24
|
|
|
23
25
|
const stop = e => e.stopPropagation();
|
|
24
26
|
|
|
25
|
-
const getPopupContainer = target => typeof target === 'string' ? document.querySelector(
|
|
27
|
+
const getPopupContainer = target => typeof target === 'string' ? document.querySelector("[data-portaltarget=".concat(target, "]")) : target;
|
|
26
28
|
/**
|
|
27
29
|
* @constructor
|
|
28
30
|
* @name Popup
|
|
@@ -104,7 +106,7 @@ class Popup extends PureComponent {
|
|
|
104
106
|
const propKey = key;
|
|
105
107
|
|
|
106
108
|
if (typeof value === 'number') {
|
|
107
|
-
popup.style[propKey] =
|
|
109
|
+
popup.style[propKey] = "".concat(value, "px");
|
|
108
110
|
} else {
|
|
109
111
|
popup.style[propKey] = value.toString();
|
|
110
112
|
}
|
|
@@ -154,7 +156,6 @@ class Popup extends PureComponent {
|
|
|
154
156
|
|
|
155
157
|
componentDidMount() {
|
|
156
158
|
if (!this.props.client) {
|
|
157
|
-
// eslint-disable-next-line react/no-did-mount-set-state
|
|
158
159
|
this.setState({
|
|
159
160
|
client: true
|
|
160
161
|
});
|
|
@@ -185,8 +186,6 @@ class Popup extends PureComponent {
|
|
|
185
186
|
|
|
186
187
|
componentWillUnmount() {
|
|
187
188
|
this._setListenersEnabled(false);
|
|
188
|
-
|
|
189
|
-
this.popup = null;
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
shouldUseShortcuts() {
|
|
@@ -244,7 +243,11 @@ class Popup extends PureComponent {
|
|
|
244
243
|
setTimeout(() => {
|
|
245
244
|
this._listenersEnabled = true;
|
|
246
245
|
this.listeners.add(window, 'resize', this._redraw);
|
|
247
|
-
|
|
246
|
+
|
|
247
|
+
if (this.props.autoPositioningOnScroll) {
|
|
248
|
+
this.listeners.add(window, 'scroll', this._redraw);
|
|
249
|
+
}
|
|
250
|
+
|
|
248
251
|
this.listeners.add(document, 'pointerdown', this._onDocumentClick, true);
|
|
249
252
|
|
|
250
253
|
let el = this._getAnchor();
|
|
@@ -360,6 +363,7 @@ _defineProperty(Popup, "defaultProps", {
|
|
|
360
363
|
keepMounted: false,
|
|
361
364
|
directions: DEFAULT_DIRECTIONS,
|
|
362
365
|
autoPositioning: true,
|
|
366
|
+
autoPositioningOnScroll: true,
|
|
363
367
|
autoCorrectTopOverflow: true,
|
|
364
368
|
left: 0,
|
|
365
369
|
top: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export declare const PopupTargetContext: React.Context<string | undefined>;
|
|
2
|
+
export declare const PopupTargetContext: React.Context<string | Element | undefined>;
|
|
3
3
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
4
|
id: string;
|
|
5
5
|
children: ReactNode | ((target: ReactNode) => ReactNode);
|
package/dist/popup/position.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface PositionStyles extends Position {
|
|
|
9
9
|
minWidth?: number;
|
|
10
10
|
}
|
|
11
11
|
export interface PositionAttrs {
|
|
12
|
-
popup:
|
|
12
|
+
popup: HTMLElement | null | undefined;
|
|
13
13
|
anchor: Element | null | undefined;
|
|
14
14
|
container: Element | null;
|
|
15
15
|
directions: readonly Directions[];
|
package/dist/popup/position.js
CHANGED
|
@@ -2,6 +2,7 @@ import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft, getWin
|
|
|
2
2
|
import { Directions, MaxHeight, Dimension, MinWidth } from './popup.consts.js';
|
|
3
3
|
export { Dimension, Directions, MaxHeight, MinWidth } from './popup.consts.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
|
|
6
7
|
function getScrollingCoordinates(container) {
|
|
7
8
|
if (container !== null) {
|
|
@@ -18,8 +19,8 @@ function getScrollingCoordinates(container) {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
function getPositionStyles(popup, anchorRect, anchorLeft, anchorTop, offset) {
|
|
21
|
-
const popupWidth = popup.
|
|
22
|
-
const popupHeight = popup.
|
|
22
|
+
const popupWidth = popup.offsetWidth;
|
|
23
|
+
const popupHeight = popup.offsetHeight;
|
|
23
24
|
const anchorBottom = anchorTop + anchorRect.height;
|
|
24
25
|
const anchorRight = anchorLeft + anchorRect.width;
|
|
25
26
|
const popupLeft = anchorLeft - popupWidth;
|
|
@@ -26,6 +26,7 @@ export default class PopupMenu<T = unknown> extends Popup<PopupMenuProps<T>> {
|
|
|
26
26
|
keepMounted: boolean;
|
|
27
27
|
directions: import("../popup/popup.consts").Directions[];
|
|
28
28
|
autoPositioning: boolean;
|
|
29
|
+
autoPositioningOnScroll: boolean;
|
|
29
30
|
autoCorrectTopOverflow: boolean;
|
|
30
31
|
left: number;
|
|
31
32
|
top: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import Popup from '../popup/popup.js';
|
|
5
6
|
import List from '../list/list.js';
|
|
7
|
+
import 'core-js/modules/es.string.replace.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import 'classnames';
|
|
8
10
|
import '../global/get-uid.js';
|
|
@@ -37,7 +39,7 @@ import '../avatar/avatar.js';
|
|
|
37
39
|
import '../global/url.js';
|
|
38
40
|
import '../avatar/fallback-avatar.js';
|
|
39
41
|
import '../checkbox/checkbox.js';
|
|
40
|
-
import '@jetbrains/icons/checkmark';
|
|
42
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
41
43
|
import '@jetbrains/icons/remove-10px';
|
|
42
44
|
import '../icon/icon.js';
|
|
43
45
|
import '../icon/icon__constants.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
|
|
6
|
-
var modules_fb7af416 = {"dark":"
|
|
7
|
+
var modules_fb7af416 = {"dark":"dark_rui_eb55","unit":"8px","progressBar":"progressBar_rui_5875","globalMode":"globalMode_rui_5875","line":"line_rui_5875","progress-bar":"progress-bar_rui_5875"};
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @name Progress Bar
|
|
@@ -47,7 +48,7 @@ class ProgressBar extends PureComponent {
|
|
|
47
48
|
label,
|
|
48
49
|
...otherProps
|
|
49
50
|
} = this.props;
|
|
50
|
-
const width = value ?
|
|
51
|
+
const width = value ? "".concat(ProgressBar.toPercent(value, max), "%") : undefined;
|
|
51
52
|
const classes = classNames(modules_fb7af416.progressBar, className, {
|
|
52
53
|
[modules_fb7af416.globalMode]: global
|
|
53
54
|
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import ProgressBar from '../progress-bar/progress-bar.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import '../global/ring-angular-component.js';
|
|
8
10
|
import '../global/react-dom-renderer.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 angular from 'angular';
|
|
3
4
|
import { m as modules_e81895c9 } from '../_helpers/button__classes.js';
|
|
4
5
|
import { applyMethodToClasses } from '../global/dom.js';
|
|
@@ -6,6 +7,7 @@ import RingAngularComponent from '../global/ring-angular-component.js';
|
|
|
6
7
|
import { LOADER_BACKGROUND_SELECTOR } from '../button-ng/button-ng.js';
|
|
7
8
|
import 'classnames';
|
|
8
9
|
import '../icon-ng/icon-ng.js';
|
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
|
9
11
|
import '../icon/icon__constants.js';
|
|
10
12
|
import '../template-ng/template-ng.js';
|
|
11
13
|
import '../_helpers/icon.js';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
|
+
|
|
1
3
|
function proxyAttrs(template, attrsWhitelist) {
|
|
2
4
|
return function copyAttrs(iElement, iAttrs) {
|
|
3
5
|
const PREFIX = 'data-proxy-';
|
|
@@ -7,9 +9,9 @@ function proxyAttrs(template, attrsWhitelist) {
|
|
|
7
9
|
if (iAttrs[attrName] !== undefined) {
|
|
8
10
|
const attrLower = iAttrs.$attr[attrName];
|
|
9
11
|
const attrValue = iAttrs[attrName];
|
|
10
|
-
const attrFind =
|
|
11
|
-
const attrReplace =
|
|
12
|
-
resultTemplate = resultTemplate.replace(RegExp(
|
|
12
|
+
const attrFind = "".concat(PREFIX).concat(attrLower).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
13
|
+
const attrReplace = "".concat(attrLower, "=\"").concat(attrValue, "\"");
|
|
14
|
+
resultTemplate = resultTemplate.replace(RegExp("".concat(attrFind, "(=\"\")*"), 'g'), attrReplace);
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
17
|
return resultTemplate;
|
|
@@ -58,7 +58,7 @@ export interface QueryAssistProps {
|
|
|
58
58
|
actions?: ReactNode[] | null | undefined;
|
|
59
59
|
'data-test'?: string | null | undefined;
|
|
60
60
|
}
|
|
61
|
-
interface StyleRange {
|
|
61
|
+
export interface StyleRange {
|
|
62
62
|
style: string;
|
|
63
63
|
start: number;
|
|
64
64
|
length: number;
|
|
@@ -294,18 +294,14 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
294
294
|
export declare type QueryAssistAttrs = JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;
|
|
295
295
|
export declare const RerenderableQueryAssist: {
|
|
296
296
|
new (props: QueryAssistProps): {
|
|
297
|
-
_propsCache:
|
|
298
|
-
|
|
299
|
-
}>;
|
|
300
|
-
rerender(props?: Partial<QueryAssistProps>, callback?: (() => void) | undefined): void | Element | React.Component<QueryAssistProps, any, any>;
|
|
297
|
+
_propsCache: QueryAssistProps & React.RefAttributes<unknown>;
|
|
298
|
+
rerender(props?: Partial<QueryAssistProps>, callback?: (() => void) | undefined): void;
|
|
301
299
|
node?: HTMLElement | null | undefined;
|
|
302
|
-
context:
|
|
300
|
+
context: unknown;
|
|
303
301
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<QueryAssistProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
304
302
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
305
303
|
render(): React.ReactNode;
|
|
306
|
-
readonly props: Readonly<QueryAssistProps
|
|
307
|
-
children?: React.ReactNode;
|
|
308
|
-
}>;
|
|
304
|
+
readonly props: Readonly<QueryAssistProps>;
|
|
309
305
|
state: Readonly<{}>;
|
|
310
306
|
refs: {
|
|
311
307
|
[key: string]: React.ReactInstance;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/es.string.replace.js';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
4
|
import React, { Component } from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
4
6
|
import debounce from 'just-debounce-it';
|
|
5
7
|
import classNames from 'classnames';
|
|
6
8
|
import deepEqual from 'deep-equal';
|
|
7
|
-
import searchIcon from '@jetbrains/icons/search';
|
|
8
|
-
import closeIcon from '@jetbrains/icons/close';
|
|
9
|
+
import searchIcon from '@jetbrains/icons/search-12px';
|
|
10
|
+
import closeIcon from '@jetbrains/icons/close-12px';
|
|
9
11
|
import getUID from '../global/get-uid.js';
|
|
10
12
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
11
13
|
import { preventDefault, getRect } from '../global/dom.js';
|
|
@@ -49,7 +51,7 @@ import '../avatar/avatar.js';
|
|
|
49
51
|
import '../global/url.js';
|
|
50
52
|
import '../avatar/fallback-avatar.js';
|
|
51
53
|
import '../checkbox/checkbox.js';
|
|
52
|
-
import '@jetbrains/icons/checkmark';
|
|
54
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
53
55
|
import '@jetbrains/icons/remove-10px';
|
|
54
56
|
import '../icon/icon.js';
|
|
55
57
|
import '../icon/icon__constants.js';
|
|
@@ -63,6 +65,8 @@ import '../list/list__separator.js';
|
|
|
63
65
|
import '../list/list__hint.js';
|
|
64
66
|
import '../list/consts.js';
|
|
65
67
|
import '../_helpers/loader-inline.js';
|
|
68
|
+
import '../global/react-render-adapter.js';
|
|
69
|
+
import '../global/composeRefs.js';
|
|
66
70
|
import '@jetbrains/icons/chevron-10px';
|
|
67
71
|
import '../global/controls-height.js';
|
|
68
72
|
import '../_helpers/button__classes.js';
|
|
@@ -863,7 +867,7 @@ class QueryAssist extends Component {
|
|
|
863
867
|
return;
|
|
864
868
|
}
|
|
865
869
|
|
|
866
|
-
const styleName =
|
|
870
|
+
const styleName = "".concat(LETTER_CLASS, "-").concat(item.style.replace('_', '-'));
|
|
867
871
|
|
|
868
872
|
for (let i = item.start; i < item.start + item.length; i++) {
|
|
869
873
|
classes[i] = modules_da7ab055[styleName];
|
|
@@ -933,7 +937,7 @@ class QueryAssist extends Component {
|
|
|
933
937
|
const renderGlass = glass && !renderLoader;
|
|
934
938
|
const actions = this.renderActions();
|
|
935
939
|
const inputClasses = classNames({
|
|
936
|
-
[
|
|
940
|
+
["".concat(modules_da7ab055.input, " ring-js-shortcuts")]: true,
|
|
937
941
|
[modules_da7ab055.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
|
938
942
|
[modules_da7ab055.inputGap2]: actions.length === 2,
|
|
939
943
|
[modules_da7ab055.inputLeftGap]: this.isRenderingGlassOrLoader() && glass,
|
|
@@ -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,9 +31,10 @@ 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
|
-
import '@jetbrains/icons/checkmark';
|
|
37
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
36
38
|
import '@jetbrains/icons/remove-10px';
|
|
37
39
|
import '../icon/icon.js';
|
|
38
40
|
import '../icon/icon__constants.js';
|
|
@@ -1,17 +1,20 @@
|
|
|
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';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import '../global/ring-angular-component.js';
|
|
8
10
|
import '../global/react-dom-renderer.js';
|
|
9
11
|
import 'prop-types';
|
|
12
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
13
|
import 'just-debounce-it';
|
|
11
14
|
import 'classnames';
|
|
12
15
|
import 'deep-equal';
|
|
13
|
-
import '@jetbrains/icons/search';
|
|
14
|
-
import '@jetbrains/icons/close';
|
|
16
|
+
import '@jetbrains/icons/search-12px';
|
|
17
|
+
import '@jetbrains/icons/close-12px';
|
|
15
18
|
import '../global/get-uid.js';
|
|
16
19
|
import '../global/data-tests.js';
|
|
17
20
|
import '../global/dom.js';
|
|
@@ -50,7 +53,7 @@ import '../avatar/avatar.js';
|
|
|
50
53
|
import '../global/url.js';
|
|
51
54
|
import '../avatar/fallback-avatar.js';
|
|
52
55
|
import '../checkbox/checkbox.js';
|
|
53
|
-
import '@jetbrains/icons/checkmark';
|
|
56
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
54
57
|
import '@jetbrains/icons/remove-10px';
|
|
55
58
|
import '../icon/icon.js';
|
|
56
59
|
import '../icon/icon__constants.js';
|
|
@@ -66,6 +69,7 @@ import '../list/consts.js';
|
|
|
66
69
|
import '../loader-inline/loader-inline.js';
|
|
67
70
|
import '../_helpers/loader-inline.js';
|
|
68
71
|
import '../global/rerender-hoc.js';
|
|
72
|
+
import '../global/composeRefs.js';
|
|
69
73
|
import '../button/button.js';
|
|
70
74
|
import '@jetbrains/icons/chevron-10px';
|
|
71
75
|
import '../global/controls-height.js';
|
package/dist/radio/radio.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export default class Radio extends Component<RadioProps> {
|
|
|
10
10
|
disabled: PropTypes.Requireable<boolean>;
|
|
11
11
|
value: PropTypes.Requireable<string | number | boolean>;
|
|
12
12
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
children: PropTypes.Validator<string | number | boolean |
|
|
13
|
+
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
14
14
|
};
|
|
15
15
|
static Item: React.ForwardRefExoticComponent<import("./radio__item").RadioItemProps & React.RefAttributes<import("./radio__item").Radio>>;
|
|
16
16
|
uid: string;
|
package/dist/radio/radio.js
CHANGED
|
@@ -1,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"]');
|