@jetbrains/ring-ui 5.0.0-beta.3 → 5.0.0-beta.7
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 +49 -1
- package/babel.config.js +1 -12
- package/components/alert/alert.css +3 -14
- package/components/alert/alert.d.ts +3 -0
- package/components/alert/alert.js +8 -7
- package/components/alert/container.css +0 -2
- package/components/alert-service/alert-service.examples.css +5 -3
- package/components/auth/auth__core.d.ts +3 -1
- package/components/auth/auth__core.js +42 -15
- package/components/auth/down-notification.css +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +11 -0
- package/components/auth-dialog/auth-dialog.js +33 -2
- package/components/autofocus-ng/autofocus-ng.js +1 -1
- package/components/autofocus-ng/autofocus-ng.test.js +1 -1
- package/components/button/button.css +93 -204
- package/components/button/button.d.ts +7 -8
- package/components/button/button.js +6 -8
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +4 -7
- package/components/button-group/button-group.css +136 -19
- package/components/button-group/button-group.d.ts +4 -1
- package/components/button-group/button-group.js +3 -3
- package/components/button-group-ng/button-group-ng.css +1 -0
- package/components/button-group-ng/button-group-ng.examples.js +1 -1
- package/components/button-ng/button-ng.examples.js +6 -7
- package/components/button-ng/button-ng.js +6 -25
- package/components/button-set/button-set.css +1 -0
- package/components/button-toolbar/button-toolbar.css +2 -0
- package/components/checkbox/checkbox.css +10 -4
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.css +2 -1
- package/components/dialog/dialog.css +10 -3
- package/components/dialog-ng/dialog-ng__template.js +1 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/global/controls-height.d.ts +7 -0
- package/components/global/controls-height.js +8 -0
- package/components/global/theme.d.ts +7 -20
- package/components/global/theme.js +26 -32
- package/components/global/variables.css +30 -25
- package/components/global/variables.d.ts +10 -8
- package/components/global/variables_dark.css +68 -0
- package/components/header/header.css +19 -10
- package/components/header/header.d.ts +7 -69
- package/components/header/header.js +10 -9
- package/components/header/services.css +3 -3
- package/components/header/services.d.ts +5 -0
- package/components/header/services.js +8 -2
- package/components/header/tray-icon.d.ts +18 -575
- package/components/heading/heading.css +4 -1
- package/components/icon/icon.css +1 -1
- package/components/input/input.css +81 -151
- package/components/input/input.d.ts +13 -17
- package/components/input/input.js +28 -32
- package/components/input-ng/input-ng.examples.js +1 -1
- package/components/input-ng/input-ng.js +45 -49
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/adaptive-island-hoc.js +2 -2
- package/components/island/content.js +2 -7
- package/components/island/header.js +7 -4
- package/components/island/island.css +8 -5
- package/components/island/island.d.ts +2 -2
- package/components/island-legacy/island-legacy.css +1 -1
- package/components/list/list.d.ts +1 -1
- package/components/loader-inline/loader-inline.css +14 -0
- package/components/loader-inline/loader-inline.d.ts +4 -41
- package/components/loader-inline/loader-inline.js +3 -11
- package/components/loader-inline-ng/loader-inline-ng.js +1 -17
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -11
- package/components/markdown/code.d.ts +6 -13
- package/components/markdown/code.js +2 -2
- package/components/markdown/heading.d.ts +5 -9
- package/components/markdown/heading.js +2 -2
- package/components/markdown/link.d.ts +4 -8
- package/components/markdown/link.js +1 -1
- package/components/markdown/markdown.d.ts +2 -3
- package/components/markdown/markdown.js +14 -11
- package/components/message/message.css +7 -3
- package/components/message/message.d.ts +3 -0
- package/components/message/message.js +16 -9
- package/components/pager/pager.js +2 -8
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.target.d.ts +1 -0
- package/components/progress-bar/progress-bar.css +8 -12
- package/components/progress-bar/progress-bar.d.ts +0 -4
- package/components/progress-bar/progress-bar.js +1 -6
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -2
- package/components/query-assist/query-assist.css +48 -64
- package/components/query-assist/query-assist.d.ts +0 -5
- package/components/query-assist/query-assist.js +4 -10
- package/components/radio/radio.css +10 -4
- package/components/select/select.css +19 -37
- package/components/select/select.d.ts +4 -6
- package/components/select/select.js +17 -30
- package/components/select/select__filter.js +2 -1
- package/components/select/select__popup.js +1 -2
- package/components/select-ng/select-ng.examples.js +1 -0
- package/components/select-ng/select-ng.js +3 -1
- package/components/select-ng/select-ng.test.js +1 -1
- package/components/select-ng/select-ng__lazy.js +1 -2
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.examples.js +1 -1
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/dumb-tabs.d.ts +4 -107
- package/components/tabs/dumb-tabs.js +5 -9
- package/components/tabs/tab.d.ts +2 -0
- package/components/tabs/tabs.css +8 -28
- package/components/tabs-ng/tabs-ng.examples.js +11 -3
- package/components/tabs-ng/tabs-ng.js +1 -4
- package/components/tabs-ng/tabs-ng__template.js +1 -1
- package/components/tag/tag.css +31 -8
- package/components/tag/tag.d.ts +1 -0
- package/components/tag/tag.js +1 -0
- package/components/tags-input/tags-input.css +10 -4
- package/components/toggle/toggle.css +61 -35
- package/components/toggle/toggle.d.ts +9 -89
- package/components/toggle/toggle.js +7 -7
- package/components/tooltip/tooltip.css +7 -0
- package/components/tooltip/tooltip.d.ts +1 -0
- package/components/tooltip/tooltip.js +3 -2
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/dist/_helpers/anchor.js +3 -3
- 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 +5 -8
- 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 +1 -1
- 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 +3 -0
- 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 +5 -3
- package/dist/_helpers/services-link.js +1 -1
- package/dist/_helpers/sidebar.js +1 -1
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +50 -0
- package/dist/_helpers/title.js +1 -1
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +21 -19
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +9 -7
- package/dist/auth/auth.js +9 -9
- package/dist/auth/auth__core.d.ts +3 -1
- package/dist/auth/auth__core.js +58 -26
- package/dist/auth/down-notification.js +8 -8
- package/dist/auth/iframe-flow.js +1 -1
- package/dist/auth/landing.js +9 -9
- package/dist/auth/storage.js +9 -7
- package/dist/auth-dialog/auth-dialog.d.ts +11 -0
- package/dist/auth-dialog/auth-dialog.js +52 -7
- package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
- package/dist/auth-ng/auth-ng.js +9 -9
- package/dist/autofocus-ng/autofocus-ng.js +1 -1
- package/dist/avatar/avatar.js +1 -1
- package/dist/avatar-editor-ng/avatar-editor-ng.js +9 -7
- package/dist/breadcrumb-ng/breadcrumb-ng.js +1 -1
- package/dist/button/button.d.ts +7 -8
- package/dist/button/button.js +6 -8
- package/dist/button/button__classes.d.ts +1 -1
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +4 -1
- package/dist/button-group/button-group.js +5 -3
- package/dist/button-group-ng/button-group-ng.js +1 -1
- package/dist/button-ng/button-ng.js +6 -31
- package/dist/code/code.js +1 -1
- package/dist/confirm/confirm.js +5 -5
- package/dist/confirm-ng/confirm-ng.js +1 -1
- package/dist/confirm-service/confirm-service.js +1 -1
- package/dist/data-list/data-list.js +2 -7
- package/dist/data-list/item.js +8 -13
- package/dist/data-list-ng/data-list-ng.js +2 -7
- package/dist/date-picker/date-input.js +4 -3
- package/dist/date-picker/date-picker.js +1 -1
- package/dist/date-picker/date-popup.js +1 -1
- package/dist/dialog/dialog.js +3 -3
- package/dist/dialog-ng/dialog-ng.js +3 -3
- package/dist/dialog-ng/dialog-ng__template.js +1 -0
- package/dist/docked-panel-ng/docked-panel-ng.js +1 -1
- package/dist/dropdown/anchor.js +1 -1
- package/dist/dropdown/dropdown.js +1 -1
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/error-bubble/error-bubble.js +1 -1
- package/dist/global/controls-height.d.ts +7 -0
- package/dist/global/controls-height.js +13 -0
- package/dist/global/theme.d.ts +7 -20
- package/dist/global/theme.js +7 -62
- package/dist/global/variables.d.ts +10 -8
- package/dist/header/header.d.ts +7 -69
- package/dist/header/header.js +13 -17
- package/dist/header/profile.js +3 -3
- package/dist/header/services.d.ts +5 -0
- package/dist/header/services.js +11 -3
- package/dist/header/smart-profile.js +10 -14
- package/dist/header/smart-services.js +9 -13
- package/dist/header/tray-icon.d.ts +18 -575
- package/dist/header/tray-icon.js +4 -4
- package/dist/heading/heading.js +1 -1
- package/dist/input/input.d.ts +13 -17
- package/dist/input/input.js +32 -41
- package/dist/input-ng/input-ng.js +46 -49
- package/dist/island/adaptive-island-hoc.d.ts +2 -2
- package/dist/island/adaptive-island-hoc.js +4 -2
- package/dist/island/content.js +2 -9
- package/dist/island/header.js +7 -4
- package/dist/island/island.d.ts +2 -2
- package/dist/list/list.d.ts +1 -1
- package/dist/loader/loader__core.js +1 -1
- package/dist/loader-inline/loader-inline.d.ts +4 -41
- package/dist/loader-inline/loader-inline.js +3 -21
- package/dist/loader-inline-ng/loader-inline-ng.js +2 -30
- package/dist/login-dialog/login-dialog.js +2 -2
- package/dist/login-dialog/service.js +1 -1
- package/dist/markdown/code.d.ts +6 -13
- package/dist/markdown/code.js +3 -3
- package/dist/markdown/heading.d.ts +5 -9
- package/dist/markdown/heading.js +2 -2
- package/dist/markdown/link.d.ts +4 -8
- package/dist/markdown/link.js +1 -1
- package/dist/markdown/markdown.d.ts +2 -3
- package/dist/markdown/markdown.js +16 -16
- package/dist/message/message.d.ts +3 -0
- package/dist/message/message.js +18 -10
- package/dist/pager/pager.js +8 -12
- package/dist/pager-ng/pager-ng.js +3 -7
- package/dist/permissions-ng/permissions-ng.js +9 -9
- package/dist/popup/popup.js +1 -1
- package/dist/popup/popup.target.d.ts +1 -0
- package/dist/progress-bar/progress-bar.d.ts +0 -4
- package/dist/progress-bar/progress-bar.js +1 -7
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -1
- package/dist/promised-click-ng/promised-click-ng.js +2 -2
- package/dist/query-assist/query-assist.d.ts +0 -5
- package/dist/query-assist/query-assist.js +10 -26
- package/dist/query-assist-ng/query-assist-ng.js +2 -7
- package/dist/save-field-ng/save-field-ng.js +2 -9
- package/dist/select/select.d.ts +4 -6
- package/dist/select/select.js +35 -58
- package/dist/select/select__filter.js +1 -1
- package/dist/select/select__popup.js +7 -13
- package/dist/select-ng/select-ng.js +5 -9
- package/dist/select-ng/select-ng__lazy.js +7 -11
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +2 -2
- package/dist/sidebar-ng/sidebar-ng.js +2 -2
- package/dist/storage/storage.js +9 -7
- package/dist/storage/storage__local.js +9 -7
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +1 -1
- package/dist/table/row-with-focus-sensor.js +1 -1
- package/dist/table/row.js +5 -5
- package/dist/table/smart-table.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng.js +3 -7
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +3 -7
- package/dist/table-ng/smart-table-ng.js +1 -1
- package/dist/table-ng/table-ng.js +1 -1
- package/dist/tabs/collapsible-more.js +1 -1
- package/dist/tabs/collapsible-tab.js +3 -2
- package/dist/tabs/collapsible-tabs.js +1 -1
- package/dist/tabs/dumb-tabs.d.ts +4 -107
- package/dist/tabs/dumb-tabs.js +6 -12
- package/dist/tabs/smart-tabs.js +3 -3
- package/dist/tabs/tab.d.ts +2 -0
- package/dist/tabs/tabs.js +1 -1
- package/dist/tabs-ng/tabs-ng.js +1 -6
- package/dist/tabs-ng/tabs-ng__template.js +1 -1
- package/dist/tag/tag.d.ts +1 -0
- package/dist/tag/tag.js +5 -4
- package/dist/tags-input/tags-input.js +5 -9
- package/dist/tags-input-ng/tags-input-ng.js +4 -8
- package/dist/tags-list/tags-list.js +1 -1
- package/dist/text/text.js +1 -1
- package/dist/toggle/toggle.d.ts +9 -89
- package/dist/toggle/toggle.js +7 -8
- package/dist/toggle-ng/toggle-ng.js +2 -3
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +6 -3
- package/dist/user-agreement/service.d.ts +2 -2
- package/dist/user-agreement/service.js +9 -13
- package/dist/user-agreement/user-agreement.js +8 -10
- package/dist/user-card/smart-user-card-tooltip.js +6 -11
- package/dist/user-card/tooltip.js +1 -1
- package/dist/user-card/user-card.js +2 -7
- package/dist/user-card-ng/user-card-ng.js +4 -9
- package/package.json +5 -5
- package/webpack.config.js +0 -11
- package/components/global/conic-gradient.d.ts +0 -796
- package/components/global/conic-gradient.js +0 -21
- package/components/global/radial-gradient-mask.d.ts +0 -9
- package/components/global/radial-gradient-mask.js +0 -39
- package/components/global/supports-css.d.ts +0 -2
- package/components/global/supports-css.js +0 -14
- package/components/global/variables_dark.d.ts +0 -3
- package/components/global/variables_dark.js +0 -53
- package/components/loader-inline/inject-styles.d.ts +0 -2
- package/components/loader-inline/inject-styles.js +0 -17
- package/dist/_helpers/inject-styles.js +0 -22
- package/dist/global/conic-gradient.d.ts +0 -796
- package/dist/global/conic-gradient.js +0 -35
- package/dist/global/radial-gradient-mask.d.ts +0 -9
- package/dist/global/radial-gradient-mask.js +0 -49
- package/dist/global/supports-css.d.ts +0 -2
- package/dist/global/supports-css.js +0 -20
- package/dist/global/variables_dark.d.ts +0 -3
- package/dist/global/variables_dark.js +0 -57
- package/dist/loader-inline/inject-styles.d.ts +0 -2
- package/dist/loader-inline/inject-styles.js +0 -11
package/dist/_helpers/island.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_e6a056e1 = {"unit":"8px","gradientStart":"hsla(0,0%,100%,0)","gradientStop":"var(--ring-content-background-color)","island":"
|
|
1
|
+
var modules_e6a056e1 = {"unit":"8px","gradientStart":"hsla(0,0%,100%,0)","gradientStop":"var(--ring-content-background-color)","island":"island_rui_9c2e","withTransparentBottomBorder":"withTransparentBottomBorder_rui_9c2e","header":"header_rui_9c2e","withBottomBorder":"withBottomBorder_rui_9c2e","title":"title_rui_9c2e","narrowIsland":"narrowIsland_rui_9c2e","content":"content_rui_9c2e","scrollableWrapper":"scrollableWrapper_rui_9c2e","withoutPaddings":"withoutPaddings_rui_9c2e","contentWithTopFade":"contentWithTopFade_rui_9c2e","contentWithBottomFade":"contentWithBottomFade_rui_9c2e"};
|
|
2
2
|
|
|
3
3
|
export { modules_e6a056e1 as m };
|
package/dist/_helpers/link.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_607b0772 = {"link":"
|
|
1
|
+
var modules_607b0772 = {"link":"link_rui_d7ae link_rui_2a81","hover":"hover_rui_d7ae","inner":"inner_rui_d7ae","active":"active_rui_d7ae","compatibilityUnderlineMode":"compatibilityUnderlineMode_rui_d7ae","pseudo":"pseudo_rui_d7ae","text":"text_rui_d7ae","inherit":"inherit_rui_d7ae"};
|
|
2
2
|
|
|
3
3
|
export { modules_607b0772 as m };
|
package/dist/_helpers/list.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_3b67a421 = {"unit":"8px","listSpacing":"8px","list":"
|
|
1
|
+
var modules_3b67a421 = {"unit":"8px","listSpacing":"8px","list":"list_rui_a642","simpleInner":"simpleInner_rui_a642","scrolling":"scrolling_rui_a642","separator":"separator_rui_a642","separator_first":"separator_first_rui_a642","item":"item_rui_a642","itemContainer":"itemContainer_rui_a642","compact":"compact_rui_a642","error":"error_rui_a642","add":"add_rui_a642","top":"top_rui_a642","left":"left_rui_a642","label":"label_rui_a642","description":"description_rui_a642","right":"right_rui_a642","details":"details_rui_a642","padded":"padded_rui_a642","hint":"hint_rui_a642","action":"action_rui_a642","actionLink":"actionLink_rui_a642","hover":"hover_rui_a642","icon":"icon_rui_a642","highlight":"highlight_rui_a642","service":"service_rui_a642","glyph":"glyph_rui_a642","avatar":"avatar_rui_a642 glyph_rui_a642","rightGlyph":"rightGlyph_rui_a642 glyph_rui_a642","checkboxContainer":"checkboxContainer_rui_a642","title":"title_rui_a642","title_first":"title_first_rui_a642","text":"text_rui_a642","fade":"fade_rui_a642","disabled":"disabled_rui_a642"};
|
|
2
2
|
|
|
3
3
|
export { modules_3b67a421 as m };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_122a82e9 = {"loaderScreen":"
|
|
1
|
+
var modules_122a82e9 = {"loaderScreen":"loaderScreen_rui_dc0c","loader":"loader_rui_dc0c","loaderWithoutSpacing":"loaderWithoutSpacing_rui_dc0c"};
|
|
2
2
|
|
|
3
3
|
export { modules_122a82e9 as m };
|
package/dist/_helpers/panel.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import List from '../list/list.js';
|
|
3
3
|
|
|
4
|
-
var modules_da7ab055 = {"unit":"8px","overInputZIndex":"2","inputGap":"24px","
|
|
4
|
+
var modules_da7ab055 = {"dark":"dark_rui_4ecf","unit":"8px","overInputZIndex":"2","inputGap":"24px","queryAssist":"queryAssist_rui_e8a0 font_rui_750f","input":"input_rui_e8a0","placeholder":"placeholder_rui_e8a0 resetButton_rui_750f","letter-text":"letterText_rui_e8a0","letterDefault":"letterDefault_rui_e8a0","letter-field-name":"letterFieldName_rui_e8a0","letter-field-value":"letterFieldValue_rui_e8a0","letter-operator":"letterOperator_rui_e8a0","letter-error":"letterError_rui_e8a0","iconInner":"iconInner_rui_e8a0","highlight":"highlight_rui_e8a0","service":"service_rui_e8a0","icon":"icon_rui_e8a0","loader":"loader_rui_e8a0","actions":"actions_rui_e8a0","24px":"_24px_rui_e8a0","inputGap2":"inputGap2_rui_e8a0","inputLeftGap":"inputLeftGap_rui_e8a0","inputDisabled":"inputDisabled_rui_e8a0","placeholderSpaced":"placeholderSpaced_rui_e8a0","letter":"letter_rui_e8a0","loaderOnTheRight":"loaderOnTheRight_rui_e8a0"};
|
|
5
5
|
|
|
6
6
|
const ICON_ID_LENGTH = 44;
|
|
7
7
|
class QueryAssistSuggestions {
|
package/dist/_helpers/radio.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_df92307a = {"unit":"8px","radio-size":"16px","radio":"
|
|
1
|
+
var modules_df92307a = {"unit":"8px","radio-size":"16px","radio":"radio_rui_0c89","circle":"circle_rui_0c89","input":"input_rui_0c89","focus":"focus_rui_0c89","label":"label_rui_0c89"};
|
|
2
2
|
|
|
3
3
|
export { modules_df92307a as m };
|
|
@@ -2,11 +2,12 @@ import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers
|
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import { Input } from '../input/input.js';
|
|
6
6
|
import sniffr from '../global/sniffer.js';
|
|
7
7
|
import { ActiveItemContext } from '../list/list.js';
|
|
8
|
+
import { ControlsHeight } from '../global/controls-height.js';
|
|
8
9
|
|
|
9
|
-
var modules_b607bec2 = {"unit":"8px","filterWithTags":"
|
|
10
|
+
var modules_b607bec2 = {"unit":"8px","filterWithTags":"filterWithTags_rui_0711","filterWrapper":"filterWrapper_rui_0711","filterWithTagsFocused":"filterWithTagsFocused_rui_0711","filter":"filter_rui_0711","filterIcon":"filterIcon_rui_0711","bottomLine":"bottomLine_rui_0711","message":"message_rui_0711","selectAll":"selectAll_rui_0711"};
|
|
10
11
|
|
|
11
12
|
function noop() {}
|
|
12
13
|
|
|
@@ -49,12 +50,13 @@ class SelectFilter extends Component {
|
|
|
49
50
|
...restProps
|
|
50
51
|
} = this.props;
|
|
51
52
|
const classes = classNames(modules_b607bec2.filter, className);
|
|
52
|
-
return /*#__PURE__*/React.createElement(ActiveItemContext.ValueContext.Consumer, null, activeItemId => /*#__PURE__*/React.createElement(
|
|
53
|
+
return /*#__PURE__*/React.createElement(ActiveItemContext.ValueContext.Consumer, null, activeItemId => /*#__PURE__*/React.createElement(Input, _extends({}, restProps, {
|
|
53
54
|
"aria-owns": listId,
|
|
54
55
|
"aria-activedescendant": activeItemId,
|
|
55
56
|
autoComplete: "off",
|
|
56
57
|
autoFocus: true,
|
|
57
58
|
borderless: true,
|
|
59
|
+
height: ControlsHeight.L,
|
|
58
60
|
inputRef: this.inputRef,
|
|
59
61
|
className: classes
|
|
60
62
|
})));
|
|
@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Link from '../link/link.js';
|
|
5
5
|
|
|
6
|
-
var modules_74a7bf8b = {"unit":"8px","services":"
|
|
6
|
+
var modules_74a7bf8b = {"unit":"8px","services":"services_rui_6e8a","active":"active_rui_6e8a","item":"item_rui_6e8a","itemLogo":"itemLogo_rui_6e8a","activeItem":"activeItem_rui_6e8a item_rui_6e8a active_rui_6e8a","line":"line_rui_6e8a","itemStacked":"itemStacked_rui_6e8a","activeItemStacked":"activeItemStacked_rui_6e8a itemStacked_rui_6e8a active_rui_6e8a"};
|
|
7
7
|
|
|
8
8
|
class ServicesLink extends PureComponent {
|
|
9
9
|
render() {
|
package/dist/_helpers/sidebar.js
CHANGED
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { Waypoint } from 'react-waypoint';
|
|
6
6
|
|
|
7
|
-
var modules_b8a9dd4f = {"unit":"8px","extra-small-screen-media":"(max-width:639px)","small-screen-media":"(min-width:640px) and (max-width:959px)","sidebarWidth":"240px","contentLayout":"
|
|
7
|
+
var modules_b8a9dd4f = {"unit":"8px","extra-small-screen-media":"(max-width:639px)","small-screen-media":"(min-width:640px) and (max-width:959px)","sidebarWidth":"240px","contentLayout":"contentLayout_rui_a0ae","contentLayoutContent":"contentLayoutContent_rui_a0ae","sidebarContainer":"sidebarContainer_rui_a0ae","sidebarContainerRight":"sidebarContainerRight_rui_a0ae","sidebar":"sidebar_rui_a0ae","sidebarRight":"sidebarRight_rui_a0ae","sidebarFixedTop":"sidebarFixedTop_rui_a0ae","sidebarFixedBottom":"sidebarFixedBottom_rui_a0ae","bottomMarker":"bottomMarker_rui_a0ae","contentLayoutResponsive":"contentLayoutResponsive_rui_a0ae"};
|
|
8
8
|
|
|
9
9
|
const ABOVE = 'above';
|
|
10
10
|
const INSIDE = 'inside';
|
package/dist/_helpers/table.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_1db4bbca = {"unit":"8px","height":"32px","compensate":"2px","compensated":"30px","top":"-3px","row":"
|
|
1
|
+
var modules_1db4bbca = {"unit":"8px","height":"32px","compensate":"2px","compensated":"30px","top":"-3px","row":"row_rui_b10b","dragHandle":"dragHandle_rui_b10b","tableWrapper":"tableWrapper_rui_b10b","table":"table_rui_b10b","userSelectNone":"userSelectNone_rui_b10b","headerCell":"headerCell_rui_b10b fontSmallerLower_rui_750f fontSmaller_rui_750f fontLower_rui_750f font_rui_750f","headerCellSorted":"headerCellSorted_rui_b10b","headerCellSortable":"headerCellSortable_rui_b10b","sorter":"sorter_rui_b10b","sortedUp":"sortedUp_rui_b10b","icon":"icon_rui_b10b","caption":"caption_rui_b10b","tableHead":"tableHead_rui_b10b","subHeaderFixed":"subHeaderFixed_rui_b10b","subHeader":"subHeader_rui_b10b","disabledHover":"disabledHover_rui_b10b","rowSelected":"rowSelected_rui_b10b","rowFocused":"rowFocused_rui_b10b","cell":"cell_rui_b10b ellipsis_rui_750f","loadingOverlay":"loadingOverlay_rui_b10b","cellUnlimited":"cellUnlimited_rui_b10b","cellRight":"cellRight_rui_b10b","metaColumn":"metaColumn_rui_b10b","headerMetaColumn":"headerMetaColumn_rui_b10b","visibleDragHandle":"visibleDragHandle_rui_b10b","rowCollapseExpandButton":"rowCollapseExpandButton_rui_b10b","draggingRow":"draggingRow_rui_b10b","tableMessage":"tableMessage_rui_b10b"};
|
|
2
2
|
|
|
3
3
|
export { modules_1db4bbca as m };
|
package/dist/_helpers/tabs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_02138f4a = {"unit":"8px","line-shadow":"inset 0 -1px 0 0","selected-line-shadow":"inset 0 -
|
|
1
|
+
var modules_02138f4a = {"unit":"8px","line-shadow":"inset 0 -1px 0 0","selected-line-shadow":"inset 0 -2px 0 0","tabs":"tabs_rui_dd23 font_rui_750f","titles":"titles_rui_dd23","title":"title_rui_dd23 font_rui_750f","selected":"selected_rui_dd23","collapsed":"collapsed_rui_dd23","titleLegacy":"titleLegacy_rui_dd23","visible":"visible_rui_dd23","container":"container_rui_dd23","hidden":"hidden_rui_dd23","hiddenBold":"hiddenBold_rui_dd23","hiddenRegular":"hiddenRegular_rui_dd23","tabCounter":"tabCounter_rui_dd23","autoCollapseContainer":"autoCollapseContainer_rui_dd23","autoCollapse":"autoCollapse_rui_dd23","rendered":"rendered_rui_dd23","adjusted":"adjusted_rui_dd23","measure":"measure_rui_dd23","morePopup":"morePopup_rui_dd23","chevron":"chevron_rui_dd23","morePopupBeforeEnd":"morePopupBeforeEnd_rui_dd23"};
|
|
2
2
|
|
|
3
3
|
export { modules_02138f4a as m };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { a as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { useState, useEffect, forwardRef, useMemo } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { PopupTarget } from '../popup/popup.target.js';
|
|
5
|
+
import getUID from '../global/get-uid.js';
|
|
6
|
+
|
|
7
|
+
var modules_59717246 = {"dark":"dark_rui_4ecf"};
|
|
8
|
+
|
|
9
|
+
var Theme;
|
|
10
|
+
|
|
11
|
+
(function (Theme) {
|
|
12
|
+
Theme["AUTO"] = "auto";
|
|
13
|
+
Theme["LIGHT"] = "light";
|
|
14
|
+
Theme["DARK"] = "dark";
|
|
15
|
+
})(Theme || (Theme = {}));
|
|
16
|
+
|
|
17
|
+
const darkMatcher = window.matchMedia('(prefers-color-scheme: dark)');
|
|
18
|
+
function useTheme() {
|
|
19
|
+
const [dark, setDark] = useState(darkMatcher.matches);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const onChange = e => setDark(e.matches);
|
|
22
|
+
|
|
23
|
+
darkMatcher.addEventListener('change', onChange);
|
|
24
|
+
return () => darkMatcher.removeEventListener('change', onChange);
|
|
25
|
+
}, []);
|
|
26
|
+
return dark ? Theme.DARK : Theme.LIGHT;
|
|
27
|
+
}
|
|
28
|
+
const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(_ref, ref) {
|
|
29
|
+
let {
|
|
30
|
+
theme = Theme.AUTO,
|
|
31
|
+
className,
|
|
32
|
+
passToPopups,
|
|
33
|
+
children,
|
|
34
|
+
...restProps
|
|
35
|
+
} = _ref;
|
|
36
|
+
const systemTheme = useTheme();
|
|
37
|
+
const resolvedTheme = theme === Theme.AUTO ? systemTheme : theme;
|
|
38
|
+
const id = useMemo(() => getUID('popups-with-theme-'), []);
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
40
|
+
ref: ref,
|
|
41
|
+
className: classNames(className, {
|
|
42
|
+
[modules_59717246.dark]: resolvedTheme === Theme.DARK
|
|
43
|
+
})
|
|
44
|
+
}, restProps), passToPopups ? /*#__PURE__*/React.createElement(PopupTarget, {
|
|
45
|
+
id: id
|
|
46
|
+
}, target => /*#__PURE__*/React.createElement(React.Fragment, null, children, target)) : children);
|
|
47
|
+
});
|
|
48
|
+
var Theme$1 = Theme;
|
|
49
|
+
|
|
50
|
+
export { Theme$1 as T, ThemeProvider as a, modules_59717246 as m, useTheme as u };
|
package/dist/_helpers/title.js
CHANGED
|
@@ -7,7 +7,7 @@ import Checkbox from '../checkbox/checkbox.js';
|
|
|
7
7
|
import getUID from '../global/get-uid.js';
|
|
8
8
|
import { refObject } from '../global/prop-types.js';
|
|
9
9
|
|
|
10
|
-
var modules_09d014b4 = {"unit":"8px","height":"32px","compensate":"2px","dataListWrapper":"
|
|
10
|
+
var modules_09d014b4 = {"unit":"8px","height":"32px","compensate":"2px","dataListWrapper":"dataListWrapper_rui_e686","dataList":"dataList_rui_e686","itemContent":"itemContent_rui_e686","title":"title_rui_e686","disabledHover":"disabledHover_rui_e686","titleSelected":"titleSelected_rui_e686","titleFocused":"titleFocused_rui_e686","showMore":"showMore_rui_e686","boxes":"boxes_rui_e686","checkboxBox":"checkboxBox_rui_e686","collapseButton":"collapseButton_rui_e686","collapseIcon":"collapseIcon_rui_e686","loadingOverlay":"loadingOverlay_rui_e686","showMoreLoader":"showMoreLoader_rui_e686"};
|
|
11
11
|
|
|
12
12
|
class Title extends PureComponent {
|
|
13
13
|
constructor() {
|
package/dist/alert/alert.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { PureComponent, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import Theme from '../global/theme';
|
|
3
4
|
export declare const ANIMATION_TIME = 500;
|
|
4
5
|
/**
|
|
5
6
|
* @name Alert
|
|
@@ -16,6 +17,7 @@ export declare enum AlertType {
|
|
|
16
17
|
LOADING = "loading"
|
|
17
18
|
}
|
|
18
19
|
export interface AlertProps {
|
|
20
|
+
theme: Theme;
|
|
19
21
|
timeout: number;
|
|
20
22
|
onCloseRequest: ((event?: React.MouseEvent<HTMLElement>) => void);
|
|
21
23
|
onClose: (() => void);
|
|
@@ -68,6 +70,7 @@ export default class Alert extends PureComponent<AlertProps, State> {
|
|
|
68
70
|
};
|
|
69
71
|
/** @override */
|
|
70
72
|
static defaultProps: {
|
|
73
|
+
theme: Theme;
|
|
71
74
|
closeable: boolean;
|
|
72
75
|
showWithAnimation: boolean;
|
|
73
76
|
type: AlertType;
|
package/dist/alert/alert.js
CHANGED
|
@@ -7,26 +7,28 @@ import checkmarkIcon from '@jetbrains/icons/checkmark';
|
|
|
7
7
|
import warningIcon from '@jetbrains/icons/warning';
|
|
8
8
|
import closeIcon from '@jetbrains/icons/close';
|
|
9
9
|
import Icon from '../icon/icon.js';
|
|
10
|
-
import
|
|
10
|
+
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
11
11
|
import { getRect } from '../global/dom.js';
|
|
12
12
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
13
|
+
import { Button } from '../button/button.js';
|
|
14
|
+
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
|
13
15
|
export { default as Container } from './container.js';
|
|
14
16
|
import { Color } from '../icon/icon__constants.js';
|
|
15
17
|
import 'util-deprecate';
|
|
16
18
|
import '../_helpers/icon.js';
|
|
17
19
|
import '../icon/icon__svg.js';
|
|
18
20
|
import '../global/memoize.js';
|
|
19
|
-
import '../
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '../global/
|
|
24
|
-
import '../
|
|
25
|
-
import '../
|
|
21
|
+
import '../_helpers/loader-inline.js';
|
|
22
|
+
import 'focus-visible';
|
|
23
|
+
import '@jetbrains/icons/chevron-10px';
|
|
24
|
+
import '../link/clickableLink.js';
|
|
25
|
+
import '../global/controls-height.js';
|
|
26
|
+
import '../_helpers/button__classes.js';
|
|
27
|
+
import '../popup/popup.target.js';
|
|
26
28
|
import '../global/get-uid.js';
|
|
27
29
|
import 'react-dom';
|
|
28
30
|
|
|
29
|
-
var modules_e02b3280 = {"unit":"8px","animation-duration":".3s","animation-easing":"ease-out","alert":"
|
|
31
|
+
var modules_e02b3280 = {"unit":"8px","animation-duration":".3s","animation-easing":"ease-out","alert":"alert_rui_403b","alertInline":"alertInline_rui_403b","error":"error_rui_403b","icon":"icon_rui_403b","caption":"caption_rui_403b","link":"link_rui_403b","withCloseButton":"withCloseButton_rui_403b","badge":"badge_rui_403b","loader":"loader_rui_403b","close":"close_rui_403b","animationOpen":"animationOpen_rui_403b","show":"show_rui_403b","animationClosing":"animationClosing_rui_403b","animationShaking":"animationShaking_rui_403b","shaking":"shaking_rui_403b"};
|
|
30
32
|
|
|
31
33
|
const ANIMATION_TIME = 500;
|
|
32
34
|
/**
|
|
@@ -170,9 +172,8 @@ class Alert extends PureComponent {
|
|
|
170
172
|
color: TypeToIconColor[this.props.type] || Color.DEFAULT
|
|
171
173
|
});
|
|
172
174
|
} else if (this.props.type === AlertType.LOADING) {
|
|
173
|
-
return /*#__PURE__*/React.createElement(
|
|
174
|
-
className: modules_e02b3280.loader
|
|
175
|
-
theme: ThemedLoaderInline.Theme.DARK
|
|
175
|
+
return /*#__PURE__*/React.createElement(LoaderInline, {
|
|
176
|
+
className: modules_e02b3280.loader
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
179
|
|
|
@@ -188,7 +189,8 @@ class Alert extends PureComponent {
|
|
|
188
189
|
closeButtonClassName,
|
|
189
190
|
showWithAnimation,
|
|
190
191
|
className,
|
|
191
|
-
'data-test': dataTest
|
|
192
|
+
'data-test': dataTest,
|
|
193
|
+
theme
|
|
192
194
|
} = this.props;
|
|
193
195
|
const classes = classNames(className, {
|
|
194
196
|
[modules_e02b3280.alert]: true,
|
|
@@ -202,21 +204,20 @@ class Alert extends PureComponent {
|
|
|
202
204
|
const style = height ? {
|
|
203
205
|
marginBottom: -height
|
|
204
206
|
} : undefined;
|
|
205
|
-
return /*#__PURE__*/React.createElement(
|
|
207
|
+
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
208
|
+
theme: theme,
|
|
206
209
|
className: classes,
|
|
207
210
|
"data-test": joinDataTestAttributes('alert', dataTest),
|
|
208
211
|
"data-test-type": type,
|
|
209
212
|
style: style,
|
|
210
213
|
ref: this.storeAlertRef
|
|
211
|
-
}, this._getIcon(), this._getCaption(), this.props.closeable ? /*#__PURE__*/React.createElement(
|
|
212
|
-
|
|
214
|
+
}, this._getIcon(), this._getCaption(), this.props.closeable ? /*#__PURE__*/React.createElement(Button, {
|
|
215
|
+
icon: closeIcon,
|
|
213
216
|
className: classNames(modules_e02b3280.close, closeButtonClassName),
|
|
214
217
|
"data-test": "alert-close",
|
|
215
218
|
"aria-label": "close alert",
|
|
216
219
|
onClick: this.closeRequest
|
|
217
|
-
}
|
|
218
|
-
glyph: closeIcon
|
|
219
|
-
})) : '');
|
|
220
|
+
}) : '');
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
}
|
|
@@ -248,6 +249,7 @@ _defineProperty(Alert, "propTypes", {
|
|
|
248
249
|
});
|
|
249
250
|
|
|
250
251
|
_defineProperty(Alert, "defaultProps", {
|
|
252
|
+
theme: Theme.DARK,
|
|
251
253
|
closeable: true,
|
|
252
254
|
showWithAnimation: true,
|
|
253
255
|
type: AlertType.MESSAGE,
|
package/dist/alert/container.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createPortal } from 'react-dom';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
|
|
7
|
-
var modules_fc8df42d = {"unit":"8px","alertContainer":"
|
|
7
|
+
var modules_fc8df42d = {"unit":"8px","alertContainer":"alertContainer_rui_bb3b","alertInContainer":"alertInContainer_rui_bb3b alert_rui_2a81"};
|
|
8
8
|
|
|
9
9
|
class Alerts extends PureComponent {
|
|
10
10
|
render() {
|
|
@@ -17,15 +17,17 @@ import '../_helpers/icon.js';
|
|
|
17
17
|
import '../icon/icon__svg.js';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
19
|
import '../loader-inline/loader-inline.js';
|
|
20
|
-
import '../global/theme.js';
|
|
21
20
|
import '../global/data-tests.js';
|
|
22
|
-
import '../_helpers/
|
|
23
|
-
import '../global/conic-gradient.js';
|
|
24
|
-
import 'conic-gradient';
|
|
25
|
-
import '../global/supports-css.js';
|
|
26
|
-
import '../global/inject-styles.js';
|
|
27
|
-
import '../global/radial-gradient-mask.js';
|
|
21
|
+
import '../_helpers/loader-inline.js';
|
|
28
22
|
import '../global/dom.js';
|
|
23
|
+
import '../button/button.js';
|
|
24
|
+
import 'focus-visible';
|
|
25
|
+
import '@jetbrains/icons/chevron-10px';
|
|
26
|
+
import '../link/clickableLink.js';
|
|
27
|
+
import '../global/controls-height.js';
|
|
28
|
+
import '../_helpers/button__classes.js';
|
|
29
|
+
import '../_helpers/theme.js';
|
|
30
|
+
import '../popup/popup.target.js';
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
33
|
* @name Alert Service
|
package/dist/auth/auth.js
CHANGED
|
@@ -24,19 +24,19 @@ import '../_helpers/icon.js';
|
|
|
24
24
|
import '../icon/icon__svg.js';
|
|
25
25
|
import '../global/memoize.js';
|
|
26
26
|
import '../loader-inline/loader-inline.js';
|
|
27
|
-
import '../global/theme.js';
|
|
28
27
|
import '../global/data-tests.js';
|
|
29
|
-
import '../_helpers/
|
|
30
|
-
import '../global/conic-gradient.js';
|
|
31
|
-
import 'conic-gradient';
|
|
32
|
-
import '../global/supports-css.js';
|
|
33
|
-
import '../global/inject-styles.js';
|
|
34
|
-
import '../global/radial-gradient-mask.js';
|
|
28
|
+
import '../_helpers/loader-inline.js';
|
|
35
29
|
import '../global/dom.js';
|
|
36
|
-
import '../
|
|
37
|
-
import '../link/link.js';
|
|
30
|
+
import '../button/button.js';
|
|
38
31
|
import 'focus-visible';
|
|
32
|
+
import '@jetbrains/icons/chevron-10px';
|
|
39
33
|
import '../link/clickableLink.js';
|
|
34
|
+
import '../global/controls-height.js';
|
|
35
|
+
import '../_helpers/button__classes.js';
|
|
36
|
+
import '../_helpers/theme.js';
|
|
37
|
+
import '../popup/popup.target.js';
|
|
38
|
+
import '../alert/container.js';
|
|
39
|
+
import '../link/link.js';
|
|
40
40
|
import '../_helpers/link.js';
|
|
41
41
|
import '../group/group.js';
|
|
42
42
|
import '../_helpers/group.js';
|
|
@@ -38,6 +38,7 @@ export interface AuthTranslations {
|
|
|
38
38
|
applyChange: string;
|
|
39
39
|
backendIsNotAvailable: string;
|
|
40
40
|
checkAgain: string;
|
|
41
|
+
tryAgainLabel: string;
|
|
41
42
|
nothingHappensLink: string;
|
|
42
43
|
errorMessage: string;
|
|
43
44
|
}
|
|
@@ -99,6 +100,7 @@ interface AuthDialogParams {
|
|
|
99
100
|
nonInteractive?: boolean;
|
|
100
101
|
error?: Error;
|
|
101
102
|
canCancel?: boolean;
|
|
103
|
+
onTryAgain?: () => Promise<void>;
|
|
102
104
|
}
|
|
103
105
|
interface UserChange {
|
|
104
106
|
userID: number | string | null | undefined;
|
|
@@ -180,7 +182,7 @@ export default class Auth implements HTTPAuth {
|
|
|
180
182
|
updateUser(): Promise<void>;
|
|
181
183
|
_detectUserChange(accessToken: string): Promise<void>;
|
|
182
184
|
_beforeLogout(params?: AuthDialogParams): void;
|
|
183
|
-
_showAuthDialog({ nonInteractive, error, canCancel }?: AuthDialogParams): void;
|
|
185
|
+
_showAuthDialog({ nonInteractive, error, canCancel, onTryAgain }?: AuthDialogParams): void;
|
|
184
186
|
_showUserChangedDialog({ newUser, onApply, onPostpone }: UserChangedDialogParams): void;
|
|
185
187
|
private _extractErrorMessage;
|
|
186
188
|
private _showBackendDownDialog;
|
package/dist/auth/auth__core.js
CHANGED
|
@@ -29,15 +29,17 @@ import '../_helpers/icon.js';
|
|
|
29
29
|
import '../icon/icon__svg.js';
|
|
30
30
|
import '../global/memoize.js';
|
|
31
31
|
import '../loader-inline/loader-inline.js';
|
|
32
|
-
import '../global/theme.js';
|
|
33
32
|
import '../global/data-tests.js';
|
|
34
|
-
import '../_helpers/
|
|
35
|
-
import '../global/conic-gradient.js';
|
|
36
|
-
import 'conic-gradient';
|
|
37
|
-
import '../global/supports-css.js';
|
|
38
|
-
import '../global/inject-styles.js';
|
|
39
|
-
import '../global/radial-gradient-mask.js';
|
|
33
|
+
import '../_helpers/loader-inline.js';
|
|
40
34
|
import '../global/dom.js';
|
|
35
|
+
import '../button/button.js';
|
|
36
|
+
import 'focus-visible';
|
|
37
|
+
import '@jetbrains/icons/chevron-10px';
|
|
38
|
+
import '../link/clickableLink.js';
|
|
39
|
+
import '../global/controls-height.js';
|
|
40
|
+
import '../_helpers/button__classes.js';
|
|
41
|
+
import '../_helpers/theme.js';
|
|
42
|
+
import '../popup/popup.target.js';
|
|
41
43
|
import '../alert/container.js';
|
|
42
44
|
import '../storage/storage__fallback.js';
|
|
43
45
|
import 'deep-equal';
|
|
@@ -86,6 +88,7 @@ const DEFAULT_CONFIG = {
|
|
|
86
88
|
login: 'Log in',
|
|
87
89
|
loginTo: 'Log in to %serviceName%',
|
|
88
90
|
cancel: 'Cancel',
|
|
91
|
+
tryAgainLabel: 'Try again',
|
|
89
92
|
postpone: 'Postpone',
|
|
90
93
|
youHaveLoggedInAs: 'You have logged in as another user: %userName%',
|
|
91
94
|
applyChange: 'Apply change',
|
|
@@ -514,28 +517,48 @@ class Auth {
|
|
|
514
517
|
|
|
515
518
|
return (_await$this$_backgrou = await ((_this$_backgroundFlow2 = this._backgroundFlow) === null || _this$_backgroundFlow2 === void 0 ? void 0 : _this$_backgroundFlow2.authorize())) !== null && _await$this$_backgrou !== void 0 ? _await$this$_backgrou : null;
|
|
516
519
|
} catch (error) {
|
|
517
|
-
if (error instanceof Error) {
|
|
518
|
-
|
|
520
|
+
if (!(error instanceof Error)) {
|
|
521
|
+
return null;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if (this._canShowDialogs()) {
|
|
525
|
+
return new Promise(resolve => {
|
|
526
|
+
const onTryAgain = async () => {
|
|
527
|
+
try {
|
|
528
|
+
var _this$_backgroundFlow3;
|
|
529
|
+
|
|
530
|
+
const result = await ((_this$_backgroundFlow3 = this._backgroundFlow) === null || _this$_backgroundFlow3 === void 0 ? void 0 : _this$_backgroundFlow3.authorize());
|
|
531
|
+
resolve(result !== null && result !== void 0 ? result : null);
|
|
532
|
+
} catch (retryError) {
|
|
533
|
+
if (retryError instanceof Error) {
|
|
534
|
+
this._showAuthDialog({
|
|
535
|
+
nonInteractive: true,
|
|
536
|
+
error: retryError,
|
|
537
|
+
onTryAgain
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
throw retryError;
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
|
|
519
545
|
this._showAuthDialog({
|
|
520
546
|
nonInteractive: true,
|
|
521
|
-
error
|
|
547
|
+
error: error,
|
|
548
|
+
onTryAgain
|
|
522
549
|
});
|
|
550
|
+
});
|
|
551
|
+
} else {
|
|
552
|
+
var _this$_requestBuilder2;
|
|
523
553
|
|
|
524
|
-
|
|
525
|
-
} else {
|
|
526
|
-
var _this$_requestBuilder2;
|
|
527
|
-
|
|
528
|
-
const authRequest = await ((_this$_requestBuilder2 = this._requestBuilder) === null || _this$_requestBuilder2 === void 0 ? void 0 : _this$_requestBuilder2.prepareAuthRequest());
|
|
554
|
+
const authRequest = await ((_this$_requestBuilder2 = this._requestBuilder) === null || _this$_requestBuilder2 === void 0 ? void 0 : _this$_requestBuilder2.prepareAuthRequest());
|
|
529
555
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
556
|
+
if (authRequest != null) {
|
|
557
|
+
this._redirectCurrentPage(authRequest.url);
|
|
533
558
|
}
|
|
534
|
-
|
|
535
|
-
throw new TokenValidator.TokenValidationError(error.message);
|
|
536
|
-
} else {
|
|
537
|
-
return null;
|
|
538
559
|
}
|
|
560
|
+
|
|
561
|
+
throw new TokenValidator.TokenValidationError(error.message);
|
|
539
562
|
}
|
|
540
563
|
}
|
|
541
564
|
|
|
@@ -657,7 +680,8 @@ class Auth {
|
|
|
657
680
|
let {
|
|
658
681
|
nonInteractive,
|
|
659
682
|
error,
|
|
660
|
-
canCancel
|
|
683
|
+
canCancel,
|
|
684
|
+
onTryAgain
|
|
661
685
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
662
686
|
const {
|
|
663
687
|
embeddedLogin,
|
|
@@ -711,14 +735,21 @@ class Auth {
|
|
|
711
735
|
}
|
|
712
736
|
};
|
|
713
737
|
|
|
738
|
+
const onTryAgainClick = async () => {
|
|
739
|
+
await (onTryAgain === null || onTryAgain === void 0 ? void 0 : onTryAgain());
|
|
740
|
+
closeDialog();
|
|
741
|
+
};
|
|
742
|
+
|
|
714
743
|
const hide = (_this$_authDialogServ = this._authDialogService) === null || _this$_authDialogServ === void 0 ? void 0 : _this$_authDialogServ.call(this, { ...this._service,
|
|
715
744
|
loginCaption: translations.login,
|
|
716
745
|
loginToCaption: translations.loginTo,
|
|
717
746
|
confirmLabel: translations.login,
|
|
747
|
+
tryAgainLabel: translations.tryAgainLabel,
|
|
718
748
|
cancelLabel: cancelable ? translations.cancel : translations.postpone,
|
|
719
749
|
errorMessage: this._extractErrorMessage(error, true),
|
|
720
750
|
onConfirm,
|
|
721
|
-
onCancel
|
|
751
|
+
onCancel,
|
|
752
|
+
onTryAgain: onTryAgain ? onTryAgainClick : undefined
|
|
722
753
|
});
|
|
723
754
|
const stopTokenListening = (_this$_storage9 = this._storage) === null || _this$_storage9 === void 0 ? void 0 : _this$_storage9.onTokenChange(token => {
|
|
724
755
|
if (token) {
|
|
@@ -762,6 +793,7 @@ class Auth {
|
|
|
762
793
|
loginCaption: translations.login,
|
|
763
794
|
loginToCaption: translations.loginTo,
|
|
764
795
|
confirmLabel: translations.applyChange,
|
|
796
|
+
tryAgainLabel: translations.tryAgainLabel,
|
|
765
797
|
cancelLabel: translations.postpone,
|
|
766
798
|
onConfirm: () => {
|
|
767
799
|
done();
|
|
@@ -915,9 +947,9 @@ class Auth {
|
|
|
915
947
|
await this._checkBackendsStatusesIfEnabled();
|
|
916
948
|
|
|
917
949
|
try {
|
|
918
|
-
var _this$
|
|
950
|
+
var _this$_backgroundFlow4;
|
|
919
951
|
|
|
920
|
-
const accessToken = await ((_this$
|
|
952
|
+
const accessToken = await ((_this$_backgroundFlow4 = this._backgroundFlow) === null || _this$_backgroundFlow4 === void 0 ? void 0 : _this$_backgroundFlow4.authorize());
|
|
921
953
|
const user = await this.getUser(accessToken);
|
|
922
954
|
|
|
923
955
|
if (user.guest) {
|
|
@@ -20,21 +20,21 @@ import '../_helpers/icon.js';
|
|
|
20
20
|
import '../icon/icon__svg.js';
|
|
21
21
|
import '../global/memoize.js';
|
|
22
22
|
import '../loader-inline/loader-inline.js';
|
|
23
|
-
import '../global/theme.js';
|
|
24
23
|
import '../global/data-tests.js';
|
|
25
|
-
import '../_helpers/
|
|
26
|
-
import '../global/conic-gradient.js';
|
|
27
|
-
import 'conic-gradient';
|
|
28
|
-
import '../global/supports-css.js';
|
|
29
|
-
import '../global/inject-styles.js';
|
|
30
|
-
import '../global/radial-gradient-mask.js';
|
|
24
|
+
import '../_helpers/loader-inline.js';
|
|
31
25
|
import '../global/dom.js';
|
|
26
|
+
import '../button/button.js';
|
|
32
27
|
import 'focus-visible';
|
|
28
|
+
import '@jetbrains/icons/chevron-10px';
|
|
33
29
|
import '../link/clickableLink.js';
|
|
30
|
+
import '../global/controls-height.js';
|
|
31
|
+
import '../_helpers/button__classes.js';
|
|
32
|
+
import '../_helpers/theme.js';
|
|
33
|
+
import '../popup/popup.target.js';
|
|
34
34
|
import '../_helpers/link.js';
|
|
35
35
|
import '../_helpers/group.js';
|
|
36
36
|
|
|
37
|
-
var modules_c87dd562 = {"unit":"8px","title":"
|
|
37
|
+
var modules_c87dd562 = {"unit":"8px","title":"title_rui_d971","error":"error_rui_d971"};
|
|
38
38
|
|
|
39
39
|
let key = null;
|
|
40
40
|
|
package/dist/auth/iframe-flow.js
CHANGED
|
@@ -35,8 +35,8 @@ import '../icon/icon__constants.js';
|
|
|
35
35
|
import '../_helpers/icon.js';
|
|
36
36
|
import '../icon/icon__svg.js';
|
|
37
37
|
import '../global/memoize.js';
|
|
38
|
-
import '../global/theme.js';
|
|
39
38
|
import '../link/clickableLink.js';
|
|
39
|
+
import '../global/controls-height.js';
|
|
40
40
|
import '../_helpers/button__classes.js';
|
|
41
41
|
import '../popup/popup.target.js';
|
|
42
42
|
import '../_helpers/dialog__body-scroll-preventer.js';
|