@taiga-ui/cdk 2.54.1 → 2.57.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 (671) hide show
  1. package/bundles/taiga-ui-cdk-abstract.umd.js +12 -12
  2. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-cdk-classes.umd.js +7 -7
  5. package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
  6. package/bundles/taiga-ui-cdk-classes.umd.min.js +1 -1
  7. package/bundles/taiga-ui-cdk-classes.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-cdk-coercion.umd.js +1 -1
  9. package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
  10. package/bundles/taiga-ui-cdk-coercion.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +1 -1
  12. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-components-alert-host.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +4 -4
  15. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  16. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +2 -2
  18. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-cdk-components-portal-host.umd.js +1 -1
  21. package/bundles/taiga-ui-cdk-components-portal-host.umd.js.map +1 -1
  22. package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-constants.umd.js +24 -16
  24. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-constants.umd.min.js +1 -1
  26. package/bundles/taiga-ui-cdk-constants.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-date-time.umd.js +35 -35
  28. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-date-time.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-cdk-decorators.umd.js +1 -1
  31. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  32. package/bundles/taiga-ui-cdk-decorators.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
  34. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +15 -15
  37. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  38. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +6 -6
  40. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
  41. package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-cdk-directives-checked.umd.js +6 -6
  43. package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
  44. package/bundles/taiga-ui-cdk-directives-checked.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +3 -3
  46. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
  47. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-cdk-directives-drag.umd.js +4 -4
  49. package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
  50. package/bundles/taiga-ui-cdk-directives-drag.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -5
  52. package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
  53. package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-cdk-directives-element.umd.js +2 -2
  55. package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
  56. package/bundles/taiga-ui-cdk-directives-element.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +5 -5
  58. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
  59. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js.map +1 -1
  60. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +2 -2
  61. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
  62. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-cdk-directives-focusable.umd.js +3 -3
  64. package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
  65. package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-cdk-directives-focused.umd.js +2 -2
  67. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  68. package/bundles/taiga-ui-cdk-directives-focused.umd.min.js.map +1 -1
  69. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +1 -1
  70. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  71. package/bundles/taiga-ui-cdk-directives-for-async.umd.min.js.map +1 -1
  72. package/bundles/taiga-ui-cdk-directives-for.umd.js +1 -1
  73. package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
  74. package/bundles/taiga-ui-cdk-directives-for.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +1 -1
  76. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
  77. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +7 -4
  79. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  80. package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js +1 -1
  81. package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-cdk-directives-input-mode.umd.js +10 -10
  83. package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +1 -1
  84. package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-cdk-directives-item.umd.js +1 -1
  86. package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
  87. package/bundles/taiga-ui-cdk-directives-item.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-cdk-directives-let.umd.js +1 -1
  89. package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
  90. package/bundles/taiga-ui-cdk-directives-let.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-cdk-directives-media.umd.js +12 -12
  92. package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
  93. package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-cdk-directives-obscured.umd.js +1 -1
  95. package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
  96. package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js.map +1 -1
  97. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +11 -11
  98. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  99. package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-cdk-directives-pan.umd.js +2 -2
  101. package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
  102. package/bundles/taiga-ui-cdk-directives-pan.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-cdk-directives-portal.umd.js +1 -1
  104. package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
  105. package/bundles/taiga-ui-cdk-directives-portal.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-cdk-directives-pressed.umd.js +1 -1
  107. package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
  108. package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
  110. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  111. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js.map +1 -1
  112. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +1 -1
  113. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
  114. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-cdk-directives-resize.umd.js +2 -2
  116. package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
  117. package/bundles/taiga-ui-cdk-directives-resize.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-cdk-directives-swipe.umd.js +2 -2
  119. package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
  120. package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-cdk-directives-validator.umd.js +1 -1
  122. package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
  123. package/bundles/taiga-ui-cdk-directives-validator.umd.min.js.map +1 -1
  124. package/bundles/taiga-ui-cdk-directives-zoom.umd.js +3 -3
  125. package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
  126. package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
  128. package/bundles/taiga-ui-cdk-enums.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-cdk-exceptions.umd.js +10 -10
  130. package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
  131. package/bundles/taiga-ui-cdk-exceptions.umd.min.js.map +1 -1
  132. package/bundles/taiga-ui-cdk-observables.umd.js +7 -7
  133. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  134. package/bundles/taiga-ui-cdk-observables.umd.min.js.map +1 -1
  135. package/bundles/taiga-ui-cdk-pipes-filter.umd.js +1 -1
  136. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  137. package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +1 -1
  139. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  140. package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js.map +1 -1
  141. package/bundles/taiga-ui-cdk-services.umd.js +27 -27
  142. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  143. package/bundles/taiga-ui-cdk-services.umd.min.js.map +1 -1
  144. package/bundles/taiga-ui-cdk-tokens.umd.js +31 -31
  145. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  146. package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
  147. package/bundles/taiga-ui-cdk-utils-browser.umd.js +5 -5
  148. package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
  149. package/bundles/taiga-ui-cdk-utils-browser.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-cdk-utils-dom.umd.js +17 -11
  151. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  152. package/bundles/taiga-ui-cdk-utils-dom.umd.min.js +1 -1
  153. package/bundles/taiga-ui-cdk-utils-dom.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-cdk-utils-focus.umd.js +19 -19
  155. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  156. package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-cdk-utils-format.umd.js +2 -2
  158. package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
  159. package/bundles/taiga-ui-cdk-utils-format.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-cdk-utils-math.umd.js +4 -4
  161. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  162. package/bundles/taiga-ui-cdk-utils-math.umd.min.js.map +1 -1
  163. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +4 -4
  164. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  165. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-cdk-utils-os.umd.js +1 -1
  167. package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
  168. package/bundles/taiga-ui-cdk-utils-os.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-cdk-utils-svg.umd.js +1 -1
  170. package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
  171. package/bundles/taiga-ui-cdk-utils-svg.umd.min.js.map +1 -1
  172. package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
  173. package/constants/unicode-chars.d.ts +9 -2
  174. package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
  175. package/directives/hovered/taiga-ui-cdk-directives-hovered.metadata.json +1 -1
  176. package/esm2015/abstract/control.js +4 -4
  177. package/esm2015/abstract/interactive.js +8 -8
  178. package/esm2015/abstract/portal-host.js +2 -2
  179. package/esm2015/abstract/theme-switcher.js +2 -2
  180. package/esm2015/classes/assert.js +8 -8
  181. package/esm2015/coercion/coerce-boolean-property.js +2 -2
  182. package/esm2015/components/alert-host/alert-host.component.js +2 -2
  183. package/esm2015/components/dialog-host/dialog-host.component.js +5 -5
  184. package/esm2015/components/dropdown-host/dropdown-host.component.js +3 -3
  185. package/esm2015/components/portal-host/portal.service.js +2 -2
  186. package/esm2015/constants/parent-animation.js +5 -5
  187. package/esm2015/constants/svg-node-filter.js +2 -2
  188. package/esm2015/constants/unicode-chars.js +19 -12
  189. package/esm2015/date-time/date-fillers.js +3 -3
  190. package/esm2015/date-time/date-format.js +3 -3
  191. package/esm2015/date-time/date-separator.js +3 -3
  192. package/esm2015/date-time/day-range.js +7 -7
  193. package/esm2015/date-time/day.js +14 -14
  194. package/esm2015/date-time/month.js +2 -2
  195. package/esm2015/date-time/time.js +7 -7
  196. package/esm2015/date-time/year.js +2 -2
  197. package/esm2015/decorators/pure.js +2 -2
  198. package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
  199. package/esm2015/directives/auto-focus/autofocus.directive.js +2 -2
  200. package/esm2015/directives/auto-focus/autofocus.options.js +2 -2
  201. package/esm2015/directives/auto-focus/handlers/abstract.handler.js +2 -2
  202. package/esm2015/directives/auto-focus/handlers/default.handler.js +2 -2
  203. package/esm2015/directives/auto-focus/handlers/ios.handler.js +12 -12
  204. package/esm2015/directives/autofilled/autofilled-style.component.js +2 -2
  205. package/esm2015/directives/autofilled/autofilled.directive.js +6 -6
  206. package/esm2015/directives/checked/checked.directive.js +7 -7
  207. package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
  208. package/esm2015/directives/drag/drag.directive.js +5 -5
  209. package/esm2015/directives/droppable/droppable.directive.js +5 -5
  210. package/esm2015/directives/element/element.directive.js +3 -3
  211. package/esm2015/directives/focus-trap/focus-trap.directive.js +6 -6
  212. package/esm2015/directives/focus-visible/focus-visible.directive.js +3 -3
  213. package/esm2015/directives/focusable/focusable.directive.js +4 -4
  214. package/esm2015/directives/focused/focused.directive.js +3 -3
  215. package/esm2015/directives/for/for.directive.js +2 -2
  216. package/esm2015/directives/for-async/for-async.directive.js +2 -2
  217. package/esm2015/directives/high-dpi/high-dpi.directive.js +2 -2
  218. package/esm2015/directives/hovered/hovered.directive.js +8 -5
  219. package/esm2015/directives/input-mode/input-mode.directive.js +11 -11
  220. package/esm2015/directives/item/item.directive.js +2 -2
  221. package/esm2015/directives/let/let.directive.js +2 -2
  222. package/esm2015/directives/media/media.directive.js +13 -13
  223. package/esm2015/directives/obscured/obscured.directive.js +2 -2
  224. package/esm2015/directives/overscroll/overscroll.directive.js +12 -12
  225. package/esm2015/directives/pan/pan.directive.js +3 -3
  226. package/esm2015/directives/portal/portal.directive.js +2 -2
  227. package/esm2015/directives/pressed/pressed.directive.js +2 -2
  228. package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
  229. package/esm2015/directives/repeat-times/repeat-times.directive.js +2 -2
  230. package/esm2015/directives/resize/resize.directive.js +3 -3
  231. package/esm2015/directives/swipe/swipe.directive.js +3 -3
  232. package/esm2015/directives/validator/validator.directive.js +2 -2
  233. package/esm2015/directives/zoom/zoom.directive.js +4 -4
  234. package/esm2015/enums/autocomplete.js +1 -1
  235. package/esm2015/enums/input-mode.js +1 -1
  236. package/esm2015/enums/input-type.js +1 -1
  237. package/esm2015/enums/overscroll-mode.js +1 -1
  238. package/esm2015/exceptions/computed-document.exception.js +2 -2
  239. package/esm2015/exceptions/document-selection.exception.js +2 -2
  240. package/esm2015/exceptions/no-host.exception.js +2 -2
  241. package/esm2015/exceptions/owner-document.exception.js +2 -2
  242. package/esm2015/exceptions/pure.exception.js +2 -2
  243. package/esm2015/exceptions/table-sort-key.exception.js +2 -2
  244. package/esm2015/exceptions/ts-parser.exception.js +2 -2
  245. package/esm2015/exceptions/value-changes.exception.js +2 -2
  246. package/esm2015/exceptions/value-present.exception.js +2 -2
  247. package/esm2015/exceptions/xml-parsing.exception.js +2 -2
  248. package/esm2015/observables/drag-and-drop-from.js +2 -2
  249. package/esm2015/observables/focus-visible-observable.js +5 -5
  250. package/esm2015/observables/mouse-drag-finish-from.js +2 -2
  251. package/esm2015/observables/pressed-observable.js +2 -2
  252. package/esm2015/pipes/filter/filter.pipe.js +2 -2
  253. package/esm2015/pipes/mapper/mapper.pipe.js +2 -2
  254. package/esm2015/services/directive-styles.service.js +5 -5
  255. package/esm2015/services/hovered.service.js +4 -4
  256. package/esm2015/services/id.service.js +3 -3
  257. package/esm2015/services/obscured.service.js +2 -2
  258. package/esm2015/services/pan.service.js +5 -5
  259. package/esm2015/services/parents-scroll.service.js +2 -2
  260. package/esm2015/services/scroll.service.js +5 -5
  261. package/esm2015/services/static-request.service.js +3 -3
  262. package/esm2015/services/swipe.service.js +2 -2
  263. package/esm2015/services/zoom.service.js +3 -3
  264. package/esm2015/tokens/active-element.js +9 -9
  265. package/esm2015/tokens/alerts.js +2 -2
  266. package/esm2015/tokens/default-renderer.js +2 -2
  267. package/esm2015/tokens/dialogs.js +2 -2
  268. package/esm2015/tokens/focusable-item-accessor.js +2 -2
  269. package/esm2015/tokens/is-android.js +2 -2
  270. package/esm2015/tokens/is-apple.js +2 -2
  271. package/esm2015/tokens/is-chromium.js +2 -2
  272. package/esm2015/tokens/is-cypress.js +2 -2
  273. package/esm2015/tokens/is-firefox.js +3 -3
  274. package/esm2015/tokens/is-ios.js +2 -2
  275. package/esm2015/tokens/is-mobile.js +2 -2
  276. package/esm2015/tokens/is-webkit.js +2 -2
  277. package/esm2015/tokens/removed-element.js +2 -2
  278. package/esm2015/tokens/sanitizer.js +2 -2
  279. package/esm2015/tokens/swipe-options.js +2 -2
  280. package/esm2015/tokens/take-only-trusted-events.js +2 -2
  281. package/esm2015/tokens/touch-supported.js +3 -3
  282. package/esm2015/tokens/window-height.js +3 -3
  283. package/esm2015/tokens/zoom-options.js +2 -2
  284. package/esm2015/utils/browser/is-edge-older-than.js +2 -2
  285. package/esm2015/utils/browser/is-edge.js +2 -2
  286. package/esm2015/utils/browser/is-firefox.js +2 -2
  287. package/esm2015/utils/browser/is-ie.js +2 -2
  288. package/esm2015/utils/browser/is-safari.js +2 -2
  289. package/esm2015/utils/dom/custom-event.js +3 -3
  290. package/esm2015/utils/dom/get-actual-target.js +2 -2
  291. package/esm2015/utils/dom/get-clipboard-data-text.js +4 -4
  292. package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -2
  293. package/esm2015/utils/dom/get-element-offset.js +2 -2
  294. package/esm2015/utils/dom/index.js +2 -1
  295. package/esm2015/utils/dom/is-element.js +5 -0
  296. package/esm2015/utils/dom/is-form-field.js +4 -4
  297. package/esm2015/utils/focus/is-native-keyboard-focusable.js +14 -14
  298. package/esm2015/utils/focus/is-native-mouse-focusable.js +3 -3
  299. package/esm2015/utils/focus/set-native-mouse-focused.js +5 -5
  300. package/esm2015/utils/format/pad-start.js +2 -2
  301. package/esm2015/utils/format/px.js +2 -2
  302. package/esm2015/utils/math/round.js +5 -5
  303. package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
  304. package/esm2015/utils/miscellaneous/get-swipe-direction.js +3 -3
  305. package/esm2015/utils/miscellaneous/is-number.js +2 -2
  306. package/esm2015/utils/os/is-apple-platform.js +2 -2
  307. package/esm2015/utils/svg/svg-linear-gradient-processor.js +2 -2
  308. package/esm5/abstract/control.js +4 -4
  309. package/esm5/abstract/interactive.js +8 -8
  310. package/esm5/abstract/portal-host.js +2 -2
  311. package/esm5/abstract/theme-switcher.js +2 -2
  312. package/esm5/classes/assert.js +8 -8
  313. package/esm5/coercion/coerce-boolean-property.js +2 -2
  314. package/esm5/components/alert-host/alert-host.component.js +2 -2
  315. package/esm5/components/dialog-host/dialog-host.component.js +5 -5
  316. package/esm5/components/dropdown-host/dropdown-host.component.js +3 -3
  317. package/esm5/components/portal-host/portal.service.js +2 -2
  318. package/esm5/constants/parent-animation.js +5 -5
  319. package/esm5/constants/svg-node-filter.js +2 -2
  320. package/esm5/constants/unicode-chars.js +19 -12
  321. package/esm5/date-time/date-fillers.js +3 -3
  322. package/esm5/date-time/date-format.js +3 -3
  323. package/esm5/date-time/date-separator.js +3 -3
  324. package/esm5/date-time/day-range.js +8 -8
  325. package/esm5/date-time/day.js +15 -15
  326. package/esm5/date-time/month.js +2 -2
  327. package/esm5/date-time/time.js +7 -7
  328. package/esm5/date-time/year.js +2 -2
  329. package/esm5/decorators/pure.js +2 -2
  330. package/esm5/directives/active-zone/active-zone.directive.js +4 -4
  331. package/esm5/directives/auto-focus/autofocus.directive.js +2 -2
  332. package/esm5/directives/auto-focus/autofocus.options.js +2 -2
  333. package/esm5/directives/auto-focus/handlers/abstract.handler.js +2 -2
  334. package/esm5/directives/auto-focus/handlers/default.handler.js +2 -2
  335. package/esm5/directives/auto-focus/handlers/ios.handler.js +12 -12
  336. package/esm5/directives/autofilled/autofilled-style.component.js +2 -2
  337. package/esm5/directives/autofilled/autofilled.directive.js +6 -6
  338. package/esm5/directives/checked/checked.directive.js +7 -7
  339. package/esm5/directives/copy-processor/copy-processor.directive.js +4 -4
  340. package/esm5/directives/drag/drag.directive.js +5 -5
  341. package/esm5/directives/droppable/droppable.directive.js +6 -6
  342. package/esm5/directives/element/element.directive.js +3 -3
  343. package/esm5/directives/focus-trap/focus-trap.directive.js +6 -6
  344. package/esm5/directives/focus-visible/focus-visible.directive.js +3 -3
  345. package/esm5/directives/focusable/focusable.directive.js +4 -4
  346. package/esm5/directives/focused/focused.directive.js +3 -3
  347. package/esm5/directives/for/for.directive.js +2 -2
  348. package/esm5/directives/for-async/for-async.directive.js +2 -2
  349. package/esm5/directives/high-dpi/high-dpi.directive.js +2 -2
  350. package/esm5/directives/hovered/hovered.directive.js +8 -5
  351. package/esm5/directives/input-mode/input-mode.directive.js +11 -11
  352. package/esm5/directives/item/item.directive.js +2 -2
  353. package/esm5/directives/let/let.directive.js +2 -2
  354. package/esm5/directives/media/media.directive.js +13 -13
  355. package/esm5/directives/obscured/obscured.directive.js +2 -2
  356. package/esm5/directives/overscroll/overscroll.directive.js +12 -12
  357. package/esm5/directives/pan/pan.directive.js +3 -3
  358. package/esm5/directives/portal/portal.directive.js +2 -2
  359. package/esm5/directives/pressed/pressed.directive.js +2 -2
  360. package/esm5/directives/prevent-default/prevent-default.directive.js +4 -4
  361. package/esm5/directives/repeat-times/repeat-times.directive.js +2 -2
  362. package/esm5/directives/resize/resize.directive.js +3 -3
  363. package/esm5/directives/swipe/swipe.directive.js +3 -3
  364. package/esm5/directives/validator/validator.directive.js +2 -2
  365. package/esm5/directives/zoom/zoom.directive.js +4 -4
  366. package/esm5/enums/autocomplete.js +1 -1
  367. package/esm5/enums/input-mode.js +1 -1
  368. package/esm5/enums/input-type.js +1 -1
  369. package/esm5/enums/overscroll-mode.js +1 -1
  370. package/esm5/exceptions/computed-document.exception.js +2 -2
  371. package/esm5/exceptions/document-selection.exception.js +2 -2
  372. package/esm5/exceptions/no-host.exception.js +2 -2
  373. package/esm5/exceptions/owner-document.exception.js +2 -2
  374. package/esm5/exceptions/pure.exception.js +2 -2
  375. package/esm5/exceptions/table-sort-key.exception.js +2 -2
  376. package/esm5/exceptions/ts-parser.exception.js +2 -2
  377. package/esm5/exceptions/value-changes.exception.js +2 -2
  378. package/esm5/exceptions/value-present.exception.js +2 -2
  379. package/esm5/exceptions/xml-parsing.exception.js +2 -2
  380. package/esm5/observables/drag-and-drop-from.js +2 -2
  381. package/esm5/observables/focus-visible-observable.js +5 -5
  382. package/esm5/observables/mouse-drag-finish-from.js +2 -2
  383. package/esm5/observables/pressed-observable.js +2 -2
  384. package/esm5/pipes/filter/filter.pipe.js +2 -2
  385. package/esm5/pipes/mapper/mapper.pipe.js +2 -2
  386. package/esm5/services/directive-styles.service.js +5 -5
  387. package/esm5/services/hovered.service.js +5 -5
  388. package/esm5/services/id.service.js +3 -3
  389. package/esm5/services/obscured.service.js +2 -2
  390. package/esm5/services/pan.service.js +5 -5
  391. package/esm5/services/parents-scroll.service.js +2 -2
  392. package/esm5/services/scroll.service.js +5 -5
  393. package/esm5/services/static-request.service.js +3 -3
  394. package/esm5/services/swipe.service.js +2 -2
  395. package/esm5/services/zoom.service.js +5 -5
  396. package/esm5/tokens/active-element.js +10 -10
  397. package/esm5/tokens/alerts.js +2 -2
  398. package/esm5/tokens/default-renderer.js +2 -2
  399. package/esm5/tokens/dialogs.js +2 -2
  400. package/esm5/tokens/focusable-item-accessor.js +2 -2
  401. package/esm5/tokens/is-android.js +2 -2
  402. package/esm5/tokens/is-apple.js +2 -2
  403. package/esm5/tokens/is-chromium.js +2 -2
  404. package/esm5/tokens/is-cypress.js +2 -2
  405. package/esm5/tokens/is-firefox.js +3 -3
  406. package/esm5/tokens/is-ios.js +2 -2
  407. package/esm5/tokens/is-mobile.js +2 -2
  408. package/esm5/tokens/is-webkit.js +2 -2
  409. package/esm5/tokens/removed-element.js +2 -2
  410. package/esm5/tokens/sanitizer.js +2 -2
  411. package/esm5/tokens/swipe-options.js +2 -2
  412. package/esm5/tokens/take-only-trusted-events.js +2 -2
  413. package/esm5/tokens/touch-supported.js +3 -3
  414. package/esm5/tokens/window-height.js +3 -3
  415. package/esm5/tokens/zoom-options.js +2 -2
  416. package/esm5/utils/browser/is-edge-older-than.js +2 -2
  417. package/esm5/utils/browser/is-edge.js +2 -2
  418. package/esm5/utils/browser/is-firefox.js +2 -2
  419. package/esm5/utils/browser/is-ie.js +2 -2
  420. package/esm5/utils/browser/is-safari.js +2 -2
  421. package/esm5/utils/dom/custom-event.js +3 -3
  422. package/esm5/utils/dom/get-actual-target.js +2 -2
  423. package/esm5/utils/dom/get-clipboard-data-text.js +4 -4
  424. package/esm5/utils/dom/get-document-or-shadow-root.js +2 -2
  425. package/esm5/utils/dom/get-element-offset.js +2 -2
  426. package/esm5/utils/dom/index.js +2 -1
  427. package/esm5/utils/dom/is-element.js +5 -0
  428. package/esm5/utils/dom/is-form-field.js +4 -4
  429. package/esm5/utils/focus/is-native-keyboard-focusable.js +14 -14
  430. package/esm5/utils/focus/is-native-mouse-focusable.js +3 -3
  431. package/esm5/utils/focus/set-native-mouse-focused.js +5 -5
  432. package/esm5/utils/format/pad-start.js +2 -2
  433. package/esm5/utils/format/px.js +2 -2
  434. package/esm5/utils/math/round.js +5 -5
  435. package/esm5/utils/miscellaneous/ease-in-out-quad.js +2 -2
  436. package/esm5/utils/miscellaneous/get-swipe-direction.js +3 -3
  437. package/esm5/utils/miscellaneous/is-number.js +2 -2
  438. package/esm5/utils/os/is-apple-platform.js +2 -2
  439. package/esm5/utils/svg/svg-linear-gradient-processor.js +2 -2
  440. package/fesm2015/taiga-ui-cdk-abstract.js +12 -12
  441. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  442. package/fesm2015/taiga-ui-cdk-classes.js +7 -7
  443. package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
  444. package/fesm2015/taiga-ui-cdk-coercion.js +1 -1
  445. package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
  446. package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
  447. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  448. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +4 -4
  449. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  450. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +2 -2
  451. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  452. package/fesm2015/taiga-ui-cdk-components-portal-host.js +1 -1
  453. package/fesm2015/taiga-ui-cdk-components-portal-host.js.map +1 -1
  454. package/fesm2015/taiga-ui-cdk-constants.js +24 -17
  455. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  456. package/fesm2015/taiga-ui-cdk-date-time.js +33 -33
  457. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  458. package/fesm2015/taiga-ui-cdk-decorators.js +1 -1
  459. package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
  460. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
  461. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  462. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +15 -15
  463. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  464. package/fesm2015/taiga-ui-cdk-directives-autofilled.js +6 -6
  465. package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  466. package/fesm2015/taiga-ui-cdk-directives-checked.js +6 -6
  467. package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
  468. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
  469. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  470. package/fesm2015/taiga-ui-cdk-directives-drag.js +4 -4
  471. package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
  472. package/fesm2015/taiga-ui-cdk-directives-droppable.js +4 -4
  473. package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
  474. package/fesm2015/taiga-ui-cdk-directives-element.js +2 -2
  475. package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
  476. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +5 -5
  477. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  478. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +2 -2
  479. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  480. package/fesm2015/taiga-ui-cdk-directives-focusable.js +3 -3
  481. package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
  482. package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
  483. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  484. package/fesm2015/taiga-ui-cdk-directives-for-async.js +1 -1
  485. package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
  486. package/fesm2015/taiga-ui-cdk-directives-for.js +1 -1
  487. package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
  488. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +1 -1
  489. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  490. package/fesm2015/taiga-ui-cdk-directives-hovered.js +7 -4
  491. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  492. package/fesm2015/taiga-ui-cdk-directives-input-mode.js +10 -10
  493. package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  494. package/fesm2015/taiga-ui-cdk-directives-item.js +1 -1
  495. package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
  496. package/fesm2015/taiga-ui-cdk-directives-let.js +1 -1
  497. package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
  498. package/fesm2015/taiga-ui-cdk-directives-media.js +12 -12
  499. package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
  500. package/fesm2015/taiga-ui-cdk-directives-obscured.js +1 -1
  501. package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
  502. package/fesm2015/taiga-ui-cdk-directives-overscroll.js +11 -11
  503. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  504. package/fesm2015/taiga-ui-cdk-directives-pan.js +2 -2
  505. package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
  506. package/fesm2015/taiga-ui-cdk-directives-portal.js +1 -1
  507. package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
  508. package/fesm2015/taiga-ui-cdk-directives-pressed.js +1 -1
  509. package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
  510. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
  511. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  512. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +1 -1
  513. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  514. package/fesm2015/taiga-ui-cdk-directives-resize.js +2 -2
  515. package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
  516. package/fesm2015/taiga-ui-cdk-directives-swipe.js +2 -2
  517. package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
  518. package/fesm2015/taiga-ui-cdk-directives-validator.js +1 -1
  519. package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
  520. package/fesm2015/taiga-ui-cdk-directives-zoom.js +3 -3
  521. package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
  522. package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
  523. package/fesm2015/taiga-ui-cdk-exceptions.js +10 -10
  524. package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
  525. package/fesm2015/taiga-ui-cdk-observables.js +7 -7
  526. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  527. package/fesm2015/taiga-ui-cdk-pipes-filter.js +1 -1
  528. package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
  529. package/fesm2015/taiga-ui-cdk-pipes-mapper.js +1 -1
  530. package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  531. package/fesm2015/taiga-ui-cdk-services.js +24 -24
  532. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  533. package/fesm2015/taiga-ui-cdk-tokens.js +30 -30
  534. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  535. package/fesm2015/taiga-ui-cdk-utils-browser.js +5 -5
  536. package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
  537. package/fesm2015/taiga-ui-cdk-utils-dom.js +17 -12
  538. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  539. package/fesm2015/taiga-ui-cdk-utils-focus.js +19 -19
  540. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  541. package/fesm2015/taiga-ui-cdk-utils-format.js +2 -2
  542. package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
  543. package/fesm2015/taiga-ui-cdk-utils-math.js +4 -4
  544. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  545. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +4 -4
  546. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  547. package/fesm2015/taiga-ui-cdk-utils-os.js +1 -1
  548. package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
  549. package/fesm2015/taiga-ui-cdk-utils-svg.js +1 -1
  550. package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
  551. package/fesm5/taiga-ui-cdk-abstract.js +12 -12
  552. package/fesm5/taiga-ui-cdk-abstract.js.map +1 -1
  553. package/fesm5/taiga-ui-cdk-classes.js +7 -7
  554. package/fesm5/taiga-ui-cdk-classes.js.map +1 -1
  555. package/fesm5/taiga-ui-cdk-coercion.js +1 -1
  556. package/fesm5/taiga-ui-cdk-coercion.js.map +1 -1
  557. package/fesm5/taiga-ui-cdk-components-alert-host.js +1 -1
  558. package/fesm5/taiga-ui-cdk-components-alert-host.js.map +1 -1
  559. package/fesm5/taiga-ui-cdk-components-dialog-host.js +4 -4
  560. package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  561. package/fesm5/taiga-ui-cdk-components-dropdown-host.js +2 -2
  562. package/fesm5/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  563. package/fesm5/taiga-ui-cdk-components-portal-host.js +1 -1
  564. package/fesm5/taiga-ui-cdk-components-portal-host.js.map +1 -1
  565. package/fesm5/taiga-ui-cdk-constants.js +24 -17
  566. package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
  567. package/fesm5/taiga-ui-cdk-date-time.js +35 -35
  568. package/fesm5/taiga-ui-cdk-date-time.js.map +1 -1
  569. package/fesm5/taiga-ui-cdk-decorators.js +1 -1
  570. package/fesm5/taiga-ui-cdk-decorators.js.map +1 -1
  571. package/fesm5/taiga-ui-cdk-directives-active-zone.js +3 -3
  572. package/fesm5/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  573. package/fesm5/taiga-ui-cdk-directives-auto-focus.js +15 -15
  574. package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  575. package/fesm5/taiga-ui-cdk-directives-autofilled.js +6 -6
  576. package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  577. package/fesm5/taiga-ui-cdk-directives-checked.js +6 -6
  578. package/fesm5/taiga-ui-cdk-directives-checked.js.map +1 -1
  579. package/fesm5/taiga-ui-cdk-directives-copy-processor.js +3 -3
  580. package/fesm5/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  581. package/fesm5/taiga-ui-cdk-directives-drag.js +4 -4
  582. package/fesm5/taiga-ui-cdk-directives-drag.js.map +1 -1
  583. package/fesm5/taiga-ui-cdk-directives-droppable.js +5 -5
  584. package/fesm5/taiga-ui-cdk-directives-droppable.js.map +1 -1
  585. package/fesm5/taiga-ui-cdk-directives-element.js +2 -2
  586. package/fesm5/taiga-ui-cdk-directives-element.js.map +1 -1
  587. package/fesm5/taiga-ui-cdk-directives-focus-trap.js +5 -5
  588. package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  589. package/fesm5/taiga-ui-cdk-directives-focus-visible.js +2 -2
  590. package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  591. package/fesm5/taiga-ui-cdk-directives-focusable.js +3 -3
  592. package/fesm5/taiga-ui-cdk-directives-focusable.js.map +1 -1
  593. package/fesm5/taiga-ui-cdk-directives-focused.js +2 -2
  594. package/fesm5/taiga-ui-cdk-directives-focused.js.map +1 -1
  595. package/fesm5/taiga-ui-cdk-directives-for-async.js +1 -1
  596. package/fesm5/taiga-ui-cdk-directives-for-async.js.map +1 -1
  597. package/fesm5/taiga-ui-cdk-directives-for.js +1 -1
  598. package/fesm5/taiga-ui-cdk-directives-for.js.map +1 -1
  599. package/fesm5/taiga-ui-cdk-directives-high-dpi.js +1 -1
  600. package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  601. package/fesm5/taiga-ui-cdk-directives-hovered.js +7 -4
  602. package/fesm5/taiga-ui-cdk-directives-hovered.js.map +1 -1
  603. package/fesm5/taiga-ui-cdk-directives-input-mode.js +10 -10
  604. package/fesm5/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  605. package/fesm5/taiga-ui-cdk-directives-item.js +1 -1
  606. package/fesm5/taiga-ui-cdk-directives-item.js.map +1 -1
  607. package/fesm5/taiga-ui-cdk-directives-let.js +1 -1
  608. package/fesm5/taiga-ui-cdk-directives-let.js.map +1 -1
  609. package/fesm5/taiga-ui-cdk-directives-media.js +12 -12
  610. package/fesm5/taiga-ui-cdk-directives-media.js.map +1 -1
  611. package/fesm5/taiga-ui-cdk-directives-obscured.js +1 -1
  612. package/fesm5/taiga-ui-cdk-directives-obscured.js.map +1 -1
  613. package/fesm5/taiga-ui-cdk-directives-overscroll.js +11 -11
  614. package/fesm5/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  615. package/fesm5/taiga-ui-cdk-directives-pan.js +2 -2
  616. package/fesm5/taiga-ui-cdk-directives-pan.js.map +1 -1
  617. package/fesm5/taiga-ui-cdk-directives-portal.js +1 -1
  618. package/fesm5/taiga-ui-cdk-directives-portal.js.map +1 -1
  619. package/fesm5/taiga-ui-cdk-directives-pressed.js +1 -1
  620. package/fesm5/taiga-ui-cdk-directives-pressed.js.map +1 -1
  621. package/fesm5/taiga-ui-cdk-directives-prevent-default.js +3 -3
  622. package/fesm5/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  623. package/fesm5/taiga-ui-cdk-directives-repeat-times.js +1 -1
  624. package/fesm5/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  625. package/fesm5/taiga-ui-cdk-directives-resize.js +2 -2
  626. package/fesm5/taiga-ui-cdk-directives-resize.js.map +1 -1
  627. package/fesm5/taiga-ui-cdk-directives-swipe.js +2 -2
  628. package/fesm5/taiga-ui-cdk-directives-swipe.js.map +1 -1
  629. package/fesm5/taiga-ui-cdk-directives-validator.js +1 -1
  630. package/fesm5/taiga-ui-cdk-directives-validator.js.map +1 -1
  631. package/fesm5/taiga-ui-cdk-directives-zoom.js +3 -3
  632. package/fesm5/taiga-ui-cdk-directives-zoom.js.map +1 -1
  633. package/fesm5/taiga-ui-cdk-enums.js.map +1 -1
  634. package/fesm5/taiga-ui-cdk-exceptions.js +10 -10
  635. package/fesm5/taiga-ui-cdk-exceptions.js.map +1 -1
  636. package/fesm5/taiga-ui-cdk-observables.js +7 -7
  637. package/fesm5/taiga-ui-cdk-observables.js.map +1 -1
  638. package/fesm5/taiga-ui-cdk-pipes-filter.js +1 -1
  639. package/fesm5/taiga-ui-cdk-pipes-filter.js.map +1 -1
  640. package/fesm5/taiga-ui-cdk-pipes-mapper.js +1 -1
  641. package/fesm5/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  642. package/fesm5/taiga-ui-cdk-services.js +27 -27
  643. package/fesm5/taiga-ui-cdk-services.js.map +1 -1
  644. package/fesm5/taiga-ui-cdk-tokens.js +31 -31
  645. package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
  646. package/fesm5/taiga-ui-cdk-utils-browser.js +5 -5
  647. package/fesm5/taiga-ui-cdk-utils-browser.js.map +1 -1
  648. package/fesm5/taiga-ui-cdk-utils-dom.js +17 -12
  649. package/fesm5/taiga-ui-cdk-utils-dom.js.map +1 -1
  650. package/fesm5/taiga-ui-cdk-utils-focus.js +19 -19
  651. package/fesm5/taiga-ui-cdk-utils-focus.js.map +1 -1
  652. package/fesm5/taiga-ui-cdk-utils-format.js +2 -2
  653. package/fesm5/taiga-ui-cdk-utils-format.js.map +1 -1
  654. package/fesm5/taiga-ui-cdk-utils-math.js +4 -4
  655. package/fesm5/taiga-ui-cdk-utils-math.js.map +1 -1
  656. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +4 -4
  657. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  658. package/fesm5/taiga-ui-cdk-utils-os.js +1 -1
  659. package/fesm5/taiga-ui-cdk-utils-os.js.map +1 -1
  660. package/fesm5/taiga-ui-cdk-utils-svg.js +1 -1
  661. package/fesm5/taiga-ui-cdk-utils-svg.js.map +1 -1
  662. package/package.json +1 -1
  663. package/schematics/ng-add/constants/modules.js +4 -4
  664. package/schematics/ng-update/constants/consts.js +30 -0
  665. package/schematics/ng-update/constants/modules.js +1 -0
  666. package/schematics/ng-update/constants/templates.d.ts +8 -0
  667. package/schematics/ng-update/constants/templates.js +10 -0
  668. package/schematics/ng-update/constants/warnings.js +10 -0
  669. package/utils/dom/index.d.ts +1 -0
  670. package/utils/dom/is-element.d.ts +1 -0
  671. package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-components-alert-host.js","sources":["ng://@taiga-ui/cdk/components/alert-host/alert-host.component.ts","ng://@taiga-ui/cdk/components/alert-host/alert-host.module.ts","ng://@taiga-ui/cdk/components/alert-host/taiga-ui-cdk-components-alert-host.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n INJECTOR,\n Injector,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_ALERTS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog, TuiMapper} from '@taiga-ui/cdk/types';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-alert-host',\n templateUrl: './alert-host.template.html',\n styleUrls: ['./alert-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [TUI_PARENT_ANIMATION],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAlertHostComponent<T extends TuiDialog<unknown, unknown>> {\n constructor(\n @Inject(TUI_ALERTS) readonly alerts: Array<Observable<readonly T[]>>,\n @Inject(INJECTOR) private readonly injector: Injector,\n ) {}\n\n readonly mapper: TuiMapper<unknown, Injector> = useValue =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk/pipes';\n\nimport {TuiAlertHostComponent} from './alert-host.component';\n\n@NgModule({\n imports: [CommonModule, TuiMapperPipeModule],\n declarations: [TuiAlertHostComponent],\n exports: [TuiAlertHostComponent],\n})\nexport class TuiAlertHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAsBa,qBAAqB,GAAlC,MAAa,qBAAqB;IAC9B,YACiC,MAAuC,EACjC,QAAkB;QADxB,WAAM,GAAN,MAAM,CAAiC;QACjC,aAAQ,GAAR,QAAQ,CAAU;QAGhD,WAAM,GAAiC,QAAQ,IACpD,QAAQ,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,oBAAoB;oBAC7B,QAAQ;iBACX;aACJ;YACD,MAAM,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAC;KAXH;EAYP;;YAd4C,KAAK,uBAAzC,MAAM,SAAC,UAAU;YAC2B,QAAQ,uBAApD,MAAM,SAAC,QAAQ;;AAHX,qBAAqB;IARjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,sVAAyC;QAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,oBAAoB,CAAC;QAClC,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAHZ,qBAAqB,CAgBjC;;IC3BY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;QAC5C,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACXlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-components-alert-host.js","sources":["ng://@taiga-ui/cdk/components/alert-host/alert-host.component.ts","ng://@taiga-ui/cdk/components/alert-host/alert-host.module.ts","ng://@taiga-ui/cdk/components/alert-host/taiga-ui-cdk-components-alert-host.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n INJECTOR,\n Injector,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_ALERTS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog, TuiMapper} from '@taiga-ui/cdk/types';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-alert-host`,\n templateUrl: `./alert-host.template.html`,\n styleUrls: [`./alert-host.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [TUI_PARENT_ANIMATION],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAlertHostComponent<T extends TuiDialog<unknown, unknown>> {\n constructor(\n @Inject(TUI_ALERTS) readonly alerts: Array<Observable<readonly T[]>>,\n @Inject(INJECTOR) private readonly injector: Injector,\n ) {}\n\n readonly mapper: TuiMapper<unknown, Injector> = useValue =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk/pipes';\n\nimport {TuiAlertHostComponent} from './alert-host.component';\n\n@NgModule({\n imports: [CommonModule, TuiMapperPipeModule],\n declarations: [TuiAlertHostComponent],\n exports: [TuiAlertHostComponent],\n})\nexport class TuiAlertHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAsBa,qBAAqB,GAAlC,MAAa,qBAAqB;IAC9B,YACiC,MAAuC,EACjC,QAAkB;QADxB,WAAM,GAAN,MAAM,CAAiC;QACjC,aAAQ,GAAR,QAAQ,CAAU;QAGhD,WAAM,GAAiC,QAAQ,IACpD,QAAQ,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,oBAAoB;oBAC7B,QAAQ;iBACX;aACJ;YACD,MAAM,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAC;KAXH;EAYP;;YAd4C,KAAK,uBAAzC,MAAM,SAAC,UAAU;YAC2B,QAAQ,uBAApD,MAAM,SAAC,QAAQ;;AAHX,qBAAqB;IARjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,sVAAyC;QAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,oBAAoB,CAAC;QAClC,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAHZ,qBAAqB,CAgBjC;;IC3BY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;QAC5C,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACXlC;;;;;;"}
