@taiga-ui/cdk 3.51.0-canary.6291033 → 3.51.0-canary.8873fad

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 (735) hide show
  1. package/abstract/control.d.ts +6 -0
  2. package/abstract/interactive.d.ts +9 -0
  3. package/abstract/portal-host.d.ts +4 -0
  4. package/abstract/portal-service.d.ts +3 -0
  5. package/abstract/taiga-ui-cdk-abstract.d.ts +3 -0
  6. package/abstract/theme-switcher.d.ts +6 -0
  7. package/bundles/taiga-ui-cdk-abstract.umd.js +34 -0
  8. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-classes.umd.js +9 -0
  10. package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-coercion.umd.js +10 -0
  12. package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +8 -0
  14. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +11 -0
  16. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +12 -0
  18. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +4 -0
  20. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-components.umd.js +4 -0
  22. package/bundles/taiga-ui-cdk-components.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-constants.umd.js +108 -0
  24. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-date-time.umd.js +284 -0
  26. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-decorators.umd.js +26 -0
  28. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +4 -0
  30. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +44 -1
  32. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +4 -0
  34. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-directives-checked.umd.js +4 -0
  36. package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
  37. package/bundles/taiga-ui-cdk-directives-click-outside.umd.js +4 -0
  38. package/bundles/taiga-ui-cdk-directives-click-outside.umd.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-directives-control.umd.js +4 -0
  40. package/bundles/taiga-ui-cdk-directives-control.umd.js.map +1 -1
  41. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +4 -0
  42. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
  43. package/bundles/taiga-ui-cdk-directives-drag.umd.js +10 -0
  44. package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -0
  46. package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
  47. package/bundles/taiga-ui-cdk-directives-element.umd.js +18 -0
  48. package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
  49. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +17 -0
  50. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +9 -0
  52. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
  53. package/bundles/taiga-ui-cdk-directives-focusable.umd.js +10 -0
  54. package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
  55. package/bundles/taiga-ui-cdk-directives-focused.umd.js +9 -0
  56. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  57. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +7 -0
  58. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  59. package/bundles/taiga-ui-cdk-directives-for.umd.js +4 -0
  60. package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
  61. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +7 -0
  62. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
  63. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +7 -1
  64. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  65. package/bundles/taiga-ui-cdk-directives-item.umd.js +7 -0
  66. package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
  67. package/bundles/taiga-ui-cdk-directives-let.umd.js +17 -0
  68. package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
  69. package/bundles/taiga-ui-cdk-directives-media.umd.js +7 -0
  70. package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
  71. package/bundles/taiga-ui-cdk-directives-obscured.umd.js +7 -0
  72. package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
  73. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +10 -0
  74. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  75. package/bundles/taiga-ui-cdk-directives-pan.umd.js +7 -0
  76. package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
  77. package/bundles/taiga-ui-cdk-directives-platform.umd.js +4 -0
  78. package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -1
  79. package/bundles/taiga-ui-cdk-directives-portal.umd.js +4 -0
  80. package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
  81. package/bundles/taiga-ui-cdk-directives-pressed.umd.js +4 -0
  82. package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
  83. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +12 -0
  84. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  85. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +11 -0
  86. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
  87. package/bundles/taiga-ui-cdk-directives-resize.umd.js +7 -0
  88. package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
  89. package/bundles/taiga-ui-cdk-directives-resizer.umd.js +5 -0
  90. package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
  91. package/bundles/taiga-ui-cdk-directives-swipe.umd.js +7 -0
  92. package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
  93. package/bundles/taiga-ui-cdk-directives-validator.umd.js +4 -0
  94. package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
  95. package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +4 -0
  96. package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +1 -1
  97. package/bundles/taiga-ui-cdk-directives-zoom.umd.js +7 -0
  98. package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
  99. package/bundles/taiga-ui-cdk-directives.umd.js +4 -0
  100. package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
  101. package/bundles/taiga-ui-cdk-enums.umd.js +8 -0
  102. package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
  103. package/bundles/taiga-ui-cdk-exceptions.umd.js +4 -0
  104. package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
  105. package/bundles/taiga-ui-cdk-interfaces.umd.js +3 -1
  106. package/bundles/taiga-ui-cdk-interfaces.umd.js.map +1 -1
  107. package/bundles/taiga-ui-cdk-observables.umd.js +34 -1
  108. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  109. package/bundles/taiga-ui-cdk-pipes-filter.umd.js +4 -0
  110. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  111. package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +4 -0
  112. package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
  113. package/bundles/taiga-ui-cdk-pipes-keys.umd.js +4 -0
  114. package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
  115. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +4 -0
  116. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  117. package/bundles/taiga-ui-cdk-pipes-replace.umd.js +7 -1
  118. package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
  119. package/bundles/taiga-ui-cdk-pipes.umd.js +4 -0
  120. package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
  121. package/bundles/taiga-ui-cdk-services.umd.js +53 -5
  122. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  123. package/bundles/taiga-ui-cdk-tokens.umd.js +109 -5
  124. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  125. package/bundles/taiga-ui-cdk-types.umd.js +3 -1
  126. package/bundles/taiga-ui-cdk-types.umd.js.map +1 -1
  127. package/bundles/taiga-ui-cdk-utils-browser.umd.js +4 -0
  128. package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
  129. package/bundles/taiga-ui-cdk-utils-color.umd.js +10 -0
  130. package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
  131. package/bundles/taiga-ui-cdk-utils-dom.umd.js +59 -3
  132. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  133. package/bundles/taiga-ui-cdk-utils-focus.umd.js +51 -0
  134. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  135. package/bundles/taiga-ui-cdk-utils-format.umd.js +7 -0
  136. package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
  137. package/bundles/taiga-ui-cdk-utils-math.umd.js +38 -0
  138. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  139. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +42 -6
  140. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  141. package/bundles/taiga-ui-cdk-utils-os.umd.js +14 -0
  142. package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
  143. package/bundles/taiga-ui-cdk-utils-svg.umd.js +19 -1
  144. package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
  145. package/bundles/taiga-ui-cdk-utils.umd.js +4 -0
  146. package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
  147. package/bundles/taiga-ui-cdk.umd.js +4 -0
  148. package/bundles/taiga-ui-cdk.umd.js.map +1 -1
  149. package/classes/assert.d.ts +5 -0
  150. package/classes/taiga-ui-cdk-classes.d.ts +3 -0
  151. package/coercion/coerce-boolean-property.d.ts +4 -0
  152. package/coercion/taiga-ui-cdk-coercion.d.ts +3 -0
  153. package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +3 -0
  154. package/components/dialog-host/dialog-host.component.d.ts +3 -0
  155. package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +3 -0
  156. package/components/dropdown-host/dropdown-host.component.d.ts +3 -0
  157. package/components/dropdown-host/dropdown-portal.service.d.ts +3 -0
  158. package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +3 -0
  159. package/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.d.ts +3 -0
  160. package/components/taiga-ui-cdk-components.d.ts +3 -0
  161. package/constants/always-false-handler.d.ts +3 -0
  162. package/constants/always-true-handler.d.ts +3 -0
  163. package/constants/browser.d.ts +4 -0
  164. package/constants/empty.d.ts +5 -0
  165. package/constants/matcher.d.ts +19 -0
  166. package/constants/parent-animation.d.ts +6 -0
  167. package/constants/stringify.d.ts +3 -0
  168. package/constants/taiga-ui-cdk-constants.d.ts +3 -0
  169. package/constants/unicode-chars.d.ts +51 -0
  170. package/constants/used-icons.d.ts +6 -0
  171. package/date-time/date-fillers.d.ts +11 -0
  172. package/date-time/date-format.d.ts +3 -0
  173. package/date-time/date-separator.d.ts +3 -0
  174. package/date-time/day-range.d.ts +33 -0
  175. package/date-time/day.d.ts +91 -0
  176. package/date-time/month-range.d.ts +3 -0
  177. package/date-time/month.d.ts +56 -0
  178. package/date-time/taiga-ui-cdk-date-time.d.ts +3 -0
  179. package/date-time/time.d.ts +36 -0
  180. package/date-time/year.d.ts +42 -0
  181. package/decorators/debounce.d.ts +4 -0
  182. package/decorators/default-prop.d.ts +9 -0
  183. package/decorators/pure.d.ts +18 -0
  184. package/decorators/required-setter.d.ts +9 -0
  185. package/decorators/taiga-ui-cdk-decorators.d.ts +3 -0
  186. package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +3 -0
  187. package/directives/auto-focus/handlers/ios.handler.d.ts +39 -0
  188. package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +3 -0
  189. package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +3 -0
  190. package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +3 -0
  191. package/directives/click-outside/taiga-ui-cdk-directives-click-outside.d.ts +3 -0
  192. package/directives/control/taiga-ui-cdk-directives-control.d.ts +3 -0
  193. package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +3 -0
  194. package/directives/drag/drag.directive.d.ts +3 -0
  195. package/directives/drag/drag.module.d.ts +3 -0
  196. package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +3 -0
  197. package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +3 -0
  198. package/directives/element/taiga-ui-cdk-directives-element.d.ts +3 -0
  199. package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +3 -0
  200. package/directives/focus-visible/focus-visible.directive.d.ts +5 -0
  201. package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +3 -0
  202. package/directives/focusable/focusable.directive.d.ts +6 -0
  203. package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +3 -0
  204. package/directives/focused/focused.directive.d.ts +5 -0
  205. package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +3 -0
  206. package/directives/for/taiga-ui-cdk-directives-for.d.ts +3 -0
  207. package/directives/for-async/for-async.module.d.ts +3 -0
  208. package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +3 -0
  209. package/directives/high-dpi/high-dpi.directive.d.ts +3 -0
  210. package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +3 -0
  211. package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +3 -0
  212. package/directives/item/item.directive.d.ts +3 -0
  213. package/directives/item/taiga-ui-cdk-directives-item.d.ts +3 -0
  214. package/directives/let/let-context.d.ts +3 -0
  215. package/directives/let/let.directive.d.ts +10 -0
  216. package/directives/let/taiga-ui-cdk-directives-let.d.ts +3 -0
  217. package/directives/media/taiga-ui-cdk-directives-media.d.ts +3 -0
  218. package/directives/obscured/obscured.directive.d.ts +3 -0
  219. package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +3 -0
  220. package/directives/overscroll/overscroll.directive.d.ts +3 -0
  221. package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +3 -0
  222. package/directives/pan/pan.module.d.ts +3 -0
  223. package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +3 -0
  224. package/directives/platform/taiga-ui-cdk-directives-platform.d.ts +3 -0
  225. package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +3 -0
  226. package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +3 -0
  227. package/directives/prevent-default/prevent-default.directive.d.ts +5 -0
  228. package/directives/prevent-default/prevent-default.module.d.ts +3 -0
  229. package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +3 -0
  230. package/directives/repeat-times/repeat-times.directive.d.ts +7 -0
  231. package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +3 -0
  232. package/directives/resize/resize.module.d.ts +3 -0
  233. package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +3 -0
  234. package/directives/resizer/taiga-ui-cdk-directives-resizer.d.ts +3 -0
  235. package/directives/swipe/swipe.module.d.ts +3 -0
  236. package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +3 -0
  237. package/directives/taiga-ui-cdk-directives.d.ts +3 -0
  238. package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +3 -0
  239. package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +3 -0
  240. package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +3 -0
  241. package/directives/zoom/zoom.module.d.ts +3 -0
  242. package/enums/taiga-ui-cdk-enums.d.ts +3 -0
  243. package/esm2015/abstract/control.js +7 -1
  244. package/esm2015/abstract/interactive.js +11 -1
  245. package/esm2015/abstract/portal-host.js +6 -1
  246. package/esm2015/abstract/portal-service.js +4 -1
  247. package/esm2015/abstract/taiga-ui-cdk-abstract.js +4 -1
  248. package/esm2015/abstract/theme-switcher.js +7 -1
  249. package/esm2015/classes/assert.js +6 -1
  250. package/esm2015/classes/taiga-ui-cdk-classes.js +4 -1
  251. package/esm2015/coercion/coerce-boolean-property.js +7 -1
  252. package/esm2015/coercion/taiga-ui-cdk-coercion.js +4 -1
  253. package/esm2015/components/alert-host/alert-host.component.js +5 -1
  254. package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +4 -1
  255. package/esm2015/components/dialog-host/dialog-host.component.js +8 -1
  256. package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +4 -1
  257. package/esm2015/components/dropdown-host/dropdown-host.component.js +6 -1
  258. package/esm2015/components/dropdown-host/dropdown-portal.service.js +4 -1
  259. package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +4 -1
  260. package/esm2015/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.js +4 -1
  261. package/esm2015/components/taiga-ui-cdk-components.js +4 -1
  262. package/esm2015/constants/always-false-handler.js +5 -1
  263. package/esm2015/constants/always-true-handler.js +5 -1
  264. package/esm2015/constants/browser.js +5 -1
  265. package/esm2015/constants/empty.js +6 -1
  266. package/esm2015/constants/matcher.js +20 -1
  267. package/esm2015/constants/parent-animation.js +7 -1
  268. package/esm2015/constants/stringify.js +4 -1
  269. package/esm2015/constants/svg-node-filter.js +3 -1
  270. package/esm2015/constants/taiga-ui-cdk-constants.js +4 -1
  271. package/esm2015/constants/unicode-chars.js +52 -1
  272. package/esm2015/constants/used-icons.js +7 -1
  273. package/esm2015/date-time/date-fillers.js +12 -1
  274. package/esm2015/date-time/date-format.js +4 -1
  275. package/esm2015/date-time/date-separator.js +4 -1
  276. package/esm2015/date-time/day-range.js +34 -1
  277. package/esm2015/date-time/day.js +94 -1
  278. package/esm2015/date-time/month-range.js +4 -1
  279. package/esm2015/date-time/month.js +57 -1
  280. package/esm2015/date-time/taiga-ui-cdk-date-time.js +4 -1
  281. package/esm2015/date-time/time.js +37 -1
  282. package/esm2015/date-time/year.js +43 -1
  283. package/esm2015/decorators/debounce.js +5 -1
  284. package/esm2015/decorators/default-prop.js +10 -1
  285. package/esm2015/decorators/required-setter.js +10 -1
  286. package/esm2015/decorators/taiga-ui-cdk-decorators.js +4 -1
  287. package/esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +4 -1
  288. package/esm2015/directives/auto-focus/autofocus.options.js +3 -2
  289. package/esm2015/directives/auto-focus/handlers/ios.handler.js +40 -1
  290. package/esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +4 -1
  291. package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +4 -1
  292. package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +4 -1
  293. package/esm2015/directives/click-outside/taiga-ui-cdk-directives-click-outside.js +4 -1
  294. package/esm2015/directives/control/taiga-ui-cdk-directives-control.js +4 -1
  295. package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +4 -1
  296. package/esm2015/directives/drag/drag.directive.js +4 -1
  297. package/esm2015/directives/drag/drag.module.js +4 -1
  298. package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +4 -1
  299. package/esm2015/directives/droppable/droppable.directive.js +2 -1
  300. package/esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js +4 -1
  301. package/esm2015/directives/element/element.directive.js +15 -1
  302. package/esm2015/directives/element/taiga-ui-cdk-directives-element.js +4 -1
  303. package/esm2015/directives/focus-trap/focus-trap.directive.js +14 -1
  304. package/esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +4 -1
  305. package/esm2015/directives/focus-visible/focus-visible.directive.js +6 -1
  306. package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +4 -1
  307. package/esm2015/directives/focusable/focusable.directive.js +7 -1
  308. package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +4 -1
  309. package/esm2015/directives/focused/focused.directive.js +6 -1
  310. package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +4 -1
  311. package/esm2015/directives/for/taiga-ui-cdk-directives-for.js +4 -1
  312. package/esm2015/directives/for-async/for-async.module.js +4 -1
  313. package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +4 -1
  314. package/esm2015/directives/high-dpi/high-dpi.directive.js +4 -1
  315. package/esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +4 -1
  316. package/esm2015/directives/hovered/hovered.service.js +4 -2
  317. package/esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js +4 -1
  318. package/esm2015/directives/item/item.directive.js +4 -1
  319. package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +4 -1
  320. package/esm2015/directives/let/let-context.js +4 -1
  321. package/esm2015/directives/let/let.directive.js +11 -1
  322. package/esm2015/directives/let/taiga-ui-cdk-directives-let.js +4 -1
  323. package/esm2015/directives/media/media.directive.js +4 -1
  324. package/esm2015/directives/media/taiga-ui-cdk-directives-media.js +4 -1
  325. package/esm2015/directives/obscured/obscured.directive.js +4 -1
  326. package/esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js +4 -1
  327. package/esm2015/directives/overscroll/overscroll.directive.js +7 -1
  328. package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +4 -1
  329. package/esm2015/directives/pan/pan.module.js +4 -1
  330. package/esm2015/directives/pan/taiga-ui-cdk-directives-pan.js +4 -1
  331. package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +4 -1
  332. package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +4 -1
  333. package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +4 -1
  334. package/esm2015/directives/prevent-default/prevent-default.directive.js +6 -1
  335. package/esm2015/directives/prevent-default/prevent-default.module.js +4 -1
  336. package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +4 -1
  337. package/esm2015/directives/repeat-times/repeat-times.directive.js +8 -1
  338. package/esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +4 -1
  339. package/esm2015/directives/resize/resize.module.js +4 -1
  340. package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +4 -1
  341. package/esm2015/directives/resizer/resizer.directive.js +2 -1
  342. package/esm2015/directives/resizer/taiga-ui-cdk-directives-resizer.js +4 -1
  343. package/esm2015/directives/swipe/swipe.module.js +4 -1
  344. package/esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js +4 -1
  345. package/esm2015/directives/taiga-ui-cdk-directives.js +4 -1
  346. package/esm2015/directives/validator/taiga-ui-cdk-directives-validator.js +4 -1
  347. package/esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js +4 -1
  348. package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +4 -1
  349. package/esm2015/directives/zoom/zoom.module.js +4 -1
  350. package/esm2015/enums/day-of-week.js +3 -1
  351. package/esm2015/enums/month-number.js +3 -1
  352. package/esm2015/enums/taiga-ui-cdk-enums.js +4 -1
  353. package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +4 -1
  354. package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +4 -1
  355. package/esm2015/observables/control-value.js +4 -1
  356. package/esm2015/observables/drag-and-drop-from.js +3 -1
  357. package/esm2015/observables/focus-visible-observable.js +6 -2
  358. package/esm2015/observables/is-alive.js +4 -1
  359. package/esm2015/observables/items-query-list-observable.js +7 -1
  360. package/esm2015/observables/mouse-drag-finish-from.js +5 -1
  361. package/esm2015/observables/scroll-from.js +4 -1
  362. package/esm2015/observables/taiga-ui-cdk-observables.js +4 -1
  363. package/esm2015/observables/typed-from-event.js +5 -1
  364. package/esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js +4 -1
  365. package/esm2015/pipes/is-present/taiga-ui-cdk-pipes-is-present.js +4 -1
  366. package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js +4 -1
  367. package/esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +4 -1
  368. package/esm2015/pipes/replace/replace.pipe.js +4 -2
  369. package/esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js +4 -1
  370. package/esm2015/pipes/taiga-ui-cdk-pipes.js +4 -1
  371. package/esm2015/services/destroy.service.js +9 -1
  372. package/esm2015/services/directive-styles.service.js +4 -1
  373. package/esm2015/services/focus-visible.service.js +6 -1
  374. package/esm2015/services/id.service.js +4 -1
  375. package/esm2015/services/obscured.service.js +10 -2
  376. package/esm2015/services/pan.service.js +4 -2
  377. package/esm2015/services/parents-scroll.service.js +7 -2
  378. package/esm2015/services/resize.service.js +8 -2
  379. package/esm2015/services/static-request.service.js +5 -2
  380. package/esm2015/services/taiga-ui-cdk-services.js +4 -1
  381. package/esm2015/taiga-ui-cdk.js +4 -1
  382. package/esm2015/tokens/active-element.js +26 -4
  383. package/esm2015/tokens/alerts.js +4 -1
  384. package/esm2015/tokens/default-renderer.js +10 -2
  385. package/esm2015/tokens/dialogs.js +5 -1
  386. package/esm2015/tokens/ensure-base-href.js +4 -1
  387. package/esm2015/tokens/focusable-item-accessor.js +4 -1
  388. package/esm2015/tokens/is-android.js +4 -1
  389. package/esm2015/tokens/is-apple.js +4 -1
  390. package/esm2015/tokens/is-chromium.js +4 -1
  391. package/esm2015/tokens/is-cypress.js +5 -1
  392. package/esm2015/tokens/is-e2e.js +4 -1
  393. package/esm2015/tokens/is-firefox.js +4 -1
  394. package/esm2015/tokens/is-ios.js +4 -1
  395. package/esm2015/tokens/is-mobile.js +5 -1
  396. package/esm2015/tokens/is-playwright.js +4 -1
  397. package/esm2015/tokens/is-webkit.js +4 -1
  398. package/esm2015/tokens/platform.js +2 -1
  399. package/esm2015/tokens/range.js +4 -1
  400. package/esm2015/tokens/removed-element.js +4 -1
  401. package/esm2015/tokens/scroll-ref.js +4 -1
  402. package/esm2015/tokens/swipe-options.js +4 -1
  403. package/esm2015/tokens/taiga-ui-cdk-tokens.js +4 -1
  404. package/esm2015/tokens/take-only-trusted-events.js +7 -1
  405. package/esm2015/tokens/window-height.js +4 -1
  406. package/esm2015/tokens/zoom-options.js +4 -1
  407. package/esm2015/types/taiga-ui-cdk-types.js +4 -1
  408. package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +4 -1
  409. package/esm2015/utils/color/hex-to-rgba.js +2 -1
  410. package/esm2015/utils/color/hsv-to-rgb.js +4 -1
  411. package/esm2015/utils/color/rgb-to-hsv.js +2 -1
  412. package/esm2015/utils/color/rgba-to-hex.js +2 -1
  413. package/esm2015/utils/color/taiga-ui-cdk-utils-color.js +4 -1
  414. package/esm2015/utils/dom/element-checks.js +2 -1
  415. package/esm2015/utils/dom/get-actual-target.js +4 -1
  416. package/esm2015/utils/dom/get-clipboard-data-text.js +4 -1
  417. package/esm2015/utils/dom/get-element-obscurers.js +10 -1
  418. package/esm2015/utils/dom/get-element-offset.js +8 -1
  419. package/esm2015/utils/dom/get-scroll-parent.js +7 -1
  420. package/esm2015/utils/dom/get-selected-text.js +9 -1
  421. package/esm2015/utils/dom/is-inside-iframe.js +4 -1
  422. package/esm2015/utils/dom/is-node-in.js +8 -1
  423. package/esm2015/utils/dom/retarget-boundary-crossing.js +9 -4
  424. package/esm2015/utils/dom/taiga-ui-cdk-utils-dom.js +4 -1
  425. package/esm2015/utils/focus/blur-native-focused.js +4 -1
  426. package/esm2015/utils/focus/get-closest-focusable.js +5 -1
  427. package/esm2015/utils/focus/get-native-focused.js +6 -1
  428. package/esm2015/utils/focus/is-native-focused-in.js +8 -1
  429. package/esm2015/utils/focus/is-native-focused.js +9 -1
  430. package/esm2015/utils/focus/is-native-keyboard-focusable.js +7 -1
  431. package/esm2015/utils/focus/move-focus.js +8 -1
  432. package/esm2015/utils/focus/set-native-mouse-focused.js +8 -1
  433. package/esm2015/utils/focus/taiga-ui-cdk-utils-focus.js +4 -1
  434. package/esm2015/utils/format/px.js +4 -1
  435. package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +4 -1
  436. package/esm2015/utils/math/clamp.js +8 -1
  437. package/esm2015/utils/math/normalize-to-int-number.js +9 -1
  438. package/esm2015/utils/math/quantize.js +7 -1
  439. package/esm2015/utils/math/round.js +8 -1
  440. package/esm2015/utils/math/sum.js +4 -1
  441. package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +4 -1
  442. package/esm2015/utils/math/to-radians.js +4 -1
  443. package/esm2015/utils/miscellaneous/create-options.js +2 -1
  444. package/esm2015/utils/miscellaneous/flat-length.js +6 -1
  445. package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +7 -1
  446. package/esm2015/utils/miscellaneous/is-number.js +2 -1
  447. package/esm2015/utils/miscellaneous/is-object.js +2 -1
  448. package/esm2015/utils/miscellaneous/is-string.js +2 -1
  449. package/esm2015/utils/miscellaneous/is-valid-url.js +8 -7
  450. package/esm2015/utils/miscellaneous/nullable-same.js +9 -1
  451. package/esm2015/utils/miscellaneous/object-from-entries.js +9 -1
  452. package/esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +4 -1
  453. package/esm2015/utils/os/is-apple-platform.js +11 -1
  454. package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +4 -1
  455. package/esm2015/utils/svg/svg-linear-gradient-processor.js +16 -2
  456. package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +4 -1
  457. package/esm2015/utils/taiga-ui-cdk-utils.js +4 -1
  458. package/exceptions/taiga-ui-cdk-exceptions.d.ts +3 -0
  459. package/fesm2015/taiga-ui-cdk-abstract.js +34 -0
  460. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  461. package/fesm2015/taiga-ui-cdk-classes.js +9 -0
  462. package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
  463. package/fesm2015/taiga-ui-cdk-coercion.js +10 -0
  464. package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
  465. package/fesm2015/taiga-ui-cdk-components-alert-host.js +8 -0
  466. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  467. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +11 -0
  468. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  469. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +12 -0
  470. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  471. package/fesm2015/taiga-ui-cdk-components-scroll-controls.js +4 -0
  472. package/fesm2015/taiga-ui-cdk-components-scroll-controls.js.map +1 -1
  473. package/fesm2015/taiga-ui-cdk-components.js +4 -0
  474. package/fesm2015/taiga-ui-cdk-components.js.map +1 -1
  475. package/fesm2015/taiga-ui-cdk-constants.js +108 -0
  476. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  477. package/fesm2015/taiga-ui-cdk-date-time.js +284 -0
  478. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  479. package/fesm2015/taiga-ui-cdk-decorators.js +26 -0
  480. package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
  481. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +4 -0
  482. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  483. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +44 -1
  484. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  485. package/fesm2015/taiga-ui-cdk-directives-autofilled.js +4 -0
  486. package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  487. package/fesm2015/taiga-ui-cdk-directives-checked.js +4 -0
  488. package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
  489. package/fesm2015/taiga-ui-cdk-directives-click-outside.js +4 -0
  490. package/fesm2015/taiga-ui-cdk-directives-click-outside.js.map +1 -1
  491. package/fesm2015/taiga-ui-cdk-directives-control.js +4 -0
  492. package/fesm2015/taiga-ui-cdk-directives-control.js.map +1 -1
  493. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +4 -0
  494. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  495. package/fesm2015/taiga-ui-cdk-directives-drag.js +10 -0
  496. package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
  497. package/fesm2015/taiga-ui-cdk-directives-droppable.js +5 -0
  498. package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
  499. package/fesm2015/taiga-ui-cdk-directives-element.js +18 -0
  500. package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
  501. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +17 -0
  502. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  503. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +9 -0
  504. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  505. package/fesm2015/taiga-ui-cdk-directives-focusable.js +10 -0
  506. package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
  507. package/fesm2015/taiga-ui-cdk-directives-focused.js +9 -0
  508. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  509. package/fesm2015/taiga-ui-cdk-directives-for-async.js +7 -0
  510. package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
  511. package/fesm2015/taiga-ui-cdk-directives-for.js +4 -0
  512. package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
  513. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +7 -0
  514. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  515. package/fesm2015/taiga-ui-cdk-directives-hovered.js +7 -1
  516. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  517. package/fesm2015/taiga-ui-cdk-directives-item.js +7 -0
  518. package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
  519. package/fesm2015/taiga-ui-cdk-directives-let.js +17 -0
  520. package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
  521. package/fesm2015/taiga-ui-cdk-directives-media.js +7 -0
  522. package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
  523. package/fesm2015/taiga-ui-cdk-directives-obscured.js +7 -0
  524. package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
  525. package/fesm2015/taiga-ui-cdk-directives-overscroll.js +10 -0
  526. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  527. package/fesm2015/taiga-ui-cdk-directives-pan.js +7 -0
  528. package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
  529. package/fesm2015/taiga-ui-cdk-directives-platform.js +4 -0
  530. package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -1
  531. package/fesm2015/taiga-ui-cdk-directives-portal.js +4 -0
  532. package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
  533. package/fesm2015/taiga-ui-cdk-directives-pressed.js +4 -0
  534. package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
  535. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +12 -0
  536. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  537. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +11 -0
  538. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  539. package/fesm2015/taiga-ui-cdk-directives-resize.js +7 -0
  540. package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
  541. package/fesm2015/taiga-ui-cdk-directives-resizer.js +5 -0
  542. package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +1 -1
  543. package/fesm2015/taiga-ui-cdk-directives-swipe.js +7 -0
  544. package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
  545. package/fesm2015/taiga-ui-cdk-directives-validator.js +4 -0
  546. package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
  547. package/fesm2015/taiga-ui-cdk-directives-value-changes.js +4 -0
  548. package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +1 -1
  549. package/fesm2015/taiga-ui-cdk-directives-zoom.js +7 -0
  550. package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
  551. package/fesm2015/taiga-ui-cdk-directives.js +4 -0
  552. package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
  553. package/fesm2015/taiga-ui-cdk-enums.js +8 -0
  554. package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
  555. package/fesm2015/taiga-ui-cdk-exceptions.js +4 -0
  556. package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
  557. package/fesm2015/taiga-ui-cdk-interfaces.js +3 -1
  558. package/fesm2015/taiga-ui-cdk-interfaces.js.map +1 -1
  559. package/fesm2015/taiga-ui-cdk-observables.js +34 -1
  560. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  561. package/fesm2015/taiga-ui-cdk-pipes-filter.js +4 -0
  562. package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
  563. package/fesm2015/taiga-ui-cdk-pipes-is-present.js +4 -0
  564. package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
  565. package/fesm2015/taiga-ui-cdk-pipes-keys.js +4 -0
  566. package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
  567. package/fesm2015/taiga-ui-cdk-pipes-mapper.js +4 -0
  568. package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  569. package/fesm2015/taiga-ui-cdk-pipes-replace.js +7 -1
  570. package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
  571. package/fesm2015/taiga-ui-cdk-pipes.js +4 -0
  572. package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
  573. package/fesm2015/taiga-ui-cdk-services.js +52 -5
  574. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  575. package/fesm2015/taiga-ui-cdk-tokens.js +108 -4
  576. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  577. package/fesm2015/taiga-ui-cdk-types.js +3 -1
  578. package/fesm2015/taiga-ui-cdk-types.js.map +1 -1
  579. package/fesm2015/taiga-ui-cdk-utils-browser.js +4 -0
  580. package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
  581. package/fesm2015/taiga-ui-cdk-utils-color.js +10 -0
  582. package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
  583. package/fesm2015/taiga-ui-cdk-utils-dom.js +59 -3
  584. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  585. package/fesm2015/taiga-ui-cdk-utils-focus.js +51 -0
  586. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  587. package/fesm2015/taiga-ui-cdk-utils-format.js +7 -0
  588. package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
  589. package/fesm2015/taiga-ui-cdk-utils-math.js +38 -0
  590. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  591. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +42 -6
  592. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  593. package/fesm2015/taiga-ui-cdk-utils-os.js +14 -0
  594. package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
  595. package/fesm2015/taiga-ui-cdk-utils-svg.js +19 -1
  596. package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
  597. package/fesm2015/taiga-ui-cdk-utils.js +4 -0
  598. package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
  599. package/fesm2015/taiga-ui-cdk.js +4 -0
  600. package/fesm2015/taiga-ui-cdk.js.map +1 -1
  601. package/interfaces/control-value-transformer.d.ts +3 -0
  602. package/interfaces/day-like.d.ts +3 -0
  603. package/interfaces/focusable-element-accessor.d.ts +4 -0
  604. package/interfaces/month-like.d.ts +3 -0
  605. package/interfaces/taiga-ui-cdk-interfaces.d.ts +3 -0
  606. package/interfaces/year-like.d.ts +3 -0
  607. package/observables/control-value.d.ts +3 -0
  608. package/observables/is-alive.d.ts +3 -0
  609. package/observables/items-query-list-observable.d.ts +6 -0
  610. package/observables/mouse-drag-finish-from.d.ts +4 -0
  611. package/observables/scroll-from.d.ts +3 -0
  612. package/observables/taiga-ui-cdk-observables.d.ts +3 -0
  613. package/package.json +1 -1
  614. package/pipes/filter/filter.pipe.d.ts +7 -0
  615. package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +3 -0
  616. package/pipes/is-present/taiga-ui-cdk-pipes-is-present.d.ts +3 -0
  617. package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +3 -0
  618. package/pipes/mapper/mapper.pipe.d.ts +7 -0
  619. package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +3 -0
  620. package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +3 -0
  621. package/pipes/taiga-ui-cdk-pipes.d.ts +3 -0
  622. package/schematics/constants/file-globs.js +3 -1
  623. package/schematics/ng-add/index.js +1 -0
  624. package/schematics/ng-add/schema.d.ts +12 -0
  625. package/schematics/ng-update/steps/show-warnings.js +5 -0
  626. package/schematics/ng-update/v3/constants/breakpoints.js +2 -0
  627. package/schematics/ng-update/v3/constants/enums.js +4 -0
  628. package/schematics/ng-update/v3/constants/templates.d.ts +5 -0
  629. package/schematics/ng-update/v3/constants/templates.js +5 -0
  630. package/schematics/ng-update/v3/index.js +4 -1
  631. package/schematics/ng-update/v3/steps/migrate-date-time.js +18 -0
  632. package/schematics/ng-update/v3/steps/migrate-progress.js +3 -1
  633. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +6 -0
  634. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +5 -0
  635. package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +1 -0
  636. package/schematics/ng-update/v3/steps/migrate-templates.js +1 -0
  637. package/schematics/ng-update/v3/steps/miscellaneous.js +4 -0
  638. package/schematics/ng-update/v3/steps/replace-functions.js +1 -1
  639. package/schematics/ng-update/v3-30/index.js +1 -0
  640. package/schematics/ng-update/v3-35/index.js +1 -0
  641. package/schematics/ng-update/v3-36/index.js +1 -0
  642. package/schematics/ng-update/v3-40/index.js +1 -0
  643. package/schematics/ng-update/v3-5/index.js +1 -0
  644. package/schematics/utils/add-import-to-component.js +1 -0
  645. package/schematics/utils/angular/ng-module.d.ts +3 -0
  646. package/schematics/utils/angular/ng-module.js +3 -0
  647. package/schematics/utils/angular-json-manipulations.js +7 -0
  648. package/schematics/utils/colored-log.js +1 -1
  649. package/schematics/utils/get-projects.js +3 -1
  650. package/schematics/utils/is-ci.js +13 -11
  651. package/schematics/utils/progress.js +1 -0
  652. package/schematics/utils/push-to-array-property.js +1 -0
  653. package/schematics/utils/templates/elements.d.ts +19 -0
  654. package/schematics/utils/templates/elements.js +26 -2
  655. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +44 -0
  656. package/schematics/utils/templates/ng-component-input-manipulations.js +47 -1
  657. package/services/destroy.service.d.ts +8 -0
  658. package/services/directive-styles.service.d.ts +3 -0
  659. package/services/focus-visible.service.d.ts +5 -0
  660. package/services/id.service.d.ts +3 -0
  661. package/services/obscured.service.d.ts +5 -0
  662. package/services/parents-scroll.service.d.ts +3 -0
  663. package/services/taiga-ui-cdk-services.d.ts +3 -0
  664. package/taiga-ui-cdk.d.ts +3 -0
  665. package/tokens/active-element.d.ts +3 -0
  666. package/tokens/alerts.d.ts +3 -0
  667. package/tokens/default-renderer.d.ts +6 -0
  668. package/tokens/dialogs.d.ts +3 -0
  669. package/tokens/ensure-base-href.d.ts +3 -0
  670. package/tokens/focusable-item-accessor.d.ts +3 -0
  671. package/tokens/is-android.d.ts +3 -0
  672. package/tokens/is-apple.d.ts +3 -0
  673. package/tokens/is-chromium.d.ts +3 -0
  674. package/tokens/is-cypress.d.ts +4 -0
  675. package/tokens/is-e2e.d.ts +3 -0
  676. package/tokens/is-firefox.d.ts +3 -0
  677. package/tokens/is-ios.d.ts +3 -0
  678. package/tokens/is-mobile.d.ts +3 -0
  679. package/tokens/is-playwright.d.ts +3 -0
  680. package/tokens/is-webkit.d.ts +3 -0
  681. package/tokens/range.d.ts +3 -0
  682. package/tokens/removed-element.d.ts +3 -0
  683. package/tokens/scroll-ref.d.ts +3 -0
  684. package/tokens/swipe-options.d.ts +3 -0
  685. package/tokens/taiga-ui-cdk-tokens.d.ts +3 -0
  686. package/tokens/take-only-trusted-events.d.ts +6 -0
  687. package/tokens/window-height.d.ts +3 -0
  688. package/tokens/zoom-options.d.ts +3 -0
  689. package/types/autocomplete.d.ts +1 -0
  690. package/types/date-mode.d.ts +5 -0
  691. package/types/event-with.d.ts +3 -0
  692. package/types/mapper.d.ts +9 -0
  693. package/types/matcher.d.ts +8 -0
  694. package/types/taiga-ui-cdk-types.d.ts +3 -0
  695. package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +3 -0
  696. package/utils/color/hsv-to-rgb.d.ts +3 -0
  697. package/utils/color/taiga-ui-cdk-utils-color.d.ts +3 -0
  698. package/utils/dom/get-actual-target.d.ts +3 -0
  699. package/utils/dom/get-clipboard-data-text.d.ts +3 -0
  700. package/utils/dom/get-element-obscurers.d.ts +9 -0
  701. package/utils/dom/get-element-offset.d.ts +7 -0
  702. package/utils/dom/get-scroll-parent.d.ts +6 -0
  703. package/utils/dom/get-selected-text.d.ts +8 -0
  704. package/utils/dom/is-inside-iframe.d.ts +3 -0
  705. package/utils/dom/is-node-in.d.ts +7 -0
  706. package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +3 -0
  707. package/utils/focus/blur-native-focused.d.ts +3 -0
  708. package/utils/focus/get-closest-focusable.d.ts +20 -0
  709. package/utils/focus/get-native-focused.d.ts +5 -0
  710. package/utils/focus/is-native-focused-in.d.ts +6 -0
  711. package/utils/focus/is-native-focused.d.ts +8 -0
  712. package/utils/focus/is-native-keyboard-focusable.d.ts +6 -0
  713. package/utils/focus/move-focus.d.ts +7 -0
  714. package/utils/focus/set-native-mouse-focused.d.ts +7 -0
  715. package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +3 -0
  716. package/utils/format/px.d.ts +3 -0
  717. package/utils/format/taiga-ui-cdk-utils-format.d.ts +3 -0
  718. package/utils/math/clamp.d.ts +7 -0
  719. package/utils/math/normalize-to-int-number.d.ts +8 -0
  720. package/utils/math/quantize.d.ts +6 -0
  721. package/utils/math/sum.d.ts +3 -0
  722. package/utils/math/taiga-ui-cdk-utils-math.d.ts +3 -0
  723. package/utils/math/to-radians.d.ts +3 -0
  724. package/utils/miscellaneous/create-options.d.ts +1 -0
  725. package/utils/miscellaneous/flat-length.d.ts +5 -0
  726. package/utils/miscellaneous/get-original-array-from-query-list.d.ts +6 -0
  727. package/utils/miscellaneous/is-string.js +1 -0
  728. package/utils/miscellaneous/nullable-same.d.ts +8 -0
  729. package/utils/miscellaneous/object-from-entries.d.ts +8 -0
  730. package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +3 -0
  731. package/utils/os/is-apple-platform.d.ts +10 -0
  732. package/utils/os/taiga-ui-cdk-utils-os.d.ts +3 -0
  733. package/utils/svg/svg-linear-gradient-processor.d.ts +14 -0
  734. package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +3 -0
  735. package/utils/taiga-ui-cdk-utils.d.ts +3 -0
