@jetbrains/ring-ui 5.1.15 → 5.1.17

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 (233) hide show
  1. package/components/editable-heading/editable-heading.css +22 -0
  2. package/components/editable-heading/editable-heading.d.ts +2 -1
  3. package/components/editable-heading/editable-heading.js +42 -6
  4. package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -10
  5. package/dist/_helpers/button__classes.js +13 -3
  6. package/dist/_helpers/dialog__body-scroll-preventer.js +0 -1
  7. package/dist/_helpers/footer.js +9 -5
  8. package/dist/_helpers/sidebar.js +9 -3
  9. package/dist/_helpers/theme.js +5 -3
  10. package/dist/_helpers/title.js +5 -2
  11. package/dist/alert/alert.js +22 -11
  12. package/dist/alert-service/alert-service.js +4 -8
  13. package/dist/analytics/analytics.js +2 -3
  14. package/dist/analytics/analytics__custom-plugin.js +6 -6
  15. package/dist/analytics/analytics__ga-plugin.js +0 -2
  16. package/dist/analytics/analytics__plugin-utils.js +0 -1
  17. package/dist/auth/auth.js +0 -6
  18. package/dist/auth/auth__core.js +20 -26
  19. package/dist/auth/background-flow.js +0 -2
  20. package/dist/auth/down-notification.js +0 -4
  21. package/dist/auth/iframe-flow.js +1 -7
  22. package/dist/auth/landing.js +3 -9
  23. package/dist/auth/request-builder.js +1 -3
  24. package/dist/auth/response-parser.js +0 -2
  25. package/dist/auth/storage.js +2 -7
  26. package/dist/auth/token-validator.js +0 -2
  27. package/dist/auth/window-flow.js +0 -2
  28. package/dist/auth-dialog/auth-dialog.js +0 -4
  29. package/dist/auth-dialog-service/auth-dialog-service.js +0 -4
  30. package/dist/auth-ng/auth-ng.js +7 -13
  31. package/dist/auth-ng/auth-ng.mock.js +5 -5
  32. package/dist/autofocus-ng/autofocus-ng.js +0 -3
  33. package/dist/avatar/avatar.js +7 -11
  34. package/dist/avatar/fallback-avatar.js +1 -5
  35. package/dist/avatar-editor-ng/avatar-editor-ng.js +3 -8
  36. package/dist/avatar-ng/avatar-ng.js +0 -6
  37. package/dist/badge/badge.js +6 -2
  38. package/dist/badge-ng/badge-ng.js +0 -3
  39. package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
  40. package/dist/button/button.js +11 -12
  41. package/dist/button/button__classes.js +0 -1
  42. package/dist/button-group-ng/button-group-ng.js +1 -1
  43. package/dist/button-ng/button-ng.js +6 -7
  44. package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -1
  45. package/dist/caret/caret.js +7 -10
  46. package/dist/checkbox/checkbox.js +0 -1
  47. package/dist/checkbox-ng/checkbox-ng.js +0 -2
  48. package/dist/clipboard/clipboard.js +6 -8
  49. package/dist/code/code.js +4 -3
  50. package/dist/compiler-ng/compiler-ng.js +2 -2
  51. package/dist/confirm/confirm.js +0 -4
  52. package/dist/confirm-ng/confirm-ng.js +2 -6
  53. package/dist/confirm-service/confirm-service.js +6 -10
  54. package/dist/content-layout/content-layout.js +6 -4
  55. package/dist/contenteditable/contenteditable.js +1 -1
  56. package/dist/control-label/control-label.js +8 -4
  57. package/dist/data-list/data-list.js +8 -12
  58. package/dist/data-list/data-list.mock.js +0 -1
  59. package/dist/data-list/item.js +0 -3
  60. package/dist/data-list/selection.js +3 -6
  61. package/dist/data-list/title.js +0 -1
  62. package/dist/data-list-ng/data-list-ng.js +0 -8
  63. package/dist/date-picker/consts.js +1 -1
  64. package/dist/date-picker/date-input.js +2 -3
  65. package/dist/date-picker/date-picker.js +14 -17
  66. package/dist/date-picker/date-popup.js +22 -18
  67. package/dist/date-picker/day.js +17 -3
  68. package/dist/date-picker/month-names.js +4 -3
  69. package/dist/date-picker/month-slider.js +3 -2
  70. package/dist/date-picker/month.js +1 -1
  71. package/dist/date-picker/months.js +0 -1
  72. package/dist/date-picker/weekdays.js +4 -3
  73. package/dist/date-picker/years.js +4 -3
  74. package/dist/dialog/dialog.js +7 -7
  75. package/dist/dialog/dialog__body-scroll-preventer.js +0 -1
  76. package/dist/dialog-ng/dialog-ng.js +5 -12
  77. package/dist/docked-panel-ng/docked-panel-ng.js +0 -3
  78. package/dist/dropdown/anchor.js +0 -1
  79. package/dist/dropdown/dropdown.js +9 -8
  80. package/dist/dropdown-menu/dropdown-menu.js +4 -13
  81. package/dist/editable-heading/editable-heading.d.ts +2 -1
  82. package/dist/editable-heading/editable-heading.js +75 -14
  83. package/dist/error-bubble/error-bubble.js +0 -4
  84. package/dist/error-message/error-message.js +0 -1
  85. package/dist/error-message-ng/error-message-ng.js +0 -1
  86. package/dist/footer/footer.js +1 -2
  87. package/dist/footer-ng/footer-ng.js +0 -1
  88. package/dist/form-ng/form-ng.js +0 -3
  89. package/dist/global/angular-component-factory.js +0 -3
  90. package/dist/global/create-stateful-context.js +4 -4
  91. package/dist/global/data-tests.js +2 -2
  92. package/dist/global/dom.js +6 -9
  93. package/dist/global/fuzzy-highlight.js +6 -6
  94. package/dist/global/linear-function.js +2 -2
  95. package/dist/global/listeners.js +1 -2
  96. package/dist/global/memoize.js +0 -1
  97. package/dist/global/normalize-indent.js +1 -1
  98. package/dist/global/react-dom-renderer.js +0 -2
  99. package/dist/global/react-render-adapter.js +0 -1
  100. package/dist/global/rerender-hoc.js +0 -2
  101. package/dist/global/theme.js +0 -4
  102. package/dist/global/trivial-template-tag.js +1 -1
  103. package/dist/global/url.js +0 -1
  104. package/dist/grid/col.js +3 -3
  105. package/dist/grid/grid.js +0 -2
  106. package/dist/grid/row.js +3 -1
  107. package/dist/header/header.js +3 -11
  108. package/dist/header/logo.js +0 -1
  109. package/dist/header/profile.js +9 -16
  110. package/dist/header/services-link.js +0 -1
  111. package/dist/header/services.js +4 -6
  112. package/dist/header/smart-profile.js +1 -11
  113. package/dist/header/smart-services.js +1 -7
  114. package/dist/header/tray-icon.js +4 -3
  115. package/dist/heading/heading.js +4 -2
  116. package/dist/heading-ng/heading-ng.js +0 -3
  117. package/dist/http/http.js +7 -9
  118. package/dist/http/http.mock.js +2 -5
  119. package/dist/hub-source/hub-source.js +0 -2
  120. package/dist/hub-source/hub-source__user.js +0 -2
  121. package/dist/hub-source/hub-source__users-groups.js +0 -3
  122. package/dist/i18n/i18n-context.js +3 -4
  123. package/dist/i18n/i18n.js +0 -1
  124. package/dist/icon/icon.js +6 -5
  125. package/dist/icon/icon__svg.js +4 -3
  126. package/dist/icon/index.js +0 -1
  127. package/dist/icon-ng/icon-ng.js +0 -1
  128. package/dist/input/input.js +13 -8
  129. package/dist/input-ng/input-ng.js +8 -6
  130. package/dist/island/adaptive-island-hoc.js +1 -1
  131. package/dist/island/content.js +9 -5
  132. package/dist/island/header.js +4 -2
  133. package/dist/island/island.js +4 -2
  134. package/dist/island-ng/island-content-ng.js +2 -2
  135. package/dist/island-ng/island-header-ng.js +1 -1
  136. package/dist/island-ng/island-ng.js +1 -1
  137. package/dist/link/link.js +8 -3
  138. package/dist/list/list.js +10 -18
  139. package/dist/list/list__custom.js +5 -2
  140. package/dist/list/list__item.js +11 -9
  141. package/dist/list/list__link.js +6 -4
  142. package/dist/list/list__separator.js +4 -2
  143. package/dist/list/list__title.js +4 -2
  144. package/dist/list/list__users-groups-source.js +0 -8
  145. package/dist/loader/loader.js +0 -4
  146. package/dist/loader/loader__core.js +0 -4
  147. package/dist/loader-ng/loader-ng.js +0 -4
  148. package/dist/loader-screen/loader-screen.js +3 -5
  149. package/dist/loader-screen-ng/loader-screen-ng.js +0 -4
  150. package/dist/login-dialog/login-dialog.js +2 -8
  151. package/dist/login-dialog/service.js +0 -6
  152. package/dist/markdown/code.js +0 -2
  153. package/dist/markdown/link.js +0 -1
  154. package/dist/markdown/markdown.js +5 -5
  155. package/dist/message/message.js +68 -58
  156. package/dist/old-browsers-message/old-browsers-message.js +0 -1
  157. package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
  158. package/dist/old-browsers-message/white-list.js +6 -5
  159. package/dist/pager/pager.js +8 -13
  160. package/dist/pager-ng/pager-ng.js +0 -8
  161. package/dist/panel-ng/panel-ng.js +0 -3
  162. package/dist/permissions/permissions.js +1 -2
  163. package/dist/permissions-ng/permissions-ng.js +1 -7
  164. package/dist/place-under-ng/place-under-ng.js +6 -10
  165. package/dist/popup/popup.js +22 -23
  166. package/dist/popup/position.js +70 -61
  167. package/dist/popup-menu/popup-menu.js +0 -9
  168. package/dist/progress-bar/progress-bar.js +4 -2
  169. package/dist/progress-bar-ng/progress-bar-ng.js +0 -3
  170. package/dist/promised-click-ng/promised-click-ng.js +0 -4
  171. package/dist/proxy-attrs/proxy-attrs.js +0 -1
  172. package/dist/query-assist/query-assist.js +39 -35
  173. package/dist/query-assist/query-assist__suggestions.js +0 -8
  174. package/dist/query-assist-ng/query-assist-ng.js +0 -10
  175. package/dist/radio-ng/radio-ng.js +0 -1
  176. package/dist/save-field-ng/save-field-ng.js +6 -13
  177. package/dist/select/select.js +33 -31
  178. package/dist/select/select__filter.js +0 -8
  179. package/dist/select/select__popup.js +12 -14
  180. package/dist/select-ng/select-ng.js +8 -16
  181. package/dist/select-ng/select-ng__lazy.js +0 -8
  182. package/dist/select-ng/select-ng__options.js +5 -6
  183. package/dist/shortcuts/core.js +5 -7
  184. package/dist/shortcuts/shortcuts-hoc.js +0 -2
  185. package/dist/shortcuts/shortcuts.js +0 -2
  186. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +1 -8
  187. package/dist/shortcuts-ng/shortcuts-ng.js +6 -12
  188. package/dist/sidebar-ng/sidebar-ng.js +2 -7
  189. package/dist/storage/storage.js +0 -5
  190. package/dist/storage/storage__fallback.js +0 -3
  191. package/dist/storage/storage__local.js +0 -4
  192. package/dist/style.css +1 -1
  193. package/dist/tab-trap/tab-trap.js +1 -4
  194. package/dist/table/header-cell.js +8 -4
  195. package/dist/table/header.js +8 -7
  196. package/dist/table/multitable.js +0 -1
  197. package/dist/table/row-with-focus-sensor.js +0 -4
  198. package/dist/table/row.js +11 -8
  199. package/dist/table/selection-adapter.js +1 -1
  200. package/dist/table/selection-shortcuts-hoc.js +0 -2
  201. package/dist/table/selection.js +3 -5
  202. package/dist/table/smart-table.js +4 -10
  203. package/dist/table/table.js +26 -24
  204. package/dist/table-legacy-ng/table-legacy-ng.js +3 -12
  205. package/dist/table-legacy-ng/table-legacy-ng__pager.js +0 -8
  206. package/dist/table-legacy-ng/table-legacy-ng__selection.js +0 -2
  207. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -3
  208. package/dist/table-ng/smart-table-ng.js +0 -7
  209. package/dist/table-ng/table-ng.js +0 -7
  210. package/dist/tabs/collapsible-more.js +4 -13
  211. package/dist/tabs/collapsible-tab.js +9 -5
  212. package/dist/tabs/collapsible-tabs.js +7 -16
  213. package/dist/tabs/dumb-tabs.js +6 -13
  214. package/dist/tabs/smart-tabs.js +1 -10
  215. package/dist/tabs/tab-link.js +0 -1
  216. package/dist/tabs/tabs.js +0 -9
  217. package/dist/tabs-ng/tabs-ng.js +4 -5
  218. package/dist/tag/tag.js +11 -6
  219. package/dist/tags-input/tags-input.js +12 -18
  220. package/dist/tags-input-ng/tags-input-ng.js +0 -8
  221. package/dist/tags-list/tags-list.js +0 -1
  222. package/dist/text/text.js +6 -3
  223. package/dist/toggle-ng/toggle-ng.js +0 -3
  224. package/dist/tooltip/tooltip.js +5 -7
  225. package/dist/tooltip-ng/tooltip-ng.js +2 -6
  226. package/dist/user-agreement/service.js +9 -15
  227. package/dist/user-agreement/user-agreement.js +0 -5
  228. package/dist/user-card/card.js +0 -7
  229. package/dist/user-card/smart-user-card-tooltip.js +1 -8
  230. package/dist/user-card/tooltip.js +1 -8
  231. package/dist/user-card/user-card.js +0 -7
  232. package/dist/user-card-ng/user-card-ng.js +0 -7
  233. package/package.json +22 -22
