@jetbrains/ring-ui 5.0.0-beta.7 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/components/alert/alert.css +2 -1
  3. package/components/alert-service/alert-service.js +1 -1
  4. package/components/analytics/analytics__ga-plugin.d.ts +1 -1
  5. package/components/analytics/analytics__ga-plugin.js +12 -3
  6. package/components/auth/auth__core.js +5 -1
  7. package/components/auth-dialog-service/auth-dialog-service.js +1 -1
  8. package/components/avatar/avatar.d.ts +1 -0
  9. package/components/avatar/fallback-avatar.js +2 -2
  10. package/components/button/button.css +4 -4
  11. package/components/button/button.d.ts +2 -1
  12. package/components/button-group/button-group.css +4 -2
  13. package/components/checkbox/checkbox.css +8 -12
  14. package/components/checkbox/checkbox.js +1 -1
  15. package/components/checkbox-ng/checkbox-ng.js +1 -1
  16. package/components/confirm-service/confirm-service.js +1 -1
  17. package/components/data-list/data-list.d.ts +4 -8
  18. package/components/date-picker/date-picker.css +1 -0
  19. package/components/date-picker/date-popup.js +0 -1
  20. package/components/dialog/dialog.d.ts +1 -1
  21. package/components/dropdown/dropdown.d.ts +2 -2
  22. package/components/global/angular-component-factory.js +1 -1
  23. package/components/global/promise-with-timeout.d.ts +2 -1
  24. package/components/global/promise-with-timeout.js +5 -2
  25. package/components/global/react-render-adapter.d.ts +29 -0
  26. package/components/global/react-render-adapter.js +36 -0
  27. package/components/global/rerender-hoc.d.ts +5 -9
  28. package/components/global/rerender-hoc.js +4 -2
  29. package/components/global/theme.js +11 -4
  30. package/components/global/variables.css +0 -1
  31. package/components/global/variables.d.ts +0 -1
  32. package/components/global/variables_dark.css +1 -2
  33. package/components/header/header.css +2 -2
  34. package/components/header/profile.d.ts +3 -3
  35. package/components/input/input.css +9 -2
  36. package/components/input/input.d.ts +3 -1
  37. package/components/input/input.js +1 -1
  38. package/components/island/adaptive-island-hoc.d.ts +4 -8
  39. package/components/island/content.d.ts +33 -2
  40. package/components/island/content.js +5 -4
  41. package/components/island/island.d.ts +4 -8
  42. package/components/link/clickableLink.d.ts +1 -1
  43. package/components/link/link.css +0 -2
  44. package/components/link/link.d.ts +14 -22
  45. package/components/link/link.js +2 -2
  46. package/components/list/consts.d.ts +3 -1
  47. package/components/list/list.css +1 -0
  48. package/components/list/list.d.ts +2 -0
  49. package/components/list/list.js +12 -13
  50. package/components/list/list__link.js +2 -2
  51. package/components/login-dialog/service.js +1 -1
  52. package/components/message/message.css +12 -26
  53. package/components/message/message.js +27 -14
  54. package/components/popup/popup.d.ts +7 -1
  55. package/components/popup/popup.js +4 -3
  56. package/components/popup/popup.target.d.ts +1 -1
  57. package/components/popup/position.d.ts +1 -1
  58. package/components/popup/position.js +2 -2
  59. package/components/popup-menu/popup-menu.d.ts +1 -0
  60. package/components/query-assist/query-assist.d.ts +5 -9
  61. package/components/query-assist/query-assist.js +2 -2
  62. package/components/radio/radio.d.ts +1 -1
  63. package/components/select/select-popup.css +5 -1
  64. package/components/select/select.css +4 -1
  65. package/components/select/select.d.ts +12 -14
  66. package/components/select/select.js +20 -17
  67. package/components/select/select__popup.d.ts +4 -1
  68. package/components/select/select__popup.js +4 -3
  69. package/components/select-ng/select-ng.js +16 -5
  70. package/components/select-ng/select-ng__lazy.js +19 -8
  71. package/components/select-ng/select-ng__lazy.test.js +3 -1
  72. package/components/shortcuts/shortcuts-hoc.d.ts +4 -8
  73. package/components/shortcuts/shortcuts.d.ts +1 -1
  74. package/components/tab-trap/tab-trap.d.ts +1 -1
  75. package/components/table/disable-hover-hoc.d.ts +4 -8
  76. package/components/table/header.d.ts +8 -1
  77. package/components/table/row-with-focus-sensor.d.ts +4 -4
  78. package/components/table/row-with-focus-sensor.js +4 -4
  79. package/components/table/row.d.ts +1 -0
  80. package/components/table/smart-table.d.ts +1 -0
  81. package/components/table/smart-table.js +7 -3
  82. package/components/table/table.d.ts +4 -8
  83. package/components/tabs/collapsible-more.js +2 -2
  84. package/components/tabs/collapsible-tabs.d.ts +2 -2
  85. package/components/tabs/collapsible-tabs.js +1 -1
  86. package/components/tabs/custom-item.d.ts +1 -1
  87. package/components/tabs/dumb-tabs.d.ts +2 -2
  88. package/components/tabs/smart-tabs.d.ts +4 -4
  89. package/components/tabs/smart-tabs.js +9 -3
  90. package/components/tabs/tab-link.d.ts +1 -1
  91. package/components/tabs/tab.d.ts +1 -1
  92. package/components/tabs/tabs.css +10 -1
  93. package/components/tag/tag.css +1 -1
  94. package/components/tag/tag.js +1 -2
  95. package/components/tags-input/tags-input.d.ts +4 -8
  96. package/components/tags-list/tags-list.d.ts +1 -1
  97. package/components/tooltip-ng/tooltip-ng.js +13 -10
  98. package/components/user-agreement/service.d.ts +14 -62
  99. package/components/user-agreement/service.js +1 -1
  100. package/dist/_helpers/anchor.js +1 -1
  101. package/dist/_helpers/badge.js +1 -1
  102. package/dist/_helpers/button-group.js +1 -1
  103. package/dist/_helpers/button-set.js +1 -1
  104. package/dist/_helpers/button-toolbar.js +1 -1
  105. package/dist/_helpers/button__classes.js +2 -2
  106. package/dist/_helpers/card.js +1 -1
  107. package/dist/_helpers/checkbox.js +1 -1
  108. package/dist/_helpers/date-picker.js +1 -1
  109. package/dist/_helpers/dialog__body-scroll-preventer.js +3 -2
  110. package/dist/_helpers/error-message.js +1 -1
  111. package/dist/_helpers/footer.js +1 -1
  112. package/dist/_helpers/grid.js +1 -1
  113. package/dist/_helpers/group.js +1 -1
  114. package/dist/_helpers/header.js +1 -1
  115. package/dist/_helpers/icon.js +1 -1
  116. package/dist/_helpers/input.js +1 -1
  117. package/dist/_helpers/island.js +1 -1
  118. package/dist/_helpers/link.js +1 -1
  119. package/dist/_helpers/list.js +1 -1
  120. package/dist/_helpers/loader-inline.js +1 -1
  121. package/dist/_helpers/loader-screen.js +1 -1
  122. package/dist/_helpers/panel.js +1 -1
  123. package/dist/_helpers/query-assist__suggestions.js +1 -1
  124. package/dist/_helpers/radio.js +1 -1
  125. package/dist/_helpers/select__filter.js +2 -1
  126. package/dist/_helpers/services-link.js +2 -2
  127. package/dist/_helpers/sidebar.js +3 -2
  128. package/dist/_helpers/table.js +1 -1
  129. package/dist/_helpers/tabs.js +1 -1
  130. package/dist/_helpers/theme.js +12 -7
  131. package/dist/_helpers/title.js +2 -1
  132. package/dist/alert/alert.js +15 -3
  133. package/dist/alert/container.js +1 -1
  134. package/dist/alert-service/alert-service.js +14 -1
  135. package/dist/analytics/analytics.js +4 -3
  136. package/dist/analytics/analytics__custom-plugin.js +2 -1
  137. package/dist/analytics/analytics__fus-plugin.js +1 -0
  138. package/dist/analytics/analytics__ga-plugin.d.ts +1 -1
  139. package/dist/analytics/analytics__ga-plugin.js +16 -7
  140. package/dist/analytics/analytics__plugin-utils.js +4 -3
  141. package/dist/analytics-ng/analytics-ng.js +3 -2
  142. package/dist/auth/auth.js +13 -0
  143. package/dist/auth/auth__core.js +29 -12
  144. package/dist/auth/background-flow.js +2 -1
  145. package/dist/auth/down-notification.js +14 -1
  146. package/dist/auth/iframe-flow.js +3 -0
  147. package/dist/auth/landing.js +17 -4
  148. package/dist/auth/request-builder.js +1 -0
  149. package/dist/auth/response-parser.js +1 -0
  150. package/dist/auth/storage.js +13 -0
  151. package/dist/auth/token-validator.js +2 -0
  152. package/dist/auth/window-flow.js +2 -1
  153. package/dist/auth-dialog/auth-dialog.js +4 -2
  154. package/dist/auth-dialog-service/auth-dialog-service.js +4 -1
  155. package/dist/auth-ng/auth-ng.js +14 -1
  156. package/dist/autofocus-ng/autofocus-ng.js +1 -0
  157. package/dist/avatar/avatar-example-datauri.js +1 -23
  158. package/dist/avatar/avatar.d.ts +1 -0
  159. package/dist/avatar/avatar.js +5 -3
  160. package/dist/avatar/fallback-avatar.js +6 -5
  161. package/dist/avatar-editor-ng/avatar-editor-ng.js +13 -0
  162. package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
  163. package/dist/avatar-ng/avatar-ng.js +3 -0
  164. package/dist/badge/badge.js +1 -0
  165. package/dist/badge-ng/badge-ng.js +2 -0
  166. package/dist/breadcrumb-ng/breadcrumb-ng.js +4 -28
  167. package/dist/button/button.d.ts +2 -1
  168. package/dist/button/button.js +2 -0
  169. package/dist/button-group-ng/button-group-ng.js +2 -1
  170. package/dist/button-ng/button-ng.js +5 -11
  171. package/dist/button-set-ng/button-set-ng.js +1 -1
  172. package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -0
  173. package/dist/caret/caret.js +2 -0
  174. package/dist/checkbox/checkbox.js +3 -1
  175. package/dist/checkbox-ng/checkbox-ng.js +4 -21
  176. package/dist/code/code.js +4 -3
  177. package/dist/confirm/confirm.js +3 -1
  178. package/dist/confirm-ng/confirm-ng.js +3 -0
  179. package/dist/confirm-service/confirm-service.js +4 -1
  180. package/dist/content-layout/content-layout.js +1 -0
  181. package/dist/content-layout/sidebar.js +1 -0
  182. package/dist/data-list/data-list.d.ts +4 -8
  183. package/dist/data-list/data-list.js +3 -1
  184. package/dist/data-list/data-list.mock.js +1 -0
  185. package/dist/data-list/item.js +3 -1
  186. package/dist/data-list/selection.js +1 -0
  187. package/dist/data-list/title.js +3 -1
  188. package/dist/data-list-ng/data-list-ng.js +4 -1
  189. package/dist/date-picker/consts.js +1 -1
  190. package/dist/date-picker/date-input.js +4 -2
  191. package/dist/date-picker/date-picker.js +10 -8
  192. package/dist/date-picker/date-popup.js +4 -3
  193. package/dist/date-picker/day.js +1 -0
  194. package/dist/date-picker/month-names.js +1 -0
  195. package/dist/date-picker/month-slider.js +1 -0
  196. package/dist/date-picker/month.js +1 -0
  197. package/dist/date-picker/months.js +1 -0
  198. package/dist/date-picker/years.js +1 -0
  199. package/dist/dialog/dialog.d.ts +1 -1
  200. package/dist/dialog/dialog.js +2 -0
  201. package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
  202. package/dist/dialog-ng/dialog-ng.js +7 -4
  203. package/dist/dialog-ng/dialog-ng__template.js +1 -70
  204. package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
  205. package/dist/dropdown/anchor.js +2 -0
  206. package/dist/dropdown/dropdown.d.ts +2 -2
  207. package/dist/dropdown/dropdown.js +2 -0
  208. package/dist/dropdown-menu/dropdown-menu.js +4 -2
  209. package/dist/error-bubble/error-bubble.js +3 -1
  210. package/dist/error-message/error-message.js +3 -1
  211. package/dist/error-message-ng/error-message-ng.js +3 -21
  212. package/dist/footer/footer.js +1 -0
  213. package/dist/footer-ng/footer-ng.js +3 -14
  214. package/dist/form-ng/form-ng.js +2 -4
  215. package/dist/global/angular-component-factory.js +8 -6
  216. package/dist/global/create-stateful-context.js +3 -2
  217. package/dist/global/data-tests.js +2 -0
  218. package/dist/global/dom.js +1 -0
  219. package/dist/global/focus-sensor-hoc.js +1 -0
  220. package/dist/global/fuzzy-highlight.js +1 -1
  221. package/dist/global/inject-styles.js +5 -7
  222. package/dist/global/listeners.js +1 -0
  223. package/dist/global/memoize.js +2 -0
  224. package/dist/global/normalize-indent.js +2 -0
  225. package/dist/global/promise-with-timeout.d.ts +2 -1
  226. package/dist/global/promise-with-timeout.js +6 -2
  227. package/dist/global/react-dom-renderer.js +1 -0
  228. package/dist/global/react-render-adapter.d.ts +29 -0
  229. package/dist/global/react-render-adapter.js +41 -0
  230. package/dist/global/rerender-hoc.d.ts +5 -9
  231. package/dist/global/rerender-hoc.js +7 -3
  232. package/dist/global/theme.js +15 -0
  233. package/dist/global/trivial-template-tag.js +2 -0
  234. package/dist/global/url.js +3 -1
  235. package/dist/global/variables.d.ts +0 -1
  236. package/dist/grid/col.js +2 -1
  237. package/dist/grid/grid.js +1 -0
  238. package/dist/grid/row.js +1 -1
  239. package/dist/group-ng/group-ng.js +1 -1
  240. package/dist/header/header.js +18 -14
  241. package/dist/header/logo.js +2 -0
  242. package/dist/header/profile.d.ts +3 -3
  243. package/dist/header/profile.js +3 -1
  244. package/dist/header/services-link.js +1 -0
  245. package/dist/header/services.js +2 -0
  246. package/dist/header/smart-profile.js +17 -13
  247. package/dist/header/smart-services.js +14 -11
  248. package/dist/header/tray-icon.js +2 -0
  249. package/dist/heading/heading.js +3 -3
  250. package/dist/http/http.js +4 -2
  251. package/dist/http/http.mock.js +2 -0
  252. package/dist/hub-source/hub-source.js +1 -1
  253. package/dist/hub-source/hub-source__user.js +4 -2
  254. package/dist/hub-source/hub-source__users-groups.js +3 -2
  255. package/dist/icon/icon.js +3 -3
  256. package/dist/icon/icon__svg.js +2 -0
  257. package/dist/icon/index.js +2 -0
  258. package/dist/icon-ng/icon-ng.js +7 -5
  259. package/dist/input/input.d.ts +3 -1
  260. package/dist/input/input.js +5 -3
  261. package/dist/input-ng/input-ng.js +6 -59
  262. package/dist/island/adaptive-island-hoc.d.ts +4 -8
  263. package/dist/island/adaptive-island-hoc.js +4 -3
  264. package/dist/island/content.d.ts +33 -2
  265. package/dist/island/content.js +8 -4
  266. package/dist/island/header.js +3 -2
  267. package/dist/island/island.d.ts +4 -8
  268. package/dist/island/island.js +1 -0
  269. package/dist/island-ng/island-content-ng.js +2 -16
  270. package/dist/island-ng/island-header-ng.js +2 -8
  271. package/dist/island-ng/island-ng-class-fixer.js +2 -0
  272. package/dist/island-ng/island-ng.js +2 -8
  273. package/dist/link/clickableLink.d.ts +1 -1
  274. package/dist/link/clickableLink.js +1 -0
  275. package/dist/link/link.d.ts +14 -22
  276. package/dist/link/link.js +5 -4
  277. package/dist/link-ng/link-ng.js +1 -4
  278. package/dist/list/consts.d.ts +3 -1
  279. package/dist/list/list.d.ts +2 -0
  280. package/dist/list/list.js +30 -23
  281. package/dist/list/list__custom.js +1 -0
  282. package/dist/list/list__item.js +6 -4
  283. package/dist/list/list__link.js +3 -1
  284. package/dist/list/list__users-groups-source.js +4 -2
  285. package/dist/loader/loader.js +1 -0
  286. package/dist/loader/loader__core.js +5 -4
  287. package/dist/loader-inline/loader-inline.js +1 -0
  288. package/dist/loader-inline-ng/loader-inline-ng.js +1 -1
  289. package/dist/loader-ng/loader-ng.js +1 -0
  290. package/dist/loader-screen/loader-screen.js +1 -0
  291. package/dist/loader-screen-ng/loader-screen-ng.js +2 -6
  292. package/dist/login-dialog/login-dialog.js +3 -1
  293. package/dist/login-dialog/service.js +4 -1
  294. package/dist/markdown/code.js +1 -0
  295. package/dist/markdown/link.js +1 -0
  296. package/dist/markdown/markdown.js +2 -1
  297. package/dist/message/message.js +39 -33
  298. package/dist/old-browsers-message/old-browsers-message.js +2 -1
  299. package/dist/old-browsers-message/old-browsers-message__stop.js +1 -0
  300. package/dist/old-browsers-message/white-list.js +1 -0
  301. package/dist/pager/pager.js +7 -4
  302. package/dist/pager-ng/pager-ng.js +5 -2
  303. package/dist/panel-ng/panel-ng.js +1 -0
  304. package/dist/permissions/permissions.js +1 -1
  305. package/dist/permissions-ng/permissions-ng.js +14 -1
  306. package/dist/place-under-ng/place-under-ng.js +3 -2
  307. package/dist/popup/popup.d.ts +7 -1
  308. package/dist/popup/popup.js +11 -7
  309. package/dist/popup/popup.target.d.ts +1 -1
  310. package/dist/popup/position.d.ts +1 -1
  311. package/dist/popup/position.js +3 -2
  312. package/dist/popup-menu/popup-menu.d.ts +1 -0
  313. package/dist/popup-menu/popup-menu.js +3 -1
  314. package/dist/progress-bar/progress-bar.js +3 -2
  315. package/dist/progress-bar-ng/progress-bar-ng.js +2 -0
  316. package/dist/promised-click-ng/promised-click-ng.js +2 -0
  317. package/dist/proxy-attrs/proxy-attrs.js +5 -3
  318. package/dist/query-assist/query-assist.d.ts +5 -9
  319. package/dist/query-assist/query-assist.js +9 -5
  320. package/dist/query-assist/query-assist__suggestions.js +3 -1
  321. package/dist/query-assist-ng/query-assist-ng.js +7 -3
  322. package/dist/radio/radio.d.ts +1 -1
  323. package/dist/radio/radio.js +1 -0
  324. package/dist/radio/radio__item.js +1 -0
  325. package/dist/radio-ng/radio-ng.js +2 -18
  326. package/dist/save-field-ng/save-field-ng.js +3 -1
  327. package/dist/save-field-ng/save-field-ng__template.js +1 -32
  328. package/dist/select/select.d.ts +12 -14
  329. package/dist/select/select.js +33 -22
  330. package/dist/select/select__filter.js +4 -2
  331. package/dist/select/select__popup.d.ts +4 -1
  332. package/dist/select/select__popup.js +9 -4
  333. package/dist/select-ng/select-ng.js +23 -8
  334. package/dist/select-ng/select-ng__lazy.js +30 -12
  335. package/dist/select-ng/select-ng__options.js +2 -2
  336. package/dist/shortcuts/shortcuts-hoc.d.ts +4 -8
  337. package/dist/shortcuts/shortcuts-hoc.js +4 -3
  338. package/dist/shortcuts/shortcuts.d.ts +1 -1
  339. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +3 -0
  340. package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +1 -48
  341. package/dist/shortcuts-ng/shortcuts-ng.js +4 -3
  342. package/dist/sidebar-ng/sidebar-ng.js +2 -0
  343. package/dist/sidebar-ng/sidebar-ng__button-template.js +1 -18
  344. package/dist/sidebar-ng/sidebar-ng__template.js +1 -10
  345. package/dist/storage/storage.js +13 -0
  346. package/dist/storage/storage__fallback.js +4 -3
  347. package/dist/storage/storage__local.js +13 -0
  348. package/dist/style.css +1 -1
  349. package/dist/tab-trap/tab-trap.d.ts +1 -1
  350. package/dist/tab-trap/tab-trap.js +2 -1
  351. package/dist/table/cell.js +1 -0
  352. package/dist/table/disable-hover-hoc.d.ts +4 -8
  353. package/dist/table/disable-hover-hoc.js +4 -3
  354. package/dist/table/header-cell.js +2 -0
  355. package/dist/table/header.d.ts +8 -1
  356. package/dist/table/header.js +3 -1
  357. package/dist/table/multitable.js +1 -0
  358. package/dist/table/row-with-focus-sensor.d.ts +4 -4
  359. package/dist/table/row-with-focus-sensor.js +15 -5
  360. package/dist/table/row.d.ts +1 -0
  361. package/dist/table/row.js +4 -2
  362. package/dist/table/selection-adapter.js +2 -0
  363. package/dist/table/selection-shortcuts-hoc.js +1 -0
  364. package/dist/table/selection.js +1 -0
  365. package/dist/table/smart-table.d.ts +1 -0
  366. package/dist/table/smart-table.js +13 -7
  367. package/dist/table/table.d.ts +4 -8
  368. package/dist/table/table.js +3 -1
  369. package/dist/table-legacy-ng/table-legacy-ng.js +13 -47
  370. package/dist/table-legacy-ng/table-legacy-ng__pager.js +6 -9
  371. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
  372. package/dist/table-ng/smart-table-ng.js +4 -1
  373. package/dist/table-ng/table-ng.js +4 -1
  374. package/dist/tabs/collapsible-more.js +4 -2
  375. package/dist/tabs/collapsible-tab.js +1 -0
  376. package/dist/tabs/collapsible-tabs.d.ts +2 -2
  377. package/dist/tabs/collapsible-tabs.js +3 -1
  378. package/dist/tabs/custom-item.d.ts +1 -1
  379. package/dist/tabs/dumb-tabs.d.ts +2 -2
  380. package/dist/tabs/dumb-tabs.js +3 -1
  381. package/dist/tabs/smart-tabs.d.ts +4 -4
  382. package/dist/tabs/smart-tabs.js +10 -6
  383. package/dist/tabs/tab-link.d.ts +1 -1
  384. package/dist/tabs/tab-link.js +1 -0
  385. package/dist/tabs/tab.d.ts +1 -1
  386. package/dist/tabs/tab.js +1 -0
  387. package/dist/tabs/tabs.js +3 -1
  388. package/dist/tabs-ng/tabs-ng.js +1 -0
  389. package/dist/tabs-ng/tabs-ng__template.js +1 -38
  390. package/dist/tag/tag.js +4 -3
  391. package/dist/tags-input/tags-input.d.ts +4 -8
  392. package/dist/tags-input/tags-input.js +6 -3
  393. package/dist/tags-input-ng/tags-input-ng.js +5 -2
  394. package/dist/tags-list/tags-list.d.ts +1 -1
  395. package/dist/tags-list/tags-list.js +3 -1
  396. package/dist/template-ng/template-ng.js +1 -0
  397. package/dist/text/text.js +1 -1
  398. package/dist/theme-ng/theme-ng.js +1 -0
  399. package/dist/toggle/toggle.js +2 -1
  400. package/dist/toggle-ng/toggle-ng.js +2 -0
  401. package/dist/tooltip/tooltip.js +3 -1
  402. package/dist/tooltip-ng/tooltip-ng.js +12 -6
  403. package/dist/user-agreement/service.d.ts +14 -62
  404. package/dist/user-agreement/service.js +14 -8
  405. package/dist/user-agreement/toolbox.eula.js +1 -160
  406. package/dist/user-agreement/user-agreement.js +3 -1
  407. package/dist/user-card/card.js +2 -0
  408. package/dist/user-card/smart-user-card-tooltip.js +2 -0
  409. package/dist/user-card/tooltip.js +2 -0
  410. package/dist/user-card/user-card.js +2 -0
  411. package/dist/user-card-ng/user-card-ng.js +3 -0
  412. package/package.json +74 -66