@@ -32,11 +32,28 @@
32
32
  var MILLISECONDS_IN_HOUR = MILLISECONDS_IN_MINUTE * MINUTES_IN_HOUR;
33
33
  var MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
34
34
 
35
+ /**
36
+ * @internal 'dd.mm.yyyy'.length
37
+ * Used in:
38
+ * - {@link TuiInputDateComponent}
39
+ * - {@link TuiInputDateRangeComponent}
40
+ * - {@link TuiInputDateTimeComponent}
41
+ */
35
42
  var DATE_FILLER_LENGTH = 10;
43
+ /**
44
+ * @internal
45
+ * Used in {@link TuiInputDateRangeComponent}
46
+ */
36
47
  var DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
37
48
 
49
+ /**
50
+ * Active date format for Taiga UI
51
+ */
38
52
  var TUI_DATE_FORMAT = utils.tuiCreateToken("DMY");
39
53
 
54
+ /**
55
+ * Date separator for Taiga UI components
56
+ */
40
57
  var TUI_DATE_SEPARATOR = utils.tuiCreateToken(".");
41
58
  var changeDateSeparator = function (dateString, newDateSeparator) { return dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator); };
42
59
 
@@ -358,18 +375,31 @@
358
375
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
359
376
  }
360
377
 
378
+ /**
379
+ * Immutable year object
380
+ * @nosideeffects
381
+ */
361
382
  var TuiYear = /** @class */ (function () {
362
383
  function TuiYear(year) {
363
384
  this.year = year;
364
385
  ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
365
386
  }
387
+ /**
388
+ * Checks year for validity
389
+ */
366
390
  TuiYear.isValidYear = function (year) {
367
391
  return Number.isInteger(year) && math.tuiInRange(year, MIN_YEAR, MAX_YEAR + 1);
368
392
  };
393
+ /**
394
+ * Check if passed year is a leap year
395
+ */
369
396
  TuiYear.isLeapYear = function (year) {
370
397
  ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
371
398
  return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
372
399
  };
400
+ /**
401
+ * Returns amount of leap years from year 0 to the passed one
402
+ */
373
403
  TuiYear.getAbsoluteLeapYears = function (year) {
374
404
  ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
375
405
  return Math.ceil(year / 400) + (Math.ceil(year / 4) - Math.ceil(year / 100));
@@ -377,6 +407,9 @@
377
407
  TuiYear.lengthBetween = function (from, to) {
378
408
  return to.year - from.year;
379
409
  };
410
+ /**
411
+ * Normalizes year by clamping it between min and max years
412
+ */
380
413
  TuiYear.normalizeYearPart = function (year) {
381
414
  return math.tuiNormalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
382
415
  };
@@ -395,32 +428,53 @@
395
428
  configurable: true
396
429
  });
397
430
  Object.defineProperty(TuiYear.prototype, "absoluteLeapYears", {
431
+ /**
432
+ * Returns amount of leap years from year 0 to current
433
+ */
398
434
  get: function () {
399
435
  return TuiYear.getAbsoluteLeapYears(this.year);
400
436
  },
401
437
  enumerable: false,
402
438
  configurable: true
403
439
  });
440
+ /**
441
+ * Passed year is after current
442
+ */
404
443
  TuiYear.prototype.yearBefore = function (_a) {
405
444
  var year = _a.year;
406
445
  return this.year < year;
407
446
  };
447
+ /**
448
+ * Passed year is the same or after current
449
+ */
408
450
  TuiYear.prototype.yearSameOrBefore = function (_a) {
409
451
  var year = _a.year;
410
452
  return this.year <= year;
411
453
  };
454
+ /**
455
+ * Passed year is the same as current
456
+ */
412
457
  TuiYear.prototype.yearSame = function (_a) {
413
458
  var year = _a.year;
414
459
  return this.year === year;
415
460
  };
461
+ /**
462
+ * Passed year is either the same of before the current
463
+ */
416
464
  TuiYear.prototype.yearSameOrAfter = function (_a) {
417
465
  var year = _a.year;
418
466
  return this.year >= year;
419
467
  };
468
+ /**
469
+ * Passed year is before current
470
+ */
420
471
  TuiYear.prototype.yearAfter = function (_a) {
421
472
  var year = _a.year;
422
473
  return this.year > year;
423
474
  };
475
+ /**
476
+ * Immutably offsets year
477
+ */
424
478
  TuiYear.prototype.append = function (_a) {
425
479
  var _b = _a.year, year = _b === void 0 ? 0 : _b;
426
480
  ngDevMode && classes.tuiAssert.assert(Number.isInteger(year));
@@ -434,6 +488,11 @@
434
488
  TuiYear.prototype.valueOf = function () {
435
489
  return this.year;
436
490
  };
491
+ /**
492
+ * Returns the primitive value of the given Date object.
493
+ * Depending on the argument, the method can return either a string or a number.
494
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
495
+ */
437
496
  TuiYear.prototype[Symbol.toPrimitive] = function (hint) {
438
497
  return Date.prototype[Symbol.toPrimitive].call(this, hint);
439
498
  };
@@ -443,17 +502,30 @@
443
502
  return TuiYear;
444
503
  }());
