@taiga-ui/cdk 3.60.0-canary.8108863 → 3.61.0-canary.2abddb0

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 (305) hide show
  1. package/bundles/taiga-ui-cdk-abstract.umd.js +971 -1117
  2. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-coercion.umd.js +1 -1
  4. package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +505 -651
  6. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +404 -550
  8. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +590 -736
  10. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-constants.umd.js +80 -80
  12. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-date-time.umd.js +33 -179
  14. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-decorators.umd.js +10 -156
  16. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +434 -580
  18. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +706 -852
  20. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +426 -572
  22. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +410 -556
  24. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-directives-resizer.umd.js +482 -628
  26. package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-exceptions.umd.js +426 -572
  28. package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-observables.umd.js +9 -9
  30. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-pipes-filter.umd.js +373 -519
  32. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +1 -1
  34. package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-pipes-keys.umd.js +1 -1
  36. package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
  37. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +373 -519
  38. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-pipes-replace.umd.js +2 -2
  40. package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
  41. package/bundles/taiga-ui-cdk-services.umd.js +841 -984
  42. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  43. package/bundles/taiga-ui-cdk-tokens.umd.js +650 -796
  44. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-utils-browser.umd.js +8 -8
  46. package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
  47. package/bundles/taiga-ui-cdk-utils-color.umd.js +26 -172
  48. package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
  49. package/bundles/taiga-ui-cdk-utils-dom.umd.js +11 -11
  50. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-utils-focus.umd.js +19 -19
  52. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  53. package/bundles/taiga-ui-cdk-utils-format.umd.js +1 -1
  54. package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
  55. package/bundles/taiga-ui-cdk-utils-math.umd.js +7 -7
  56. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  57. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +21 -167
  58. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  59. package/bundles/taiga-ui-cdk-utils-os.umd.js +1 -1
  60. package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
  61. package/bundles/taiga-ui-cdk-utils-svg.umd.js +11 -11
  62. package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
  63. package/constants/version.d.ts +1 -1
  64. package/constants/version.js +1 -1
  65. package/esm2015/abstract/control.js +4 -4
  66. package/esm2015/abstract/interactive.js +7 -7
  67. package/esm2015/abstract/portal-host.js +2 -2
  68. package/esm2015/abstract/theme-switcher.js +2 -2
  69. package/esm2015/coercion/coerce-boolean-property.js +2 -2
  70. package/esm2015/components/dropdown-host/dropdown-portal.service.js +3 -3
  71. package/esm2015/constants/parent-animation.js +4 -4
  72. package/esm2015/constants/svg-node-filter.js +2 -2
  73. package/esm2015/constants/unicode-chars.js +13 -13
  74. package/esm2015/constants/used-icons.js +64 -64
  75. package/esm2015/constants/version.js +2 -2
  76. package/esm2015/date-time/date-format.js +2 -2
  77. package/esm2015/date-time/date-separator.js +2 -2
  78. package/esm2015/date-time/day-range.js +3 -3
  79. package/esm2015/date-time/day.js +14 -14
  80. package/esm2015/date-time/month.js +2 -2
  81. package/esm2015/date-time/time.js +7 -7
  82. package/esm2015/date-time/year.js +2 -2
  83. package/esm2015/decorators/pure.js +5 -5
  84. package/esm2015/directives/auto-focus/autofocus.options.js +2 -2
  85. package/esm2015/directives/auto-focus/handlers/abstract.handler.js +2 -2
  86. package/esm2015/directives/auto-focus/handlers/default.handler.js +2 -2
  87. package/esm2015/directives/auto-focus/handlers/ios.handler.js +28 -28
  88. package/esm2015/directives/hovered/hovered.service.js +3 -3
  89. package/esm2015/exceptions/computed-document.exception.js +2 -2
  90. package/esm2015/exceptions/document-selection.exception.js +2 -2
  91. package/esm2015/exceptions/invalid-day.exception.js +2 -2
  92. package/esm2015/exceptions/invalid-month.exception.js +2 -2
  93. package/esm2015/exceptions/invalid-year.exception.js +2 -2
  94. package/esm2015/exceptions/no-host.exception.js +2 -2
  95. package/esm2015/exceptions/owner-document.exception.js +2 -2
  96. package/esm2015/exceptions/pure.exception.js +2 -2
  97. package/esm2015/exceptions/table-sort-key.exception.js +2 -2
  98. package/esm2015/exceptions/ts-parser.exception.js +2 -2
  99. package/esm2015/exceptions/value-changes.exception.js +2 -2
  100. package/esm2015/exceptions/value-present.exception.js +2 -2
  101. package/esm2015/exceptions/xml-parsing.exception.js +2 -2
  102. package/esm2015/observables/drag-and-drop-from.js +2 -2
  103. package/esm2015/observables/focus-visible-observable.js +5 -5
  104. package/esm2015/observables/is-observed.js +2 -2
  105. package/esm2015/observables/mouse-drag-finish-from.js +2 -2
  106. package/esm2015/observables/pressed-observable.js +2 -2
  107. package/esm2015/observables/scroll-from.js +2 -2
  108. package/esm2015/pipes/filter/filter.pipe.js +2 -2
  109. package/esm2015/pipes/is-present/is-present.pipe.js +2 -2
  110. package/esm2015/pipes/keys/keys.pipe.js +2 -2
  111. package/esm2015/pipes/mapper/mapper.pipe.js +2 -2
  112. package/esm2015/pipes/replace/replace.pipe.js +3 -3
  113. package/esm2015/services/directive-styles.service.js +6 -3
  114. package/esm2015/services/id.service.js +4 -4
  115. package/esm2015/services/obscured.service.js +2 -2
  116. package/esm2015/services/pan.service.js +5 -5
  117. package/esm2015/services/parents-scroll.service.js +2 -2
  118. package/esm2015/services/scroll.service.js +8 -8
  119. package/esm2015/services/static-request.service.js +4 -4
  120. package/esm2015/services/swipe.service.js +2 -2
  121. package/esm2015/services/zoom.service.js +3 -3
  122. package/esm2015/tokens/active-element.js +9 -9
  123. package/esm2015/tokens/base-href.js +2 -2
  124. package/esm2015/tokens/ensure-base-href.js +4 -4
  125. package/esm2015/tokens/focusable-item-accessor.js +2 -2
  126. package/esm2015/tokens/fonts-ready.js +2 -2
  127. package/esm2015/tokens/is-firefox.js +2 -2
  128. package/esm2015/tokens/is-stackblitz.js +2 -2
  129. package/esm2015/tokens/platform.js +5 -5
  130. package/esm2015/tokens/touch-supported.js +2 -2
  131. package/esm2015/tokens/window-size.js +5 -5
  132. package/esm2015/utils/browser/is-edge-older-than.js +2 -2
  133. package/esm2015/utils/browser/is-edge.js +2 -2
  134. package/esm2015/utils/browser/is-firefox.js +2 -2
  135. package/esm2015/utils/browser/is-safari.js +6 -6
  136. package/esm2015/utils/color/hex-to-rgb.js +4 -4
  137. package/esm2015/utils/color/hex-to-rgba.js +5 -5
  138. package/esm2015/utils/color/parse-color.js +7 -7
  139. package/esm2015/utils/color/rgb-to-hex.js +2 -2
  140. package/esm2015/utils/color/rgba-to-hex.js +7 -7
  141. package/esm2015/utils/dom/element-checks.js +4 -4
  142. package/esm2015/utils/dom/get-clipboard-data-text.js +4 -4
  143. package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -2
  144. package/esm2015/utils/dom/get-element-offset.js +2 -2
  145. package/esm2015/utils/dom/retarget-boundary-crossing.js +4 -4
  146. package/esm2015/utils/focus/is-native-keyboard-focusable.js +14 -14
  147. package/esm2015/utils/focus/is-native-mouse-focusable.js +3 -3
  148. package/esm2015/utils/focus/set-native-mouse-focused.js +5 -5
  149. package/esm2015/utils/format/px.js +2 -2
  150. package/esm2015/utils/math/round-with.js +4 -4
  151. package/esm2015/utils/math/round.js +5 -5
  152. package/esm2015/utils/miscellaneous/clean-object.js +2 -2
  153. package/esm2015/utils/miscellaneous/create-token.js +2 -2
  154. package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
  155. package/esm2015/utils/miscellaneous/get-swipe-direction.js +3 -3
  156. package/esm2015/utils/miscellaneous/is-number.js +2 -2
  157. package/esm2015/utils/miscellaneous/is-object.js +2 -2
  158. package/esm2015/utils/miscellaneous/is-string.js +2 -2
  159. package/esm2015/utils/miscellaneous/is-valid-url.js +8 -8
  160. package/esm2015/utils/os/is-apple-platform.js +2 -2
  161. package/esm2015/utils/svg/svg-linear-gradient-processor.js +12 -12
  162. package/fesm2015/taiga-ui-cdk-abstract.js +11 -11
  163. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  164. package/fesm2015/taiga-ui-cdk-coercion.js +1 -1
  165. package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
  166. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +2 -2
  167. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  168. package/fesm2015/taiga-ui-cdk-constants.js +80 -80
  169. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  170. package/fesm2015/taiga-ui-cdk-date-time.js +25 -25
  171. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  172. package/fesm2015/taiga-ui-cdk-decorators.js +4 -4
  173. package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
  174. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +30 -30
  175. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  176. package/fesm2015/taiga-ui-cdk-directives-hovered.js +2 -2
  177. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  178. package/fesm2015/taiga-ui-cdk-exceptions.js +13 -13
  179. package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
  180. package/fesm2015/taiga-ui-cdk-observables.js +9 -9
  181. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  182. package/fesm2015/taiga-ui-cdk-pipes-filter.js +1 -1
  183. package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
  184. package/fesm2015/taiga-ui-cdk-pipes-is-present.js +1 -1
  185. package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
  186. package/fesm2015/taiga-ui-cdk-pipes-keys.js +1 -1
  187. package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
  188. package/fesm2015/taiga-ui-cdk-pipes-mapper.js +1 -1
  189. package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  190. package/fesm2015/taiga-ui-cdk-pipes-replace.js +2 -2
  191. package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
  192. package/fesm2015/taiga-ui-cdk-services.js +27 -24
  193. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  194. package/fesm2015/taiga-ui-cdk-tokens.js +25 -25
  195. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  196. package/fesm2015/taiga-ui-cdk-utils-browser.js +8 -8
  197. package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
  198. package/fesm2015/taiga-ui-cdk-utils-color.js +20 -20
  199. package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
  200. package/fesm2015/taiga-ui-cdk-utils-dom.js +11 -11
  201. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  202. package/fesm2015/taiga-ui-cdk-utils-focus.js +19 -19
  203. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  204. package/fesm2015/taiga-ui-cdk-utils-format.js +1 -1
  205. package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
  206. package/fesm2015/taiga-ui-cdk-utils-math.js +7 -7
  207. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  208. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +15 -15
  209. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  210. package/fesm2015/taiga-ui-cdk-utils-os.js +1 -1
  211. package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
  212. package/fesm2015/taiga-ui-cdk-utils-svg.js +11 -11
  213. package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
  214. package/package.json +1 -1
  215. package/schematics/constants/file-globs.js +24 -24
  216. package/schematics/constants/taiga-styles.js +4 -4
  217. package/schematics/ng-add/constants/modules.js +12 -12
  218. package/schematics/ng-add/constants/packages.js +1 -1
  219. package/schematics/ng-add/constants/versions.d.ts +3 -3
  220. package/schematics/ng-add/constants/versions.js +3 -3
  221. package/schematics/ng-add/index.js +10 -10
  222. package/schematics/ng-add/steps/add-taiga-icons.js +4 -4
  223. package/schematics/ng-add/steps/add-taiga-modules.js +14 -14
  224. package/schematics/ng-add/steps/wrap-with-tui-root.js +12 -12
  225. package/schematics/ng-update/steps/icons/replace-imports.js +2 -2
  226. package/schematics/ng-update/steps/remove-module.js +2 -2
  227. package/schematics/ng-update/steps/rename-types.js +5 -5
  228. package/schematics/ng-update/steps/replace-deep-import.js +4 -4
  229. package/schematics/ng-update/steps/replace-enums.js +2 -2
  230. package/schematics/ng-update/steps/replace-identifier.js +2 -2
  231. package/schematics/ng-update/steps/replace-services.js +4 -4
  232. package/schematics/ng-update/steps/show-warnings.js +1 -1
  233. package/schematics/ng-update/utils/replace-text.js +1 -1
  234. package/schematics/ng-update/utils/templates/replace-tag.js +1 -1
  235. package/schematics/ng-update/v3/constants/breakpoints.js +27 -27
  236. package/schematics/ng-update/v3/constants/constants.js +187 -187
  237. package/schematics/ng-update/v3/constants/deprecated-functions.js +405 -405
  238. package/schematics/ng-update/v3/constants/enums.js +153 -153
  239. package/schematics/ng-update/v3/constants/modules.js +4 -4
  240. package/schematics/ng-update/v3/constants/services.js +16 -16
  241. package/schematics/ng-update/v3/constants/templates.js +295 -295
  242. package/schematics/ng-update/v3/constants/tui-interactive-selectors.js +50 -50
  243. package/schematics/ng-update/v3/constants/types.js +88 -88
  244. package/schematics/ng-update/v3/constants/warnings.js +62 -62
  245. package/schematics/ng-update/v3/index.js +7 -7
  246. package/schematics/ng-update/v3/steps/migrate-date-time.js +42 -42
  247. package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +14 -14
  248. package/schematics/ng-update/v3/steps/migrate-progress.js +6 -6
  249. package/schematics/ng-update/v3/steps/migrate-sliders/index.js +4 -4
  250. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +27 -27
  251. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +26 -26
  252. package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +7 -7
  253. package/schematics/ng-update/v3/steps/migrate-templates.js +18 -18
  254. package/schematics/ng-update/v3/steps/migrate-textfield-controller.js +33 -33
  255. package/schematics/ng-update/v3/steps/miscellaneous.js +16 -16
  256. package/schematics/ng-update/v3/steps/replace-functions.js +17 -17
  257. package/schematics/ng-update/v3/steps/replace-styles.js +12 -12
  258. package/schematics/ng-update/v3-30/constants/constants.js +2 -2
  259. package/schematics/ng-update/v3-30/constants/icons.js +494 -494
  260. package/schematics/ng-update/v3-30/index.js +4 -4
  261. package/schematics/ng-update/v3-35/constants/constants.js +2 -2
  262. package/schematics/ng-update/v3-35/constants/icons.js +1266 -1266
  263. package/schematics/ng-update/v3-35/index.js +5 -5
  264. package/schematics/ng-update/v3-36/index.js +6 -6
  265. package/schematics/ng-update/v3-40/index.js +11 -11
  266. package/schematics/ng-update/v3-5/index.js +1 -1
  267. package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +7 -7
  268. package/schematics/ng-update/v4/index.js +2 -2
  269. package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +19 -19
  270. package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +21 -21
  271. package/schematics/ng-update/v4/steps/constants/html-comments.js +9 -9
  272. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +21 -21
  273. package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +4 -4
  274. package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +2 -2
  275. package/schematics/ng-update/v4/steps/migrate-templates.js +3 -3
  276. package/schematics/ng-update/v4/steps/restore-tui-mapper.js +6 -6
  277. package/schematics/ng-update/v4/steps/restore-tui-matcher.js +6 -6
  278. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +14 -14
  279. package/schematics/ng-update/v4/steps/templates/migrate-badge.js +3 -3
  280. package/schematics/ng-update/v4/steps/templates/toggles/common.js +5 -5
  281. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +4 -4
  282. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +4 -4
  283. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +4 -4
  284. package/schematics/utils/add-import-to-component.js +1 -1
  285. package/schematics/utils/angular/is-standalone-component.js +3 -3
  286. package/schematics/utils/angular/ng-component.js +1 -1
  287. package/schematics/utils/angular/ng-module.js +1 -1
  288. package/schematics/utils/angular-json-manipulations.js +5 -5
  289. package/schematics/utils/colored-log.js +11 -11
  290. package/schematics/utils/create-angular-json.js +3 -3
  291. package/schematics/utils/get-component-from-identifier.js +1 -1
  292. package/schematics/utils/get-named-import-references.js +1 -1
  293. package/schematics/utils/get-projects.js +2 -2
  294. package/schematics/utils/get-standalone-bootstrap-function.js +1 -1
  295. package/schematics/utils/insert-todo.js +1 -1
  296. package/schematics/utils/is-ci.js +1 -1
  297. package/schematics/utils/progress.js +2 -2
  298. package/schematics/utils/project-root.js +1 -1
  299. package/schematics/utils/push-to-array-property.js +1 -1
  300. package/schematics/utils/templates/elements.js +1 -1
  301. package/schematics/utils/templates/get-component-templates.js +5 -5
  302. package/schematics/utils/templates/ng-component-input-manipulations.js +5 -5
  303. package/schematics/utils/templates/template-resource.js +3 -3
  304. package/services/directive-styles.service.d.ts +3 -2
  305. package/utils/miscellaneous/is-string.js +1 -1
