@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.
Files changed (317) hide show
  1. package/components/auth/auth__core.js +1 -1
  2. package/components/button/button.d.ts +1 -1
  3. package/components/code/code.d.ts +2 -2
  4. package/components/confirm-service/confirm-service.d.ts +7 -1
  5. package/components/confirm-service/confirm-service.js +7 -5
  6. package/components/date-picker/consts.d.ts +1 -1
  7. package/components/date-picker/date-input.d.ts +2 -2
  8. package/components/date-picker/date-picker.d.ts +5 -5
  9. package/components/date-picker/date-popup.d.ts +5 -5
  10. package/components/date-picker/day.d.ts +6 -6
  11. package/components/date-picker/month-names.d.ts +2 -2
  12. package/components/date-picker/month-slider.d.ts +1 -1
  13. package/components/date-picker/month.d.ts +1 -1
  14. package/components/date-picker/months.d.ts +1 -1
  15. package/components/date-picker/years.d.ts +1 -1
  16. package/components/dialog/dialog.d.ts +1 -1
  17. package/components/dropdown/dropdown.d.ts +2 -2
  18. package/components/error-message/error-message.d.ts +1 -1
  19. package/components/global/rerender-hoc.d.ts +1 -1
  20. package/components/grid/col.d.ts +4 -4
  21. package/components/header/profile.d.ts +1 -1
  22. package/components/header/tray-icon.d.ts +1 -1
  23. package/components/http/http.d.ts +10 -8
  24. package/components/http/http.js +17 -5
  25. package/components/icon/icon.d.ts +1 -1
  26. package/components/link/clickableLink.d.ts +1 -1
  27. package/components/link/link.d.ts +2 -2
  28. package/components/radio/radio.d.ts +2 -2
  29. package/components/shortcuts/shortcuts-hoc.d.ts +1 -1
  30. package/components/tab-trap/tab-trap.d.ts +1 -1
  31. package/components/table-legacy/table-legacy.css +1 -1
  32. package/components/tabs/collapsible-tabs.d.ts +2 -2
  33. package/components/tabs/custom-item.d.ts +1 -1
  34. package/components/tabs/dumb-tabs.d.ts +1 -1
  35. package/components/tabs/tab-link.d.ts +1 -1
  36. package/components/tabs/tab.d.ts +1 -1
  37. package/components/tag/tag.d.ts +1 -1
  38. package/components/tags-input/tags-input.d.ts +2 -2
  39. package/components/user-card/card.d.ts +2 -2
  40. package/dist/_helpers/button__classes.js +1 -1
  41. package/dist/_helpers/dialog__body-scroll-preventer.js +1 -2
  42. package/dist/_helpers/select__filter.js +0 -1
  43. package/dist/_helpers/services-link.js +1 -1
  44. package/dist/_helpers/sidebar.js +1 -2
  45. package/dist/_helpers/theme.js +0 -1
  46. package/dist/_helpers/title.js +0 -1
  47. package/dist/alert/alert.js +0 -2
  48. package/dist/alert-service/alert-service.js +0 -2
  49. package/dist/analytics/analytics.js +3 -4
  50. package/dist/analytics/analytics__custom-plugin.js +1 -2
  51. package/dist/analytics/analytics__fus-plugin.js +0 -1
  52. package/dist/analytics/analytics__plugin-utils.js +3 -4
  53. package/dist/analytics-ng/analytics-ng.js +2 -3
  54. package/dist/auth/auth.js +0 -2
  55. package/dist/auth/auth__core.js +11 -13
  56. package/dist/auth/background-flow.js +1 -2
  57. package/dist/auth/down-notification.js +0 -2
  58. package/dist/auth/iframe-flow.js +0 -2
  59. package/dist/auth/landing.js +4 -6
  60. package/dist/auth/request-builder.js +0 -1
  61. package/dist/auth/response-parser.js +0 -1
  62. package/dist/auth/storage.js +0 -2
  63. package/dist/auth/token-validator.js +0 -2
  64. package/dist/auth/window-flow.js +1 -2
  65. package/dist/auth-dialog/auth-dialog.js +1 -3
  66. package/dist/auth-dialog-service/auth-dialog-service.js +0 -2
  67. package/dist/auth-ng/auth-ng.js +1 -3
  68. package/dist/autofocus-ng/autofocus-ng.js +0 -1
  69. package/dist/avatar/avatar-example-datauri.js +23 -1
  70. package/dist/avatar/avatar.js +2 -4
  71. package/dist/avatar/fallback-avatar.js +3 -4
  72. package/dist/avatar-editor-ng/avatar-editor-ng.js +0 -2
  73. package/dist/avatar-editor-ng/avatar-editor-ng__template.js +28 -1
  74. package/dist/avatar-ng/avatar-ng.js +0 -2
  75. package/dist/badge/badge.js +0 -1
  76. package/dist/badge-ng/badge-ng.js +0 -1
  77. package/dist/breadcrumb-ng/breadcrumb-ng.js +27 -3
  78. package/dist/button/button.d.ts +1 -1
  79. package/dist/button/button.js +0 -2
  80. package/dist/button-group/button-group.js +0 -1
  81. package/dist/button-group-ng/button-group-ng.js +0 -1
  82. package/dist/button-ng/button-ng.js +10 -4
  83. package/dist/button-set/button-set.js +0 -1
  84. package/dist/button-set-ng/button-set-ng.js +1 -1
  85. package/dist/button-toolbar/button-toolbar.js +0 -1
  86. package/dist/button-toolbar-ng/button-toolbar-ng.js +0 -1
  87. package/dist/caret/caret.js +0 -2
  88. package/dist/checkbox/checkbox.js +0 -2
  89. package/dist/checkbox-ng/checkbox-ng.js +21 -4
  90. package/dist/code/code.d.ts +2 -2
  91. package/dist/code/code.js +1 -2
  92. package/dist/confirm/confirm.js +0 -2
  93. package/dist/confirm-ng/confirm-ng.js +0 -2
  94. package/dist/confirm-service/confirm-service.d.ts +7 -1
  95. package/dist/confirm-service/confirm-service.js +11 -9
  96. package/dist/content-layout/content-layout.js +0 -1
  97. package/dist/content-layout/sidebar.js +0 -1
  98. package/dist/data-list/data-list.js +0 -2
  99. package/dist/data-list/data-list.mock.js +0 -1
  100. package/dist/data-list/item.js +0 -2
  101. package/dist/data-list/selection.js +0 -1
  102. package/dist/data-list/title.js +0 -2
  103. package/dist/data-list-ng/data-list-ng.js +0 -2
  104. package/dist/date-picker/consts.d.ts +1 -1
  105. package/dist/date-picker/consts.js +1 -1
  106. package/dist/date-picker/date-input.d.ts +2 -2
  107. package/dist/date-picker/date-input.js +1 -3
  108. package/dist/date-picker/date-picker.d.ts +5 -5
  109. package/dist/date-picker/date-picker.js +7 -9
  110. package/dist/date-picker/date-popup.d.ts +5 -5
  111. package/dist/date-picker/date-popup.js +0 -2
  112. package/dist/date-picker/day.d.ts +6 -6
  113. package/dist/date-picker/day.js +0 -1
  114. package/dist/date-picker/month-names.d.ts +2 -2
  115. package/dist/date-picker/month-names.js +0 -1
  116. package/dist/date-picker/month-slider.d.ts +1 -1
  117. package/dist/date-picker/month-slider.js +0 -1
  118. package/dist/date-picker/month.d.ts +1 -1
  119. package/dist/date-picker/month.js +0 -1
  120. package/dist/date-picker/months.d.ts +1 -1
  121. package/dist/date-picker/months.js +0 -1
  122. package/dist/date-picker/years.d.ts +1 -1
  123. package/dist/date-picker/years.js +0 -1
  124. package/dist/dialog/dialog.d.ts +1 -1
  125. package/dist/dialog/dialog.js +0 -2
  126. package/dist/dialog/dialog__body-scroll-preventer.js +0 -1
  127. package/dist/dialog-ng/dialog-ng.js +3 -6
  128. package/dist/dialog-ng/dialog-ng__template.js +70 -1
  129. package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
  130. package/dist/dropdown/anchor.js +0 -2
  131. package/dist/dropdown/dropdown.d.ts +2 -2
  132. package/dist/dropdown/dropdown.js +0 -2
  133. package/dist/dropdown-menu/dropdown-menu.js +1 -3
  134. package/dist/error-bubble/error-bubble.js +0 -2
  135. package/dist/error-message/error-message.d.ts +1 -1
  136. package/dist/error-message/error-message.js +1 -3
  137. package/dist/error-message-ng/error-message-ng.js +21 -3
  138. package/dist/footer/footer.js +0 -1
  139. package/dist/footer-ng/footer-ng.js +14 -3
  140. package/dist/form-ng/form-ng.js +4 -2
  141. package/dist/global/angular-component-factory.js +2 -3
  142. package/dist/global/create-stateful-context.js +2 -3
  143. package/dist/global/data-tests.js +0 -2
  144. package/dist/global/dom.js +0 -1
  145. package/dist/global/focus-sensor-hoc.js +0 -1
  146. package/dist/global/fuzzy-highlight.js +1 -1
  147. package/dist/global/inject-styles.js +7 -5
  148. package/dist/global/listeners.js +0 -1
  149. package/dist/global/memoize.js +0 -2
  150. package/dist/global/normalize-indent.js +0 -2
  151. package/dist/global/react-dom-renderer.js +0 -1
  152. package/dist/global/react-render-adapter.js +0 -1
  153. package/dist/global/rerender-hoc.d.ts +1 -1
  154. package/dist/global/rerender-hoc.js +1 -2
  155. package/dist/global/theme.js +0 -2
  156. package/dist/global/trivial-template-tag.js +0 -2
  157. package/dist/global/url.js +1 -3
  158. package/dist/grid/col.d.ts +4 -4
  159. package/dist/grid/col.js +1 -2
  160. package/dist/grid/grid.js +0 -1
  161. package/dist/grid/row.js +1 -1
  162. package/dist/group-ng/group-ng.js +1 -1
  163. package/dist/header/header.js +0 -2
  164. package/dist/header/logo.js +0 -2
  165. package/dist/header/profile.d.ts +1 -1
  166. package/dist/header/profile.js +0 -2
  167. package/dist/header/services-link.js +0 -1
  168. package/dist/header/services.js +0 -2
  169. package/dist/header/smart-profile.js +2 -4
  170. package/dist/header/smart-services.js +1 -3
  171. package/dist/header/tray-icon.d.ts +1 -1
  172. package/dist/header/tray-icon.js +0 -2
  173. package/dist/heading/heading.js +2 -2
  174. package/dist/heading-ng/heading-ng.js +0 -1
  175. package/dist/http/http.d.ts +10 -8
  176. package/dist/http/http.js +21 -11
  177. package/dist/http/http.mock.js +0 -2
  178. package/dist/hub-source/hub-source.js +1 -1
  179. package/dist/hub-source/hub-source__user.js +2 -4
  180. package/dist/hub-source/hub-source__users-groups.js +2 -3
  181. package/dist/icon/icon.d.ts +1 -1
  182. package/dist/icon/icon.js +3 -3
  183. package/dist/icon/icon__svg.js +0 -2
  184. package/dist/icon/index.js +0 -2
  185. package/dist/icon-ng/icon-ng.js +5 -7
  186. package/dist/input/input.js +2 -4
  187. package/dist/input-ng/input-ng.js +58 -5
  188. package/dist/island/adaptive-island-hoc.js +0 -1
  189. package/dist/island/content.js +0 -1
  190. package/dist/island/header.js +2 -3
  191. package/dist/island/island.js +0 -1
  192. package/dist/island-ng/island-content-ng.js +16 -2
  193. package/dist/island-ng/island-header-ng.js +8 -2
  194. package/dist/island-ng/island-ng-class-fixer.js +0 -2
  195. package/dist/island-ng/island-ng.js +8 -2
  196. package/dist/link/clickableLink.d.ts +1 -1
  197. package/dist/link/clickableLink.js +0 -1
  198. package/dist/link/link.d.ts +2 -2
  199. package/dist/link/link.js +0 -1
  200. package/dist/link-ng/link-ng.js +4 -1
  201. package/dist/list/list.js +8 -10
  202. package/dist/list/list__custom.js +0 -1
  203. package/dist/list/list__item.js +2 -4
  204. package/dist/list/list__link.js +0 -1
  205. package/dist/list/list__users-groups-source.js +1 -3
  206. package/dist/loader/loader.js +0 -1
  207. package/dist/loader/loader__core.js +3 -4
  208. package/dist/loader-inline/loader-inline.js +0 -1
  209. package/dist/loader-inline-ng/loader-inline-ng.js +1 -1
  210. package/dist/loader-ng/loader-ng.js +0 -1
  211. package/dist/loader-screen/loader-screen.js +0 -1
  212. package/dist/loader-screen-ng/loader-screen-ng.js +6 -2
  213. package/dist/login-dialog/login-dialog.js +0 -2
  214. package/dist/login-dialog/service.js +0 -2
  215. package/dist/markdown/code.js +0 -2
  216. package/dist/markdown/link.js +0 -1
  217. package/dist/markdown/markdown.js +0 -2
  218. package/dist/message/message.js +0 -2
  219. package/dist/old-browsers-message/old-browsers-message.js +1 -2
  220. package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
  221. package/dist/old-browsers-message/white-list.js +2 -3
  222. package/dist/pager/pager.js +1 -3
  223. package/dist/pager-ng/pager-ng.js +0 -2
  224. package/dist/panel-ng/panel-ng.js +0 -1
  225. package/dist/permissions/permissions.js +1 -1
  226. package/dist/permissions-ng/permissions-ng.js +1 -3
  227. package/dist/place-under-ng/place-under-ng.js +2 -3
  228. package/dist/popup/popup.js +2 -4
  229. package/dist/popup/position.js +0 -1
  230. package/dist/popup-menu/popup-menu.js +0 -2
  231. package/dist/progress-bar/progress-bar.js +1 -2
  232. package/dist/progress-bar-ng/progress-bar-ng.js +0 -1
  233. package/dist/promised-click-ng/promised-click-ng.js +0 -2
  234. package/dist/proxy-attrs/proxy-attrs.js +3 -5
  235. package/dist/query-assist/query-assist.js +2 -4
  236. package/dist/query-assist/query-assist__suggestions.js +0 -2
  237. package/dist/query-assist-ng/query-assist-ng.js +0 -2
  238. package/dist/radio/radio.d.ts +2 -2
  239. package/dist/radio/radio.js +0 -1
  240. package/dist/radio/radio__item.js +0 -1
  241. package/dist/radio-ng/radio-ng.js +18 -2
  242. package/dist/save-field-ng/save-field-ng.js +1 -3
  243. package/dist/save-field-ng/save-field-ng__template.js +32 -1
  244. package/dist/select/select.js +5 -7
  245. package/dist/select/select__filter.js +0 -2
  246. package/dist/select/select__popup.js +1 -3
  247. package/dist/select-ng/select-ng.js +0 -2
  248. package/dist/select-ng/select-ng__lazy.js +0 -2
  249. package/dist/select-ng/select-ng__options.js +2 -2
  250. package/dist/shortcuts/shortcuts-hoc.d.ts +1 -1
  251. package/dist/shortcuts/shortcuts-hoc.js +0 -1
  252. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -3
  253. package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +48 -1
  254. package/dist/shortcuts-ng/shortcuts-ng.js +3 -4
  255. package/dist/sidebar-ng/sidebar-ng.js +0 -2
  256. package/dist/sidebar-ng/sidebar-ng__button-template.js +18 -1
  257. package/dist/sidebar-ng/sidebar-ng__template.js +10 -1
  258. package/dist/storage/storage.js +0 -2
  259. package/dist/storage/storage__fallback.js +3 -4
  260. package/dist/storage/storage__local.js +0 -2
  261. package/dist/style.css +1 -1
  262. package/dist/tab-trap/tab-trap.d.ts +1 -1
  263. package/dist/tab-trap/tab-trap.js +0 -1
  264. package/dist/table/cell.js +0 -1
  265. package/dist/table/disable-hover-hoc.js +0 -1
  266. package/dist/table/header-cell.js +0 -2
  267. package/dist/table/header.js +0 -2
  268. package/dist/table/multitable.js +0 -1
  269. package/dist/table/row-with-focus-sensor.js +0 -2
  270. package/dist/table/row.js +1 -3
  271. package/dist/table/selection-adapter.js +0 -2
  272. package/dist/table/selection-shortcuts-hoc.js +0 -1
  273. package/dist/table/selection.js +0 -1
  274. package/dist/table/smart-table.js +0 -2
  275. package/dist/table/table.js +0 -2
  276. package/dist/table-legacy-ng/table-legacy-ng.js +45 -10
  277. package/dist/table-legacy-ng/table-legacy-ng__pager.js +7 -3
  278. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +1 -2
  279. package/dist/table-ng/smart-table-ng.js +0 -2
  280. package/dist/table-ng/table-ng.js +0 -2
  281. package/dist/tabs/collapsible-more.js +0 -2
  282. package/dist/tabs/collapsible-tab.js +0 -1
  283. package/dist/tabs/collapsible-tabs.d.ts +2 -2
  284. package/dist/tabs/collapsible-tabs.js +0 -2
  285. package/dist/tabs/custom-item.d.ts +1 -1
  286. package/dist/tabs/dumb-tabs.d.ts +1 -1
  287. package/dist/tabs/dumb-tabs.js +0 -2
  288. package/dist/tabs/smart-tabs.js +0 -2
  289. package/dist/tabs/tab-link.d.ts +1 -1
  290. package/dist/tabs/tab-link.js +0 -1
  291. package/dist/tabs/tab.d.ts +1 -1
  292. package/dist/tabs/tab.js +0 -1
  293. package/dist/tabs/tabs.js +0 -2
  294. package/dist/tabs-ng/tabs-ng.js +0 -1
  295. package/dist/tabs-ng/tabs-ng__template.js +38 -1
  296. package/dist/tag/tag.d.ts +1 -1
  297. package/dist/tag/tag.js +0 -2
  298. package/dist/tags-input/tags-input.d.ts +2 -2
  299. package/dist/tags-input/tags-input.js +0 -2
  300. package/dist/tags-input-ng/tags-input-ng.js +0 -2
  301. package/dist/tags-list/tags-list.js +0 -2
  302. package/dist/template-ng/template-ng.js +0 -1
  303. package/dist/theme-ng/theme-ng.js +0 -1
  304. package/dist/toggle/toggle.js +0 -1
  305. package/dist/toggle-ng/toggle-ng.js +0 -1
  306. package/dist/tooltip/tooltip.js +0 -2
  307. package/dist/tooltip-ng/tooltip-ng.js +0 -2
  308. package/dist/user-agreement/service.js +0 -2
  309. package/dist/user-agreement/toolbox.eula.js +160 -1
  310. package/dist/user-agreement/user-agreement.js +0 -2
  311. package/dist/user-card/card.d.ts +2 -2
  312. package/dist/user-card/card.js +0 -2
  313. package/dist/user-card/smart-user-card-tooltip.js +0 -2
  314. package/dist/user-card/tooltip.js +0 -2
  315. package/dist/user-card/user-card.js +0 -2
  316. package/dist/user-card-ng/user-card-ng.js +0 -2
  317. 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';