445
504
 
505
+ /**
506
+ * Immutable object consisting of year and month
507
+ */
446
508
  var TuiMonth = /** @class */ (function (_super) {
447
509
  __extends(TuiMonth, _super);
510
+ /**
511
+ * @param year
512
+ * @param month (starting with 0)
513
+ */
448
514
  function TuiMonth(year, month) {
449
515
  var _this = _super.call(this, year) || this;
450
516
  _this.month = month;
451
517
  ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
452
518
  return _this;
453
519
  }
520
+ /**
521
+ * Tests month and year for validity
522
+ */
454
523
  TuiMonth.isValidMonth = function (year, month) {
455
524
  return TuiYear.isValidYear(year) && TuiMonth.isValidMonthPart(month);
456
525
  };
526
+ /**
527
+ * Returns number of days in a month
528
+ */
457
529
  TuiMonth.getMonthDaysCount = function (month, isLeapYear) {
458
530
  ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonthPart(month));
459
531
  switch (month) {
@@ -468,10 +540,17 @@
468
540
  return 31;
469
541
  }
470
542
  };
543
+ /**
544
+ * Returns current month and year based on local time zone
545
+ * @nosideeffects
546
+ */
471
547
  TuiMonth.currentLocal = function () {
472
548
  var nativeDate = new Date();
473
549
  return new TuiMonth(nativeDate.getFullYear(), nativeDate.getMonth());
474
550
  };
551
+ /**
552
+ * Returns current month and year based on UTC
553
+ */
475
554
  TuiMonth.currentUtc = function () {
476
555
  var nativeDate = new Date();
477
556
  return new TuiMonth(nativeDate.getUTCFullYear(), nativeDate.getUTCMonth());
@@ -481,9 +560,15 @@
481
560
  var absoluteTo = to.month + to.year * 12;
482
561
  return absoluteTo - absoluteFrom;
483
562
  };
563
+ /**
564
+ * Normalizes number by clamping it between min and max month
565
+ */
484
566
  TuiMonth.normalizeMonthPart = function (month) {
485
567
  return math.tuiNormalizeToIntNumber(month, MIN_MONTH, MAX_MONTH);
486
568
  };
569
+ /**
570
+ * Tests month for validity
571
+ */
487
572
  TuiMonth.isValidMonthPart = function (month) {
488
573
  return Number.isInteger(month) && math.tuiInRange(month, MIN_MONTH, MAX_MONTH + 1);
489
574
  };
@@ -495,31 +580,55 @@
495
580
  configurable: true
496
581
  });
