@jetbrains/ring-ui 4.1.0-beta.4 → 4.1.2
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/README.md +17 -15
- package/babel.config.js +3 -2
- package/components/alert/alert.js +9 -3
- package/components/alert/alert.test.js +21 -48
- package/components/alert/container.css +1 -1
- package/components/alert/container.test.js +3 -13
- package/components/alert-service/alert-service.examples.css +18 -0
- package/components/alert-service/alert-service.examples.js +21 -0
- package/components/alert-service/alert-service.js +10 -3
- package/components/analytics/analytics__fus-plugin.js +3 -3
- package/components/analytics/analytics__ga-plugin.js +2 -2
- package/components/auth/auth.test.js +14 -7
- package/components/auth/auth__core.js +64 -33
- package/components/auth-dialog/auth-dialog.css +2 -3
- package/components/auth-dialog/auth-dialog.js +4 -1
- package/components/auth-dialog/auth-dialog.test.js +3 -19
- package/components/avatar/avatar.css +4 -1
- package/components/avatar/avatar.examples.js +3 -2
- package/components/avatar/avatar.js +34 -6
- package/components/avatar/avatar.test.js +20 -17
- package/components/avatar/fallback-avatar.js +136 -0
- package/components/avatar-editor-ng/avatar-editor-ng.css +2 -2
- package/components/avatar-editor-ng/avatar-editor-ng.js +2 -1
- package/components/avatar-editor-ng/{avatar-editor-ng.html → avatar-editor-ng__template.js} +2 -2
- package/components/badge/badge.test.js +13 -20
- package/components/button/button.css +2 -2
- package/components/button/button.js +4 -1
- package/components/button/button.test.js +32 -33
- package/components/button-group/button-group.js +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-ng/button-ng.js +1 -1
- package/components/button-set-ng/button-set-ng.js +3 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/code/code.js +2 -5
- package/components/confirm/confirm.js +1 -0
- package/components/confirm-service/confirm-service.js +5 -5
- package/components/content-layout/content-layout.css +1 -1
- package/components/data-list/data-list.css +1 -1
- package/components/date-picker/date-input.js +5 -4
- package/components/date-picker/date-picker.css +34 -22
- package/components/date-picker/date-picker.js +16 -14
- package/components/date-picker/date-popup.js +22 -7
- package/components/date-picker/month-names.js +8 -5
- package/components/date-picker/month.js +6 -2
- package/components/date-picker/weekdays.js +10 -2
- package/components/dialog/dialog.examples.js +3 -1
- package/components/dialog/dialog.js +10 -5
- package/components/dialog/dialog.test.js +1 -1
- package/components/dialog/dialog__body-scroll-preventer.js +51 -31
- package/components/dialog-ng/dialog-ng.js +10 -10
- package/components/dialog-ng/{dialog-ng.html → dialog-ng__template.js} +2 -2
- package/components/dropdown/dropdown.examples.js +36 -1
- package/components/dropdown/dropdown.test.js +2 -2
- package/components/dropdown-menu/dropdown-menu.examples.js +47 -0
- package/components/dropdown-menu/dropdown-menu.js +117 -0
- package/components/dropdown-menu/dropdown-menu.test.js +76 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/error-bubble/error-bubble.examples.js +1 -1
- package/components/error-page/error-page.css +2 -2
- package/components/footer-ng/footer-ng.js +13 -3
- package/components/form/form.css +2 -2
- package/components/form-ng/form-ng.js +3 -1
- package/components/global/global.css +1 -1
- package/components/global/theme.js +1 -1
- package/components/global/variables.css +8 -1
- package/components/grid/grid.css +10 -9
- package/components/header/header.css +1 -1
- package/components/header/header.examples.js +7 -8
- package/components/header/profile.js +10 -11
- package/components/http/http.js +1 -1
- package/components/icon/icon.css +5 -4
- package/components/input/input-legacy.css +7 -7
- package/components/island/header.js +2 -2
- package/components/island/island.css +8 -3
- package/components/island-legacy/island-legacy.css +3 -1
- package/components/list/list.js +6 -1
- package/components/list/list__custom.js +9 -3
- package/components/list/list__item.js +8 -2
- package/components/list/list__link.js +2 -1
- package/components/loader-inline/loader-inline.css +1 -1
- package/components/loader-screen/loader-screen.css +1 -1
- package/components/message/message.css +1 -1
- package/components/message/message.examples.js +8 -7
- package/components/pager/pager.js +5 -3
- package/components/permissions/permissions.js +1 -1
- package/components/popup/popup.js +1 -1
- package/components/popup/popup.test.js +15 -13
- package/components/progress-bar/progress-bar.css +1 -1
- package/components/progress-bar/progress-bar.examples.js +3 -3
- package/components/progress-bar/progress-bar.js +5 -2
- package/components/progress-bar/progress-bar.test.js +12 -13
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -3
- package/components/query-assist/query-assist.css +13 -3
- package/components/query-assist/query-assist.examples.js +3 -4
- package/components/query-assist/query-assist.js +56 -12
- package/components/query-assist/query-assist.test.js +37 -5
- package/components/save-field-ng/save-field-ng.css +0 -3
- package/components/save-field-ng/save-field-ng.js +3 -1
- package/components/save-field-ng/{save-field-ng.html → save-field-ng__template.js} +2 -2
- package/components/select/select.css +12 -7
- package/components/select/select.examples.js +13 -0
- package/components/select/select.js +30 -43
- package/components/select/select.test.js +4 -5
- package/components/select/select__popup.js +1 -0
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.js +1 -1
- package/components/shortcuts-hint-ng/{shortcuts-hint-ng.html → shortcuts-hint-ng__template.js} +2 -2
- package/components/sidebar/sidebar.css +1 -0
- package/components/sidebar-ng/sidebar-ng.js +6 -2
- package/components/sidebar-ng/{sidebar-ng__button.html → sidebar-ng__button-template.js} +2 -2
- package/components/sidebar-ng/{sidebar-ng.html → sidebar-ng__template.js} +2 -2
- package/components/table/header.js +9 -1
- package/components/table/row.js +2 -1
- package/components/table/table.css +2 -1
- package/components/table-legacy/table-legacy.css +2 -2
- package/components/table-legacy/table-legacy__toolbar.css +2 -2
- package/components/table-legacy-ng/table-legacy-ng.js +38 -5
- package/components/table-legacy-ng/table-legacy-ng__pager.js +7 -1
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/collapsible-tabs.js +5 -9
- package/components/tabs/tab-link.js +4 -2
- package/components/tabs/tabs.css +32 -5
- package/components/tabs-ng/tabs-ng.js +4 -2
- package/components/tabs-ng/{tabs-ng.html → tabs-ng__template.js} +6 -2
- package/components/tag/tag.css +5 -2
- package/components/tag/tag.examples.js +3 -0
- package/components/tag/tag.js +19 -16
- package/components/tags-input/tag-input.examples.js +1 -1
- package/components/tags-input/tags-input.js +5 -2
- package/components/template-ng/template-ng.js +1 -1
- package/components/tooltip/tooltip.js +7 -2
- package/components/user-agreement/user-agreement.css +1 -5
- package/components/user-agreement/user-agreement.examples.js +7 -6
- package/components/user-agreement/user-agreement.js +11 -3
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -90
- package/dist/_helpers/anchor.js +6 -7
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +3 -0
- package/dist/_helpers/button-set.js +3 -0
- package/dist/_helpers/button-toolbar.js +3 -0
- package/dist/_helpers/button__classes.js +16 -15
- package/dist/_helpers/card.js +6 -8
- package/dist/_helpers/checkbox.js +3 -0
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +49 -32
- package/dist/_helpers/error-message.js +3 -0
- package/dist/_helpers/footer.js +121 -0
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +3 -0
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +3 -0
- package/dist/_helpers/inject-styles.js +1 -1
- package/dist/_helpers/input.js +3 -0
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +3 -0
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-screen.js +3 -0
- package/dist/_helpers/panel.js +3 -0
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +3 -0
- package/dist/_helpers/select__filter.js +8 -10
- package/dist/_helpers/services-link.js +6 -8
- package/dist/_helpers/sidebar.js +17 -17
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/title.js +3 -3
- package/dist/alert/alert.js +20 -9
- package/dist/alert/container.js +7 -9
- package/dist/alert-service/alert-service.js +26 -13
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/analytics__custom-plugin.js +1 -1
- package/dist/analytics/analytics__fus-plugin.js +13 -11
- package/dist/analytics/analytics__ga-plugin.js +3 -3
- package/dist/analytics/analytics__plugin-utils.js +1 -1
- package/dist/analytics-ng/analytics-ng.js +94 -0
- package/dist/auth/auth.js +7 -4
- package/dist/auth/auth__core.js +106 -63
- package/dist/auth/background-flow.js +1 -2
- package/dist/auth/down-notification.js +19 -12
- package/dist/auth/iframe-flow.js +5 -2
- package/dist/auth/landing-entry.js +1 -1
- package/dist/auth/landing.js +5 -2
- package/dist/auth/request-builder.js +1 -1
- package/dist/auth/response-parser.js +3 -2
- package/dist/auth/storage.js +5 -3
- package/dist/auth/token-validator.js +6 -5
- package/dist/auth/window-flow.js +1 -1
- package/dist/auth-dialog/auth-dialog.js +9 -6
- package/dist/auth-dialog-service/auth-dialog-service.js +9 -6
- package/dist/auth-ng/auth-ng.js +203 -0
- package/dist/auth-ng/auth-ng.mock.js +33 -0
- package/dist/autofocus-ng/autofocus-ng.js +50 -0
- package/dist/avatar/avatar.js +41 -32
- package/dist/avatar/fallback-avatar.js +141 -0
- package/dist/avatar-editor-ng/avatar-editor-ng.js +164 -0
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +30 -0
- package/dist/avatar-ng/avatar-ng.js +18 -0
- package/dist/badge/badge.js +6 -8
- package/dist/badge-ng/badge-ng.js +16 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +61 -0
- package/dist/button/button.js +16 -10
- package/dist/button-group/button-group.js +4 -4
- package/dist/button-group/caption.js +24 -5
- package/dist/button-group-ng/button-group-ng.js +38 -0
- package/dist/button-ng/button-ng.js +223 -0
- package/dist/button-set/button-set.js +3 -4
- package/dist/button-set-ng/button-set-ng.js +19 -0
- package/dist/button-toolbar/button-toolbar.js +3 -4
- package/dist/button-toolbar-ng/button-toolbar-ng.js +23 -0
- package/dist/caret/caret.js +4 -2
- package/dist/checkbox/checkbox.js +11 -13
- package/dist/checkbox-ng/checkbox-ng.js +55 -0
- package/dist/code/code.js +136 -0
- package/dist/compiler-ng/compiler-ng.js +53 -0
- package/dist/confirm/confirm.js +8 -5
- package/dist/confirm-ng/confirm-ng.js +66 -0
- package/dist/confirm-service/confirm-service.js +21 -18
- package/dist/content-layout/content-layout.js +8 -10
- package/dist/contenteditable/contenteditable.js +14 -17
- package/dist/data-list/data-list.js +12 -9
- package/dist/data-list/data-list.mock.js +2 -2
- package/dist/data-list/item.js +7 -5
- package/dist/data-list/selection.js +7 -3
- package/dist/data-list/title.js +3 -1
- package/dist/data-list-ng/data-list-ng.js +59 -0
- package/dist/date-picker/consts.js +1 -2
- package/dist/date-picker/date-input.js +17 -12
- package/dist/date-picker/date-picker.js +41 -32
- package/dist/date-picker/date-popup.js +51 -28
- package/dist/date-picker/day.js +4 -4
- package/dist/date-picker/formats.js +1 -1
- package/dist/date-picker/month-names.js +18 -11
- package/dist/date-picker/month-slider.js +4 -4
- package/dist/date-picker/month.js +13 -7
- package/dist/date-picker/months.js +3 -3
- package/dist/date-picker/weekdays.js +12 -4
- package/dist/date-picker/years.js +4 -4
- package/dist/dialog/dialog.js +21 -16
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -1
- package/dist/dialog-ng/dialog-ng.js +601 -0
- package/dist/dialog-ng/dialog-ng__template.js +71 -0
- package/dist/docked-panel-ng/docked-panel-ng.js +170 -0
- package/dist/dropdown/anchor.js +2 -1
- package/dist/dropdown/dropdown.js +22 -18
- package/dist/dropdown-menu/dropdown-menu.js +175 -0
- package/dist/error-bubble/error-bubble.js +7 -9
- package/dist/error-message/error-message.js +4 -4
- package/dist/error-message-ng/error-message-ng.js +53 -0
- package/dist/footer/footer.js +6 -119
- package/dist/footer-ng/footer-ng.js +75 -0
- package/dist/form-ng/form-ng.js +169 -0
- package/dist/global/angular-component-factory.js +6 -4
- package/dist/global/compose.js +8 -2
- package/dist/global/composeRefs.js +13 -7
- package/dist/global/conic-gradient.js +13 -12
- package/dist/global/create-stateful-context.js +12 -9
- package/dist/global/data-tests.js +10 -3
- package/dist/global/dom.js +12 -5
- package/dist/global/focus-sensor-hoc.js +20 -19
- package/dist/global/fuzzy-highlight.js +10 -6
- package/dist/global/get-event-key.js +1 -1
- package/dist/global/get-uid.js +1 -1
- package/dist/global/inject-styles.js +4 -1
- package/dist/global/linear-function.js +1 -2
- package/dist/global/listeners.js +1 -1
- package/dist/global/memoize.js +3 -2
- package/dist/global/normalize-indent.js +1 -1
- package/dist/global/promise-with-timeout.js +5 -4
- package/dist/global/radial-gradient-mask.js +6 -3
- package/dist/global/react-dom-renderer.js +3 -3
- package/dist/global/rerender-hoc.js +14 -12
- package/dist/global/ring-angular-component.js +6 -2
- package/dist/global/schedule-raf.js +1 -1
- package/dist/global/sniffer.js +1 -1
- package/dist/global/supports-css.js +1 -1
- package/dist/global/theme.js +27 -26
- package/dist/global/trivial-template-tag.js +6 -2
- package/dist/global/url.js +3 -1
- package/dist/global/variables_dark.js +1 -1
- package/dist/grid/col.js +6 -8
- package/dist/grid/grid.js +5 -7
- package/dist/grid/row.js +6 -8
- package/dist/group/group.js +7 -10
- package/dist/group-ng/group-ng.js +11 -0
- package/dist/header/header.js +29 -26
- package/dist/header/logo.js +8 -9
- package/dist/header/profile.js +54 -46
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.js +23 -19
- package/dist/header/smart-profile.js +29 -26
- package/dist/header/smart-services.js +12 -11
- package/dist/header/tray-icon.js +12 -12
- package/dist/header/tray.js +6 -8
- package/dist/heading/heading.js +10 -13
- package/dist/http/http.js +53 -44
- package/dist/http/http.mock.js +4 -4
- 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 +5 -3
- package/dist/icon/icon.js +8 -8
- package/dist/icon/icon__svg.js +81 -6
- package/dist/icon/index.js +2 -1
- package/dist/icon-ng/icon-ng.js +89 -0
- package/dist/input/input.js +11 -14
- package/dist/input-ng/input-ng.js +166 -0
- package/dist/island/adaptive-island-hoc.js +10 -9
- package/dist/island/content.js +8 -10
- package/dist/island/header.js +7 -9
- package/dist/island/island.js +6 -9
- package/dist/island-legacy/content-legacy.js +6 -8
- package/dist/island-legacy/header-legacy.js +6 -8
- package/dist/island-legacy/island-legacy.js +6 -8
- package/dist/island-ng/island-content-ng.js +56 -0
- package/dist/island-ng/island-header-ng.js +32 -0
- package/dist/island-ng/island-ng-class-fixer.js +9 -0
- package/dist/island-ng/island-ng.js +31 -0
- package/dist/link/clickableLink.js +8 -10
- package/dist/link/link.js +12 -15
- package/dist/link-ng/link-ng.js +25 -0
- package/dist/list/list.js +100 -76
- package/dist/list/list__custom.js +15 -12
- package/dist/list/list__hint.js +1 -1
- package/dist/list/list__item.js +22 -15
- package/dist/list/list__link.js +11 -12
- package/dist/list/list__separator.js +1 -1
- package/dist/list/list__title.js +1 -1
- package/dist/list/list__users-groups-source.js +13 -8
- package/dist/loader/loader.js +8 -10
- package/dist/loader/loader__core.js +9 -8
- package/dist/loader-inline/inject-styles.js +1 -1
- package/dist/loader-inline/loader-inline.js +6 -8
- package/dist/loader-inline-ng/loader-inline-ng.js +42 -0
- package/dist/loader-ng/loader-ng.js +43 -0
- package/dist/loader-screen/loader-screen.js +7 -10
- package/dist/loader-screen-ng/loader-screen-ng.js +99 -0
- package/dist/login-dialog/login-dialog.js +7 -5
- package/dist/login-dialog/service.js +9 -6
- package/dist/markdown/code.js +30 -0
- package/dist/markdown/heading.js +23 -0
- package/dist/markdown/link.js +30 -0
- package/dist/markdown/markdown.js +73 -0
- package/dist/message/message.js +7 -6
- package/dist/message-bundle-ng/message-bundle-ng.js +111 -0
- package/dist/old-browsers-message/old-browsers-message.js +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
- package/dist/old-browsers-message/white-list.js +4 -5
- package/dist/pager/pager.js +20 -11
- package/dist/pager-ng/pager-ng.js +96 -0
- package/dist/panel/panel.js +7 -10
- package/dist/panel-ng/panel-ng.js +16 -0
- package/dist/permissions/permissions.js +4 -2
- package/dist/permissions/permissions__cache.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +274 -0
- package/dist/place-under-ng/place-under-ng.js +157 -0
- package/dist/popup/popup.js +11 -11
- package/dist/popup/popup.target.js +4 -5
- package/dist/popup/position.js +18 -16
- package/dist/popup-menu/popup-menu.js +23 -16
- package/dist/progress-bar/progress-bar.js +14 -12
- package/dist/progress-bar-ng/progress-bar-ng.js +15 -0
- package/dist/promised-click-ng/promised-click-ng.js +126 -0
- package/dist/proxy-attrs/proxy-attrs.js +1 -1
- package/dist/query-assist/query-assist.js +156 -76
- package/dist/query-assist/query-assist__suggestions.js +5 -1
- package/dist/query-assist-ng/query-assist-ng.js +82 -0
- package/dist/radio/radio.js +9 -7
- package/dist/radio/radio__item.js +13 -18
- package/dist/radio-ng/radio-ng.js +63 -0
- package/dist/save-field-ng/save-field-ng.js +335 -0
- package/dist/save-field-ng/save-field-ng__template.js +34 -0
- package/dist/select/select.js +118 -95
- package/dist/select/select__filter.js +6 -1
- package/dist/select/select__popup.js +12 -6
- package/dist/select-ng/select-ng.js +621 -0
- package/dist/select-ng/select-ng__lazy.js +150 -0
- package/dist/select-ng/select-ng__options.js +145 -0
- package/dist/shortcuts/core.js +7 -4
- package/dist/shortcuts/shortcuts-hoc.js +8 -10
- package/dist/shortcuts/shortcuts.js +6 -6
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +120 -0
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +50 -0
- package/dist/shortcuts-ng/shortcuts-ng.js +261 -0
- package/dist/sidebar-ng/sidebar-ng.js +111 -0
- package/dist/sidebar-ng/sidebar-ng__button-template.js +20 -0
- package/dist/sidebar-ng/sidebar-ng__template.js +12 -0
- package/dist/storage/storage.js +3 -2
- package/dist/storage/storage__fallback.js +3 -2
- package/dist/storage/storage__local.js +5 -3
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +15 -13
- package/dist/table/cell.js +2 -2
- package/dist/table/disable-hover-hoc.js +4 -4
- package/dist/table/header-cell.js +10 -11
- package/dist/table/header.js +19 -12
- package/dist/table/multitable.js +33 -25
- package/dist/table/row-with-focus-sensor.js +7 -5
- package/dist/table/row.js +17 -15
- package/dist/table/selection-adapter.js +1 -1
- package/dist/table/selection-shortcuts-hoc.js +10 -8
- package/dist/table/selection.js +25 -17
- package/dist/table/smart-table.js +16 -10
- package/dist/table/table.js +38 -33
- package/dist/table-legacy-ng/table-legacy-ng.js +501 -0
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +122 -0
- package/dist/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +123 -0
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +179 -0
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +56 -0
- package/dist/table-ng/smart-table-ng.js +65 -0
- package/dist/table-ng/table-ng.js +64 -0
- package/dist/tabs/collapsible-more.js +37 -30
- package/dist/tabs/collapsible-tab.js +16 -14
- package/dist/tabs/collapsible-tabs.js +83 -80
- package/dist/tabs/custom-item.js +6 -3
- package/dist/tabs/dumb-tabs.js +19 -14
- package/dist/tabs/smart-tabs.js +13 -11
- package/dist/tabs/tab-link.js +13 -7
- package/dist/tabs/tab.js +1 -1
- package/dist/tabs/tabs.js +5 -1
- package/dist/tabs-ng/tabs-ng.js +193 -0
- package/dist/tabs-ng/tabs-ng__template.js +40 -0
- package/dist/tag/tag.js +22 -16
- package/dist/tags-input/tags-input.js +48 -36
- package/dist/tags-input-ng/tags-input-ng.js +89 -0
- package/dist/tags-list/tags-list.js +8 -9
- package/dist/template-ng/template-ng.js +70 -0
- package/dist/text/text.js +7 -9
- package/dist/theme-ng/theme-ng.js +44 -0
- package/dist/title-ng/title-ng.js +114 -0
- package/dist/toggle/toggle.js +8 -11
- package/dist/toggle-ng/toggle-ng.js +16 -0
- package/dist/tooltip/tooltip.js +16 -14
- package/dist/tooltip-ng/tooltip-ng.js +98 -0
- package/dist/user-agreement/service.js +409 -0
- package/dist/user-agreement/toolbox.eula.js +162 -0
- package/dist/user-agreement/user-agreement.js +167 -0
- package/dist/user-card/card.js +3 -0
- package/dist/user-card/smart-user-card-tooltip.js +16 -16
- package/dist/user-card/tooltip.js +9 -7
- package/dist/user-card/user-card.js +5 -2
- package/dist/user-card-ng/user-card-ng.js +59 -0
- package/package.json +83 -81
- package/webpack.config.js +14 -10
- package/components/button-set-ng/button-set-ng.html +0 -1
- package/components/footer-ng/footer-ng.html +0 -13
- package/components/form-ng/form-ng__error-bubble.html +0 -3
- package/components/table-legacy-ng/table-legacy-ng.html +0 -4
- package/components/table-legacy-ng/table-legacy-ng__column.html +0 -12
- package/components/table-legacy-ng/table-legacy-ng__header.html +0 -4
- package/components/table-legacy-ng/table-legacy-ng__pager.html +0 -7
- package/components/table-legacy-ng/table-legacy-ng__row.html +0 -12
- package/components/table-legacy-ng/table-legacy-ng__title.html +0 -9
- package/dist/_helpers/caption.js +0 -25
- package/dist/_helpers/icon__svg.js +0 -83
|
@@ -4,8 +4,8 @@ import '../global/memoize.js';
|
|
|
4
4
|
import '../global/radial-gradient-mask.js';
|
|
5
5
|
import '../global/theme.js';
|
|
6
6
|
export { i as default } from '../_helpers/inject-styles.js';
|
|
7
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
8
7
|
import 'conic-gradient';
|
|
9
8
|
import '../global/supports-css.js';
|
|
10
9
|
import '../global/get-uid.js';
|
|
10
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
11
11
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -23,15 +23,13 @@ class LoaderInline extends PureComponent {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
render() {
|
|
26
|
-
const
|
|
27
|
-
{
|
|
26
|
+
const {
|
|
28
27
|
className,
|
|
29
28
|
theme,
|
|
30
29
|
'data-test': dataTest,
|
|
31
|
-
children
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
children,
|
|
31
|
+
...restProps
|
|
32
|
+
} = this.props;
|
|
35
33
|
const classes = classNames(modules_e49a3529.loader, className, `${modules_e49a3529.loader}_${theme}`);
|
|
36
34
|
const loader = /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
|
37
35
|
"data-test": joinDataTestAttributes('ring-loader-inline', dataTest),
|
|
@@ -55,4 +53,4 @@ _defineProperty(LoaderInline, "Theme", Theme);
|
|
|
55
53
|
|
|
56
54
|
var LoaderInline$1 = withTheme()(LoaderInline);
|
|
57
55
|
|
|
58
|
-
export
|
|
56
|
+
export { LoaderInline$1 as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import angular from 'angular';
|
|
3
|
+
import { m as modules_e49a3529, i as injectStyles } from '../_helpers/inject-styles.js';
|
|
4
|
+
import Theme from '../global/theme.js';
|
|
5
|
+
import '../global/conic-gradient.js';
|
|
6
|
+
import 'conic-gradient';
|
|
7
|
+
import '../global/memoize.js';
|
|
8
|
+
import '../global/supports-css.js';
|
|
9
|
+
import '../global/inject-styles.js';
|
|
10
|
+
import '../global/radial-gradient-mask.js';
|
|
11
|
+
import '../global/get-uid.js';
|
|
12
|
+
import 'react';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @name Loader Inline Ng
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const angularModule = angular.module('Ring.loader-inline', []);
|
|
19
|
+
|
|
20
|
+
class LoaderController {
|
|
21
|
+
constructor() {
|
|
22
|
+
_defineProperty(this, "getThemeClass", () => `${modules_e49a3529.loader}_${this.theme}`);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
$onInit() {
|
|
26
|
+
injectStyles();
|
|
27
|
+
this.theme = this.theme || Theme.LIGHT;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
LoaderController.$inject = [];
|
|
33
|
+
angularModule.component('rgLoaderInline', {
|
|
34
|
+
bindings: {
|
|
35
|
+
theme: '@?'
|
|
36
|
+
},
|
|
37
|
+
template: `<div data-test="ring-loader-inline-ng" class="${modules_e49a3529.loader}" ng-class="$ctrl.getThemeClass()"></div>`,
|
|
38
|
+
controller: LoaderController
|
|
39
|
+
});
|
|
40
|
+
var loaderInlineNg = angularModule.name;
|
|
41
|
+
|
|
42
|
+
export { loaderInlineNg as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import angular from 'angular';
|
|
3
|
+
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
4
|
+
import LoaderCore from '../loader/loader__core.js';
|
|
5
|
+
import '../global/dom.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name Loader Ng
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const angularModule = angular.module('Ring.loader', []);
|
|
12
|
+
|
|
13
|
+
class RgLoaderComponent extends RingAngularComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
const {
|
|
17
|
+
$element
|
|
18
|
+
} = this.$inject;
|
|
19
|
+
this.loader = new LoaderCore($element[0], {
|
|
20
|
+
message: this.message
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
$onDestroy() {
|
|
25
|
+
this.loader.destroy();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
$onChanges(changes) {
|
|
29
|
+
this.loader.updateMessage(changes.message.currentValue);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_defineProperty(RgLoaderComponent, "$inject", ['$element']);
|
|
35
|
+
|
|
36
|
+
_defineProperty(RgLoaderComponent, "bindings", {
|
|
37
|
+
message: '@'
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
angularModule.component('rgLoader', RgLoaderComponent);
|
|
41
|
+
var loaderNg = angularModule.name;
|
|
42
|
+
|
|
43
|
+
export { loaderNg as default };
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import Loader from '../loader/loader.js';
|
|
6
|
+
import { m as modules_122a82e9 } from '../_helpers/loader-screen.js';
|
|
6
7
|
import '../global/data-tests.js';
|
|
7
8
|
import '../loader/loader__core.js';
|
|
8
9
|
import '../global/dom.js';
|
|
9
10
|
|
|
10
|
-
var modules_122a82e9 = {"loaderScreen":"loaderScreen_loaderScreen__58811ca6","loader":"loaderScreen_loader__58811ca6","loaderWithoutSpacing":"loaderScreen_loaderWithoutSpacing__58811ca6"};
|
|
11
|
-
|
|
12
11
|
/**
|
|
13
12
|
* @name Loader Screen
|
|
14
13
|
*/
|
|
15
14
|
|
|
16
15
|
class LoaderScreen extends PureComponent {
|
|
17
16
|
render() {
|
|
18
|
-
const
|
|
19
|
-
{
|
|
17
|
+
const {
|
|
20
18
|
message,
|
|
21
19
|
className,
|
|
22
|
-
containerClassName
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
containerClassName,
|
|
21
|
+
...restProps
|
|
22
|
+
} = this.props;
|
|
26
23
|
const containerClasses = classNames(containerClassName, modules_122a82e9.loaderScreen);
|
|
27
24
|
const loaderClasses = classNames(className, modules_122a82e9.loader, {
|
|
28
25
|
[modules_122a82e9.loaderWithoutSpacing]: !message
|
|
@@ -43,4 +40,4 @@ _defineProperty(LoaderScreen, "propTypes", {
|
|
|
43
40
|
message: PropTypes.string
|
|
44
41
|
});
|
|
45
42
|
|
|
46
|
-
export default
|
|
43
|
+
export { LoaderScreen as default };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import loaderNg from '../loader-ng/loader-ng.js';
|
|
3
|
+
import { m as modules_122a82e9 } from '../_helpers/loader-screen.js';
|
|
4
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import '../global/ring-angular-component.js';
|
|
6
|
+
import '../loader/loader__core.js';
|
|
7
|
+
import '../global/dom.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @name Loader Screen Ng
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const angularModule = angular.module('Ring.loader-screen', [loaderNg]);
|
|
14
|
+
angularModule.service('loaderScreen', ["$timeout", "$rootScope", function service($timeout, $rootScope) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
|
|
17
|
+
// TODO in CSS Modules version put constant to global.css
|
|
18
|
+
const ordinaryLoadingTTL = 100;
|
|
19
|
+
let initialLoading = false;
|
|
20
|
+
let loadingFailed = false;
|
|
21
|
+
let showLoader;
|
|
22
|
+
let showLoaderPromise;
|
|
23
|
+
|
|
24
|
+
this.startLoading = function () {
|
|
25
|
+
let ttl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ordinaryLoadingTTL;
|
|
26
|
+
|
|
27
|
+
if (showLoaderPromise) {
|
|
28
|
+
return; // already scheduled to show
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
showLoaderPromise = $timeout(() => {
|
|
32
|
+
_this.setVisible(true);
|
|
33
|
+
}, ttl);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
this.stopLoading = () => {
|
|
37
|
+
if (showLoaderPromise) {
|
|
38
|
+
$timeout.cancel(showLoaderPromise);
|
|
39
|
+
showLoaderPromise = null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
this.setVisible(false);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
this.startInitialLoading = () => {
|
|
46
|
+
initialLoading = true;
|
|
47
|
+
this.setVisible(true);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
this.stopInitialLoading = () => {
|
|
51
|
+
initialLoading = false;
|
|
52
|
+
this.setVisible(false);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
$rootScope.isInitialLoading = () => initialLoading;
|
|
56
|
+
|
|
57
|
+
$rootScope.isLoaderVisible = () => showLoader;
|
|
58
|
+
|
|
59
|
+
$rootScope.isLoadingFailed = () => loadingFailed;
|
|
60
|
+
|
|
61
|
+
this.failInitialLoading = error => {
|
|
62
|
+
this.stopInitialLoading();
|
|
63
|
+
loadingFailed = true;
|
|
64
|
+
$rootScope.error = error;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
this.setVisible = visible => {
|
|
68
|
+
showLoader = visible;
|
|
69
|
+
};
|
|
70
|
+
/* eslint-disable angular/on-watch */
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
$rootScope.$on('$routeChangeSuccess', () => {
|
|
74
|
+
this.stopInitialLoading();
|
|
75
|
+
});
|
|
76
|
+
$rootScope.$on('$routeChangeError', (event, current, previous, rejection) => {
|
|
77
|
+
if (!rejection || !(rejection.silent || rejection.authRedirect)) {
|
|
78
|
+
this.failInitialLoading(rejection);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
/* eslint-enable angular/on-watch */
|
|
82
|
+
}]);
|
|
83
|
+
angularModule.directive('rgLoaderScreen', function rgLoaderScreenDirective() {
|
|
84
|
+
return {
|
|
85
|
+
restrict: 'A',
|
|
86
|
+
scope: {
|
|
87
|
+
message: '@rgLoaderScreen'
|
|
88
|
+
},
|
|
89
|
+
template: `
|
|
90
|
+
<div class="${modules_122a82e9.loaderScreen}" ng-if="$root.isLoaderVisible()">
|
|
91
|
+
<rg-loader class="${modules_122a82e9.loader}"
|
|
92
|
+
message="{{$root.isInitialLoading() ? message : ''}}"></rg-loader>
|
|
93
|
+
</div>
|
|
94
|
+
`
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
var loaderScreenNg = angularModule.name;
|
|
98
|
+
|
|
99
|
+
export { loaderScreenNg as default };
|
|
@@ -24,7 +24,8 @@ import '@jetbrains/icons/chevron-10px';
|
|
|
24
24
|
import '../icon/icon.js';
|
|
25
25
|
import 'util-deprecate';
|
|
26
26
|
import '../icon/icon__constants.js';
|
|
27
|
-
import '../_helpers/
|
|
27
|
+
import '../_helpers/icon.js';
|
|
28
|
+
import '../icon/icon__svg.js';
|
|
28
29
|
import '../global/memoize.js';
|
|
29
30
|
import '../global/theme.js';
|
|
30
31
|
import '../link/clickableLink.js';
|
|
@@ -40,11 +41,12 @@ import 'element-resize-detector';
|
|
|
40
41
|
import '../global/schedule-raf.js';
|
|
41
42
|
import '../loader/loader.js';
|
|
42
43
|
import '../loader/loader__core.js';
|
|
44
|
+
import '../_helpers/loader-screen.js';
|
|
43
45
|
import '../auth/response-parser.js';
|
|
44
46
|
import 'es6-error';
|
|
45
47
|
import '../global/url.js';
|
|
46
48
|
|
|
47
|
-
var modules_45da1992 = {"unit":"8px","iFrame":"
|
|
49
|
+
var modules_45da1992 = {"unit":"8px","iFrame":"iFrame_rui_ea28","dialogContent":"dialogContent_rui_ea28","nonOpaqueLoader":"nonOpaqueLoader_rui_ea28","fallbackLinkContainer":"fallbackLinkContainer_rui_ea28"};
|
|
48
50
|
|
|
49
51
|
const HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
|
50
52
|
const HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
|
@@ -56,8 +58,8 @@ const DEFAULT_SHOW_FALLBACK_TIMEOUT = 5000;
|
|
|
56
58
|
*/
|
|
57
59
|
|
|
58
60
|
class LoginDialog extends Component {
|
|
59
|
-
constructor(
|
|
60
|
-
super(...
|
|
61
|
+
constructor() {
|
|
62
|
+
super(...arguments);
|
|
61
63
|
|
|
62
64
|
_defineProperty(this, "state", {
|
|
63
65
|
loading: true,
|
|
@@ -181,4 +183,4 @@ _defineProperty(LoginDialog, "defaultProps", {
|
|
|
181
183
|
showFallbackTimeout: DEFAULT_SHOW_FALLBACK_TIMEOUT
|
|
182
184
|
});
|
|
183
185
|
|
|
184
|
-
export default
|
|
186
|
+
export { LoginDialog as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { unmountComponentAtNode, render } from 'react-dom';
|
|
4
3
|
import LoginDialog from './login-dialog.js';
|
|
4
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import '../dialog/dialog.js';
|
|
7
7
|
import 'classnames';
|
|
@@ -29,7 +29,8 @@ import '@jetbrains/icons/chevron-10px';
|
|
|
29
29
|
import '../icon/icon.js';
|
|
30
30
|
import 'util-deprecate';
|
|
31
31
|
import '../icon/icon__constants.js';
|
|
32
|
-
import '../_helpers/
|
|
32
|
+
import '../_helpers/icon.js';
|
|
33
|
+
import '../icon/icon__svg.js';
|
|
33
34
|
import '../global/memoize.js';
|
|
34
35
|
import '../global/theme.js';
|
|
35
36
|
import '../link/clickableLink.js';
|
|
@@ -40,6 +41,7 @@ import 'scrollbar-width';
|
|
|
40
41
|
import '../loader-screen/loader-screen.js';
|
|
41
42
|
import '../loader/loader.js';
|
|
42
43
|
import '../loader/loader__core.js';
|
|
44
|
+
import '../_helpers/loader-screen.js';
|
|
43
45
|
import '../auth/background-flow.js';
|
|
44
46
|
import '../auth/response-parser.js';
|
|
45
47
|
import 'es6-error';
|
|
@@ -54,13 +56,14 @@ function renderLoginDialog(props) {
|
|
|
54
56
|
render( /*#__PURE__*/React.createElement(LoginDialog, props), containerElement);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
function showAuthDialog(
|
|
58
|
-
|
|
59
|
+
function showAuthDialog() {
|
|
60
|
+
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
61
|
+
renderLoginDialog({ ...props,
|
|
59
62
|
show: true
|
|
60
|
-
})
|
|
63
|
+
});
|
|
61
64
|
return () => {
|
|
62
65
|
unmountComponentAtNode(containerElement);
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
|
|
66
|
-
export default
|
|
69
|
+
export { showAuthDialog as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import Code from '../code/code.js';
|
|
4
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'classnames';
|
|
6
|
+
import 'highlight.js/lib/core';
|
|
7
|
+
import '../global/normalize-indent.js';
|
|
8
|
+
import '../global/trivial-template-tag.js';
|
|
9
|
+
import '../global/memoize.js';
|
|
10
|
+
|
|
11
|
+
const MarkdownCode = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
value,
|
|
14
|
+
language,
|
|
15
|
+
inline
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/React.createElement(Code, {
|
|
18
|
+
language: language,
|
|
19
|
+
code: value || '',
|
|
20
|
+
inline: inline
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
MarkdownCode.propTypes = {
|
|
25
|
+
language: PropTypes.string,
|
|
26
|
+
value: PropTypes.string,
|
|
27
|
+
inline: PropTypes.bool
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { MarkdownCode as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import Heading from '../heading/heading.js';
|
|
4
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'classnames';
|
|
6
|
+
import 'util-deprecate';
|
|
7
|
+
|
|
8
|
+
const MarkdownHeading = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
level,
|
|
11
|
+
children
|
|
12
|
+
} = _ref;
|
|
13
|
+
return /*#__PURE__*/React.createElement(Heading, {
|
|
14
|
+
level: level
|
|
15
|
+
}, children);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
MarkdownHeading.propTypes = {
|
|
19
|
+
level: PropTypes.number,
|
|
20
|
+
children: PropTypes.node
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { MarkdownHeading as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import Link from '../link/link.js';
|
|
4
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'focus-visible';
|
|
6
|
+
import 'classnames';
|
|
7
|
+
import '../global/memoize.js';
|
|
8
|
+
import '../global/data-tests.js';
|
|
9
|
+
import '../link/clickableLink.js';
|
|
10
|
+
import '../_helpers/link.js';
|
|
11
|
+
|
|
12
|
+
const MarkdownLink = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
href,
|
|
15
|
+
title,
|
|
16
|
+
children
|
|
17
|
+
} = _ref;
|
|
18
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
19
|
+
href,
|
|
20
|
+
title
|
|
21
|
+
}, children);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
MarkdownLink.propTypes = {
|
|
25
|
+
href: PropTypes.string,
|
|
26
|
+
title: PropTypes.string,
|
|
27
|
+
children: PropTypes.node
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { MarkdownLink as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { PureComponent } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import ReactMarkdown from 'react-markdown';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import RemarkBreaks from 'remark-breaks';
|
|
7
|
+
import RemarkGFM from 'remark-gfm';
|
|
8
|
+
import normalizeIndent from '../global/normalize-indent.js';
|
|
9
|
+
import trivialTemplateTag from '../global/trivial-template-tag.js';
|
|
10
|
+
import MarkdownCode from './code.js';
|
|
11
|
+
import MarkdownLink from './link.js';
|
|
12
|
+
import MarkdownHeading from './heading.js';
|
|
13
|
+
import '../code/code.js';
|
|
14
|
+
import 'highlight.js/lib/core';
|
|
15
|
+
import '../global/memoize.js';
|
|
16
|
+
import '../link/link.js';
|
|
17
|
+
import 'focus-visible';
|
|
18
|
+
import '../global/data-tests.js';
|
|
19
|
+
import '../link/clickableLink.js';
|
|
20
|
+
import '../_helpers/link.js';
|
|
21
|
+
import '../heading/heading.js';
|
|
22
|
+
import 'util-deprecate';
|
|
23
|
+
|
|
24
|
+
var modules_9c709e64 = {"unit":"8px","p-margin":"10px","inline":"inline_rui_273a","markdown":"markdown_rui_273a font_rui_750f"};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @name Markdown
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
class Markdown extends PureComponent {
|
|
31
|
+
render() {
|
|
32
|
+
const {
|
|
33
|
+
className,
|
|
34
|
+
renderers,
|
|
35
|
+
inline,
|
|
36
|
+
source,
|
|
37
|
+
plugins = [],
|
|
38
|
+
...restProps
|
|
39
|
+
} = this.props;
|
|
40
|
+
const classes = classNames(className, {
|
|
41
|
+
[modules_9c709e64.markdown]: !inline,
|
|
42
|
+
[modules_9c709e64.inline]: inline
|
|
43
|
+
});
|
|
44
|
+
return /*#__PURE__*/React.createElement(ReactMarkdown, _extends({
|
|
45
|
+
className: classes,
|
|
46
|
+
source: normalizeIndent(source),
|
|
47
|
+
plugins: [RemarkBreaks, RemarkGFM, ...plugins],
|
|
48
|
+
renderers: {
|
|
49
|
+
link: MarkdownLink,
|
|
50
|
+
linkReference: MarkdownLink,
|
|
51
|
+
code: MarkdownCode,
|
|
52
|
+
inlineCode: MarkdownCode,
|
|
53
|
+
heading: MarkdownHeading,
|
|
54
|
+
...renderers
|
|
55
|
+
}
|
|
56
|
+
}, restProps));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
_defineProperty(Markdown, "propTypes", {
|
|
62
|
+
inline: PropTypes.bool,
|
|
63
|
+
source: PropTypes.string,
|
|
64
|
+
className: PropTypes.string,
|
|
65
|
+
renderers: PropTypes.object,
|
|
66
|
+
plugins: PropTypes.array
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const md = trivialTemplateTag(source => /*#__PURE__*/React.createElement(Markdown, {
|
|
70
|
+
source
|
|
71
|
+
}));
|
|
72
|
+
|
|
73
|
+
export { Markdown as default, md };
|
package/dist/message/message.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty,
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -22,7 +22,8 @@ import '../popup/popup.consts.js';
|
|
|
22
22
|
import '../popup/popup.target.js';
|
|
23
23
|
import 'util-deprecate';
|
|
24
24
|
import '../icon/icon__constants.js';
|
|
25
|
-
import '../_helpers/
|
|
25
|
+
import '../_helpers/icon.js';
|
|
26
|
+
import '../icon/icon__svg.js';
|
|
26
27
|
import '../global/memoize.js';
|
|
27
28
|
import 'focus-visible';
|
|
28
29
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -30,7 +31,7 @@ import '../global/theme.js';
|
|
|
30
31
|
import '../link/clickableLink.js';
|
|
31
32
|
import '../_helpers/button__classes.js';
|
|
32
33
|
|
|
33
|
-
var modules_8b837449 = {"unit":"8px","padding":"12px","message":"
|
|
34
|
+
var modules_8b837449 = {"unit":"8px","padding":"12px","message":"message_rui_4faf","icon":"icon_rui_4faf","title":"title_rui_4faf fontLower_rui_750f font_rui_750f","description":"description_rui_4faf fontSmallerLower_rui_750f fontSmaller_rui_750f fontLower_rui_750f font_rui_750f","button":"button_rui_4faf","tail":"tail_rui_4faf"};
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
37
|
* @name Message
|
|
@@ -106,8 +107,8 @@ const getTailOffsets = offset => ({
|
|
|
106
107
|
|
|
107
108
|
|
|
108
109
|
class Message extends Component {
|
|
109
|
-
constructor(
|
|
110
|
-
super(...
|
|
110
|
+
constructor() {
|
|
111
|
+
super(...arguments);
|
|
111
112
|
|
|
112
113
|
_defineProperty(this, "state", {});
|
|
113
114
|
|
|
@@ -229,4 +230,4 @@ _defineProperty(Message, "Directions", Directions);
|
|
|
229
230
|
|
|
230
231
|
_defineProperty(Message, "PopupProps", Popup.PopupProps);
|
|
231
232
|
|
|
232
|
-
export default
|
|
233
|
+
export { Message as default };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This service is used by directive to correctly show messages.
|
|
5
|
+
* You can decorate this service to provide your own localized messages.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const angularModule = angular.module('Ring.message-bundle', []);
|
|
9
|
+
/**
|
|
10
|
+
* Empty i18n function. If project supports localization, it should decorate i18n
|
|
11
|
+
* with translating function
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
function emptyI18n() {
|
|
15
|
+
return str => str;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function RingMessageBundle(ringI18n) {
|
|
19
|
+
const i18n = ringI18n;
|
|
20
|
+
/* eslint-disable camelcase */
|
|
21
|
+
|
|
22
|
+
this.form_required = () => i18n('Value is required');
|
|
23
|
+
|
|
24
|
+
this.form_invalid = () => i18n('Value is invalid');
|
|
25
|
+
|
|
26
|
+
this.form_url = () => i18n('Should be a valid URL');
|
|
27
|
+
|
|
28
|
+
this.form_email = () => i18n('Should be a valid email');
|
|
29
|
+
|
|
30
|
+
this.form_number = () => i18n('Should be a number');
|
|
31
|
+
|
|
32
|
+
this.form_maxlength = () => i18n('Is too long');
|
|
33
|
+
|
|
34
|
+
this.form_minlength = () => i18n('Is too short');
|
|
35
|
+
|
|
36
|
+
this.form_pattern = () => i18n('Doesn\'t match the pattern');
|
|
37
|
+
|
|
38
|
+
this.form_equalvalue = () => i18n('Is not the same');
|
|
39
|
+
|
|
40
|
+
this.form_unique = () => i18n('Is not unique');
|
|
41
|
+
|
|
42
|
+
this.form_max = () => i18n('Is out of range');
|
|
43
|
+
|
|
44
|
+
this.form_min = () => i18n('Is out of range');
|
|
45
|
+
|
|
46
|
+
this.form_save = () => i18n('Save');
|
|
47
|
+
|
|
48
|
+
this.form_saved = () => i18n('Saved');
|
|
49
|
+
|
|
50
|
+
this.form_cancel = () => i18n('Cancel');
|
|
51
|
+
|
|
52
|
+
this.avatareditor_nosupport = () => i18n('Sorry, your browser doesn\'t support File API');
|
|
53
|
+
|
|
54
|
+
this.avatareditor_noselected = () => i18n('No image file was selected');
|
|
55
|
+
|
|
56
|
+
this.avatareditor_delete = () => i18n('Delete Image');
|
|
57
|
+
|
|
58
|
+
this.avatareditor_add = () => i18n('Add Image');
|
|
59
|
+
|
|
60
|
+
this.errorpage_seriouslywrong = () => i18n('Oh-oh... Something went seriously wrong.');
|
|
61
|
+
|
|
62
|
+
this.errorpage_offline = () => i18n('There\'s nothing we can do: The server seems to be offline.');
|
|
63
|
+
|
|
64
|
+
this.errorpage_disconnected = () => i18n('Disconnected');
|
|
65
|
+
|
|
66
|
+
this.errorpage_disconnectedmsg = () => i18n('No, no one\'s there.');
|
|
67
|
+
|
|
68
|
+
this.errorpage_401 = () => i18n('Authorization required');
|
|
69
|
+
|
|
70
|
+
this.errorpage_401msg = () => i18n('You have requested access to a page that requires authorization, but the request is missing valid authentication credentials. It can also mean that your account has been banned.');
|
|
71
|
+
|
|
72
|
+
this.errorpage_403 = () => i18n('Woah, you can\'t touch this!');
|
|
73
|
+
|
|
74
|
+
this.errorpage_403msg = () => i18n('Unfortunately, you are not allowed to access the page you\'ve requested. It seems you don\'t have sufficient permissions.');
|
|
75
|
+
|
|
76
|
+
this.errorpage_404 = () => i18n('Nope, can\'t find it!');
|
|
77
|
+
|
|
78
|
+
this.errorpage_404msg = () => i18n('Despite our best efforts, there\'s nothing here to show you with the URL you requested. Most likely the URL is invalid or you don\'t have permissions to access the page.');
|
|
79
|
+
|
|
80
|
+
this.errorpage_500 = () => i18n('Oh-oh... Something went seriously wrong');
|
|
81
|
+
|
|
82
|
+
this.errorpage_500msg = () => i18n('Despite our best efforts, the server is not working properly.');
|
|
83
|
+
|
|
84
|
+
this.select_options_not_found = () => i18n('No options found');
|
|
85
|
+
|
|
86
|
+
this.select_loading = () => i18n('Loading...');
|
|
87
|
+
|
|
88
|
+
this.select_label = () => i18n('Select an option');
|
|
89
|
+
|
|
90
|
+
this.previous_page = () => i18n('previous');
|
|
91
|
+
|
|
92
|
+
this.next_page = () => i18n('next page');
|
|
93
|
+
|
|
94
|
+
this.first_page = () => i18n('First page');
|
|
95
|
+
|
|
96
|
+
this.last_page = () => i18n('Last page');
|
|
97
|
+
|
|
98
|
+
this.items_per_page = () => i18n('per page');
|
|
99
|
+
|
|
100
|
+
this.confirmation_ok = () => i18n('Ok');
|
|
101
|
+
|
|
102
|
+
this.confirmation_cancel = () => i18n('Cancel');
|
|
103
|
+
/* eslint-enable camelcase */
|
|
104
|
+
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
angularModule.factory('ringI18n', emptyI18n);
|
|
108
|
+
angularModule.service('RingMessageBundle', ['ringI18n', RingMessageBundle]);
|
|
109
|
+
var MessageBundle = angularModule.name;
|
|
110
|
+
|
|
111
|
+
export { MessageBundle as default };
|