@@ -1,7 +1,7 @@
1
1
  import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import 'core-js/modules/es.array.map.js';
4
- import React, { PureComponent, Component } from 'react';
4
+ import React, { Component, PureComponent } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
7
  import focusSensorHOC from '../global/focus-sensor-hoc.js';
@@ -20,20 +20,16 @@ import 'core-js/modules/web.dom-collections.for-each.js';
20
20
  import '../table/selection.js';
21
21
  import 'core-js/modules/es.array.iterator.js';
22
22
  import 'core-js/modules/es.set.js';
23
- import 'core-js/modules/es.string.iterator.js';
24
23
  import 'core-js/modules/web.dom-collections.iterator.js';
25
24
  import 'core-js/modules/es.array.filter.js';
26
- import 'core-js/modules/es.array.index-of.js';
27
25
  import 'core-js/modules/es.array.includes.js';
28
26
  import 'core-js/modules/es.regexp.to-string.js';
29
27
  import '../shortcuts/core.js';
30
28
  import 'core-js/modules/es.string.includes.js';
31
- import 'core-js/modules/es.object.assign.js';
32
29
  import 'core-js/modules/es.array.slice.js';
33
30
  import 'core-js/modules/es.array.splice.js';
34
31
  import 'core-js/modules/es.regexp.exec.js';