@@ -1,4 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
+ import 'core-js/modules/es.string.replace.js';
2
4
  import { getAbsoluteBaseURL, fixUrl } from '../global/url.js';
3
5
  import Listeners from '../global/listeners.js';
4
6
  import HTTP from '../http/http.js';
@@ -13,6 +15,7 @@ import '../storage/storage.js';
13
15
  import '../storage/storage__local.js';
14
16
  import '../alert-service/alert-service.js';
15
17
  import 'react';
18
+ import '../global/react-render-adapter.js';
16
19
  import 'react-dom';
17
20
  import '../global/get-uid.js';
18
21
  import '../alert/alert.js';
@@ -40,6 +43,16 @@ import '../global/controls-height.js';
40
43
  import '../_helpers/button__classes.js';
41
44
  import '../_helpers/theme.js';
42
45
  import '../popup/popup.target.js';
46
+ import '../popup/popup.js';
47
+ import '../global/schedule-raf.js';
48
+ import '../shortcuts/shortcuts.js';
49
+ import '../shortcuts/core.js';
50
+ import 'combokeys';
51
+ import '../global/sniffer.js';
52
+ import 'sniffr';
53
+ import '../tab-trap/tab-trap.js';
54
+ import '../popup/position.js';
55
+ import '../popup/popup.consts.js';
43
56
  import '../alert/container.js';
