@jetbrains/ring-ui 4.1.0-beta.9 → 4.1.4
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 +22 -16
- package/babel.config.js +3 -2
- package/components/alert/alert.js +9 -3
- package/components/alert/container.css +1 -1
- 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 +1 -1
- package/components/auth/auth.test.js +14 -7
- package/components/auth/auth__core.js +64 -33
- package/components/auth-dialog/auth-dialog.js +1 -0
- package/components/avatar/avatar.css +4 -1
- package/components/avatar/avatar.examples.js +3 -2
- package/components/avatar/avatar.js +31 -6
- 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/button/button.css +2 -2
- package/components/button/button.js +4 -1
- 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 +1 -1
- 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.examples.js +1 -1
- 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 +5 -2
- package/components/dialog/dialog.test.js +1 -1
- package/components/dialog/dialog__body-scroll-preventer.js +2 -2
- package/components/dialog-ng/dialog-ng.js +7 -8
- package/components/dialog-ng/{dialog-ng.html → dialog-ng__template.js} +2 -2
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.examples.js +36 -1
- 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/island/island.css +4 -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 -5
- package/components/pager/pager.js +5 -3
- package/components/permissions/permissions.js +1 -1
- 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 -1
- 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/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/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 +4 -8
- package/components/tabs/dumb-tabs.js +1 -0
- package/components/tabs/tab-link.js +4 -2
- package/components/tabs/tabs.css +27 -0
- 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 -1
- package/components/user-agreement/user-agreement.examples.js +7 -4
- package/components/user-agreement/user-agreement.js +1 -0
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -94
- package/dist/_helpers/anchor.js +6 -6
- 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 +1 -1
- 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 +3 -2
- 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 +6 -8
- package/dist/_helpers/services-link.js +6 -8
- package/dist/_helpers/sidebar.js +6 -8
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/title.js +1 -1
- package/dist/alert/alert.js +15 -9
- package/dist/alert/container.js +7 -9
- package/dist/alert-service/alert-service.js +24 -13
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/analytics__custom-plugin.js +1 -1
- package/dist/analytics/analytics__fus-plugin.js +2 -2
- package/dist/analytics/analytics__ga-plugin.js +1 -1
- 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 +86 -48
- package/dist/auth/background-flow.js +1 -2
- package/dist/auth/down-notification.js +6 -3
- 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 +1 -1
- package/dist/auth/storage.js +3 -2
- package/dist/auth/token-validator.js +1 -1
- package/dist/auth/window-flow.js +1 -1
- package/dist/auth-dialog/auth-dialog.js +5 -3
- package/dist/auth-dialog-service/auth-dialog-service.js +6 -5
- 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 +36 -30
- 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 +1 -1
- package/dist/checkbox/checkbox.js +9 -11
- 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 +6 -3
- package/dist/confirm-ng/confirm-ng.js +66 -0
- package/dist/confirm-service/confirm-service.js +12 -10
- package/dist/content-layout/content-layout.js +6 -8
- package/dist/contenteditable/contenteditable.js +13 -16
- package/dist/data-list/data-list.js +10 -7
- package/dist/data-list/data-list.mock.js +2 -2
- package/dist/data-list/item.js +5 -3
- package/dist/data-list/selection.js +1 -1
- 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 +10 -6
- package/dist/date-picker/date-picker.js +38 -29
- package/dist/date-picker/date-popup.js +51 -28
- package/dist/date-picker/day.js +2 -2
- package/dist/date-picker/formats.js +1 -1
- package/dist/date-picker/month-names.js +16 -9
- package/dist/date-picker/month-slider.js +2 -2
- 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 +2 -2
- package/dist/dialog/dialog.js +13 -10
- 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 +8 -10
- 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 -122
- 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 +1 -2
- package/dist/global/compose.js +1 -1
- package/dist/global/composeRefs.js +1 -1
- package/dist/global/conic-gradient.js +3 -5
- package/dist/global/create-stateful-context.js +1 -1
- package/dist/global/data-tests.js +1 -1
- package/dist/global/focus-sensor-hoc.js +9 -11
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/get-event-key.js +1 -1
- package/dist/global/get-uid.js +1 -1
- package/dist/global/linear-function.js +1 -2
- package/dist/global/listeners.js +1 -1
- package/dist/global/memoize.js +1 -1
- package/dist/global/normalize-indent.js +1 -1
- package/dist/global/promise-with-timeout.js +1 -1
- package/dist/global/radial-gradient-mask.js +1 -1
- package/dist/global/react-dom-renderer.js +1 -1
- package/dist/global/rerender-hoc.js +3 -5
- package/dist/global/ring-angular-component.js +1 -1
- 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 +6 -8
- package/dist/global/trivial-template-tag.js +1 -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 +37 -32
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.js +10 -9
- package/dist/header/smart-profile.js +27 -24
- package/dist/header/smart-services.js +10 -9
- package/dist/header/tray-icon.js +12 -12
- package/dist/header/tray.js +6 -8
- package/dist/heading/heading.js +9 -12
- package/dist/http/http.js +37 -37
- package/dist/http/http.mock.js +4 -4
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__users-groups.js +1 -1
- 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 +9 -12
- package/dist/input-ng/input-ng.js +166 -0
- package/dist/island/adaptive-island-hoc.js +1 -2
- package/dist/island/content.js +6 -8
- package/dist/island/header.js +6 -8
- 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 +6 -8
- package/dist/link/link.js +7 -11
- package/dist/link-ng/link-ng.js +25 -0
- package/dist/list/list.js +25 -13
- package/dist/list/list__custom.js +13 -10
- package/dist/list/list__hint.js +1 -1
- package/dist/list/list__item.js +20 -13
- 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 +11 -7
- package/dist/loader/loader.js +6 -8
- package/dist/loader/loader__core.js +2 -2
- 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 +5 -3
- package/dist/login-dialog/service.js +7 -5
- 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 +5 -4
- 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 +18 -9
- 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 +1 -1
- 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 +8 -8
- package/dist/popup/popup.target.js +4 -5
- package/dist/popup/position.js +1 -2
- package/dist/popup-menu/popup-menu.js +21 -14
- package/dist/progress-bar/progress-bar.js +12 -10
- 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 +97 -28
- 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 +7 -5
- package/dist/radio/radio__item.js +10 -15
- 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 +50 -49
- package/dist/select/select__filter.js +6 -1
- package/dist/select/select__popup.js +8 -3
- 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 +2 -2
- package/dist/shortcuts/shortcuts-hoc.js +6 -8
- 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 +1 -1
- package/dist/storage/storage__local.js +3 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +7 -9
- package/dist/table/cell.js +2 -2
- package/dist/table/disable-hover-hoc.js +2 -2
- package/dist/table/header-cell.js +8 -9
- package/dist/table/header.js +5 -3
- package/dist/table/multitable.js +1 -1
- package/dist/table/row-with-focus-sensor.js +5 -3
- package/dist/table/row.js +11 -10
- package/dist/table/selection-adapter.js +1 -1
- package/dist/table/selection-shortcuts-hoc.js +8 -6
- package/dist/table/selection.js +1 -1
- package/dist/table/smart-table.js +14 -8
- package/dist/table/table.js +10 -11
- 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 +9 -6
- package/dist/tabs/collapsible-tab.js +7 -7
- package/dist/tabs/collapsible-tabs.js +18 -19
- package/dist/tabs/dumb-tabs.js +12 -9
- package/dist/tabs/smart-tabs.js +11 -9
- 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 +20 -14
- package/dist/tags-input/tags-input.js +14 -10
- 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 +14 -12
- 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 +14 -14
- 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 +81 -79
- 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
package/dist/button/button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'focus-visible';
|
|
3
|
-
import React, { PureComponent } from 'react';
|
|
3
|
+
import React, { PureComponent, createRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import chevronDown from '@jetbrains/icons/chevron-10px';
|
|
@@ -11,7 +11,8 @@ import { g as getButtonClasses, m as modules_e81895c9 } from '../_helpers/button
|
|
|
11
11
|
import { Size } from '../icon/icon__constants.js';
|
|
12
12
|
export { Size as IconSize } from '../icon/icon__constants.js';
|
|
13
13
|
import 'util-deprecate';
|
|
14
|
-
import '../_helpers/
|
|
14
|
+
import '../_helpers/icon.js';
|
|
15
|
+
import '../icon/icon__svg.js';
|
|
15
16
|
import '../global/memoize.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -23,9 +24,14 @@ import '../global/memoize.js';
|
|
|
23
24
|
*/
|
|
24
25
|
|
|
25
26
|
class Button extends PureComponent {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
|
|
30
|
+
_defineProperty(this, "buttonRef", /*#__PURE__*/createRef());
|
|
31
|
+
}
|
|
32
|
+
|
|
26
33
|
render() {
|
|
27
|
-
const
|
|
28
|
-
{
|
|
34
|
+
const {
|
|
29
35
|
// Modifiers
|
|
30
36
|
theme,
|
|
31
37
|
active,
|
|
@@ -43,10 +49,9 @@ class Button extends PureComponent {
|
|
|
43
49
|
iconClassName,
|
|
44
50
|
iconSuppressSizeWarning,
|
|
45
51
|
className,
|
|
46
|
-
children
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
children,
|
|
53
|
+
...props
|
|
54
|
+
} = this.props;
|
|
50
55
|
const classes = getButtonClasses({
|
|
51
56
|
className,
|
|
52
57
|
active,
|
|
@@ -76,6 +81,7 @@ class Button extends PureComponent {
|
|
|
76
81
|
const isLink = !!props.href;
|
|
77
82
|
const Tag = isLink ? ClickableLink : 'button';
|
|
78
83
|
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
84
|
+
ref: this.buttonRef,
|
|
79
85
|
tabIndex: loader ? -1 : 0,
|
|
80
86
|
type: isLink ? null : 'button'
|
|
81
87
|
}, props, {
|
|
@@ -114,4 +120,4 @@ _defineProperty(Button, "IconSize", Size);
|
|
|
114
120
|
_defineProperty(Button, "Theme", Theme);
|
|
115
121
|
var Button$1 = withTheme()(Button);
|
|
116
122
|
|
|
117
|
-
export
|
|
123
|
+
export { Button$1 as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export { default as Caption } from './caption.js';
|
|
6
|
+
import { m as modules_1068e447 } from '../_helpers/button-group.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @name Button Group
|
|
@@ -27,4 +27,4 @@ _defineProperty(ButtonGroup, "propTypes", {
|
|
|
27
27
|
className: PropTypes.string
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
export default
|
|
30
|
+
export { ButtonGroup as default };
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'prop-types';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { PureComponent } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { m as modules_1068e447 } from '../_helpers/button-group.js';
|
|
6
|
+
|
|
7
|
+
class Caption extends PureComponent {
|
|
8
|
+
render() {
|
|
9
|
+
const {
|
|
10
|
+
className
|
|
11
|
+
} = this.props;
|
|
12
|
+
const classes = classNames(modules_1068e447.caption, className);
|
|
13
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, this.props, {
|
|
14
|
+
className: classes
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
_defineProperty(Caption, "propTypes", {
|
|
21
|
+
className: PropTypes.node
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { Caption as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { m as modules_1068e447 } from '../_helpers/button-group.js';
|
|
4
|
+
|
|
5
|
+
var modules_c53cb36f = {"buttonGroup":"buttonGroup_rui_6db3"};
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name Button Group Ng
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const angularModule = angular.module('Ring.button-group', []);
|
|
12
|
+
const buttonGroupClasses = classNames(modules_1068e447.buttonGroup, modules_c53cb36f.buttonGroup);
|
|
13
|
+
|
|
14
|
+
function rgButtonGroup() {
|
|
15
|
+
return {
|
|
16
|
+
restrict: 'A',
|
|
17
|
+
link: function link($scope, iElement) {
|
|
18
|
+
const element = iElement[0];
|
|
19
|
+
element.classList.add(...buttonGroupClasses.split(' '));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function rgButtonGroupCaption() {
|
|
25
|
+
return {
|
|
26
|
+
restrict: 'A',
|
|
27
|
+
link: function link($scope, iElement) {
|
|
28
|
+
const element = iElement[0];
|
|
29
|
+
element.classList.add(...modules_1068e447.caption.split(' '));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
angularModule.directive('rgButtonGroup', rgButtonGroup);
|
|
35
|
+
angularModule.directive('rgButtonGroupCaption', rgButtonGroupCaption);
|
|
36
|
+
var buttonGroupNg = angularModule.name;
|
|
37
|
+
|
|
38
|
+
export { buttonGroupNg as default };
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import angular from 'angular';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
5
|
+
import { addClasses, removeClasses, applyMethodToClasses } from '../global/dom.js';
|
|
6
|
+
import IconNG from '../icon-ng/icon-ng.js';
|
|
7
|
+
import Theme, { applyTheme } from '../global/theme.js';
|
|
8
|
+
import { m as modules_e81895c9, g as getButtonClasses } from '../_helpers/button__classes.js';
|
|
9
|
+
import '../icon/icon__constants.js';
|
|
10
|
+
import '../template-ng/template-ng.js';
|
|
11
|
+
import '../_helpers/icon.js';
|
|
12
|
+
import 'react';
|
|
13
|
+
|
|
14
|
+
var modules_5f65bc62 = {"ringIconDefaultColor":"ringIconDefaultColor_rui_9b8c","iconMarginFix":"iconMarginFix_rui_9b8c","transcludeSpacer":"transcludeSpacer_rui_9b8c","buttonWithoutIcon":"buttonWithoutIcon_rui_9b8c","iconNg":"iconNg_rui_9b8c","narrowRight":"narrowRight_rui_9b8c"};
|
|
15
|
+
|
|
16
|
+
const {
|
|
17
|
+
ringIconDefaultColor,
|
|
18
|
+
iconMarginFix,
|
|
19
|
+
transcludeSpacer
|
|
20
|
+
} = modules_5f65bc62;
|
|
21
|
+
/**
|
|
22
|
+
* @name Button Ng
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const angularModule = angular.module('Ring.button', [IconNG]);
|
|
26
|
+
const ORDER_NOT_DEFINED = '-1';
|
|
27
|
+
const buttonClassesMap = Object.values({ ...modules_e81895c9,
|
|
28
|
+
...modules_5f65bc62
|
|
29
|
+
}).reduce((acc, classes) => {
|
|
30
|
+
classes.split(' ').forEach(value => acc[value] = true);
|
|
31
|
+
return acc;
|
|
32
|
+
}, {});
|
|
33
|
+
const LOADER_BACKGROUND_SELECTOR = '.js-button-loader';
|
|
34
|
+
|
|
35
|
+
class ButtonController extends RingAngularComponent {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
|
|
39
|
+
_defineProperty(this, "updateClasses", () => {
|
|
40
|
+
const {
|
|
41
|
+
$attrs
|
|
42
|
+
} = this.$inject;
|
|
43
|
+
const theme = this.element.classList.contains(modules_e81895c9.light) ? Theme.LIGHT : Theme.DARK;
|
|
44
|
+
const foreignClasses = [...this.element.classList].filter(name => !buttonClassesMap[name]);
|
|
45
|
+
this.element.className = classNames(foreignClasses, getButtonClasses({
|
|
46
|
+
className: modules_e81895c9.button,
|
|
47
|
+
active: this.getAttrValue($attrs.active),
|
|
48
|
+
disabled: this.getAttrValue($attrs.disabled),
|
|
49
|
+
loader: this.getAttrValue($attrs.loader),
|
|
50
|
+
primary: $attrs.mode === 'primary' || $attrs.mode === 'blue',
|
|
51
|
+
short: this.getAttrValue($attrs.short),
|
|
52
|
+
text: this.getAttrValue($attrs.text),
|
|
53
|
+
inline: this.getAttrValue($attrs.inline),
|
|
54
|
+
danger: this.getAttrValue($attrs.danger),
|
|
55
|
+
delayed: this.getAttrValue($attrs.delayed),
|
|
56
|
+
icon: $attrs.icon,
|
|
57
|
+
theme
|
|
58
|
+
}), {
|
|
59
|
+
// Some overrides for angular buttons
|
|
60
|
+
[modules_5f65bc62.buttonWithoutIcon]: !$attrs.icon,
|
|
61
|
+
[modules_5f65bc62.narrowRight]: this.getAttrValue($attrs.narrowRight)
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
if (!$attrs.hasOwnProperty('mode')) {
|
|
65
|
+
addClasses(this.findTranscludeNode().classList, ringIconDefaultColor);
|
|
66
|
+
} else {
|
|
67
|
+
removeClasses(this.findTranscludeNode().classList, ringIconDefaultColor);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
_defineProperty(this, "findTranscludeNode", () => this.element.querySelector('ng-transclude'));
|
|
72
|
+
|
|
73
|
+
_defineProperty(this, "updateIcon", () => {
|
|
74
|
+
const {
|
|
75
|
+
$attrs,
|
|
76
|
+
$compile,
|
|
77
|
+
$scope
|
|
78
|
+
} = this.$inject;
|
|
79
|
+
const icon = this.element.querySelector('rg-icon');
|
|
80
|
+
const transcludeNode = this.findTranscludeNode();
|
|
81
|
+
const glyph = $attrs.icon;
|
|
82
|
+
const size = $attrs.iconSize;
|
|
83
|
+
const isLoading = this.getAttrValue($attrs.loader);
|
|
84
|
+
|
|
85
|
+
if (glyph && isLoading) {
|
|
86
|
+
icon.setAttribute('loading', true);
|
|
87
|
+
} else {
|
|
88
|
+
icon.setAttribute('loading', false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (glyph) {
|
|
92
|
+
addClasses(transcludeNode.classList, transcludeSpacer);
|
|
93
|
+
icon.setAttribute('glyph', glyph);
|
|
94
|
+
|
|
95
|
+
if (size) {
|
|
96
|
+
icon.setAttribute('size', size);
|
|
97
|
+
}
|
|
98
|
+
} else {
|
|
99
|
+
removeClasses(transcludeNode.classList, transcludeSpacer);
|
|
100
|
+
icon.removeAttribute('glyph');
|
|
101
|
+
icon.removeAttribute('size');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
$compile(icon)($scope);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
const {
|
|
108
|
+
$element,
|
|
109
|
+
$attrs: _$attrs,
|
|
110
|
+
$scope: _$scope
|
|
111
|
+
} = this.$inject;
|
|
112
|
+
_$scope.styles = modules_e81895c9;
|
|
113
|
+
this.element = $element[0];
|
|
114
|
+
const modifiers = ['delayed', 'loader', 'danger', 'short', 'active', 'text', 'inline', 'narrowRight'];
|
|
115
|
+
modifiers.forEach(mod => {
|
|
116
|
+
_$scope.$watch(() => _$scope.$eval(_$attrs[mod]), val => {
|
|
117
|
+
this.updateClasses();
|
|
118
|
+
const attrName = `data-test-${mod}`;
|
|
119
|
+
|
|
120
|
+
if (val) {
|
|
121
|
+
this.element.setAttribute(attrName, true);
|
|
122
|
+
} else {
|
|
123
|
+
this.element.removeAttribute(attrName);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (mod === 'loader') {
|
|
127
|
+
const isText = this.getAttrValue(_$attrs.text);
|
|
128
|
+
const withIcon = !!_$attrs.icon;
|
|
129
|
+
applyMethodToClasses(val && !isText && !withIcon ? 'add' : 'remove')(this.element.querySelector(LOADER_BACKGROUND_SELECTOR).classList, modules_e81895c9.loaderBackground);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
const tabIndex = _$attrs.tabindex || ORDER_NOT_DEFINED;
|
|
134
|
+
|
|
135
|
+
if (tabIndex !== ORDER_NOT_DEFINED) {
|
|
136
|
+
this.element.setAttribute('tabindex', tabIndex);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
_$scope.$watch(() => _$scope.$eval(_$attrs.loader), val => {
|
|
140
|
+
if (val) {
|
|
141
|
+
this.element.setAttribute('tabindex', ORDER_NOT_DEFINED);
|
|
142
|
+
} else if (tabIndex !== ORDER_NOT_DEFINED) {
|
|
143
|
+
this.element.setAttribute('tabindex', tabIndex);
|
|
144
|
+
} else {
|
|
145
|
+
this.element.removeAttribute('tabindex');
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
$postLink() {
|
|
151
|
+
this.updateClasses();
|
|
152
|
+
const {
|
|
153
|
+
$attrs
|
|
154
|
+
} = this.$inject;
|
|
155
|
+
$attrs.$observe('mode', this.updateClasses);
|
|
156
|
+
$attrs.$observe('icon', () => {
|
|
157
|
+
this.updateClasses();
|
|
158
|
+
this.updateIcon();
|
|
159
|
+
});
|
|
160
|
+
$attrs.$observe('iconSize', () => {
|
|
161
|
+
this.updateClasses();
|
|
162
|
+
this.updateIcon();
|
|
163
|
+
});
|
|
164
|
+
$attrs.$observe('theme', this.updateClasses);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
getAttrValue(attribute) {
|
|
168
|
+
const {
|
|
169
|
+
$scope
|
|
170
|
+
} = this.$inject;
|
|
171
|
+
return $scope.$eval(attribute);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
_defineProperty(ButtonController, "$inject", ['$element', '$attrs', '$scope', '$compile', '$log']);
|
|
177
|
+
|
|
178
|
+
function changeTheme(element, data) {
|
|
179
|
+
return applyTheme({
|
|
180
|
+
element,
|
|
181
|
+
prevTheme: data.prevTheme && modules_e81895c9[data.prevTheme] || modules_e81895c9.light,
|
|
182
|
+
currentTheme: modules_e81895c9[data.currentTheme]
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function createButtonDirective(tagName) {
|
|
187
|
+
return () => ({
|
|
188
|
+
restrict: 'E',
|
|
189
|
+
transclude: true,
|
|
190
|
+
replace: true,
|
|
191
|
+
require: {
|
|
192
|
+
rgThemeCtrl: '?^^rgTheme'
|
|
193
|
+
},
|
|
194
|
+
template: `
|
|
195
|
+
<${tagName} class="${modules_e81895c9.button} ${modules_e81895c9.light}">
|
|
196
|
+
<span class="${modules_e81895c9.content}"
|
|
197
|
+
><rg-icon class="${classNames(modules_e81895c9.icon, modules_5f65bc62.iconNg, iconMarginFix)}"></rg-icon
|
|
198
|
+
><ng-transclude></ng-transclude
|
|
199
|
+
></span
|
|
200
|
+
><div class="js-button-loader"></div>
|
|
201
|
+
</${tagName}>
|
|
202
|
+
`,
|
|
203
|
+
controller: ButtonController,
|
|
204
|
+
link: (scope, element, attrs, _ref) => {
|
|
205
|
+
let {
|
|
206
|
+
rgThemeCtrl
|
|
207
|
+
} = _ref;
|
|
208
|
+
|
|
209
|
+
if (rgThemeCtrl) {
|
|
210
|
+
changeTheme(element[0], {
|
|
211
|
+
currentTheme: rgThemeCtrl.theme
|
|
212
|
+
});
|
|
213
|
+
rgThemeCtrl.on('change', (event, data) => changeTheme(element[0], data));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
angularModule.directive('rgButton', createButtonDirective('button'));
|
|
220
|
+
angularModule.directive('rgButtonLink', createButtonDirective('a'));
|
|
221
|
+
var ButtonNG = angularModule.name;
|
|
222
|
+
|
|
223
|
+
export { LOADER_BACKGROUND_SELECTOR, ButtonNG as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
|
|
6
|
-
var modules_fd849143 = {"unit":"8px","buttonSet":"buttonSet_buttonSet__40c7f807","button":"buttonSet_button__40c7f807"};
|
|
5
|
+
import { m as modules_fd849143 } from '../_helpers/button-set.js';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @name Button Set
|
|
@@ -24,4 +23,4 @@ _defineProperty(ButtonSet, "propTypes", {
|
|
|
24
23
|
className: PropTypes.string
|
|
25
24
|
});
|
|
26
25
|
|
|
27
|
-
export default
|
|
26
|
+
export { ButtonSet as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import { m as modules_fd849143 } from '../_helpers/button-set.js';
|
|
3
|
+
|
|
4
|
+
const angularModule = angular.module('Ring.button-set', []);
|
|
5
|
+
|
|
6
|
+
function rgButtonSet() {
|
|
7
|
+
return {
|
|
8
|
+
restrict: 'E',
|
|
9
|
+
replace: true,
|
|
10
|
+
scope: false,
|
|
11
|
+
transclude: true,
|
|
12
|
+
template: `<div class="${modules_fd849143.buttonSet}" ng-transclude></div>`
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
angularModule.directive('rgButtonSet', rgButtonSet);
|
|
17
|
+
var ButtonSet = angularModule.name;
|
|
18
|
+
|
|
19
|
+
export { ButtonSet as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
|
|
6
|
-
var modules_34154ec0 = {"unit":"8px","buttonToolbar":"buttonToolbar_buttonToolbar__ec743009","button":"buttonToolbar_button__ec743009","buttonGroup":"buttonToolbar_buttonGroup__ec743009"};
|
|
5
|
+
import { m as modules_34154ec0 } from '../_helpers/button-toolbar.js';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @name Button Toolbar
|
|
@@ -27,4 +26,4 @@ _defineProperty(ButtonToolbar, "propTypes", {
|
|
|
27
26
|
className: PropTypes.string
|
|
28
27
|
});
|
|
29
28
|
|
|
30
|
-
export default
|
|
29
|
+
export { ButtonToolbar as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import { m as modules_34154ec0 } from '../_helpers/button-toolbar.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @name Button Toolbar Ng
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const angularModule = angular.module('Ring.button-toolbar', []);
|
|
9
|
+
|
|
10
|
+
function rgButtonToolbar() {
|
|
11
|
+
return {
|
|
12
|
+
restrict: 'A',
|
|
13
|
+
link: function link($scope, iElement) {
|
|
14
|
+
const element = iElement[0];
|
|
15
|
+
element.classList.add(...modules_34154ec0.buttonToolbar.split(' '));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
angularModule.directive('rgButtonToolbar', rgButtonToolbar);
|
|
21
|
+
var buttonToolbarNg = angularModule.name;
|
|
22
|
+
|
|
23
|
+
export { buttonToolbarNg as default };
|
package/dist/caret/caret.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import checkmarkIcon from '@jetbrains/icons/checkmark';
|
|
6
6
|
import minusIcon from '@jetbrains/icons/remove-10px';
|
|
7
7
|
import Icon from '../icon/icon.js';
|
|
8
|
+
import { m as modules_3199090e } from '../_helpers/checkbox.js';
|
|
8
9
|
import 'util-deprecate';
|
|
9
10
|
import '../icon/icon__constants.js';
|
|
10
|
-
import '../_helpers/
|
|
11
|
+
import '../_helpers/icon.js';
|
|
12
|
+
import '../icon/icon__svg.js';
|
|
11
13
|
import '../global/memoize.js';
|
|
12
14
|
|
|
13
|
-
var modules_3199090e = {"unit":"8px","checkboxSize":"14px","checkbox":"checkbox_checkbox__50df3ed7","cell":"checkbox_cell__50df3ed7","icon":"checkbox_icon__50df3ed7","check":"checkbox_check__50df3ed7 checkbox_icon__50df3ed7","minus":"checkbox_minus__50df3ed7 checkbox_icon__50df3ed7","input":"checkbox_input__50df3ed7","focus":"checkbox_focus__50df3ed7","label":"checkbox_label__50df3ed7"};
|
|
14
|
-
|
|
15
15
|
/**
|
|
16
16
|
* @name Checkbox
|
|
17
17
|
*/
|
|
@@ -50,8 +50,7 @@ class Checkbox extends PureComponent {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
render() {
|
|
53
|
-
const
|
|
54
|
-
{
|
|
53
|
+
const {
|
|
55
54
|
children,
|
|
56
55
|
label,
|
|
57
56
|
className,
|
|
@@ -59,10 +58,9 @@ class Checkbox extends PureComponent {
|
|
|
59
58
|
containerStyle,
|
|
60
59
|
cellClassName,
|
|
61
60
|
labelClassName,
|
|
62
|
-
indeterminate
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
indeterminate,
|
|
62
|
+
...restProps
|
|
63
|
+
} = this.props;
|
|
66
64
|
const classes = classNames(modules_3199090e.input, className);
|
|
67
65
|
const containerClasses = classNames(modules_3199090e.checkbox, containerClassName);
|
|
68
66
|
const cellClasses = classNames(modules_3199090e.cell, cellClassName);
|
|
@@ -107,4 +105,4 @@ _defineProperty(Checkbox, "propTypes", {
|
|
|
107
105
|
children: PropTypes.node
|
|
108
106
|
});
|
|
109
107
|
|
|
110
|
-
export default
|
|
108
|
+
export { Checkbox as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import checkmarkIcon from '@jetbrains/icons/checkmark';
|
|
3
|
+
import IconNG from '../icon-ng/icon-ng.js';
|
|
4
|
+
import proxyAttrs from '../proxy-attrs/proxy-attrs.js';
|
|
5
|
+
import { m as modules_3199090e } from '../_helpers/checkbox.js';
|
|
6
|
+
import '../icon/icon__constants.js';
|
|
7
|
+
import '../template-ng/template-ng.js';
|
|
8
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
9
|
+
import '../global/ring-angular-component.js';
|
|
10
|
+
import '../_helpers/icon.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @name Checkbox Ng
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const angularModule = angular.module('Ring.checkbox', [IconNG]);
|
|
17
|
+
let idCounter = 0;
|
|
18
|
+
const CHECKBOX_ID_PREFIX = 'rg-checkbox-';
|
|
19
|
+
angularModule.directive('rgCheckbox', function rgCheckboxDirective() {
|
|
20
|
+
return {
|
|
21
|
+
restrict: 'E',
|
|
22
|
+
transclude: true,
|
|
23
|
+
replace: true,
|
|
24
|
+
template: proxyAttrs(`
|
|
25
|
+
<label class="${modules_3199090e.checkbox}">
|
|
26
|
+
<input
|
|
27
|
+
data-proxy-ng-disabled
|
|
28
|
+
data-proxy-ng-model
|
|
29
|
+
data-proxy-ng-change
|
|
30
|
+
data-proxy-ng-true-value
|
|
31
|
+
data-proxy-ng-false-value
|
|
32
|
+
data-proxy-name
|
|
33
|
+
data-proxy-title
|
|
34
|
+
data-proxy-aria-label
|
|
35
|
+
data-test="ring-checkbox"
|
|
36
|
+
type="checkbox"
|
|
37
|
+
class="${modules_3199090e.input}"
|
|
38
|
+
/>
|
|
39
|
+
<span class="${modules_3199090e.cell}">
|
|
40
|
+
<rg-icon class="${modules_3199090e.check}" glyph="{{:: checkmarkIcon}}" />
|
|
41
|
+
</span><span class="${modules_3199090e.label}" ng-transclude></span>
|
|
42
|
+
</label>
|
|
43
|
+
`),
|
|
44
|
+
link: function link(scope, iElement) {
|
|
45
|
+
scope.checkmarkIcon = checkmarkIcon;
|
|
46
|
+
const input = iElement[0].querySelector('input[type="checkbox"]');
|
|
47
|
+
const id = CHECKBOX_ID_PREFIX + idCounter++;
|
|
48
|
+
iElement[0].setAttribute('for', id);
|
|
49
|
+
input.setAttribute('id', id);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
var Checkbox = angularModule.name;
|
|
54
|
+
|
|
55
|
+
export { Checkbox as default };
|