35
32
  import 'core-js/modules/es.string.match.js';
36
- import 'core-js/modules/es.array.find-index.js';
37
33
  import 'combokeys';
38
34
  import '../global/sniffer.js';
39
35
  import 'sniffr';
@@ -41,10 +37,8 @@ import '../global/data-tests.js';
41
37
  import 'core-js/modules/es.array.reduce.js';
42
38
  import 'core-js/modules/es.object.entries.js';
43
39
  import '../loader/loader__core.js';
44
- import 'core-js/modules/es.array.fill.js';
45
40
  import '../global/dom.js';
46
41
  import 'core-js/modules/es.string.split.js';
47
- import 'core-js/modules/es.object.keys.js';
48
42
  import '@jetbrains/icons/chevron-right';
49
43
  import '@jetbrains/icons/chevron-down';
50
44
  import '../link/link.js';
@@ -71,7 +65,6 @@ import '../checkbox/checkbox.js';
71
65
  import '@jetbrains/icons/checkmark-14px';
72
66
  import '@jetbrains/icons/remove-14px';
73
67
  import '../_helpers/checkbox.js';
74
- import 'core-js/modules/es.array.find.js';
75
68
 
76
69
  var DataList = /*#__PURE__*/function (_PureComponent) {
77
70
  _inherits(DataList, _PureComponent);
@@ -132,7 +125,7 @@ var DataList = /*#__PURE__*/function (_PureComponent) {
132
125
  selectable = _this$props4.selectable;
133
126
  if (data !== prevProps.data && !prevProps.remoteSelection) {
134
127
  onSelect(selection.cloneWith({
135
- data: data
128
+ data
136
129
  }));
137
130
  }
138
131
  if (!selectable && prevProps.selectable) {
@@ -142,8 +135,7 @@ var DataList = /*#__PURE__*/function (_PureComponent) {
142
135
  }, {
143
136
  key: "render",
144
137
  value: function render() {
145
- var _classNames,
146
- _this2 = this;
138
+ var _this2 = this;
147
139
  var _this$props5 = this.props,
148
140
  data = _this$props5.data,
149
141
  className = _this$props5.className,
@@ -154,7 +146,11 @@ var DataList = /*#__PURE__*/function (_PureComponent) {
154
146
  focused = _this$props5.focused,
155
147
  innerRef = _this$props5.innerRef;
156
148
  var shortcutsMap = _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap);
157
- var classes = classNames(className, (_classNames = {}, _defineProperty(_classNames, modules_09d014b4.dataList, true), _defineProperty(_classNames, modules_09d014b4.disabledHover, disabledHover), _defineProperty(_classNames, modules_09d014b4.multiSelection, selection.getSelected().size > 0), _classNames));
149
+ var classes = classNames(className, {
150
+ [modules_09d014b4.dataList]: true,
151
+ [modules_09d014b4.disabledHover]: disabledHover,
152
+ [modules_09d014b4.multiSelection]: selection.getSelected().size > 0
153
+ });
158
154
  return /*#__PURE__*/React.createElement("div", {
159
155
  className: modules_09d014b4.dataListWrapper,
160
156
  "data-test": "ring-data-list",
@@ -8,7 +8,6 @@ import '../global/memoize.js';
8
8
  import 'core-js/modules/es.array.iterator.js';
9
9
  import 'core-js/modules/es.map.js';
10
10
  import 'core-js/modules/es.object.to-string.js';
11
- import 'core-js/modules/es.string.iterator.js';
12
11
  import 'core-js/modules/web.dom-collections.iterator.js';
13
12
  import 'core-js/modules/es.weak-map.js';
14
13
  import '../global/data-tests.js';
@@ -16,7 +16,6 @@ import '../global/memoize.js';
16
16
  import 'core-js/modules/es.array.iterator.js';
17
17
  import 'core-js/modules/es.map.js';
18
18
  import 'core-js/modules/es.object.to-string.js';
19
- import 'core-js/modules/es.string.iterator.js';
20
19
  import 'core-js/modules/web.dom-collections.iterator.js';
21
20
  import 'core-js/modules/es.weak-map.js';
22
21
  import '../global/data-tests.js';
@@ -24,7 +23,6 @@ import 'core-js/modules/es.array.reduce.js';
24
23
  import 'core-js/modules/es.object.entries.js';
25
24
  import '../link/clickableLink.js';
26
25
  import '../_helpers/link.js';
27
- import 'core-js/modules/es.object.keys.js';
28
26
  import '../_helpers/loader-inline.js';
29
27
  import '@jetbrains/icons/chevron-10px';
30
28
  import '../icon/icon.js';
@@ -39,7 +37,6 @@ import '../global/controls-height.js';
39
37
  import '../_helpers/button__classes.js';
40
38
  import 'core-js/modules/es.set.js';
41
39
  import 'core-js/modules/es.array.filter.js';
42
- import 'core-js/modules/es.array.index-of.js';
43
40
  import '../global/focus-sensor-hoc.js';
44
41
  import '../global/prop-types.js';
45
42
  import '../global/composeRefs.js';
@@ -1,17 +1,14 @@
1
- import { a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, m as _toConsumableArray, o as _get, p as _getPrototypeOf } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, l as _toConsumableArray, n as _get, o as _getPrototypeOf } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.iterator.js';
3
3
  import 'core-js/modules/es.object.to-string.js';
4
4
  import 'core-js/modules/es.set.js';
5
- import 'core-js/modules/es.string.iterator.js';
6
5
  import 'core-js/modules/web.dom-collections.iterator.js';
7
6
  import 'core-js/modules/web.dom-collections.for-each.js';
8
7
  import 'core-js/modules/es.array.concat.js';
9
- import 'core-js/modules/es.array.find.js';
10
8
  import 'core-js/modules/es.array.includes.js';
11
9
  import 'core-js/modules/es.string.includes.js';
12
10
  import 'core-js/modules/es.array.filter.js';
13
11
  import Selection$1 from '../table/selection.js';
14
- import 'core-js/modules/es.array.index-of.js';
15
12
 
16
13
  var Selection = /*#__PURE__*/function (_TableSelection) {
17
14
  _inherits(Selection, _TableSelection);
@@ -109,7 +106,7 @@ var Selection = /*#__PURE__*/function (_TableSelection) {
109
106
  this._selectDescendants(value, selected);
110
107
  this._selectAncestors(value, selected);
111
108
  return this.cloneWith({
112
- selected: selected
109
+ selected
113
110
  });
114
111
  }
115
112
  }, {
@@ -139,7 +136,7 @@ var Selection = /*#__PURE__*/function (_TableSelection) {
139
136
  this._deselectDescendants(value, selected);
140
137
  this._deselectAncestors(value, selected);
141
138
  return this.cloneWith({
142
- selected: selected
139
+ selected
143
140
  });
144
141
  }
145
142
  }]);
@@ -24,7 +24,6 @@ import 'core-js/modules/es.string.starts-with.js';
24
24
  import '../global/memoize.js';
25
25
  import 'core-js/modules/es.array.iterator.js';
26
26
  import 'core-js/modules/es.map.js';
27
- import 'core-js/modules/es.string.iterator.js';
28
27
  import 'core-js/modules/web.dom-collections.iterator.js';
29
28
  import 'core-js/modules/es.weak-map.js';
30
29
  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/es.object.keys.js';
5
4
  import 'core-js/modules/es.object.to-string.js';
6
5
  import 'core-js/modules/web.dom-collections.for-each.js';
7
6
  import 'core-js/modules/es.array.slice.js';
@@ -9,14 +8,12 @@ import 'angular';
9
8
  import 'react';
10
9
  import '../global/react-render-adapter.js';
11
10
  import 'core-js/modules/es.array.iterator.js';
12
- import 'core-js/modules/es.string.iterator.js';
13
11
  import 'core-js/modules/es.weak-map.js';
14
12
  import 'core-js/modules/web.dom-collections.iterator.js';
15
13
  import 'react-dom';
16
14
  import '../global/ring-angular-component.js';
17
15
  import '../global/react-dom-renderer.js';
18
16
  import 'core-js/modules/es.array.concat.js';
19
- import 'core-js/modules/es.array.from.js';
20
17
  import 'prop-types';
21
18
  import 'core-js/modules/es.array.map.js';
22
19
  import 'classnames';
@@ -27,7 +24,6 @@ import '../table/selection-shortcuts-hoc.js';
27
24
  import '../table/selection.js';
28
25
  import 'core-js/modules/es.set.js';
29
26
  import 'core-js/modules/es.array.filter.js';
30
- import 'core-js/modules/es.array.index-of.js';
31
27
  import '../table/disable-hover-hoc.js';
32
28
  import 'core-js/modules/es.array.includes.js';
33
29
  import '../global/get-uid.js';
@@ -35,11 +31,9 @@ import 'core-js/modules/es.regexp.to-string.js';
35
31
  import '../shortcuts/shortcuts.js';
36
32
  import '../shortcuts/core.js';
37
33
  import 'core-js/modules/es.string.includes.js';
38
- import 'core-js/modules/es.object.assign.js';
39
34
  import 'core-js/modules/es.array.splice.js';
40
35
  import 'core-js/modules/es.regexp.exec.js';
41
36
  import 'core-js/modules/es.string.match.js';
42
- import 'core-js/modules/es.array.find-index.js';
43
37
  import 'combokeys';
44
38
  import '../global/sniffer.js';
45
39
  import 'sniffr';
@@ -48,7 +42,6 @@ import '../global/data-tests.js';
48
42
  import 'core-js/modules/es.array.reduce.js';
49
43
  import 'core-js/modules/es.object.entries.js';
50
44
  import '../loader/loader__core.js';
51
- import 'core-js/modules/es.array.fill.js';
52
45
  import '../global/dom.js';
53
46
  import 'core-js/modules/es.string.split.js';
54
47
  import '../data-list/item.js';
@@ -79,7 +72,6 @@ import '@jetbrains/icons/checkmark-14px';
79
72
  import '@jetbrains/icons/remove-14px';
80
73
  import '../_helpers/checkbox.js';
81
74
  import '../data-list/selection.js';
82
- import 'core-js/modules/es.array.find.js';
83
75
 
84
76
  var dataListNg = angularComponentFactory(DataListContainer, 'DataList').name;
85
77
 
@@ -4,7 +4,7 @@ import add from 'date-fns/add';
4
4
 
5
5
  var unit = 8; // px;
6
6
  var units = {
7
- unit: unit,
7
+ unit,
8
8
  /* eslint-disable @typescript-eslint/no-magic-numbers */
9
9
  cellSize: unit * 3,
10
10
  calHeight: unit * 36,
@@ -26,7 +26,6 @@ import 'core-js/modules/es.string.starts-with.js';
26
26
  import '../global/memoize.js';
27
27
  import 'core-js/modules/es.array.iterator.js';
28
28
  import 'core-js/modules/es.map.js';
29
- import 'core-js/modules/es.string.iterator.js';
30
29
  import 'core-js/modules/web.dom-collections.iterator.js';
31
30
  import 'core-js/modules/es.weak-map.js';
32
31
  import '../link/clickableLink.js';
@@ -73,8 +72,8 @@ var DateInput = /*#__PURE__*/function (_React$PureComponent) {
73
72
  active = _this$props.active;
74
73
  if (text !== prevProps.text || active !== prevProps.active) {
75
74
  this.updateInput({
76
- text: text,
77
- active: active
75
+ text,
76
+ active
78
77
  });
79
78
  }
80
79
  }
@@ -1,8 +1,7 @@
1
- import { _ as _defineProperty, j as _slicedToArray, n as _createForOfIteratorHelper, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, e as _objectWithoutProperties, f as _extends, g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, j as _slicedToArray, m as _createForOfIteratorHelper, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, e as _objectWithoutProperties, f as _extends, g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import 'core-js/modules/es.object.values.js';
4
4
  import 'core-js/modules/es.array.map.js';
5
- import 'core-js/modules/es.number.constructor.js';
6
5
  import React, { PureComponent } from 'react';
7
6
  import PropTypes from 'prop-types';
8
7
  import classNames from 'classnames';
@@ -30,7 +29,6 @@ import formats from './formats.js';
30
29
  import 'core-js/modules/es.array.iterator.js';
31
30
  import 'core-js/modules/es.map.js';
32
31
  import 'core-js/modules/es.object.to-string.js';
33
- import 'core-js/modules/es.string.iterator.js';
34
32
  import 'core-js/modules/web.dom-collections.iterator.js';
35
33
  import 'core-js/modules/es.weak-map.js';
36
34
  import 'core-js/modules/web.dom-collections.for-each.js';
@@ -42,10 +40,8 @@ import 'react-dom';
42
40
  import '../global/get-uid.js';
43
41
  import '../global/schedule-raf.js';
44
42
  import '../global/dom.js';
45
- import 'core-js/modules/es.object.assign.js';
46
43
  import 'core-js/modules/es.array.filter.js';
47
44
  import 'core-js/modules/es.string.split.js';
48
- import 'core-js/modules/es.object.keys.js';
49
45
  import 'core-js/modules/es.set.js';
50
46
  import '../shortcuts/shortcuts.js';
51
47
  import '../shortcuts/core.js';
@@ -54,7 +50,6 @@ import 'core-js/modules/es.string.includes.js';
54
50
  import 'core-js/modules/es.array.slice.js';
55
51
  import 'core-js/modules/es.array.splice.js';
56
52
  import 'core-js/modules/es.string.match.js';
57
- import 'core-js/modules/es.array.find-index.js';
58
53
  import 'combokeys';
59
54
  import '../global/sniffer.js';
60
55
  import 'sniffr';
@@ -277,7 +272,9 @@ var DatePicker = /*#__PURE__*/function (_PureComponent) {
277
272
  dropdownProps = _this$props4.dropdownProps,
278
273
  translations = _this$props4.translations,
279
274
  datePopupProps = _objectWithoutProperties(_this$props4, _excluded2);
280
- var classes = classNames(modules_0c7b7d96.datePicker, className, modules_0c7b7d96["size".concat(this.props.size)], _defineProperty({}, modules_0c7b7d96.inline, inline));
275
+ var classes = classNames(modules_0c7b7d96.datePicker, className, modules_0c7b7d96["size".concat(this.props.size)], {
276
+ [modules_0c7b7d96.inline]: inline
277
+ });
281
278
  return /*#__PURE__*/React.createElement(Dropdown, _extends({
282
279
  className: classes,
283
280
  disabled: this.props.disabled,
@@ -297,7 +294,7 @@ var DatePicker = /*#__PURE__*/function (_PureComponent) {
297
294
  popupRef: this.popupRef,
298
295
  onClear: clear ? this.clear : null,
299
296
  datePopupProps: _objectSpread2(_objectSpread2({}, datePopupProps), {}, {
300
- translations: translations,
297
+ translations,
301
298
  onChange: this.handleChange,
302
299
  parseDateInput: this.parse,
303
300
  time: this.formatTime()
@@ -348,39 +345,39 @@ _defineProperty(DatePicker, "defaultProps", {
348
345
  size: Size.M,
349
346
  displayFormat: function displayFormat(date, locale) {
350
347
  return date ? format(date, 'd MMM yyyy', {
351
- locale: locale
348
+ locale
352
349
  }) : '';
353
350
  },
354
351
  displayMonthFormat: function displayMonthFormat(date, locale) {
355
352
  return date ? format(date, 'd MMM', {
356
- locale: locale
353
+ locale
357
354
  }) : '';
358
355
  },
359
356
  displayDayFormat: function displayDayFormat(date, locale) {
360
357
  return date ? format(date, 'd', {
361
- locale: locale
358
+ locale
362
359
  }) : '';
363
360
  },
364
361
  displayTimeFormat: function displayTimeFormat(date, locale) {
365
362
  return date ? format(date, 'HH:mm', {
366
- locale: locale
363
+ locale
367
364
  }) : '';
368
365
  },
369
366
  minDate: null,
370
367
  maxDate: null,
371
- onChange: function onChange() {},
372
- applyTimeInput: function applyTimeInput(date, timeString) {
368
+ onChange() {},
369
+ applyTimeInput(date, timeString) {
373
370
  var _timeString$split$map;
374
371
  var _ref5 = (_timeString$split$map = timeString === null || timeString === void 0 ? void 0 : timeString.split(':').map(Number)) !== null && _timeString$split$map !== void 0 ? _timeString$split$map : [],
375
372
  _ref6 = _slicedToArray(_ref5, 2),
376
373
  hours = _ref6[0],
377
374
  minutes = _ref6[1];
378
375
  return minutes != null ? set(date, {
379
- hours: hours,
380
- minutes: minutes
376
+ hours,
377
+ minutes
381
378
  }) : date;
382
379
  },
383
- parseDateInput: function parseDateInput(string) {
380
+ parseDateInput(string) {
384
381
  if (!string) {
385
382
  return null;
386
383
  }
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, g as _objectSpread2, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.number.constructor.js';
3
2
  import 'core-js/modules/es.array.reduce.js';
4
3
  import 'core-js/modules/es.object.to-string.js';
5
4
  import 'core-js/modules/es.array.map.js';
@@ -19,7 +18,6 @@ import { dateType, parseTime } from './consts.js';
19
18
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
20
19
  import 'core-js/modules/es.array.iterator.js';
21
20
  import 'core-js/modules/es.map.js';
22
- import 'core-js/modules/es.string.iterator.js';
23
21
  import 'core-js/modules/web.dom-collections.iterator.js';
24
22
  import 'core-js/modules/es.weak-map.js';
25
23
  import 'core-js/modules/es.array.concat.js';
@@ -138,7 +136,7 @@ var DatePopup = /*#__PURE__*/function (_Component) {
138
136
  });
139
137
  _defineProperty(_assertThisInitialized(_this), "hoverHandler", function (hoverDate) {
140
138
  return _this.setState({
141
- hoverDate: hoverDate
139
+ hoverDate
142
140
  });
143
141
  });
144
142
  _defineProperty(_assertThisInitialized(_this), "handleActivate", memoize(function (name) {
@@ -156,7 +154,7 @@ var DatePopup = /*#__PURE__*/function (_Component) {
156
154
  }
157
155
  }
158
156
  _this.setState({
159
- text: text,
157
+ text,
160
158
  hoverDate: null
161
159
  });
162
160
  });
@@ -171,16 +169,18 @@ var DatePopup = /*#__PURE__*/function (_Component) {
171
169
  active: 'time'
172
170
  }, function () {
173
171
  return _this.select({
174
- date: date
172
+ date
175
173
  });
176
174
  });
177
175
  } else {
178
- _this.select(_defineProperty({}, _this.state.active, date));
176
+ _this.select({
177
+ [_this.state.active]: date
178
+ });
179
179
  }
180
180
  });
181
181
  _defineProperty(_assertThisInitialized(_this), "handleScroll", function (scrollDate) {
182
182
  return _this.setState({
183
- scrollDate: scrollDate
183
+ scrollDate
184
184
  });
185
185
  });
186
186
  _defineProperty(_assertThisInitialized(_this), "onClear", function (e) {
@@ -211,7 +211,7 @@ var DatePopup = /*#__PURE__*/function (_Component) {
211
211
  var parsedDate = _this.parse(props.date, 'date');
212
212
  var active = withTime && parsedDate && !props.time ? 'time' : 'date';
213
213
  _this.state = _objectSpread2(_objectSpread2({}, defaultState), {}, {
214
- active: active
214
+ active
215
215
  });
216
216
  } else if (props.from && !props.to) {
217
217
  _this.state = _objectSpread2(_objectSpread2({}, defaultState), {}, {
@@ -317,13 +317,13 @@ var DatePopup = /*#__PURE__*/function (_Component) {
317
317
  complete = !!from;
318
318
  }
319
319
  this.setState({
320
- active: active,
320
+ active,
321
321
  hoverDate: null,
322
322
  text: null
323
323
  });
324
324
  this.props.onChange({
325
- from: from,
326
- to: to
325
+ from,
326
+ to
327
327
  });
328
328
  if (complete) {
329
329
  this.props.onComplete();
@@ -346,7 +346,9 @@ var DatePopup = /*#__PURE__*/function (_Component) {
346
346
  result = this.parse(name in this.props ? this.props[name] : '', name);
347
347
  }
348
348
  }
349
- this.select(_defineProperty({}, name, result));
349
+ this.select({
350
+ [name]: result
351
+ });
350
352
  }
351
353
  }, {
352
354
  key: "render",
@@ -367,7 +369,9 @@ var DatePopup = /*#__PURE__*/function (_Component) {
367
369
  var names = range ? ['from', 'to'] : ['date'];
368
370
  var dates = names.reduce(function (obj, key) {
369
371
  var value = _this2.props[key];
370
- return _objectSpread2(_objectSpread2({}, obj), {}, _defineProperty({}, key, _this2.parse(value, key)));
372
+ return _objectSpread2(_objectSpread2({}, obj), {}, {
373
+ [key]: _this2.parse(value, key)
374
+ });
371
375
  }, {});
372
376
  var activeDate = this.state.active !== 'time' ? this.state.hoverDate || (this.state.text != null ? this.parse(this.state.text, 'date') : null) : this.state.hoverDate || null;
373
377
  var currentRange = range && dates.from && dates.to && [dates.from, dates.to] || null;
@@ -393,10 +397,10 @@ var DatePopup = /*#__PURE__*/function (_Component) {
393
397
  }
394
398
  var scrollDate = withTime && !range ? this.state.scrollDate || dates.date || new Date() : this.state.scrollDate || dates[this.state.active] || new Date();
395
399
  var calendarProps = _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dates), {}, {
396
- scrollDate: scrollDate,
397
- activeDate: activeDate,
398
- currentRange: currentRange,
399
- activeRange: activeRange,
400
+ scrollDate,
401
+ activeDate,
402
+ currentRange,
403
+ activeRange,
400
404
  onScroll: this.handleScroll,
401
405
  onScrollChange: this.scrollTo
402
406
  });
@@ -481,7 +485,7 @@ _defineProperty(DatePopup, "propTypes", {
481
485
  locale: PropTypes.object
482
486
  });
483
487
  _defineProperty(DatePopup, "defaultProps", {
484
- onChange: function onChange() {}
488
+ onChange() {}
485
489
  });
486
490
 
487
491
  export { DatePopup as default };
@@ -69,7 +69,6 @@ var Day = /*#__PURE__*/function (_Component) {
69
69
  }, {
70
70
  key: "render",
71
71
  value: function render() {
72
- var _classNames;
73
72
  var _this$props = this.props,
74
73
  day = _this$props.day,
75
74
  from = _this$props.from,
@@ -88,7 +87,20 @@ var Day = /*#__PURE__*/function (_Component) {
88
87
  // TODO make keyboard navigation actually work
89
88
  React.createElement("button", {
90
89
  type: "button",
91
- className: classNames(modules_0c7b7d96.day, modules_0c7b7d96[format(day, 'EEEE')], (_classNames = {}, _defineProperty(_classNames, modules_0c7b7d96.current, ['date', 'from', 'to'].some(this.is)), _defineProperty(_classNames, modules_0c7b7d96.active, !disabled && this.is('activeDate')), _defineProperty(_classNames, modules_0c7b7d96.weekend, [weekdays.SA, weekdays.SU].includes(getDay(day))), _defineProperty(_classNames, modules_0c7b7d96.empty, empty), _defineProperty(_classNames, modules_0c7b7d96.from, currentRange && this.isDay(currentRange[0]) && !reverse || activeRange && this.isDay(activeRange[0])), _defineProperty(_classNames, modules_0c7b7d96.to, currentRange && this.isDay(currentRange[1]) || activeRange && this.isDay(activeRange[1])), _defineProperty(_classNames, modules_0c7b7d96.between, this.inRange(currentRange)), _defineProperty(_classNames, modules_0c7b7d96.activeBetween, !disabled && this.inRange(activeRange)), _defineProperty(_classNames, modules_0c7b7d96.first, getDate(day) === 1), _defineProperty(_classNames, modules_0c7b7d96.spread, this.inRange(spreadRange)), _defineProperty(_classNames, modules_0c7b7d96.activeSpread, !disabled && this.inRange(activeSpreadRange)), _defineProperty(_classNames, modules_0c7b7d96.disabled, disabled), _classNames)),
90
+ className: classNames(modules_0c7b7d96.day, modules_0c7b7d96[format(day, 'EEEE')], {
91
+ [modules_0c7b7d96.current]: ['date', 'from', 'to'].some(this.is),
92
+ [modules_0c7b7d96.active]: !disabled && this.is('activeDate'),
93
+ [modules_0c7b7d96.weekend]: [weekdays.SA, weekdays.SU].includes(getDay(day)),
94
+ [modules_0c7b7d96.empty]: empty,
95
+ [modules_0c7b7d96.from]: currentRange && this.isDay(currentRange[0]) && !reverse || activeRange && this.isDay(activeRange[0]),
96
+ [modules_0c7b7d96.to]: currentRange && this.isDay(currentRange[1]) || activeRange && this.isDay(activeRange[1]),
97
+ [modules_0c7b7d96.between]: this.inRange(currentRange),
98
+ [modules_0c7b7d96.activeBetween]: !disabled && this.inRange(activeRange),
99
+ [modules_0c7b7d96.first]: getDate(day) === 1,
100
+ [modules_0c7b7d96.spread]: this.inRange(spreadRange),
101
+ [modules_0c7b7d96.activeSpread]: !disabled && this.inRange(activeSpreadRange),
102
+ [modules_0c7b7d96.disabled]: disabled
103
+ }),
92
104
  onClick: this.handleClick,
93
105
  onMouseOver: this.handleMouseOver,
94
106
  onFocus: this.handleMouseOver,
@@ -96,7 +108,9 @@ var Day = /*#__PURE__*/function (_Component) {
96
108
  onBlur: this.handleMouseOut,
97
109
  disabled: disabled
98
110
  }, empty || /*#__PURE__*/React.createElement("span", {
99
- className: classNames(_defineProperty({}, modules_0c7b7d96.today, isToday(day)))
111
+ className: classNames({
112
+ [modules_0c7b7d96.today]: isToday(day)
113
+ })
100
114
  }, format(day, 'd')))
101
115
  );
102
116
  }
@@ -1,6 +1,5 @@
1
1
  import { _ as _defineProperty, j as _slicedToArray, f as _extends, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
- import 'core-js/modules/es.number.constructor.js';
4
3
  import 'core-js/modules/es.array.map.js';
5
4
  import React, { PureComponent } from 'react';
6
5
  import PropTypes from 'prop-types';
@@ -44,10 +43,12 @@ var MonthName = /*#__PURE__*/function (_PureComponent) {
44
43
  locale = _this$props.locale;
45
44
  return /*#__PURE__*/React.createElement("button", {
46
45
  type: "button",
47
- className: classNames(modules_0c7b7d96.monthName, _defineProperty({}, modules_0c7b7d96.today, isThisMonth(month))),
46
+ className: classNames(modules_0c7b7d96.monthName, {
47
+ [modules_0c7b7d96.today]: isThisMonth(month)
48
+ }),
48
49
  onClick: this.handleClick
49
50
  }, format(month, 'LLL', {
50
- locale: locale
51
+ locale
51
52
  }));
52
53
  }
53
54
  }]);
@@ -1,6 +1,5 @@
1
1
  import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
- import 'core-js/modules/es.number.constructor.js';
4
3
  import 'core-js/modules/es.array.map.js';
5
4
  import React, { PureComponent } from 'react';
6
5
  import PropTypes from 'prop-types';
@@ -64,7 +63,9 @@ var MonthSlider = /*#__PURE__*/function (_PureComponent) {
64
63
  year = addYears(year, 1);
65
64
  years.push(year);
66
65
  }
67
- var classes = classNames(modules_0c7b7d96.monthSlider, _defineProperty({}, modules_0c7b7d96.dragging, this.state.dragging));
66
+ var classes = classNames(modules_0c7b7d96.monthSlider, {
67
+ [modules_0c7b7d96.dragging]: this.state.dragging
68
+ });
68
69
  return /*#__PURE__*/React.createElement("div", null, years.map(function (date) {
69
70
  return /*#__PURE__*/React.createElement("button", {
70
71
  type: "button",
@@ -41,7 +41,7 @@ function Month(props) {
41
41
  }, /*#__PURE__*/React.createElement("span", {
42
42
  className: modules_0c7b7d96.monthTitle
43
43
  }, format(props.month, 'LLLL', {
44
- locale: locale
44
+ locale
45
45
  })), days.map(function (date) {
46
46
  return /*#__PURE__*/React.createElement(Day, _extends({}, props, {
47
47
  day: date,
@@ -1,5 +1,4 @@
1
1
  import { f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.number.constructor.js';
3
2
  import 'core-js/modules/es.array.map.js';
4
3
  import React, { useMemo, useRef, useEffect } from 'react';
5
4
  import PropTypes from 'prop-types';
@@ -1,4 +1,3 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
1
  import 'core-js/modules/es.array.map.js';
3
2
  import 'core-js/modules/es.object.values.js';
4
3
  import 'core-js/modules/es.array.includes.js';
@@ -24,10 +23,12 @@ function Weekdays(props) {
24
23
  className: modules_0c7b7d96.weekdays
25
24
  }, days.map(function (day) {
26
25
  return /*#__PURE__*/React.createElement("span", {
27
- className: classNames(modules_0c7b7d96.weekday, _defineProperty({}, modules_0c7b7d96.weekend, [weekdays.SA, weekdays.SU].includes(getDay(day)))),
26
+ className: classNames(modules_0c7b7d96.weekday, {
27
+ [modules_0c7b7d96.weekend]: [weekdays.SA, weekdays.SU].includes(getDay(day))
28
+ }),
28
29
  key: +day
29
30
  }, format(day, 'EEEEEE', {
30
- locale: locale
31
+ locale
31
32
  }));
32
33
  }));
33
34
  }
@@ -1,6 +1,5 @@
1
1
  import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
- import 'core-js/modules/es.number.constructor.js';
4
3
  import 'core-js/modules/es.array.map.js';
5
4
  import React, { createRef, PureComponent } from 'react';
6
5
  import PropTypes from 'prop-types';
@@ -110,11 +109,13 @@ var Years = /*#__PURE__*/function (_PureComponent) {
110
109
  top: Math.floor(calHeight * HALF - pxToDate.x(Number(date)))
111
110
  }
112
111
  }, years.map(function (item) {
113
- var _classNames;
114
112
  return /*#__PURE__*/React.createElement("button", {
115
113
  type: "button",
116
114
  key: +item,
117
- className: classNames(modules_0c7b7d96.year, (_classNames = {}, _defineProperty(_classNames, modules_0c7b7d96.currentYear, isSameYear(item, date)), _defineProperty(_classNames, modules_0c7b7d96.today, isThisYear(item)), _classNames)),
115
+ className: classNames(modules_0c7b7d96.year, {
116
+ [modules_0c7b7d96.currentYear]: isSameYear(item, date),
117
+ [modules_0c7b7d96.today]: isThisYear(item)
118
+ }),
118
119
  onClick: function handleClick() {
119
120
  onScrollChange(Number(_setYear(scrollDate, getYear(item))));
120
121
  }