44
57
  import '../storage/storage__fallback.js';
45
58
  import 'deep-equal';
@@ -145,7 +158,7 @@ class Auth {
145
158
  const unsupportedParams = ['redirect_uri', 'request_credentials', 'client_id'].filter(param => config.hasOwnProperty(param));
146
159
 
147
160
  if (unsupportedParams.length !== 0) {
148
- throw new Error(`The following parameters are no longer supported: ${unsupportedParams.join(', ')}. Please change them from snake_case to camelCase.`);
161
+ throw new Error("The following parameters are no longer supported: ".concat(unsupportedParams.join(', '), ". Please change them from snake_case to camelCase."));
149
162
  }
150
163
 
151
164
  config.userFields = config.userFields || [];
@@ -176,10 +189,10 @@ class Auth {
176
189
  }
177
190
 
178
191
  this._storage = new AuthStorage({
179
- messagePrefix: `${clientId}-message-`,
180
- stateKeyPrefix: `${clientId}-states-`,
181
- tokenKey: `${clientId}-token`,
182
- userKey: `${clientId}-user-`
192
+ messagePrefix: "".concat(clientId, "-message-"),
193
+ stateKeyPrefix: "".concat(clientId, "-states-"),
194
+ tokenKey: "".concat(clientId, "-token"),
195
+ userKey: "".concat(clientId, "-user-")
183
196
  });
184
197
  this._domainStorage = new AuthStorage({
185
198
  messagePrefix: 'domain-message-'
@@ -364,7 +377,7 @@ class Auth {
364
377
  // Check if there is a valid token
365
378
  await ((_this$_tokenValidator = this._tokenValidator) === null || _this$_tokenValidator === void 0 ? void 0 : _this$_tokenValidator.validateToken()); // Checking if there is a message left by another app on this domain
366
379
 
367
- const message = await this._domainStorage._messagesStorage.get(`domain-message-${DOMAIN_USER_CHANGED_EVENT}`);
380
+ const message = await this._domainStorage._messagesStorage.get("domain-message-".concat(DOMAIN_USER_CHANGED_EVENT));
368
381
 
369
382
  if (message) {
370
383
  var _this$user;
@@ -571,7 +584,7 @@ class Auth {
571
584
  const {
572
585
  serviceName,
573
586
  iconUrl: serviceImage
574
- } = (await this.http.get(`oauth2/interactive/login/settings?client_id=${this.config.clientId}`)) || {};
587
+ } = (await this.http.get("oauth2/interactive/login/settings?client_id=".concat(this.config.clientId))) || {};
575
588
  this.setCurrentService({
576
589
  serviceImage,
577
590
  serviceName
@@ -823,7 +836,7 @@ class Auth {
823
836
  // https://www.jetbrains.com/help/youtrack/devportal/OAuth-2.0-Errors.html
824
837
  if ('code' in error && error.code && typeof error.code === 'object' && 'code' in error.code && typeof error.code.code === 'string') {
825
838
  const readableCode = error.code.code.split('_').join(' ');
826
- return `Authorization error: ${readableCode}`;
839
+ return "Authorization error: ".concat(readableCode);
827
840
  }
828
841
  } catch {// noop
829
842
  }
@@ -1039,11 +1052,15 @@ class Auth {
1039
1052
  }
1040
1053
 
1041
1054
  _checkBackendsAreUp() {
1055
+ const abortCtrl = new AbortController();
1042
1056
  const {
1043
1057
  backendCheckTimeout
1044
1058
  } = this.config;
1045
- return Promise.all([promiseWithTimeout(this.http.fetch('settings/public?fields=id'), backendCheckTimeout, {
1046
- error: new Error('The authorization server is taking too long to respond. Please try again later.')
1059
+ return Promise.all([promiseWithTimeout(this.http.fetch('settings/public?fields=id', {
1060
+ signal: abortCtrl.signal
1061
+ }), backendCheckTimeout, {
1062
+ error: new Error('The authorization server is taking too long to respond. Please try again later.'),
1063
+ onTimeout: () => abortCtrl.abort()
1047
1064
  }), this.config.checkBackendIsUp()]).catch(err => {
1048
1065
  if (err instanceof TypeError) {
1049
1066
  throw new TypeError('Could not connect to the server due to network error. Please check your connection and try again.');
@@ -1118,8 +1135,8 @@ class Auth {
1118
1135
  // NB! URL to redirect is formed manually because baseURI could be messed up,
1119
1136
  // in which case it's not obvious where redirect will lead.
1120
1137
  const cleanedUrl = [window.location.pathname, window.location.search].join('');
1121
- const hashIfExist = hash ? `#${hash}` : '';
1122
- history.replaceState(undefined, '', `${cleanedUrl}${hashIfExist}`);
1138
+ const hashIfExist = hash ? "#".concat(hash) : '';
1139
+ history.replaceState(undefined, '', "".concat(cleanedUrl).concat(hashIfExist));
1123
1140
  } else {
1124
1141
  window.location.hash = hash;
1125
1142
  }
@@ -1,5 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import AuthResponseParser from './response-parser.js';
3
+ import 'core-js/modules/es.string.replace.js';
3
4
  import 'es6-error';
4
5
  import '../global/url.js';
5
6
 
@@ -43,7 +44,7 @@ class BackgroundFlow {
43
44
 
44
45
 
45
46
  _redirectFrame(iframe, url) {
46
- iframe.src = `${url}&rnd=${Math.random()}`;
47
+ iframe.src = "".concat(url, "&rnd=").concat(Math.random());
47
48
  }
48
49
  /**
49
50
  * Refreshes the access token in an iframe.
@@ -5,6 +5,8 @@ import Alert from '../alert/alert.js';
5
5
  import Link from '../link/link.js';
6
6
  import Group from '../group/group.js';
7
7
  import '../_helpers/_rollupPluginBabelHelpers.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
9
+ import '../global/react-render-adapter.js';
8
10
  import 'react-dom';
9
11
  import '../global/get-uid.js';
10
12
  import '../alert/container.js';
@@ -18,6 +20,7 @@ import 'util-deprecate';
18
20
  import '../icon/icon__constants.js';
19
21
  import '../_helpers/icon.js';
20
22
  import '../icon/icon__svg.js';
23
+ import 'core-js/modules/es.string.replace.js';
21
24
  import '../global/memoize.js';
22
25
  import '../loader-inline/loader-inline.js';
23
26
  import '../global/data-tests.js';
@@ -31,10 +34,20 @@ import '../global/controls-height.js';
31
34
  import '../_helpers/button__classes.js';
32
35
  import '../_helpers/theme.js';
33
36
  import '../popup/popup.target.js';
37
+ import '../popup/popup.js';
38
+ import '../global/schedule-raf.js';
39
+ import '../shortcuts/shortcuts.js';
40
+ import '../shortcuts/core.js';
41
+ import 'combokeys';
42
+ import '../global/sniffer.js';
43
+ import 'sniffr';
44
+ import '../tab-trap/tab-trap.js';
45
+ import '../popup/position.js';
46
+ import '../popup/popup.consts.js';
34
47
  import '../_helpers/link.js';
35
48
  import '../_helpers/group.js';
36
49
 
37
- var modules_c87dd562 = {"unit":"8px","title":"title_rui_d971","error":"error_rui_d971"};
50
+ var modules_c87dd562 = {"unit":"8px","title":"title_rui_b890","error":"error_rui_b890"};
38
51
 
39
52
  let key = null;
40
53
 
@@ -3,6 +3,8 @@ import React from 'react';
3
3
  import showAuthDialog from '../login-dialog/service.js';
4
4
  import Link from '../link/link.js';
5
5
  import AuthResponseParser from './response-parser.js';
6
+ import '../global/react-render-adapter.js';
7
+ import 'core-js/modules/web.dom-collections.iterator.js';
6
8
  import 'react-dom';
7
9
  import '../login-dialog/login-dialog.js';
8
10
  import 'prop-types';
@@ -34,6 +36,7 @@ import 'util-deprecate';
34
36
  import '../icon/icon__constants.js';
35
37
  import '../_helpers/icon.js';
36
38
  import '../icon/icon__svg.js';
39
+ import 'core-js/modules/es.string.replace.js';
37
40
  import '../global/memoize.js';
38
41
  import '../link/clickableLink.js';
39
42
  import '../global/controls-height.js';
@@ -6,12 +6,15 @@ import { DEFAULT_EXPIRES_TIMEOUT } from './auth__core.js';
6
6
  import '../_helpers/_rollupPluginBabelHelpers.js';
7
7
  import 'es6-error';
8
8
  import '../http/http.js';
9
+ import 'core-js/modules/web.dom-collections.iterator.js';
9
10
  import '../global/url.js';
11
+ import 'core-js/modules/es.string.replace.js';
10
12
  import './window-flow.js';
11
13
  import './down-notification.js';
12
14
  import 'react';
13
15
  import 'prop-types';
14
16
  import '../alert-service/alert-service.js';
17
+ import '../global/react-render-adapter.js';
15
18
  import 'react-dom';
16
19
  import '../global/get-uid.js';
17
20
  import '../alert/alert.js';
@@ -38,6 +41,16 @@ import '../global/controls-height.js';
38
41
  import '../_helpers/button__classes.js';
39
42
  import '../_helpers/theme.js';
40
43
  import '../popup/popup.target.js';
44
+ import '../popup/popup.js';
45
+ import '../global/schedule-raf.js';
46
+ import '../shortcuts/shortcuts.js';
47
+ import '../shortcuts/core.js';
48
+ import 'combokeys';
49
+ import '../global/sniffer.js';
50
+ import 'sniffr';
51
+ import '../tab-trap/tab-trap.js';
52
+ import '../popup/position.js';
53
+ import '../popup/popup.consts.js';
41
54
  import '../alert/container.js';
42
55
  import '../link/link.js';
43
56
  import '../_helpers/link.js';
@@ -60,10 +73,10 @@ async function parseAndStoreResponse(clientId) {
60
73
  var _this$_storage;
61
74
 
62
75
  const storage = new AuthStorage({
63
- messagePrefix: `${clientId}-message-`,
64
- stateKeyPrefix: `${clientId}-states-`,
65
- tokenKey: `${clientId}-token`,
66
- userKey: `${clientId}-user-`
76
+ messagePrefix: "".concat(clientId, "-message-"),
77
+ stateKeyPrefix: "".concat(clientId, "-states-"),
78
+ tokenKey: "".concat(clientId, "-token"),
79
+ userKey: "".concat(clientId, "-user-")
67
80
  });
68
81
 
69
82
  if (!authResponse) {
@@ -1,6 +1,7 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import uuid from 'simply-uuid';
3
3
  import { encodeURL } from '../global/url.js';
4
+ import 'core-js/modules/es.string.replace.js';
4
5
 
5
6
  class AuthRequestBuilder {
6
7
  /**
@@ -1,4 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/es.string.replace.js';
2
3
  import ExtendableError from 'es6-error';
3
4
  import { parseQueryString } from '../global/url.js';
4
5
 
@@ -1,8 +1,10 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import ActualStorage from '../storage/storage.js';
3
4
  import '../storage/storage__local.js';
4
5
  import '../alert-service/alert-service.js';
5
6
  import 'react';
7
+ import '../global/react-render-adapter.js';
6
8
  import 'react-dom';
7
9
  import '../global/get-uid.js';
8
10
  import '../alert/alert.js';
@@ -17,6 +19,7 @@ import 'util-deprecate';
17
19
  import '../icon/icon__constants.js';
18
20
  import '../_helpers/icon.js';
19
21
  import '../icon/icon__svg.js';
22
+ import 'core-js/modules/es.string.replace.js';
20
23
  import '../global/memoize.js';
21
24
  import '../loader-inline/loader-inline.js';
22
25
  import '../global/data-tests.js';
@@ -30,6 +33,16 @@ import '../global/controls-height.js';
30
33
  import '../_helpers/button__classes.js';
31
34
  import '../_helpers/theme.js';
32
35
  import '../popup/popup.target.js';
36
+ import '../popup/popup.js';
37
+ import '../global/schedule-raf.js';
38
+ import '../shortcuts/shortcuts.js';
39
+ import '../shortcuts/core.js';
40
+ import 'combokeys';
41
+ import '../global/sniffer.js';
42
+ import 'sniffr';
43
+ import '../tab-trap/tab-trap.js';
44
+ import '../popup/position.js';
45
+ import '../popup/popup.consts.js';
33
46
  import '../alert/container.js';
34
47
  import '../storage/storage__fallback.js';
35
48
  import 'deep-equal';
@@ -1,7 +1,9 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import ExtendableError from 'es6-error';
3
3
  import { CODE } from '../http/http.js';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import '../global/url.js';
6
+ import 'core-js/modules/es.string.replace.js';
5
7
 
6
8
  class TokenValidationError extends ExtendableError {
7
9
  constructor(message, cause) {
@@ -1,5 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import AuthResponseParser from './response-parser.js';
3
+ import 'core-js/modules/es.string.replace.js';
3
4
  import 'es6-error';
4
5
  import '../global/url.js';
5
6
 
@@ -54,7 +55,7 @@ class WindowFlow {
54
55
  const screenHalves = 2;
55
56
  const top = (window.screen.height - height - NAVBAR_HEIGHT) / screenHalves;
56
57
  const left = (window.screen.width - width) / screenHalves;
57
- return window.open(url, 'HubLoginWindow', `height=${height}, width=${width}, left=${left}, top=${top}`);
58
+ return window.open(url, 'HubLoginWindow', "height=".concat(height, ", width=").concat(width, ", left=").concat(left, ", top=").concat(top));
58
59
  }
59
60
  /**
60
61
  * Initiates authorization in window
@@ -1,4 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
+ import 'core-js/modules/es.string.replace.js';
2
4
  import React, { Component } from 'react';
3
5
  import PropTypes from 'prop-types';
4
6
  import classNames from 'classnames';
@@ -39,7 +41,7 @@ import '../_helpers/button__classes.js';
39
41
  import 'element-resize-detector';
40
42
  import '../global/schedule-raf.js';
41
43
 
42
- var modules_ae521deb = {"unit":"8px","dialog":"dialog_rui_8f14","content":"content_rui_8f14 font_rui_750f","button":"button_rui_8f14","firstButton":"firstButton_rui_8f14 button_rui_8f14","title":"title_rui_8f14","logo":"logo_rui_8f14","error":"error_rui_8f14"};
44
+ var modules_ae521deb = {"unit":"8px","dialog":"dialog_rui_159b","content":"content_rui_159b font_rui_8bff","button":"button_rui_159b","firstButton":"firstButton_rui_159b button_rui_159b","title":"title_rui_159b","logo":"logo_rui_159b","error":"error_rui_159b"};
43
45
 
44
46
  class AuthDialog extends Component {
45
47
  constructor() {
@@ -115,7 +117,7 @@ class AuthDialog extends Component {
115
117
  }, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("div", {
116
118
  className: modules_ae521deb.content
117
119
  }, serviceImage && /*#__PURE__*/React.createElement("img", {
118
- alt: `${serviceName} logo`,
120
+ alt: "".concat(serviceName, " logo"),
119
121
  className: modules_ae521deb.logo,
120
122
  src: serviceImage
121
123
  }), /*#__PURE__*/React.createElement(H2, {
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
- import { render } from 'react-dom';
2
+ import { render } from '../global/react-render-adapter.js';
3
3
  import AuthDialog from '../auth-dialog/auth-dialog.js';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
5
+ import 'react-dom';
4
6
  import '../_helpers/_rollupPluginBabelHelpers.js';
7
+ import 'core-js/modules/es.string.replace.js';
5
8
  import 'prop-types';
6
9
  import 'classnames';
7
10
  import '../island/island.js';
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/es.string.replace.js';
1
2
  import angular from 'angular';
2
3
  import '../auth/auth.js';
3
4
  import Auth from '../auth/auth__core.js';
@@ -10,6 +11,8 @@ import '../auth/down-notification.js';
10
11
  import 'react';
11
12
  import 'prop-types';
12
13
  import '../alert-service/alert-service.js';
14
+ import 'core-js/modules/web.dom-collections.iterator.js';
15
+ import '../global/react-render-adapter.js';
13
16
  import 'react-dom';
14
17
  import '../global/get-uid.js';
15
18
  import '../alert/alert.js';
@@ -36,6 +39,16 @@ import '../global/controls-height.js';
36
39
  import '../_helpers/button__classes.js';
37
40
  import '../_helpers/theme.js';
38
41
  import '../popup/popup.target.js';
42
+ import '../popup/popup.js';
43
+ import '../global/schedule-raf.js';
44
+ import '../shortcuts/shortcuts.js';
45
+ import '../shortcuts/core.js';
46
+ import 'combokeys';
47
+ import '../global/sniffer.js';
48
+ import 'sniffr';
49
+ import '../tab-trap/tab-trap.js';
50
+ import '../popup/position.js';
51
+ import '../popup/popup.consts.js';
39
52
  import '../alert/container.js';
40
53
  import '../link/link.js';
41
54
  import '../_helpers/link.js';
@@ -106,7 +119,7 @@ angularModule.provider('auth', ["$httpProvider", function provider($httpProvider
106
119
 
107
120
  return authInstance.promise.then(() => authInstance.auth.requestToken()).then(accessToken => {
108
121
  if (accessToken) {
109
- config.headers.Authorization = `Bearer ${accessToken}`;
122
+ config.headers.Authorization = "Bearer ".concat(accessToken);
110
123
  }
111
124
 
112
125
  return config;
@@ -1,6 +1,7 @@
1
1
  import angular from 'angular';
2
2
  import { FOCUSABLE_ELEMENTS } from '../tab-trap/tab-trap.js';
3
3
  import '../_helpers/_rollupPluginBabelHelpers.js';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import 'react';
5
6
  import 'prop-types';
6
7
  import '../global/dom.js';
@@ -1,26 +1,4 @@
1
1
  // Taken from https://hub.jetbrains.com/api/rest/avatar/default?username=Jet%20Brains&dpr=2&size=56
2
- const avatarDataUri = `data:image/svg+xml,${encodeURIComponent(`
3
- <svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
4
- <defs>
5
- <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
6
- <stop stop-color="#D50F6B" offset="0"/>
7
- <stop stop-color="#E73AE8" offset="1"/>
8
- </linearGradient>
9
- </defs>
10
- <g>
11
- <rect fill="url(#gradient)"
12
- x="0" y="0" width="40" height="40"
13
- rx="3" ry="3"/>
14
- <text x="5" y="19"
15
- font-family="Arial, Helvetica, sans-serif"
16
- font-size="15px"
17
- letter-spacing="1"
18
- fill="#FFFFFF">
19
- <tspan>JB</tspan>
20
- <tspan x="6" y="28">_</tspan>
21
- </text>
22
- </g>
23
- </svg>
24
- `)}`;
2
+ const avatarDataUri = "data:image/svg+xml,".concat(encodeURIComponent("\n<svg viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\">\n <defs>\n <linearGradient id=\"gradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop stop-color=\"#D50F6B\" offset=\"0\"/>\n <stop stop-color=\"#E73AE8\" offset=\"1\"/>\n </linearGradient>\n </defs>\n <g>\n <rect fill=\"url(#gradient)\"\n x=\"0\" y=\"0\" width=\"40\" height=\"40\"\n rx=\"3\" ry=\"3\"/>\n <text x=\"5\" y=\"19\"\n font-family=\"Arial, Helvetica, sans-serif\"\n font-size=\"15px\"\n letter-spacing=\"1\"\n fill=\"#FFFFFF\">\n <tspan>JB</tspan>\n <tspan x=\"6\" y=\"28\">_</tspan>\n </text>\n </g>\n</svg>\n"));
25
3
 
26
4
  export { avatarDataUri };
@@ -49,3 +49,4 @@ export default class Avatar extends PureComponent<AvatarProps> {
49
49
  handleSuccess: () => void;
50
50
  render(): JSX.Element;
51
51
  }
52
+ export declare type AvatarAttrs = JSX.LibraryManagedAttributes<typeof Avatar, AvatarProps>;
@@ -1,13 +1,15 @@
1
1
  import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { PureComponent } from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import classNames from 'classnames';
5
6
  import { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
6
7
  import { getPixelRatio } from '../global/dom.js';
7
8
  import FallbackAvatar from './fallback-avatar.js';
9
+ import 'core-js/modules/es.string.replace.js';
8
10
  import '../global/get-uid.js';
9
11
 
10
- var modules_61ca8c75 = {"avatar":"avatar_rui_f546","subavatar":"subavatar_rui_f546","empty":"empty_rui_f546"};
12
+ var modules_61ca8c75 = {"avatar":"avatar_rui_a03e","subavatar":"subavatar_rui_a03e","empty":"empty_rui_a03e"};
11
13
 
12
14
  /**
13
15
  * @name Avatar
@@ -60,8 +62,8 @@ class Avatar extends PureComponent {
60
62
  skipParams,
61
63
  ...restProps
62
64
  } = this.props;
63
- const sizeString = `${size}px`;
64
- const subavatarSizeString = `${subavatarSize}px`;
65
+ const sizeString = "".concat(size, "px");
66
+ const subavatarSizeString = "".concat(subavatarSize, "px");
65
67
  const borderRadius = size <= Size.Size18 ? 'var(--ring-border-radius-small)' : 'var(--ring-border-radius)';
66
68
  const styleObj = {
67
69
  borderRadius: round ? '50%' : borderRadius,
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import React, { useMemo } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import getUID from '../global/get-uid.js';
@@ -55,15 +56,15 @@ const Sizes = {
55
56
  const sizeKeys = Object.keys(Sizes).map(Number);
56
57
 
57
58
  function extractLetters(name) {
58
- const names = name.split(/[\s._]+/).filter(Boolean);
59
+ const names = name.split(/[\s._]+/).filter(Boolean).map(word => Array.from(word));
59
60
 
60
61
  if (names.length >= 2) {
61
62
  return names[0][0].toUpperCase() + names[1][0].toUpperCase();
62
63
  } else if (names.length === 1) {
63
64
  if (names[0].length >= 2) {
64
- return names[0].slice(0, 2).toUpperCase();
65
+ return names[0].slice(0, 2).join('').toUpperCase();
65
66
  } else {
66
- return `${names[0][0].toUpperCase()}X`;
67
+ return "".concat(names[0][0].toUpperCase(), "X");
67
68
  }
68
69
  } else {
69
70
  return 'XX';
@@ -97,7 +98,7 @@ function FallbackAvatar(_ref) {
97
98
  const radius = round ? '50%' : sizes.radius;
98
99
  const gradientId = useMemo(() => getUID('gradient-'), []);
99
100
  return /*#__PURE__*/React.createElement("svg", {
100
- viewBox: `0 0 ${sizeKey} ${sizeKey}`,
101
+ viewBox: "0 0 ".concat(sizeKey, " ").concat(sizeKey),
101
102
  xmlns: "http://www.w3.org/2000/svg"
102
103
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
103
104
  id: gradientId,
@@ -112,7 +113,7 @@ function FallbackAvatar(_ref) {
112
113
  stopColor: toColor,
113
114
  offset: "1"
114
115
  }))), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
115
- fill: `url(#${gradientId})`,
116
+ fill: "url(#".concat(gradientId, ")"),
116
117
  x: "0",
117
118
  y: "0",
118
119
  width: sizeKey,
@@ -5,7 +5,9 @@ import alertService from '../alert-service/alert-service.js';
5
5
  import IconNG from '../icon-ng/icon-ng.js';
6
6
  import template from './avatar-editor-ng__template.js';
7
7
  import '../_helpers/_rollupPluginBabelHelpers.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
8
9
  import 'react';
10
+ import '../global/react-render-adapter.js';
9
11
  import 'react-dom';
10
12
  import '../global/get-uid.js';
11
13
  import '../alert/alert.js';
@@ -20,6 +22,7 @@ import 'util-deprecate';
20
22
  import '../icon/icon__constants.js';
21
23
  import '../_helpers/icon.js';
22
24
  import '../icon/icon__svg.js';
25
+ import 'core-js/modules/es.string.replace.js';
23
26
  import '../global/memoize.js';
24
27
  import '../loader-inline/loader-inline.js';
25
28
  import '../global/data-tests.js';
@@ -33,6 +36,16 @@ import '../global/controls-height.js';
33
36
  import '../_helpers/button__classes.js';
34
37
  import '../_helpers/theme.js';
35
38
  import '../popup/popup.target.js';
39
+ import '../popup/popup.js';
40
+ import '../global/schedule-raf.js';
41
+ import '../shortcuts/shortcuts.js';
42
+ import '../shortcuts/core.js';
43
+ import 'combokeys';
44
+ import '../global/sniffer.js';
45
+ import 'sniffr';
46
+ import '../tab-trap/tab-trap.js';
47
+ import '../popup/position.js';
48
+ import '../popup/popup.consts.js';
36
49
  import '../alert/container.js';
37
50
  import '../template-ng/template-ng.js';
38
51
  import '../global/ring-angular-component.js';
@@ -1,30 +1,3 @@
1
- var template = `<div>
2
- <div ng-click="!ngDisabled && controls.select()" class="ring-avatar-editor__frame" ng-class="{
3
- 'ring-avatar-editor_controlled': controlled,
4
- 'ring-avatar-editor': !ngDisabled
5
- }" ng-show="model || default">
6
- <img alt="Avatar" class="ring-avatar-editor__img" ng-src="{{ model }}" ng-show="model">
7
- <img alt="Default avatar" class="ring-avatar-editor__img" ng-src="{{ default }}"
8
- ng-show="!model && default" ng-click="!ngDisabled && controls.select()">
9
- <rg-icon glyph="{{editIcon}}" size="16" class="ring-avatar-editor__icon" ng-if="!ngDisabled"></rg-icon>
10
- </div>
11
- <input class="ring-avatar-editor__file-input" rg-avatar-editor-file-input type="file" ng-model="fileInput" accept="image/*" ng-if="!ngDisabled">
12
-
13
- <rg-button
14
- delayed="true"
15
- ng-disabled="ngDisabled"
16
- ng-if="showAddButton && !model && !default"
17
- ng-click="controls.select()"
18
- >{{ getAddMessage() }}</rg-button>
19
-
20
- <rg-button
21
- ng-if="showDeleteButton&& model && !ngDisabled"
22
- danger="true"
23
- class="ring-avatar-editor__remove"
24
- ng-click="controls.remove()"
25
- >
26
- <span translate>{{ getDeleteLabel() }}</span>
27
- </rg-button>
28
- </div>`;
1
+ var template = "<div>\n <div ng-click=\"!ngDisabled && controls.select()\" class=\"ring-avatar-editor__frame\" ng-class=\"{\n 'ring-avatar-editor_controlled': controlled,\n 'ring-avatar-editor': !ngDisabled\n }\" ng-show=\"model || default\">\n <img alt=\"Avatar\" class=\"ring-avatar-editor__img\" ng-src=\"{{ model }}\" ng-show=\"model\">\n <img alt=\"Default avatar\" class=\"ring-avatar-editor__img\" ng-src=\"{{ default }}\"\n ng-show=\"!model && default\" ng-click=\"!ngDisabled && controls.select()\">\n <rg-icon glyph=\"{{editIcon}}\" size=\"16\" class=\"ring-avatar-editor__icon\" ng-if=\"!ngDisabled\"></rg-icon>\n </div>\n <input class=\"ring-avatar-editor__file-input\" rg-avatar-editor-file-input type=\"file\" ng-model=\"fileInput\" accept=\"image/*\" ng-if=\"!ngDisabled\">\n\n <rg-button\n delayed=\"true\"\n ng-disabled=\"ngDisabled\"\n ng-if=\"showAddButton && !model && !default\"\n ng-click=\"controls.select()\"\n >{{ getAddMessage() }}</rg-button>\n\n <rg-button\n ng-if=\"showDeleteButton&& model && !ngDisabled\"\n danger=\"true\"\n class=\"ring-avatar-editor__remove\"\n ng-click=\"controls.remove()\"\n >\n <span translate>{{ getDeleteLabel() }}</span>\n </rg-button>\n</div>";
29
2
 
30
3
  export { template as default };
@@ -1,14 +1,17 @@
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';
4
5
  import 'angular';
5
6
  import 'react';
7
+ import '../global/react-render-adapter.js';
6
8
  import 'react-dom';
7
9
  import '../global/ring-angular-component.js';
8
10
  import '../global/react-dom-renderer.js';
9
11
  import 'prop-types';
10
12
  import 'classnames';
11
13
  import '../global/url.js';
14
+ import 'core-js/modules/es.string.replace.js';
12
15
  import '../global/dom.js';
13
16
  import '../avatar/fallback-avatar.js';
14
17
  import '../global/get-uid.js';
@@ -4,6 +4,7 @@ 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';
7
8
 
8
9
  /**
9
10
  * @name Badge
@@ -1,8 +1,10 @@
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';
4
5
  import 'angular';
5
6
  import 'react';
7
+ import '../global/react-render-adapter.js';
6
8
  import 'react-dom';
7
9
  import '../global/ring-angular-component.js';
8
10
  import '../global/react-dom-renderer.js';