@jetbrains/ring-ui 5.0.0-beta.2 → 5.0.0-beta.22
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 +61 -0
- package/babel.config.js +1 -12
- package/components/alert/alert.css +5 -15
- package/components/alert/alert.d.ts +3 -0
- package/components/alert/{alert.jsx → alert.js} +8 -7
- package/components/alert/container.css +0 -2
- package/components/alert/{container.jsx → container.js} +0 -0
- package/components/alert-service/alert-service.examples.css +5 -3
- package/components/alert-service/{alert-service.jsx → alert-service.js} +1 -1
- package/components/analytics/analytics__ga-plugin.d.ts +1 -1
- package/components/analytics/analytics__ga-plugin.js +11 -3
- package/components/auth/auth__core.d.ts +3 -1
- package/components/auth/auth__core.js +47 -16
- package/components/auth/down-notification.css +1 -1
- package/components/auth/{down-notification.jsx → down-notification.js} +0 -0
- package/components/auth/{iframe-flow.jsx → iframe-flow.js} +0 -0
- package/components/auth-dialog/auth-dialog.d.ts +11 -0
- package/components/auth-dialog/{auth-dialog.jsx → auth-dialog.js} +33 -2
- package/components/auth-dialog-service/{auth-dialog-service.jsx → auth-dialog-service.js} +1 -1
- package/components/autofocus-ng/autofocus-ng.js +1 -1
- package/components/autofocus-ng/autofocus-ng.test.js +1 -1
- package/components/avatar/{avatar-example-datauri.jsx → avatar-example-datauri.js} +0 -0
- package/components/avatar/avatar.d.ts +1 -0
- package/components/avatar/{avatar.jsx → avatar.js} +0 -0
- package/components/avatar/{fallback-avatar.jsx → fallback-avatar.js} +2 -2
- package/components/badge/{badge.jsx → badge.js} +0 -0
- package/components/button/button.css +95 -206
- package/components/button/button.d.ts +8 -8
- package/components/button/{button.jsx → button.js} +6 -8
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +4 -7
- package/components/button-group/button-group.css +138 -19
- package/components/button-group/button-group.d.ts +4 -1
- package/components/button-group/{button-group.jsx → button-group.js} +3 -3
- package/components/button-group/{caption.jsx → caption.js} +0 -0
- package/components/button-group-ng/button-group-ng.css +1 -0
- package/components/button-group-ng/button-group-ng.examples.js +1 -1
- package/components/button-ng/button-ng.examples.js +6 -7
- package/components/button-ng/button-ng.js +6 -25
- package/components/button-set/button-set.css +1 -0
- package/components/button-set/{button-set.jsx → button-set.js} +0 -0
- package/components/button-toolbar/button-toolbar.css +2 -0
- package/components/button-toolbar/{button-toolbar.jsx → button-toolbar.js} +0 -0
- package/components/checkbox/checkbox.css +16 -13
- package/components/checkbox/{checkbox.jsx → checkbox.js} +1 -1
- package/components/checkbox-ng/checkbox-ng.js +1 -1
- package/components/code/{code.jsx → code.js} +0 -0
- package/components/confirm/{confirm.jsx → confirm.js} +0 -0
- package/components/confirm-service/{confirm-service.jsx → confirm-service.js} +1 -1
- package/components/content-layout/{content-layout.jsx → content-layout.js} +0 -0
- package/components/content-layout/{sidebar.jsx → sidebar.js} +0 -0
- package/components/contenteditable/{contenteditable.jsx → contenteditable.js} +0 -0
- package/components/data-list/data-list.d.ts +4 -8
- package/components/data-list/{data-list.jsx → data-list.js} +0 -0
- package/components/data-list/{data-list.mock.jsx → data-list.mock.js} +0 -0
- package/components/data-list/{item.jsx → item.js} +0 -0
- package/components/data-list/{title.jsx → title.js} +0 -0
- package/components/date-picker/{date-input.jsx → date-input.js} +2 -1
- package/components/date-picker/date-picker.css +3 -1
- package/components/date-picker/{date-picker.jsx → date-picker.js} +0 -0
- package/components/date-picker/{date-popup.jsx → date-popup.js} +0 -1
- package/components/date-picker/{day.jsx → day.js} +0 -0
- package/components/date-picker/{month-names.jsx → month-names.js} +0 -0
- package/components/date-picker/{month-slider.jsx → month-slider.js} +0 -0
- package/components/date-picker/{month.jsx → month.js} +0 -0
- package/components/date-picker/{months.jsx → months.js} +0 -0
- package/components/date-picker/{weekdays.jsx → weekdays.js} +0 -0
- package/components/date-picker/{years.jsx → years.js} +0 -0
- package/components/dialog/dialog.css +10 -3
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/{dialog.jsx → dialog.js} +0 -0
- package/components/dialog-ng/dialog-ng__template.js +1 -0
- package/components/dropdown/{anchor.jsx → anchor.js} +0 -0
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/{dropdown.jsx → dropdown.js} +0 -0
- package/components/dropdown-menu/{dropdown-menu.jsx → dropdown-menu.js} +0 -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.jsx → error-bubble.js} +0 -0
- package/components/error-message/{error-message.jsx → error-message.js} +0 -0
- package/components/footer/{footer.jsx → footer.js} +0 -0
- package/components/global/angular-component-factory.js +1 -1
- package/components/global/controls-height.d.ts +7 -0
- package/components/global/controls-height.js +8 -0
- package/components/global/{create-stateful-context.jsx → create-stateful-context.js} +0 -0
- package/components/global/{focus-sensor-hoc.jsx → focus-sensor-hoc.js} +0 -0
- package/components/global/promise-with-timeout.d.ts +2 -1
- package/components/global/promise-with-timeout.js +5 -2
- package/components/global/{react-dom-renderer.jsx → react-dom-renderer.js} +0 -0
- package/components/global/react-render-adapter.d.ts +29 -0
- package/components/global/react-render-adapter.js +36 -0
- package/components/global/rerender-hoc.d.ts +5 -9
- package/components/global/rerender-hoc.js +4 -2
- package/components/global/theme.d.ts +7 -20
- package/components/global/theme.js +40 -0
- package/components/global/variables.css +30 -26
- package/components/global/variables.d.ts +10 -9
- package/components/global/variables_dark.css +67 -0
- package/components/grid/{col.jsx → col.js} +0 -0
- package/components/grid/{grid.jsx → grid.js} +0 -0
- package/components/grid/{row.jsx → row.js} +0 -0
- package/components/group/{group.jsx → group.js} +0 -0
- package/components/header/header.css +19 -10
- package/components/header/header.d.ts +7 -69
- package/components/header/{header.jsx → header.js} +10 -9
- package/components/header/{logo.jsx → logo.js} +0 -0
- package/components/header/profile.d.ts +3 -3
- package/components/header/{profile.jsx → profile.js} +0 -0
- package/components/header/{services-link.jsx → services-link.js} +0 -0
- package/components/header/services.css +3 -3
- package/components/header/services.d.ts +5 -0
- package/components/header/{services.jsx → services.js} +8 -2
- package/components/header/{smart-profile.jsx → smart-profile.js} +0 -0
- package/components/header/{smart-services.jsx → smart-services.js} +0 -0
- package/components/header/tray-icon.d.ts +18 -575
- package/components/header/{tray-icon.jsx → tray-icon.js} +0 -0
- package/components/header/{tray.jsx → tray.js} +0 -0
- package/components/heading/heading.css +4 -1
- package/components/heading/{heading.jsx → heading.js} +0 -0
- package/components/icon/icon.css +1 -1
- package/components/icon/{icon.jsx → icon.js} +0 -0
- package/components/icon/{icon__svg.jsx → icon__svg.js} +0 -0
- package/components/input/input.css +86 -149
- package/components/input/input.d.ts +15 -17
- package/components/input/{input.jsx → input.js} +29 -33
- package/components/input-ng/input-ng.examples.js +1 -1
- package/components/input-ng/input-ng.js +45 -49
- package/components/island/adaptive-island-hoc.d.ts +6 -10
- package/components/island/{adaptive-island-hoc.jsx → adaptive-island-hoc.js} +2 -2
- package/components/island/content.d.ts +33 -2
- package/components/island/{content.jsx → content.js} +7 -11
- package/components/island/{header.jsx → header.js} +7 -4
- package/components/island/island.css +8 -5
- package/components/island/island.d.ts +6 -10
- package/components/island/{island.jsx → island.js} +0 -0
- package/components/island-legacy/{content-legacy.jsx → content-legacy.js} +0 -0
- package/components/island-legacy/{header-legacy.jsx → header-legacy.js} +0 -0
- package/components/island-legacy/island-legacy.css +1 -1
- package/components/island-legacy/{island-legacy.jsx → island-legacy.js} +0 -0
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/{clickableLink.jsx → clickableLink.js} +0 -0
- package/components/link/link.css +0 -2
- package/components/link/link.d.ts +14 -22
- package/components/link/{link.jsx → link.js} +0 -0
- package/components/list/consts.d.ts +3 -1
- package/components/list/list.css +1 -0
- package/components/list/list.d.ts +3 -1
- package/components/list/{list.jsx → list.js} +12 -13
- package/components/list/{list__custom.jsx → list__custom.js} +0 -0
- package/components/list/{list__hint.jsx → list__hint.js} +0 -0
- package/components/list/{list__item.jsx → list__item.js} +0 -0
- package/components/list/{list__link.jsx → list__link.js} +2 -2
- package/components/list/{list__separator.jsx → list__separator.js} +0 -0
- package/components/list/{list__title.jsx → list__title.js} +0 -0
- package/components/loader/{loader.jsx → loader.js} +0 -0
- package/components/loader-inline/loader-inline.css +14 -0
- package/components/loader-inline/loader-inline.d.ts +4 -41
- package/components/loader-inline/{loader-inline.jsx → loader-inline.js} +3 -11
- package/components/loader-inline-ng/loader-inline-ng.js +1 -17
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -11
- package/components/loader-screen/{loader-screen.jsx → loader-screen.js} +0 -0
- package/components/login-dialog/{login-dialog.jsx → login-dialog.js} +0 -0
- package/components/login-dialog/{service.jsx → service.js} +1 -1
- package/components/markdown/code.d.ts +6 -13
- package/components/markdown/{code.jsx → code.js} +2 -2
- package/components/markdown/heading.d.ts +5 -9
- package/components/markdown/{heading.jsx → heading.js} +2 -2
- package/components/markdown/link.d.ts +4 -8
- package/components/markdown/{link.jsx → link.js} +1 -1
- package/components/markdown/markdown.d.ts +2 -3
- package/components/markdown/{markdown.jsx → markdown.js} +14 -11
- package/components/message/message.css +18 -28
- package/components/message/message.d.ts +3 -0
- package/components/message/{message.jsx → message.js} +42 -22
- package/components/pager/{pager.jsx → pager.js} +2 -8
- package/components/panel/{panel.jsx → panel.js} +0 -0
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.d.ts +7 -1
- package/components/popup/{popup.jsx → popup.js} +4 -2
- package/components/popup/popup.target.d.ts +2 -1
- package/components/popup/{popup.target.jsx → popup.target.js} +0 -0
- package/components/popup/position.d.ts +1 -1
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.d.ts +1 -0
- package/components/popup-menu/{popup-menu.jsx → popup-menu.js} +0 -0
- package/components/progress-bar/progress-bar.css +8 -12
- package/components/progress-bar/progress-bar.d.ts +0 -4
- package/components/progress-bar/{progress-bar.jsx → progress-bar.js} +1 -6
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -2
- package/components/query-assist/query-assist.css +48 -64
- package/components/query-assist/query-assist.d.ts +5 -14
- package/components/query-assist/{query-assist.jsx → query-assist.js} +6 -12
- package/components/query-assist/{query-assist__suggestions.jsx → query-assist__suggestions.js} +0 -0
- package/components/radio/radio.css +10 -4
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/{radio.jsx → radio.js} +0 -0
- package/components/radio/{radio__item.jsx → radio__item.js} +0 -0
- package/components/select/select-popup.css +5 -1
- package/components/select/select.css +23 -38
- package/components/select/select.d.ts +16 -20
- package/components/select/{select.jsx → select.js} +37 -47
- package/components/select/{select__filter.jsx → select__filter.js} +2 -1
- package/components/select/select__popup.d.ts +1 -1
- package/components/select/{select__popup.jsx → select__popup.js} +1 -2
- package/components/select-ng/select-ng.examples.js +1 -0
- package/components/select-ng/select-ng.js +19 -6
- package/components/select-ng/select-ng.test.js +1 -1
- package/components/select-ng/select-ng__lazy.js +13 -9
- package/components/select-ng/select-ng__lazy.test.js +3 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/components/shortcuts/{shortcuts-hoc.jsx → shortcuts-hoc.js} +0 -0
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.examples.js +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/{tab-trap.jsx → tab-trap.js} +0 -0
- package/components/table/{cell.jsx → cell.js} +0 -0
- package/components/table/disable-hover-hoc.d.ts +4 -8
- package/components/table/{disable-hover-hoc.jsx → disable-hover-hoc.js} +0 -0
- package/components/table/{header-cell.jsx → header-cell.js} +0 -0
- package/components/table/header.d.ts +8 -1
- package/components/table/{header.jsx → header.js} +0 -0
- package/components/table/{multitable.jsx → multitable.js} +0 -0
- package/components/table/row-with-focus-sensor.d.ts +4 -4
- package/components/table/{row-with-focus-sensor.jsx → row-with-focus-sensor.js} +4 -4
- package/components/table/row.d.ts +1 -0
- package/components/table/{row.jsx → row.js} +0 -0
- package/components/table/{selection-shortcuts-hoc.jsx → selection-shortcuts-hoc.js} +0 -0
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/{smart-table.jsx → smart-table.js} +7 -3
- package/components/table/table.d.ts +4 -8
- package/components/table/{table.jsx → table.js} +0 -0
- package/components/tabs/{collapsible-more.jsx → collapsible-more.js} +2 -2
- package/components/tabs/{collapsible-tab.jsx → collapsible-tab.js} +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/{collapsible-tabs.jsx → collapsible-tabs.js} +1 -1
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/{custom-item.jsx → custom-item.js} +0 -0
- package/components/tabs/dumb-tabs.d.ts +6 -109
- package/components/tabs/{dumb-tabs.jsx → dumb-tabs.js} +5 -9
- package/components/tabs/smart-tabs.d.ts +4 -4
- package/components/tabs/{smart-tabs.jsx → smart-tabs.js} +9 -3
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/{tab-link.jsx → tab-link.js} +0 -0
- package/components/tabs/tab.d.ts +3 -1
- package/components/tabs/{tab.jsx → tab.js} +0 -0
- package/components/tabs/tabs.css +17 -28
- package/components/tabs-ng/tabs-ng.examples.js +11 -3
- package/components/tabs-ng/tabs-ng.js +1 -4
- package/components/tabs-ng/tabs-ng__template.js +1 -1
- package/components/tag/tag.css +31 -8
- package/components/tag/tag.d.ts +1 -0
- package/components/tag/{tag.jsx → tag.js} +2 -2
- package/components/tags-input/tags-input.css +10 -4
- package/components/tags-input/tags-input.d.ts +4 -8
- package/components/tags-input/{tags-input.jsx → tags-input.js} +0 -0
- package/components/tags-list/tags-list.d.ts +1 -1
- package/components/tags-list/{tags-list.jsx → tags-list.js} +0 -0
- package/components/text/{text.jsx → text.js} +0 -0
- package/components/toggle/toggle.css +61 -35
- package/components/toggle/toggle.d.ts +9 -89
- package/components/toggle/{toggle.jsx → toggle.js} +7 -7
- package/components/tooltip/tooltip.css +7 -0
- package/components/tooltip/tooltip.d.ts +1 -0
- package/components/tooltip/{tooltip.jsx → tooltip.js} +3 -2
- package/components/tooltip-ng/tooltip-ng.js +13 -10
- package/components/user-agreement/service.d.ts +14 -62
- package/components/user-agreement/{service.jsx → service.js} +1 -1
- package/components/user-agreement/{user-agreement.jsx → user-agreement.js} +1 -1
- package/components/user-card/{card.jsx → card.js} +0 -0
- package/components/user-card/{smart-user-card-tooltip.jsx → smart-user-card-tooltip.js} +0 -0
- package/components/user-card/{tooltip.jsx → tooltip.js} +0 -0
- package/dist/_helpers/anchor.js +3 -3
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +5 -8
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +3 -2
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-inline.js +3 -0
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +6 -3
- package/dist/_helpers/services-link.js +2 -2
- package/dist/_helpers/sidebar.js +3 -2
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +55 -0
- package/dist/_helpers/title.js +2 -1
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +35 -21
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +23 -8
- package/dist/analytics/analytics.js +4 -3
- package/dist/analytics/analytics__custom-plugin.js +2 -1
- package/dist/analytics/analytics__fus-plugin.js +1 -0
- package/dist/analytics/analytics__ga-plugin.d.ts +1 -1
- package/dist/analytics/analytics__ga-plugin.js +15 -7
- package/dist/analytics/analytics__plugin-utils.js +4 -3
- package/dist/analytics-ng/analytics-ng.js +3 -2
- package/dist/auth/auth.js +22 -9
- package/dist/auth/auth__core.d.ts +3 -1
- package/dist/auth/auth__core.js +87 -38
- package/dist/auth/background-flow.js +2 -1
- package/dist/auth/down-notification.js +21 -8
- package/dist/auth/iframe-flow.js +4 -1
- package/dist/auth/landing.js +26 -13
- package/dist/auth/request-builder.js +1 -0
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +22 -7
- package/dist/auth/token-validator.js +2 -0
- package/dist/auth/window-flow.js +2 -1
- package/dist/auth-dialog/auth-dialog.d.ts +11 -0
- package/dist/auth-dialog/auth-dialog.js +55 -8
- package/dist/auth-dialog-service/auth-dialog-service.js +5 -2
- package/dist/auth-ng/auth-ng.js +23 -10
- package/dist/autofocus-ng/autofocus-ng.js +2 -1
- package/dist/avatar/avatar-example-datauri.js +1 -23
- package/dist/avatar/avatar.d.ts +1 -0
- package/dist/avatar/avatar.js +5 -3
- package/dist/avatar/fallback-avatar.js +6 -5
- package/dist/avatar-editor-ng/avatar-editor-ng.js +22 -7
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
- package/dist/avatar-ng/avatar-ng.js +3 -0
- package/dist/badge/badge.js +1 -0
- package/dist/badge-ng/badge-ng.js +2 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +4 -28
- package/dist/button/button.d.ts +8 -8
- package/dist/button/button.js +8 -8
- package/dist/button/button__classes.d.ts +1 -1
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +4 -1
- package/dist/button-group/button-group.js +5 -3
- package/dist/button-group-ng/button-group-ng.js +2 -1
- package/dist/button-ng/button-ng.js +9 -40
- package/dist/button-set-ng/button-set-ng.js +1 -1
- package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -0
- package/dist/caret/caret.js +2 -0
- package/dist/checkbox/checkbox.js +3 -1
- package/dist/checkbox-ng/checkbox-ng.js +4 -21
- package/dist/code/code.js +4 -3
- package/dist/confirm/confirm.js +7 -5
- package/dist/confirm-ng/confirm-ng.js +4 -1
- package/dist/confirm-service/confirm-service.js +5 -2
- package/dist/content-layout/content-layout.js +1 -0
- package/dist/content-layout/sidebar.js +1 -0
- package/dist/data-list/data-list.d.ts +4 -8
- package/dist/data-list/data-list.js +5 -8
- package/dist/data-list/data-list.mock.js +1 -0
- package/dist/data-list/item.js +11 -14
- package/dist/data-list/selection.js +1 -0
- package/dist/data-list/title.js +3 -1
- package/dist/data-list-ng/data-list-ng.js +6 -8
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.js +8 -5
- package/dist/date-picker/date-picker.js +11 -9
- package/dist/date-picker/date-popup.js +5 -4
- package/dist/date-picker/day.js +1 -0
- package/dist/date-picker/month-names.js +1 -0
- package/dist/date-picker/month-slider.js +1 -0
- package/dist/date-picker/month.js +1 -0
- package/dist/date-picker/months.js +1 -0
- package/dist/date-picker/years.js +1 -0
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.js +5 -3
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
- package/dist/dialog-ng/dialog-ng.js +9 -6
- package/dist/dialog-ng/dialog-ng__template.js +1 -69
- package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
- package/dist/dropdown/anchor.js +3 -1
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +3 -1
- package/dist/dropdown-menu/dropdown-menu.js +5 -3
- package/dist/error-bubble/error-bubble.js +3 -1
- package/dist/error-message/error-message.js +3 -1
- package/dist/error-message-ng/error-message-ng.js +3 -21
- package/dist/footer/footer.js +1 -0
- package/dist/footer-ng/footer-ng.js +3 -14
- package/dist/form-ng/form-ng.js +2 -4
- package/dist/global/angular-component-factory.js +8 -6
- package/dist/global/controls-height.d.ts +7 -0
- package/dist/global/controls-height.js +13 -0
- package/dist/global/create-stateful-context.js +3 -2
- package/dist/global/data-tests.js +2 -0
- package/dist/global/dom.js +1 -0
- package/dist/global/focus-sensor-hoc.js +1 -0
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/inject-styles.js +5 -7
- package/dist/global/listeners.js +1 -0
- package/dist/global/memoize.js +2 -0
- package/dist/global/normalize-indent.js +2 -0
- package/dist/global/promise-with-timeout.d.ts +2 -1
- package/dist/global/promise-with-timeout.js +6 -2
- package/dist/global/react-dom-renderer.js +1 -0
- package/dist/global/react-render-adapter.d.ts +29 -0
- package/dist/global/react-render-adapter.js +41 -0
- package/dist/global/rerender-hoc.d.ts +5 -9
- package/dist/global/rerender-hoc.js +7 -3
- package/dist/global/theme.d.ts +7 -20
- package/dist/global/theme.js +22 -62
- package/dist/global/trivial-template-tag.js +2 -0
- package/dist/global/url.js +3 -1
- package/dist/global/variables.d.ts +10 -9
- package/dist/grid/col.js +2 -1
- package/dist/grid/grid.js +1 -0
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.d.ts +7 -69
- package/dist/header/header.js +31 -31
- package/dist/header/logo.js +2 -0
- package/dist/header/profile.d.ts +3 -3
- package/dist/header/profile.js +6 -4
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.d.ts +5 -0
- package/dist/header/services.js +13 -3
- package/dist/header/smart-profile.js +27 -27
- package/dist/header/smart-services.js +23 -24
- package/dist/header/tray-icon.d.ts +18 -575
- package/dist/header/tray-icon.js +6 -4
- package/dist/heading/heading.js +3 -3
- package/dist/http/http.js +4 -2
- package/dist/http/http.mock.js +2 -0
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__user.js +4 -2
- package/dist/hub-source/hub-source__users-groups.js +3 -2
- package/dist/icon/icon.js +3 -3
- package/dist/icon/icon__svg.js +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon-ng/icon-ng.js +7 -5
- package/dist/input/input.d.ts +15 -17
- package/dist/input/input.js +35 -42
- package/dist/input-ng/input-ng.js +8 -64
- package/dist/island/adaptive-island-hoc.d.ts +6 -10
- package/dist/island/adaptive-island-hoc.js +8 -5
- package/dist/island/content.d.ts +33 -2
- package/dist/island/content.js +10 -13
- package/dist/island/header.js +10 -6
- package/dist/island/island.d.ts +6 -10
- package/dist/island/island.js +1 -0
- package/dist/island-ng/island-content-ng.js +2 -16
- package/dist/island-ng/island-header-ng.js +2 -8
- package/dist/island-ng/island-ng-class-fixer.js +2 -0
- package/dist/island-ng/island-ng.js +2 -8
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/clickableLink.js +1 -0
- package/dist/link/link.d.ts +14 -22
- package/dist/link/link.js +4 -3
- package/dist/link-ng/link-ng.js +1 -4
- package/dist/list/consts.d.ts +3 -1
- package/dist/list/list.d.ts +3 -1
- package/dist/list/list.js +30 -23
- package/dist/list/list__custom.js +1 -0
- package/dist/list/list__item.js +6 -4
- package/dist/list/list__link.js +3 -1
- package/dist/list/list__users-groups-source.js +4 -2
- package/dist/loader/loader.js +1 -0
- package/dist/loader/loader__core.js +5 -4
- package/dist/loader-inline/loader-inline.d.ts +4 -41
- package/dist/loader-inline/loader-inline.js +4 -21
- package/dist/loader-inline-ng/loader-inline-ng.js +2 -30
- package/dist/loader-ng/loader-ng.js +1 -0
- package/dist/loader-screen/loader-screen.js +1 -0
- package/dist/loader-screen-ng/loader-screen-ng.js +2 -6
- package/dist/login-dialog/login-dialog.js +4 -2
- package/dist/login-dialog/service.js +5 -2
- package/dist/markdown/code.d.ts +6 -13
- package/dist/markdown/code.js +4 -3
- package/dist/markdown/heading.d.ts +5 -9
- package/dist/markdown/heading.js +2 -2
- package/dist/markdown/link.d.ts +4 -8
- package/dist/markdown/link.js +2 -1
- package/dist/markdown/markdown.d.ts +2 -3
- package/dist/markdown/markdown.js +17 -16
- package/dist/message/message.d.ts +3 -0
- package/dist/message/message.js +56 -42
- package/dist/old-browsers-message/old-browsers-message.js +2 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +1 -0
- package/dist/old-browsers-message/white-list.js +1 -0
- package/dist/pager/pager.js +14 -15
- package/dist/pager-ng/pager-ng.js +8 -9
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +23 -10
- package/dist/place-under-ng/place-under-ng.js +3 -2
- package/dist/popup/popup.d.ts +7 -1
- package/dist/popup/popup.js +11 -5
- package/dist/popup/popup.target.d.ts +2 -1
- package/dist/popup/position.d.ts +1 -1
- package/dist/popup/position.js +3 -2
- package/dist/popup-menu/popup-menu.d.ts +1 -0
- package/dist/popup-menu/popup-menu.js +3 -1
- package/dist/progress-bar/progress-bar.d.ts +0 -4
- package/dist/progress-bar/progress-bar.js +3 -8
- package/dist/progress-bar-ng/progress-bar-ng.js +2 -1
- package/dist/promised-click-ng/promised-click-ng.js +4 -2
- package/dist/proxy-attrs/proxy-attrs.js +5 -3
- package/dist/query-assist/query-assist.d.ts +5 -14
- package/dist/query-assist/query-assist.js +19 -31
- package/dist/query-assist/query-assist__suggestions.js +3 -1
- package/dist/query-assist-ng/query-assist-ng.js +9 -10
- package/dist/radio/radio.d.ts +1 -1
- package/dist/radio/radio.js +1 -0
- package/dist/radio/radio__item.js +1 -0
- package/dist/radio-ng/radio-ng.js +2 -18
- package/dist/save-field-ng/save-field-ng.js +5 -10
- package/dist/save-field-ng/save-field-ng__template.js +1 -32
- package/dist/select/select.d.ts +16 -20
- package/dist/select/select.js +65 -77
- package/dist/select/select__filter.js +5 -3
- package/dist/select/select__popup.d.ts +1 -1
- package/dist/select/select__popup.js +12 -16
- package/dist/select-ng/select-ng.js +28 -17
- package/dist/select-ng/select-ng__lazy.js +24 -20
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/dist/shortcuts/shortcuts-hoc.js +4 -3
- package/dist/shortcuts/shortcuts.d.ts +1 -1
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +5 -2
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +1 -48
- package/dist/shortcuts-ng/shortcuts-ng.js +4 -3
- package/dist/sidebar-ng/sidebar-ng.js +4 -2
- package/dist/sidebar-ng/sidebar-ng__button-template.js +1 -18
- package/dist/sidebar-ng/sidebar-ng__template.js +1 -10
- package/dist/storage/storage.js +22 -7
- package/dist/storage/storage__fallback.js +4 -3
- package/dist/storage/storage__local.js +22 -7
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +2 -1
- package/dist/table/cell.js +1 -0
- package/dist/table/disable-hover-hoc.d.ts +4 -8
- package/dist/table/disable-hover-hoc.js +4 -3
- package/dist/table/header-cell.js +2 -0
- package/dist/table/header.d.ts +8 -1
- package/dist/table/header.js +3 -1
- package/dist/table/multitable.js +1 -0
- package/dist/table/row-with-focus-sensor.d.ts +4 -4
- package/dist/table/row-with-focus-sensor.js +16 -6
- package/dist/table/row.d.ts +1 -0
- package/dist/table/row.js +9 -7
- package/dist/table/selection-adapter.js +2 -0
- package/dist/table/selection-shortcuts-hoc.js +1 -0
- package/dist/table/selection.js +1 -0
- package/dist/table/smart-table.d.ts +1 -0
- package/dist/table/smart-table.js +14 -8
- package/dist/table/table.d.ts +4 -8
- package/dist/table/table.js +4 -2
- package/dist/table-legacy-ng/table-legacy-ng.js +16 -54
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +9 -16
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
- package/dist/table-ng/smart-table-ng.js +5 -2
- package/dist/table-ng/table-ng.js +5 -2
- package/dist/tabs/collapsible-more.js +5 -3
- package/dist/tabs/collapsible-tab.js +4 -2
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +4 -2
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +6 -109
- package/dist/tabs/dumb-tabs.js +9 -13
- package/dist/tabs/smart-tabs.d.ts +4 -4
- package/dist/tabs/smart-tabs.js +13 -9
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +1 -0
- package/dist/tabs/tab.d.ts +3 -1
- package/dist/tabs/tab.js +1 -0
- package/dist/tabs/tabs.js +4 -2
- package/dist/tabs-ng/tabs-ng.js +2 -6
- package/dist/tabs-ng/tabs-ng__template.js +1 -38
- package/dist/tag/tag.d.ts +1 -0
- package/dist/tag/tag.js +8 -6
- package/dist/tags-input/tags-input.d.ts +4 -8
- package/dist/tags-input/tags-input.js +10 -11
- package/dist/tags-input-ng/tags-input-ng.js +9 -10
- package/dist/tags-list/tags-list.d.ts +1 -1
- package/dist/tags-list/tags-list.js +4 -2
- package/dist/template-ng/template-ng.js +1 -0
- package/dist/text/text.js +1 -1
- package/dist/theme-ng/theme-ng.js +1 -0
- package/dist/toggle/toggle.d.ts +9 -89
- package/dist/toggle/toggle.js +8 -8
- package/dist/toggle-ng/toggle-ng.js +4 -3
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +8 -3
- package/dist/tooltip-ng/tooltip-ng.js +12 -6
- package/dist/user-agreement/service.d.ts +14 -62
- package/dist/user-agreement/service.js +23 -21
- package/dist/user-agreement/toolbox.eula.js +1 -160
- package/dist/user-agreement/user-agreement.js +10 -10
- package/dist/user-card/card.js +2 -0
- package/dist/user-card/smart-user-card-tooltip.js +8 -11
- package/dist/user-card/tooltip.js +3 -1
- package/dist/user-card/user-card.js +4 -7
- package/dist/user-card-ng/user-card-ng.js +7 -9
- package/package.json +78 -69
- package/webpack.config.js +0 -11
- package/components/global/conic-gradient.d.ts +0 -796
- package/components/global/conic-gradient.js +0 -21
- package/components/global/radial-gradient-mask.d.ts +0 -9
- package/components/global/radial-gradient-mask.js +0 -39
- package/components/global/supports-css.d.ts +0 -2
- package/components/global/supports-css.js +0 -14
- package/components/global/theme.jsx +0 -39
- package/components/global/variables_dark.d.ts +0 -3
- package/components/global/variables_dark.js +0 -53
- package/components/loader-inline/inject-styles.d.ts +0 -2
- package/components/loader-inline/inject-styles.js +0 -17
- package/dist/_helpers/inject-styles.js +0 -22
- package/dist/global/conic-gradient.d.ts +0 -796
- package/dist/global/conic-gradient.js +0 -35
- package/dist/global/radial-gradient-mask.d.ts +0 -9
- package/dist/global/radial-gradient-mask.js +0 -49
- package/dist/global/supports-css.d.ts +0 -2
- package/dist/global/supports-css.js +0 -20
- package/dist/global/variables_dark.d.ts +0 -3
- package/dist/global/variables_dark.js +0 -57
- package/dist/loader-inline/inject-styles.d.ts +0 -2
- package/dist/loader-inline/inject-styles.js +0 -11
package/dist/header/tray-icon.js
CHANGED
|
@@ -2,8 +2,9 @@ import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBa
|
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import { Button } from '../button/button.js';
|
|
6
6
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
|
7
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
8
|
import 'focus-visible';
|
|
8
9
|
import '@jetbrains/icons/chevron-10px';
|
|
9
10
|
import '../icon/icon.js';
|
|
@@ -11,9 +12,10 @@ import 'util-deprecate';
|
|
|
11
12
|
import '../icon/icon__constants.js';
|
|
12
13
|
import '../_helpers/icon.js';
|
|
13
14
|
import '../icon/icon__svg.js';
|
|
15
|
+
import 'core-js/modules/es.string.replace.js';
|
|
14
16
|
import '../global/memoize.js';
|
|
15
|
-
import '../global/theme.js';
|
|
16
17
|
import '../link/clickableLink.js';
|
|
18
|
+
import '../global/controls-height.js';
|
|
17
19
|
import '../_helpers/button__classes.js';
|
|
18
20
|
|
|
19
21
|
class TrayIcon extends Component {
|
|
@@ -27,14 +29,14 @@ class TrayIcon extends Component {
|
|
|
27
29
|
[modules_47759f5e.rotatable]: rotatable,
|
|
28
30
|
[modules_47759f5e.rotated]: rotatable && restProps.active
|
|
29
31
|
});
|
|
30
|
-
return /*#__PURE__*/React.createElement(
|
|
32
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, restProps, {
|
|
31
33
|
className: classes
|
|
32
34
|
}));
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
_defineProperty(TrayIcon, "propTypes", { ...
|
|
39
|
+
_defineProperty(TrayIcon, "propTypes", { ...Button.propTypes,
|
|
38
40
|
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]).isRequired,
|
|
39
41
|
rotatable: PropTypes.bool
|
|
40
42
|
});
|
package/dist/heading/heading.js
CHANGED
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import deprecate from 'util-deprecate';
|
|
6
6
|
|
|
7
|
-
var modules_901b77ec = {"heading":"
|
|
7
|
+
var modules_901b77ec = {"heading":"heading_rui_4b24 font_rui_8bff","caps":"caps_rui_4b24"};
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @name Heading
|
|
@@ -28,7 +28,7 @@ const HeadingMemo = /*#__PURE__*/memo(function Heading(_ref) {
|
|
|
28
28
|
...restProps
|
|
29
29
|
} = _ref;
|
|
30
30
|
const classes = classNames(modules_901b77ec.heading, className);
|
|
31
|
-
const Tag = level <= Levels.H4 ?
|
|
31
|
+
const Tag = level <= Levels.H4 ? "h".concat(level) : fallbackHeading();
|
|
32
32
|
return /*#__PURE__*/React.createElement(Tag, _extends({}, restProps, {
|
|
33
33
|
className: classes
|
|
34
34
|
}), children);
|
|
@@ -56,7 +56,7 @@ function makeHeading(level, useCaps) {
|
|
|
56
56
|
className: classes
|
|
57
57
|
}));
|
|
58
58
|
});
|
|
59
|
-
H.displayName =
|
|
59
|
+
H.displayName = "H".concat(level);
|
|
60
60
|
H.propTypes = {
|
|
61
61
|
children: PropTypes.node,
|
|
62
62
|
className: PropTypes.string,
|
package/dist/http/http.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import ExtendableError from 'es6-error';
|
|
3
4
|
import { encodeURL, joinBaseURLAndPath } from '../global/url.js';
|
|
5
|
+
import 'core-js/modules/es.string.replace.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* @name HTTP
|
|
@@ -19,7 +21,7 @@ const defaultFetchConfig = {
|
|
|
19
21
|
class HTTPError extends ExtendableError {
|
|
20
22
|
constructor(response) {
|
|
21
23
|
let data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
22
|
-
super(
|
|
24
|
+
super("".concat(response.status, " ").concat(response.statusText || ''));
|
|
23
25
|
|
|
24
26
|
_defineProperty(this, "data", void 0);
|
|
25
27
|
|
|
@@ -155,7 +157,7 @@ class HTTP {
|
|
|
155
157
|
} = params;
|
|
156
158
|
const combinedHeaders = { ...this.fetchConfig.headers,
|
|
157
159
|
...(token ? {
|
|
158
|
-
Authorization:
|
|
160
|
+
Authorization: "".concat(TOKEN_TYPE, " ").concat(token)
|
|
159
161
|
} : {}),
|
|
160
162
|
...headers
|
|
161
163
|
};
|
package/dist/http/http.mock.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import HTTP from './http.js';
|
|
3
4
|
import 'es6-error';
|
|
4
5
|
import '../global/url.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
7
|
|
|
6
8
|
const authMock = {
|
|
7
9
|
requestToken: () => 'mock token',
|
|
@@ -3,7 +3,7 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
3
3
|
const defaultOptions = {
|
|
4
4
|
searchMax: 20,
|
|
5
5
|
searchSideThreshold: 100,
|
|
6
|
-
queryFormatter: query =>
|
|
6
|
+
queryFormatter: query => "".concat(query, " or ").concat(query, "*")
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* HubSource is designed to speed up search requests for small installations.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import HTTP from '../http/http.js';
|
|
2
2
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import 'es6-error';
|
|
4
5
|
import '../global/url.js';
|
|
6
|
+
import 'core-js/modules/es.string.replace.js';
|
|
5
7
|
|
|
6
8
|
const DEFAULT_FIELDS = 'id,name,login,banned,banReason,profile(email/email,avatar/url)';
|
|
7
9
|
function convertUserForCard(hubUser) {
|
|
@@ -15,14 +17,14 @@ function convertUserForCard(hubUser) {
|
|
|
15
17
|
banReason: hubUser.banReason,
|
|
16
18
|
email: (_hubUser$profile = hubUser.profile) === null || _hubUser$profile === void 0 ? void 0 : (_hubUser$profile$emai = _hubUser$profile.email) === null || _hubUser$profile$emai === void 0 ? void 0 : _hubUser$profile$emai.email,
|
|
17
19
|
avatarUrl: (_hubUser$profile2 = hubUser.profile) === null || _hubUser$profile2 === void 0 ? void 0 : (_hubUser$profile2$ava = _hubUser$profile2.avatar) === null || _hubUser$profile2$ava === void 0 ? void 0 : _hubUser$profile2$ava.url,
|
|
18
|
-
href:
|
|
20
|
+
href: "".concat(serverUri, "users/").concat(hubUser.id)
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function createHubUserCardSource(auth, userId) {
|
|
22
24
|
let fields = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_FIELDS;
|
|
23
25
|
const http = new HTTP(auth);
|
|
24
26
|
return async function getHubUser() {
|
|
25
|
-
const hubUser = await http.get(
|
|
27
|
+
const hubUser = await http.get("".concat(auth.config.serverUri, "api/rest/users/").concat(userId, "?fields=").concat(fields));
|
|
26
28
|
return convertUserForCard(hubUser, auth.config.serverUri);
|
|
27
29
|
};
|
|
28
30
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import HubSource from './hub-source.js';
|
|
3
4
|
|
|
4
5
|
const defaultOptions = {
|
|
@@ -20,7 +21,7 @@ class HubSourceUsersGroups {
|
|
|
20
21
|
this.usersSource = new HubSource(auth, 'users', {
|
|
21
22
|
searchMax: this.options.searchMax,
|
|
22
23
|
searchSideThreshold: this.options.searchSideThreshold,
|
|
23
|
-
queryFormatter: query =>
|
|
24
|
+
queryFormatter: query => "nameStartsWith: ".concat(HubSourceUsersGroups.wrapMultiwordQuery(query), " or loginStartsWith: ").concat(HubSourceUsersGroups.wrapMultiwordQuery(query))
|
|
24
25
|
});
|
|
25
26
|
this.groupsSource = new HubSource(auth, 'usergroups', {
|
|
26
27
|
searchMax: this.options.searchMax,
|
|
@@ -30,7 +31,7 @@ class HubSourceUsersGroups {
|
|
|
30
31
|
|
|
31
32
|
static wrapMultiwordQuery(query) {
|
|
32
33
|
if (query && query.indexOf(' ') !== -1) {
|
|
33
|
-
return
|
|
34
|
+
return "{".concat(query, "}");
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
return query;
|
package/dist/icon/icon.js
CHANGED
|
@@ -7,11 +7,11 @@ import { Color, Size } from './icon__constants.js';
|
|
|
7
7
|
export { Color, Size } from './icon__constants.js';
|
|
8
8
|
import { m as modules_29747b80 } from '../_helpers/icon.js';
|
|
9
9
|
import IconSVG from './icon__svg.js';
|
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
11
|
import '../global/memoize.js';
|
|
12
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
13
|
|
|
12
|
-
const warnSize = deprecate(() => {},
|
|
13
|
-
|
|
14
|
-
We strongly recommend to use icons handcrafted for particular sizes. If your icon doesn't exist in the desired size, please ask your designer to draw one. "Responsive" checkmark should be unchecked when exporting icon.'`);
|
|
14
|
+
const warnSize = deprecate(() => {}, "`size`, `width` and `height` props are not recommended to use in Ring UI `Icon` component. The intrinsic sizes of SVG icon (`width` and `height` SVG attributes) are used instead.\n\nWe strongly recommend to use icons handcrafted for particular sizes. If your icon doesn't exist in the desired size, please ask your designer to draw one. \"Responsive\" checkmark should be unchecked when exporting icon.'");
|
|
15
15
|
class Icon extends PureComponent {
|
|
16
16
|
warnSize() {
|
|
17
17
|
if (this.props.suppressSizeWarning) {
|
package/dist/icon/icon__svg.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
3
|
import React, { memo } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
import memoize from '../global/memoize.js';
|
|
6
7
|
import { m as modules_29747b80 } from '../_helpers/icon.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
9
|
|
|
8
10
|
function convertReactSVGDOMProperty(str) {
|
|
9
11
|
return str.replace(/[-|:]([a-z])/g, g => g[1].toUpperCase());
|
package/dist/icon/index.js
CHANGED
package/dist/icon-ng/icon-ng.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/es.string.replace.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
3
|
import angular from 'angular';
|
|
2
4
|
import { Color } from '../icon/icon__constants.js';
|
|
3
5
|
import RingTemplateNg from '../template-ng/template-ng.js';
|
|
@@ -22,7 +24,7 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
22
24
|
height: '@?',
|
|
23
25
|
width: '@?'
|
|
24
26
|
},
|
|
25
|
-
template:
|
|
27
|
+
template: "<span class=\"".concat(modules_29747b80.icon, "\" rg-template=\"normalizedGlyph\" rg-template-class=\"").concat(modules_29747b80.glyph, "\"></span>"),
|
|
26
28
|
controller: ["$scope", $scope => {
|
|
27
29
|
function decodeBase64IfNeeded(glyph) {
|
|
28
30
|
// This hack allows passing SVG content as string from angular templates like
|
|
@@ -67,18 +69,18 @@ angularModule.directive('rgIcon', function rgIconDirective() {
|
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
if (size && !width && !height) {
|
|
70
|
-
const sizeString =
|
|
71
|
-
const style =
|
|
72
|
+
const sizeString = "".concat(size, "px");
|
|
73
|
+
const style = "width: ".concat(sizeString, "; height: ").concat(sizeString, ";");
|
|
72
74
|
svgNode.setAttribute('style', style);
|
|
73
75
|
return;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
if (width) {
|
|
77
|
-
svgNode.setAttribute('style',
|
|
79
|
+
svgNode.setAttribute('style', "width: ".concat(width, "px;"));
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
if (height) {
|
|
81
|
-
svgNode.setAttribute('style',
|
|
83
|
+
svgNode.setAttribute('style', "height: ".concat(height, "px;"));
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
}
|
package/dist/input/input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { PureComponent, Ref, ComponentType, InputHTMLAttributes, TextareaHTMLAttributes, ReactNode
|
|
2
|
-
import
|
|
1
|
+
import React, { PureComponent, Ref, ComponentType, InputHTMLAttributes, TextareaHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ControlsHeight } from '../global/controls-height';
|
|
3
3
|
declare function noop(): void;
|
|
4
4
|
/**
|
|
5
5
|
* @name Input
|
|
@@ -11,20 +11,20 @@ declare enum Size {
|
|
|
11
11
|
L = "L",
|
|
12
12
|
FULL = "FULL"
|
|
13
13
|
}
|
|
14
|
-
export interface InputBaseProps
|
|
14
|
+
export interface InputBaseProps {
|
|
15
15
|
size: Size;
|
|
16
16
|
enableShortcuts: boolean | string[];
|
|
17
|
-
renderUnderline: (underlineRef: Ref<HTMLDivElement>, errorText: ReactNode) => ReactNode;
|
|
18
17
|
children?: string | undefined;
|
|
19
18
|
inputClassName?: string | null | undefined;
|
|
20
19
|
label?: ReactNode;
|
|
21
20
|
active?: boolean | null | undefined;
|
|
22
|
-
|
|
23
|
-
error?: string | null | undefined;
|
|
21
|
+
error?: ReactNode | null | undefined;
|
|
24
22
|
borderless?: boolean | null | undefined;
|
|
25
23
|
onClear?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | null | undefined;
|
|
26
24
|
loading?: boolean | null | undefined;
|
|
27
25
|
icon?: string | ComponentType | null | undefined;
|
|
26
|
+
height?: ControlsHeight | undefined;
|
|
27
|
+
afterInput?: ReactNode;
|
|
28
28
|
}
|
|
29
29
|
declare type Override<D, S> = Omit<D, keyof S> & S;
|
|
30
30
|
export declare type InputSpecificProps = Override<InputHTMLAttributes<HTMLInputElement>, InputBaseProps> & {
|
|
@@ -42,32 +42,30 @@ export declare class Input extends PureComponent<InputProps> {
|
|
|
42
42
|
onChange: typeof noop;
|
|
43
43
|
inputRef: typeof noop;
|
|
44
44
|
enableShortcuts: string[];
|
|
45
|
-
renderUnderline: (underlineRef: Ref<HTMLDivElement>, errorText: ReactNode) => JSX.Element;
|
|
46
45
|
};
|
|
47
46
|
state: {
|
|
48
47
|
empty: boolean;
|
|
49
48
|
};
|
|
50
49
|
componentDidMount(): void;
|
|
51
50
|
componentDidUpdate(): void;
|
|
51
|
+
componentWillUnmount(): void;
|
|
52
|
+
static contextType: React.Context<ControlsHeight>;
|
|
53
|
+
frame?: number;
|
|
52
54
|
input?: HTMLInputElement | HTMLTextAreaElement | null;
|
|
53
|
-
underlineNode?: HTMLElement | null;
|
|
54
55
|
id: string;
|
|
55
56
|
getId(): string;
|
|
56
57
|
checkValue(): void;
|
|
57
58
|
stretch(el: HTMLElement | null | undefined): void;
|
|
58
59
|
adapt(): void;
|
|
59
|
-
underlineRef: (el: HTMLDivElement | null) => void;
|
|
60
60
|
inputRef: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
|
|
61
61
|
clear: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
62
62
|
handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
63
63
|
handleTextareaChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
64
64
|
render(): JSX.Element;
|
|
65
65
|
}
|
|
66
|
-
export declare type ContainerProps<P> =
|
|
67
|
-
declare type
|
|
68
|
-
declare
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export
|
|
72
|
-
export default ThemedInput;
|
|
73
|
-
export { Size, Theme };
|
|
66
|
+
export declare type ContainerProps<P extends InputProps> = JSX.LibraryManagedAttributes<typeof Input, P>;
|
|
67
|
+
export declare type InputSpecificAttrs = ContainerProps<InputSpecificProps>;
|
|
68
|
+
export declare type TextAreaSpecificAttrs = ContainerProps<TextAreaSpecificProps>;
|
|
69
|
+
export declare type InputAttrs = InputSpecificAttrs | TextAreaSpecificAttrs;
|
|
70
|
+
export default Input;
|
|
71
|
+
export { Size };
|
package/dist/input/input.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
|
-
import closeIcon from '@jetbrains/icons/close';
|
|
6
|
-
import Theme, { withTheme } from '../global/theme.js';
|
|
7
|
-
export { default as Theme } from '../global/theme.js';
|
|
6
|
+
import closeIcon from '@jetbrains/icons/close-12px';
|
|
8
7
|
import { refObject } from '../global/prop-types.js';
|
|
9
|
-
import
|
|
8
|
+
import { Button } from '../button/button.js';
|
|
10
9
|
import getUID from '../global/get-uid.js';
|
|
11
10
|
import Icon from '../icon/icon.js';
|
|
12
11
|
import composeRefs from '../global/composeRefs.js';
|
|
12
|
+
import { ControlsHeightContext } from '../global/controls-height.js';
|
|
13
13
|
import { m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
14
14
|
import 'focus-visible';
|
|
15
15
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -19,6 +19,7 @@ import '../icon/icon__constants.js';
|
|
|
19
19
|
import 'util-deprecate';
|
|
20
20
|
import '../_helpers/icon.js';
|
|
21
21
|
import '../icon/icon__svg.js';
|
|
22
|
+
import 'core-js/modules/es.string.replace.js';
|
|
22
23
|
import '../global/memoize.js';
|
|
23
24
|
|
|
24
25
|
function noop() {}
|
|
@@ -45,16 +46,12 @@ class Input extends PureComponent {
|
|
|
45
46
|
empty: true
|
|
46
47
|
});
|
|
47
48
|
|
|
48
|
-
_defineProperty(this, "
|
|
49
|
+
_defineProperty(this, "frame", void 0);
|
|
49
50
|
|
|
50
|
-
_defineProperty(this, "
|
|
51
|
+
_defineProperty(this, "input", void 0);
|
|
51
52
|
|
|
52
53
|
_defineProperty(this, "id", getUID('ring-input-'));
|
|
53
54
|
|
|
54
|
-
_defineProperty(this, "underlineRef", el => {
|
|
55
|
-
this.underlineNode = el;
|
|
56
|
-
});
|
|
57
|
-
|
|
58
55
|
_defineProperty(this, "inputRef", el => {
|
|
59
56
|
this.input = el;
|
|
60
57
|
});
|
|
@@ -83,13 +80,19 @@ class Input extends PureComponent {
|
|
|
83
80
|
}
|
|
84
81
|
|
|
85
82
|
componentDidMount() {
|
|
86
|
-
this.adapt();
|
|
83
|
+
this.frame = requestAnimationFrame(() => this.adapt());
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
componentDidUpdate() {
|
|
90
87
|
this.adapt();
|
|
91
88
|
}
|
|
92
89
|
|
|
90
|
+
componentWillUnmount() {
|
|
91
|
+
if (this.frame != null) {
|
|
92
|
+
cancelAnimationFrame(this.frame);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
93
96
|
getId() {
|
|
94
97
|
return this.props.id || this.id;
|
|
95
98
|
}
|
|
@@ -111,23 +114,20 @@ class Input extends PureComponent {
|
|
|
111
114
|
return;
|
|
112
115
|
}
|
|
113
116
|
|
|
114
|
-
el.style.height =
|
|
117
|
+
el.style.height = "".concat(el.scrollHeight + 2, "px");
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
adapt() {
|
|
118
121
|
this.checkValue();
|
|
119
|
-
this.stretch(this.underlineNode);
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
render() {
|
|
123
125
|
const {
|
|
124
126
|
// Modifiers
|
|
125
|
-
theme,
|
|
126
127
|
size,
|
|
127
128
|
active,
|
|
128
129
|
multiline,
|
|
129
130
|
borderless,
|
|
130
|
-
compact,
|
|
131
131
|
// Props
|
|
132
132
|
label,
|
|
133
133
|
error,
|
|
@@ -143,15 +143,15 @@ class Input extends PureComponent {
|
|
|
143
143
|
id,
|
|
144
144
|
placeholder,
|
|
145
145
|
icon,
|
|
146
|
-
|
|
146
|
+
height = this.context,
|
|
147
|
+
afterInput,
|
|
147
148
|
...restProps
|
|
148
149
|
} = this.props;
|
|
149
|
-
const minimizeMargins = compact || borderless;
|
|
150
150
|
const {
|
|
151
151
|
empty
|
|
152
152
|
} = this.state;
|
|
153
153
|
const clearable = !!onClear;
|
|
154
|
-
const classes = classNames(modules_88cfaf40.
|
|
154
|
+
const classes = classNames(className, modules_88cfaf40.outerContainer, [modules_88cfaf40["size".concat(size)]], [modules_88cfaf40["height".concat(height)]], {
|
|
155
155
|
'ring-js-shortcuts': enableShortcuts === true,
|
|
156
156
|
[modules_88cfaf40.active]: active,
|
|
157
157
|
[modules_88cfaf40.error]: error != null,
|
|
@@ -159,7 +159,7 @@ class Input extends PureComponent {
|
|
|
159
159
|
[modules_88cfaf40.noLabel]: !this.props.label,
|
|
160
160
|
[modules_88cfaf40.withIcon]: icon != null,
|
|
161
161
|
[modules_88cfaf40.clearable]: clearable,
|
|
162
|
-
[modules_88cfaf40.
|
|
162
|
+
[modules_88cfaf40.borderless]: borderless
|
|
163
163
|
});
|
|
164
164
|
const inputClasses = classNames(modules_88cfaf40.input, inputClassName);
|
|
165
165
|
const text = value != null ? value : children;
|
|
@@ -176,6 +176,13 @@ class Input extends PureComponent {
|
|
|
176
176
|
return /*#__PURE__*/React.createElement("div", {
|
|
177
177
|
className: classes,
|
|
178
178
|
"data-test": "ring-input"
|
|
179
|
+
}, label && /*#__PURE__*/React.createElement("label", {
|
|
180
|
+
htmlFor: this.getId(),
|
|
181
|
+
className: classNames(modules_88cfaf40.label, {
|
|
182
|
+
[modules_88cfaf40.disabledLabel]: disabled
|
|
183
|
+
})
|
|
184
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
185
|
+
className: modules_88cfaf40.container
|
|
179
186
|
}, icon && /*#__PURE__*/React.createElement(Icon, {
|
|
180
187
|
glyph: icon,
|
|
181
188
|
className: modules_88cfaf40.icon
|
|
@@ -184,22 +191,15 @@ class Input extends PureComponent {
|
|
|
184
191
|
rows: 1
|
|
185
192
|
}, commonProps, restProps)) : /*#__PURE__*/React.createElement("input", _extends({
|
|
186
193
|
onChange: this.handleInputChange
|
|
187
|
-
}, commonProps, restProps)), clearable && !disabled && /*#__PURE__*/React.createElement(
|
|
194
|
+
}, commonProps, restProps)), clearable && !disabled && /*#__PURE__*/React.createElement(Button, {
|
|
188
195
|
title: "Clear input",
|
|
189
196
|
"data-test": "ring-input-clear",
|
|
190
197
|
className: modules_88cfaf40.clear,
|
|
191
198
|
icon: closeIcon,
|
|
192
199
|
onClick: this.clear
|
|
193
|
-
}),
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}, label), !borderless && /*#__PURE__*/React.createElement("div", {
|
|
197
|
-
className: modules_88cfaf40.underline
|
|
198
|
-
}), !borderless && /*#__PURE__*/React.createElement("div", {
|
|
199
|
-
className: modules_88cfaf40.focusUnderline
|
|
200
|
-
}), !minimizeMargins && /*#__PURE__*/React.createElement("div", {
|
|
201
|
-
className: modules_88cfaf40.errorUnderline
|
|
202
|
-
}), !minimizeMargins && renderUnderline(this.underlineRef, error));
|
|
200
|
+
}), afterInput), error && /*#__PURE__*/React.createElement("div", {
|
|
201
|
+
className: modules_88cfaf40.errorText
|
|
202
|
+
}, error));
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
}
|
|
@@ -208,16 +208,13 @@ _defineProperty(Input, "defaultProps", {
|
|
|
208
208
|
size: Size.M,
|
|
209
209
|
onChange: noop,
|
|
210
210
|
inputRef: noop,
|
|
211
|
-
enableShortcuts: ['esc']
|
|
212
|
-
renderUnderline: (underlineRef, errorText) => /*#__PURE__*/React.createElement("div", {
|
|
213
|
-
className: modules_88cfaf40.errorText,
|
|
214
|
-
ref: underlineRef
|
|
215
|
-
}, errorText)
|
|
211
|
+
enableShortcuts: ['esc']
|
|
216
212
|
});
|
|
217
213
|
|
|
214
|
+
_defineProperty(Input, "contextType", ControlsHeightContext);
|
|
215
|
+
|
|
218
216
|
Input.propTypes = {
|
|
219
217
|
value: PropTypes.string,
|
|
220
|
-
theme: PropTypes.oneOf(Object.values(Theme)),
|
|
221
218
|
className: PropTypes.string,
|
|
222
219
|
inputClassName: PropTypes.string,
|
|
223
220
|
size: PropTypes.oneOf(Object.values(Size)).isRequired,
|
|
@@ -225,8 +222,6 @@ Input.propTypes = {
|
|
|
225
222
|
active: PropTypes.bool,
|
|
226
223
|
error: PropTypes.string,
|
|
227
224
|
multiline: PropTypes.bool,
|
|
228
|
-
borderless: PropTypes.bool,
|
|
229
|
-
compact: PropTypes.bool,
|
|
230
225
|
onChange: PropTypes.func,
|
|
231
226
|
onClear: PropTypes.func,
|
|
232
227
|
inputRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLInputElement)), refObject(PropTypes.instanceOf(HTMLTextAreaElement))]),
|
|
@@ -235,9 +230,7 @@ Input.propTypes = {
|
|
|
235
230
|
disabled: PropTypes.bool,
|
|
236
231
|
id: PropTypes.string,
|
|
237
232
|
placeholder: PropTypes.string,
|
|
238
|
-
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType])
|
|
239
|
-
renderUnderline: PropTypes.func
|
|
233
|
+
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType])
|
|
240
234
|
};
|
|
241
|
-
const ThemedInput = withTheme()(Input);
|
|
242
235
|
|
|
243
|
-
export { Input, Size,
|
|
236
|
+
export { Input, Size, Input as default };
|
|
@@ -4,17 +4,19 @@ import classNames from 'classnames';
|
|
|
4
4
|
import closeIcon from '@jetbrains/icons/close';
|
|
5
5
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
6
6
|
import { m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
7
|
-
import Theme from '../global/theme.js';
|
|
8
7
|
import ButtonNG from '../button-ng/button-ng.js';
|
|
9
|
-
import '
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
9
|
import '../global/dom.js';
|
|
11
10
|
import '../icon-ng/icon-ng.js';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
12
12
|
import '../icon/icon__constants.js';
|
|
13
13
|
import '../template-ng/template-ng.js';
|
|
14
14
|
import '../_helpers/icon.js';
|
|
15
15
|
import '../_helpers/button__classes.js';
|
|
16
|
+
import '../global/controls-height.js';
|
|
17
|
+
import 'react';
|
|
16
18
|
|
|
17
|
-
var modules_c40fa551 = {"errorText":"
|
|
19
|
+
var modules_c40fa551 = {"errorText":"errorText_rui_d15a","clear":"clear_rui_d15a"};
|
|
18
20
|
|
|
19
21
|
const angularModule = angular.module('Ring.input', [ButtonNG]);
|
|
20
22
|
|
|
@@ -44,7 +46,7 @@ class RingInputComponent extends RingAngularComponent {
|
|
|
44
46
|
return;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
el.style.height =
|
|
49
|
+
el.style.height = "".concat(el.scrollHeight, "px");
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
onKeyUp() {
|
|
@@ -62,7 +64,7 @@ class RingInputComponent extends RingAngularComponent {
|
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
getContainerClasses() {
|
|
65
|
-
return classNames(modules_88cfaf40.
|
|
67
|
+
return classNames(modules_88cfaf40.outerContainer, this.size ? [modules_88cfaf40["size".concat(this.size)]] : null, modules_88cfaf40.heightS, {
|
|
66
68
|
[modules_88cfaf40.active]: this.active,
|
|
67
69
|
[modules_88cfaf40.error]: this.error != null,
|
|
68
70
|
[modules_88cfaf40.empty]: !this.value,
|
|
@@ -91,7 +93,6 @@ _defineProperty(RingInputComponent, "bindings", {
|
|
|
91
93
|
label: '@',
|
|
92
94
|
hint: '@',
|
|
93
95
|
size: '@',
|
|
94
|
-
theme: '@',
|
|
95
96
|
disabled: '@',
|
|
96
97
|
active: '<',
|
|
97
98
|
error: '@',
|
|
@@ -101,64 +102,7 @@ _defineProperty(RingInputComponent, "bindings", {
|
|
|
101
102
|
multiline: '<'
|
|
102
103
|
});
|
|
103
104
|
|
|
104
|
-
_defineProperty(RingInputComponent, "template",
|
|
105
|
-
<div
|
|
106
|
-
data-test="ring-input-container"
|
|
107
|
-
ng-class="$ctrl.getContainerClasses()"
|
|
108
|
-
>
|
|
109
|
-
<input
|
|
110
|
-
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
111
|
-
type="text"
|
|
112
|
-
data-test="ring-input"
|
|
113
|
-
class="${modules_88cfaf40.input}"
|
|
114
|
-
name="{{$ctrl.name}}"
|
|
115
|
-
ng-if="!$ctrl.multiline"
|
|
116
|
-
placeholder="{{$ctrl.placeholder}}"
|
|
117
|
-
ng-model="$ctrl.value"
|
|
118
|
-
ng-required="$ctrl.required"
|
|
119
|
-
ng-disabled="$ctrl.disabled"
|
|
120
|
-
ng-minlength="$ctrl.ngMinlength"
|
|
121
|
-
ng-maxlength="$ctrl.ngMaxlength"
|
|
122
|
-
ng-change="$ctrl.onInputChange()"
|
|
123
|
-
ng-keyup="$ctrl.onKeyUp()"
|
|
124
|
-
/>
|
|
125
|
-
|
|
126
|
-
<textarea
|
|
127
|
-
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
128
|
-
data-test="ring-input"
|
|
129
|
-
ng-if="$ctrl.multiline"
|
|
130
|
-
class="${modules_88cfaf40.input}"
|
|
131
|
-
rows="1"
|
|
132
|
-
name="{{$ctrl.name}}"
|
|
133
|
-
placeholder="{{$ctrl.placeholder}}"
|
|
134
|
-
ng-model="$ctrl.value"
|
|
135
|
-
ng-required="$ctrl.required"
|
|
136
|
-
ng-disabled="$ctrl.disabled"
|
|
137
|
-
ng-minlength="$ctrl.ngMinlength"
|
|
138
|
-
ng-maxlength="$ctrl.ngMaxlength"
|
|
139
|
-
ng-change="$ctrl.onInputChange()"
|
|
140
|
-
ng-keyup="$ctrl.onKeyUp()"
|
|
141
|
-
></textarea>
|
|
142
|
-
|
|
143
|
-
<rg-button
|
|
144
|
-
ng-if="$ctrl.clearable"
|
|
145
|
-
data-test="ring-input-clear"
|
|
146
|
-
class="${modules_88cfaf40.clear} ${modules_c40fa551.clear}"
|
|
147
|
-
icon="{{:: $ctrl.closeIcon}}"
|
|
148
|
-
ng-click="$ctrl.onClear()"
|
|
149
|
-
></rg-button>
|
|
150
|
-
|
|
151
|
-
<label
|
|
152
|
-
ng-if="!$ctrl.borderless"
|
|
153
|
-
class="${modules_88cfaf40.label}"
|
|
154
|
-
>{{$ctrl.label}}</label>
|
|
155
|
-
|
|
156
|
-
<div ng-if="!$ctrl.borderless" class="${modules_88cfaf40.underline}"></div>
|
|
157
|
-
<div ng-if="!$ctrl.borderless" class="${modules_88cfaf40.focusUnderline}"></div>
|
|
158
|
-
<div ng-if="!$ctrl.borderless" class="${modules_88cfaf40.errorUnderline}"></div>
|
|
159
|
-
<div ng-if="!$ctrl.borderless && $ctrl.error" class="${modules_88cfaf40.errorText} ${modules_c40fa551.errorText}">{{$ctrl.error}}</div>
|
|
160
|
-
</div>
|
|
161
|
-
`);
|
|
105
|
+
_defineProperty(RingInputComponent, "template", "\n<div\n data-test=\"ring-input-container\"\n ng-class=\"$ctrl.getContainerClasses()\"\n>\n <label\n ng-if=\"!$ctrl.borderless\"\n class=\"".concat(modules_88cfaf40.label, "\"\n >{{$ctrl.label}}</label>\n <div class=\"").concat(modules_88cfaf40.container, "\">\n <input\n aria-label=\"{{$ctrl.label || $ctrl.placeholder}}\"\n type=\"text\"\n data-test=\"ring-input\"\n class=\"").concat(modules_88cfaf40.input, "\"\n name=\"{{$ctrl.name}}\"\n ng-if=\"!$ctrl.multiline\"\n placeholder=\"{{$ctrl.placeholder}}\"\n ng-model=\"$ctrl.value\"\n ng-required=\"$ctrl.required\"\n ng-disabled=\"$ctrl.disabled\"\n ng-minlength=\"$ctrl.ngMinlength\"\n ng-maxlength=\"$ctrl.ngMaxlength\"\n ng-change=\"$ctrl.onInputChange()\"\n ng-keyup=\"$ctrl.onKeyUp()\"\n />\n\n <textarea\n aria-label=\"{{$ctrl.label || $ctrl.placeholder}}\"\n data-test=\"ring-input\"\n ng-if=\"$ctrl.multiline\"\n class=\"").concat(modules_88cfaf40.input, "\"\n rows=\"1\"\n name=\"{{$ctrl.name}}\"\n placeholder=\"{{$ctrl.placeholder}}\"\n ng-model=\"$ctrl.value\"\n ng-required=\"$ctrl.required\"\n ng-disabled=\"$ctrl.disabled\"\n ng-minlength=\"$ctrl.ngMinlength\"\n ng-maxlength=\"$ctrl.ngMaxlength\"\n ng-change=\"$ctrl.onInputChange()\"\n ng-keyup=\"$ctrl.onKeyUp()\"\n ></textarea>\n\n <rg-button\n ng-if=\"$ctrl.clearable\"\n data-test=\"ring-input-clear\"\n class=\"").concat(modules_88cfaf40.clear, " ").concat(modules_c40fa551.clear, "\"\n icon=\"{{:: $ctrl.closeIcon}}\"\n ng-click=\"$ctrl.onClear()\"\n ></rg-button>\n </div>\n\n <div ng-if=\"!$ctrl.borderless && $ctrl.error\" class=\"").concat(modules_88cfaf40.errorText, " ").concat(modules_c40fa551.errorText, "\">{{$ctrl.error}}</div>\n</div>\n "));
|
|
162
106
|
|
|
163
107
|
angularModule.component('rgInput', RingInputComponent);
|
|
164
108
|
var InputNg = angularModule.name;
|