@jetbrains/ring-ui 5.0.0-beta.9 → 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 +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.js +11 -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 +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/global/theme.js
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
5
|
+
import 'react-dom';
|
|
4
6
|
import '../popup/popup.target.js';
|
|
7
|
+
import '../popup/popup.js';
|
|
5
8
|
export { a as ThemeProvider, T as default, u as useTheme } from '../_helpers/theme.js';
|
|
6
9
|
import './get-uid.js';
|
|
7
10
|
import 'prop-types';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
12
|
+
import './schedule-raf.js';
|
|
13
|
+
import './dom.js';
|
|
14
|
+
import '../shortcuts/shortcuts.js';
|
|
15
|
+
import '../shortcuts/core.js';
|
|
16
|
+
import 'combokeys';
|
|
17
|
+
import './sniffer.js';
|
|
18
|
+
import 'sniffr';
|
|
19
|
+
import './data-tests.js';
|
|
20
|
+
import '../tab-trap/tab-trap.js';
|
|
21
|
+
import '../popup/position.js';
|
|
22
|
+
import '../popup/popup.consts.js';
|
package/dist/global/url.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @description Provides a set of utilities for URL manipulation.
|
|
3
5
|
*/
|
|
@@ -32,7 +34,7 @@ function getBaseURI() {
|
|
|
32
34
|
|
|
33
35
|
function getAbsoluteBaseURL() {
|
|
34
36
|
const baseUrl = getBaseURI();
|
|
35
|
-
const host =
|
|
37
|
+
const host = "".concat(window.location.protocol, "//").concat(window.location.host);
|
|
36
38
|
let uri;
|
|
37
39
|
|
|
38
40
|
if (baseUrl) {
|
|
@@ -41,7 +41,6 @@ export interface RingCSSProperties {
|
|
|
41
41
|
'--ring-sidebar-background-color'?: Property.BackgroundColor;
|
|
42
42
|
'--ring-selected-background-color'?: Property.BackgroundColor;
|
|
43
43
|
'--ring-hover-background-color'?: Property.BackgroundColor;
|
|
44
|
-
'--ring-message-background-color'?: Property.BackgroundColor;
|
|
45
44
|
'--ring-navigation-background-color'?: Property.BackgroundColor;
|
|
46
45
|
'--ring-tag-background-color'?: Property.BackgroundColor;
|
|
47
46
|
'--ring-tag-hover-background-color'?: Property.BackgroundColor;
|
package/dist/grid/col.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 } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -27,7 +28,7 @@ function getClassNames(props) {
|
|
|
27
28
|
return classMap[key];
|
|
28
29
|
}).map(_ref2 => {
|
|
29
30
|
let [key, value] = _ref2;
|
|
30
|
-
return modules_855170c0[Number.isInteger(value) ?
|
|
31
|
+
return modules_855170c0[Number.isInteger(value) ? "".concat(classMap[key], "-").concat(value) : classMap[key]];
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
34
|
|
package/dist/grid/grid.js
CHANGED
|
@@ -5,6 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { m as modules_855170c0 } from '../_helpers/grid.js';
|
|
6
6
|
export { default as Row } from './row.js';
|
|
7
7
|
export { default as Col } from './col.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @name Grid
|
package/dist/grid/row.js
CHANGED
|
@@ -16,7 +16,7 @@ const modifierKeys = ['start', 'center', 'end', 'around', 'between', 'top', 'mid
|
|
|
16
16
|
function getModifierClassNames(props) {
|
|
17
17
|
return modifierKeys.reduce((result, key) => {
|
|
18
18
|
if (props[key]) {
|
|
19
|
-
return result.concat(modules_855170c0[
|
|
19
|
+
return result.concat(modules_855170c0["".concat(key, "-").concat(props[key])]);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
return result;
|
|
@@ -4,7 +4,7 @@ import { m as modules_d9da30c7 } from '../_helpers/group.js';
|
|
|
4
4
|
const angularModule = angular.module('Ring.group', []);
|
|
5
5
|
angularModule.component('rgGroup', {
|
|
6
6
|
transclude: true,
|
|
7
|
-
template:
|
|
7
|
+
template: "<span ng-transclude class=\"".concat(modules_d9da30c7.group, "\"></span>")
|
|
8
8
|
});
|
|
9
9
|
var groupNg = angularModule.name;
|
|
10
10
|
|
package/dist/header/header.js
CHANGED
|
@@ -11,8 +11,23 @@ export { default as Profile } from './profile.js';
|
|
|
11
11
|
export { default as SmartProfile } from './smart-profile.js';
|
|
12
12
|
export { default as Services } from './services.js';
|
|
13
13
|
export { default as SmartServices } from './smart-services.js';
|
|
14
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
15
|
+
import 'react-dom';
|
|
14
16
|
import '../popup/popup.target.js';
|
|
17
|
+
import '../popup/popup.js';
|
|
18
|
+
import 'core-js/modules/es.string.replace.js';
|
|
15
19
|
import '../global/get-uid.js';
|
|
20
|
+
import '../global/schedule-raf.js';
|
|
21
|
+
import '../global/dom.js';
|
|
22
|
+
import '../shortcuts/shortcuts.js';
|
|
23
|
+
import '../shortcuts/core.js';
|
|
24
|
+
import 'combokeys';
|
|
25
|
+
import '../global/sniffer.js';
|
|
26
|
+
import 'sniffr';
|
|
27
|
+
import '../global/data-tests.js';
|
|
28
|
+
import '../tab-trap/tab-trap.js';
|
|
29
|
+
import '../popup/position.js';
|
|
30
|
+
import '../popup/popup.consts.js';
|
|
16
31
|
import '../icon/icon.js';
|
|
17
32
|
import 'util-deprecate';
|
|
18
33
|
import '../icon/icon__constants.js';
|
|
@@ -27,7 +42,6 @@ import '../global/controls-height.js';
|
|
|
27
42
|
import '../_helpers/button__classes.js';
|
|
28
43
|
import '../avatar/avatar.js';
|
|
29
44
|
import '../global/url.js';
|
|
30
|
-
import '../global/dom.js';
|
|
31
45
|
import '../avatar/fallback-avatar.js';
|
|
32
46
|
import '../dropdown-menu/dropdown-menu.js';
|
|
33
47
|
import '../list/list.js';
|
|
@@ -36,13 +50,6 @@ import 'react-virtualized/dist/es/AutoSizer';
|
|
|
36
50
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
37
51
|
import 'react-virtualized/dist/es/CellMeasurer';
|
|
38
52
|
import 'memoize-one';
|
|
39
|
-
import '../global/data-tests.js';
|
|
40
|
-
import '../global/schedule-raf.js';
|
|
41
|
-
import '../shortcuts/shortcuts.js';
|
|
42
|
-
import '../shortcuts/core.js';
|
|
43
|
-
import 'combokeys';
|
|
44
|
-
import '../global/sniffer.js';
|
|
45
|
-
import 'sniffr';
|
|
46
53
|
import '../global/create-stateful-context.js';
|
|
47
54
|
import '../list/list__link.js';
|
|
48
55
|
import '../link/link.js';
|
|
@@ -50,7 +57,7 @@ import '../_helpers/link.js';
|
|
|
50
57
|
import '../_helpers/list.js';
|
|
51
58
|
import '../list/list__item.js';
|
|
52
59
|
import '../checkbox/checkbox.js';
|
|
53
|
-
import '@jetbrains/icons/checkmark';
|
|
60
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
54
61
|
import '@jetbrains/icons/remove-10px';
|
|
55
62
|
import '../_helpers/checkbox.js';
|
|
56
63
|
import '../list/list__custom.js';
|
|
@@ -63,19 +70,16 @@ import '../dropdown/dropdown.js';
|
|
|
63
70
|
import '../global/typescript-utils.js';
|
|
64
71
|
import '../_helpers/anchor.js';
|
|
65
72
|
import '../popup-menu/popup-menu.js';
|
|
66
|
-
import '../popup/popup.js';
|
|
67
|
-
import 'react-dom';
|
|
68
|
-
import '../tab-trap/tab-trap.js';
|
|
69
|
-
import '../popup/position.js';
|
|
70
|
-
import '../popup/popup.consts.js';
|
|
71
73
|
import '../auth/auth.js';
|
|
72
74
|
import '../auth/window-flow.js';
|
|
73
75
|
import '../auth/response-parser.js';
|
|
74
76
|
import 'es6-error';
|
|
75
77
|
import '../auth/down-notification.js';
|
|
76
78
|
import '../alert-service/alert-service.js';
|
|
79
|
+
import '../global/react-render-adapter.js';
|
|
77
80
|
import '../alert/alert.js';
|
|
78
81
|
import '@jetbrains/icons/exception';
|
|
82
|
+
import '@jetbrains/icons/checkmark';
|
|
79
83
|
import '@jetbrains/icons/warning';
|
|
80
84
|
import '@jetbrains/icons/close';
|
|
81
85
|
import '../loader-inline/loader-inline.js';
|
package/dist/header/logo.js
CHANGED
|
@@ -8,7 +8,9 @@ import { Size } from '../icon/icon__constants.js';
|
|
|
8
8
|
import 'util-deprecate';
|
|
9
9
|
import '../_helpers/icon.js';
|
|
10
10
|
import '../icon/icon__svg.js';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
11
12
|
import '../global/memoize.js';
|
|
13
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
12
14
|
|
|
13
15
|
class Logo extends PureComponent {
|
|
14
16
|
render() {
|
package/dist/header/profile.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Size } from '../avatar/avatar';
|
|
4
4
|
import { ListDataItem } from '../list/consts';
|
|
5
5
|
import { AuthUser } from '../auth/auth';
|
|
6
|
-
import {
|
|
6
|
+
import { ClickableLinkProps } from '../link/clickableLink';
|
|
7
7
|
export interface ProfileTranslations {
|
|
8
8
|
applyChangedUser?: string | null | undefined;
|
|
9
9
|
login?: string | null | undefined;
|
|
@@ -24,7 +24,7 @@ export interface ProfileProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSe
|
|
|
24
24
|
onLogout?: (() => void) | null | undefined;
|
|
25
25
|
onSwitchUser?: (() => void) | null | undefined;
|
|
26
26
|
profileUrl?: string | undefined;
|
|
27
|
-
LinkComponent?: ComponentType<
|
|
27
|
+
LinkComponent?: ComponentType<ClickableLinkProps> | null | undefined;
|
|
28
28
|
user?: AuthUser | null | undefined | void;
|
|
29
29
|
round?: boolean | null | undefined;
|
|
30
30
|
showLogIn?: boolean | null | undefined;
|
|
@@ -68,6 +68,6 @@ export default class Profile extends PureComponent<ProfileProps> {
|
|
|
68
68
|
};
|
|
69
69
|
static defaultProps: ProfileProps;
|
|
70
70
|
static Size: typeof Size;
|
|
71
|
-
render(): React.
|
|
71
|
+
render(): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
|
|
72
72
|
}
|
|
73
73
|
export declare type ProfileAttrs = JSX.LibraryManagedAttributes<typeof Profile, ProfileProps>;
|
package/dist/header/profile.js
CHANGED
|
@@ -8,7 +8,9 @@ import DropdownMenu from '../dropdown-menu/dropdown-menu.js';
|
|
|
8
8
|
import PopupMenu from '../popup-menu/popup-menu.js';
|
|
9
9
|
import { isTruthy } from '../global/typescript-utils.js';
|
|
10
10
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
|
11
|
+
import 'core-js/modules/web.dom-collections.iterator.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
16
|
import '../global/get-uid.js';
|
|
@@ -43,7 +45,7 @@ import '../_helpers/link.js';
|
|
|
43
45
|
import '../_helpers/list.js';
|
|
44
46
|
import '../list/list__item.js';
|
|
45
47
|
import '../checkbox/checkbox.js';
|
|
46
|
-
import '@jetbrains/icons/checkmark';
|
|
48
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
47
49
|
import '@jetbrains/icons/remove-10px';
|
|
48
50
|
import '../_helpers/checkbox.js';
|
|
49
51
|
import '../list/list__custom.js';
|
|
@@ -6,6 +6,7 @@ export { S as default } from '../_helpers/services-link.js';
|
|
|
6
6
|
import 'focus-visible';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '../global/memoize.js';
|
|
9
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
10
|
import '../global/data-tests.js';
|
|
10
11
|
import '../link/clickableLink.js';
|
|
11
12
|
import '../_helpers/link.js';
|
package/dist/header/services.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 servicesIcon from '@jetbrains/icons/services-20px';
|
|
@@ -17,6 +18,7 @@ import 'util-deprecate';
|
|
|
17
18
|
import '../icon/icon__constants.js';
|
|
18
19
|
import '../_helpers/icon.js';
|
|
19
20
|
import '../icon/icon__svg.js';
|
|
21
|
+
import 'core-js/modules/es.string.replace.js';
|
|
20
22
|
import '../global/memoize.js';
|
|
21
23
|
import '../button/button.js';
|
|
22
24
|
import 'focus-visible';
|
|
@@ -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 '../auth/auth.js';
|
|
@@ -7,6 +8,7 @@ import Profile from './profile.js';
|
|
|
7
8
|
import Auth, { USER_CHANGED_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGE_POSTPONED_EVENT } from '../auth/auth__core.js';
|
|
8
9
|
import '../auth/window-flow.js';
|
|
9
10
|
import '../auth/response-parser.js';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
12
|
import 'es6-error';
|
|
11
13
|
import '../global/url.js';
|
|
12
14
|
import '../auth/down-notification.js';
|
|
@@ -33,14 +35,25 @@ import '../link/clickableLink.js';
|
|
|
33
35
|
import '../global/controls-height.js';
|
|
34
36
|
import '../_helpers/button__classes.js';
|
|
35
37
|
import '../_helpers/theme.js';
|
|
38
|
+
import 'react-dom';
|
|
36
39
|
import '../popup/popup.target.js';
|
|
40
|
+
import '../popup/popup.js';
|
|
37
41
|
import '../global/get-uid.js';
|
|
42
|
+
import '../global/schedule-raf.js';
|
|
43
|
+
import '../shortcuts/shortcuts.js';
|
|
44
|
+
import '../shortcuts/core.js';
|
|
45
|
+
import 'combokeys';
|
|
46
|
+
import '../global/sniffer.js';
|
|
47
|
+
import 'sniffr';
|
|
48
|
+
import '../tab-trap/tab-trap.js';
|
|
49
|
+
import '../popup/position.js';
|
|
50
|
+
import '../popup/popup.consts.js';
|
|
38
51
|
import '../alert/container.js';
|
|
39
|
-
import 'react-dom';
|
|
40
52
|
import '../link/link.js';
|
|
41
53
|
import '../_helpers/link.js';
|
|
42
54
|
import '../group/group.js';
|
|
43
55
|
import '../_helpers/group.js';
|
|
56
|
+
import '../global/react-render-adapter.js';
|
|
44
57
|
import '../global/listeners.js';
|
|
45
58
|
import '../http/http.js';
|
|
46
59
|
import '../global/promise-with-timeout.js';
|
|
@@ -62,17 +75,12 @@ import 'react-virtualized/dist/es/AutoSizer';
|
|
|
62
75
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
63
76
|
import 'react-virtualized/dist/es/CellMeasurer';
|
|
64
77
|
import 'memoize-one';
|
|
65
|
-
import '../global/schedule-raf.js';
|
|
66
|
-
import '../shortcuts/shortcuts.js';
|
|
67
|
-
import '../shortcuts/core.js';
|
|
68
|
-
import 'combokeys';
|
|
69
|
-
import '../global/sniffer.js';
|
|
70
|
-
import 'sniffr';
|
|
71
78
|
import '../global/create-stateful-context.js';
|
|
72
79
|
import '../list/list__link.js';
|
|
73
80
|
import '../_helpers/list.js';
|
|
74
81
|
import '../list/list__item.js';
|
|
75
82
|
import '../checkbox/checkbox.js';
|
|
83
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
76
84
|
import '@jetbrains/icons/remove-10px';
|
|
77
85
|
import '../_helpers/checkbox.js';
|
|
78
86
|
import '../list/list__custom.js';
|
|
@@ -85,10 +93,6 @@ import '../dropdown/dropdown.js';
|
|
|
85
93
|
import '../global/typescript-utils.js';
|
|
86
94
|
import '../_helpers/anchor.js';
|
|
87
95
|
import '../popup-menu/popup-menu.js';
|
|
88
|
-
import '../popup/popup.js';
|
|
89
|
-
import '../tab-trap/tab-trap.js';
|
|
90
|
-
import '../popup/position.js';
|
|
91
|
-
import '../popup/popup.consts.js';
|
|
92
96
|
import '../_helpers/header.js';
|
|
93
97
|
|
|
94
98
|
const CERTIFICATE_MISMATCH_HEADER = 'x-client-certificate-token-mismatch';
|
|
@@ -178,7 +182,7 @@ class SmartProfile extends PureComponent {
|
|
|
178
182
|
const userMeta = auth.http.getMetaForResponse(user);
|
|
179
183
|
|
|
180
184
|
if (userMeta !== null && userMeta !== void 0 && (_userMeta$headers = userMeta.headers) !== null && _userMeta$headers !== void 0 && _userMeta$headers.has(CERTIFICATE_MISMATCH_HEADER)) {
|
|
181
|
-
const message = (translations === null || translations === void 0 ? void 0 : translations.certificateMismatch) ||
|
|
185
|
+
const message = (translations === null || translations === void 0 ? void 0 : translations.certificateMismatch) || "You are authenticated as ".concat(user.login || user.name, ". To authenticate with the client certificate for your account, log out, then click the \"Log in with certificate\" option on the login page.");
|
|
182
186
|
alertService.warning(message, 0);
|
|
183
187
|
}
|
|
184
188
|
}
|
|
@@ -195,7 +199,7 @@ class SmartProfile extends PureComponent {
|
|
|
195
199
|
profileUrl,
|
|
196
200
|
...props
|
|
197
201
|
} = this.props;
|
|
198
|
-
const url = profileUrl || (user ?
|
|
202
|
+
const url = profileUrl || (user ? "".concat(auth.config.serverUri, "users/").concat(user.id) : '');
|
|
199
203
|
return /*#__PURE__*/React.createElement(Profile, _extends({
|
|
200
204
|
onLogin: this.login,
|
|
201
205
|
onLogout: this.logout,
|
|
@@ -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 '../auth/auth.js';
|
|
@@ -7,10 +8,12 @@ import Services from './services.js';
|
|
|
7
8
|
import Auth from '../auth/auth__core.js';
|
|
8
9
|
import '../auth/window-flow.js';
|
|
9
10
|
import '../auth/response-parser.js';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
12
|
import 'es6-error';
|
|
11
13
|
import '../global/url.js';
|
|
12
14
|
import '../auth/down-notification.js';
|
|
13
15
|
import '../alert-service/alert-service.js';
|
|
16
|
+
import '../global/react-render-adapter.js';
|
|
14
17
|
import 'react-dom';
|
|
15
18
|
import '../global/get-uid.js';
|
|
16
19
|
import '../alert/alert.js';
|
|
@@ -37,6 +40,16 @@ import '../global/controls-height.js';
|
|
|
37
40
|
import '../_helpers/button__classes.js';
|
|
38
41
|
import '../_helpers/theme.js';
|
|
39
42
|
import '../popup/popup.target.js';
|
|
43
|
+
import '../popup/popup.js';
|
|
44
|
+
import '../global/schedule-raf.js';
|
|
45
|
+
import '../shortcuts/shortcuts.js';
|
|
46
|
+
import '../shortcuts/core.js';
|
|
47
|
+
import 'combokeys';
|
|
48
|
+
import '../global/sniffer.js';
|
|
49
|
+
import 'sniffr';
|
|
50
|
+
import '../tab-trap/tab-trap.js';
|
|
51
|
+
import '../popup/position.js';
|
|
52
|
+
import '../popup/popup.consts.js';
|
|
40
53
|
import '../alert/container.js';
|
|
41
54
|
import '../link/link.js';
|
|
42
55
|
import '../_helpers/link.js';
|
|
@@ -57,16 +70,6 @@ import '@jetbrains/icons/services-20px';
|
|
|
57
70
|
import '../dropdown/dropdown.js';
|
|
58
71
|
import '../global/typescript-utils.js';
|
|
59
72
|
import '../_helpers/anchor.js';
|
|
60
|
-
import '../popup/popup.js';
|
|
61
|
-
import '../global/schedule-raf.js';
|
|
62
|
-
import '../shortcuts/shortcuts.js';
|
|
63
|
-
import '../shortcuts/core.js';
|
|
64
|
-
import 'combokeys';
|
|
65
|
-
import '../global/sniffer.js';
|
|
66
|
-
import 'sniffr';
|
|
67
|
-
import '../tab-trap/tab-trap.js';
|
|
68
|
-
import '../popup/position.js';
|
|
69
|
-
import '../popup/popup.consts.js';
|
|
70
73
|
import './tray-icon.js';
|
|
71
74
|
import '../_helpers/header.js';
|
|
72
75
|
import '../_helpers/services-link.js';
|
|
@@ -125,7 +128,7 @@ class SmartServices extends Component {
|
|
|
125
128
|
getServices(fields) {
|
|
126
129
|
var _this$http;
|
|
127
130
|
|
|
128
|
-
return (_this$http = this.http) === null || _this$http === void 0 ? void 0 : _this$http.get(
|
|
131
|
+
return (_this$http = this.http) === null || _this$http === void 0 ? void 0 : _this$http.get("services/header?fields=".concat(fields));
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
render() {
|
package/dist/header/tray-icon.js
CHANGED
|
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { Button } from '../button/button.js';
|
|
6
6
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
|
7
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
8
|
import 'focus-visible';
|
|
8
9
|
import '@jetbrains/icons/chevron-10px';
|
|
9
10
|
import '../icon/icon.js';
|
|
@@ -11,6 +12,7 @@ import 'util-deprecate';
|
|
|
11
12
|
import '../icon/icon__constants.js';
|
|
12
13
|
import '../_helpers/icon.js';
|
|
13
14
|
import '../icon/icon__svg.js';
|
|
15
|
+
import 'core-js/modules/es.string.replace.js';
|
|
14
16
|
import '../global/memoize.js';
|
|
15
17
|
import '../link/clickableLink.js';
|
|
16
18
|
import '../global/controls-height.js';
|
package/dist/heading/heading.js
CHANGED
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import deprecate from 'util-deprecate';
|
|
6
6
|
|
|
7
|
-
var modules_901b77ec = {"heading":"
|
|
7
|
+
var modules_901b77ec = {"heading":"heading_rui_4b24 font_rui_8bff","caps":"caps_rui_4b24"};
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @name Heading
|
|
@@ -28,7 +28,7 @@ const HeadingMemo = /*#__PURE__*/memo(function Heading(_ref) {
|
|
|
28
28
|
...restProps
|
|
29
29
|
} = _ref;
|
|
30
30
|
const classes = classNames(modules_901b77ec.heading, className);
|
|
31
|
-
const Tag = level <= Levels.H4 ?
|
|
31
|
+
const Tag = level <= Levels.H4 ? "h".concat(level) : fallbackHeading();
|
|
32
32
|
return /*#__PURE__*/React.createElement(Tag, _extends({}, restProps, {
|
|
33
33
|
className: classes
|
|
34
34
|
}), children);
|
|
@@ -56,7 +56,7 @@ function makeHeading(level, useCaps) {
|
|
|
56
56
|
className: classes
|
|
57
57
|
}));
|
|
58
58
|
});
|
|
59
|
-
H.displayName =
|
|
59
|
+
H.displayName = "H".concat(level);
|
|
60
60
|
H.propTypes = {
|
|
61
61
|
children: PropTypes.node,
|
|
62
62
|
className: PropTypes.string,
|
package/dist/http/http.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import ExtendableError from 'es6-error';
|
|
3
4
|
import { encodeURL, joinBaseURLAndPath } from '../global/url.js';
|
|
5
|
+
import 'core-js/modules/es.string.replace.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* @name HTTP
|
|
@@ -19,7 +21,7 @@ const defaultFetchConfig = {
|
|
|
19
21
|
class HTTPError extends ExtendableError {
|
|
20
22
|
constructor(response) {
|
|
21
23
|
let data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
22
|
-
super(
|
|
24
|
+
super("".concat(response.status, " ").concat(response.statusText || ''));
|
|
23
25
|
|
|
24
26
|
_defineProperty(this, "data", void 0);
|
|
25
27
|
|
|
@@ -155,7 +157,7 @@ class HTTP {
|
|
|
155
157
|
} = params;
|
|
156
158
|
const combinedHeaders = { ...this.fetchConfig.headers,
|
|
157
159
|
...(token ? {
|
|
158
|
-
Authorization:
|
|
160
|
+
Authorization: "".concat(TOKEN_TYPE, " ").concat(token)
|
|
159
161
|
} : {}),
|
|
160
162
|
...headers
|
|
161
163
|
};
|
package/dist/http/http.mock.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import HTTP from './http.js';
|
|
3
4
|
import 'es6-error';
|
|
4
5
|
import '../global/url.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
7
|
|
|
6
8
|
const authMock = {
|
|
7
9
|
requestToken: () => 'mock token',
|
|
@@ -3,7 +3,7 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
3
3
|
const defaultOptions = {
|
|
4
4
|
searchMax: 20,
|
|
5
5
|
searchSideThreshold: 100,
|
|
6
|
-
queryFormatter: query =>
|
|
6
|
+
queryFormatter: query => "".concat(query, " or ").concat(query, "*")
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* HubSource is designed to speed up search requests for small installations.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import HTTP from '../http/http.js';
|
|
2
2
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import 'es6-error';
|
|
4
5
|
import '../global/url.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
7
|
|
|
6
8
|
const DEFAULT_FIELDS = 'id,name,login,banned,banReason,profile(email/email,avatar/url)';
|
|
7
9
|
function convertUserForCard(hubUser) {
|
|
@@ -15,14 +17,14 @@ function convertUserForCard(hubUser) {
|
|
|
15
17
|
banReason: hubUser.banReason,
|
|
16
18
|
email: (_hubUser$profile = hubUser.profile) === null || _hubUser$profile === void 0 ? void 0 : (_hubUser$profile$emai = _hubUser$profile.email) === null || _hubUser$profile$emai === void 0 ? void 0 : _hubUser$profile$emai.email,
|
|
17
19
|
avatarUrl: (_hubUser$profile2 = hubUser.profile) === null || _hubUser$profile2 === void 0 ? void 0 : (_hubUser$profile2$ava = _hubUser$profile2.avatar) === null || _hubUser$profile2$ava === void 0 ? void 0 : _hubUser$profile2$ava.url,
|
|
18
|
-
href:
|
|
20
|
+
href: "".concat(serverUri, "users/").concat(hubUser.id)
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function createHubUserCardSource(auth, userId) {
|
|
22
24
|
let fields = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_FIELDS;
|
|
23
25
|
const http = new HTTP(auth);
|
|
24
26
|
return async function getHubUser() {
|
|
25
|
-
const hubUser = await http.get(
|
|
27
|
+
const hubUser = await http.get("".concat(auth.config.serverUri, "api/rest/users/").concat(userId, "?fields=").concat(fields));
|
|
26
28
|
return convertUserForCard(hubUser, auth.config.serverUri);
|
|
27
29
|
};
|
|
28
30
|
}
|
|
@@ -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 HubSource from './hub-source.js';
|
|
3
4
|
|
|
4
5
|
const defaultOptions = {
|
|
@@ -20,7 +21,7 @@ class HubSourceUsersGroups {
|
|
|
20
21
|
this.usersSource = new HubSource(auth, 'users', {
|
|
21
22
|
searchMax: this.options.searchMax,
|
|
22
23
|
searchSideThreshold: this.options.searchSideThreshold,
|
|
23
|
-
queryFormatter: query =>
|
|
24
|
+
queryFormatter: query => "nameStartsWith: ".concat(HubSourceUsersGroups.wrapMultiwordQuery(query), " or loginStartsWith: ").concat(HubSourceUsersGroups.wrapMultiwordQuery(query))
|
|
24
25
|
});
|
|
25
26
|
this.groupsSource = new HubSource(auth, 'usergroups', {
|
|
26
27
|
searchMax: this.options.searchMax,
|
|
@@ -30,7 +31,7 @@ class HubSourceUsersGroups {
|
|
|
30
31
|
|
|
31
32
|
static wrapMultiwordQuery(query) {
|
|
32
33
|
if (query && query.indexOf(' ') !== -1) {
|
|
33
|
-
return
|
|
34
|
+
return "{".concat(query, "}");
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
return query;
|
package/dist/icon/icon.js
CHANGED
|
@@ -7,11 +7,11 @@ import { Color, Size } from './icon__constants.js';
|
|
|
7
7
|
export { Color, Size } from './icon__constants.js';
|
|
8
8
|
import { m as modules_29747b80 } from '../_helpers/icon.js';
|
|
9
9
|
import IconSVG from './icon__svg.js';
|
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
11
|
import '../global/memoize.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
13
|
|
|
12
|
-
const warnSize = deprecate(() => {},
|
|
13
|
-
|
|
14
|
-
We strongly recommend to use icons handcrafted for particular sizes. If your icon doesn't exist in the desired size, please ask your designer to draw one. "Responsive" checkmark should be unchecked when exporting icon.'`);
|
|
14
|
+
const warnSize = deprecate(() => {}, "`size`, `width` and `height` props are not recommended to use in Ring UI `Icon` component. The intrinsic sizes of SVG icon (`width` and `height` SVG attributes) are used instead.\n\nWe strongly recommend to use icons handcrafted for particular sizes. If your icon doesn't exist in the desired size, please ask your designer to draw one. \"Responsive\" checkmark should be unchecked when exporting icon.'");
|
|
15
15
|
class Icon extends PureComponent {
|
|
16
16
|
warnSize() {
|
|
17
17
|
if (this.props.suppressSizeWarning) {
|
package/dist/icon/icon__svg.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
3
|
import React, { memo } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
import memoize from '../global/memoize.js';
|
|
6
7
|
import { m as modules_29747b80 } from '../_helpers/icon.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
9
|
|
|
8
10
|
function convertReactSVGDOMProperty(str) {
|
|
9
11
|
return str.replace(/[-|:]([a-z])/g, g => g[1].toUpperCase());
|
package/dist/icon/index.js
CHANGED
package/dist/icon-ng/icon-ng.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
3
|
import angular from 'angular';
|
|
2
4
|
import { Color } from '../icon/icon__constants.js';
|
|
3
5
|
import RingTemplateNg from '../template-ng/template-ng.js';
|
|
@@ -22,7 +24,7 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
22
24
|
height: '@?',
|
|
23
25
|
width: '@?'
|
|
24
26
|
},
|
|
25
|
-
template:
|
|
27
|
+
template: "<span class=\"".concat(modules_29747b80.icon, "\" rg-template=\"normalizedGlyph\" rg-template-class=\"").concat(modules_29747b80.glyph, "\"></span>"),
|
|
26
28
|
controller: ["$scope", $scope => {
|
|
27
29
|
function decodeBase64IfNeeded(glyph) {
|
|
28
30
|
// This hack allows passing SVG content as string from angular templates like
|
|
@@ -67,18 +69,18 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
if (size && !width && !height) {
|
|
70
|
-
const sizeString =
|
|
71
|
-
const style =
|
|
72
|
+
const sizeString = "".concat(size, "px");
|
|
73
|
+
const style = "width: ".concat(sizeString, "; height: ").concat(sizeString, ";");
|
|
72
74
|
svgNode.setAttribute('style', style);
|
|
73
75
|
return;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
if (width) {
|
|
77
|
-
svgNode.setAttribute('style',
|
|
79
|
+
svgNode.setAttribute('style', "width: ".concat(width, "px;"));
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
if (height) {
|
|
81
|
-
svgNode.setAttribute('style',
|
|
83
|
+
svgNode.setAttribute('style', "height: ".concat(height, "px;"));
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
}
|
package/dist/input/input.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export declare class Input extends PureComponent<InputProps> {
|
|
|
64
64
|
render(): JSX.Element;
|
|
65
65
|
}
|
|
66
66
|
export declare type ContainerProps<P extends InputProps> = JSX.LibraryManagedAttributes<typeof Input, P>;
|
|
67
|
-
export declare type
|
|
67
|
+
export declare type InputSpecificAttrs = ContainerProps<InputSpecificProps>;
|
|
68
|
+
export declare type TextAreaSpecificAttrs = ContainerProps<TextAreaSpecificProps>;
|
|
69
|
+
export declare type InputAttrs = InputSpecificAttrs | TextAreaSpecificAttrs;
|
|
68
70
|
export default Input;
|
|
69
71
|
export { Size };
|