@@ -12,11 +12,11 @@ import { TuiFocusTrapModule } from '@taiga-ui/cdk/directives/focus-trap';
12
12
  import { TuiOverscrollModule } from '@taiga-ui/cdk/directives/overscroll';
13
13
  import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
14
14
 
15
- const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken('Is closing dialog on browser backward navigation enabled', {
15
+ const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken(`Is closing dialog on browser backward navigation enabled`, {
16
16
  factory: () => of(false),
17
17
  });
18
18
  // TODO: 3.0 remove in ivy compilation
19
- const FAKE_HISTORY_STATE = { label: 'ignoreMe' };
19
+ const FAKE_HISTORY_STATE = { label: `ignoreMe` };
20
20
  // TODO: 3.0 remove in ivy compilation
21
21
  const isFakeHistoryState = (historyState) => (historyState === null || historyState === void 0 ? void 0 : historyState.label) === FAKE_HISTORY_STATE.label;
22
22
  // @dynamic
@@ -44,7 +44,7 @@ let TuiDialogHostComponent = class TuiDialogHostComponent {
44
44
  last.$implicit.complete();
45
45
  }
46
46
  onDialog({ propertyName }, popupOpened, isDialogClosesOnBack) {
47
- if (!isDialogClosesOnBack || propertyName !== 'letter-spacing') {
47
+ if (!isDialogClosesOnBack || propertyName !== `letter-spacing`) {
48
48
  return;
49
49
  }
50
50
  if (popupOpened) {
@@ -63,7 +63,7 @@ TuiDialogHostComponent.ctorParameters = () => [
63
63
  ];
64
64
  TuiDialogHostComponent = __decorate([
65
65
  Component({
66
- selector: 'tui-dialog-host',
66
+ selector: `tui-dialog-host`,
67
67
  template: "<ng-container *ngIf=\"dialogs$ | async as dialogs\">\n <section\n *ngFor=\"let item of dialogs\"\n polymorpheus-outlet\n tuiFocusTrap\n tuiScrollRef\n tuiOverscroll=\"all\"\n role=\"dialog\"\n aria-modal=\"true\"\n class=\"t-dialog\"\n @tuiParentAnimation\n [attr.aria-labelledby]=\"item.id\"\n [content]=\"item.component\"\n [context]=\"item\"\n ></section>\n <div\n *tuiLet=\"isDialogClosesOnBack$ | async as isDialogClosesOnBack\"\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs.length\"\n (window:popstate)=\"closeLast(dialogs, isDialogClosesOnBack)\"\n (transitionend)=\"onDialog($event, !!dialogs.length, isDialogClosesOnBack)\"\n ></div>\n</ng-container>\n",
68
68
  changeDetection: ChangeDetectionStrategy.OnPush,
69
69
  animations: [TUI_PARENT_ANIMATION],
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-components-dialog-host.js","sources":["ng://@taiga-ui/cdk/components/dialog-host/dialog-host.component.ts","ng://@taiga-ui/cdk/components/dialog-host/dialog-host.module.ts","ng://@taiga-ui/cdk/components/dialog-host/taiga-ui-cdk-components-dialog-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, InjectionToken} from '@angular/core';\nimport {Title} from '@angular/platform-browser';\nimport {HISTORY} from '@ng-web-apis/common';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog} from '@taiga-ui/cdk/types';\nimport {combineLatest, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nexport const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken<Observable<boolean>>(\n 'Is closing dialog on browser backward navigation enabled',\n {\n factory: () => of(false),\n },\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport const FAKE_HISTORY_STATE = {label: 'ignoreMe'} as const;\n// TODO: 3.0 remove in ivy compilation\nexport const isFakeHistoryState = (\n historyState: Record<string, unknown>,\n): historyState is typeof FAKE_HISTORY_STATE =>\n historyState?.label === FAKE_HISTORY_STATE.label;\n\n// @dynamic\n@Component({\n selector: 'tui-dialog-host',\n templateUrl: './dialog-host.template.html',\n styleUrls: ['./dialog-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [TUI_PARENT_ANIMATION],\n})\nexport class TuiDialogHostComponent<T extends TuiDialog<unknown, unknown>> {\n readonly dialogs$ = combineLatest(this.dialogsByType).pipe(\n map(allTypesDialogs =>\n new Array<T>()\n .concat(...allTypesDialogs)\n .sort((a, b) => a.createdAt - b.createdAt),\n ),\n );\n\n constructor(\n @Inject(TUI_DIALOG_CLOSES_ON_BACK)\n readonly isDialogClosesOnBack$: Observable<boolean>,\n @Inject(TUI_DIALOGS)\n private readonly dialogsByType: Array<Observable<readonly T[]>>,\n @Inject(HISTORY) private readonly historyRef: History,\n @Inject(Title) private readonly titleService: Title,\n ) {}\n\n closeLast(dialogs: readonly T[], isDialogClosesOnBack: boolean): void {\n if (!isDialogClosesOnBack) {\n return;\n }\n\n const [last] = dialogs.slice(-1);\n\n if (!last) {\n return;\n }\n\n if (dialogs.length > 1) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n }\n\n last.$implicit.complete();\n }\n\n onDialog(\n {propertyName}: TransitionEvent,\n popupOpened: boolean,\n isDialogClosesOnBack: boolean,\n ): void {\n if (!isDialogClosesOnBack || propertyName !== 'letter-spacing') {\n return;\n }\n\n if (popupOpened) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n } else if (isFakeHistoryState(this.historyRef.state)) {\n this.historyRef.back();\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk/directives';\nimport {TuiFocusTrapModule} from '@taiga-ui/cdk/directives/focus-trap';\nimport {TuiOverscrollModule} from '@taiga-ui/cdk/directives/overscroll';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDialogHostComponent} from './dialog-host.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiOverscrollModule,\n TuiFocusTrapModule,\n TuiLetModule,\n ],\n declarations: [TuiDialogHostComponent],\n exports: [TuiDialogHostComponent],\n})\nexport class TuiDialogHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"taiga-ui-cdk-components-dialog-host.js","sources":["ng://@taiga-ui/cdk/components/dialog-host/dialog-host.component.ts","ng://@taiga-ui/cdk/components/dialog-host/dialog-host.module.ts","ng://@taiga-ui/cdk/components/dialog-host/taiga-ui-cdk-components-dialog-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, InjectionToken} from '@angular/core';\nimport {Title} from '@angular/platform-browser';\nimport {HISTORY} from '@ng-web-apis/common';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog} from '@taiga-ui/cdk/types';\nimport {combineLatest, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nexport const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken<Observable<boolean>>(\n `Is closing dialog on browser backward navigation enabled`,\n {\n factory: () => of(false),\n },\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport const FAKE_HISTORY_STATE = {label: `ignoreMe`} as const;\n// TODO: 3.0 remove in ivy compilation\nexport const isFakeHistoryState = (\n historyState: Record<string, unknown>,\n): historyState is typeof FAKE_HISTORY_STATE =>\n historyState?.label === FAKE_HISTORY_STATE.label;\n\n// @dynamic\n@Component({\n selector: `tui-dialog-host`,\n templateUrl: `./dialog-host.template.html`,\n styleUrls: [`./dialog-host.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [TUI_PARENT_ANIMATION],\n})\nexport class TuiDialogHostComponent<T extends TuiDialog<unknown, unknown>> {\n readonly dialogs$ = combineLatest(this.dialogsByType).pipe(\n map(allTypesDialogs =>\n new Array<T>()\n .concat(...allTypesDialogs)\n .sort((a, b) => a.createdAt - b.createdAt),\n ),\n );\n\n constructor(\n @Inject(TUI_DIALOG_CLOSES_ON_BACK)\n readonly isDialogClosesOnBack$: Observable<boolean>,\n @Inject(TUI_DIALOGS)\n private readonly dialogsByType: Array<Observable<readonly T[]>>,\n @Inject(HISTORY) private readonly historyRef: History,\n @Inject(Title) private readonly titleService: Title,\n ) {}\n\n closeLast(dialogs: readonly T[], isDialogClosesOnBack: boolean): void {\n if (!isDialogClosesOnBack) {\n return;\n }\n\n const [last] = dialogs.slice(-1);\n\n if (!last) {\n return;\n }\n\n if (dialogs.length > 1) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n }\n\n last.$implicit.complete();\n }\n\n onDialog(\n {propertyName}: TransitionEvent,\n popupOpened: boolean,\n isDialogClosesOnBack: boolean,\n ): void {\n if (!isDialogClosesOnBack || propertyName !== `letter-spacing`) {\n return;\n }\n\n if (popupOpened) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n } else if (isFakeHistoryState(this.historyRef.state)) {\n this.historyRef.back();\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk/directives';\nimport {TuiFocusTrapModule} from '@taiga-ui/cdk/directives/focus-trap';\nimport {TuiOverscrollModule} from '@taiga-ui/cdk/directives/overscroll';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDialogHostComponent} from './dialog-host.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiOverscrollModule,\n TuiFocusTrapModule,\n TuiLetModule,\n ],\n declarations: [TuiDialogHostComponent],\n exports: [TuiDialogHostComponent],\n})\nexport class TuiDialogHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MASa,yBAAyB,GAAG,IAAI,cAAc,CACvD,0DAA0D,EAC1D;IACI,OAAO,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC;CAC3B,EACH;AAEF;MACa,kBAAkB,GAAG,EAAC,KAAK,EAAE,UAAU,GAAW;AAC/D;MACa,kBAAkB,GAAG,CAC9B,YAAqC,KAErC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,MAAK,kBAAkB,CAAC,MAAM;AAErD;IAQa,sBAAsB,GAAnC,MAAa,sBAAsB;IAS/B,YAEa,qBAA0C,EAElC,aAA8C,EAC7B,UAAmB,EACrB,YAAmB;QAJ1C,0BAAqB,GAArB,qBAAqB,CAAqB;QAElC,kBAAa,GAAb,aAAa,CAAiC;QAC7B,eAAU,GAAV,UAAU,CAAS;QACrB,iBAAY,GAAZ,YAAY,CAAO;QAd9C,aAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CACtD,GAAG,CAAC,eAAe,IACf,IAAI,KAAK,EAAK;aACT,MAAM,CAAC,GAAG,eAAe,CAAC;aAC1B,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,CACjD,CACJ,CAAC;KASE;IAEJ,SAAS,CAAC,OAAqB,EAAE,oBAA6B;QAC1D,IAAI,CAAC,oBAAoB,EAAE;YACvB,OAAO;SACV;QAED,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEjC,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QAED,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;QAED,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;KAC7B;IAED,QAAQ,CACJ,EAAC,YAAY,EAAkB,EAC/B,WAAoB,EACpB,oBAA6B;QAE7B,IAAI,CAAC,oBAAoB,IAAI,YAAY,KAAK,gBAAgB,EAAE;YAC5D,OAAO;SACV;QAED,IAAI,WAAW,EAAE;YACb,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;aAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAClD,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SAC1B;KACJ;EACJ;;YAxCuC,UAAU,uBADzC,MAAM,SAAC,yBAAyB;YAGD,KAAK,uBADpC,MAAM,SAAC,WAAW;YAE2B,OAAO,uBAApD,MAAM,SAAC,OAAO;YAC+B,KAAK,uBAAlD,MAAM,SAAC,KAAK;;AAfR,sBAAsB;IAPlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,kzBAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,oBAAoB,CAAC;;KACrC,CAAC;IAWO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;IAEjC,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;IAEnB,WAAA,MAAM,CAAC,OAAO,CAAC,CAAA;IACf,WAAA,MAAM,CAAC,KAAK,CAAC,CAAA;GAfT,sBAAsB,CAmDlC;;IC/DY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAX/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,kBAAkB;YAClB,mBAAmB;YACnB,kBAAkB;YAClB,YAAY;SACf;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACpBnC;;;;;;"}
@@ -15,11 +15,11 @@ let TuiDropdownHostComponent = class TuiDropdownHostComponent extends AbstractTu
15
15
  }
16
16
  };
17
17
  __decorate([
18
- ViewChild('positionFixedOffset')
18
+ ViewChild(`positionFixedOffset`)
19
19
  ], TuiDropdownHostComponent.prototype, "positionFixedOffsetRef", void 0);
20
20
  TuiDropdownHostComponent = __decorate([
21
21
  Component({
22
- selector: 'tui-dropdown-host',
22
+ selector: `tui-dropdown-host`,
23
23
  template: "<div\n #positionFixedOffset\n class=\"position-fixed-offset\"\n></div>\n<ng-content></ng-content>\n<ng-container #viewContainer></ng-container>\n",
24
24
  changeDetection: ChangeDetectionStrategy.OnPush,
25
25
  providers: [{ provide: AbstractTuiPortalService, useExisting: TuiPortalService }],
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-components-dropdown-host.js","sources":["ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.component.ts","ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.module.ts","ng://@taiga-ui/cdk/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, ViewChild} from '@angular/core';\nimport {\n AbstractTuiPortalHostComponent,\n AbstractTuiPortalService,\n} from '@taiga-ui/cdk/abstract';\nimport {TuiPortalService} from '@taiga-ui/cdk/components/portal-host';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\n\n/**\n * Host element for dynamically created portals, for example using {@link TuiDropdownDirective}.\n */\n@Component({\n selector: 'tui-dropdown-host',\n templateUrl: './dropdown-host.template.html',\n styleUrls: ['./dropdown-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: AbstractTuiPortalService, useExisting: TuiPortalService}],\n})\nexport class TuiDropdownHostComponent extends AbstractTuiPortalHostComponent {\n @ViewChild('positionFixedOffset')\n private readonly positionFixedOffsetRef?: ElementRef<HTMLDivElement>;\n\n fixedPositionOffset(): ClientRect {\n return (\n this.positionFixedOffsetRef?.nativeElement.getBoundingClientRect() ||\n EMPTY_CLIENT_RECT\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDropdownHostComponent} from './dropdown-host.component';\n\n@NgModule({\n declarations: [TuiDropdownHostComponent],\n exports: [TuiDropdownHostComponent],\n})\nexport class TuiDropdownHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAQA;;;IAUa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,8BAA8B;IAIxE,mBAAmB;;QACf,QACI,OAAA,IAAI,CAAC,sBAAsB,0CAAE,aAAa,CAAC,qBAAqB;YAChE,iBAAiB,EACnB;KACL;EACJ;AARG;IADC,SAAS,CAAC,qBAAqB,CAAC;wEACoC;AAF5D,wBAAwB;IAPpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,mKAA4C;QAE5C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,gBAAgB,EAAC,CAAC;;KAClF,CAAC;GACW,wBAAwB,CAUpC;;ICpBY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-components-dropdown-host.js","sources":["ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.component.ts","ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.module.ts","ng://@taiga-ui/cdk/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, ViewChild} from '@angular/core';\nimport {\n AbstractTuiPortalHostComponent,\n AbstractTuiPortalService,\n} from '@taiga-ui/cdk/abstract';\nimport {TuiPortalService} from '@taiga-ui/cdk/components/portal-host';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\n\n/**\n * Host element for dynamically created portals, for example using {@link TuiDropdownDirective}.\n */\n@Component({\n selector: `tui-dropdown-host`,\n templateUrl: `./dropdown-host.template.html`,\n styleUrls: [`./dropdown-host.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: AbstractTuiPortalService, useExisting: TuiPortalService}],\n})\nexport class TuiDropdownHostComponent extends AbstractTuiPortalHostComponent {\n @ViewChild(`positionFixedOffset`)\n private readonly positionFixedOffsetRef?: ElementRef<HTMLDivElement>;\n\n fixedPositionOffset(): ClientRect {\n return (\n this.positionFixedOffsetRef?.nativeElement.getBoundingClientRect() ||\n EMPTY_CLIENT_RECT\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDropdownHostComponent} from './dropdown-host.component';\n\n@NgModule({\n declarations: [TuiDropdownHostComponent],\n exports: [TuiDropdownHostComponent],\n})\nexport class TuiDropdownHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAQA;;;IAUa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,8BAA8B;IAIxE,mBAAmB;;QACf,QACI,OAAA,IAAI,CAAC,sBAAsB,0CAAE,aAAa,CAAC,qBAAqB;YAChE,iBAAiB,EACnB;KACL;EACJ;AARG;IADC,SAAS,CAAC,qBAAqB,CAAC;wEACoC;AAF5D,wBAAwB;IAPpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,mKAA4C;QAE5C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,gBAAgB,EAAC,CAAC;;KAClF,CAAC;GACW,wBAAwB,CAUpC;;ICpBY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
@@ -11,7 +11,7 @@ let TuiPortalService = class TuiPortalService extends AbstractTuiPortalService {
11
11
  TuiPortalService.ɵprov = ɵɵdefineInjectable({ factory: function TuiPortalService_Factory() { return new TuiPortalService(); }, token: TuiPortalService, providedIn: "root" });
12
12
  TuiPortalService = __decorate([
13
13
  Injectable({
14
- providedIn: 'root',
14
+ providedIn: `root`,
15
15
  })
16
16
  ], TuiPortalService);
17
17
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-components-portal-host.js","sources":["ng://@taiga-ui/cdk/components/portal-host/portal.service.ts","ng://@taiga-ui/cdk/components/portal-host/taiga-ui-cdk-components-portal-host.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {AbstractTuiPortalService} from '@taiga-ui/cdk/abstract';\n\n/**\n * @deprecated create your own portal (see {@link https://taiga-ui.dev/portals Portals})\n * TODO: 3.0 replace with {@link TuiDropdownPortalService}\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiPortalService extends AbstractTuiPortalService {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;IAOa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,wBAAwB;EAAG;;AAApD,gBAAgB;IAH5B,UAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;GACW,gBAAgB,CAAoC;;ACVjE;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-components-portal-host.js","sources":["ng://@taiga-ui/cdk/components/portal-host/portal.service.ts","ng://@taiga-ui/cdk/components/portal-host/taiga-ui-cdk-components-portal-host.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {AbstractTuiPortalService} from '@taiga-ui/cdk/abstract';\n\n/**\n * @deprecated create your own portal (see {@link https://taiga-ui.dev/portals Portals})\n * TODO: 3.0 replace with {@link TuiDropdownPortalService}\n */\n@Injectable({\n providedIn: `root`,\n})\nexport class TuiPortalService extends AbstractTuiPortalService {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;IAOa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,wBAAwB;EAAG;;AAApD,gBAAgB;IAH5B,UAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;GACW,gBAAgB,CAAoC;;ACVjE;;;;;;"}
@@ -63,10 +63,10 @@ function bothEmpty(item1, item2) {
63
63
  return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;
64
64
  }
65
65
 
66
- const TUI_PARENT_ANIMATION = trigger('tuiParentAnimation', [
67
- transition('* => void', [
68
- style({ overflow: 'hidden' }),
69
- query('@*', [animateChild()], { optional: true }),
66
+ const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [
67
+ transition(`* => void`, [
68
+ style({ overflow: `hidden` }),
69
+ query(`@*`, [animateChild()], { optional: true }),
70
70
  ]),
71
71
  ]);
72
72
 
@@ -74,14 +74,14 @@ const POLLING_TIME = 1000 / 15;
74
74
 
75
75
  // Filtering SVGElements for TreeWalker
76
76
  // Filter must be a function in IE, other modern browsers are compliant to this format
77
- const svgNodeFilter = ((node) => 'ownerSVGElement' in node
77
+ const svgNodeFilter = ((node) => `ownerSVGElement` in node
78
78
  ? NodeFilter.FILTER_REJECT
79
79
  : NodeFilter.FILTER_ACCEPT);
80
80
 
81
81
  /**
82
82
  * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.
83
83
  */
84
- const CHAR_NO_BREAK_SPACE = '\u00A0';
84
+ const CHAR_NO_BREAK_SPACE = `\u00A0`;
85
85
  /**
86
86
  * {@link https://unicode-table.com/en/2013/ EN dash}
87
87
  * is used to indicate a range of numbers or a span of time.
@@ -89,7 +89,7 @@ const CHAR_NO_BREAK_SPACE = '\u00A0';
89
89
  * ___
90
90
  * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!
91
91
  */
92
- const CHAR_EN_DASH = '\u2013';
92
+ const CHAR_EN_DASH = `\u2013`;
93
93
  /**
94
94
  * {@link https://unicode-table.com/en/2014/ EM dash}
95
95
  * is used to mark a break in a sentence.
@@ -97,39 +97,46 @@ const CHAR_EN_DASH = '\u2013';
97
97
  * ___
98
98
  * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!
99
99
  */
100
- const CHAR_EM_DASH = '\u2014';
100
+ const CHAR_EM_DASH = `\u2014`;
101
101
  /**
102
102
  * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}
103
- * is used to combine words or as minus sign before digits.
104
- * @example well-behaved, -42
103
+ * is used to combine words.
104
+ * @example well-behaved
105
105
  * ___
106
106
  * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!
107
107
  */
108
- const CHAR_HYPHEN = '\u002D';
108
+ const CHAR_HYPHEN = `\u002D`;
109
+ /**
110
+ * {@link https://unicode-table.com/en/2212/ Minus}
111
+ * is used as math operator symbol or before negative digits.
112
+ * ---
113
+ * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}
114
+ */
115
+ const CHAR_MINUS = `\u2212`;
109
116
  /**
110
117
  * {@link https://unicode-table.com/en/002B/ Plus}
111
118
  */
112
- const CHAR_PLUS = '\u002B';
119
+ const CHAR_PLUS = `\u002B`;
113
120
  /**
114
121
  * {@link https://unicode-table.com/en/2022/ Bullet}.
115
122
  */
116
- const CHAR_BULLET = '\u2022';
123
+ const CHAR_BULLET = `\u2022`;
117
124
  /**
118
125
  * {@link https://unicode-table.com/en/2026/ Suspension points}.
119
126
  */
120
- const CHAR_ELLIPSIS = '\u2026';
127
+ const CHAR_ELLIPSIS = `\u2026`;
121
128
  /**
122
129
  * {@link https://unicode-table.com/en/00A4/ Suspension points}.
123
130
  */
124
- const CHAR_CURRENCY_SIGN = '\u00A4';
131
+ const CHAR_CURRENCY_SIGN = `\u00A4`;
125
132
  /**
126
133
  * {@link https://unicode-table.com/en/200b/ Suspension points}.
127
134
  */
128
- const CHAR_ZERO_WIDTH_SPACE = '\u200B';
135
+ const CHAR_ZERO_WIDTH_SPACE = `\u200B`;
129
136
 
130
137
  /**
131
138
  * Generated bundle index. Do not edit.
132
139
  */
133
140
 
134
- export { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_ZERO_WIDTH_SPACE, CHROMIUM_EDGE_START_VERSION, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, EMPTY_VALIDATOR, POLLING_TIME, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_PARENT_ANIMATION, TUI_STRICT_MATCHER, svgNodeFilter };
141
+ export { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_MINUS, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_ZERO_WIDTH_SPACE, CHROMIUM_EDGE_START_VERSION, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, EMPTY_VALIDATOR, POLLING_TIME, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_PARENT_ANIMATION, TUI_STRICT_MATCHER, svgNodeFilter };
135
142
  //# sourceMappingURL=taiga-ui-cdk-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-constants.js","sources":["ng://@taiga-ui/cdk/constants/always-false-handler.ts","ng://@taiga-ui/cdk/constants/always-true-handler.ts","ng://@taiga-ui/cdk/constants/browser.ts","ng://@taiga-ui/cdk/constants/empty.ts","ng://@taiga-ui/cdk/constants/stringify.ts","ng://@taiga-ui/cdk/constants/matcher.ts","ng://@taiga-ui/cdk/constants/parent-animation.ts","ng://@taiga-ui/cdk/constants/polling-time.ts","ng://@taiga-ui/cdk/constants/svg-node-filter.ts","ng://@taiga-ui/cdk/constants/unicode-chars.ts","ng://@taiga-ui/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","export const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\nimport {ValidatorFn} from '@angular/forms';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n/** @deprecated use Validators.nullValidator */\nexport const EMPTY_VALIDATOR: ValidatorFn = () => null;\nexport const EMPTY_CLIENT_RECT: ClientRect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger('tuiParentAnimation', [\n transition('* => void', [\n style({overflow: 'hidden'}),\n query('@*', [animateChild()], {optional: true}),\n ]),\n]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words or as minus sign before digits.\n * @example well-behaved, -42\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;MAGa,oBAAoB,GAAG,MAAa;;ACHjD;;;MAGa,mBAAmB,GAAG,MAAY;;MCHlC,2BAA2B,GAAG;;ACG3C;;;;;MAKa,WAAW,GAAG,IAAI,SAAS,GAAQ;MACnC,WAAW,GAAO,GAAG;MACrB,cAAc,GAA6B,UAAS;AACjE;MACa,eAAe,GAAgB,MAAM,KAAK;MAC1C,iBAAiB,GAAe;IACzC,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;;;ACjBZ;;;MAGa,qBAAqB,GAA8B,IAAI,IAAI,MAAM,CAAC,IAAI;;ACDnF;;;;;;MAMa,mBAAmB,GAAG,CAC/B,IAAO,EACP,MAAc,EACd,YAAmC,qBAAqB,KAC9C,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE;AAE3E;;;;;;MAMa,kBAAkB,GAAG,CAC9B,IAAO,EACP,MAAc,EACd,YAAmC,qBAAqB,KAC9C,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,WAAW,GAAG;AAErE;;;;;;;MAOa,4BAA4B,GAAgC,CAAC,KAAK,EAAE,KAAK,KAClF,KAAK,KAAK,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE;AAE/C,SAAS,SAAS,CAAC,KAAc,EAAE,KAAc;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;AAC1F;;MCtCa,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,EAAE;IAC9D,UAAU,CAAC,WAAW,EAAE;QACpB,KAAK,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC;QAC3B,KAAK,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;KAClD,CAAC;CACL;;MCPY,YAAY,GAAG,IAAI,GAAG;;ACAnC;AACA;MACa,aAAa,IAAgB,CAAC,IAAU,KACjD,iBAAiB,IAAI,IAAI;MACnB,UAAU,CAAC,aAAa;MACxB,UAAU,CAAC,aAAa;;ACLlC;;;MAGa,mBAAmB,GAAG,SAAS;AAE5C;;;;;;;MAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;MAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;MAOa,WAAW,GAAG,SAAS;AAEpC;;;MAGa,SAAS,GAAG,SAAS;AAElC;;;MAGa,WAAW,GAAG,SAAS;AAEpC;;;MAGa,aAAa,GAAG,SAAS;AAEtC;;;MAGa,kBAAkB,GAAG,SAAS;AAE3C;;;MAGa,qBAAqB,GAAG;;ACvDrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-constants.js","sources":["ng://@taiga-ui/cdk/constants/always-false-handler.ts","ng://@taiga-ui/cdk/constants/always-true-handler.ts","ng://@taiga-ui/cdk/constants/browser.ts","ng://@taiga-ui/cdk/constants/empty.ts","ng://@taiga-ui/cdk/constants/stringify.ts","ng://@taiga-ui/cdk/constants/matcher.ts","ng://@taiga-ui/cdk/constants/parent-animation.ts","ng://@taiga-ui/cdk/constants/polling-time.ts","ng://@taiga-ui/cdk/constants/svg-node-filter.ts","ng://@taiga-ui/cdk/constants/unicode-chars.ts","ng://@taiga-ui/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","export const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\nimport {ValidatorFn} from '@angular/forms';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n/** @deprecated use Validators.nullValidator */\nexport const EMPTY_VALIDATOR: ValidatorFn = () => null;\nexport const EMPTY_CLIENT_RECT: ClientRect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [\n transition(`* => void`, [\n style({overflow: `hidden`}),\n query(`@*`, [animateChild()], {optional: true}),\n ]),\n]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n `ownerSVGElement` in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = `\\u00A0`;\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = `\\u2013`;\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = `\\u2014`;\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = `\\u002D`;\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = `\\u2212`;\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = `\\u002B`;\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = `\\u2022`;\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = `\\u2026`;\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = `\\u00A4`;\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = `\\u200B`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;MAGa,oBAAoB,GAAG,MAAa;;ACHjD;;;MAGa,mBAAmB,GAAG,MAAY;;MCHlC,2BAA2B,GAAG;;ACG3C;;;;;MAKa,WAAW,GAAG,IAAI,SAAS,GAAQ;MACnC,WAAW,GAAO,GAAG;MACrB,cAAc,GAA6B,UAAS;AACjE;MACa,eAAe,GAAgB,MAAM,KAAK;MAC1C,iBAAiB,GAAe;IACzC,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;;;ACjBZ;;;MAGa,qBAAqB,GAA8B,IAAI,IAAI,MAAM,CAAC,IAAI;;ACDnF;;;;;;MAMa,mBAAmB,GAAG,CAC/B,IAAO,EACP,MAAc,EACd,YAAmC,qBAAqB,KAC9C,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE;AAE3E;;;;;;MAMa,kBAAkB,GAAG,CAC9B,IAAO,EACP,MAAc,EACd,YAAmC,qBAAqB,KAC9C,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,WAAW,GAAG;AAErE;;;;;;;MAOa,4BAA4B,GAAgC,CAAC,KAAK,EAAE,KAAK,KAClF,KAAK,KAAK,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE;AAE/C,SAAS,SAAS,CAAC,KAAc,EAAE,KAAc;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;AAC1F;;MCtCa,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,EAAE;IAC9D,UAAU,CAAC,WAAW,EAAE;QACpB,KAAK,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC;QAC3B,KAAK,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;KAClD,CAAC;CACL;;MCPY,YAAY,GAAG,IAAI,GAAG;;ACAnC;AACA;MACa,aAAa,IAAgB,CAAC,IAAU,KACjD,iBAAiB,IAAI,IAAI;MACnB,UAAU,CAAC,aAAa;MACxB,UAAU,CAAC,aAAa;;ACLlC;;;MAGa,mBAAmB,GAAG,SAAS;AAE5C;;;;;;;MAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;MAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;MAOa,WAAW,GAAG,SAAS;AAEpC;;;;;;MAMa,UAAU,GAAG,SAAS;AAEnC;;;MAGa,SAAS,GAAG,SAAS;AAElC;;;MAGa,WAAW,GAAG,SAAS;AAEpC;;;MAGa,aAAa,GAAG,SAAS;AAEtC;;;MAGa,kBAAkB,GAAG,SAAS;AAE3C;;;MAGa,qBAAqB,GAAG;;AC/DrC;;;;;;"}
@@ -26,13 +26,13 @@ const MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
26
26
  /**
27
27
  * @deprecated dont use it. See {@link TUI_DATE_FORMAT}
28
28
  */
29
- const TUI_DATE_FILLER = new InjectionToken('date filler for Taiga UI', {
29
+ const TUI_DATE_FILLER = new InjectionToken(`date filler for Taiga UI`, {
30
30
  factory: () => `dd.mm.yyyy`,
31
31
  });
32
32
  /**
33
33
  * @deprecated dont use it
34
34
  */
35
- const TUI_DATE_RANGE_FILLER = new InjectionToken('date range filler for Taiga UI', {
35
+ const TUI_DATE_RANGE_FILLER = new InjectionToken(`date range filler for Taiga UI`, {
36
36
  factory: () => {
37
37
  const dateFiller = inject(TUI_DATE_FILLER);
38
38
  return `${dateFiller}${RANGE_SEPARATOR_CHAR}${dateFiller}`;
@@ -52,12 +52,12 @@ const DATE_FILLER_LENGTH = 10;
52
52
  */
53
53
  const DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
54
54
 
55
- const TUI_DATE_FORMAT = new InjectionToken('Active date format for Taiga UI', {
56
- factory: () => 'DMY',
55
+ const TUI_DATE_FORMAT = new InjectionToken(`Active date format for Taiga UI`, {
56
+ factory: () => `DMY`,
57
57
  });
58
58
 
59
- const TUI_DATE_SEPARATOR = new InjectionToken('Date separator for Taiga UI components', {
60
- factory: () => '.',
59
+ const TUI_DATE_SEPARATOR = new InjectionToken(`Date separator for Taiga UI components`, {
60
+ factory: () => `.`,
61
61
  });
62
62
  const changeDateSeparator = (dateString, newDateSeparator) => dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);
63
63
 
@@ -119,7 +119,7 @@ class TuiYear {
119
119
  return normalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
120
120
  }
121
121
  get formattedYear() {
122
- return padStart(String(this.year), 4, '0');
122
+ return padStart(String(this.year), 4, `0`);
123
123
  }
124
124
  get isLeapYear() {
125
125
  return TuiYear.isLeapYear(this.year);
@@ -269,7 +269,7 @@ class TuiMonth extends TuiYear {
269
269
  return Number.isInteger(month) && inRange(month, MIN_MONTH, MAX_MONTH + 1);
270
270
  }
271
271
  get formattedMonthPart() {
272
- return padStart(String(this.month + 1), 2, '0');
272
+ return padStart(String(this.month + 1), 2, `0`);
273
273
  }
274
274
  /**
275
275
  * @deprecated
@@ -476,23 +476,23 @@ class TuiDay extends TuiMonth {
476
476
  return Math.round((to.toLocalNativeDate().getTime() - from.toLocalNativeDate().getTime()) /
477
477
  (1000 * 60 * 60 * 24));
478
478
  }
479
- static parseRawDateString(date, dateMode = 'DMY') {
480
- tuiAssert.assert(date.length === DATE_FILLER_LENGTH, '[parseRawDateString]: wrong date string length');
479
+ static parseRawDateString(date, dateMode = `DMY`) {
480
+ tuiAssert.assert(date.length === DATE_FILLER_LENGTH, `[parseRawDateString]: wrong date string length`);
481
481
  switch (dateMode) {
482
- case 'YMD':
482
+ case `YMD`:
483
483
  return {
484
484
  day: parseInt(date.slice(8, 10), 10),
485
485
  month: parseInt(date.slice(5, 7), 10) - 1,
486
486
  year: parseInt(date.slice(0, 4), 10),
487
487
  };
488
- case 'MDY':
488
+ case `MDY`:
489
489
  return {
490
490
  day: parseInt(date.slice(3, 5), 10),
491
491
  month: parseInt(date.slice(0, 2), 10) - 1,
492
492
  year: parseInt(date.slice(6, 10), 10),
493
493
  };
494
494
  default:
495
- case 'DMY':
495
+ case `DMY`:
496
496
  return {
497
497
  day: parseInt(date.slice(0, 2), 10),
498
498
  month: parseInt(date.slice(3, 5), 10) - 1,
@@ -508,7 +508,7 @@ class TuiDay extends TuiMonth {
508
508
  * @param dateMode date format of the date string (DMY | MDY | YMD)
509
509
  * @return normalized date
510
510
  */
511
- static normalizeParse(rawDate, dateMode = 'DMY') {
511
+ static normalizeParse(rawDate, dateMode = `DMY`) {
512
512
  const { day, month, year } = this.parseRawDateString(rawDate, dateMode);
513
513
  return TuiDay.normalizeOf(year, month, day);
514
514
  }
@@ -519,7 +519,7 @@ class TuiDay extends TuiMonth {
519
519
  * @throws exceptions if any part of the date is invalid
520
520
  */
521
521
  static jsonParse(yearMonthDayString) {
522
- const { day, month, year } = this.parseRawDateString(yearMonthDayString, 'YMD');
522
+ const { day, month, year } = this.parseRawDateString(yearMonthDayString, `YMD`);
523
523
  if (!TuiYear.isValidYear(year)) {
524
524
  throw new InvalidYearException(year);
525
525
  }
@@ -538,7 +538,7 @@ class TuiDay extends TuiMonth {
538
538
  return normalizeToIntNumber(day, 1, monthDaysCount);
539
539
  }
540
540
  get formattedDayPart() {
541
- return padStart(String(this.day), 2, '0');
541
+ return padStart(String(this.day), 2, `0`);
542
542
  }
543
543
  /**
544
544
  * @deprecated use {@link getFormattedDay} instead
@@ -661,21 +661,21 @@ class TuiDay extends TuiMonth {
661
661
  * Returns formatted whole date
662
662
  */
663
663
  getFormattedDay(dateFormat, separator) {
664
- tuiAssert.assert(separator.length === 1, 'Separator should consist of only 1 symbol');
664
+ tuiAssert.assert(separator.length === 1, `Separator should consist of only 1 symbol`);
665
665
  const dd = this.formattedDayPart;
666
666
  const mm = this.formattedMonthPart;
667
667
  const yyyy = this.formattedYear;
668
668
  switch (dateFormat) {
669
- case 'YMD':
669
+ case `YMD`:
670
670
  return `${yyyy}${separator}${mm}${separator}${dd}`;
671
- case 'MDY':
671
+ case `MDY`:
672
672
  return `${mm}${separator}${dd}${separator}${yyyy}`;
673
- case 'DMY':
673
+ case `DMY`:
674
674
  default:
675
675
  return `${dd}${separator}${mm}${separator}${yyyy}`;
676
676
  }
677
677
  }
678
- toString(dateFormat = 'DMY', separator = '.') {
678
+ toString(dateFormat = `DMY`, separator = `.`) {
679
679
  return this.getFormattedDay(dateFormat, separator);
680
680
  }
681
681
  toJSON() {
@@ -730,7 +730,7 @@ class TuiMonthRange {
730
730
  * Temporary type guard to satisfy ts-overloading of normalizeParse method
731
731
  * @deprecated
732
732
  */
733
- const isDateMode = (dateMode) => ['DMY', 'YMD', 'MDY'].includes(dateMode);
733
+ const isDateMode = (dateMode) => [`DMY`, `YMD`, `MDY`].includes(dateMode);
734
734
  /**
735
735
  * An immutable range of two {@link TuiDay} objects
736
736
  */
@@ -760,8 +760,8 @@ class TuiDayRange extends TuiMonthRange {
760
760
  * @param dateMode {@link TuiDateMode}
761
761
  * @return normalized day range object
762
762
  */
763
- static normalizeParse(rangeString, dateMode = 'DMY') {
764
- const dateFormat = isDateMode(dateMode) ? dateMode : 'DMY';
763
+ static normalizeParse(rangeString, dateMode = `DMY`) {
764
+ const dateFormat = isDateMode(dateMode) ? dateMode : `DMY`;
765
765
  const leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateFormat);
766
766
  if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
767
767
  return new TuiDayRange(leftDay, leftDay);
@@ -776,8 +776,8 @@ class TuiDayRange extends TuiMonthRange {
776
776
  * @deprecated use {@link getFormattedDayRange} instead
777
777
  */
778
778
  get formattedDayRange() {
779
- const from = this.from.getFormattedDay('DMY', '.');
780
- const to = this.to.getFormattedDay('DMY', '.');
779
+ const from = this.from.getFormattedDay(`DMY`, `.`);
780
+ const to = this.to.getFormattedDay(`DMY`, `.`);
781
781
  return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
782
782
  }
783
783
  /**
@@ -807,7 +807,7 @@ class TuiDayRange extends TuiMonthRange {
807
807
  const to = this.to.getFormattedDay(dateFormat, dateSeparator);
808
808
  return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
809
809
  }
810
- toString(dateFormat = 'DMY', dateSeparator = '.') {
810
+ toString(dateFormat = `DMY`, dateSeparator = `.`) {
811
811
  const from = this.from.getFormattedDay(dateFormat, dateSeparator);
812
812
  const to = this.to.getFormattedDay(dateFormat, dateSeparator);
813
813
  return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
@@ -826,7 +826,7 @@ class TuiTime {
826
826
  this.minutes = minutes;
827
827
  this.seconds = seconds;
828
828
  this.ms = ms;
829
- tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), 'Time must be real, but got:', hours, minutes, seconds, ms);
829
+ tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), `Time must be real, but got:`, hours, minutes, seconds, ms);
830
830
  }
831
831
  /**
832
832
  * Checks if time is valid
@@ -908,11 +908,11 @@ class TuiTime {
908
908
  * Converts TuiTime to string
909
909
  */
910
910
  toString(mode) {
911
- const needAddMs = mode === 'HH:MM:SS.MSS' || (!mode && this.ms > 0);
912
- const needAddSeconds = needAddMs || mode === 'HH:MM:SS' || (!mode && this.seconds > 0);
911
+ const needAddMs = mode === `HH:MM:SS.MSS` || (!mode && this.ms > 0);
912
+ const needAddSeconds = needAddMs || mode === `HH:MM:SS` || (!mode && this.seconds > 0);
913
913
  return (`${this.formatTime(this.hours)}:${this.formatTime(this.minutes)}` +
914
- `${needAddSeconds ? `:${this.formatTime(this.seconds)}` : ''}` +
915
- `${needAddMs ? `.${this.formatTime(this.ms, 3)}` : ''}`);
914
+ `${needAddSeconds ? `:${this.formatTime(this.seconds)}` : ``}` +
915
+ `${needAddMs ? `.${this.formatTime(this.ms, 3)}` : ``}`);
916
916
  }
917
917
  valueOf() {
918
918
  return this.toAbsoluteMilliseconds();
@@ -935,7 +935,7 @@ class TuiTime {
935
935
  this.ms);
936
936
  }
937
937
  formatTime(time, digits = 2) {
938
- return padStart(String(time), digits, '0');
938
+ return padStart(String(time), digits, `0`);
939
939
  }
940
940
  }
941
941