497
582
  Object.defineProperty(TuiMonth.prototype, "daysCount", {
583
+ /**
584
+ * Returns days in a month
585
+ */
498
586
  get: function () {
499
587
  return TuiMonth.getMonthDaysCount(this.month, this.isLeapYear);
500
588
  },
501
589
  enumerable: false,
502
590
  configurable: true
503
591
  });
592
+ /**
593
+ * Passed month and year are after current
594
+ */
504
595
  TuiMonth.prototype.monthBefore = function (another) {
505
596
  return (this.yearBefore(another) ||
506
597
  (this.yearSame(another) && this.month < another.month));
507
598
  };
599
+ /**
600
+ * Passed month and year are after or the same as current
601
+ */
508
602
  TuiMonth.prototype.monthSameOrBefore = function (another) {
509
603
  return (this.yearBefore(another) ||
510
604
  (this.yearSame(another) && this.month <= another.month));
511
605
  };
606
+ /**
607
+ * Passed month and year are the same as current
608
+ */
512
609
  TuiMonth.prototype.monthSame = function (another) {
513
610
  return this.yearSame(another) && this.month === another.month;
514
611
  };
612
+ /**
613
+ * Passed month and year are either before or equal to current
614
+ */
515
615
  TuiMonth.prototype.monthSameOrAfter = function (another) {
516
616
  return (this.yearAfter(another) ||
517
617
  (this.yearSame(another) && this.month >= another.month));
518
618
  };