@@ -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: "\n<div class=\"".concat(modules_2c17c81e.breadcrumb, "\">\n <span class=\"").concat(modules_2c17c81e.breadcrumbElement, "\" data-test=\"ring-breadcrumb\" ng-show=\"label\">\n <rg-link\n ng-if=\"link\"\n ng-href=\"{{link}}\"\n >{{label}}</rg-link>\n\n <rg-link ng-if=\"!link && onClick\"\n ng-class=\"onClick && 'ring-link'\"\n data-test=\"ring-breadcrumb-link\"\n ng-click=\"onClick({$event: $event})\">{{label}}</rg-link>\n\n <span ng-if=\"!link && !onClick\" ng-click=\"onClick({$event: $event})\">{{label}}</span>\n </span>\n\n <span ng-show=\"label\">\n <rg-icon\n class=\"").concat(modules_2c17c81e.separatorIcon, "\"\n glyph=\"{{'' | breadcrumbNgChevronIcon}}\"\n ></rg-icon>\n </span>\n\n <span class=\"").concat(modules_2c17c81e.breadcrumbElement, " ").concat(modules_2c17c81e.active, "\" data-test=\"ring-breadcrumb-element\" ng-transclude></span>\n</div>\n\n "),
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',
@@ -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>;
@@ -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,4 +1,3 @@
1
- import 'core-js/modules/web.dom-collections.iterator.js';
2
1
  import angular from 'angular';
