@taiga-ui/core 4.66.0 → 5.0.0-rc.0

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 (654) hide show
  1. package/README.md +1 -1
  2. package/classes/accessors.d.ts +2 -2
  3. package/classes/driver.d.ts +1 -1
  4. package/components/button/button.directive.d.ts +2 -3
  5. package/components/button/button.options.d.ts +1 -1
  6. package/components/calendar/calendar-sheet.component.d.ts +2 -7
  7. package/components/calendar/calendar-sheet.options.d.ts +1 -3
  8. package/{pipes/calendar-sheet → components/calendar}/calendar-sheet.pipe.d.ts +2 -2
  9. package/components/calendar/calendar-spin.component.d.ts +1 -0
  10. package/components/calendar/calendar-year.component.d.ts +1 -1
  11. package/components/calendar/calendar.options.d.ts +9 -0
  12. package/components/calendar/index.d.ts +3 -0
  13. package/{pipes/order-week-days → components/calendar}/order-week-days.pipe.d.ts +1 -1
  14. package/components/cell/cell.directive.d.ts +9 -0
  15. package/components/cell/cell.options.d.ts +6 -0
  16. package/components/cell/index.d.ts +2 -0
  17. package/components/data-list/data-list.component.d.ts +8 -12
  18. package/components/data-list/data-list.d.ts +3 -4
  19. package/components/data-list/data-list.tokens.d.ts +1 -20
  20. package/components/data-list/index.d.ts +3 -4
  21. package/components/data-list/opt-group.directive.d.ts +2 -2
  22. package/components/data-list/option-content.directive.d.ts +14 -0
  23. package/components/data-list/option-with-value.directive.d.ts +9 -0
  24. package/components/data-list/option.directive.d.ts +19 -0
  25. package/components/error/error.component.d.ts +6 -8
  26. package/components/error/error.d.ts +4 -0
  27. package/components/error/error.directive.d.ts +19 -0
  28. package/components/error/error.pipe.d.ts +10 -0
  29. package/components/error/index.d.ts +3 -0
  30. package/components/expand/expand.component.d.ts +9 -28
  31. package/components/expand/index.d.ts +0 -2
  32. package/components/icon/icon.component.d.ts +6 -11
  33. package/components/index.d.ts +3 -3
  34. package/components/input/index.d.ts +2 -0
  35. package/components/input/input.d.ts +5 -0
  36. package/components/input/input.directive.d.ts +29 -0
  37. package/components/label/label.directive.d.ts +1 -1
  38. package/components/link/index.d.ts +0 -1
  39. package/components/link/link.directive.d.ts +8 -6
  40. package/components/loader/loader.component.d.ts +7 -7
  41. package/components/loader/loader.options.d.ts +1 -3
  42. package/components/notification/index.d.ts +3 -0
  43. package/components/notification/notification.component.d.ts +14 -0
  44. package/components/notification/notification.d.ts +3 -0
  45. package/components/notification/notification.directive.d.ts +7 -12
  46. package/components/notification/notification.options.d.ts +10 -7
  47. package/components/notification/notification.service.d.ts +17 -0
  48. package/components/root/root.component.d.ts +4 -7
  49. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  50. package/components/scrollbar/scroll-ref.directive.d.ts +2 -0
  51. package/components/scrollbar/scrollbar.component.d.ts +1 -5
  52. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  53. package/components/scrollbar/scrollbar.options.d.ts +1 -1
  54. package/components/spin-button/spin-button.component.d.ts +9 -10
  55. package/components/textfield/index.d.ts +1 -4
  56. package/components/textfield/textfield-content.directive.d.ts +3 -2
  57. package/components/textfield/textfield-icon.d.ts +3 -3
  58. package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
  59. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +9 -15
  60. package/components/textfield/textfield.component.d.ts +20 -35
  61. package/components/textfield/textfield.d.ts +2 -4
  62. package/components/textfield/textfield.options.d.ts +8 -11
  63. package/{directives → components}/title/title.directive.d.ts +2 -3
  64. package/directives/appearance/appearance.directive.d.ts +5 -13
  65. package/directives/appearance/appearance.options.d.ts +1 -2
  66. package/directives/button-x/button-x.directive.d.ts +6 -0
  67. package/directives/button-x/index.d.ts +1 -0
  68. package/directives/date-format/date-format.directive.d.ts +3 -7
  69. package/directives/group/group.directive.d.ts +7 -7
  70. package/directives/group/group.options.d.ts +1 -3
  71. package/directives/icons/icons.bindings.d.ts +5 -0
  72. package/directives/icons/icons.directive.d.ts +8 -16
  73. package/directives/icons/index.d.ts +1 -0
  74. package/directives/index.d.ts +1 -5
  75. package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
  76. package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
  77. package/directives/number-format/number-format.directive.d.ts +3 -7
  78. package/fesm2022/taiga-ui-core-classes.mjs +9 -11
  79. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-core-components-button.mjs +13 -21
  81. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-components-calendar.mjs +144 -47
  83. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  85. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  86. package/fesm2022/taiga-ui-core-components-data-list.mjs +113 -284
  87. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-error.mjs +110 -26
  89. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-expand.mjs +34 -132
  91. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-components-icon.mjs +22 -40
  93. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-components-input.mjs +100 -0
  95. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -0
  96. package/fesm2022/taiga-ui-core-components-label.mjs +13 -18
  97. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-components-link.mjs +16 -36
  99. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-components-loader.mjs +20 -40
  101. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-core-components-notification.mjs +107 -66
  103. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-components-root.mjs +23 -60
  105. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +73 -87
  107. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-components-spin-button.mjs +18 -31
  109. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-components-textfield.mjs +136 -435
  111. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-core-components-title.mjs +37 -0
  113. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -0
  114. package/fesm2022/taiga-ui-core-components.mjs +3 -3
  115. package/fesm2022/taiga-ui-core-directives-appearance.mjs +32 -69
  116. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-core-directives-button-x.mjs +51 -0
  118. package/fesm2022/taiga-ui-core-directives-button-x.mjs.map +1 -0
  119. package/fesm2022/taiga-ui-core-directives-date-format.mjs +26 -20
  120. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-core-directives-group.mjs +25 -40
  122. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-core-directives-icons.mjs +35 -45
  124. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +18 -42
  126. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-core-directives-number-format.mjs +32 -20
  128. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-core-directives.mjs +1 -5
  130. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +21 -15
  132. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-core-pipes.mjs +0 -8
  134. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-core-portals-alert.mjs +73 -0
  136. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -0
  137. package/fesm2022/taiga-ui-core-portals-dialog.mjs +159 -0
  138. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -0
  139. package/fesm2022/{taiga-ui-core-directives-dropdown.mjs → taiga-ui-core-portals-dropdown.mjs} +249 -414
  140. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -0
  141. package/fesm2022/taiga-ui-core-portals-hint.mjs +552 -0
  142. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -0
  143. package/fesm2022/taiga-ui-core-portals-modal.mjs +89 -0
  144. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -0
  145. package/fesm2022/taiga-ui-core-portals-popup.mjs +56 -0
  146. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -0
  147. package/fesm2022/taiga-ui-core-portals.mjs +11 -0
  148. package/fesm2022/taiga-ui-core-portals.mjs.map +1 -0
  149. package/fesm2022/taiga-ui-core-services.mjs +17 -81
  150. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-core-tokens.mjs +62 -81
  152. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
  155. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +55 -19
  157. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-core.mjs +1 -1
  159. package/index.d.ts +1 -1
  160. package/package.json +58 -179
  161. package/pipes/format-number/format-number.pipe.d.ts +6 -4
  162. package/pipes/index.d.ts +0 -8
  163. package/portals/alert/alert.directive.d.ts +11 -0
  164. package/portals/alert/alert.service.d.ts +12 -0
  165. package/portals/alert/index.d.ts +2 -0
  166. package/portals/dialog/dialog.component.d.ts +14 -0
  167. package/portals/dialog/dialog.directive.d.ts +8 -0
  168. package/{components → portals}/dialog/dialog.factory.d.ts +1 -1
  169. package/portals/dialog/dialog.options.d.ts +25 -0
  170. package/{components/dialog/dialog-close.service.d.ts → portals/dialog/dialog.providers.d.ts} +2 -0
  171. package/portals/dialog/dialog.service.d.ts +10 -0
  172. package/portals/dialog/index.d.ts +6 -0
  173. package/portals/dropdown/dropdown-close.directive.d.ts +15 -0
  174. package/portals/dropdown/dropdown-content.directive.d.ts +9 -0
  175. package/{directives → portals}/dropdown/dropdown-context.directive.d.ts +0 -1
  176. package/{directives → portals}/dropdown/dropdown-hover.directive.d.ts +5 -10
  177. package/{directives → portals}/dropdown/dropdown-hover.options.d.ts +1 -3
  178. package/{directives → portals}/dropdown/dropdown-manual.directive.d.ts +2 -2
  179. package/portals/dropdown/dropdown-open.directive.d.ts +29 -0
  180. package/{directives → portals}/dropdown/dropdown-options.directive.d.ts +1 -5
  181. package/{directives → portals}/dropdown/dropdown-position-sided.directive.d.ts +3 -3
  182. package/{directives → portals}/dropdown/dropdown-position.directive.d.ts +6 -6
  183. package/{directives → portals}/dropdown/dropdown-selection.directive.d.ts +4 -5
  184. package/{directives → portals}/dropdown/dropdown.bindings.d.ts +0 -1
  185. package/{directives → portals}/dropdown/dropdown.d.ts +2 -3
  186. package/{directives → portals}/dropdown/dropdown.directive.d.ts +6 -8
  187. package/{directives → portals}/dropdown/index.d.ts +2 -4
  188. package/{directives → portals}/hint/hint-describe.directive.d.ts +4 -6
  189. package/{directives → portals}/hint/hint-host.directive.d.ts +2 -2
  190. package/{directives → portals}/hint/hint-hover.directive.d.ts +3 -4
  191. package/{directives → portals}/hint/hint-manual.directive.d.ts +2 -2
  192. package/portals/hint/hint-options.directive.d.ts +17 -0
  193. package/{directives → portals}/hint/hint-overflow.directive.d.ts +2 -2
  194. package/{directives → portals}/hint/hint-position.directive.d.ts +7 -8
  195. package/{directives → portals}/hint/hint-unstyled.component.d.ts +2 -7
  196. package/portals/hint/hint.component.d.ts +29 -0
  197. package/{directives → portals}/hint/hint.d.ts +1 -2
  198. package/portals/hint/hint.directive.d.ts +24 -0
  199. package/{directives → portals}/hint/index.d.ts +0 -2
  200. package/portals/index.d.ts +6 -0
  201. package/portals/modal/index.d.ts +2 -0
  202. package/portals/modal/modal.component.d.ts +17 -0
  203. package/portals/modal/modal.service.d.ts +13 -0
  204. package/portals/popup/popup.directive.d.ts +12 -0
  205. package/{directives → portals}/popup/popup.service.d.ts +1 -1
  206. package/{directives → portals}/popup/popups.component.d.ts +2 -2
  207. package/services/index.d.ts +0 -3
  208. package/styles/components/appearance.less +5 -0
  209. package/styles/components/button.less +10 -22
  210. package/styles/components/icon.less +42 -21
  211. package/styles/components/icons.less +18 -13
  212. package/styles/components/label.less +3 -12
  213. package/styles/components/link.less +8 -27
  214. package/styles/components/notification.less +31 -65
  215. package/styles/components/textfield.less +128 -213
  216. package/styles/components/title.less +8 -8
  217. package/styles/mixins/appearance.less +11 -26
  218. package/styles/mixins/appearance.scss +9 -24
  219. package/styles/mixins/date-picker.less +1 -1
  220. package/styles/mixins/mixins.less +1 -7
  221. package/styles/mixins/mixins.scss +1 -7
  222. package/styles/mixins/picker.less +1 -1
  223. package/styles/mixins/picker.scss +1 -1
  224. package/styles/mixins/slider.less +28 -24
  225. package/styles/mixins/slider.scss +23 -22
  226. package/styles/taiga-ui-local.less +0 -1
  227. package/styles/taiga-ui-local.scss +0 -1
  228. package/styles/taiga-ui-theme.less +0 -1
  229. package/styles/theme/appearance/outline.less +9 -18
  230. package/styles/theme/appearance/primary.less +2 -4
  231. package/styles/theme/appearance/secondary.less +6 -14
  232. package/styles/theme/appearance/status.less +0 -4
  233. package/styles/theme/appearance/table.less +36 -35
  234. package/styles/theme/appearance/textfield.less +27 -28
  235. package/styles/theme/appearance.less +0 -1
  236. package/styles/theme/variables.less +16 -19
  237. package/styles/variables/media.less +13 -18
  238. package/styles/variables/media.scss +13 -13
  239. package/tokens/breakpoint.d.ts +4 -0
  240. package/tokens/common-icons.d.ts +3 -3
  241. package/tokens/date-format.d.ts +2 -3
  242. package/tokens/i18n.d.ts +7 -7
  243. package/tokens/icon-resolver.d.ts +1 -5
  244. package/tokens/icons.d.ts +0 -4
  245. package/tokens/index.d.ts +2 -4
  246. package/tokens/number-format.d.ts +2 -3
  247. package/tokens/validation-errors.d.ts +4 -0
  248. package/types/direction.d.ts +1 -1
  249. package/types/index.d.ts +0 -3
  250. package/types/point.d.ts +1 -1
  251. package/types/size.d.ts +0 -11
  252. package/utils/format/index.d.ts +0 -1
  253. package/utils/miscellaneous/get-duration.d.ts +2 -0
  254. package/utils/miscellaneous/index.d.ts +2 -1
  255. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  256. package/animations/animations.d.ts +0 -109
  257. package/animations/index.d.ts +0 -1
  258. package/components/alert/alert.component.d.ts +0 -15
  259. package/components/alert/alert.directive.d.ts +0 -7
  260. package/components/alert/alert.interfaces.d.ts +0 -12
  261. package/components/alert/alert.service.d.ts +0 -7
  262. package/components/alert/alert.tokens.d.ts +0 -12
  263. package/components/alert/alerts.component.d.ts +0 -12
  264. package/components/alert/index.d.ts +0 -6
  265. package/components/data-list/data-list.directive.d.ts +0 -7
  266. package/components/data-list/option/option-content.d.ts +0 -16
  267. package/components/data-list/option/option-legacy.component.d.ts +0 -24
  268. package/components/data-list/option/option.directive.d.ts +0 -27
  269. package/components/dialog/active-zone-adapter.directive.d.ts +0 -11
  270. package/components/dialog/dialog.component.d.ts +0 -20
  271. package/components/dialog/dialog.directive.d.ts +0 -7
  272. package/components/dialog/dialog.interfaces.d.ts +0 -34
  273. package/components/dialog/dialog.service.d.ts +0 -7
  274. package/components/dialog/dialog.tokens.d.ts +0 -15
  275. package/components/dialog/dialogs.component.d.ts +0 -8
  276. package/components/dialog/index.d.ts +0 -8
  277. package/components/expand/expand-content.directive.d.ts +0 -8
  278. package/components/expand/expand.d.ts +0 -6
  279. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  280. package/components/fullscreen/index.d.ts +0 -1
  281. package/components/link/link.options.d.ts +0 -12
  282. package/components/textfield/select.directive.d.ts +0 -19
  283. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  284. package/components/textfield/textfield.directive.d.ts +0 -38
  285. package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
  286. package/directives/dropdown/dropdown-open.directive.d.ts +0 -33
  287. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  288. package/directives/dropdown/dropdown.service.d.ts +0 -6
  289. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  290. package/directives/hint/hint-options.directive.d.ts +0 -36
  291. package/directives/hint/hint.component.d.ts +0 -30
  292. package/directives/hint/hint.directive.d.ts +0 -26
  293. package/directives/hint/hint.service.d.ts +0 -13
  294. package/directives/hint/hints.component.d.ts +0 -12
  295. package/directives/popup/popup.directive.d.ts +0 -11
  296. package/directives/surface/index.d.ts +0 -1
  297. package/directives/surface/surface.directive.d.ts +0 -8
  298. package/esm2022/animations/animations.mjs +0 -363
  299. package/esm2022/animations/index.mjs +0 -2
  300. package/esm2022/animations/taiga-ui-core-animations.mjs +0 -5
  301. package/esm2022/classes/accessors.mjs +0 -31
  302. package/esm2022/classes/driver.mjs +0 -36
  303. package/esm2022/classes/index.mjs +0 -4
  304. package/esm2022/classes/taiga-ui-core-classes.mjs +0 -5
  305. package/esm2022/classes/vehicle.mjs +0 -7
  306. package/esm2022/components/alert/alert.component.mjs +0 -43
  307. package/esm2022/components/alert/alert.directive.mjs +0 -21
  308. package/esm2022/components/alert/alert.interfaces.mjs +0 -2
  309. package/esm2022/components/alert/alert.service.mjs +0 -18
  310. package/esm2022/components/alert/alert.tokens.mjs +0 -51
  311. package/esm2022/components/alert/alerts.component.mjs +0 -33
  312. package/esm2022/components/alert/index.mjs +0 -6
  313. package/esm2022/components/alert/taiga-ui-core-components-alert.mjs +0 -5
  314. package/esm2022/components/button/button.directive.mjs +0 -43
  315. package/esm2022/components/button/button.options.mjs +0 -7
  316. package/esm2022/components/button/index.mjs +0 -3
  317. package/esm2022/components/button/taiga-ui-core-components-button.mjs +0 -5
  318. package/esm2022/components/calendar/calendar-sheet.component.mjs +0 -168
  319. package/esm2022/components/calendar/calendar-sheet.options.mjs +0 -12
  320. package/esm2022/components/calendar/calendar-spin.component.mjs +0 -53
  321. package/esm2022/components/calendar/calendar-year.component.mjs +0 -128
  322. package/esm2022/components/calendar/calendar.component.mjs +0 -147
  323. package/esm2022/components/calendar/index.mjs +0 -6
  324. package/esm2022/components/calendar/taiga-ui-core-components-calendar.mjs +0 -5
  325. package/esm2022/components/data-list/data-list.component.mjs +0 -139
  326. package/esm2022/components/data-list/data-list.directive.mjs +0 -19
  327. package/esm2022/components/data-list/data-list.mjs +0 -14
  328. package/esm2022/components/data-list/data-list.tokens.mjs +0 -18
  329. package/esm2022/components/data-list/index.mjs +0 -9
  330. package/esm2022/components/data-list/opt-group.directive.mjs +0 -21
  331. package/esm2022/components/data-list/option/option-content.mjs +0 -36
  332. package/esm2022/components/data-list/option/option-legacy.component.mjs +0 -90
  333. package/esm2022/components/data-list/option/option.directive.mjs +0 -109
  334. package/esm2022/components/data-list/taiga-ui-core-components-data-list.mjs +0 -5
  335. package/esm2022/components/dialog/active-zone-adapter.directive.mjs +0 -37
  336. package/esm2022/components/dialog/dialog-close.service.mjs +0 -41
  337. package/esm2022/components/dialog/dialog.component.mjs +0 -63
  338. package/esm2022/components/dialog/dialog.directive.mjs +0 -21
  339. package/esm2022/components/dialog/dialog.factory.mjs +0 -15
  340. package/esm2022/components/dialog/dialog.interfaces.mjs +0 -2
  341. package/esm2022/components/dialog/dialog.service.mjs +0 -18
  342. package/esm2022/components/dialog/dialog.tokens.mjs +0 -33
  343. package/esm2022/components/dialog/dialogs.component.mjs +0 -31
  344. package/esm2022/components/dialog/index.mjs +0 -8
  345. package/esm2022/components/dialog/taiga-ui-core-components-dialog.mjs +0 -5
  346. package/esm2022/components/error/error.component.mjs +0 -34
  347. package/esm2022/components/error/index.mjs +0 -2
  348. package/esm2022/components/error/taiga-ui-core-components-error.mjs +0 -5
  349. package/esm2022/components/expand/expand-content.directive.mjs +0 -18
  350. package/esm2022/components/expand/expand.component.mjs +0 -124
  351. package/esm2022/components/expand/expand.mjs +0 -7
  352. package/esm2022/components/expand/index.mjs +0 -4
  353. package/esm2022/components/expand/taiga-ui-core-components-expand.mjs +0 -5
  354. package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -71
  355. package/esm2022/components/fullscreen/index.mjs +0 -2
  356. package/esm2022/components/fullscreen/taiga-ui-core-components-fullscreen.mjs +0 -5
  357. package/esm2022/components/icon/icon.component.mjs +0 -44
  358. package/esm2022/components/icon/icon.pipe.mjs +0 -19
  359. package/esm2022/components/icon/index.mjs +0 -3
  360. package/esm2022/components/icon/taiga-ui-core-components-icon.mjs +0 -5
  361. package/esm2022/components/index.mjs +0 -18
  362. package/esm2022/components/label/index.mjs +0 -2
  363. package/esm2022/components/label/label.directive.mjs +0 -41
  364. package/esm2022/components/label/taiga-ui-core-components-label.mjs +0 -5
  365. package/esm2022/components/link/index.mjs +0 -3
  366. package/esm2022/components/link/link.directive.mjs +0 -47
  367. package/esm2022/components/link/link.options.mjs +0 -13
  368. package/esm2022/components/link/taiga-ui-core-components-link.mjs +0 -5
  369. package/esm2022/components/loader/index.mjs +0 -3
  370. package/esm2022/components/loader/loader.component.mjs +0 -46
  371. package/esm2022/components/loader/loader.options.mjs +0 -18
  372. package/esm2022/components/loader/taiga-ui-core-components-loader.mjs +0 -5
  373. package/esm2022/components/notification/index.mjs +0 -3
  374. package/esm2022/components/notification/notification.directive.mjs +0 -81
  375. package/esm2022/components/notification/notification.options.mjs +0 -23
  376. package/esm2022/components/notification/taiga-ui-core-components-notification.mjs +0 -5
  377. package/esm2022/components/root/index.mjs +0 -2
  378. package/esm2022/components/root/root.component.mjs +0 -87
  379. package/esm2022/components/root/taiga-ui-core-components-root.mjs +0 -5
  380. package/esm2022/components/scrollbar/index.mjs +0 -9
  381. package/esm2022/components/scrollbar/scroll-controls.component.mjs +0 -32
  382. package/esm2022/components/scrollbar/scroll-into-view.directive.mjs +0 -43
  383. package/esm2022/components/scrollbar/scroll-ref.directive.mjs +0 -19
  384. package/esm2022/components/scrollbar/scrollable.directive.mjs +0 -26
  385. package/esm2022/components/scrollbar/scrollbar.component.mjs +0 -72
  386. package/esm2022/components/scrollbar/scrollbar.directive.mjs +0 -93
  387. package/esm2022/components/scrollbar/scrollbar.options.mjs +0 -6
  388. package/esm2022/components/scrollbar/scrollbar.service.mjs +0 -46
  389. package/esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs +0 -5
  390. package/esm2022/components/spin-button/index.mjs +0 -2
  391. package/esm2022/components/spin-button/spin-button.component.mjs +0 -51
  392. package/esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs +0 -5
  393. package/esm2022/components/taiga-ui-core-components.mjs +0 -5
  394. package/esm2022/components/textfield/index.mjs +0 -16
  395. package/esm2022/components/textfield/select-like.directive.mjs +0 -44
  396. package/esm2022/components/textfield/select.directive.mjs +0 -64
  397. package/esm2022/components/textfield/taiga-ui-core-components-textfield.mjs +0 -5
  398. package/esm2022/components/textfield/textfield-accessor.mjs +0 -7
  399. package/esm2022/components/textfield/textfield-auxiliary.mjs +0 -7
  400. package/esm2022/components/textfield/textfield-content.directive.mjs +0 -22
  401. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +0 -43
  402. package/esm2022/components/textfield/textfield-icon.mjs +0 -10
  403. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +0 -34
  404. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +0 -137
  405. package/esm2022/components/textfield/textfield.component.mjs +0 -183
  406. package/esm2022/components/textfield/textfield.directive.mjs +0 -134
  407. package/esm2022/components/textfield/textfield.mjs +0 -19
  408. package/esm2022/components/textfield/textfield.options.mjs +0 -63
  409. package/esm2022/components/textfield/with-native-picker.directive.mjs +0 -24
  410. package/esm2022/directives/appearance/appearance.bindings.mjs +0 -15
  411. package/esm2022/directives/appearance/appearance.directive.mjs +0 -79
  412. package/esm2022/directives/appearance/appearance.options.mjs +0 -12
  413. package/esm2022/directives/appearance/index.mjs +0 -5
  414. package/esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs +0 -5
  415. package/esm2022/directives/appearance/with-appearance.mjs +0 -27
  416. package/esm2022/directives/date-format/date-format.directive.mjs +0 -31
  417. package/esm2022/directives/date-format/index.mjs +0 -2
  418. package/esm2022/directives/date-format/taiga-ui-core-directives-date-format.mjs +0 -5
  419. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +0 -76
  420. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +0 -70
  421. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +0 -17
  422. package/esm2022/directives/dropdown/dropdown-limit-width.mjs +0 -37
  423. package/esm2022/directives/dropdown/dropdown-manual.directive.mjs +0 -27
  424. package/esm2022/directives/dropdown/dropdown-open-legacy.directive.mjs +0 -33
  425. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +0 -169
  426. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +0 -73
  427. package/esm2022/directives/dropdown/dropdown-portal.directive.mjs +0 -34
  428. package/esm2022/directives/dropdown/dropdown-position-sided.directive.mjs +0 -69
  429. package/esm2022/directives/dropdown/dropdown-position.directive.mjs +0 -88
  430. package/esm2022/directives/dropdown/dropdown-selection.directive.mjs +0 -159
  431. package/esm2022/directives/dropdown/dropdown.bindings.mjs +0 -19
  432. package/esm2022/directives/dropdown/dropdown.component.mjs +0 -92
  433. package/esm2022/directives/dropdown/dropdown.directive.mjs +0 -110
  434. package/esm2022/directives/dropdown/dropdown.driver.mjs +0 -32
  435. package/esm2022/directives/dropdown/dropdown.mjs +0 -29
  436. package/esm2022/directives/dropdown/dropdown.providers.mjs +0 -10
  437. package/esm2022/directives/dropdown/dropdown.service.mjs +0 -15
  438. package/esm2022/directives/dropdown/dropdowns.component.mjs +0 -24
  439. package/esm2022/directives/dropdown/index.mjs +0 -22
  440. package/esm2022/directives/dropdown/taiga-ui-core-directives-dropdown.mjs +0 -5
  441. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +0 -23
  442. package/esm2022/directives/group/group.directive.mjs +0 -53
  443. package/esm2022/directives/group/group.options.mjs +0 -15
  444. package/esm2022/directives/group/index.mjs +0 -3
  445. package/esm2022/directives/group/taiga-ui-core-directives-group.mjs +0 -5
  446. package/esm2022/directives/hint/hint-describe.directive.mjs +0 -50
  447. package/esm2022/directives/hint/hint-driver.directive.mjs +0 -19
  448. package/esm2022/directives/hint/hint-host.directive.mjs +0 -27
  449. package/esm2022/directives/hint/hint-hover.directive.mjs +0 -59
  450. package/esm2022/directives/hint/hint-manual.directive.mjs +0 -33
  451. package/esm2022/directives/hint/hint-options.directive.mjs +0 -86
  452. package/esm2022/directives/hint/hint-overflow.directive.mjs +0 -38
  453. package/esm2022/directives/hint/hint-pointer.directive.mjs +0 -33
  454. package/esm2022/directives/hint/hint-position.directive.mjs +0 -115
  455. package/esm2022/directives/hint/hint-unstyled.component.mjs +0 -39
  456. package/esm2022/directives/hint/hint.component.mjs +0 -127
  457. package/esm2022/directives/hint/hint.directive.mjs +0 -99
  458. package/esm2022/directives/hint/hint.mjs +0 -27
  459. package/esm2022/directives/hint/hint.providers.mjs +0 -9
  460. package/esm2022/directives/hint/hint.service.mjs +0 -29
  461. package/esm2022/directives/hint/hints.component.mjs +0 -34
  462. package/esm2022/directives/hint/index.mjs +0 -17
  463. package/esm2022/directives/hint/taiga-ui-core-directives-hint.mjs +0 -5
  464. package/esm2022/directives/icons/icons.directive.mjs +0 -66
  465. package/esm2022/directives/icons/index.mjs +0 -3
  466. package/esm2022/directives/icons/taiga-ui-core-directives-icons.mjs +0 -5
  467. package/esm2022/directives/icons/with-icons.mjs +0 -22
  468. package/esm2022/directives/index.mjs +0 -12
  469. package/esm2022/directives/items-handlers/index.mjs +0 -4
  470. package/esm2022/directives/items-handlers/items-handlers.directive.mjs +0 -63
  471. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +0 -27
  472. package/esm2022/directives/items-handlers/items-handlers.validator.mjs +0 -32
  473. package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +0 -5
  474. package/esm2022/directives/number-format/index.mjs +0 -2
  475. package/esm2022/directives/number-format/number-format.directive.mjs +0 -31
  476. package/esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs +0 -5
  477. package/esm2022/directives/popup/index.mjs +0 -4
  478. package/esm2022/directives/popup/popup.directive.mjs +0 -31
  479. package/esm2022/directives/popup/popup.service.mjs +0 -15
  480. package/esm2022/directives/popup/popups.component.mjs +0 -20
  481. package/esm2022/directives/popup/taiga-ui-core-directives-popup.mjs +0 -5
  482. package/esm2022/directives/surface/index.mjs +0 -2
  483. package/esm2022/directives/surface/surface.directive.mjs +0 -44
  484. package/esm2022/directives/surface/taiga-ui-core-directives-surface.mjs +0 -5
  485. package/esm2022/directives/taiga-ui-core-directives.mjs +0 -5
  486. package/esm2022/directives/title/index.mjs +0 -2
  487. package/esm2022/directives/title/taiga-ui-core-directives-title.mjs +0 -5
  488. package/esm2022/directives/title/title.directive.mjs +0 -37
  489. package/esm2022/index.mjs +0 -9
  490. package/esm2022/pipes/auto-color/auto-color.pipe.mjs +0 -19
  491. package/esm2022/pipes/auto-color/index.mjs +0 -2
  492. package/esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs +0 -5
  493. package/esm2022/pipes/calendar-sheet/calendar-sheet.pipe.mjs +0 -54
  494. package/esm2022/pipes/calendar-sheet/index.mjs +0 -2
  495. package/esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs +0 -5
  496. package/esm2022/pipes/calendar-sheet/utils.mjs +0 -36
  497. package/esm2022/pipes/fallback-src/fallback-src.pipe.mjs +0 -23
  498. package/esm2022/pipes/fallback-src/index.mjs +0 -2
  499. package/esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs +0 -5
  500. package/esm2022/pipes/flag/flag.pipe.mjs +0 -26
  501. package/esm2022/pipes/flag/index.mjs +0 -2
  502. package/esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs +0 -5
  503. package/esm2022/pipes/format-date/format-date.pipe.mjs +0 -22
  504. package/esm2022/pipes/format-date/index.mjs +0 -2
  505. package/esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs +0 -5
  506. package/esm2022/pipes/format-number/format-number.pipe.mjs +0 -36
  507. package/esm2022/pipes/format-number/index.mjs +0 -2
  508. package/esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs +0 -5
  509. package/esm2022/pipes/index.mjs +0 -10
  510. package/esm2022/pipes/initials/index.mjs +0 -2
  511. package/esm2022/pipes/initials/initials.pipe.mjs +0 -23
  512. package/esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs +0 -5
  513. package/esm2022/pipes/month/index.mjs +0 -2
  514. package/esm2022/pipes/month/month.pipe.mjs +0 -23
  515. package/esm2022/pipes/month/taiga-ui-core-pipes-month.mjs +0 -5
  516. package/esm2022/pipes/order-week-days/index.mjs +0 -2
  517. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +0 -30
  518. package/esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs +0 -5
  519. package/esm2022/pipes/taiga-ui-core-pipes.mjs +0 -5
  520. package/esm2022/services/breakpoint.service.mjs +0 -31
  521. package/esm2022/services/dark-theme.service.mjs +0 -24
  522. package/esm2022/services/format-date.service.mjs +0 -24
  523. package/esm2022/services/index.mjs +0 -6
  524. package/esm2022/services/position.service.mjs +0 -26
  525. package/esm2022/services/taiga-ui-core-services.mjs +0 -5
  526. package/esm2022/services/visual-viewport.service.mjs +0 -29
  527. package/esm2022/taiga-ui-core.mjs +0 -5
  528. package/esm2022/tokens/animations-speed.mjs +0 -9
  529. package/esm2022/tokens/assets-path.mjs +0 -11
  530. package/esm2022/tokens/auxiliary.mjs +0 -9
  531. package/esm2022/tokens/common-icons.mjs +0 -18
  532. package/esm2022/tokens/dark-mode.mjs +0 -43
  533. package/esm2022/tokens/date-format.mjs +0 -20
  534. package/esm2022/tokens/day-type-handler.mjs +0 -8
  535. package/esm2022/tokens/first-day-of-week.mjs +0 -9
  536. package/esm2022/tokens/i18n.mjs +0 -45
  537. package/esm2022/tokens/icon-resolver.mjs +0 -44
  538. package/esm2022/tokens/icon.mjs +0 -8
  539. package/esm2022/tokens/icons.mjs +0 -21
  540. package/esm2022/tokens/index.mjs +0 -21
  541. package/esm2022/tokens/media.mjs +0 -12
  542. package/esm2022/tokens/number-format.mjs +0 -24
  543. package/esm2022/tokens/reduced-motion.mjs +0 -7
  544. package/esm2022/tokens/scroll-ref.mjs +0 -6
  545. package/esm2022/tokens/selection-stream.mjs +0 -14
  546. package/esm2022/tokens/spin-icons.mjs +0 -8
  547. package/esm2022/tokens/taiga-ui-core-tokens.mjs +0 -5
  548. package/esm2022/tokens/theme.mjs +0 -5
  549. package/esm2022/tokens/viewport.mjs +0 -35
  550. package/esm2022/types/direction.mjs +0 -2
  551. package/esm2022/types/index.mjs +0 -2
  552. package/esm2022/types/interactive-state.mjs +0 -2
  553. package/esm2022/types/orientation.mjs +0 -2
  554. package/esm2022/types/point.mjs +0 -2
  555. package/esm2022/types/portal-item.mjs +0 -2
  556. package/esm2022/types/range-state.mjs +0 -2
  557. package/esm2022/types/size.mjs +0 -13
  558. package/esm2022/types/taiga-ui-core-types.mjs +0 -5
  559. package/esm2022/types/value-content-context.mjs +0 -2
  560. package/esm2022/utils/dom/check-fixed-position.mjs +0 -9
  561. package/esm2022/utils/dom/get-viewport.mjs +0 -24
  562. package/esm2022/utils/dom/get-word-range.mjs +0 -51
  563. package/esm2022/utils/dom/index.mjs +0 -4
  564. package/esm2022/utils/dom/taiga-ui-core-utils-dom.mjs +0 -5
  565. package/esm2022/utils/format/format-number.mjs +0 -47
  566. package/esm2022/utils/format/get-fractional-part-padded.mjs +0 -16
  567. package/esm2022/utils/format/index.mjs +0 -5
  568. package/esm2022/utils/format/number-to-string-without-exp.mjs +0 -18
  569. package/esm2022/utils/format/string-hash-to-hsl.mjs +0 -21
  570. package/esm2022/utils/format/taiga-ui-core-utils-format.mjs +0 -5
  571. package/esm2022/utils/index.mjs +0 -4
  572. package/esm2022/utils/miscellaneous/font-scaling.mjs +0 -21
  573. package/esm2022/utils/miscellaneous/index.mjs +0 -7
  574. package/esm2022/utils/miscellaneous/is-editing-key.mjs +0 -18
  575. package/esm2022/utils/miscellaneous/is-obscured.mjs +0 -8
  576. package/esm2022/utils/miscellaneous/override-options.mjs +0 -11
  577. package/esm2022/utils/miscellaneous/size-bigger.mjs +0 -19
  578. package/esm2022/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs +0 -5
  579. package/esm2022/utils/miscellaneous/to-animation-options.mjs +0 -16
  580. package/esm2022/utils/taiga-ui-core-utils.mjs +0 -5
  581. package/fesm2022/taiga-ui-core-animations.mjs +0 -370
  582. package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
  583. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -149
  584. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  585. package/fesm2022/taiga-ui-core-components-dialog.mjs +0 -230
  586. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +0 -1
  587. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -77
  588. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  589. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +0 -1
  590. package/fesm2022/taiga-ui-core-directives-hint.mjs +0 -713
  591. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +0 -1
  592. package/fesm2022/taiga-ui-core-directives-popup.mjs +0 -63
  593. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +0 -1
  594. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  595. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  596. package/fesm2022/taiga-ui-core-directives-title.mjs +0 -43
  597. package/fesm2022/taiga-ui-core-directives-title.mjs.map +0 -1
  598. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -25
  599. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +0 -1
  600. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -94
  601. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +0 -1
  602. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  603. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  604. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -32
  605. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +0 -1
  606. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -28
  607. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +0 -1
  608. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -29
  609. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +0 -1
  610. package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -29
  611. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
  612. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -36
  613. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +0 -1
  614. package/pipes/auto-color/auto-color.pipe.d.ts +0 -7
  615. package/pipes/auto-color/index.d.ts +0 -1
  616. package/pipes/calendar-sheet/index.d.ts +0 -1
  617. package/pipes/calendar-sheet/utils.d.ts +0 -20
  618. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  619. package/pipes/fallback-src/index.d.ts +0 -1
  620. package/pipes/flag/flag.pipe.d.ts +0 -14
  621. package/pipes/flag/index.d.ts +0 -1
  622. package/pipes/format-date/format-date.pipe.d.ts +0 -9
  623. package/pipes/format-date/index.d.ts +0 -1
  624. package/pipes/initials/index.d.ts +0 -1
  625. package/pipes/initials/initials.pipe.d.ts +0 -7
  626. package/pipes/month/index.d.ts +0 -1
  627. package/pipes/month/month.pipe.d.ts +0 -10
  628. package/pipes/order-week-days/index.d.ts +0 -1
  629. package/services/breakpoint.service.d.ts +0 -16
  630. package/services/dark-theme.service.d.ts +0 -10
  631. package/services/format-date.service.d.ts +0 -8
  632. package/styles/mixins/wrapper.less +0 -64
  633. package/styles/mixins/wrapper.scss +0 -61
  634. package/styles/theme/appearance/opposite.less +0 -17
  635. package/styles/theme/wrapper.less +0 -211
  636. package/tokens/day-type-handler.d.ts +0 -7
  637. package/tokens/first-day-of-week.d.ts +0 -5
  638. package/tokens/scroll-ref.d.ts +0 -2
  639. package/tokens/spin-icons.d.ts +0 -6
  640. package/types/portal-item.d.ts +0 -9
  641. package/types/range-state.d.ts +0 -4
  642. package/types/value-content-context.d.ts +0 -4
  643. package/utils/format/string-hash-to-hsl.d.ts +0 -6
  644. package/utils/miscellaneous/to-animation-options.d.ts +0 -4
  645. /package/{directives → components}/title/index.d.ts +0 -0
  646. /package/{directives → portals}/dropdown/dropdown-limit-width.d.ts +0 -0
  647. /package/{directives → portals}/dropdown/dropdown.component.d.ts +0 -0
  648. /package/{directives → portals}/dropdown/dropdown.driver.d.ts +0 -0
  649. /package/{directives → portals}/dropdown/dropdown.providers.d.ts +0 -0
  650. /package/{directives → portals}/dropdown/with-dropdown-open.directive.d.ts +0 -0
  651. /package/{directives → portals}/hint/hint-driver.directive.d.ts +0 -0
  652. /package/{directives → portals}/hint/hint-pointer.directive.d.ts +0 -0
  653. /package/{directives → portals}/hint/hint.providers.d.ts +0 -0
  654. /package/{directives → portals}/popup/index.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-components-alert.mjs","sources":["../../../projects/core/components/alert/alert.tokens.ts","../../../projects/core/components/alert/alert.component.ts","../../../projects/core/components/alert/alert.template.html","../../../projects/core/components/alert/alert.service.ts","../../../projects/core/components/alert/alert.directive.ts","../../../projects/core/components/alert/alerts.component.ts","../../../projects/core/components/alert/alerts.template.html","../../../projects/core/components/alert/taiga-ui-core-components-alert.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken, type Type} from '@angular/core';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification';\nimport {BehaviorSubject, combineLatest, map, of} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\n\nexport const TUI_ALERT_DEFAULT_OPTIONS: Omit<TuiAlertOptions, 'appearance' | 'icon'> = {\n autoClose: 3000,\n label: '',\n closeable: true,\n data: undefined,\n};\n\nexport const TUI_ALERT_OPTIONS = new InjectionToken<TuiAlertOptions>(\n ngDevMode ? 'TUI_ALERT_OPTIONS' : '',\n {\n factory: () => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...inject(TUI_NOTIFICATION_OPTIONS),\n }),\n },\n);\n\nexport const TUI_ALERT_POSITION = new InjectionToken<string>(\n ngDevMode ? 'TUI_ALERT_POSITION' : '',\n {\n factory: () => (inject(TUI_IS_MOBILE) ? '1rem 1rem 0 auto' : '2rem 3rem 0 auto'),\n },\n);\n\nexport const TUI_ALERTS = new InjectionToken(ngDevMode ? 'TUI_ALERTS' : '', {\n factory: () => new BehaviorSubject<ReadonlyArray<TuiPopover<any, any>>>([]),\n});\n\n/**\n * Grouping alerts by their component\n */\nexport const TUI_ALERTS_GROUPED = new InjectionToken(\n ngDevMode ? 'TUI_ALERTS_GROUPED' : '',\n {\n factory: () =>\n combineLatest([\n of(new Map<Type<any>, ReadonlyArray<TuiPopover<any, any>>>()),\n inject(TUI_ALERTS),\n ]).pipe(\n map(([map, alerts]) => {\n map.forEach((_, key) => map.set(key, []));\n\n alerts.forEach((alert) => {\n const key = alert.component.component;\n const value = map.get(key) || [];\n\n map.set(key, [...value, alert]);\n });\n\n return Array.from(map.values());\n }),\n ),\n },\n);\n\nexport function tuiAlertOptionsProvider(\n options: Partial<TuiAlertOptions>,\n): FactoryProvider {\n return {\n provide: TUI_ALERT_OPTIONS,\n useFactory: (): TuiAlertOptions => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...(inject(TUI_ALERT_OPTIONS, {optional: true, skipSelf: true}) ||\n inject(TUI_NOTIFICATION_OPTIONS)),\n ...options,\n }),\n };\n}\n","import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiNotification} from '@taiga-ui/core/components/notification';\nimport {TuiTitle} from '@taiga-ui/core/directives/title';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_POSITION} from './alert.tokens';\n\n@Component({\n standalone: true,\n selector: 'tui-alert',\n imports: [NgIf, PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle],\n templateUrl: './alert.template.html',\n styleUrls: ['./alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n role: 'alert',\n '[style.margin]': 'position',\n '[style.--tui-from]': 'from',\n },\n})\nexport class TuiAlertComponent<O, I> {\n private readonly el = tuiInjectElement();\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly close = toSignal(inject(TUI_CLOSE_WORD));\n protected readonly position = inject(TUI_ALERT_POSITION);\n protected readonly item = injectContext<TuiPopover<TuiAlertOptions<I>, O>>();\n\n protected readonly sub = of(\n typeof this.item.autoClose === 'function'\n ? this.item.autoClose(this.item.appearance)\n : this.item.autoClose,\n )\n .pipe(\n switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)),\n takeUntil(fromEvent(this.el, 'mouseenter')),\n repeat({delay: () => fromEvent(this.el, 'mouseleave')}),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.item.$implicit.complete());\n\n public get from(): string {\n return this.position.endsWith('auto') ? 'translateX(100%)' : 'translateX(-100%)';\n }\n}\n","<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closeable]=\"item.closeable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n <button\n *ngIf=\"item.closeable\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n </tui-notification>\n</div>\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\n\nimport {TuiAlertComponent} from './alert.component';\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_OPTIONS, TUI_ALERTS} from './alert.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiAlertService(TUI_ALERTS, TuiAlertComponent, inject(TUI_ALERT_OPTIONS)),\n})\nexport class TuiAlertService extends TuiPopoverService<TuiAlertOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TuiAlertService} from './alert.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiAlert]',\n inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],\n outputs: ['openChange: tuiAlertChange'],\n providers: [tuiAsPopover(TuiAlertService)],\n})\nexport class TuiAlert<T> extends TuiPopoverDirective<TuiAlertOptions<T>> {}\n","import {AsyncPipe, NgComponentOutlet, NgFor} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n INJECTOR,\n Injector,\n type Type,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiAnimatedParent} from '@taiga-ui/cdk/directives/animated';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n// eslint-disable-next-line no-restricted-imports\nimport {POLYMORPHEUS_CONTEXT} from '@taiga-ui/polymorpheus';\nimport {identity} from 'rxjs';\n\nimport {TUI_ALERTS_GROUPED} from './alert.tokens';\n\n@Component({\n standalone: true,\n selector: 'tui-alerts',\n imports: [AsyncPipe, NgComponentOutlet, NgFor, TuiAnimatedParent, TuiMapperPipe],\n templateUrl: './alerts.template.html',\n styleUrls: ['./alerts.style.less'],\n encapsulation: ViewEncapsulation.None,\n // So that we do not force OnPush on custom alerts\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class TuiAlerts {\n private readonly injector = inject(INJECTOR);\n\n protected readonly alerts$ = inject(TUI_ALERTS_GROUPED);\n protected readonly trackBy = identity;\n protected readonly mapper: TuiMapper<[Type<any>], Injector> = (useValue) =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","<div\n *ngFor=\"let group of alerts$ | async; trackBy: trackBy\"\n tuiAnimatedParent\n class=\"t-wrapper\"\n>\n <ng-container\n *ngFor=\"let item of group\"\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAQa,MAAA,yBAAyB,GAAiD;AACnF,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,SAAS;EACjB;AAEW,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,GAAG,yBAAyB;QAC5B,GAAG,MAAM,CAAC,wBAAwB,CAAC;KACtC,CAAC;AACL,CAAA,EACH;AAEW,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,OAAO,MAAM,CAAC,aAAa,CAAC,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AACnF,CAAA,EACH;AAEW,MAAA,UAAU,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,YAAY,GAAG,EAAE,EAAE;IACxE,OAAO,EAAE,MAAM,IAAI,eAAe,CAAsC,EAAE,CAAC;AAC9E,CAAA,EAAE;AAEH;;AAEG;AACU,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,MACL,aAAa,CAAC;AACV,QAAA,EAAE,CAAC,IAAI,GAAG,EAAkD,CAAC;QAC7D,MAAM,CAAC,UAAU,CAAC;AACrB,KAAA,CAAC,CAAC,IAAI,CACH,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAI;AAClB,QAAA,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,GA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AA,EAAA,WAAA,EAAA,IAAA,EAAE,KAAK,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,iBAAiB,EAAA,QAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,OAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQtE,SAAS,EAAA,UAAA,EAAA,CAAA;kBAXrB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,YAAY,EACb,OAAA,EAAA,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAGjE,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,eAAA,EAGpB,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,+TAAA,EAAA,MAAA,EAAA,CAAA,+QAAA,CAAA,EAAA,CAAA;;;AE5BpD;;AAEG;;;;"}