@@ -49,15 +49,15 @@
49
49
  /**
50
50
  * Active date format for Taiga UI
51
51
  */
52
- var TUI_DATE_FORMAT = utils.tuiCreateToken("DMY");
52
+ var TUI_DATE_FORMAT = utils.tuiCreateToken('DMY');
53
53
 
54
54
  /**
55
55
  * Date separator for Taiga UI components
56
56
  */
57
- var TUI_DATE_SEPARATOR = utils.tuiCreateToken(".");
57
+ var TUI_DATE_SEPARATOR = utils.tuiCreateToken('.');
58
58
  var changeDateSeparator = function (dateString, newDateSeparator) { return dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator); };
59
59
 
60
- /******************************************************************************
60
+ /*! *****************************************************************************
61
61
  Copyright (c) Microsoft Corporation.
62
62
 
63
63
  Permission to use, copy, modify, and/or distribute this software for any
@@ -71,7 +71,7 @@
71
71
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
72
72
  PERFORMANCE OF THIS SOFTWARE.
73
73
  ***************************************************************************** */
74
- /* global Reflect, Promise, SuppressedError, Symbol */
74
+ /* global Reflect, Promise */
75
75
  var extendStatics = function (d, b) {
76
76
  extendStatics = Object.setPrototypeOf ||
77
77
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -124,64 +124,6 @@
124
124
  function __param(paramIndex, decorator) {
125
125
  return function (target, key) { decorator(target, key, paramIndex); };
126
126
  }
127
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
128
- function accept(f) { if (f !== void 0 && typeof f !== "function")
129
- throw new TypeError("Function expected"); return f; }
130
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
131
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
132
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
133
- var _, done = false;
134
- for (var i = decorators.length - 1; i >= 0; i--) {
135
- var context = {};
136
- for (var p in contextIn)
137
- context[p] = p === "access" ? {} : contextIn[p];
138
- for (var p in contextIn.access)
139
- context.access[p] = contextIn.access[p];
140
- context.addInitializer = function (f) { if (done)
141
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
142
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
143
- if (kind === "accessor") {
144
- if (result === void 0)
145
- continue;
146
- if (result === null || typeof result !== "object")
147
- throw new TypeError("Object expected");
148
- if (_ = accept(result.get))
149
- descriptor.get = _;
150
- if (_ = accept(result.set))
151
- descriptor.set = _;
152
- if (_ = accept(result.init))
153
- initializers.unshift(_);
154
- }
155
- else if (_ = accept(result)) {
156
- if (kind === "field")
157
- initializers.unshift(_);
158
- else
159
- descriptor[key] = _;
160
- }
161
- }
162
- if (target)
163
- Object.defineProperty(target, contextIn.name, descriptor);
164
- done = true;
165
- }
166
- ;
167
- function __runInitializers(thisArg, initializers, value) {
168
- var useValue = arguments.length > 2;
169
- for (var i = 0; i < initializers.length; i++) {
170
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
171
- }
172
- return useValue ? value : void 0;
173
- }
174
- ;
175
- function __propKey(x) {
176
- return typeof x === "symbol" ? x : "".concat(x);
177
- }
178
- ;
179
- function __setFunctionName(f, name, prefix) {
180
- if (typeof name === "symbol")
181
- name = name.description ? "[".concat(name.description, "]") : "";
182
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
183
- }
184
- ;
185
127
  function __metadata(metadataKey, metadataValue) {
186
128
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
187
129
  return Reflect.metadata(metadataKey, metadataValue);
@@ -213,7 +155,7 @@
213
155
  function step(op) {
214
156
  if (f)
215
157
  throw new TypeError("Generator is already executing.");
216
- while (g && (g = 0, op[0] && (_ = 0)), _)
158
+ while (_)
217
159
  try {
218
160
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
219
161
  return t;
@@ -277,11 +219,7 @@
277
219
  var __createBinding = Object.create ? (function (o, m, k, k2) {
278
220
  if (k2 === undefined)
279
221
  k2 = k;
280
- var desc = Object.getOwnPropertyDescriptor(m, k);
281
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
282
- desc = { enumerable: true, get: function () { return m[k]; } };
283
- }
284
- Object.defineProperty(o, k2, desc);
222
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
285
223
  }) : (function (o, m, k, k2) {
286
224
  if (k2 === undefined)
287
225
  k2 = k;
@@ -354,7 +292,7 @@
354
292
  ar[i] = from[i];
355
293
  }
356
294
  }
357
- return to.concat(ar || Array.prototype.slice.call(from));
295
+ return to.concat(ar || from);
358
296
  }
359
297
  function __await(v) {
360
298
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -381,7 +319,7 @@
381
319
  function __asyncDelegator(o) {
382
320
  var i, p;
383
321
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
384
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
322
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
385
323
  }
386
324
  function __asyncValues(o) {
387
325
  if (!Symbol.asyncIterator)
@@ -436,90 +374,6 @@
436
374
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
437
375
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
438
376
  }
439
- function __classPrivateFieldIn(state, receiver) {
440
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
441
- throw new TypeError("Cannot use 'in' operator on non-object");
442
- return typeof state === "function" ? receiver === state : state.has(receiver);
443
- }
444
- function __addDisposableResource(env, value, async) {
445
- if (value !== null && value !== void 0) {
446
- if (typeof value !== "object" && typeof value !== "function")
447
- throw new TypeError("Object expected.");
448
- var dispose;
449
- if (async) {
450
- if (!Symbol.asyncDispose)
451
- throw new TypeError("Symbol.asyncDispose is not defined.");
452
- dispose = value[Symbol.asyncDispose];
453
- }
454
- if (dispose === void 0) {
455
- if (!Symbol.dispose)
456
- throw new TypeError("Symbol.dispose is not defined.");
457
- dispose = value[Symbol.dispose];
458
- }
459
- if (typeof dispose !== "function")
460
- throw new TypeError("Object not disposable.");
461
- env.stack.push({ value: value, dispose: dispose, async: async });
462
- }
463
- else if (async) {
464
- env.stack.push({ async: true });
465
- }
466
- return value;
467
- }
468
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
469
- var e = new Error(message);
470
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
471
- };
472
- function __disposeResources(env) {
473
- function fail(e) {
474
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
475
- env.hasError = true;
476
- }
477
- function next() {
478
- while (env.stack.length) {
479
- var rec = env.stack.pop();
480
- try {
481
- var result = rec.dispose && rec.dispose.call(rec.value);
482
- if (rec.async)
483
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
484
- }
485
- catch (e) {
486
- fail(e);
487
- }
488
- }
489
- if (env.hasError)
490
- throw env.error;
491
- }
492
- return next();
493
- }
494
- var tslib_es6 = {
495
- __extends: __extends,
496
- __assign: __assign,
497
- __rest: __rest,
498
- __decorate: __decorate,
499
- __param: __param,
500
- __metadata: __metadata,
501
- __awaiter: __awaiter,
502
- __generator: __generator,
503
- __createBinding: __createBinding,
504
- __exportStar: __exportStar,
505
- __values: __values,
506
- __read: __read,
507
- __spread: __spread,
508
- __spreadArrays: __spreadArrays,
509
- __spreadArray: __spreadArray,
510
- __await: __await,
511
- __asyncGenerator: __asyncGenerator,
512
- __asyncDelegator: __asyncDelegator,
513
- __asyncValues: __asyncValues,
514
- __makeTemplateObject: __makeTemplateObject,
515
- __importStar: __importStar,
516
- __importDefault: __importDefault,
517
- __classPrivateFieldGet: __classPrivateFieldGet,
518
- __classPrivateFieldSet: __classPrivateFieldSet,
519
- __classPrivateFieldIn: __classPrivateFieldIn,
520
- __addDisposableResource: __addDisposableResource,
521
- __disposeResources: __disposeResources,
522
- };
523
377
 
524
378
  /**
525
379
  * Immutable year object
@@ -561,7 +415,7 @@
561
415
  };
562
416
  Object.defineProperty(TuiYear.prototype, "formattedYear", {
563
417
  get: function () {
564
- return String(this.year).padStart(4, "0");
418
+ return String(this.year).padStart(4, '0');
565
419
  },
566
420
  enumerable: false,
567
421
  configurable: true
@@ -720,7 +574,7 @@
720
574
  };
721
575
  Object.defineProperty(TuiMonth.prototype, "formattedMonthPart", {
722
576
  get: function () {
723
- return String(this.month + 1).padStart(2, "0");
577
+ return String(this.month + 1).padStart(2, '0');
724
578
  },
725
579
  enumerable: false,
726
580
  configurable: true
@@ -880,23 +734,23 @@
880
734
  (1000 * 60 * 60 * 24));
881
735
  };
882
736
  TuiDay.parseRawDateString = function (date, dateMode) {
883
- if (dateMode === void 0) { dateMode = "DMY"; }
737
+ if (dateMode === void 0) { dateMode = 'DMY'; }
884
738
  ngDevMode &&
885
- classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH, "[parseRawDateString]: wrong date string length");
739
+ classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH, '[parseRawDateString]: wrong date string length');
886
740
  switch (dateMode) {
887
- case "YMD":
741
+ case 'YMD':
888
742
  return {
889
743
  day: parseInt(date.slice(8, 10), 10),
890
744
  month: parseInt(date.slice(5, 7), 10) - 1,
891
745
  year: parseInt(date.slice(0, 4), 10),
892
746
  };
893
- case "MDY":
747
+ case 'MDY':
894
748
  return {
895
749
  day: parseInt(date.slice(3, 5), 10),
896
750
  month: parseInt(date.slice(0, 2), 10) - 1,
897
751
  year: parseInt(date.slice(6, 10), 10),
898
752
  };
899
- case "DMY":
753
+ case 'DMY':
900
754
  default:
901
755
  return {
902
756
  day: parseInt(date.slice(0, 2), 10),
@@ -914,7 +768,7 @@
914
768
  * @return normalized date
915
769
  */
916
770
  TuiDay.normalizeParse = function (rawDate, dateMode) {
917
- if (dateMode === void 0) { dateMode = "DMY"; }
771
+ if (dateMode === void 0) { dateMode = 'DMY'; }
918
772
  var _a = this.parseRawDateString(rawDate, dateMode), day = _a.day, month = _a.month, year = _a.year;
919
773
  return TuiDay.normalizeOf(year, month, day);
920
774
  };
@@ -925,7 +779,7 @@
925
779
  * @throws exceptions if any part of the date is invalid
926
780
  */
927
781
  TuiDay.jsonParse = function (yearMonthDayString) {
928
- var _a = this.parseRawDateString(yearMonthDayString, "YMD"), day = _a.day, month = _a.month, year = _a.year;
782
+ var _a = this.parseRawDateString(yearMonthDayString, 'YMD'), day = _a.day, month = _a.month, year = _a.year;
929
783
  if (!TuiYear.isValidYear(year)) {
930
784
  throw new exceptions.TuiInvalidYearException(year);
931
785
  }
@@ -945,7 +799,7 @@
945
799
  };
946
800
  Object.defineProperty(TuiDay.prototype, "formattedDayPart", {
947
801
  get: function () {
948
- return String(this.day).padStart(2, "0");
802
+ return String(this.day).padStart(2, '0');
949
803
  },
950
804
  enumerable: false,
951
805
  configurable: true
@@ -1064,23 +918,23 @@
1064
918
  */
1065
919
  TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
1066
920
  ngDevMode &&
1067
- classes.tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
921
+ classes.tuiAssert.assert(separator.length === 1, 'Separator should consist of only 1 symbol');
1068
922
  var dd = this.formattedDayPart;
1069
923
  var mm = this.formattedMonthPart;
1070
924
  var yyyy = this.formattedYear;
1071
925
  switch (dateFormat) {
1072
- case "YMD":
926
+ case 'YMD':
1073
927
  return "" + yyyy + separator + mm + separator + dd;
1074
- case "MDY":
928
+ case 'MDY':
1075
929
  return "" + mm + separator + dd + separator + yyyy;
1076
- case "DMY":
930
+ case 'DMY':
1077
931
  default:
1078
932
  return "" + dd + separator + mm + separator + yyyy;
1079
933
  }
1080
934
  };
1081
935
  TuiDay.prototype.toString = function (dateFormat, separator) {
1082
- if (dateFormat === void 0) { dateFormat = "DMY"; }
1083
- if (separator === void 0) { separator = "."; }
936
+ if (dateFormat === void 0) { dateFormat = 'DMY'; }
937
+ if (separator === void 0) { separator = '.'; }
1084
938
  return this.getFormattedDay(dateFormat, separator);
1085
939
  };
1086
940
  TuiDay.prototype.toJSON = function () {
@@ -1163,7 +1017,7 @@
1163
1017
  * @return normalized day range object
1164
1018
  */
1165
1019
  TuiDayRange.normalizeParse = function (rangeString, dateMode) {
1166
- if (dateMode === void 0) { dateMode = "DMY"; }
1020
+ if (dateMode === void 0) { dateMode = 'DMY'; }
1167
1021
  var leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
1168
1022
  if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
1169
1023
  return new TuiDayRange(leftDay, leftDay);
@@ -1205,8 +1059,8 @@
1205
1059
  return "" + from + RANGE_SEPARATOR_CHAR + to;
1206
1060
  };
1207
1061
  TuiDayRange.prototype.toString = function (dateFormat, dateSeparator) {
1208
- if (dateFormat === void 0) { dateFormat = "DMY"; }
1209
- if (dateSeparator === void 0) { dateSeparator = "."; }
1062
+ if (dateFormat === void 0) { dateFormat = 'DMY'; }
1063
+ if (dateSeparator === void 0) { dateSeparator = '.'; }
1210
1064
  return this.getFormattedDayRange(dateFormat, dateSeparator);
1211
1065
  };
1212
1066
  return TuiDayRange;
@@ -1227,7 +1081,7 @@
1227
1081
  this.seconds = seconds;
1228
1082
  this.ms = ms;
1229
1083
  ngDevMode &&
1230
- classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
1084
+ classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), 'Time must be real, but got:', hours, minutes, seconds, ms);
1231
1085
  }
1232
1086
  /**
1233
1087
  * Checks if time is valid
@@ -1313,11 +1167,11 @@
1313
1167
  * Converts TuiTime to string
1314
1168
  */
1315
1169
  TuiTime.prototype.toString = function (mode) {
1316
- var needAddMs = mode === "HH:MM:SS.MSS" || (!mode && this.ms > 0);
1317
- var needAddSeconds = needAddMs || mode === "HH:MM:SS" || (!mode && this.seconds > 0);
1170
+ var needAddMs = mode === 'HH:MM:SS.MSS' || (!mode && this.ms > 0);
1171
+ var needAddSeconds = needAddMs || mode === 'HH:MM:SS' || (!mode && this.seconds > 0);
1318
1172
  return (this.formatTime(this.hours) + ":" + this.formatTime(this.minutes) +
1319
- ("" + (needAddSeconds ? ":" + this.formatTime(this.seconds) : "")) +
1320
- ("" + (needAddMs ? "." + this.formatTime(this.ms, 3) : "")));
1173
+ ("" + (needAddSeconds ? ":" + this.formatTime(this.seconds) : '')) +
1174
+ ("" + (needAddMs ? "." + this.formatTime(this.ms, 3) : '')));
1321
1175
  };
1322
1176
  TuiTime.prototype.valueOf = function () {
1323
1177
  return this.toAbsoluteMilliseconds();
@@ -1341,7 +1195,7 @@
1341
1195
  };
1342
1196
  TuiTime.prototype.formatTime = function (time, digits) {
1343
1197
  if (digits === void 0) { digits = 2; }
1344
- return String(time).padStart(digits, "0");
1198
+ return String(time).padStart(digits, '0');
1345
1199
  };
1346
1200
  return TuiTime;
1347
1201
  }());