3
2
  import classNames from 'classnames';
4
3
  import { m as modules_1068e447 } from '../_helpers/button-group.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 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 = "data-test-".concat(mod);
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: "\n <".concat(tagName, " class=\"").concat(modules_e81895c9.button, "\">\n <span class=\"").concat(modules_e81895c9.content, "\"\n ><rg-icon class=\"").concat(classNames(modules_e81895c9.icon, modules_5f65bc62.iconNg, iconMarginFix), "\"></rg-icon\n ><ng-transclude></ng-transclude\n ></span\n ><div class=\"js-button-loader\"></div>\n </").concat(tagName, ">\n "),
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: "<div class=\"".concat(modules_fd849143.buttonSet, "\" ng-transclude></div>")
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
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/web.dom-collections.iterator.js';
2
1
  import angular from 'angular';
3
2
  import { m as modules_34154ec0 } from '../_helpers/button-toolbar.js';
4
3
 
@@ -1,7 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.string.replace.js';
3
2
  import { getRect } from '../global/dom.js';
4
- import 'core-js/modules/web.dom-collections.iterator.js';
5
3
 
6
4
  /**
7
5
  * @name Caret
@@ -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("\n<label class=\"".concat(modules_3199090e.checkbox, "\">\n <input\n data-proxy-ng-disabled\n data-proxy-ng-model\n data-proxy-ng-change\n data-proxy-ng-true-value\n data-proxy-ng-false-value\n data-proxy-name\n data-proxy-title\n data-proxy-aria-label\n data-test=\"ring-checkbox\"\n type=\"checkbox\"\n class=\"").concat(modules_3199090e.input, "\"\n />\n <span class=\"").concat(modules_3199090e.cell, "\">\n <rg-icon class=\"").concat(modules_3199090e.check, "\" glyph=\"{{:: checkmarkIcon}}\" />\n </span><span class=\"").concat(modules_3199090e.label, "\" ng-transclude></span>\n</label>\n ")),
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("*[class~=\"".concat(modules_3199090e.label, "\"]"));
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);
@@ -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
- "highlight.js/lib/languages/".concat(language));
20
+ `highlight.js/lib/languages/${language}`);
22
21
  highlight.registerLanguage(language, languageExports.default);
23
22
  });
24
23
  /**
@@ -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 'core-js/modules/web.dom-collections.iterator.js';
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
- render( /*#__PURE__*/React.createElement(Confirm, props), containerElement);
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 '../_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';
@@ -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';
@@ -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';
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/web.dom-collections.iterator.js';
2
1
  import Selection$1 from '../table/selection.js';