619
+ /**
620
+ * Passed month and year are before current
621
+ */
519
622
  TuiMonth.prototype.monthAfter = function (another) {
520
623
  return (this.yearAfter(another) ||
521
624
  (this.yearSame(another) && this.month > another.month));
522
625
  };
626
+ /**
627
+ * Immutably alters current month and year by passed offset
628
+ *
629
+ * @param offset
630
+ * @return new month and year object as a result of offsetting current
631
+ */
523
632
  TuiMonth.prototype.append = function (_a) {
524
633
  var _b = _a.year, year = _b === void 0 ? 0 : _b, _c = _a.month, month = _c === void 0 ? 0 : _c;
525
634
  var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
@@ -534,15 +643,25 @@
534
643
  TuiMonth.prototype.toJSON = function () {
535
644
  return _super.prototype.toJSON.call(this) + "-" + this.formattedMonthPart;
536
645
  };
646
+ /**
647
+ * Returns native {@link Date} based on local time zone
648
+ */
537
649
  TuiMonth.prototype.toLocalNativeDate = function () {
538
650
  return new Date(this.year, this.month);
539
651
  };
652
+ /**
653
+ * Returns native {@link Date} based on UTC
654
+ */
540
655
  TuiMonth.prototype.toUtcNativeDate = function () {
541
656
  return new Date(Date.UTC(this.year, this.month));
542
657
  };
543
658
  return TuiMonth;
544
659
  }(TuiYear));
