@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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { PureComponent } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import highlight from 'highlight.js/lib/core';
|
|
6
|
+
export { default as highlight } from 'highlight.js/lib/core';
|
|
7
|
+
import normalizeIndent from '../global/normalize-indent.js';
|
|
8
|
+
import trivialTemplateTag from '../global/trivial-template-tag.js';
|
|
9
|
+
import memoize from '../global/memoize.js';
|
|
10
|
+
|
|
11
|
+
var modules_66c414ea = {"unit":"8px","code":"code_rui_4f55","inline":"inline_rui_4f55","softWrap":"softWrap_rui_4f55"};
|
|
12
|
+
|
|
13
|
+
var modules_39cf09e8 = {"highlightContainer":"highlightContainer_rui_d494"};
|
|
14
|
+
|
|
15
|
+
function noop() {}
|
|
16
|
+
|
|
17
|
+
const registerLanguage = memoize(async language => {
|
|
18
|
+
const languageExports = await import(
|
|
19
|
+
/* webpackChunkName: "highlight-[request]" */
|
|
20
|
+
`highlight.js/lib/languages/${language}`);
|
|
21
|
+
highlight.registerLanguage(language, languageExports.default);
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* @name Code
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
class Code extends PureComponent {
|
|
28
|
+
componentDidMount() {
|
|
29
|
+
this.highlight();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
componentDidUpdate() {
|
|
33
|
+
this.highlight();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async highlight() {
|
|
37
|
+
const codeRef = this.codeRef;
|
|
38
|
+
|
|
39
|
+
if (codeRef == null) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const {
|
|
44
|
+
language,
|
|
45
|
+
inline,
|
|
46
|
+
replacer
|
|
47
|
+
} = this.props;
|
|
48
|
+
|
|
49
|
+
if (!inline) {
|
|
50
|
+
if (language != null && highlight.getLanguage(language) == null) {
|
|
51
|
+
await registerLanguage(language);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
highlight.highlightElement(codeRef);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
replacer(codeRef);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
get codeRef() {
|
|
61
|
+
const {
|
|
62
|
+
codeRef
|
|
63
|
+
} = this.props;
|
|
64
|
+
return !codeRef || this.isFunctionCodeRef ? this.code : codeRef.current;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
get isFunctionCodeRef() {
|
|
68
|
+
return typeof this.props.codeRef === 'function';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
get initCodeRef() {
|
|
72
|
+
const {
|
|
73
|
+
codeRef
|
|
74
|
+
} = this.props;
|
|
75
|
+
|
|
76
|
+
if (codeRef && !this.isFunctionCodeRef) {
|
|
77
|
+
return codeRef;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return ref => {
|
|
81
|
+
this.code = ref;
|
|
82
|
+
|
|
83
|
+
if (this.isFunctionCodeRef) {
|
|
84
|
+
codeRef(this.code);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
render() {
|
|
90
|
+
const {
|
|
91
|
+
code,
|
|
92
|
+
className,
|
|
93
|
+
inline,
|
|
94
|
+
softWrap,
|
|
95
|
+
language
|
|
96
|
+
} = this.props;
|
|
97
|
+
const Tag = inline ? 'span' : 'pre';
|
|
98
|
+
const classes = classNames(modules_66c414ea.code, className, language, {
|
|
99
|
+
[modules_66c414ea.inline]: inline,
|
|
100
|
+
[modules_66c414ea.softWrap]: softWrap
|
|
101
|
+
});
|
|
102
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
103
|
+
className: classes
|
|
104
|
+
}, /*#__PURE__*/React.createElement("code", {
|
|
105
|
+
// should be focusable because it can be scrollable
|
|
106
|
+
tabIndex: inline ? -1 : 0,
|
|
107
|
+
ref: this.initCodeRef,
|
|
108
|
+
className: modules_39cf09e8.highlightContainer
|
|
109
|
+
}, normalizeIndent(code)));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
_defineProperty(Code, "propTypes", {
|
|
115
|
+
className: PropTypes.string,
|
|
116
|
+
code: PropTypes.string.isRequired,
|
|
117
|
+
inline: PropTypes.bool,
|
|
118
|
+
softWrap: PropTypes.bool,
|
|
119
|
+
language: PropTypes.string,
|
|
120
|
+
replacer: PropTypes.func,
|
|
121
|
+
codeRef: PropTypes.oneOfType([PropTypes.shape({
|
|
122
|
+
current: PropTypes.instanceOf(Element)
|
|
123
|
+
}), PropTypes.func])
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
_defineProperty(Code, "defaultProps", {
|
|
127
|
+
inline: false,
|
|
128
|
+
softWrap: false,
|
|
129
|
+
replacer: noop
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
const code = trivialTemplateTag(source => /*#__PURE__*/React.createElement(Code, {
|
|
133
|
+
code: source
|
|
134
|
+
}));
|
|
135
|
+
|
|
136
|
+
export { code, Code as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
|
|
3
|
+
const angularModule = angular.module('Ring.compiler', []).factory('rgCompiler', ["$q", "$controller", "$injector", "$compile", function rgCompilerFactory($q, $controller, $injector, $compile) {
|
|
4
|
+
return options => {
|
|
5
|
+
const template = options.template;
|
|
6
|
+
const controller = options.controller;
|
|
7
|
+
const controllerAs = options.controllerAs;
|
|
8
|
+
const resolve = angular.extend({}, options.resolve);
|
|
9
|
+
const bindToController = options.bindToController;
|
|
10
|
+
angular.forEach(resolve, (value, key) => {
|
|
11
|
+
if (angular.isString(value)) {
|
|
12
|
+
resolve[key] = $injector.get(value);
|
|
13
|
+
} else {
|
|
14
|
+
// Use comma expression to disable babel-plugin-angular-annotate
|
|
15
|
+
// Otherwise is fails with "Maximum call stack size exceeded" error
|
|
16
|
+
resolve[key] = $injector.invoke((value));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
angular.extend(resolve, options.locals);
|
|
20
|
+
return $q.all(resolve).then(locals => {
|
|
21
|
+
const element = options.element || angular.element('<div>').html(template.trim()).contents();
|
|
22
|
+
const linkFn = $compile(element, locals.$transclude);
|
|
23
|
+
locals.$element = element;
|
|
24
|
+
return {
|
|
25
|
+
locals,
|
|
26
|
+
element,
|
|
27
|
+
link: function link(scope) {
|
|
28
|
+
locals.$scope = scope;
|
|
29
|
+
|
|
30
|
+
if (controller) {
|
|
31
|
+
const invokeCtrl = $controller(controller, locals, true);
|
|
32
|
+
|
|
33
|
+
if (bindToController) {
|
|
34
|
+
angular.extend(invokeCtrl.instance, locals);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const ctrl = invokeCtrl();
|
|
38
|
+
element.data('$ngControllerController', ctrl);
|
|
39
|
+
|
|
40
|
+
if (controllerAs) {
|
|
41
|
+
scope[controllerAs] = ctrl;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return linkFn(scope);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
}]);
|
|
51
|
+
var rgCompilerModuleName = angularModule.name;
|
|
52
|
+
|
|
53
|
+
export { rgCompilerModuleName as default };
|
package/dist/confirm/confirm.js
CHANGED
|
@@ -32,21 +32,23 @@ import '@jetbrains/icons/chevron-10px';
|
|
|
32
32
|
import '../icon/icon.js';
|
|
33
33
|
import 'util-deprecate';
|
|
34
34
|
import '../icon/icon__constants.js';
|
|
35
|
-
import '../_helpers/
|
|
35
|
+
import '../_helpers/icon.js';
|
|
36
|
+
import '../icon/icon__svg.js';
|
|
36
37
|
import '../global/memoize.js';
|
|
37
38
|
import '../global/theme.js';
|
|
38
39
|
import '../link/clickableLink.js';
|
|
39
40
|
import '../_helpers/button__classes.js';
|
|
41
|
+
import '../_helpers/panel.js';
|
|
40
42
|
|
|
41
|
-
var modules_4c9c3a3a = {"unit":"8px","description":"
|
|
43
|
+
var modules_4c9c3a3a = {"unit":"8px","description":"description_rui_af54"};
|
|
42
44
|
|
|
43
45
|
/**
|
|
44
46
|
* @name Confirm
|
|
45
47
|
*/
|
|
46
48
|
|
|
47
49
|
class Confirm extends PureComponent {
|
|
48
|
-
constructor(
|
|
49
|
-
super(...
|
|
50
|
+
constructor() {
|
|
51
|
+
super(...arguments);
|
|
50
52
|
|
|
51
53
|
_defineProperty(this, "onEscPress", () => {
|
|
52
54
|
if (this.props.rejectOnEsc) {
|
|
@@ -69,6 +71,7 @@ class Confirm extends PureComponent {
|
|
|
69
71
|
onReject
|
|
70
72
|
} = this.props;
|
|
71
73
|
return /*#__PURE__*/React.createElement(Dialog, {
|
|
74
|
+
label: text || description,
|
|
72
75
|
className: className,
|
|
73
76
|
onEscPress: this.onEscPress,
|
|
74
77
|
show: show,
|
|
@@ -119,4 +122,4 @@ _defineProperty(Confirm, "defaultProps", {
|
|
|
119
122
|
onReject: () => {}
|
|
120
123
|
});
|
|
121
124
|
|
|
122
|
-
export default
|
|
125
|
+
export { Confirm as default };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import confirm from '../confirm-service/confirm-service.js';
|
|
3
|
+
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
import '../confirm/confirm.js';
|
|
7
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
8
|
+
import 'prop-types';
|
|
9
|
+
import '../dialog/dialog.js';
|
|
10
|
+
import 'classnames';
|
|
11
|
+
import '@jetbrains/icons/close';
|
|
12
|
+
import '../island/island.js';
|
|
13
|
+
import '../global/data-tests.js';
|
|
14
|
+
import '../island/adaptive-island-hoc.js';
|
|
15
|
+
import '../global/linear-function.js';
|
|
16
|
+
import '../_helpers/island.js';
|
|
17
|
+
import '../island/header.js';
|
|
18
|
+
import '../island/content.js';
|
|
19
|
+
import 'element-resize-detector';
|
|
20
|
+
import '../global/schedule-raf.js';
|
|
21
|
+
import '../global/get-uid.js';
|
|
22
|
+
import '../shortcuts/shortcuts.js';
|
|
23
|
+
import '../shortcuts/core.js';
|
|
24
|
+
import 'combokeys';
|
|
25
|
+
import '../global/sniffer.js';
|
|
26
|
+
import 'sniffr';
|
|
27
|
+
import '../tab-trap/tab-trap.js';
|
|
28
|
+
import '../global/dom.js';
|
|
29
|
+
import '../button/button.js';
|
|
30
|
+
import 'focus-visible';
|
|
31
|
+
import '@jetbrains/icons/chevron-10px';
|
|
32
|
+
import '../icon/icon.js';
|
|
33
|
+
import 'util-deprecate';
|
|
34
|
+
import '../icon/icon__constants.js';
|
|
35
|
+
import '../_helpers/icon.js';
|
|
36
|
+
import '../icon/icon__svg.js';
|
|
37
|
+
import '../global/memoize.js';
|
|
38
|
+
import '../global/theme.js';
|
|
39
|
+
import '../link/clickableLink.js';
|
|
40
|
+
import '../_helpers/button__classes.js';
|
|
41
|
+
import '../popup/popup.target.js';
|
|
42
|
+
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
43
|
+
import 'scrollbar-width';
|
|
44
|
+
import '../panel/panel.js';
|
|
45
|
+
import '../_helpers/panel.js';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @name Confirm Ng
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
const angularModule = angular.module('Ring.confirm', [MessageBundle]);
|
|
52
|
+
angularModule.service('confirm', ["$q", "RingMessageBundle", function service($q, RingMessageBundle) {
|
|
53
|
+
return function showConfirm(message, description, actionTitle, cancelTitle, cancelIsDefault, actionFn) {
|
|
54
|
+
return $q.when(confirm({
|
|
55
|
+
text: message,
|
|
56
|
+
description,
|
|
57
|
+
confirmLabel: actionTitle || RingMessageBundle.confirmation_ok(),
|
|
58
|
+
rejectLabel: cancelTitle || RingMessageBundle.confirmation_cancel(),
|
|
59
|
+
cancelIsDefault,
|
|
60
|
+
onBeforeConfirm: actionFn
|
|
61
|
+
}));
|
|
62
|
+
};
|
|
63
|
+
}]);
|
|
64
|
+
var confirmNg = angularModule.name;
|
|
65
|
+
|
|
66
|
+
export { confirmNg as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { render } from 'react-dom';
|
|
4
3
|
import Confirm from '../confirm/confirm.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';
|
|
@@ -38,6 +39,7 @@ import '../popup/popup.target.js';
|
|
|
38
39
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
39
40
|
import 'scrollbar-width';
|
|
40
41
|
import '../panel/panel.js';
|
|
42
|
+
import '../_helpers/panel.js';
|
|
41
43
|
|
|
42
44
|
/**
|
|
43
45
|
* @name Confirm Service
|
|
@@ -52,14 +54,15 @@ function renderConfirm(props) {
|
|
|
52
54
|
render( /*#__PURE__*/React.createElement(Confirm, props), containerElement);
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
function confirm({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
function confirm(_ref) {
|
|
58
|
+
let {
|
|
59
|
+
text,
|
|
60
|
+
description,
|
|
61
|
+
confirmLabel = 'OK',
|
|
62
|
+
rejectLabel = 'Cancel',
|
|
63
|
+
cancelIsDefault,
|
|
64
|
+
onBeforeConfirm
|
|
65
|
+
} = _ref;
|
|
63
66
|
return new Promise((resolve, reject) => {
|
|
64
67
|
const props = {
|
|
65
68
|
text,
|
|
@@ -70,29 +73,29 @@ function confirm({
|
|
|
70
73
|
show: true,
|
|
71
74
|
onConfirm: () => {
|
|
72
75
|
if (onBeforeConfirm) {
|
|
73
|
-
renderConfirm(
|
|
76
|
+
renderConfirm({ ...props,
|
|
74
77
|
inProgress: true
|
|
75
|
-
})
|
|
78
|
+
});
|
|
76
79
|
return Promise.resolve(onBeforeConfirm()).then(() => {
|
|
77
|
-
renderConfirm({
|
|
80
|
+
renderConfirm({ ...props,
|
|
78
81
|
show: false
|
|
79
82
|
});
|
|
80
83
|
resolve();
|
|
81
84
|
}).catch(err => {
|
|
82
|
-
renderConfirm({
|
|
85
|
+
renderConfirm({ ...props,
|
|
83
86
|
show: false
|
|
84
87
|
});
|
|
85
88
|
reject(err);
|
|
86
89
|
});
|
|
87
90
|
}
|
|
88
91
|
|
|
89
|
-
renderConfirm({
|
|
92
|
+
renderConfirm({ ...props,
|
|
90
93
|
show: false
|
|
91
94
|
});
|
|
92
95
|
return resolve();
|
|
93
96
|
},
|
|
94
97
|
onReject: () => {
|
|
95
|
-
renderConfirm({
|
|
98
|
+
renderConfirm({ ...props,
|
|
96
99
|
show: false
|
|
97
100
|
});
|
|
98
101
|
reject(new Error('Confirm(@jetbrains/ring-ui): null exception'));
|
|
@@ -103,9 +106,9 @@ function confirm({
|
|
|
103
106
|
}
|
|
104
107
|
function hideConfirm() {
|
|
105
108
|
renderConfirm({
|
|
109
|
+
text: '',
|
|
106
110
|
show: false
|
|
107
111
|
});
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
export default
|
|
111
|
-
export { containerElement, hideConfirm };
|
|
114
|
+
export { containerElement, confirm as default, hideConfirm };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component, cloneElement } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -11,8 +11,8 @@ import 'react-waypoint';
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
class ContentLayout extends Component {
|
|
14
|
-
constructor(
|
|
15
|
-
super(...
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
16
|
|
|
17
17
|
_defineProperty(this, "state", {});
|
|
18
18
|
|
|
@@ -24,15 +24,13 @@ class ContentLayout extends Component {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
render() {
|
|
27
|
-
const
|
|
28
|
-
{
|
|
27
|
+
const {
|
|
29
28
|
children,
|
|
30
29
|
className,
|
|
31
30
|
contentClassName,
|
|
32
|
-
responsive
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
responsive,
|
|
32
|
+
...restProps
|
|
33
|
+
} = this.props;
|
|
36
34
|
const classes = classNames(modules_b8a9dd4f.contentLayout, className, {
|
|
37
35
|
[modules_b8a9dd4f.contentLayoutResponsive]: responsive
|
|
38
36
|
});
|
|
@@ -64,4 +62,4 @@ _defineProperty(ContentLayout, "defaultProps", {
|
|
|
64
62
|
responsive: true
|
|
65
63
|
});
|
|
66
64
|
|
|
67
|
-
export default
|
|
65
|
+
export { ContentLayout as default };
|
|
@@ -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 { renderToStaticMarkup } from 'react-dom/server';
|
|
@@ -28,16 +28,14 @@ class ContentEditableBase extends Component {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
render() {
|
|
31
|
-
const
|
|
32
|
-
{
|
|
31
|
+
const {
|
|
33
32
|
__html,
|
|
34
33
|
onComponentUpdate,
|
|
35
34
|
disabled,
|
|
36
35
|
tabIndex,
|
|
37
|
-
inputRef
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
inputRef,
|
|
37
|
+
...props
|
|
38
|
+
} = this.props;
|
|
41
39
|
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
42
40
|
ref: inputRef,
|
|
43
41
|
disabled: disabled,
|
|
@@ -52,9 +50,9 @@ class ContentEditableBase extends Component {
|
|
|
52
50
|
|
|
53
51
|
}
|
|
54
52
|
|
|
55
|
-
_defineProperty(ContentEditableBase, "propTypes",
|
|
53
|
+
_defineProperty(ContentEditableBase, "propTypes", { ...commonPropTypes,
|
|
56
54
|
__html: PropTypes.string
|
|
57
|
-
})
|
|
55
|
+
});
|
|
58
56
|
|
|
59
57
|
_defineProperty(ContentEditableBase, "defaultProps", {
|
|
60
58
|
disabled: false,
|
|
@@ -63,19 +61,18 @@ _defineProperty(ContentEditableBase, "defaultProps", {
|
|
|
63
61
|
onComponentUpdate: noop
|
|
64
62
|
});
|
|
65
63
|
|
|
66
|
-
const ContentEditable =
|
|
64
|
+
const ContentEditable = _ref => {
|
|
67
65
|
let {
|
|
68
|
-
children
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
children,
|
|
67
|
+
...props
|
|
68
|
+
} = _ref;
|
|
72
69
|
return /*#__PURE__*/React.createElement(ContentEditableBase, _extends({}, props, {
|
|
73
70
|
__html: renderToStaticMarkup(children)
|
|
74
71
|
}));
|
|
75
72
|
};
|
|
76
73
|
|
|
77
|
-
ContentEditable.propTypes =
|
|
74
|
+
ContentEditable.propTypes = { ...commonPropTypes,
|
|
78
75
|
children: PropTypes.node
|
|
79
|
-
}
|
|
76
|
+
};
|
|
80
77
|
|
|
81
|
-
export default
|
|
78
|
+
export { ContentEditable as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty
|
|
1
|
+
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -25,6 +25,7 @@ import '../link/link.js';
|
|
|
25
25
|
import 'focus-visible';
|
|
26
26
|
import '../global/memoize.js';
|
|
27
27
|
import '../link/clickableLink.js';
|
|
28
|
+
import '../_helpers/link.js';
|
|
28
29
|
import '../text/text.js';
|
|
29
30
|
import '../loader-inline/loader-inline.js';
|
|
30
31
|
import '../global/theme.js';
|
|
@@ -39,15 +40,17 @@ import '@jetbrains/icons/chevron-10px';
|
|
|
39
40
|
import '../icon/icon.js';
|
|
40
41
|
import 'util-deprecate';
|
|
41
42
|
import '../icon/icon__constants.js';
|
|
42
|
-
import '../_helpers/
|
|
43
|
+
import '../_helpers/icon.js';
|
|
44
|
+
import '../icon/icon__svg.js';
|
|
43
45
|
import '../_helpers/button__classes.js';
|
|
44
46
|
import '../checkbox/checkbox.js';
|
|
45
47
|
import '@jetbrains/icons/checkmark';
|
|
46
48
|
import '@jetbrains/icons/remove-10px';
|
|
49
|
+
import '../_helpers/checkbox.js';
|
|
47
50
|
|
|
48
51
|
class DataList extends PureComponent {
|
|
49
|
-
constructor(
|
|
50
|
-
super(...
|
|
52
|
+
constructor() {
|
|
53
|
+
super(...arguments);
|
|
51
54
|
|
|
52
55
|
_defineProperty(this, "shortcutsScope", getUID('ring-data-list-'));
|
|
53
56
|
|
|
@@ -121,9 +124,9 @@ class DataList extends PureComponent {
|
|
|
121
124
|
focused,
|
|
122
125
|
innerRef
|
|
123
126
|
} = this.props;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
const shortcutsMap = { ...this.shortcutsMap,
|
|
128
|
+
...this.props.shortcutsMap
|
|
129
|
+
};
|
|
127
130
|
const classes = classNames(className, {
|
|
128
131
|
[modules_09d014b4.dataList]: true,
|
|
129
132
|
[modules_09d014b4.disabledHover]: disabledHover,
|
|
@@ -198,6 +201,6 @@ _defineProperty(DataList, "defaultProps", {
|
|
|
198
201
|
remoteSelection: false
|
|
199
202
|
});
|
|
200
203
|
|
|
201
|
-
var
|
|
204
|
+
var DataList$1 = disableHoverHOC(selectionShortcutsHOC(focusSensorHOC(DataList)));
|
|
202
205
|
|
|
203
|
-
export default
|
|
206
|
+
export { DataList$1 as default };
|
|
@@ -8,6 +8,7 @@ import 'classnames';
|
|
|
8
8
|
import '../global/memoize.js';
|
|
9
9
|
import '../global/data-tests.js';
|
|
10
10
|
import '../link/clickableLink.js';
|
|
11
|
+
import '../_helpers/link.js';
|
|
11
12
|
import '../_helpers/badge.js';
|
|
12
13
|
|
|
13
14
|
var dataList_mock = [{
|
|
@@ -186,5 +187,4 @@ const moreItems = [{
|
|
|
186
187
|
}, "duplicate"))
|
|
187
188
|
}];
|
|
188
189
|
|
|
189
|
-
export default
|
|
190
|
-
export { moreItems };
|
|
190
|
+
export { dataList_mock as default, moreItems };
|
package/dist/data-list/item.js
CHANGED
|
@@ -13,6 +13,7 @@ import 'classnames';
|
|
|
13
13
|
import '../global/memoize.js';
|
|
14
14
|
import '../global/data-tests.js';
|
|
15
15
|
import '../link/clickableLink.js';
|
|
16
|
+
import '../_helpers/link.js';
|
|
16
17
|
import '../global/theme.js';
|
|
17
18
|
import '../_helpers/inject-styles.js';
|
|
18
19
|
import '../global/conic-gradient.js';
|
|
@@ -25,13 +26,15 @@ import '@jetbrains/icons/chevron-10px';
|
|
|
25
26
|
import '../icon/icon.js';
|
|
26
27
|
import 'util-deprecate';
|
|
27
28
|
import '../icon/icon__constants.js';
|
|
28
|
-
import '../_helpers/
|
|
29
|
+
import '../_helpers/icon.js';
|
|
30
|
+
import '../icon/icon__svg.js';
|
|
29
31
|
import '../_helpers/button__classes.js';
|
|
30
32
|
import '../global/focus-sensor-hoc.js';
|
|
31
33
|
import '../global/composeRefs.js';
|
|
32
34
|
import '../checkbox/checkbox.js';
|
|
33
35
|
import '@jetbrains/icons/checkmark';
|
|
34
36
|
import '@jetbrains/icons/remove-10px';
|
|
37
|
+
import '../_helpers/checkbox.js';
|
|
35
38
|
|
|
36
39
|
const moreLessButtonStates = {
|
|
37
40
|
UNUSED: 0,
|
|
@@ -42,8 +45,8 @@ const moreLessButtonStates = {
|
|
|
42
45
|
const ITEM_LEFT_OFFSET = 32;
|
|
43
46
|
const LIST_LEFT_OFFSET = 24;
|
|
44
47
|
class Item extends PureComponent {
|
|
45
|
-
constructor(
|
|
46
|
-
super(...
|
|
48
|
+
constructor() {
|
|
49
|
+
super(...arguments);
|
|
47
50
|
|
|
48
51
|
_defineProperty(this, "onShowMore", () => {
|
|
49
52
|
const {
|
|
@@ -221,5 +224,4 @@ _defineProperty(Item, "defaultProps", {
|
|
|
221
224
|
onItemMoreLess: () => {}
|
|
222
225
|
});
|
|
223
226
|
|
|
224
|
-
export default
|
|
225
|
-
export { moreLessButtonStates };
|
|
227
|
+
export { Item as default, moreLessButtonStates };
|
|
@@ -58,7 +58,9 @@ class Selection extends Selection$1 {
|
|
|
58
58
|
this._getAncestors(item).forEach(it => selected.delete(it));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
select(
|
|
61
|
+
select() {
|
|
62
|
+
let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._focused;
|
|
63
|
+
|
|
62
64
|
if (!value || !this._isItemSelectable(value)) {
|
|
63
65
|
return this;
|
|
64
66
|
}
|
|
@@ -75,7 +77,9 @@ class Selection extends Selection$1 {
|
|
|
75
77
|
});
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
deselect(
|
|
80
|
+
deselect() {
|
|
81
|
+
let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._focused;
|
|
82
|
+
|
|
79
83
|
if (!value || !this._isItemSelectable(value)) {
|
|
80
84
|
return this;
|
|
81
85
|
}
|
|
@@ -94,4 +98,4 @@ class Selection extends Selection$1 {
|
|
|
94
98
|
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
export default
|
|
101
|
+
export { Selection as default };
|
package/dist/data-list/title.js
CHANGED
|
@@ -12,5 +12,7 @@ import '@jetbrains/icons/remove-10px';
|
|
|
12
12
|
import '../icon/icon.js';
|
|
13
13
|
import 'util-deprecate';
|
|
14
14
|
import '../icon/icon__constants.js';
|
|
15
|
-
import '../_helpers/
|
|
15
|
+
import '../_helpers/icon.js';
|
|
16
|
+
import '../icon/icon__svg.js';
|
|
16
17
|
import '../global/memoize.js';
|
|
18
|
+
import '../_helpers/checkbox.js';
|