3
2
  import '../_helpers/_rollupPluginBabelHelpers.js';
4
3
 
@@ -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;
@@ -41,7 +41,7 @@ function parseTime(time) {
41
41
  if (/^([01][0-9]|2[0-3]):[0-5][0-9]$/.test(time)) {
42
42
  result = time;
43
43
  } else if (/^([0-9]|2[0-3]):[0-5][0-9]$/.test(time)) {
44
- result = "0".concat(time);
44
+ result = `0${time}`;
45
45
  }
46
46
 
47
47
  return result;
@@ -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["".concat(name, "Input")], divider && modules_0c7b7d96["".concat(name, "InputWithDivider")], 'ring-js-shortcuts');
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 "".concat(date && displayFormat(date, locale) || '—', ", ").concat(time || '—');
202
+ return `${date && displayFormat(date, locale) || '—'}, ${time || '—'}`;
205
203
  }
206
204
  } else if (from && to) {
207
205
  if (!isSameYear(from, to)) {
208
- return "".concat(displayFormat(from, locale), " \u2014 ").concat(displayFormat(to, locale));
206
+ return `${displayFormat(from, locale)} ${displayFormat(to, locale)}`;
209
207
  } else if (!isSameMonth(from, to)) {
210
- return "".concat(displayMonthFormat(from, locale), " \u2014 ").concat(displayFormat(to, locale));
208
+ return `${displayMonthFormat(from, locale)} ${displayFormat(to, locale)}`;
211
209
  } else if (!isSameDay(from, to)) {
212
- return "".concat(displayDayFormat(from, locale), " \u2014 ").concat(displayFormat(to, locale));
210
+ return `${displayDayFormat(from, locale)} ${displayFormat(to, locale)}`;
213
211
  } else {
214
- return "".concat(displayFormat(to, locale));
212
+ return `${displayFormat(to, locale)}`;
215
213
  }
216
214
  } else if (from) {
217
- return "".concat(displayFormat(from, locale), " \u2014");
215
+ return `${displayFormat(from, locale)} —`;
218
216
  } else if (to) {
219
- return "\u2014 ".concat(displayFormat(to, locale));
217
+ return `— ${displayFormat(to, locale)}`;
220
218
  } else {
221
219
  return rangePlaceholder || translations.setPeriod;
222
220
  }