545
660
 
661
+ // TODO: Localized formatting
662
+ /**
663
+ * Immutable date object, consisting of day, month and year
664
+ */
546
665
  var TuiDay = /** @class */ (function (_super) {
547
666
  __extends(TuiDay, _super);
548
667
  function TuiDay(year, month, day) {
@@ -551,17 +670,34 @@
551
670
  ngDevMode && classes.tuiAssert.assert(TuiDay.isValidDay(year, month, day));
552
671
  return _this;
553
672
  }
673
+ /**
674
+ * Creates {@link TuiDay} from native {@link Date} based on local time zone
675
+ */
554
676
  TuiDay.fromLocalNativeDate = function (date) {
555
677
  return new TuiDay(date.getFullYear(), date.getMonth(), date.getDate());
556
678
  };
679
+ /**
680
+ * Creates {@link TuiDay} from native {@link Date} using UTC
681
+ */
557
682
  TuiDay.fromUtcNativeDate = function (date) {
558
683
  return new TuiDay(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
559
684
  };
685
+ /**
686
+ * Check validity of year, month and day
687
+ *
688
+ * @param year
689
+ * @param month
690
+ * @param day
691
+ * @return boolean validity
692
+ */
560
693
  TuiDay.isValidDay = function (year, month, day) {
561
694
  return (TuiMonth.isValidMonth(year, month) &&
562
695
  Number.isInteger(day) &&
563
696
  math.tuiInRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1));
564
697
  };
698
+ /**
699
+ * Current day based on local time zone
700
+ */
565
701
  TuiDay.currentLocal = function () {
566
702
  var nativeDate = new Date();
567
703
  var year = nativeDate.getFullYear();
@@ -569,6 +705,9 @@
569
705
  var day = nativeDate.getDate();
570
706
  return new TuiDay(year, month, day);
571
707
  };
708
+ /**
709
+ * Returns current day based on UTC
710
+ */
572
711
  TuiDay.currentUtc = function () {
573
712
  var nativeDate = new Date();
574
713
  var year = nativeDate.getUTCFullYear();
@@ -576,6 +715,14 @@
576
715
  var day = nativeDate.getUTCDate();
577
716
  return new TuiDay(year, month, day);
578
717
  };
718
+ /**
719
+ * Calculates {@link TuiDay} normalizing year, month and day. {@link NaN} is turned into minimal value.
720
+ *
721
+ * @param year any year value, including invalid
722
+ * @param month any month value, including invalid (months start with 0)
723
+ * @param day any day value, including invalid
724
+ * @return normalized date
725
+ */
579
726
  TuiDay.normalizeOf = function (year, month, day) {
580
727
  var normalizedYear = TuiYear.normalizeYearPart(year);
581
728
  var normalizedMonth = TuiMonth.normalizeMonthPart(month);
@@ -612,11 +759,25 @@
612
759
  };
613
760
  }
614
761
  };