@@ -1,230 +0,0 @@
1
- import { DOCUMENT, AsyncPipe, NgIf, NgForOf } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, Injectable, computed, Component, ChangeDetectionStrategy, Directive, assertInInjectionContext, INJECTOR } from '@angular/core';
4
- import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
- import { TUI_TRUE_HANDLER } from '@taiga-ui/cdk/constants';
6
- import * as i1 from '@taiga-ui/cdk/directives/animated';
7
- import { TuiAnimated, TuiAnimatedParent } from '@taiga-ui/cdk/directives/animated';
8
- import { TuiAutoFocus } from '@taiga-ui/cdk/directives/auto-focus';
9
- import { TuiButton } from '@taiga-ui/core/components/button';
10
- import { TuiBreakpointService } from '@taiga-ui/core/services';
11
- import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
12
- import { injectContext, PolymorpheusOutlet, PolymorpheusComponent } from '@taiga-ui/polymorpheus';
13
- import { BehaviorSubject, EMPTY, Observable, merge, filter, switchMap, take, map, isObservable, of, Subject, exhaustMap } from 'rxjs';
14
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
15
- import { WA_WINDOW } from '@ng-web-apis/common';
16
- import { tuiCloseWatcher, tuiZonefull, tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
17
- import { tuiInjectElement, tuiGetActualTarget, tuiIsElement, tuiContainsOrAfter } from '@taiga-ui/cdk/utils/dom';
18
- import { tuiGetViewportWidth } from '@taiga-ui/core/utils';
19
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
20
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
21
- import { TuiFocusTrap } from '@taiga-ui/cdk/directives/focus-trap';
22
- import { TuiScrollControls, TuiScrollRef } from '@taiga-ui/core/components/scrollbar';
23
- import * as i1$1 from '@taiga-ui/cdk/directives/active-zone';
24
- import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
25
- import { tuiGetNativeFocused } from '@taiga-ui/cdk/utils/focus';
26
-
27
- const TUI_DIALOGS = new InjectionToken(ngDevMode ? 'TUI_DIALOGS' : '', {
28
- factory: () => new BehaviorSubject([]),
29
- });
30
- const TUI_DIALOG_DEFAULT_OPTIONS = {
31
- appearance: '',
32
- size: 'm',
33
- required: false,
34
- closeable: true,
35
- dismissible: true,
36
- label: '',
37
- header: '',
38
- data: undefined,
39
- };
40
- /**
41
- * A stream to close dialogs
42
- * TODO: use router.events in v5
43
- */
44
- const TUI_DIALOGS_CLOSE = new InjectionToken(ngDevMode ? 'TUI_DIALOGS_CLOSE' : '', {
45
- factory: () => EMPTY,
46
- });
47
- /**
48
- * Default parameters for dialog component
49
- */
50
- const TUI_DIALOG_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_DIALOG_OPTIONS' : '', {
51
- factory: () => TUI_DIALOG_DEFAULT_OPTIONS,
52
- });
53
- function tuiDialogOptionsProvider(options) {
54
- return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);
55
- }
56
-
57
- const SCROLLBAR_PLACEHOLDER = 17;
58
- class TuiDialogCloseService extends Observable {
59
- constructor() {
60
- super((subscriber) => merge(this.esc$, this.mousedown$, tuiCloseWatcher().pipe(tuiZonefull())).subscribe(subscriber));
61
- this.win = inject(WA_WINDOW);
62
- this.doc = inject(DOCUMENT);
63
- this.el = tuiInjectElement();
64
- this.esc$ = tuiTypedFromEvent(this.doc, 'keydown').pipe(filter((event) => {
65
- const target = tuiGetActualTarget(event);
66
- return (
67
- // @ts-ignore
68
- typeof CloseWatcher === 'undefined' &&
69
- event.key?.toLowerCase() === 'escape' &&
70
- !event.defaultPrevented &&
71
- (this.el.contains(target) || this.isOutside(target)));
72
- }));
73
- this.mousedown$ = tuiTypedFromEvent(this.doc, 'mousedown').pipe(filter((event) => tuiGetViewportWidth(this.win) - event.clientX > SCROLLBAR_PLACEHOLDER &&
74
- this.isOutside(tuiGetActualTarget(event))), switchMap(() => tuiTypedFromEvent(this.doc, 'mouseup').pipe(take(1), map(tuiGetActualTarget), filter((target) => this.isOutside(target)))));
75
- }
76
- isOutside(target) {
77
- return (tuiIsElement(target) &&
78
- (!tuiContainsOrAfter(this.el, target) ||
79
- // TODO: Drop 'new' attribute in v5
80
- (target === this.el && !this.el.hasAttribute('new'))));
81
- }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogCloseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
83
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogCloseService }); }
84
- }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogCloseService, decorators: [{
86
- type: Injectable
87
- }], ctorParameters: function () { return []; } });
88
-
89
- const REQUIRED_ERROR = new Error('Required dialog was dismissed');
90
- function toObservable(valueOrStream) {
91
- return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);
92
- }
93
- class TuiDialogComponent {
94
- constructor() {
95
- this.close$ = new Subject();
96
- this.context = injectContext();
97
- this.closeWord$ = inject(TUI_CLOSE_WORD);
98
- this.icons = inject(TUI_COMMON_ICONS);
99
- this.from = computed(() => this.size === 'fullscreen' || this.size === 'page' || this.isMobile()
100
- ? 'translateY(100vh)'
101
- : 'translateY(2.5rem)');
102
- this.isMobile = toSignal(inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')));
103
- merge(this.close$.pipe(switchMap(() => toObservable(this.context.closeable))), inject(TuiDialogCloseService).pipe(exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1)))), inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)))
104
- .pipe(filter(Boolean), takeUntilDestroyed())
105
- .subscribe(() => {
106
- this.close();
107
- });
108
- }
109
- get size() {
110
- return this.context.size;
111
- }
112
- get header() {
113
- return this.context.header;
114
- }
115
- close() {
116
- if (this.context.required) {
117
- this.context.$implicit.error(REQUIRED_ERROR);
118
- }
119
- else {
120
- this.context.$implicit.complete();
121
- }
122
- }
123
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
124
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDialogComponent, isStandalone: true, selector: "tui-dialog", host: { properties: { "attr.data-appearance": "context.appearance", "attr.data-size": "size", "class._centered": "header", "style.--tui-from": "from()" } }, providers: [TuiDialogCloseService], hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<header\n *ngIf=\"header\"\n class=\"t-header\"\n>\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n</header>\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closeable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n <div\n *ngIf=\"context.closeable || context.dismissible\"\n class=\"t-buttons\"\n >\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closeable === Observable<false>` by design -->\n<button\n *ngIf=\"context.closeable\"\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ closeWord$ | async }}\n</button>\n", styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1.5rem;border:2.5rem solid transparent}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}:host[data-size=auto]{inline-size:auto}:host[data-size=s]{inline-size:30rem}:host[data-size=s] .t-content{padding:1.5rem}:host[data-size=s] .t-heading{font:var(--tui-font-heading-5)}:host[data-size=m]{inline-size:42.5rem}:host[data-size=l]{inline-size:55rem}:host[data-size=fullscreen],:host[data-size=page]{min-inline-size:100vw;min-block-size:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}:host[data-size=fullscreen] .t-content,:host[data-size=page] .t-content{padding:3rem calc(50vw - 22.5rem)}:host[data-size=fullscreen] .t-heading,:host[data-size=page] .t-heading{font:var(--tui-font-heading-3)}:host._centered{text-align:center}:host :host-context(tui-root._mobile)[data-size]{min-inline-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;border:none;margin:auto 0 0;background:var(--tui-background-elevation-1);padding-block-end:env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size] .t-content{padding:1rem}:host :host-context(tui-root._mobile)[data-size] .t-heading{font:var(--tui-font-heading-5)}:host :host-context(tui-root._mobile)[data-size=fullscreen],:host :host-context(tui-root._mobile)[data-size=page]{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size=fullscreen] .t-close,:host :host-context(tui-root._mobile)[data-size=page] .t-close{top:max(1rem,env(safe-area-inset-top))}:host[data-size=page] .t-content,:host-context(tui-root._mobile) :host[data-size=page] .t-content{padding:0}.t-heading{margin:0 0 .5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}.t-heading_closable{padding-inline-end:2rem}.t-heading:empty{display:none}.t-header{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}:host[data-size=fullscreen] :host-context(tui-root._mobile) .t-header{flex:1}.t-content{border-radius:inherit;padding:1.75rem;background:var(--tui-background-elevation-1)}.t-content:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-content>section{border-radius:inherit}.t-filler{flex-grow:1}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:1rem;right:1rem}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:1rem}}.t-buttons{margin-block-start:1.25rem;text-align:end}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiAutoFocus, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
125
- }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogComponent, decorators: [{
127
- type: Component,
128
- args: [{ standalone: true, selector: 'tui-dialog', imports: [AsyncPipe, NgIf, PolymorpheusOutlet, TuiAutoFocus, TuiButton], changeDetection: ChangeDetectionStrategy.Default, providers: [TuiDialogCloseService], hostDirectives: [TuiAnimated], host: {
129
- '[attr.data-appearance]': 'context.appearance',
130
- '[attr.data-size]': 'size',
131
- '[class._centered]': 'header',
132
- '[style.--tui-from]': 'from()',
133
- }, template: "<header\n *ngIf=\"header\"\n class=\"t-header\"\n>\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n</header>\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closeable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n <div\n *ngIf=\"context.closeable || context.dismissible\"\n class=\"t-buttons\"\n >\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closeable === Observable<false>` by design -->\n<button\n *ngIf=\"context.closeable\"\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ closeWord$ | async }}\n</button>\n", styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1.5rem;border:2.5rem solid transparent}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}:host[data-size=auto]{inline-size:auto}:host[data-size=s]{inline-size:30rem}:host[data-size=s] .t-content{padding:1.5rem}:host[data-size=s] .t-heading{font:var(--tui-font-heading-5)}:host[data-size=m]{inline-size:42.5rem}:host[data-size=l]{inline-size:55rem}:host[data-size=fullscreen],:host[data-size=page]{min-inline-size:100vw;min-block-size:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}:host[data-size=fullscreen] .t-content,:host[data-size=page] .t-content{padding:3rem calc(50vw - 22.5rem)}:host[data-size=fullscreen] .t-heading,:host[data-size=page] .t-heading{font:var(--tui-font-heading-3)}:host._centered{text-align:center}:host :host-context(tui-root._mobile)[data-size]{min-inline-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;border:none;margin:auto 0 0;background:var(--tui-background-elevation-1);padding-block-end:env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size] .t-content{padding:1rem}:host :host-context(tui-root._mobile)[data-size] .t-heading{font:var(--tui-font-heading-5)}:host :host-context(tui-root._mobile)[data-size=fullscreen],:host :host-context(tui-root._mobile)[data-size=page]{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size=fullscreen] .t-close,:host :host-context(tui-root._mobile)[data-size=page] .t-close{top:max(1rem,env(safe-area-inset-top))}:host[data-size=page] .t-content,:host-context(tui-root._mobile) :host[data-size=page] .t-content{padding:0}.t-heading{margin:0 0 .5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}.t-heading_closable{padding-inline-end:2rem}.t-heading:empty{display:none}.t-header{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}:host[data-size=fullscreen] :host-context(tui-root._mobile) .t-header{flex:1}.t-content{border-radius:inherit;padding:1.75rem;background:var(--tui-background-elevation-1)}.t-content:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-content>section{border-radius:inherit}.t-filler{flex-grow:1}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:1rem;right:1rem}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:1rem}}.t-buttons{margin-block-start:1.25rem;text-align:end}\n"] }]
134
- }], ctorParameters: function () { return []; } });
135
-
136
- class TuiDialogService extends TuiPopoverService {
137
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
138
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, providedIn: 'root', useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)) }); }
139
- }
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, decorators: [{
141
- type: Injectable,
142
- args: [{
143
- providedIn: 'root',
144
- useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),
145
- }]
146
- }] });
147
-
148
- class TuiDialog extends TuiPopoverDirective {
149
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialog, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
150
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDialog, isStandalone: true, selector: "ng-template[tuiDialog]", inputs: { options: ["tuiDialogOptions", "options"], open: ["tuiDialog", "open"] }, outputs: { openChange: "tuiDialogChange" }, providers: [tuiAsPopover(TuiDialogService)], usesInheritance: true, ngImport: i0 }); }
151
- }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialog, decorators: [{
153
- type: Directive,
154
- args: [{
155
- standalone: true,
156
- selector: 'ng-template[tuiDialog]',
157
- inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],
158
- outputs: ['openChange: tuiDialogChange'],
159
- providers: [tuiAsPopover(TuiDialogService)],
160
- }]
161
- }] });
162
-
163
- function tuiDialog(component, { injector, ...options } = {}) {
164
- if (!injector) {
165
- assertInInjectionContext(tuiDialog);
166
- injector = inject(INJECTOR);
167
- }
168
- const dialogService = injector.get(TuiDialogService);
169
- return (data) => dialogService.open(new PolymorpheusComponent(component, injector), {
170
- ...options,
171
- data,
172
- });
173
- }
174
-
175
- class TuiActiveZoneAdapter {
176
- constructor() {
177
- this.current = inject(TuiActiveZone);
178
- this.parent = findActive(inject(TuiActiveZone, { skipSelf: true }), tuiGetNativeFocused(inject(DOCUMENT)));
179
- }
180
- ngOnInit() {
181
- this.current.tuiActiveZoneParentSetter = this.parent;
182
- }
183
- ngOnDestroy() {
184
- this.current.tuiActiveZoneParentSetter = null;
185
- }
186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiActiveZoneAdapter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
187
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiActiveZoneAdapter, isStandalone: true, selector: "[tuiActiveZoneAdapter]", hostDirectives: [{ directive: i1$1.TuiActiveZone }], ngImport: i0 }); }
188
- }
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiActiveZoneAdapter, decorators: [{
190
- type: Directive,
191
- args: [{
192
- standalone: true,
193
- selector: '[tuiActiveZoneAdapter]',
194
- hostDirectives: [TuiActiveZone],
195
- }]
196
- }] });
197
- function findActive(zone, element) {
198
- if (!element || !zone.contains(element)) {
199
- return null;
200
- }
201
- const active = zone.children.find((child) => child.contains(element));
202
- return active ? findActive(active, element) : zone;
203
- }
204
-
205
- class TuiDialogs {
206
- constructor() {
207
- this.dialogs = toSignal(inject(TUI_DIALOGS), { initialValue: [] });
208
- }
209
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
210
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDialogs, isStandalone: true, selector: "tui-dialogs", ngImport: i0, template: "<div\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs().length\"\n></div>\n<!--TODO: Rename to <article> in v5-->\n<section\n *ngFor=\"let item of dialogs()\"\n aria-modal=\"true\"\n role=\"dialog\"\n tuiActiveZoneAdapter\n tuiAnimatedParent\n tuiFocusTrap\n tuiScrollRef\n class=\"t-dialog\"\n [attr.aria-labelledby]=\"item.id\"\n>\n <ng-container *polymorpheusOutlet=\"item.component; context: item\" />\n <tui-scroll-controls class=\"t-scrollbars\" />\n</section>\n", styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:hidden;overscroll-behavior:none;overflow-wrap:break-word;margin-block-start:var(--t-root-top)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host:has(section){pointer-events:auto;overflow:auto}:host:has(section:only-of-type ::ng-deep tui-dialog[new][data-appearance~=fullscreen])>.t-overlay,:host:has(section:only-of-type ::ng-deep tui-notification-middle)>.t-overlay{opacity:0}:host:before{content:\"\";display:block;block-size:200%}.t-overlay,.t-dialog{transition-property:filter;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;block-size:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay::-webkit-scrollbar,.t-dialog::-webkit-scrollbar,.t-overlay::-webkit-scrollbar-thumb,.t-dialog::-webkit-scrollbar-thumb{display:none}.t-dialog{position:sticky;overscroll-behavior:none;filter:brightness(.25)}.t-dialog:has(tui-dialog[new]){display:grid;place-items:center}.t-dialog ::ng-deep>.tui-enter+.t-scrollbars .t-bar_vertical,.t-dialog ::ng-deep>.tui-leave+.t-scrollbars .t-bar_vertical{display:none}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none);opacity:0;transition-timing-function:ease-in}.t-overlay_visible{opacity:1;transition-timing-function:ease-out}.t-dialog:last-child{pointer-events:auto;filter:none}:host-context(tui-root:has(tui-dropdown-mobile._sheet)) .t-dialog:last-child{filter:brightness(.5)}.t-scrollbars{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}.t-scrollbars ::ng-deep .t-bar_horizontal,.t-scrollbars ::ng-deep .t-bar_vertical .t-thumb[style*=\"height: 100%\"]{display:none}\n"], dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiActiveZoneAdapter, selector: "[tuiActiveZoneAdapter]" }, { kind: "directive", type: TuiAnimatedParent, selector: "[tuiAnimatedParent]" }, { kind: "directive", type: TuiFocusTrap, selector: "[tuiFocusTrap]" }, { kind: "component", type: TuiScrollControls, selector: "tui-scroll-controls" }, { kind: "directive", type: TuiScrollRef, selector: "[tuiScrollRef]" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
211
- }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogs, decorators: [{
213
- type: Component,
214
- args: [{ standalone: true, selector: 'tui-dialogs', imports: [
215
- NgForOf,
216
- PolymorpheusOutlet,
217
- TuiActiveZoneAdapter,
218
- TuiAnimatedParent,
219
- TuiFocusTrap,
220
- TuiScrollControls,
221
- TuiScrollRef,
222
- ], changeDetection: ChangeDetectionStrategy.Default, template: "<div\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs().length\"\n></div>\n<!--TODO: Rename to <article> in v5-->\n<section\n *ngFor=\"let item of dialogs()\"\n aria-modal=\"true\"\n role=\"dialog\"\n tuiActiveZoneAdapter\n tuiAnimatedParent\n tuiFocusTrap\n tuiScrollRef\n class=\"t-dialog\"\n [attr.aria-labelledby]=\"item.id\"\n>\n <ng-container *polymorpheusOutlet=\"item.component; context: item\" />\n <tui-scroll-controls class=\"t-scrollbars\" />\n</section>\n", styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:hidden;overscroll-behavior:none;overflow-wrap:break-word;margin-block-start:var(--t-root-top)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host:has(section){pointer-events:auto;overflow:auto}:host:has(section:only-of-type ::ng-deep tui-dialog[new][data-appearance~=fullscreen])>.t-overlay,:host:has(section:only-of-type ::ng-deep tui-notification-middle)>.t-overlay{opacity:0}:host:before{content:\"\";display:block;block-size:200%}.t-overlay,.t-dialog{transition-property:filter;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;block-size:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay::-webkit-scrollbar,.t-dialog::-webkit-scrollbar,.t-overlay::-webkit-scrollbar-thumb,.t-dialog::-webkit-scrollbar-thumb{display:none}.t-dialog{position:sticky;overscroll-behavior:none;filter:brightness(.25)}.t-dialog:has(tui-dialog[new]){display:grid;place-items:center}.t-dialog ::ng-deep>.tui-enter+.t-scrollbars .t-bar_vertical,.t-dialog ::ng-deep>.tui-leave+.t-scrollbars .t-bar_vertical{display:none}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none);opacity:0;transition-timing-function:ease-in}.t-overlay_visible{opacity:1;transition-timing-function:ease-out}.t-dialog:last-child{pointer-events:auto;filter:none}:host-context(tui-root:has(tui-dropdown-mobile._sheet)) .t-dialog:last-child{filter:brightness(.5)}.t-scrollbars{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}.t-scrollbars ::ng-deep .t-bar_horizontal,.t-scrollbars ::ng-deep .t-bar_vertical .t-thumb[style*=\"height: 100%\"]{display:none}\n"] }]
223
- }] });
224
-
225
- /**
226
- * Generated bundle index. Do not edit.
227
- */
228
-
229
- export { TUI_DIALOGS, TUI_DIALOGS_CLOSE, TUI_DIALOG_DEFAULT_OPTIONS, TUI_DIALOG_OPTIONS, TuiDialog, TuiDialogCloseService, TuiDialogComponent, TuiDialogService, TuiDialogs, tuiDialog, tuiDialogOptionsProvider };
230
- //# sourceMappingURL=taiga-ui-core-components-dialog.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-components-dialog.mjs","sources":["../../../projects/core/components/dialog/dialog.tokens.ts","../../../projects/core/components/dialog/dialog-close.service.ts","../../../projects/core/components/dialog/dialog.component.ts","../../../projects/core/components/dialog/dialog.template.html","../../../projects/core/components/dialog/dialog.service.ts","../../../projects/core/components/dialog/dialog.directive.ts","../../../projects/core/components/dialog/dialog.factory.ts","../../../projects/core/components/dialog/active-zone-adapter.directive.ts","../../../projects/core/components/dialog/dialogs.component.ts","../../../projects/core/components/dialog/dialogs.template.html","../../../projects/core/components/dialog/taiga-ui-core-components-dialog.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {BehaviorSubject, EMPTY, type Observable} from 'rxjs';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\n\nexport const TUI_DIALOGS = new InjectionToken(ngDevMode ? 'TUI_DIALOGS' : '', {\n factory: () => new BehaviorSubject<ReadonlyArray<TuiPopover<any, any>>>([]),\n});\n\nexport const TUI_DIALOG_DEFAULT_OPTIONS: TuiDialogOptions<void> = {\n appearance: '',\n size: 'm',\n required: false,\n closeable: true,\n dismissible: true,\n label: '',\n header: '',\n data: undefined,\n};\n\n/**\n * A stream to close dialogs\n * TODO: use router.events in v5\n */\nexport const TUI_DIALOGS_CLOSE = new InjectionToken<Observable<unknown>>(\n ngDevMode ? 'TUI_DIALOGS_CLOSE' : '',\n {\n factory: () => EMPTY,\n },\n);\n\n/**\n * Default parameters for dialog component\n */\nexport const TUI_DIALOG_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_DIALOG_OPTIONS' : '',\n {\n factory: () => TUI_DIALOG_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiDialogOptionsProvider(\n options: Partial<TuiDialogOptions<unknown>>,\n): Provider {\n return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCloseWatcher, tuiTypedFromEvent, tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {\n tuiContainsOrAfter,\n tuiGetActualTarget,\n tuiInjectElement,\n tuiIsElement,\n} from '@taiga-ui/cdk/utils/dom';\nimport {tuiGetViewportWidth} from '@taiga-ui/core/utils';\nimport {filter, map, merge, Observable, switchMap, take} from 'rxjs';\n\nconst SCROLLBAR_PLACEHOLDER = 17;\n\n@Injectable()\nexport class TuiDialogCloseService extends Observable<unknown> {\n private readonly win = inject(WA_WINDOW);\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n\n private readonly esc$ = tuiTypedFromEvent(this.doc, 'keydown').pipe(\n filter((event) => {\n const target = tuiGetActualTarget(event);\n\n return (\n // @ts-ignore\n typeof CloseWatcher === 'undefined' &&\n event.key?.toLowerCase() === 'escape' &&\n !event.defaultPrevented &&\n (this.el.contains(target) || this.isOutside(target))\n );\n }),\n );\n\n private readonly mousedown$ = tuiTypedFromEvent(this.doc, 'mousedown').pipe(\n filter(\n (event) =>\n tuiGetViewportWidth(this.win) - event.clientX > SCROLLBAR_PLACEHOLDER &&\n this.isOutside(tuiGetActualTarget(event)),\n ),\n switchMap(() =>\n tuiTypedFromEvent(this.doc, 'mouseup').pipe(\n take(1),\n map(tuiGetActualTarget),\n filter((target) => this.isOutside(target)),\n ),\n ),\n );\n\n constructor() {\n super((subscriber) =>\n merge(\n this.esc$,\n this.mousedown$,\n tuiCloseWatcher().pipe(tuiZonefull()),\n ).subscribe(subscriber),\n );\n }\n\n private isOutside(target: EventTarget): boolean {\n return (\n tuiIsElement(target) &&\n (!tuiContainsOrAfter(this.el, target) ||\n // TODO: Drop 'new' attribute in v5\n (target === this.el && !this.el.hasAttribute('new')))\n );\n }\n}\n","import {AsyncPipe, NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiAutoFocus} from '@taiga-ui/cdk/directives/auto-focus';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiBreakpointService} from '@taiga-ui/core/services';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {\n injectContext,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\nimport {\n exhaustMap,\n filter,\n isObservable,\n map,\n merge,\n type Observable,\n of,\n Subject,\n switchMap,\n take,\n} from 'rxjs';\n\nimport {type TuiDialogOptions, type TuiDialogSize} from './dialog.interfaces';\nimport {TUI_DIALOGS_CLOSE} from './dialog.tokens';\nimport {TuiDialogCloseService} from './dialog-close.service';\n\nconst REQUIRED_ERROR = new Error('Required dialog was dismissed');\n\nfunction toObservable<T>(valueOrStream: Observable<T> | T): Observable<T> {\n return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);\n}\n\n@Component({\n standalone: true,\n selector: 'tui-dialog',\n imports: [AsyncPipe, NgIf, PolymorpheusOutlet, TuiAutoFocus, TuiButton],\n templateUrl: './dialog.template.html',\n styleUrls: ['./dialog.style.less'],\n // So we don't force OnPush on dialog content\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [TuiDialogCloseService],\n hostDirectives: [TuiAnimated],\n host: {\n '[attr.data-appearance]': 'context.appearance',\n '[attr.data-size]': 'size',\n '[class._centered]': 'header',\n '[style.--tui-from]': 'from()',\n },\n})\nexport class TuiDialogComponent<O, I> {\n protected readonly close$ = new Subject<void>();\n protected readonly context = injectContext<TuiPopover<TuiDialogOptions<I>, O>>();\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly from = computed(() =>\n this.size === 'fullscreen' || this.size === 'page' || this.isMobile()\n ? 'translateY(100vh)'\n : 'translateY(2.5rem)',\n );\n\n protected readonly isMobile = toSignal(\n inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')),\n );\n\n constructor() {\n merge(\n this.close$.pipe(switchMap(() => toObservable(this.context.closeable))),\n inject(TuiDialogCloseService).pipe(\n exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1))),\n ),\n inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)),\n )\n .pipe(filter(Boolean), takeUntilDestroyed())\n .subscribe(() => {\n this.close();\n });\n }\n\n protected get size(): TuiDialogSize {\n return this.context.size;\n }\n\n protected get header(): PolymorpheusContent<TuiPopover<TuiDialogOptions<I>, O>> {\n return this.context.header;\n }\n\n private close(): void {\n if (this.context.required) {\n this.context.$implicit.error(REQUIRED_ERROR);\n } else {\n this.context.$implicit.complete();\n }\n }\n}\n","<header\n *ngIf=\"header\"\n class=\"t-header\"\n>\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n</header>\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closeable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n <div\n *ngIf=\"context.closeable || context.dismissible\"\n class=\"t-buttons\"\n >\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closeable === Observable<false>` by design -->\n<button\n *ngIf=\"context.closeable\"\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ closeWord$ | async }}\n</button>\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\n\nimport {TuiDialogComponent} from './dialog.component';\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TUI_DIALOG_OPTIONS, TUI_DIALOGS} from './dialog.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),\n})\nexport class TuiDialogService extends TuiPopoverService<TuiDialogOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiDialog]',\n inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],\n outputs: ['openChange: tuiDialogChange'],\n providers: [tuiAsPopover(TuiDialogService)],\n})\nexport class TuiDialog<T> extends TuiPopoverDirective<TuiDialogOptions<T>> {}\n","import {assertInInjectionContext, inject, INJECTOR, type Injector} from '@angular/core';\nimport {PolymorpheusComponent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {type TuiDialogContext, type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\ntype SingleUnionOrNever<T, U = T> = [T] extends [never]\n ? never\n : T extends U\n ? [U] extends [T]\n ? T\n : never\n : never;\n\ntype ReplaceAny<T> = 0 extends T & 1 ? void : T;\n\ntype ContextKeys<T> = {\n [K in keyof T]: ReplaceAny<T[K]> extends TuiDialogContext<any, any> | null\n ? K\n : never;\n}[keyof T];\n\ntype AssertNotMultipleContexts<T, K extends keyof T> = [K] extends [never]\n ? new (...args: any[]) => T\n : [SingleUnionOrNever<K>] extends [never]\n ? 'Component has multiple context. Cannot determine the type...'\n : new (...args: any[]) => T;\n\ntype ExtractDialogData<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<any, infer D> | null\n ? D\n : void;\n\ntype ExtractDialogResult<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<infer R, any> | null\n ? R\n : void;\n\ntype Options<T> = Omit<TuiDialogOptions<T>, 'data'> & {injector: Injector};\n\nexport function tuiDialog<\n T,\n K extends ContextKeys<T>,\n D extends ExtractDialogData<T, K>,\n R extends ExtractDialogResult<T, K>,\n>(\n component: AssertNotMultipleContexts<T, K>,\n {injector, ...options}: Partial<Options<D>> = {},\n): (data: D) => Observable<R> {\n if (!injector) {\n assertInInjectionContext(tuiDialog);\n injector = inject(INJECTOR);\n }\n\n const dialogService = injector.get(TuiDialogService);\n\n return (data) =>\n dialogService.open(\n new PolymorpheusComponent(component as new () => T, injector),\n {\n ...options,\n data,\n },\n );\n}\n","import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, type OnDestroy, type OnInit} from '@angular/core';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {tuiGetNativeFocused} from '@taiga-ui/cdk/utils/focus';\n\n@Directive({\n standalone: true,\n selector: '[tuiActiveZoneAdapter]',\n hostDirectives: [TuiActiveZone],\n})\nexport class TuiActiveZoneAdapter implements OnDestroy, OnInit {\n private readonly current = inject(TuiActiveZone);\n private readonly parent = findActive(\n inject(TuiActiveZone, {skipSelf: true}),\n tuiGetNativeFocused(inject(DOCUMENT)),\n );\n\n public ngOnInit(): void {\n this.current.tuiActiveZoneParentSetter = this.parent;\n }\n\n public ngOnDestroy(): void {\n this.current.tuiActiveZoneParentSetter = null;\n }\n}\n\nfunction findActive(zone: TuiActiveZone, element: Element | null): TuiActiveZone | null {\n if (!element || !zone.contains(element)) {\n return null;\n }\n\n const active = zone.children.find((child) => child.contains(element));\n\n return active ? findActive(active, element) : zone;\n}\n","import {NgForOf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, inject, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TuiAnimatedParent} from '@taiga-ui/cdk/directives/animated';\nimport {TuiFocusTrap} from '@taiga-ui/cdk/directives/focus-trap';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiScrollControls, TuiScrollRef} from '@taiga-ui/core/components/scrollbar';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TuiActiveZoneAdapter} from './active-zone-adapter.directive';\nimport {TUI_DIALOGS} from './dialog.tokens';\n\n@Component({\n standalone: true,\n selector: 'tui-dialogs',\n imports: [\n NgForOf,\n PolymorpheusOutlet,\n TuiActiveZoneAdapter,\n TuiAnimatedParent,\n TuiFocusTrap,\n TuiScrollControls,\n TuiScrollRef,\n ],\n templateUrl: './dialogs.template.html',\n styleUrls: ['./dialogs.style.less'],\n // So that we do not force OnPush on custom dialogs\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class TuiDialogs {\n protected readonly dialogs: Signal<ReadonlyArray<TuiPopover<any, any>>> = toSignal(\n inject(TUI_DIALOGS),\n {initialValue: []},\n );\n}\n","<div\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs().length\"\n></div>\n<!--TODO: Rename to <article> in v5-->\n<section\n *ngFor=\"let item of dialogs()\"\n aria-modal=\"true\"\n role=\"dialog\"\n tuiActiveZoneAdapter\n tuiAnimatedParent\n tuiFocusTrap\n tuiScrollRef\n class=\"t-dialog\"\n [attr.aria-labelledby]=\"item.id\"\n>\n <ng-container *polymorpheusOutlet=\"item.component; context: item\" />\n <tui-scroll-controls class=\"t-scrollbars\" />\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOa,MAAA,WAAW,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,aAAa,GAAG,EAAE,EAAE;IAC1E,OAAO,EAAE,MAAM,IAAI,eAAe,CAAsC,EAAE,CAAC;AAC9E,CAAA,EAAE;AAEU,MAAA,0BAA0B,GAA2B;AAC9D,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,IAAI,EAAE,SAAS;EACjB;AAEF;;;AAGG;AACU,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,MAAM,KAAK;AACvB,CAAA,EACH;AAEF;;AAEG;AACU,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,MAAM,0BAA0B;AAC5C,CAAA,EACH;AAEI,SAAU,wBAAwB,CACpC,OAA2C,EAAA;IAE3C,OAAO,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,EAAE,0BAA0B,CAAC,CAAC;AACtF;;AClCA,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAEjC,MACa,qBAAsB,SAAQ,UAAmB,CAAA;AAkC1D,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KACb,KAAK,CACD,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,UAAU,EACf,eAAe,EAAE,CAAC,IAAI,CAAC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,QAAA,EACN,aAAa,EACd,OAAA,EAAA;wBACL,OAAO;wBACP,kBAAkB;wBAClB,oBAAoB;wBACpB,iBAAiB;wBACjB,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;qBACf,EAKgB,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,wgBAAA,EAAA,MAAA,EAAA,CAAA,6/DAAA,CAAA,EAAA,CAAA;;;AE5BpD;;AAEG;;;;"}
@@ -1,77 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, signal, EventEmitter, ElementRef, Component, ChangeDetectionStrategy, ViewChild, Output, Input } from '@angular/core';
4
- import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
5
- import { TuiRoot } from '@taiga-ui/core/components/root';
6
-
7
- class TuiFullscreen {
8
- constructor() {
9
- this.doc = inject(DOCUMENT);
10
- this.open = signal(false);
11
- this.opened = new EventEmitter();
12
- this.options = { navigationUI: 'auto' };
13
- }
14
- set fullscreen(open) {
15
- if (this.open() === open) {
16
- return;
17
- }
18
- if (open) {
19
- this.root?.nativeElement
20
- .requestFullscreen(this.options)
21
- .then(() => this.fullscreenState(open));
22
- }
23
- else {
24
- this.doc
25
- .exitFullscreen()
26
- .then(() => this.fullscreenState(open))
27
- .catch((error) => console.error('Failed to exit fullscreen:', error));
28
- }
29
- }
30
- closedByEscape(event) {
31
- const escaped = !this.doc.fullscreenElement && event.target === this.root?.nativeElement;
32
- if (escaped) {
33
- this.fullscreenState(false);
34
- }
35
- }
36
- fullscreenState(open) {
37
- this.open.set(open);
38
- this.opened.emit(open);
39
- }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFullscreen, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiFullscreen, isStandalone: true, selector: "[tuiFullscreen]", inputs: { options: ["tuiFullscreenOptions", "options"], fullscreen: ["tuiFullscreen", "fullscreen"] }, outputs: { opened: "tuiFullscreenChange" }, host: { listeners: { "document:fullscreenchange": "closedByEscape($event)" } }, viewQueries: [{ propertyName: "root", first: true, predicate: TuiRoot, descendants: true, read: ElementRef }], ngImport: i0, template: '<tui-root><ng-content /></tui-root>', isInline: true, styles: ["tui-root{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}tui-root::-webkit-scrollbar,tui-root::-webkit-scrollbar-thumb{display:none}\n"], dependencies: [{ kind: "component", type: TuiRoot, selector: "tui-root" }], viewProviders: [
42
- {
43
- provide: TuiActiveZone,
44
- useValue: null,
45
- },
46
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFullscreen, decorators: [{
49
- type: Component,
50
- args: [{ standalone: true, selector: '[tuiFullscreen]', imports: [TuiRoot], template: '<tui-root><ng-content /></tui-root>', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
51
- {
52
- provide: TuiActiveZone,
53
- useValue: null,
54
- },
55
- ], host: {
56
- '(document:fullscreenchange)': 'closedByEscape($event)',
57
- }, styles: ["tui-root{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}tui-root::-webkit-scrollbar,tui-root::-webkit-scrollbar-thumb{display:none}\n"] }]
58
- }], propDecorators: { root: [{
59
- type: ViewChild,
60
- args: [TuiRoot, { read: ElementRef }]
61
- }], opened: [{
62
- type: Output,
63
- args: ['tuiFullscreenChange']
64
- }], options: [{
65
- type: Input,
66
- args: ['tuiFullscreenOptions']
67
- }], fullscreen: [{
68
- type: Input,
69
- args: ['tuiFullscreen']
70
- }] } });
71
-
72
- /**
73
- * Generated bundle index. Do not edit.
74
- */
75
-
76
- export { TuiFullscreen };
77
- //# sourceMappingURL=taiga-ui-core-components-fullscreen.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-components-fullscreen.mjs","sources":["../../../projects/core/components/fullscreen/fullscreen.component.ts","../../../projects/core/components/fullscreen/taiga-ui-core-components-fullscreen.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {TuiRoot} from '@taiga-ui/core/components/root';\n\n@Component({\n standalone: true,\n selector: '[tuiFullscreen]',\n imports: [TuiRoot],\n template: '<tui-root><ng-content /></tui-root>',\n styleUrls: ['./fullscreen.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [\n {\n provide: TuiActiveZone,\n useValue: null,\n },\n ],\n host: {\n '(document:fullscreenchange)': 'closedByEscape($event)',\n },\n})\nexport class TuiFullscreen {\n @ViewChild(TuiRoot, {read: ElementRef})\n private readonly root?: ElementRef<HTMLElement>;\n\n private readonly doc = inject(DOCUMENT);\n protected readonly open = signal(false);\n\n @Output('tuiFullscreenChange')\n public readonly opened = new EventEmitter<boolean>();\n\n @Input('tuiFullscreenOptions')\n public options?: FullscreenOptions = {navigationUI: 'auto'};\n\n @Input('tuiFullscreen')\n public set fullscreen(open: boolean) {\n if (this.open() === open) {\n return;\n }\n\n if (open) {\n this.root?.nativeElement\n .requestFullscreen(this.options)\n .then(() => this.fullscreenState(open));\n } else {\n this.doc\n .exitFullscreen()\n .then(() => this.fullscreenState(open))\n .catch((error: unknown) =>\n console.error('Failed to exit fullscreen:', error),\n );\n }\n }\n\n protected closedByEscape(event: Event): void {\n const escaped =\n !this.doc.fullscreenElement && event.target === this.root?.nativeElement;\n\n if (escaped) {\n this.fullscreenState(false);\n }\n }\n\n private fullscreenState(open: boolean): void {\n this.open.set(open);\n this.opened.emit(open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],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