@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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import Avatar from '../avatar/avatar.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'angular';
|
|
6
5
|
import 'react';
|
|
7
6
|
import '../global/react-render-adapter.js';
|
|
@@ -11,7 +10,6 @@ import '../global/react-dom-renderer.js';
|
|
|
11
10
|
import 'prop-types';
|
|
12
11
|
import 'classnames';
|
|
13
12
|
import '../global/url.js';
|
|
14
|
-
import 'core-js/modules/es.string.replace.js';
|
|
15
13
|
import '../global/dom.js';
|
|
16
14
|
import '../avatar/fallback-avatar.js';
|
|
17
15
|
import '../global/get-uid.js';
|
package/dist/badge/badge.js
CHANGED
|
@@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
6
|
import { m as modules_6c9187df } from '../_helpers/badge.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @name Badge
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import Badge from '../badge/badge.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'angular';
|
|
6
5
|
import 'react';
|
|
7
6
|
import '../global/react-render-adapter.js';
|
|
@@ -3,8 +3,6 @@ import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
|
3
3
|
import LinkNG from '../link-ng/link-ng.js';
|
|
4
4
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
5
5
|
import '../_helpers/link.js';
|
|
6
|
-
import 'core-js/modules/es.string.replace.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
6
|
import '../icon/icon__constants.js';
|
|
9
7
|
import '../template-ng/template-ng.js';
|
|
10
8
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -21,7 +19,33 @@ const angularModule = angular.module('Ring.breadcrumb', [LinkNG, IconNG]);
|
|
|
21
19
|
angularModule.filter('breadcrumbNgChevronIcon', () => () => chevronRightIcon);
|
|
22
20
|
angularModule.directive('rgBreadcrumb', function rgBreadcrumbDirective() {
|
|
23
21
|
return {
|
|
24
|
-
template:
|
|
22
|
+
template: `
|
|
23
|
+
<div class="${modules_2c17c81e.breadcrumb}">
|
|
24
|
+
<span class="${modules_2c17c81e.breadcrumbElement}" data-test="ring-breadcrumb" ng-show="label">
|
|
25
|
+
<rg-link
|
|
26
|
+
ng-if="link"
|
|
27
|
+
ng-href="{{link}}"
|
|
28
|
+
>{{label}}</rg-link>
|
|
29
|
+
|
|
30
|
+
<rg-link ng-if="!link && onClick"
|
|
31
|
+
ng-class="onClick && 'ring-link'"
|
|
32
|
+
data-test="ring-breadcrumb-link"
|
|
33
|
+
ng-click="onClick({$event: $event})">{{label}}</rg-link>
|
|
34
|
+
|
|
35
|
+
<span ng-if="!link && !onClick" ng-click="onClick({$event: $event})">{{label}}</span>
|
|
36
|
+
</span>
|
|
37
|
+
|
|
38
|
+
<span ng-show="label">
|
|
39
|
+
<rg-icon
|
|
40
|
+
class="${modules_2c17c81e.separatorIcon}"
|
|
41
|
+
glyph="{{'' | breadcrumbNgChevronIcon}}"
|
|
42
|
+
></rg-icon>
|
|
43
|
+
</span>
|
|
44
|
+
|
|
45
|
+
<span class="${modules_2c17c81e.breadcrumbElement} ${modules_2c17c81e.active}" data-test="ring-breadcrumb-element" ng-transclude></span>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
`,
|
|
25
49
|
replace: true,
|
|
26
50
|
transclude: true,
|
|
27
51
|
restrict: 'E',
|
package/dist/button/button.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare class Button extends PureComponent<ButtonProps> {
|
|
|
48
48
|
dropdown: PropTypes.Requireable<boolean>;
|
|
49
49
|
href: PropTypes.Requireable<string>;
|
|
50
50
|
target: PropTypes.Requireable<string>;
|
|
51
|
-
icon: PropTypes.Requireable<PropTypes.ReactComponentLike
|
|
51
|
+
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>;
|
|
52
52
|
iconSize: PropTypes.Requireable<number>;
|
|
53
53
|
iconClassName: PropTypes.Requireable<string>;
|
|
54
54
|
iconSuppressSizeWarning: PropTypes.Requireable<boolean>;
|
package/dist/button/button.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 'focus-visible';
|
|
4
3
|
import React, { PureComponent, createRef } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -14,7 +13,6 @@ export { Size as IconSize } from '../icon/icon__constants.js';
|
|
|
14
13
|
import 'util-deprecate';
|
|
15
14
|
import '../_helpers/icon.js';
|
|
16
15
|
import '../icon/icon__svg.js';
|
|
17
|
-
import 'core-js/modules/es.string.replace.js';
|
|
18
16
|
import '../global/memoize.js';
|
|
19
17
|
|
|
20
18
|
/**
|
|
@@ -5,7 +5,6 @@ import classNames from 'classnames';
|
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
6
|
export { default as Caption } from './caption.js';
|
|
7
7
|
import { m as modules_1068e447 } from '../_helpers/button-group.js';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* @name Button Group
|
|
@@ -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 classNames from 'classnames';
|
|
5
4
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
@@ -7,7 +6,6 @@ import { addClasses, removeClasses, applyMethodToClasses } from '../global/dom.j
|
|
|
7
6
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
8
7
|
import { m as modules_e81895c9, g as getButtonClasses } from '../_helpers/button__classes.js';
|
|
9
8
|
import { ControlsHeight } from '../global/controls-height.js';
|
|
10
|
-
import 'core-js/modules/es.string.replace.js';
|
|
11
9
|
import '../icon/icon__constants.js';
|
|
12
10
|
import '../template-ng/template-ng.js';
|
|
13
11
|
import '../_helpers/icon.js';
|
|
@@ -116,7 +114,7 @@ class ButtonController extends RingAngularComponent {
|
|
|
116
114
|
modifiers.forEach(mod => {
|
|
117
115
|
_$scope.$watch(() => _$scope.$eval(_$attrs[mod]), val => {
|
|
118
116
|
this.updateClasses();
|
|
119
|
-
const attrName =
|
|
117
|
+
const attrName = `data-test-${mod}`;
|
|
120
118
|
|
|
121
119
|
if (val) {
|
|
122
120
|
this.element.setAttribute(attrName, true);
|
|
@@ -180,7 +178,15 @@ function createButtonDirective(tagName) {
|
|
|
180
178
|
restrict: 'E',
|
|
181
179
|
transclude: true,
|
|
182
180
|
replace: true,
|
|
183
|
-
template:
|
|
181
|
+
template: `
|
|
182
|
+
<${tagName} class="${modules_e81895c9.button}">
|
|
183
|
+
<span class="${modules_e81895c9.content}"
|
|
184
|
+
><rg-icon class="${classNames(modules_e81895c9.icon, modules_5f65bc62.iconNg, iconMarginFix)}"></rg-icon
|
|
185
|
+
><ng-transclude></ng-transclude
|
|
186
|
+
></span
|
|
187
|
+
><div class="js-button-loader"></div>
|
|
188
|
+
</${tagName}>
|
|
189
|
+
`,
|
|
184
190
|
controller: ButtonController
|
|
185
191
|
});
|
|
186
192
|
}
|
|
@@ -4,7 +4,6 @@ import classNames from 'classnames';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
6
|
import { m as modules_fd849143 } from '../_helpers/button-set.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @name Button Set
|
|
@@ -9,7 +9,7 @@ function rgButtonSet() {
|
|
|
9
9
|
replace: true,
|
|
10
10
|
scope: false,
|
|
11
11
|
transclude: true,
|
|
12
|
-
template:
|
|
12
|
+
template: `<div class="${modules_fd849143.buttonSet}" ng-transclude></div>`
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
6
|
import { m as modules_34154ec0 } from '../_helpers/button-toolbar.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @name Button Toolbar
|
package/dist/caret/caret.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 PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -11,7 +10,6 @@ import 'util-deprecate';
|
|
|
11
10
|
import '../icon/icon__constants.js';
|
|
12
11
|
import '../_helpers/icon.js';
|
|
13
12
|
import '../icon/icon__svg.js';
|
|
14
|
-
import 'core-js/modules/es.string.replace.js';
|
|
15
13
|
import '../global/memoize.js';
|
|
16
14
|
|
|
17
15
|
/**
|
|
@@ -3,8 +3,6 @@ import checkmarkIcon from '@jetbrains/icons/checkmark-14px';
|
|
|
3
3
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
4
4
|
import proxyAttrs from '../proxy-attrs/proxy-attrs.js';
|
|
5
5
|
import { m as modules_3199090e } from '../_helpers/checkbox.js';
|
|
6
|
-
import 'core-js/modules/es.string.replace.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
6
|
import '../icon/icon__constants.js';
|
|
9
7
|
import '../template-ng/template-ng.js';
|
|
10
8
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -23,11 +21,30 @@ angularModule.directive('rgCheckbox', function rgCheckboxDirective() {
|
|
|
23
21
|
restrict: 'E',
|
|
24
22
|
transclude: true,
|
|
25
23
|
replace: true,
|
|
26
|
-
template: proxyAttrs(
|
|
24
|
+
template: proxyAttrs(`
|
|
25
|
+
<label class="${modules_3199090e.checkbox}">
|
|
26
|
+
<input
|
|
27
|
+
data-proxy-ng-disabled
|
|
28
|
+
data-proxy-ng-model
|
|
29
|
+
data-proxy-ng-change
|
|
30
|
+
data-proxy-ng-true-value
|
|
31
|
+
data-proxy-ng-false-value
|
|
32
|
+
data-proxy-name
|
|
33
|
+
data-proxy-title
|
|
34
|
+
data-proxy-aria-label
|
|
35
|
+
data-test="ring-checkbox"
|
|
36
|
+
type="checkbox"
|
|
37
|
+
class="${modules_3199090e.input}"
|
|
38
|
+
/>
|
|
39
|
+
<span class="${modules_3199090e.cell}">
|
|
40
|
+
<rg-icon class="${modules_3199090e.check}" glyph="{{:: checkmarkIcon}}" />
|
|
41
|
+
</span><span class="${modules_3199090e.label}" ng-transclude></span>
|
|
42
|
+
</label>
|
|
43
|
+
`),
|
|
27
44
|
link: function link(scope, iElement, attrs, controller, transcludeFn) {
|
|
28
45
|
scope.checkmarkIcon = checkmarkIcon;
|
|
29
46
|
const input = iElement[0].querySelector('input[type="checkbox"]');
|
|
30
|
-
const label = iElement[0].querySelector(
|
|
47
|
+
const label = iElement[0].querySelector(`*[class~="${modules_3199090e.label}"]`);
|
|
31
48
|
const id = CHECKBOX_ID_PREFIX + idCounter++;
|
|
32
49
|
iElement[0].setAttribute('for', id);
|
|
33
50
|
input.setAttribute('id', id);
|
package/dist/code/code.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export default class Code extends PureComponent<CodeProps> {
|
|
|
22
22
|
softWrap: PropTypes.Requireable<boolean>;
|
|
23
23
|
language: PropTypes.Requireable<string>;
|
|
24
24
|
replacer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
-
codeRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
25
|
+
codeRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
26
26
|
current: PropTypes.Requireable<Element>;
|
|
27
|
-
}>>;
|
|
27
|
+
}> | null | undefined>>;
|
|
28
28
|
};
|
|
29
29
|
static defaultProps: {
|
|
30
30
|
inline: boolean;
|
package/dist/code/code.js
CHANGED
|
@@ -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 React, { PureComponent } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -18,7 +17,7 @@ function noop() {}
|
|
|
18
17
|
const registerLanguage = memoize(async language => {
|
|
19
18
|
const languageExports = await import(
|
|
20
19
|
/* webpackChunkName: "highlight-[request]" */
|
|
21
|
-
|
|
20
|
+
`highlight.js/lib/languages/${language}`);
|
|
22
21
|
highlight.registerLanguage(language, languageExports.default);
|
|
23
22
|
});
|
|
24
23
|
/**
|
package/dist/confirm/confirm.js
CHANGED
|
@@ -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 React, { PureComponent } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import Dialog from '../dialog/dialog.js';
|
|
@@ -35,7 +34,6 @@ import 'util-deprecate';
|
|
|
35
34
|
import '../icon/icon__constants.js';
|
|
36
35
|
import '../_helpers/icon.js';
|
|
37
36
|
import '../icon/icon__svg.js';
|
|
38
|
-
import 'core-js/modules/es.string.replace.js';
|
|
39
37
|
import '../global/memoize.js';
|
|
40
38
|
import '../link/clickableLink.js';
|
|
41
39
|
import '../global/controls-height.js';
|
|
@@ -3,7 +3,6 @@ import confirm from '../confirm-service/confirm-service.js';
|
|
|
3
3
|
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../global/react-render-adapter.js';
|
|
6
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
6
|
import 'react-dom';
|
|
8
7
|
import '../confirm/confirm.js';
|
|
9
8
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -36,7 +35,6 @@ import 'util-deprecate';
|
|
|
36
35
|
import '../icon/icon__constants.js';
|
|
37
36
|
import '../_helpers/icon.js';
|
|
38
37
|
import '../icon/icon__svg.js';
|
|
39
|
-
import 'core-js/modules/es.string.replace.js';
|
|
40
38
|
import '../global/memoize.js';
|
|
41
39
|
import '../link/clickableLink.js';
|
|
42
40
|
import '../global/controls-height.js';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ConfirmAttributes } from '../confirm/confirm';
|
|
3
|
+
import { ControlsHeight } from '../global/controls-height';
|
|
2
4
|
/**
|
|
3
5
|
* @name Confirm Service
|
|
4
6
|
*/
|
|
7
|
+
export declare type Props = ConfirmAttributes & {
|
|
8
|
+
buttonsHeight?: ControlsHeight;
|
|
9
|
+
};
|
|
5
10
|
export declare const containerElement: HTMLDivElement;
|
|
6
11
|
export interface ConfirmServiceParams {
|
|
7
12
|
text?: string | undefined;
|
|
@@ -10,6 +15,7 @@ export interface ConfirmServiceParams {
|
|
|
10
15
|
confirmLabel?: string | undefined;
|
|
11
16
|
rejectLabel?: string | undefined;
|
|
12
17
|
onBeforeConfirm?: (() => void) | undefined;
|
|
18
|
+
buttonsHeight?: ControlsHeight | undefined;
|
|
13
19
|
}
|
|
14
|
-
export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm }: ConfirmServiceParams): Promise<void>;
|
|
20
|
+
export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm, buttonsHeight }: ConfirmServiceParams): Promise<void>;
|
|
15
21
|
export declare function hideConfirm(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '../global/react-render-adapter.js';
|
|
3
3
|
import Confirm from '../confirm/confirm.js';
|
|
4
|
-
import '
|
|
4
|
+
import { ControlsHeight, ControlsHeightContext } from '../global/controls-height.js';
|
|
5
5
|
import 'react-dom';
|
|
6
6
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
7
|
import 'prop-types';
|
|
@@ -33,10 +33,8 @@ import 'util-deprecate';
|
|
|
33
33
|
import '../icon/icon__constants.js';
|
|
34
34
|
import '../_helpers/icon.js';
|
|
35
35
|
import '../icon/icon__svg.js';
|
|
36
|
-
import 'core-js/modules/es.string.replace.js';
|
|
37
36
|
import '../global/memoize.js';
|
|
38
37
|
import '../link/clickableLink.js';
|
|
39
|
-
import '../global/controls-height.js';
|
|
40
38
|
import '../_helpers/button__classes.js';
|
|
41
39
|
import '../popup/popup.target.js';
|
|
42
40
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
@@ -44,17 +42,19 @@ import 'scrollbar-width';
|
|
|
44
42
|
import '../panel/panel.js';
|
|
45
43
|
import '../_helpers/panel.js';
|
|
46
44
|
|
|
47
|
-
/**
|
|
48
|
-
* @name Confirm Service
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
45
|
const containerElement = document.createElement('div');
|
|
52
46
|
/**
|
|
53
47
|
* Renders Confirm into virtual node to skip maintaining container
|
|
54
48
|
*/
|
|
55
49
|
|
|
56
50
|
function renderConfirm(props) {
|
|
57
|
-
|
|
51
|
+
const {
|
|
52
|
+
buttonsHeight = ControlsHeight.M,
|
|
53
|
+
...restProps
|
|
54
|
+
} = props;
|
|
55
|
+
render( /*#__PURE__*/React.createElement(ControlsHeightContext.Provider, {
|
|
56
|
+
value: buttonsHeight
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Confirm, restProps)), containerElement);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
function confirm(_ref) {
|
|
@@ -64,7 +64,8 @@ function confirm(_ref) {
|
|
|
64
64
|
confirmLabel = 'OK',
|
|
65
65
|
rejectLabel = 'Cancel',
|
|
66
66
|
cancelIsDefault,
|
|
67
|
-
onBeforeConfirm
|
|
67
|
+
onBeforeConfirm,
|
|
68
|
+
buttonsHeight
|
|
68
69
|
} = _ref;
|
|
69
70
|
return new Promise((resolve, reject) => {
|
|
70
71
|
const props = {
|
|
@@ -73,6 +74,7 @@ function confirm(_ref) {
|
|
|
73
74
|
confirmLabel,
|
|
74
75
|
rejectLabel,
|
|
75
76
|
cancelIsDefault,
|
|
77
|
+
buttonsHeight,
|
|
76
78
|
show: true,
|
|
77
79
|
onConfirm: () => {
|
|
78
80
|
if (onBeforeConfirm) {
|
|
@@ -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';
|
|
@@ -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 React, { PureComponent, Component } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -39,7 +38,6 @@ import 'util-deprecate';
|
|
|
39
38
|
import '../icon/icon__constants.js';
|
|
40
39
|
import '../_helpers/icon.js';
|
|
41
40
|
import '../icon/icon__svg.js';
|
|
42
|
-
import 'core-js/modules/es.string.replace.js';
|
|
43
41
|
import '../global/controls-height.js';
|
|
44
42
|
import '../_helpers/button__classes.js';
|
|
45
43
|
import '../checkbox/checkbox.js';
|
|
@@ -6,7 +6,6 @@ import 'focus-visible';
|
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
import 'classnames';
|
|
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';
|
package/dist/data-list/item.js
CHANGED
|
@@ -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 React, { PureComponent } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
@@ -23,7 +22,6 @@ import 'util-deprecate';
|
|
|
23
22
|
import '../icon/icon__constants.js';
|
|
24
23
|
import '../_helpers/icon.js';
|
|
25
24
|
import '../icon/icon__svg.js';
|
|
26
|
-
import 'core-js/modules/es.string.replace.js';
|
|
27
25
|
import '../global/controls-height.js';
|
|
28
26
|
import '../_helpers/button__classes.js';
|
|
29
27
|
import '../global/focus-sensor-hoc.js';
|
package/dist/data-list/title.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import 'react';
|
|
4
3
|
import 'prop-types';
|
|
5
4
|
import 'classnames';
|
|
@@ -16,6 +15,5 @@ import 'util-deprecate';
|
|
|
16
15
|
import '../icon/icon__constants.js';
|
|
17
16
|
import '../_helpers/icon.js';
|
|
18
17
|
import '../icon/icon__svg.js';
|
|
19
|
-
import 'core-js/modules/es.string.replace.js';
|
|
20
18
|
import '../global/memoize.js';
|
|
21
19
|
import '../_helpers/checkbox.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import DataListContainer from '../data-list/data-list.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'angular';
|
|
6
5
|
import 'react';
|
|
7
6
|
import '../global/react-render-adapter.js';
|
|
@@ -44,7 +43,6 @@ import 'util-deprecate';
|
|
|
44
43
|
import '../icon/icon__constants.js';
|
|
45
44
|
import '../_helpers/icon.js';
|
|
46
45
|
import '../icon/icon__svg.js';
|
|
47
|
-
import 'core-js/modules/es.string.replace.js';
|
|
48
46
|
import '../global/controls-height.js';
|
|
49
47
|
import '../_helpers/button__classes.js';
|
|
50
48
|
import '../_helpers/title.js';
|
|
@@ -24,7 +24,7 @@ export declare const yearDuration: number;
|
|
|
24
24
|
export declare const yearScrollSpeed: number;
|
|
25
25
|
export declare const DOUBLE = 2;
|
|
26
26
|
export declare const HALF = 0.5;
|
|
27
|
-
export declare const dateType: PropTypes.Requireable<string | number | Date
|
|
27
|
+
export declare const dateType: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
28
28
|
export declare function parseTime(time: string): string | null;
|
|
29
29
|
export interface DateInputTranslations {
|
|
30
30
|
addFirstDate: string;
|
|
@@ -21,8 +21,8 @@ export default class DateInput extends React.PureComponent<DateInputProps> {
|
|
|
21
21
|
divider: PropTypes.Requireable<boolean>;
|
|
22
22
|
name: PropTypes.Requireable<string>;
|
|
23
23
|
text: PropTypes.Requireable<string>;
|
|
24
|
-
hoverDate: PropTypes.Requireable<string | number | Date
|
|
25
|
-
date: PropTypes.Requireable<string | number | Date
|
|
24
|
+
hoverDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
25
|
+
date: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
26
26
|
time: PropTypes.Requireable<string>;
|
|
27
27
|
displayFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
28
|
hidden: PropTypes.Requireable<boolean>;
|
|
@@ -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.string.replace.js';
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
@@ -125,7 +123,7 @@ class DateInput extends React.PureComponent {
|
|
|
125
123
|
}
|
|
126
124
|
})();
|
|
127
125
|
|
|
128
|
-
const classes = classNames(modules_0c7b7d96.filter, modules_0c7b7d96[
|
|
126
|
+
const classes = classNames(modules_0c7b7d96.filter, modules_0c7b7d96[`${name}Input`], divider && modules_0c7b7d96[`${name}InputWithDivider`], 'ring-js-shortcuts');
|
|
129
127
|
return /*#__PURE__*/React.createElement(Input, {
|
|
130
128
|
autoComplete: "off",
|
|
131
129
|
borderless: true,
|
|
@@ -34,11 +34,11 @@ export default class DatePicker extends PureComponent<DatePickerProps> {
|
|
|
34
34
|
static propTypes: {
|
|
35
35
|
className: PropTypes.Requireable<string>;
|
|
36
36
|
popupClassName: PropTypes.Requireable<string>;
|
|
37
|
-
date: PropTypes.Requireable<string | number | Date
|
|
37
|
+
date: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
38
38
|
withTime: PropTypes.Requireable<boolean>;
|
|
39
39
|
range: PropTypes.Requireable<boolean>;
|
|
40
|
-
from: PropTypes.Requireable<string | number | Date
|
|
41
|
-
to: PropTypes.Requireable<string | number | Date
|
|
40
|
+
from: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
41
|
+
to: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
42
42
|
clear: PropTypes.Requireable<boolean>;
|
|
43
43
|
inline: PropTypes.Requireable<boolean>;
|
|
44
44
|
displayFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -53,8 +53,8 @@ export default class DatePicker extends PureComponent<DatePickerProps> {
|
|
|
53
53
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
54
54
|
dropdownProps: PropTypes.Requireable<object>;
|
|
55
55
|
disabled: PropTypes.Requireable<boolean>;
|
|
56
|
-
minDate: PropTypes.Requireable<string | number | Date
|
|
57
|
-
maxDate: PropTypes.Requireable<string | number | Date
|
|
56
|
+
minDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
57
|
+
maxDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
58
58
|
translations: PropTypes.Requireable<object>;
|
|
59
59
|
locale: PropTypes.Requireable<object>;
|
|
60
60
|
};
|
|
@@ -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';
|
|
@@ -23,7 +22,6 @@ import { dateType } from './consts.js';
|
|
|
23
22
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
|
24
23
|
import formats from './formats.js';
|
|
25
24
|
import DateInput from './date-input.js';
|
|
26
|
-
import 'core-js/modules/es.string.replace.js';
|
|
27
25
|
import 'react-dom';
|
|
28
26
|
import '../global/get-uid.js';
|
|
29
27
|
import '../global/schedule-raf.js';
|
|
@@ -201,22 +199,22 @@ class DatePicker extends PureComponent {
|
|
|
201
199
|
if (!date && !time) {
|
|
202
200
|
return dateTimePlaceholder || translations.setDateTime;
|
|
203
201
|
} else {
|
|
204
|
-
return
|
|
202
|
+
return `${date && displayFormat(date, locale) || '—'}, ${time || '—'}`;
|
|
205
203
|
}
|
|
206
204
|
} else if (from && to) {
|
|
207
205
|
if (!isSameYear(from, to)) {
|
|
208
|
-
return
|
|
206
|
+
return `${displayFormat(from, locale)} — ${displayFormat(to, locale)}`;
|
|
209
207
|
} else if (!isSameMonth(from, to)) {
|
|
210
|
-
return
|
|
208
|
+
return `${displayMonthFormat(from, locale)} — ${displayFormat(to, locale)}`;
|
|
211
209
|
} else if (!isSameDay(from, to)) {
|
|
212
|
-
return
|
|
210
|
+
return `${displayDayFormat(from, locale)} — ${displayFormat(to, locale)}`;
|
|
213
211
|
} else {
|
|
214
|
-
return
|
|
212
|
+
return `${displayFormat(to, locale)}`;
|
|
215
213
|
}
|
|
216
214
|
} else if (from) {
|
|
217
|
-
return
|
|
215
|
+
return `${displayFormat(from, locale)} —`;
|
|
218
216
|
} else if (to) {
|
|
219
|
-
return
|
|
217
|
+
return `— ${displayFormat(to, locale)}`;
|
|
220
218
|
} else {
|
|
221
219
|
return rangePlaceholder || translations.setPeriod;
|
|
222
220
|
}
|