762
+ // TODO: Move month and year related code corresponding classes
763
+ /**
764
+ * Parsing a string with date with normalization
765
+ *
766
+ * @param rawDate date string
767
+ * @param dateMode date format of the date string (DMY | MDY | YMD)
768
+ * @return normalized date
769
+ */
615
770
  TuiDay.normalizeParse = function (rawDate, dateMode) {
616
771
  if (dateMode === void 0) { dateMode = "DMY"; }
617
772
  var _a = this.parseRawDateString(rawDate, dateMode), day = _a.day, month = _a.month, year = _a.year;
618
773
  return TuiDay.normalizeOf(year, month, day);
619
774
  };
775
+ /**
776
+ * Parsing a date stringified in a toJSON format
777
+ * @param yearMonthDayString date string in format of YYYY-MM-DD
778
+ * @return date
779
+ * @throws exceptions if any part of the date is invalid
780
+ */
620
781
  TuiDay.jsonParse = function (yearMonthDayString) {
621
782
  var _a = this.parseRawDateString(yearMonthDayString, "YMD"), day = _a.day, month = _a.month, year = _a.year;
622
783
  if (!TuiYear.isValidYear(year)) {
@@ -651,6 +812,12 @@
651
812
  enumerable: false,
652
813
  configurable: true
653
814
  });
815
+ /**
816
+ * Returns day of week
817
+ *
818
+ * @param startFromMonday whether week starts from Monday and not from Sunday
819
+ * @return day of week (from 0 to 6)
820
+ */
654
821
  TuiDay.prototype.dayOfWeek = function (startFromMonday) {
655
822
  if (startFromMonday === void 0) { startFromMonday = true; }
656
823
  var dayOfWeek = startFromMonday
@@ -658,25 +825,47 @@
658
825
  : this.toLocalNativeDate().getDay();
659
826
  return dayOfWeek < 0 ? 6 : dayOfWeek;
660
827
  };
828
+ /**
829
+ * Passed date is after current
830
+ */
661
831
  TuiDay.prototype.dayBefore = function (another) {
662
832
  return (this.monthBefore(another) ||
663
833
  (this.monthSame(another) && this.day < another.day));
664
834
  };
835
+ /**
836
+ * Passed date is after or equals to current
837
+ */
665
838
  TuiDay.prototype.daySameOrBefore = function (another) {
666
839
  return (this.monthBefore(another) ||
667
840
  (this.monthSame(another) && this.day <= another.day));
668
841
  };
842
+ /**
843
+ * Passed date is the same as current
844
+ */
669
845
  TuiDay.prototype.daySame = function (another) {
670
846
  return this.monthSame(another) && this.day === another.day;
671
847
  };
848
+ /**
849
+ * Passed date is either before or the same as current
850
+ */
672
851
  TuiDay.prototype.daySameOrAfter = function (another) {
673
852
  return (this.monthAfter(another) ||
674
853
  (this.monthSame(another) && this.day >= another.day));
675
854
  };
855
+ /**
856
+ * Passed date is before current
857
+ */
676
858
  TuiDay.prototype.dayAfter = function (another) {
677
859
  return (this.monthAfter(another) ||
678
860
  (this.monthSame(another) && this.day > another.day));
679
861
  };
862
+ /**
863
+ * Clamping date between two limits
864
+ *
865
+ * @param min
866
+ * @param max
867
+ * @return clamped date
868
+ */
680
869
  TuiDay.prototype.dayLimit = function (min, max) {
681
870
  if (min !== null && this.dayBefore(min)) {
682
871
  return min;
@@ -686,6 +875,16 @@
686
875
  }
687
876
  return this;
688
877
  };
878
+ /**
879
+ * Immutably alters current day by passed offset
880
+ *
881
+ * If resulting month has more days than original one, date is rounded to the maximum day
882
+ * in the resulting month. Offset of days will be calculated based on the resulted year and month
883
+ * to not interfere with parent classes methods
884
+ *
885
+ * @param offset
886
+ * @return new date object as a result of offsetting current
887
+ */
689
888
  TuiDay.prototype.append = function (_a) {
690
889
  var _b = _a.year, year = _b === void 0 ? 0 : _b, _c = _a.month, month = _c === void 0 ? 0 : _c, _d = _a.day, day = _d === void 0 ? 0 : _d;
691
890
  var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
@@ -714,6 +913,9 @@
714
913
  }
715
914
  return new TuiDay(years, months, days);
716
915
  };
916
+ /**
917
+ * Returns formatted whole date
918
+ */
717
919
  TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
718
920
  ngDevMode &&
719
921
  classes.tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
@@ -738,15 +940,24 @@
738
940
  TuiDay.prototype.toJSON = function () {
739
941
  return _super.prototype.toJSON.call(this) + "-" + this.formattedDayPart;
740
942
  };
943
+ /**
944
+ * Returns native {@link Date} based on local time zone
945
+ */
741
946
  TuiDay.prototype.toLocalNativeDate = function () {
742
947
  return new Date(this.year, this.month, this.day);
743
948
  };
949
+ /**
950
+ * Returns native {@link Date} based on UTC
951
+ */
744
952
  TuiDay.prototype.toUtcNativeDate = function () {
745
953
  return new Date(Date.UTC(this.year, this.month, this.day));
746
954
  };
747
955
  return TuiDay;
748
956
  }(TuiMonth));
749
957
 
