@jetbrains/ring-ui 5.0.0-beta.7 → 5.0.1
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/components/alert/alert.css +2 -1
- package/components/alert-service/alert-service.js +1 -1
- package/components/analytics/analytics__ga-plugin.d.ts +1 -1
- package/components/analytics/analytics__ga-plugin.js +12 -3
- package/components/auth/auth__core.js +5 -1
- package/components/auth-dialog-service/auth-dialog-service.js +1 -1
- package/components/avatar/avatar.d.ts +1 -0
- package/components/avatar/fallback-avatar.js +2 -2
- package/components/button/button.css +4 -4
- package/components/button/button.d.ts +2 -1
- package/components/button-group/button-group.css +4 -2
- package/components/checkbox/checkbox.css +8 -12
- package/components/checkbox/checkbox.js +1 -1
- package/components/checkbox-ng/checkbox-ng.js +1 -1
- package/components/confirm-service/confirm-service.js +1 -1
- package/components/data-list/data-list.d.ts +4 -8
- package/components/date-picker/date-picker.css +1 -0
- package/components/date-picker/date-popup.js +0 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/global/angular-component-factory.js +1 -1
- package/components/global/promise-with-timeout.d.ts +2 -1
- package/components/global/promise-with-timeout.js +5 -2
- 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.js +11 -4
- package/components/global/variables.css +0 -1
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +1 -2
- package/components/header/header.css +2 -2
- package/components/header/profile.d.ts +3 -3
- package/components/input/input.css +9 -2
- package/components/input/input.d.ts +3 -1
- package/components/input/input.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +4 -8
- package/components/island/content.d.ts +33 -2
- package/components/island/content.js +5 -4
- package/components/island/island.d.ts +4 -8
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/link.css +0 -2
- package/components/link/link.d.ts +14 -22
- package/components/link/link.js +2 -2
- package/components/list/consts.d.ts +3 -1
- package/components/list/list.css +1 -0
- package/components/list/list.d.ts +2 -0
- package/components/list/list.js +12 -13
- package/components/list/list__link.js +2 -2
- package/components/login-dialog/service.js +1 -1
- package/components/message/message.css +12 -26
- package/components/message/message.js +27 -14
- package/components/popup/popup.d.ts +7 -1
- package/components/popup/popup.js +4 -3
- package/components/popup/popup.target.d.ts +1 -1
- 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/query-assist/query-assist.d.ts +5 -9
- package/components/query-assist/query-assist.js +2 -2
- package/components/radio/radio.d.ts +1 -1
- package/components/select/select-popup.css +5 -1
- package/components/select/select.css +4 -1
- package/components/select/select.d.ts +12 -14
- package/components/select/select.js +20 -17
- package/components/select/select__popup.d.ts +4 -1
- package/components/select/select__popup.js +4 -3
- package/components/select-ng/select-ng.js +16 -5
- package/components/select-ng/select-ng__lazy.js +19 -8
- package/components/select-ng/select-ng__lazy.test.js +3 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/table/disable-hover-hoc.d.ts +4 -8
- package/components/table/header.d.ts +8 -1
- package/components/table/row-with-focus-sensor.d.ts +4 -4
- package/components/table/row-with-focus-sensor.js +4 -4
- package/components/table/row.d.ts +1 -0
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/smart-table.js +7 -3
- package/components/table/table.d.ts +4 -8
- package/components/tabs/collapsible-more.js +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.d.ts +4 -4
- package/components/tabs/smart-tabs.js +9 -3
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tabs.css +10 -1
- package/components/tag/tag.css +1 -1
- package/components/tag/tag.js +1 -2
- package/components/tags-input/tags-input.d.ts +4 -8
- package/components/tags-list/tags-list.d.ts +1 -1
- package/components/tooltip-ng/tooltip-ng.js +13 -10
- package/components/user-agreement/service.d.ts +14 -62
- package/components/user-agreement/service.js +1 -1
- package/dist/_helpers/anchor.js +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -1
- 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 +12 -7
- package/dist/_helpers/title.js +2 -1
- package/dist/alert/alert.js +15 -3
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +14 -1
- 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 +16 -7
- package/dist/analytics/analytics__plugin-utils.js +4 -3
- package/dist/analytics-ng/analytics-ng.js +3 -2
- package/dist/auth/auth.js +13 -0
- package/dist/auth/auth__core.js +29 -12
- package/dist/auth/background-flow.js +2 -1
- package/dist/auth/down-notification.js +14 -1
- package/dist/auth/iframe-flow.js +3 -0
- package/dist/auth/landing.js +17 -4
- package/dist/auth/request-builder.js +1 -0
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +13 -0
- package/dist/auth/token-validator.js +2 -0
- package/dist/auth/window-flow.js +2 -1
- package/dist/auth-dialog/auth-dialog.js +4 -2
- package/dist/auth-dialog-service/auth-dialog-service.js +4 -1
- package/dist/auth-ng/auth-ng.js +14 -1
- package/dist/autofocus-ng/autofocus-ng.js +1 -0
- 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 +13 -0
- 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 +2 -1
- package/dist/button/button.js +2 -0
- package/dist/button-group-ng/button-group-ng.js +2 -1
- package/dist/button-ng/button-ng.js +5 -11
- 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 +3 -1
- package/dist/confirm-ng/confirm-ng.js +3 -0
- package/dist/confirm-service/confirm-service.js +4 -1
- 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 +3 -1
- package/dist/data-list/data-list.mock.js +1 -0
- package/dist/data-list/item.js +3 -1
- 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 +4 -1
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.js +4 -2
- package/dist/date-picker/date-picker.js +10 -8
- package/dist/date-picker/date-popup.js +4 -3
- 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 +2 -0
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
- package/dist/dialog-ng/dialog-ng.js +7 -4
- package/dist/dialog-ng/dialog-ng__template.js +1 -70
- package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
- package/dist/dropdown/anchor.js +2 -0
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +2 -0
- package/dist/dropdown-menu/dropdown-menu.js +4 -2
- 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/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.js +15 -0
- package/dist/global/trivial-template-tag.js +2 -0
- package/dist/global/url.js +3 -1
- package/dist/global/variables.d.ts +0 -1
- 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.js +18 -14
- package/dist/header/logo.js +2 -0
- package/dist/header/profile.d.ts +3 -3
- package/dist/header/profile.js +3 -1
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.js +2 -0
- package/dist/header/smart-profile.js +17 -13
- package/dist/header/smart-services.js +14 -11
- package/dist/header/tray-icon.js +2 -0
- 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 +3 -1
- package/dist/input/input.js +5 -3
- package/dist/input-ng/input-ng.js +6 -59
- package/dist/island/adaptive-island-hoc.d.ts +4 -8
- package/dist/island/adaptive-island-hoc.js +4 -3
- package/dist/island/content.d.ts +33 -2
- package/dist/island/content.js +8 -4
- package/dist/island/header.js +3 -2
- package/dist/island/island.d.ts +4 -8
- 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 +5 -4
- package/dist/link-ng/link-ng.js +1 -4
- package/dist/list/consts.d.ts +3 -1
- package/dist/list/list.d.ts +2 -0
- 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.js +1 -0
- package/dist/loader-inline-ng/loader-inline-ng.js +1 -1
- 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 +3 -1
- package/dist/login-dialog/service.js +4 -1
- package/dist/markdown/code.js +1 -0
- package/dist/markdown/link.js +1 -0
- package/dist/markdown/markdown.js +2 -1
- package/dist/message/message.js +39 -33
- 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 +7 -4
- package/dist/pager-ng/pager-ng.js +5 -2
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +14 -1
- 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 -7
- package/dist/popup/popup.target.d.ts +1 -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.js +3 -2
- package/dist/progress-bar-ng/progress-bar-ng.js +2 -0
- package/dist/promised-click-ng/promised-click-ng.js +2 -0
- package/dist/proxy-attrs/proxy-attrs.js +5 -3
- package/dist/query-assist/query-assist.d.ts +5 -9
- package/dist/query-assist/query-assist.js +9 -5
- package/dist/query-assist/query-assist__suggestions.js +3 -1
- package/dist/query-assist-ng/query-assist-ng.js +7 -3
- 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 +3 -1
- package/dist/save-field-ng/save-field-ng__template.js +1 -32
- package/dist/select/select.d.ts +12 -14
- package/dist/select/select.js +33 -22
- package/dist/select/select__filter.js +4 -2
- package/dist/select/select__popup.d.ts +4 -1
- package/dist/select/select__popup.js +9 -4
- package/dist/select-ng/select-ng.js +23 -8
- package/dist/select-ng/select-ng__lazy.js +30 -12
- 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 +3 -0
- 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 +2 -0
- 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 +13 -0
- package/dist/storage/storage__fallback.js +4 -3
- package/dist/storage/storage__local.js +13 -0
- 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 +15 -5
- package/dist/table/row.d.ts +1 -0
- package/dist/table/row.js +4 -2
- 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 +13 -7
- package/dist/table/table.d.ts +4 -8
- package/dist/table/table.js +3 -1
- package/dist/table-legacy-ng/table-legacy-ng.js +13 -47
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +6 -9
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
- package/dist/table-ng/smart-table-ng.js +4 -1
- package/dist/table-ng/table-ng.js +4 -1
- package/dist/tabs/collapsible-more.js +4 -2
- package/dist/tabs/collapsible-tab.js +1 -0
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +3 -1
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +2 -2
- package/dist/tabs/dumb-tabs.js +3 -1
- package/dist/tabs/smart-tabs.d.ts +4 -4
- package/dist/tabs/smart-tabs.js +10 -6
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +1 -0
- package/dist/tabs/tab.d.ts +1 -1
- package/dist/tabs/tab.js +1 -0
- package/dist/tabs/tabs.js +3 -1
- package/dist/tabs-ng/tabs-ng.js +1 -0
- package/dist/tabs-ng/tabs-ng__template.js +1 -38
- package/dist/tag/tag.js +4 -3
- package/dist/tags-input/tags-input.d.ts +4 -8
- package/dist/tags-input/tags-input.js +6 -3
- package/dist/tags-input-ng/tags-input-ng.js +5 -2
- package/dist/tags-list/tags-list.d.ts +1 -1
- package/dist/tags-list/tags-list.js +3 -1
- 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.js +2 -1
- package/dist/toggle-ng/toggle-ng.js +2 -0
- package/dist/tooltip/tooltip.js +3 -1
- package/dist/tooltip-ng/tooltip-ng.js +12 -6
- package/dist/user-agreement/service.d.ts +14 -62
- package/dist/user-agreement/service.js +14 -8
- package/dist/user-agreement/toolbox.eula.js +1 -160
- package/dist/user-agreement/user-agreement.js +3 -1
- package/dist/user-card/card.js +2 -0
- package/dist/user-card/smart-user-card-tooltip.js +2 -0
- package/dist/user-card/tooltip.js +2 -0
- package/dist/user-card/user-card.js +2 -0
- package/dist/user-card-ng/user-card-ng.js +3 -0
- package/package.json +74 -66
package/dist/dialog/dialog.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export default class Dialog extends PureComponent<DialogProps> {
|
|
|
24
24
|
label: PropTypes.Requireable<string>;
|
|
25
25
|
className: PropTypes.Requireable<string>;
|
|
26
26
|
contentClassName: PropTypes.Requireable<string>;
|
|
27
|
-
children: PropTypes.Requireable<string | number | boolean |
|
|
27
|
+
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
28
28
|
show: PropTypes.Validator<boolean>;
|
|
29
29
|
showCloseButton: PropTypes.Requireable<boolean>;
|
|
30
30
|
closeButtonInside: PropTypes.Requireable<boolean>;
|
package/dist/dialog/dialog.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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 { createPortal } from 'react-dom';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
@@ -31,6 +32,7 @@ import 'util-deprecate';
|
|
|
31
32
|
import '../icon/icon__constants.js';
|
|
32
33
|
import '../_helpers/icon.js';
|
|
33
34
|
import '../icon/icon__svg.js';
|
|
35
|
+
import 'core-js/modules/es.string.replace.js';
|
|
34
36
|
import '../global/memoize.js';
|
|
35
37
|
import '../link/clickableLink.js';
|
|
36
38
|
import '../global/controls-height.js';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
+
import 'core-js/modules/es.promise.finally.js';
|
|
2
4
|
import angular from 'angular';
|
|
3
5
|
import { createFocusTrap } from 'focus-trap';
|
|
4
6
|
import { getStyles, getRect } from '../global/dom.js';
|
|
@@ -15,6 +17,7 @@ import '../global/sniffer.js';
|
|
|
15
17
|
import 'sniffr';
|
|
16
18
|
import 'classnames';
|
|
17
19
|
import '../icon-ng/icon-ng.js';
|
|
20
|
+
import 'core-js/modules/es.string.replace.js';
|
|
18
21
|
import '../icon/icon__constants.js';
|
|
19
22
|
import '../template-ng/template-ng.js';
|
|
20
23
|
import '../_helpers/icon.js';
|
|
@@ -23,7 +26,7 @@ import '../global/controls-height.js';
|
|
|
23
26
|
import 'react';
|
|
24
27
|
import 'scrollbar-width';
|
|
25
28
|
|
|
26
|
-
var modules_b378ce5a = {"unit":"8px","dialogContainer":"
|
|
29
|
+
var modules_b378ce5a = {"unit":"8px","dialogContainer":"dialogContainer_rui_0b63","wide":"wide_rui_0b63","autoWidth":"autoWidth_rui_0b63","header":"header_rui_0b63","inSidebar":"inSidebar_rui_0b63","scrollableWrapper":"scrollableWrapper_rui_0b63","content":"content_rui_0b63","error":"error_rui_0b63","footer":"footer_rui_0b63","footerDescription":"footerDescription_rui_0b63","footerItems":"footerItems_rui_0b63","footerItem":"footerItem_rui_0b63"};
|
|
27
30
|
|
|
28
31
|
rgDialogContentDirective.$inject = ["$compile", "$q"];
|
|
29
32
|
rgDialogDirective.$inject = ["$timeout"];
|
|
@@ -397,8 +400,8 @@ function rgDialogDirective($timeout) {
|
|
|
397
400
|
|
|
398
401
|
function setPosition(top, left) {
|
|
399
402
|
Object.assign(dialogContainer.style, {
|
|
400
|
-
top:
|
|
401
|
-
left:
|
|
403
|
+
top: "".concat(top, "px"),
|
|
404
|
+
left: "".concat(left, "px")
|
|
402
405
|
});
|
|
403
406
|
} // Focus first input
|
|
404
407
|
|
|
@@ -457,7 +460,7 @@ function rgDialogDirective($timeout) {
|
|
|
457
460
|
|
|
458
461
|
function setCustomFooter(customFooterElem) {
|
|
459
462
|
const placeholder = angular.element(dialogCustomFooter);
|
|
460
|
-
const footer = angular.element(
|
|
463
|
+
const footer = angular.element("<div class=\"".concat(this.styles.footer, "\"></div>")).append(customFooterElem);
|
|
461
464
|
placeholder.empty();
|
|
462
465
|
placeholder.append(footer);
|
|
463
466
|
}
|
|
@@ -1,72 +1,3 @@
|
|
|
1
|
-
var dialogTemplate =
|
|
2
|
-
ng-show="dialog.active"
|
|
3
|
-
ng-class="[!dialog.inSidebar && dialog.dialogStyles.container]"
|
|
4
|
-
ng-click="dialog.handleClick($event)"
|
|
5
|
-
ng-attr-data-portaltarget="{{!dialog.inSidebar ? 'dialog-ng-popup-container' : null}}"
|
|
6
|
-
ng-attr-data-test="ring-dialog-container"
|
|
7
|
-
>
|
|
8
|
-
<div ng-class="[dialog.dialogStyles.innerContainer]">
|
|
9
|
-
<div data-anchor="dialog-container"
|
|
10
|
-
ng-attr-data-in-sidebar="{{dialog.inSidebar ? 'true' : 'false'}}"
|
|
11
|
-
ng-attr-data-test="{{dialog.active ? 'ring-dialog' : null}}"
|
|
12
|
-
ng-class="[
|
|
13
|
-
dialog.styles.dialogContainer,
|
|
14
|
-
dialog.cssClass,
|
|
15
|
-
dialog.wideDialog && dialog.styles.wide,
|
|
16
|
-
dialog.autoWidth && dialog.styles.autoWidth,
|
|
17
|
-
dialog.inSidebar && dialog.styles.inSidebar,
|
|
18
|
-
!dialog.inSidebar && dialog.dialogStyles.content,
|
|
19
|
-
!dialog.inSidebar && dialog.islandStyles.island
|
|
20
|
-
]"
|
|
21
|
-
>
|
|
22
|
-
<div ng-class="[dialog.islandStyles.header, dialog.styles.header]"
|
|
23
|
-
data-anchor="dialog-header"
|
|
24
|
-
ng-show="dialog.title">
|
|
25
|
-
<span ng-class="dialog.islandStyles.title">{{ dialog.title }}</span>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<div ng-class="[dialog.styles.scrollableWrapper, dialog.islandStyles.scrollableWrapper, dialog.scrollableWrapperClassName]">
|
|
29
|
-
<div ng-class="[dialog.styles.content, dialog.islandStyles.content]">
|
|
30
|
-
<form name="dialog.dialogForm" class="ring-form ring-js-shortcuts"
|
|
31
|
-
novalidate>
|
|
32
|
-
<rg-dialog-content></rg-dialog-content>
|
|
33
|
-
|
|
34
|
-
<div class="ring-form__group" ng-show="dialog.error">
|
|
35
|
-
<div ng-class="dialog.styles.error" ng-bind-html="dialog.error"></div>
|
|
36
|
-
</div>
|
|
37
|
-
</form>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div ng-class="dialog.styles.footer"
|
|
42
|
-
ng-if="dialog.description.length || dialog.buttons.length">
|
|
43
|
-
<div ng-class="dialog.styles.footerDescription"
|
|
44
|
-
ng-if="dialog.description && dialog.description.length">
|
|
45
|
-
<div ng-repeat="line in dialog.description">{{ line }}</div>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div ng-class="dialog.styles.footerItems">
|
|
49
|
-
<rg-button
|
|
50
|
-
ng-repeat="button in dialog.buttons"
|
|
51
|
-
ng-class="[dialog.styles.footerItem , button.cssClasses]"
|
|
52
|
-
mode="{{button.default ? 'primary' : ''}}"
|
|
53
|
-
text="button.text"
|
|
54
|
-
ng-disabled="(button.default && dialog.dialogForm.$invalid) || button.disabled"
|
|
55
|
-
ng-if="!button.hidden"
|
|
56
|
-
data-test="dialog-footer-button"
|
|
57
|
-
|
|
58
|
-
rg-promised-click="dialog.action(button)"
|
|
59
|
-
promised-mode="loader"
|
|
60
|
-
>{{ button.label }}
|
|
61
|
-
</rg-button>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<div data-anchor="dialog-custom-footer-container"></div>
|
|
66
|
-
|
|
67
|
-
<div tabindex="-1" ng-show="false" data-anchor="focus-trap-fallback"></div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>`;
|
|
1
|
+
var dialogTemplate = "<div\n ng-show=\"dialog.active\"\n ng-class=\"[!dialog.inSidebar && dialog.dialogStyles.container]\"\n ng-click=\"dialog.handleClick($event)\"\n ng-attr-data-portaltarget=\"{{!dialog.inSidebar ? 'dialog-ng-popup-container' : null}}\"\n ng-attr-data-test=\"ring-dialog-container\"\n>\n <div ng-class=\"[dialog.dialogStyles.innerContainer]\">\n <div data-anchor=\"dialog-container\"\n ng-attr-data-in-sidebar=\"{{dialog.inSidebar ? 'true' : 'false'}}\"\n ng-attr-data-test=\"{{dialog.active ? 'ring-dialog' : null}}\"\n ng-class=\"[\n dialog.styles.dialogContainer,\n dialog.cssClass,\n dialog.wideDialog && dialog.styles.wide,\n dialog.autoWidth && dialog.styles.autoWidth,\n dialog.inSidebar && dialog.styles.inSidebar,\n !dialog.inSidebar && dialog.dialogStyles.content,\n !dialog.inSidebar && dialog.islandStyles.island\n ]\"\n >\n <div ng-class=\"[dialog.islandStyles.header, dialog.styles.header]\"\n data-anchor=\"dialog-header\"\n ng-show=\"dialog.title\">\n <span ng-class=\"dialog.islandStyles.title\">{{ dialog.title }}</span>\n </div>\n\n <div ng-class=\"[dialog.styles.scrollableWrapper, dialog.islandStyles.scrollableWrapper, dialog.scrollableWrapperClassName]\">\n <div ng-class=\"[dialog.styles.content, dialog.islandStyles.content]\">\n <form name=\"dialog.dialogForm\" class=\"ring-form ring-js-shortcuts\"\n novalidate>\n <rg-dialog-content></rg-dialog-content>\n\n <div class=\"ring-form__group\" ng-show=\"dialog.error\">\n <div ng-class=\"dialog.styles.error\" ng-bind-html=\"dialog.error\"></div>\n </div>\n </form>\n </div>\n </div>\n\n <div ng-class=\"dialog.styles.footer\"\n ng-if=\"dialog.description.length || dialog.buttons.length\">\n <div ng-class=\"dialog.styles.footerDescription\"\n ng-if=\"dialog.description && dialog.description.length\">\n <div ng-repeat=\"line in dialog.description\">{{ line }}</div>\n </div>\n\n <div ng-class=\"dialog.styles.footerItems\">\n <rg-button\n ng-repeat=\"button in dialog.buttons\"\n ng-class=\"[dialog.styles.footerItem , button.cssClasses]\"\n mode=\"{{button.default ? 'primary' : ''}}\"\n text=\"button.text\"\n ng-disabled=\"(button.default && dialog.dialogForm.$invalid) || button.disabled\"\n ng-if=\"!button.hidden\"\n data-test=\"dialog-footer-button\"\n\n rg-promised-click=\"dialog.action(button)\"\n promised-mode=\"loader\"\n >{{ button.label }}\n </rg-button>\n </div>\n </div>\n\n <div data-anchor=\"dialog-custom-footer-container\"></div>\n\n <div tabindex=\"-1\" ng-show=\"false\" data-anchor=\"focus-trap-fallback\"></div>\n </div>\n </div>\n</div>";
|
|
71
2
|
|
|
72
3
|
export { dialogTemplate as default };
|
|
@@ -2,8 +2,9 @@ import angular from 'angular';
|
|
|
2
2
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
3
3
|
import { getDocumentScrollTop, getWindowHeight } from '../global/dom.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
|
|
6
|
-
var modules_655b40c7 = {"unit":"8px","dockedPanel":"
|
|
7
|
+
var modules_655b40c7 = {"unit":"8px","dockedPanel":"dockedPanel_rui_f45d","fixed":"fixed_rui_f45d"};
|
|
7
8
|
|
|
8
9
|
const scheduleAction = scheduleRAF();
|
|
9
10
|
/**
|
package/dist/dropdown/anchor.js
CHANGED
|
@@ -10,7 +10,9 @@ import 'util-deprecate';
|
|
|
10
10
|
import '../icon/icon__constants.js';
|
|
11
11
|
import '../_helpers/icon.js';
|
|
12
12
|
import '../icon/icon__svg.js';
|
|
13
|
+
import 'core-js/modules/es.string.replace.js';
|
|
13
14
|
import '../global/memoize.js';
|
|
15
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
16
|
import 'focus-visible';
|
|
15
17
|
import '../link/clickableLink.js';
|
|
16
18
|
import '../global/controls-height.js';
|
|
@@ -6,7 +6,7 @@ export interface AnchorProps {
|
|
|
6
6
|
active: boolean;
|
|
7
7
|
pinned: boolean;
|
|
8
8
|
}
|
|
9
|
-
export interface DropdownProps extends HTMLAttributes<HTMLElement> {
|
|
9
|
+
export interface DropdownProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
10
10
|
anchor: ReactElement | readonly ReactElement[] | string | ((props: AnchorProps) => ReactNode);
|
|
11
11
|
children: ReactElement<PopupAttrs> | ((props: Omit<PopupAttrs, 'children'>) => ReactNode);
|
|
12
12
|
initShown: boolean;
|
|
@@ -32,7 +32,7 @@ export default class Dropdown extends Component<DropdownProps, DropdownState> {
|
|
|
32
32
|
* Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
|
|
33
33
|
* React element should render some interactive HTML element like `button` or `a`
|
|
34
34
|
*/
|
|
35
|
-
anchor: PropTypes.Validator<string | number | boolean |
|
|
35
|
+
anchor: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray | ((...args: any[]) => any)>;
|
|
36
36
|
children: PropTypes.Validator<PropTypes.ReactElementLike | ((...args: any[]) => any)>;
|
|
37
37
|
initShown: PropTypes.Requireable<boolean>;
|
|
38
38
|
className: PropTypes.Requireable<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
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, { Component, cloneElement } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -12,6 +13,7 @@ import 'util-deprecate';
|
|
|
12
13
|
import '../icon/icon__constants.js';
|
|
13
14
|
import '../_helpers/icon.js';
|
|
14
15
|
import '../icon/icon__svg.js';
|
|
16
|
+
import 'core-js/modules/es.string.replace.js';
|
|
15
17
|
import '../global/memoize.js';
|
|
16
18
|
import '../button/button.js';
|
|
17
19
|
import 'focus-visible';
|
|
@@ -7,6 +7,7 @@ import PopupMenu from '../popup-menu/popup-menu.js';
|
|
|
7
7
|
import getUID from '../global/get-uid.js';
|
|
8
8
|
import { A as Anchor } from '../_helpers/anchor.js';
|
|
9
9
|
import { isArray } from '../global/typescript-utils.js';
|
|
10
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
11
|
import 'classnames';
|
|
11
12
|
import 'react-virtualized/dist/es/List';
|
|
12
13
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
@@ -33,9 +34,10 @@ import '../_helpers/list.js';
|
|
|
33
34
|
import '../list/list__item.js';
|
|
34
35
|
import '../avatar/avatar.js';
|
|
35
36
|
import '../global/url.js';
|
|
37
|
+
import 'core-js/modules/es.string.replace.js';
|
|
36
38
|
import '../avatar/fallback-avatar.js';
|
|
37
39
|
import '../checkbox/checkbox.js';
|
|
38
|
-
import '@jetbrains/icons/checkmark';
|
|
40
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
39
41
|
import '@jetbrains/icons/remove-10px';
|
|
40
42
|
import '../icon/icon.js';
|
|
41
43
|
import '../icon/icon__constants.js';
|
|
@@ -98,7 +100,7 @@ function DropdownAnchorWrapper(_ref) {
|
|
|
98
100
|
...anchorAriaProps
|
|
99
101
|
}), [pinned, active, restProps, anchorAriaProps]);
|
|
100
102
|
const anchorComponentProps = useMemo(() => ({ ...anchorProps,
|
|
101
|
-
pinned:
|
|
103
|
+
pinned: "".concat(anchorProps.pinned)
|
|
102
104
|
}), [anchorProps]);
|
|
103
105
|
|
|
104
106
|
if (typeof anchor === 'string') {
|
|
@@ -4,6 +4,8 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Popup from '../popup/popup.js';
|
|
6
6
|
import { Directions } from '../popup/popup.consts.js';
|
|
7
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
|
+
import 'core-js/modules/es.string.replace.js';
|
|
7
9
|
import 'react-dom';
|
|
8
10
|
import '../global/get-uid.js';
|
|
9
11
|
import '../global/schedule-raf.js';
|
|
@@ -18,7 +20,7 @@ import '../tab-trap/tab-trap.js';
|
|
|
18
20
|
import '../popup/position.js';
|
|
19
21
|
import '../popup/popup.target.js';
|
|
20
22
|
|
|
21
|
-
var modules_ee284100 = {"unit":"8px","errorBubblePopup":"
|
|
23
|
+
var modules_ee284100 = {"unit":"8px","errorBubblePopup":"errorBubblePopup_rui_b075","errorBubbleWrapper":"errorBubbleWrapper_rui_b075","errorBubble":"errorBubble_rui_b075"};
|
|
22
24
|
|
|
23
25
|
/**
|
|
24
26
|
* @name Error Bubble
|
|
@@ -8,7 +8,9 @@ import { m as modules_2c5e8509 } from '../_helpers/error-message.js';
|
|
|
8
8
|
import 'util-deprecate';
|
|
9
9
|
import '../_helpers/icon.js';
|
|
10
10
|
import '../icon/icon__svg.js';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
11
12
|
import '../global/memoize.js';
|
|
13
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* @name Error Message
|
|
@@ -36,7 +38,7 @@ class ErrorMessage extends Component {
|
|
|
36
38
|
className: modules_2c5e8509.content
|
|
37
39
|
}, /*#__PURE__*/React.createElement("div", {
|
|
38
40
|
className: modules_2c5e8509.title
|
|
39
|
-
}, code &&
|
|
41
|
+
}, code && "".concat(code, ":"), " ", message), description && /*#__PURE__*/React.createElement("div", {
|
|
40
42
|
className: modules_2c5e8509.description
|
|
41
43
|
}, description), children));
|
|
42
44
|
}
|
|
@@ -2,6 +2,8 @@ import angular from 'angular';
|
|
|
2
2
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
3
3
|
import LinkNG from '../link-ng/link-ng.js';
|
|
4
4
|
import { m as modules_2c5e8509 } from '../_helpers/error-message.js';
|
|
5
|
+
import 'core-js/modules/es.string.replace.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
7
|
import '../icon/icon__constants.js';
|
|
6
8
|
import '../template-ng/template-ng.js';
|
|
7
9
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -18,27 +20,7 @@ angularModule.directive('rgErrorMessage', function rgErrorMessageDirective() {
|
|
|
18
20
|
return {
|
|
19
21
|
replace: true,
|
|
20
22
|
transclude: true,
|
|
21
|
-
template:
|
|
22
|
-
<div class="${modules_2c5e8509.errorMessage}" data-test="ring-error-message">
|
|
23
|
-
|
|
24
|
-
<rg-icon class="${modules_2c5e8509.icon}" glyph="{{icon}}" color="gray" size="64"></rg-icon>
|
|
25
|
-
|
|
26
|
-
<div class="${modules_2c5e8509.content}">
|
|
27
|
-
<div class="${modules_2c5e8509.title}" data-test="ring-error-message-title"
|
|
28
|
-
><span ng-if="code">{{ code }}:</span> {{ message }}</div>
|
|
29
|
-
|
|
30
|
-
<div class="${modules_2c5e8509.description}" ng-transclude></div>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<div ng-if="links">
|
|
34
|
-
<span ng-repeat="link in links">
|
|
35
|
-
<rg-link ng-if="link.target" ng-href="{{link.href}}" target="{{link.target}}">{{link.text}}</rg-link><rg-link
|
|
36
|
-
ng-if="!link.target" ng-href="{{link.href}}">{{link.text}}</rg-link>{{$last ? '' : ','}}
|
|
37
|
-
</span>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
`,
|
|
23
|
+
template: "\n<div class=\"".concat(modules_2c5e8509.errorMessage, "\" data-test=\"ring-error-message\">\n\n <rg-icon class=\"").concat(modules_2c5e8509.icon, "\" glyph=\"{{icon}}\" color=\"gray\" size=\"64\"></rg-icon>\n \n <div class=\"").concat(modules_2c5e8509.content, "\">\n <div class=\"").concat(modules_2c5e8509.title, "\" data-test=\"ring-error-message-title\"\n ><span ng-if=\"code\">{{ code }}:</span> {{ message }}</div>\n \n <div class=\"").concat(modules_2c5e8509.description, "\" ng-transclude></div>\n \n \n <div ng-if=\"links\">\n <span ng-repeat=\"link in links\">\n <rg-link ng-if=\"link.target\" ng-href=\"{{link.href}}\" target=\"{{link.target}}\">{{link.text}}</rg-link><rg-link\n ng-if=\"!link.target\" ng-href=\"{{link.href}}\">{{link.text}}</rg-link>{{$last ? '' : ','}}\n </span>\n </div>\n </div>\n</div>\n "),
|
|
42
24
|
restrict: 'E',
|
|
43
25
|
scope: {
|
|
44
26
|
code: '@',
|
package/dist/footer/footer.js
CHANGED
|
@@ -6,6 +6,7 @@ export { c as copyright, F as default } from '../_helpers/footer.js';
|
|
|
6
6
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
7
|
import 'focus-visible';
|
|
8
8
|
import '../global/memoize.js';
|
|
9
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
10
|
import '../global/data-tests.js';
|
|
10
11
|
import '../link/clickableLink.js';
|
|
11
12
|
import '../_helpers/link.js';
|
|
@@ -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 angular from 'angular';
|
|
3
4
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
4
5
|
import { m as modules_7385b3fd, c as copyright } from '../_helpers/footer.js';
|
|
@@ -33,25 +34,13 @@ _defineProperty(rgFooterComponent, "transclude", {
|
|
|
33
34
|
right: '?rgFooterRight'
|
|
34
35
|
});
|
|
35
36
|
|
|
36
|
-
_defineProperty(rgFooterComponent, "template",
|
|
37
|
-
<div ng-class=":: $ctrl.styles.columnLeft">
|
|
38
|
-
<div ng-transclude="left" ng-class=":: $ctrl.styles.columnItem"></div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div ng-class=":: $ctrl.styles.columnCenter">
|
|
42
|
-
<div ng-transclude="center" ng-class=":: $ctrl.styles.columnItem"></div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div ng-class=":: $ctrl.styles.columnRight">
|
|
46
|
-
<div ng-transclude="right" ng-class=":: $ctrl.styles.columnItem"></div>
|
|
47
|
-
</div>
|
|
48
|
-
</footer>`);
|
|
37
|
+
_defineProperty(rgFooterComponent, "template", "<footer ng-class=\":: $ctrl.styles.footer\" data-test=\"ring-footer\">\n <div ng-class=\":: $ctrl.styles.columnLeft\">\n <div ng-transclude=\"left\" ng-class=\":: $ctrl.styles.columnItem\"></div>\n </div>\n\n <div ng-class=\":: $ctrl.styles.columnCenter\">\n <div ng-transclude=\"center\" ng-class=\":: $ctrl.styles.columnItem\"></div>\n </div>\n\n <div ng-class=\":: $ctrl.styles.columnRight\">\n <div ng-transclude=\"right\" ng-class=\":: $ctrl.styles.columnItem\"></div>\n </div>\n</footer>");
|
|
49
38
|
|
|
50
39
|
class rgFooterLineComponent extends RingAngularComponent {}
|
|
51
40
|
|
|
52
41
|
_defineProperty(rgFooterLineComponent, "transclude", true);
|
|
53
42
|
|
|
54
|
-
_defineProperty(rgFooterLineComponent, "template",
|
|
43
|
+
_defineProperty(rgFooterLineComponent, "template", "<div class=\"".concat(modules_7385b3fd.line, "\" ng-transclude></div>"));
|
|
55
44
|
|
|
56
45
|
class rgFooterCopyrightComponent extends RingAngularComponent {
|
|
57
46
|
$onInit() {
|
package/dist/form-ng/form-ng.js
CHANGED
|
@@ -9,7 +9,7 @@ import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
|
9
9
|
const angularModule = angular.module('Ring.form', [MessageBundle, AngularElastic]);
|
|
10
10
|
angularModule.factory('getFormErrorMessages', ["RingMessageBundle", function getFormErrorMessagesDirective(RingMessageBundle) {
|
|
11
11
|
function msg(id, formError) {
|
|
12
|
-
const messageBundleId =
|
|
12
|
+
const messageBundleId = "form_".concat(id);
|
|
13
13
|
|
|
14
14
|
if (RingMessageBundle.hasOwnProperty(messageBundleId)) {
|
|
15
15
|
return RingMessageBundle[messageBundleId]();
|
|
@@ -51,9 +51,7 @@ angularModule.directive('rgErrorBubble', ["getFormErrorMessages", function rgErr
|
|
|
51
51
|
errorBubble: '&rgErrorBubble'
|
|
52
52
|
},
|
|
53
53
|
replace: true,
|
|
54
|
-
template:
|
|
55
|
-
<div ng-repeat="errorMessage in getFormErrorMessages(errorBubble().$error)">{{ errorMessage }}</div>
|
|
56
|
-
</div>`,
|
|
54
|
+
template: "<div class=\"ring-error-bubble\" ng-class=\"{ active: active, 'ring-error-bubble_material': material }\" ng-style=\"style\">\n <div ng-repeat=\"errorMessage in getFormErrorMessages(errorBubble().$error)\">{{ errorMessage }}</div>\n</div>",
|
|
57
55
|
link: function link(scope, iElement, iAttrs) {
|
|
58
56
|
scope.style = {};
|
|
59
57
|
const siblings = Array.from(iElement[0].parentNode.children);
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import angular from 'angular';
|
|
3
4
|
import React from 'react';
|
|
4
|
-
import { unmountComponentAtNode, render } from 'react-
|
|
5
|
+
import { unmountComponentAtNode, render } from './react-render-adapter.js';
|
|
5
6
|
import RingAngularComponent from './ring-angular-component.js';
|
|
6
7
|
import Renderer from './react-dom-renderer.js';
|
|
8
|
+
import 'react-dom';
|
|
7
9
|
import 'prop-types';
|
|
8
10
|
|
|
9
11
|
function getAngularComponentName(name) {
|
|
10
|
-
return
|
|
12
|
+
return "rg".concat(name);
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
function createAngularComponent(Component) {
|
|
14
|
-
var _class
|
|
16
|
+
var _class;
|
|
15
17
|
|
|
16
18
|
const propKeys = Object.keys(Component.propTypes);
|
|
17
19
|
const bindings = {};
|
|
18
20
|
propKeys.forEach(key => {
|
|
19
21
|
bindings[key] = '<';
|
|
20
22
|
});
|
|
21
|
-
return
|
|
23
|
+
return _class = class AngularComponent extends RingAngularComponent {
|
|
22
24
|
$postLink() {
|
|
23
25
|
const {
|
|
24
26
|
$transclude
|
|
@@ -71,11 +73,11 @@ function createAngularComponent(Component) {
|
|
|
71
73
|
}) : null), container);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
}, _defineProperty(_class, "$inject", ['$scope', '$element', '$transclude']), _defineProperty(_class, "bindings", bindings), _defineProperty(_class, "transclude", true),
|
|
76
|
+
}, _defineProperty(_class, "$inject", ['$scope', '$element', '$transclude']), _defineProperty(_class, "bindings", bindings), _defineProperty(_class, "transclude", true), _class;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
function angularComponentFactory(Component, name) {
|
|
78
|
-
const angularModuleName =
|
|
80
|
+
const angularModuleName = "Ring.".concat(name[0].toLowerCase() + name.slice(1));
|
|
79
81
|
return angular.module(angularModuleName, []).component(getAngularComponentName(name), createAngularComponent(Component));
|
|
80
82
|
}
|
|
81
83
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
2
|
import React, { memo, createContext, useState, useContext, useEffect } from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
|
|
@@ -21,7 +22,7 @@ function createStatefulContext(initialValue) {
|
|
|
21
22
|
Provider.propTypes = {
|
|
22
23
|
children: PropTypes.node
|
|
23
24
|
};
|
|
24
|
-
Provider.displayName =
|
|
25
|
+
Provider.displayName = "".concat(name, "Provider");
|
|
25
26
|
|
|
26
27
|
function useUpdate(value, skipUpdate) {
|
|
27
28
|
const update = useContext(UpdateContext);
|
|
@@ -41,7 +42,7 @@ function createStatefulContext(initialValue) {
|
|
|
41
42
|
return null;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
Updater.displayName =
|
|
45
|
+
Updater.displayName = "".concat(name, "Updater");
|
|
45
46
|
return {
|
|
46
47
|
ValueContext,
|
|
47
48
|
UpdateContext,
|
package/dist/global/dom.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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, { Component } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import { refObject } from './prop-types.js';
|
|
@@ -22,7 +22,7 @@ function fuzzyHighlight(needle, haystack) {
|
|
|
22
22
|
|
|
23
23
|
if (nlen === hlen) {
|
|
24
24
|
const matched = ndl === hstck;
|
|
25
|
-
return result(matched, matched ?
|
|
25
|
+
return result(matched, matched ? "".concat(marker).concat(haystack).concat(marker) : haystack);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
let highlight = '';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
|
+
|
|
1
3
|
const injectStyleSheet = styles => {
|
|
2
4
|
const styleTag = document.createElement('style');
|
|
3
5
|
styleTag.setAttribute('type', 'text/css');
|
|
@@ -5,13 +7,9 @@ const injectStyleSheet = styles => {
|
|
|
5
7
|
document.head.appendChild(styleTag);
|
|
6
8
|
return styleTag;
|
|
7
9
|
};
|
|
8
|
-
const injectRuleSet = (selector, declarations) => injectStyleSheet(
|
|
9
|
-
${selector} {
|
|
10
|
-
${Object.entries(declarations).map(_ref => {
|
|
10
|
+
const injectRuleSet = (selector, declarations) => injectStyleSheet("\n".concat(selector, " {\n ").concat(Object.entries(declarations).map(_ref => {
|
|
11
11
|
let [property, value] = _ref;
|
|
12
|
-
return
|
|
13
|
-
}).join(
|
|
14
|
-
`)}
|
|
15
|
-
}`);
|
|
12
|
+
return "".concat(property, ": ").concat(value, ";");
|
|
13
|
+
}).join("\n "), "\n}"));
|
|
16
14
|
|
|
17
15
|
export { injectRuleSet, injectStyleSheet };
|
package/dist/global/listeners.js
CHANGED
package/dist/global/memoize.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface PromiseWithTimeoutConfig {
|
|
2
2
|
error?: Error | null | undefined;
|
|
3
|
+
onTimeout?: () => void | undefined;
|
|
3
4
|
}
|
|
4
|
-
export default function promiseWithTimeout<T>(promise: Promise<T>, timeout: number, { error }: PromiseWithTimeoutConfig): Promise<unknown>;
|
|
5
|
+
export default function promiseWithTimeout<T>(promise: Promise<T>, timeout: number, { error, onTimeout }: PromiseWithTimeoutConfig): Promise<unknown>;
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
// https://github.com/github/fetch/issues/175#issuecomment-284787564
|
|
3
3
|
function promiseWithTimeout(promise, timeout, _ref) {
|
|
4
4
|
let {
|
|
5
|
-
error
|
|
5
|
+
error,
|
|
6
|
+
onTimeout = () => {}
|
|
6
7
|
} = _ref;
|
|
7
8
|
return new Promise((resolve, reject) => {
|
|
8
|
-
setTimeout(() =>
|
|
9
|
+
setTimeout(() => {
|
|
10
|
+
onTimeout();
|
|
11
|
+
reject(error || new Error('Timeout'));
|
|
12
|
+
}, timeout);
|
|
9
13
|
promise.then(resolve, reject);
|
|
10
14
|
});
|
|
11
15
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactChild, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { unmountComponentAtNode as legacyUnmountComponentAtNode } from 'react-dom';
|
|
3
|
+
export declare let render: (element: ReactElement, container: Element | DocumentFragment) => void;
|
|
4
|
+
export declare let unmountComponentAtNode: typeof legacyUnmountComponentAtNode;
|
|
5
|
+
export declare let hydrate: (element: ReactElement, container: Element | Document) => void;
|
|
6
|
+
interface Root {
|
|
7
|
+
render(children: ReactChild | Iterable<ReactNode>): void;
|
|
8
|
+
unmount(): void;
|
|
9
|
+
}
|
|
10
|
+
interface RootOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Prefix for `useId`.
|
|
13
|
+
*/
|
|
14
|
+
identifierPrefix?: string;
|
|
15
|
+
onRecoverableError?: (error: unknown) => void;
|
|
16
|
+
}
|
|
17
|
+
interface HydrationOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Prefix for `useId`.
|
|
20
|
+
*/
|
|
21
|
+
identifierPrefix?: string;
|
|
22
|
+
onRecoverableError?: (error: unknown) => void;
|
|
23
|
+
}
|
|
24
|
+
interface Client {
|
|
25
|
+
createRoot(container: Element | DocumentFragment, options?: RootOptions): Root;
|
|
26
|
+
hydrateRoot(container: Element | Document, initialChildren: ReactChild | Iterable<ReactNode>, options?: HydrationOptions): Root;
|
|
27
|
+
}
|
|
28
|
+
export declare function setClient({ createRoot, hydrateRoot }: Client): void;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
|
+
import { render as render$1, unmountComponentAtNode as unmountComponentAtNode$1, hydrate as hydrate$1 } from 'react-dom';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable import/no-mutable-exports */
|
|
5
|
+
|
|
6
|
+
let render = render$1;
|
|
7
|
+
let unmountComponentAtNode = unmountComponentAtNode$1;
|
|
8
|
+
let hydrate = hydrate$1;
|
|
9
|
+
/* eslint-enable */
|
|
10
|
+
|
|
11
|
+
function setClient(_ref) {
|
|
12
|
+
let {
|
|
13
|
+
createRoot,
|
|
14
|
+
hydrateRoot
|
|
15
|
+
} = _ref;
|
|
16
|
+
const roots = new WeakMap();
|
|
17
|
+
|
|
18
|
+
render = (element, container) => {
|
|
19
|
+
let root = roots.get(container);
|
|
20
|
+
|
|
21
|
+
if (root == null) {
|
|
22
|
+
root = createRoot(container);
|
|
23
|
+
roots.set(container, root);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
root.render(element);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
unmountComponentAtNode = container => {
|
|
30
|
+
var _roots$get;
|
|
31
|
+
|
|
32
|
+
return (_roots$get = roots.get(container)) === null || _roots$get === void 0 ? void 0 : _roots$get.unmount();
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
hydrate = (element, container) => {
|
|
36
|
+
const root = hydrateRoot(container, element);
|
|
37
|
+
roots.set(container, root);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { hydrate, render, setClient, unmountComponentAtNode };
|