@jetbrains/ring-ui 5.0.27 → 5.0.29
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/components/auth/auth__core.js +1 -1
- package/components/button/button.d.ts +1 -1
- package/components/code/code.d.ts +2 -2
- package/components/confirm-service/confirm-service.d.ts +7 -1
- package/components/confirm-service/confirm-service.js +7 -5
- package/components/date-picker/consts.d.ts +1 -1
- package/components/date-picker/date-input.d.ts +2 -2
- package/components/date-picker/date-picker.d.ts +5 -5
- package/components/date-picker/date-popup.d.ts +5 -5
- package/components/date-picker/day.d.ts +6 -6
- package/components/date-picker/month-names.d.ts +2 -2
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/years.d.ts +1 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/error-message/error-message.d.ts +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/grid/col.d.ts +4 -4
- package/components/header/profile.d.ts +1 -1
- package/components/header/tray-icon.d.ts +1 -1
- package/components/http/http.d.ts +10 -8
- package/components/http/http.js +17 -5
- package/components/icon/icon.d.ts +1 -1
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/link.d.ts +2 -2
- package/components/radio/radio.d.ts +2 -2
- package/components/shortcuts/shortcuts-hoc.d.ts +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/table-legacy/table-legacy.css +1 -1
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +1 -1
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tag/tag.d.ts +1 -1
- package/components/tags-input/tags-input.d.ts +2 -2
- package/components/user-card/card.d.ts +2 -2
- package/dist/_helpers/button__classes.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +1 -2
- package/dist/_helpers/select__filter.js +0 -1
- package/dist/_helpers/services-link.js +1 -1
- package/dist/_helpers/sidebar.js +1 -2
- package/dist/_helpers/theme.js +0 -1
- package/dist/_helpers/title.js +0 -1
- package/dist/alert/alert.js +0 -2
- package/dist/alert-service/alert-service.js +0 -2
- package/dist/analytics/analytics.js +3 -4
- package/dist/analytics/analytics__custom-plugin.js +1 -2
- package/dist/analytics/analytics__fus-plugin.js +0 -1
- package/dist/analytics/analytics__plugin-utils.js +3 -4
- package/dist/analytics-ng/analytics-ng.js +2 -3
- package/dist/auth/auth.js +0 -2
- package/dist/auth/auth__core.js +11 -13
- package/dist/auth/background-flow.js +1 -2
- package/dist/auth/down-notification.js +0 -2
- package/dist/auth/iframe-flow.js +0 -2
- package/dist/auth/landing.js +4 -6
- package/dist/auth/request-builder.js +0 -1
- package/dist/auth/response-parser.js +0 -1
- package/dist/auth/storage.js +0 -2
- package/dist/auth/token-validator.js +0 -2
- package/dist/auth/window-flow.js +1 -2
- package/dist/auth-dialog/auth-dialog.js +1 -3
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -2
- package/dist/auth-ng/auth-ng.js +1 -3
- package/dist/autofocus-ng/autofocus-ng.js +0 -1
- package/dist/avatar/avatar-example-datauri.js +23 -1
- package/dist/avatar/avatar.js +2 -4
- package/dist/avatar/fallback-avatar.js +3 -4
- package/dist/avatar-editor-ng/avatar-editor-ng.js +0 -2
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +28 -1
- package/dist/avatar-ng/avatar-ng.js +0 -2
- package/dist/badge/badge.js +0 -1
- package/dist/badge-ng/badge-ng.js +0 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +27 -3
- package/dist/button/button.d.ts +1 -1
- package/dist/button/button.js +0 -2
- package/dist/button-group/button-group.js +0 -1
- package/dist/button-group-ng/button-group-ng.js +0 -1
- package/dist/button-ng/button-ng.js +10 -4
- package/dist/button-set/button-set.js +0 -1
- package/dist/button-set-ng/button-set-ng.js +1 -1
- package/dist/button-toolbar/button-toolbar.js +0 -1
- package/dist/button-toolbar-ng/button-toolbar-ng.js +0 -1
- package/dist/caret/caret.js +0 -2
- package/dist/checkbox/checkbox.js +0 -2
- package/dist/checkbox-ng/checkbox-ng.js +21 -4
- package/dist/code/code.d.ts +2 -2
- package/dist/code/code.js +1 -2
- package/dist/confirm/confirm.js +0 -2
- package/dist/confirm-ng/confirm-ng.js +0 -2
- package/dist/confirm-service/confirm-service.d.ts +7 -1
- package/dist/confirm-service/confirm-service.js +11 -9
- package/dist/content-layout/content-layout.js +0 -1
- package/dist/content-layout/sidebar.js +0 -1
- package/dist/data-list/data-list.js +0 -2
- package/dist/data-list/data-list.mock.js +0 -1
- package/dist/data-list/item.js +0 -2
- package/dist/data-list/selection.js +0 -1
- package/dist/data-list/title.js +0 -2
- package/dist/data-list-ng/data-list-ng.js +0 -2
- package/dist/date-picker/consts.d.ts +1 -1
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.d.ts +2 -2
- package/dist/date-picker/date-input.js +1 -3
- package/dist/date-picker/date-picker.d.ts +5 -5
- package/dist/date-picker/date-picker.js +7 -9
- package/dist/date-picker/date-popup.d.ts +5 -5
- package/dist/date-picker/date-popup.js +0 -2
- package/dist/date-picker/day.d.ts +6 -6
- package/dist/date-picker/day.js +0 -1
- package/dist/date-picker/month-names.d.ts +2 -2
- package/dist/date-picker/month-names.js +0 -1
- package/dist/date-picker/month-slider.d.ts +1 -1
- package/dist/date-picker/month-slider.js +0 -1
- package/dist/date-picker/month.d.ts +1 -1
- package/dist/date-picker/month.js +0 -1
- package/dist/date-picker/months.d.ts +1 -1
- package/dist/date-picker/months.js +0 -1
- package/dist/date-picker/years.d.ts +1 -1
- package/dist/date-picker/years.js +0 -1
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.js +0 -2
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -1
- package/dist/dialog-ng/dialog-ng.js +3 -6
- package/dist/dialog-ng/dialog-ng__template.js +70 -1
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
- package/dist/dropdown/anchor.js +0 -2
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +0 -2
- package/dist/dropdown-menu/dropdown-menu.js +1 -3
- package/dist/error-bubble/error-bubble.js +0 -2
- package/dist/error-message/error-message.d.ts +1 -1
- package/dist/error-message/error-message.js +1 -3
- package/dist/error-message-ng/error-message-ng.js +21 -3
- package/dist/footer/footer.js +0 -1
- package/dist/footer-ng/footer-ng.js +14 -3
- package/dist/form-ng/form-ng.js +4 -2
- package/dist/global/angular-component-factory.js +2 -3
- package/dist/global/create-stateful-context.js +2 -3
- package/dist/global/data-tests.js +0 -2
- package/dist/global/dom.js +0 -1
- package/dist/global/focus-sensor-hoc.js +0 -1
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/inject-styles.js +7 -5
- package/dist/global/listeners.js +0 -1
- package/dist/global/memoize.js +0 -2
- package/dist/global/normalize-indent.js +0 -2
- package/dist/global/react-dom-renderer.js +0 -1
- package/dist/global/react-render-adapter.js +0 -1
- package/dist/global/rerender-hoc.d.ts +1 -1
- package/dist/global/rerender-hoc.js +1 -2
- package/dist/global/theme.js +0 -2
- package/dist/global/trivial-template-tag.js +0 -2
- package/dist/global/url.js +1 -3
- package/dist/grid/col.d.ts +4 -4
- package/dist/grid/col.js +1 -2
- package/dist/grid/grid.js +0 -1
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.js +0 -2
- package/dist/header/logo.js +0 -2
- package/dist/header/profile.d.ts +1 -1
- package/dist/header/profile.js +0 -2
- package/dist/header/services-link.js +0 -1
- package/dist/header/services.js +0 -2
- package/dist/header/smart-profile.js +2 -4
- package/dist/header/smart-services.js +1 -3
- package/dist/header/tray-icon.d.ts +1 -1
- package/dist/header/tray-icon.js +0 -2
- package/dist/heading/heading.js +2 -2
- package/dist/heading-ng/heading-ng.js +0 -1
- package/dist/http/http.d.ts +10 -8
- package/dist/http/http.js +21 -11
- package/dist/http/http.mock.js +0 -2
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__user.js +2 -4
- package/dist/hub-source/hub-source__users-groups.js +2 -3
- package/dist/icon/icon.d.ts +1 -1
- package/dist/icon/icon.js +3 -3
- package/dist/icon/icon__svg.js +0 -2
- package/dist/icon/index.js +0 -2
- package/dist/icon-ng/icon-ng.js +5 -7
- package/dist/input/input.js +2 -4
- package/dist/input-ng/input-ng.js +58 -5
- package/dist/island/adaptive-island-hoc.js +0 -1
- package/dist/island/content.js +0 -1
- package/dist/island/header.js +2 -3
- package/dist/island/island.js +0 -1
- package/dist/island-ng/island-content-ng.js +16 -2
- package/dist/island-ng/island-header-ng.js +8 -2
- package/dist/island-ng/island-ng-class-fixer.js +0 -2
- package/dist/island-ng/island-ng.js +8 -2
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/clickableLink.js +0 -1
- package/dist/link/link.d.ts +2 -2
- package/dist/link/link.js +0 -1
- package/dist/link-ng/link-ng.js +4 -1
- package/dist/list/list.js +8 -10
- package/dist/list/list__custom.js +0 -1
- package/dist/list/list__item.js +2 -4
- package/dist/list/list__link.js +0 -1
- package/dist/list/list__users-groups-source.js +1 -3
- package/dist/loader/loader.js +0 -1
- package/dist/loader/loader__core.js +3 -4
- package/dist/loader-inline/loader-inline.js +0 -1
- package/dist/loader-inline-ng/loader-inline-ng.js +1 -1
- package/dist/loader-ng/loader-ng.js +0 -1
- package/dist/loader-screen/loader-screen.js +0 -1
- package/dist/loader-screen-ng/loader-screen-ng.js +6 -2
- package/dist/login-dialog/login-dialog.js +0 -2
- package/dist/login-dialog/service.js +0 -2
- package/dist/markdown/code.js +0 -2
- package/dist/markdown/link.js +0 -1
- package/dist/markdown/markdown.js +0 -2
- package/dist/message/message.js +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +1 -2
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
- package/dist/old-browsers-message/white-list.js +2 -3
- package/dist/pager/pager.js +1 -3
- package/dist/pager-ng/pager-ng.js +0 -2
- package/dist/panel-ng/panel-ng.js +0 -1
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +1 -3
- package/dist/place-under-ng/place-under-ng.js +2 -3
- package/dist/popup/popup.js +2 -4
- package/dist/popup/position.js +0 -1
- package/dist/popup-menu/popup-menu.js +0 -2
- package/dist/progress-bar/progress-bar.js +1 -2
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -1
- package/dist/promised-click-ng/promised-click-ng.js +0 -2
- package/dist/proxy-attrs/proxy-attrs.js +3 -5
- package/dist/query-assist/query-assist.js +2 -4
- package/dist/query-assist/query-assist__suggestions.js +0 -2
- package/dist/query-assist-ng/query-assist-ng.js +0 -2
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radio.js +0 -1
- package/dist/radio/radio__item.js +0 -1
- package/dist/radio-ng/radio-ng.js +18 -2
- package/dist/save-field-ng/save-field-ng.js +1 -3
- package/dist/save-field-ng/save-field-ng__template.js +32 -1
- package/dist/select/select.js +5 -7
- package/dist/select/select__filter.js +0 -2
- package/dist/select/select__popup.js +1 -3
- package/dist/select-ng/select-ng.js +0 -2
- package/dist/select-ng/select-ng__lazy.js +0 -2
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +1 -1
- package/dist/shortcuts/shortcuts-hoc.js +0 -1
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -3
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +48 -1
- package/dist/shortcuts-ng/shortcuts-ng.js +3 -4
- package/dist/sidebar-ng/sidebar-ng.js +0 -2
- package/dist/sidebar-ng/sidebar-ng__button-template.js +18 -1
- package/dist/sidebar-ng/sidebar-ng__template.js +10 -1
- package/dist/storage/storage.js +0 -2
- package/dist/storage/storage__fallback.js +3 -4
- package/dist/storage/storage__local.js +0 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +0 -1
- package/dist/table/cell.js +0 -1
- package/dist/table/disable-hover-hoc.js +0 -1
- package/dist/table/header-cell.js +0 -2
- package/dist/table/header.js +0 -2
- package/dist/table/multitable.js +0 -1
- package/dist/table/row-with-focus-sensor.js +0 -2
- package/dist/table/row.js +1 -3
- package/dist/table/selection-adapter.js +0 -2
- package/dist/table/selection-shortcuts-hoc.js +0 -1
- package/dist/table/selection.js +0 -1
- package/dist/table/smart-table.js +0 -2
- package/dist/table/table.js +0 -2
- package/dist/table-legacy-ng/table-legacy-ng.js +45 -10
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +7 -3
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +1 -2
- package/dist/table-ng/smart-table-ng.js +0 -2
- package/dist/table-ng/table-ng.js +0 -2
- package/dist/tabs/collapsible-more.js +0 -2
- package/dist/tabs/collapsible-tab.js +0 -1
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +0 -2
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +1 -1
- package/dist/tabs/dumb-tabs.js +0 -2
- package/dist/tabs/smart-tabs.js +0 -2
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +0 -1
- package/dist/tabs/tab.d.ts +1 -1
- package/dist/tabs/tab.js +0 -1
- package/dist/tabs/tabs.js +0 -2
- package/dist/tabs-ng/tabs-ng.js +0 -1
- package/dist/tabs-ng/tabs-ng__template.js +38 -1
- package/dist/tag/tag.d.ts +1 -1
- package/dist/tag/tag.js +0 -2
- package/dist/tags-input/tags-input.d.ts +2 -2
- package/dist/tags-input/tags-input.js +0 -2
- package/dist/tags-input-ng/tags-input-ng.js +0 -2
- package/dist/tags-list/tags-list.js +0 -2
- package/dist/template-ng/template-ng.js +0 -1
- package/dist/theme-ng/theme-ng.js +0 -1
- package/dist/toggle/toggle.js +0 -1
- package/dist/toggle-ng/toggle-ng.js +0 -1
- package/dist/tooltip/tooltip.js +0 -2
- package/dist/tooltip-ng/tooltip-ng.js +0 -2
- package/dist/user-agreement/service.js +0 -2
- package/dist/user-agreement/toolbox.eula.js +160 -1
- package/dist/user-agreement/user-agreement.js +0 -2
- package/dist/user-card/card.d.ts +2 -2
- package/dist/user-card/card.js +0 -2
- package/dist/user-card/smart-user-card-tooltip.js +0 -2
- package/dist/user-card/tooltip.js +0 -2
- package/dist/user-card/user-card.js +0 -2
- package/dist/user-card-ng/user-card-ng.js +0 -2
- package/package.json +38 -37
|
@@ -6,20 +6,20 @@ export default class DatePopup extends Component<DatePopupProps, DatePopupState>
|
|
|
6
6
|
static sameDay(next: Date | number | null, prev: Date | number | null): boolean;
|
|
7
7
|
static propTypes: {
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
|
-
date: PropTypes.Requireable<string | number | Date
|
|
9
|
+
date: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
10
10
|
range: PropTypes.Requireable<boolean>;
|
|
11
11
|
withTime: PropTypes.Requireable<boolean>;
|
|
12
12
|
time: PropTypes.Requireable<string>;
|
|
13
|
-
from: PropTypes.Requireable<string | number | Date
|
|
14
|
-
to: PropTypes.Requireable<string | number | Date
|
|
13
|
+
from: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
14
|
+
to: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
15
15
|
renderAfterCalendar: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
16
|
displayFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
17
|
parseDateInput: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
18
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
onComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
20
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
minDate: PropTypes.Requireable<string | number | Date
|
|
22
|
-
maxDate: PropTypes.Requireable<string | number | Date
|
|
21
|
+
minDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
22
|
+
maxDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
23
23
|
hidden: PropTypes.Requireable<boolean>;
|
|
24
24
|
fromPlaceholder: PropTypes.Requireable<string>;
|
|
25
25
|
toPlaceholder: PropTypes.Requireable<string>;
|
|
@@ -12,8 +12,6 @@ import Years from './years.js';
|
|
|
12
12
|
import Weekdays from './weekdays.js';
|
|
13
13
|
import { dateType, parseTime } from './consts.js';
|
|
14
14
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
|
15
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
16
|
-
import 'core-js/modules/es.string.replace.js';
|
|
17
15
|
import 'classnames';
|
|
18
16
|
import '../input/input.js';
|
|
19
17
|
import '@jetbrains/icons/close-12px';
|
|
@@ -7,16 +7,16 @@ export interface DayProps extends MonthsProps {
|
|
|
7
7
|
}
|
|
8
8
|
export default class Day extends Component<DayProps> {
|
|
9
9
|
static propTypes: {
|
|
10
|
-
day: PropTypes.Requireable<string | number | Date
|
|
11
|
-
from: PropTypes.Requireable<string | number | Date
|
|
12
|
-
currentRange: PropTypes.Requireable<(string | number | Date | null | undefined)[]>;
|
|
13
|
-
activeRange: PropTypes.Requireable<(string | number | Date | null | undefined)[]>;
|
|
10
|
+
day: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
11
|
+
from: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
12
|
+
currentRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
|
|
13
|
+
activeRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
|
|
14
14
|
empty: PropTypes.Requireable<boolean>;
|
|
15
15
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
16
|
parseDateInput: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
17
|
onHover: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
minDate: PropTypes.Requireable<string | number | Date
|
|
19
|
-
maxDate: PropTypes.Requireable<string | number | Date
|
|
18
|
+
minDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
19
|
+
maxDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
20
20
|
};
|
|
21
21
|
handleClick: () => void;
|
|
22
22
|
handleMouseOver: () => void;
|
package/dist/date-picker/day.js
CHANGED
|
@@ -4,9 +4,9 @@ import { MonthsProps } from './consts';
|
|
|
4
4
|
declare function MonthNames(props: MonthsProps): JSX.Element;
|
|
5
5
|
declare namespace MonthNames {
|
|
6
6
|
var propTypes: {
|
|
7
|
-
scrollDate: PropTypes.Requireable<string | number | Date
|
|
7
|
+
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
8
8
|
onScrollChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
currentRange: PropTypes.Requireable<(string | number | Date | null | undefined)[]>;
|
|
9
|
+
currentRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
|
|
10
10
|
locale: PropTypes.Requireable<string>;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { PureComponent } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -10,7 +10,7 @@ interface MonthSliderState {
|
|
|
10
10
|
}
|
|
11
11
|
export default class MonthSlider extends PureComponent<MonthSliderProps> {
|
|
12
12
|
static propTypes: {
|
|
13
|
-
scrollDate: PropTypes.Requireable<string | number | Date
|
|
13
|
+
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
14
14
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
15
|
pxToDate: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
16
|
x: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -7,7 +7,7 @@ export interface MonthProps extends MonthsProps {
|
|
|
7
7
|
declare function Month(props: MonthProps): JSX.Element;
|
|
8
8
|
declare namespace Month {
|
|
9
9
|
var propTypes: {
|
|
10
|
-
month: PropTypes.Requireable<string | number | Date
|
|
10
|
+
month: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
11
11
|
locale: PropTypes.Requireable<string>;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
@@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import Day from './day.js';
|
|
10
10
|
import { dateType, weekdays, WEEK } from './consts.js';
|
|
11
11
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
|
12
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
13
12
|
import 'classnames';
|
|
14
13
|
import 'date-fns/getDate';
|
|
15
14
|
import 'date-fns/isAfter';
|
|
@@ -5,7 +5,7 @@ declare function Months(props: MonthsProps): JSX.Element;
|
|
|
5
5
|
declare namespace Months {
|
|
6
6
|
var propTypes: {
|
|
7
7
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
scrollDate: PropTypes.Requireable<string | number | Date
|
|
8
|
+
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export default Months;
|
|
@@ -6,7 +6,7 @@ interface YearsState {
|
|
|
6
6
|
}
|
|
7
7
|
export default class Years extends PureComponent<CalendarProps> {
|
|
8
8
|
static propTypes: {
|
|
9
|
-
scrollDate: PropTypes.Requireable<string | number | Date
|
|
9
|
+
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
10
10
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
11
|
onScrollChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
12
|
};
|
package/dist/dialog/dialog.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export default class Dialog extends PureComponent<DialogProps> {
|
|
|
25
25
|
label: PropTypes.Requireable<string>;
|
|
26
26
|
className: PropTypes.Requireable<string>;
|
|
27
27
|
contentClassName: PropTypes.Requireable<string>;
|
|
28
|
-
children: PropTypes.Requireable<
|
|
28
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
29
29
|
show: PropTypes.Validator<boolean>;
|
|
30
30
|
showCloseButton: PropTypes.Requireable<boolean>;
|
|
31
31
|
closeButtonInside: PropTypes.Requireable<boolean>;
|
package/dist/dialog/dialog.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { PureComponent } from 'react';
|
|
4
3
|
import { createPortal } from 'react-dom';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -32,7 +31,6 @@ import 'util-deprecate';
|
|
|
32
31
|
import '../icon/icon__constants.js';
|
|
33
32
|
import '../_helpers/icon.js';
|
|
34
33
|
import '../icon/icon__svg.js';
|
|
35
|
-
import 'core-js/modules/es.string.replace.js';
|
|
36
34
|
import '../global/memoize.js';
|
|
37
35
|
import '../link/clickableLink.js';
|
|
38
36
|
import '../global/controls-height.js';
|
|
@@ -1,6 +1,4 @@
|
|
|
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';
|
|
4
2
|
import angular from 'angular';
|
|
5
3
|
import { createFocusTrap } from 'focus-trap';
|
|
6
4
|
import { getStyles, getRect } from '../global/dom.js';
|
|
@@ -17,7 +15,6 @@ import '../global/sniffer.js';
|
|
|
17
15
|
import 'sniffr';
|
|
18
16
|
import 'classnames';
|
|
19
17
|
import '../icon-ng/icon-ng.js';
|
|
20
|
-
import 'core-js/modules/es.string.replace.js';
|
|
21
18
|
import '../icon/icon__constants.js';
|
|
22
19
|
import '../template-ng/template-ng.js';
|
|
23
20
|
import '../_helpers/icon.js';
|
|
@@ -400,8 +397,8 @@ function rgDialogDirective($timeout) {
|
|
|
400
397
|
|
|
401
398
|
function setPosition(top, left) {
|
|
402
399
|
Object.assign(dialogContainer.style, {
|
|
403
|
-
top:
|
|
404
|
-
left:
|
|
400
|
+
top: `${top}px`,
|
|
401
|
+
left: `${left}px`
|
|
405
402
|
});
|
|
406
403
|
} // Focus first input
|
|
407
404
|
|
|
@@ -460,7 +457,7 @@ function rgDialogDirective($timeout) {
|
|
|
460
457
|
|
|
461
458
|
function setCustomFooter(customFooterElem) {
|
|
462
459
|
const placeholder = angular.element(dialogCustomFooter);
|
|
463
|
-
const footer = angular.element(
|
|
460
|
+
const footer = angular.element(`<div class="${this.styles.footer}"></div>`).append(customFooterElem);
|
|
464
461
|
placeholder.empty();
|
|
465
462
|
placeholder.append(footer);
|
|
466
463
|
}
|
|
@@ -1,3 +1,72 @@
|
|
|
1
|
-
var dialogTemplate =
|
|
1
|
+
var dialogTemplate = `<div
|
|
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>`;
|
|
2
71
|
|
|
3
72
|
export { dialogTemplate as default };
|
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
|
|
7
6
|
var modules_655b40c7 = {"unit":"8px","dockedPanel":"dockedPanel_rui_f45d","fixed":"fixed_rui_f45d"};
|
|
8
7
|
|
package/dist/dropdown/anchor.js
CHANGED
|
@@ -10,9 +10,7 @@ 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';
|
|
14
13
|
import '../global/memoize.js';
|
|
15
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
16
14
|
import 'focus-visible';
|
|
17
15
|
import '../link/clickableLink.js';
|
|
18
16
|
import '../global/controls-height.js';
|
|
@@ -32,8 +32,8 @@ 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<
|
|
36
|
-
children: PropTypes.Validator<PropTypes.ReactElementLike | ((...args: any[]) => any)
|
|
35
|
+
anchor: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>>;
|
|
36
|
+
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>>;
|
|
37
37
|
initShown: PropTypes.Requireable<boolean>;
|
|
38
38
|
className: PropTypes.Requireable<string>;
|
|
39
39
|
activeClassName: PropTypes.Requireable<string>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { Component, cloneElement } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -13,7 +12,6 @@ import 'util-deprecate';
|
|
|
13
12
|
import '../icon/icon__constants.js';
|
|
14
13
|
import '../_helpers/icon.js';
|
|
15
14
|
import '../icon/icon__svg.js';
|
|
16
|
-
import 'core-js/modules/es.string.replace.js';
|
|
17
15
|
import '../global/memoize.js';
|
|
18
16
|
import '../button/button.js';
|
|
19
17
|
import 'focus-visible';
|
|
@@ -7,7 +7,6 @@ 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';
|
|
11
10
|
import 'classnames';
|
|
12
11
|
import 'react-virtualized/dist/es/List';
|
|
13
12
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
@@ -34,7 +33,6 @@ import '../_helpers/list.js';
|
|
|
34
33
|
import '../list/list__item.js';
|
|
35
34
|
import '../avatar/avatar.js';
|
|
36
35
|
import '../global/url.js';
|
|
37
|
-
import 'core-js/modules/es.string.replace.js';
|
|
38
36
|
import '../avatar/fallback-avatar.js';
|
|
39
37
|
import '../checkbox/checkbox.js';
|
|
40
38
|
import '@jetbrains/icons/checkmark-14px';
|
|
@@ -100,7 +98,7 @@ function DropdownAnchorWrapper(_ref) {
|
|
|
100
98
|
...anchorAriaProps
|
|
101
99
|
}), [pinned, active, restProps, anchorAriaProps]);
|
|
102
100
|
const anchorComponentProps = useMemo(() => ({ ...anchorProps,
|
|
103
|
-
pinned:
|
|
101
|
+
pinned: `${anchorProps.pinned}`
|
|
104
102
|
}), [anchorProps]);
|
|
105
103
|
|
|
106
104
|
if (typeof anchor === 'string') {
|
|
@@ -4,8 +4,6 @@ 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';
|
|
9
7
|
import 'react-dom';
|
|
10
8
|
import '../global/get-uid.js';
|
|
11
9
|
import '../global/schedule-raf.js';
|
|
@@ -14,7 +14,7 @@ export interface ErrorMessageProps {
|
|
|
14
14
|
*/
|
|
15
15
|
export default class ErrorMessage extends Component<ErrorMessageProps> {
|
|
16
16
|
static propTypes: {
|
|
17
|
-
icon: PropTypes.Requireable<PropTypes.ReactComponentLike
|
|
17
|
+
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>;
|
|
18
18
|
code: PropTypes.Requireable<string>;
|
|
19
19
|
message: PropTypes.Requireable<string>;
|
|
20
20
|
description: PropTypes.Requireable<string>;
|
|
@@ -8,9 +8,7 @@ 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';
|
|
12
11
|
import '../global/memoize.js';
|
|
13
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
12
|
|
|
15
13
|
/**
|
|
16
14
|
* @name Error Message
|
|
@@ -38,7 +36,7 @@ class ErrorMessage extends Component {
|
|
|
38
36
|
className: modules_2c5e8509.content
|
|
39
37
|
}, /*#__PURE__*/React.createElement("div", {
|
|
40
38
|
className: modules_2c5e8509.title
|
|
41
|
-
}, code &&
|
|
39
|
+
}, code && `${code}:`, " ", message), description && /*#__PURE__*/React.createElement("div", {
|
|
42
40
|
className: modules_2c5e8509.description
|
|
43
41
|
}, description), children));
|
|
44
42
|
}
|
|
@@ -2,8 +2,6 @@ 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';
|
|
7
5
|
import '../icon/icon__constants.js';
|
|
8
6
|
import '../template-ng/template-ng.js';
|
|
9
7
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -20,7 +18,27 @@ angularModule.directive('rgErrorMessage', function rgErrorMessageDirective() {
|
|
|
20
18
|
return {
|
|
21
19
|
replace: true,
|
|
22
20
|
transclude: true,
|
|
23
|
-
template:
|
|
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
|
+
`,
|
|
24
42
|
restrict: 'E',
|
|
25
43
|
scope: {
|
|
26
44
|
code: '@',
|
package/dist/footer/footer.js
CHANGED
|
@@ -6,7 +6,6 @@ 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';
|
|
10
9
|
import '../global/data-tests.js';
|
|
11
10
|
import '../link/clickableLink.js';
|
|
12
11
|
import '../_helpers/link.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import angular from 'angular';
|
|
4
3
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
5
4
|
import { m as modules_7385b3fd, c as copyright } from '../_helpers/footer.js';
|
|
@@ -34,13 +33,25 @@ _defineProperty(rgFooterComponent, "transclude", {
|
|
|
34
33
|
right: '?rgFooterRight'
|
|
35
34
|
});
|
|
36
35
|
|
|
37
|
-
_defineProperty(rgFooterComponent, "template",
|
|
36
|
+
_defineProperty(rgFooterComponent, "template", `<footer ng-class=":: $ctrl.styles.footer" data-test="ring-footer">
|
|
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>`);
|
|
38
49
|
|
|
39
50
|
class rgFooterLineComponent extends RingAngularComponent {}
|
|
40
51
|
|
|
41
52
|
_defineProperty(rgFooterLineComponent, "transclude", true);
|
|
42
53
|
|
|
43
|
-
_defineProperty(rgFooterLineComponent, "template",
|
|
54
|
+
_defineProperty(rgFooterLineComponent, "template", `<div class="${modules_7385b3fd.line}" ng-transclude></div>`);
|
|
44
55
|
|
|
45
56
|
class rgFooterCopyrightComponent extends RingAngularComponent {
|
|
46
57
|
$onInit() {
|
package/dist/form-ng/form-ng.js
CHANGED
|
@@ -8,7 +8,7 @@ import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
|
8
8
|
const angularModule = angular.module('Ring.form', [MessageBundle]);
|
|
9
9
|
angularModule.factory('getFormErrorMessages', ["RingMessageBundle", function getFormErrorMessagesDirective(RingMessageBundle) {
|
|
10
10
|
function msg(id, formError) {
|
|
11
|
-
const messageBundleId =
|
|
11
|
+
const messageBundleId = `form_${id}`;
|
|
12
12
|
|
|
13
13
|
if (RingMessageBundle.hasOwnProperty(messageBundleId)) {
|
|
14
14
|
return RingMessageBundle[messageBundleId]();
|
|
@@ -50,7 +50,9 @@ angularModule.directive('rgErrorBubble', ["getFormErrorMessages", function rgErr
|
|
|
50
50
|
errorBubble: '&rgErrorBubble'
|
|
51
51
|
},
|
|
52
52
|
replace: true,
|
|
53
|
-
template:
|
|
53
|
+
template: `<div class="ring-error-bubble" ng-class="{ active: active, 'ring-error-bubble_material': material }" ng-style="style">
|
|
54
|
+
<div ng-repeat="errorMessage in getFormErrorMessages(errorBubble().$error)">{{ errorMessage }}</div>
|
|
55
|
+
</div>`,
|
|
54
56
|
link: function link(scope, iElement, iAttrs) {
|
|
55
57
|
scope.style = {};
|
|
56
58
|
const siblings = Array.from(iElement[0].parentNode.children);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import angular from 'angular';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { unmountComponentAtNode, render } from './react-render-adapter.js';
|
|
@@ -9,7 +8,7 @@ import 'react-dom';
|
|
|
9
8
|
import 'prop-types';
|
|
10
9
|
|
|
11
10
|
function getAngularComponentName(name) {
|
|
12
|
-
return
|
|
11
|
+
return `rg${name}`;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
function createAngularComponent(Component) {
|
|
@@ -77,7 +76,7 @@ function createAngularComponent(Component) {
|
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
function angularComponentFactory(Component, name) {
|
|
80
|
-
const angularModuleName =
|
|
79
|
+
const angularModuleName = `Ring.${name[0].toLowerCase() + name.slice(1)}`;
|
|
81
80
|
return angular.module(angularModuleName, []).component(getAngularComponentName(name), createAngularComponent(Component));
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
1
|
import React, { memo, createContext, useState, useContext, useEffect } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
|
|
@@ -22,7 +21,7 @@ function createStatefulContext(initialValue) {
|
|
|
22
21
|
Provider.propTypes = {
|
|
23
22
|
children: PropTypes.node
|
|
24
23
|
};
|
|
25
|
-
Provider.displayName =
|
|
24
|
+
Provider.displayName = `${name}Provider`;
|
|
26
25
|
|
|
27
26
|
function useUpdate(value, skipUpdate) {
|
|
28
27
|
const update = useContext(UpdateContext);
|
|
@@ -42,7 +41,7 @@ function createStatefulContext(initialValue) {
|
|
|
42
41
|
return null;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
Updater.displayName =
|
|
44
|
+
Updater.displayName = `${name}Updater`;
|
|
46
45
|
return {
|
|
47
46
|
ValueContext,
|
|
48
47
|
UpdateContext,
|
package/dist/global/dom.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import React, { Component } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
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 ? `${marker}${haystack}${marker}` : haystack);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
let highlight = '';
|