958
+ /**
959
+ * An immutable range of two {@link TuiMonth} objects
960
+ */
750
961
  var TuiMonthRange = /** @class */ (function () {
751
962
  function TuiMonthRange(from, to) {
752
963
  this.from = from;
@@ -774,6 +985,9 @@
774
985
  return TuiMonthRange;
775
986
  }());
776
987
 
988
+ /**
989
+ * An immutable range of two {@link TuiDay} objects
990
+ */
777
991
  var TuiDayRange = /** @class */ (function (_super) {
778
992
  __extends(TuiDayRange, _super);
779
993
  function TuiDayRange(from, to) {
@@ -783,11 +997,25 @@
783
997
  ngDevMode && classes.tuiAssert.assert(from.daySameOrBefore(to));
784
998
  return _this;
785
999
  }
1000
+ /**
1001
+ * Creates range from two days after sorting them
1002
+ *
1003
+ * @param day1
1004
+ * @param day2
1005
+ * @return new range with sorted days
1006
+ */
786
1007
  TuiDayRange.sort = function (day1, day2) {
787
1008
  return day1.daySameOrBefore(day2)
788
1009
  ? new TuiDayRange(day1, day2)
789
1010
  : new TuiDayRange(day2, day1);
790
1011
  };
1012
+ /**
1013
+ * Parse and correct a day range in string format
1014
+ *
1015
+ * @param rangeString a string of dates in a format dd.mm.yyyy - dd.mm.yyyy
1016
+ * @param dateMode {@link TuiDateMode}
1017
+ * @return normalized day range object
1018
+ */
791
1019
  TuiDayRange.normalizeParse = function (rangeString, dateMode) {
792
1020
  if (dateMode === void 0) { dateMode = "DMY"; }
793
1021
  var leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
@@ -803,12 +1031,28 @@
803
1031
  enumerable: false,
804
1032
  configurable: true
805
1033
  });
1034
+ /**
1035
+ * Tests ranges for identity
1036
+ *
1037
+ * @param another second range to test against current
1038
+ * @return `true` if days are identical
1039
+ */
806
1040
  TuiDayRange.prototype.daySame = function (another) {
807
1041
  return this.from.daySame(another.from) && this.to.daySame(another.to);
808
1042
  };
1043
+ /**
1044
+ * Locks range between two days included, or limits from one side if the other is null
1045
+ *
1046
+ * @param min
1047
+ * @param max
1048
+ * @return range — clamped range
1049
+ */
809
1050
  TuiDayRange.prototype.dayLimit = function (min, max) {
810
1051
  return new TuiDayRange(this.from.dayLimit(min, max), this.to.dayLimit(min, max));
811
1052
  };
1053
+ /**
1054
+ * Human readable format.
1055
+ */
812
1056
  TuiDayRange.prototype.getFormattedDayRange = function (dateFormat, dateSeparator) {
813
1057
  var from = this.from.getFormattedDay(dateFormat, dateSeparator);
814
1058
  var to = this.to.getFormattedDay(dateFormat, dateSeparator);
@@ -827,6 +1071,9 @@
827
1071
  var TUI_FIRST_DAY = new TuiDay(MIN_YEAR, MIN_MONTH, MIN_DAY);
828
1072
  var TUI_LAST_DAY = new TuiDay(MAX_YEAR, MAX_MONTH, 31);
829
1073
 
1074
+ /**
1075
+ * Immutable time object with hours, minutes, seconds and ms
1076
+ */
830
1077
  var TuiTime = /** @class */ (function () {
831
1078
  function TuiTime(hours, minutes, seconds, ms) {
832
1079
  if (seconds === void 0) { seconds = 0; }
@@ -838,6 +1085,9 @@
838
1085
  ngDevMode &&
839
1086
  classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
840
1087
  }
1088
+ /**
1089
+ * Checks if time is valid
1090
+ */
841
1091
  TuiTime.isValidTime = function (hours, minutes, seconds, ms) {
842
1092
  if (seconds === void 0) { seconds = 0; }
843
1093
  if (ms === void 0) { ms = 0; }
@@ -850,14 +1100,23 @@
850
1100
  Number.isInteger(ms) &&
851
1101
  math.tuiInRange(ms, 0, 1000));
852
1102
  };
1103
+ /**
1104
+ * Current UTC time.
1105
+ */
853
1106
  TuiTime.current = function () {
854
1107
  return TuiTime.fromAbsoluteMilliseconds(Date.now() % MILLISECONDS_IN_DAY);
855
1108
  };
1109
+ /**
1110
+ * Current time in local timezone
1111
+ */
856
1112
  TuiTime.currentLocal = function () {
857
1113
  var date = new Date();
858
1114
  return TuiTime.fromAbsoluteMilliseconds((Date.now() - date.getTimezoneOffset() * MILLISECONDS_IN_MINUTE) %
859
1115
  MILLISECONDS_IN_DAY);
860
1116
  };
1117
+ /**
1118
+ * Calculates TuiTime from milliseconds
1119
+ */
861
1120
  TuiTime.fromAbsoluteMilliseconds = function (milliseconds) {
862
1121
  ngDevMode && classes.tuiAssert.assert(Number.isInteger(milliseconds));
863
1122
  ngDevMode &&
@@ -868,6 +1127,9 @@
868
1127
  var ms = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) % 1000) || 0;
869
1128
  return new TuiTime(hours, minutes, seconds, ms);
870
1129
  };
1130
+ /**
1131
+ * Parses string into TuiTime object
1132
+ */
871
1133
  TuiTime.fromString = function (time) {
872
1134
  var hours = Number(time.slice(0, 2));
873
1135
  var minutes = Number(time.slice(3, 5));
@@ -875,9 +1137,16 @@
875
1137
  var ms = Number(time.slice(9, 12)) || 0;
876
1138
  return new TuiTime(hours, minutes, seconds, ms);
877
1139
  };
1140
+ /**
1141
+ * Converts Date object into TuiTime
1142
+ * @param date
1143
+ */
878
1144
  TuiTime.fromLocalNativeDate = function (date) {
879
1145
  return new TuiTime(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
880
1146
  };
1147
+ /**
1148
+ * Shifts time by hours and minutes
1149
+ */
881
1150
  TuiTime.prototype.shift = function (_a) {
882
1151
  var _b = _a.hours, hours = _b === void 0 ? 0 : _b, _c = _a.minutes, minutes = _c === void 0 ? 0 : _c, _d = _a.seconds, seconds = _d === void 0 ? 0 : _d, _e = _a.ms, ms = _e === void 0 ? 0 : _e;
883
1152
  var newMs = (1000 + this.ms + (ms % 1000)) % 1000;
@@ -896,6 +1165,9 @@
896
1165
  var newHours = (24 + this.hours + (hoursToAdd % 24)) % 24;
897
1166
  return new TuiTime(newHours, newMinutes, newSeconds, newMs);
898
1167
  };
1168
+ /**
1169
+ * Converts TuiTime to string
1170
+ */
899
1171
  TuiTime.prototype.toString = function (mode) {
900
1172
  var needAddMs = mode === "HH:MM:SS.MSS" || (!mode && this.ms > 0);
901
1173
  var needAddSeconds = needAddMs || mode === "HH:MM:SS" || (!mode && this.seconds > 0);
@@ -906,9 +1178,17 @@
906
1178
  TuiTime.prototype.valueOf = function () {
907
1179
  return this.toAbsoluteMilliseconds();
908
1180
  };
1181
+ /**
1182
+ * Returns the primitive value of the given Date object.
1183
+ * Depending on the argument, the method can return either a string or a number.
1184
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
1185
+ */
909
1186
  TuiTime.prototype[Symbol.toPrimitive] = function (hint) {
910
1187
  return Date.prototype[Symbol.toPrimitive].call(this, hint);
911
1188
  };
1189
+ /**
1190
+ * Converts TuiTime to milliseconds
1191
+ */
912
1192
  TuiTime.prototype.toAbsoluteMilliseconds = function () {
913
1193
  return (this.hours * MILLISECONDS_IN_HOUR +
914
1194
  this.minutes * MILLISECONDS_IN_MINUTE +
@@ -922,6 +1202,10 @@
922
1202
  return TuiTime;
923
1203
  }());
924
1204
 
1205
+ /**
1206
+ * Generated bundle index. Do not edit.
1207
+ */
1208
+
925
1209
  exports.DATE_FILLER_LENGTH = DATE_FILLER_LENGTH;
926
1210
  exports.DATE_RANGE_FILLER_LENGTH = DATE_RANGE_FILLER_LENGTH;
927
1211
  exports.DAYS_IN_LEAP_YEAR = DAYS_IN_LEAP_YEAR;