@taiga-ui/cdk 4.66.0 → 5.0.0-canary.2e92594

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 (857) hide show
  1. package/README.md +1 -1
  2. package/classes/control.d.ts +3 -5
  3. package/classes/index.d.ts +0 -1
  4. package/constants/empty.d.ts +0 -9
  5. package/constants/handlers.d.ts +2 -0
  6. package/constants/index.d.ts +0 -1
  7. package/constants/used-icons.d.ts +2 -2
  8. package/constants/version.d.ts +1 -1
  9. package/constants/version.js +1 -1
  10. package/constants/version.js.map +1 -1
  11. package/date-time/date-fillers.d.ts +5 -5
  12. package/date-time/date-time.d.ts +1 -1
  13. package/date-time/day-range.d.ts +1 -1
  14. package/date-time/day.d.ts +4 -4
  15. package/date-time/time.d.ts +2 -2
  16. package/date-time/types.d.ts +1 -12
  17. package/directives/active-zone/active-zone.directive.d.ts +3 -5
  18. package/directives/animated/animated.directive.d.ts +1 -3
  19. package/directives/animated/index.d.ts +0 -1
  20. package/directives/auto-focus/autofocus.directive.d.ts +2 -3
  21. package/directives/auto-focus/autofocus.options.d.ts +2 -2
  22. package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
  23. package/directives/hovered/hovered.directive.d.ts +1 -2
  24. package/directives/index.d.ts +1 -6
  25. package/directives/media/media.directive.d.ts +8 -12
  26. package/directives/native-validator/native-validator.directive.d.ts +2 -2
  27. package/directives/obscured/obscured.directive.d.ts +4 -4
  28. package/directives/pan/pan.directive.d.ts +1 -2
  29. package/directives/platform/platform.directive.d.ts +2 -2
  30. package/directives/resizer/resizer.directive.d.ts +3 -4
  31. package/directives/swipe/swipe.directive.d.ts +1 -2
  32. package/directives/transitioned/transitioned.directive.d.ts +1 -0
  33. package/directives/value-changes/value-changes.directive.d.ts +2 -1
  34. package/directives/with-styles/index.d.ts +1 -0
  35. package/directives/with-styles/with-styles.directive.d.ts +10 -0
  36. package/fesm2022/taiga-ui-cdk-classes.mjs +9 -93
  37. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-cdk-constants.mjs +16 -38
  39. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-cdk-date-time.mjs +22 -22
  41. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +27 -42
  43. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +24 -71
  45. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +15 -17
  47. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
  49. package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +8 -11
  51. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-cdk-directives-element.mjs +5 -6
  53. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +8 -13
  55. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
  57. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
  59. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +14 -17
  61. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
  63. package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-cdk-directives-media.mjs +33 -58
  65. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +9 -11
  67. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +15 -23
  69. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +11 -13
  71. package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
  73. package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
  75. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +11 -13
  77. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +9 -16
  79. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +4 -5
  81. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
  83. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +7 -7
  85. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
  87. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
  88. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +9 -9
  89. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-cdk-directives.mjs +1 -6
  91. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-cdk-observables.mjs +2 -24
  93. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
  95. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
  97. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -5
  99. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
  101. package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
  103. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
  104. package/fesm2022/taiga-ui-cdk-tokens.mjs +23 -88
  105. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-cdk-utils-di.mjs +46 -6
  107. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +4 -82
  109. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -39
  111. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-cdk-utils-math.mjs +13 -21
  113. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +18 -197
  115. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-cdk-utils.mjs +0 -2
  117. package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-cdk.mjs +1 -1
  119. package/index.d.ts +1 -1
  120. package/observables/index.d.ts +0 -2
  121. package/package.json +37 -200
  122. package/pipes/index.d.ts +0 -6
  123. package/pipes/obfuscate/obfuscate.options.d.ts +2 -2
  124. package/portals/directive.d.ts +11 -0
  125. package/portals/index.d.ts +4 -0
  126. package/portals/portal.d.ts +24 -0
  127. package/portals/portals.d.ts +12 -0
  128. package/portals/service.d.ts +15 -0
  129. package/schematics/constants/file-globs.js +1 -1
  130. package/schematics/constants/file-globs.js.map +1 -1
  131. package/schematics/index.d.ts +5 -0
  132. package/schematics/index.js +4 -0
  133. package/schematics/index.js.map +1 -1
  134. package/schematics/ng-add/constants/versions.d.ts +1 -1
  135. package/schematics/ng-add/index.js +1 -2
  136. package/schematics/ng-add/index.js.map +1 -1
  137. package/schematics/ng-add/setup-project.js +1 -1
  138. package/schematics/ng-add/setup-project.js.map +1 -1
  139. package/schematics/ng-add/steps/add-taiga-icons.js +2 -3
  140. package/schematics/ng-add/steps/add-taiga-icons.js.map +1 -1
  141. package/schematics/ng-add/steps/add-taiga-modules.js +1 -17
  142. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
  143. package/schematics/ng-add/steps/add-taiga-styles.js +1 -2
  144. package/schematics/ng-add/steps/add-taiga-styles.js.map +1 -1
  145. package/schematics/ng-add/steps/wrap-with-tui-root.js +1 -2
  146. package/schematics/ng-add/steps/wrap-with-tui-root.js.map +1 -1
  147. package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
  148. package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
  149. package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
  150. package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
  151. package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
  152. package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
  153. package/schematics/ng-update/steps/icons/replace-imports.js +1 -2
  154. package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -1
  155. package/schematics/ng-update/steps/rename-types.js +1 -2
  156. package/schematics/ng-update/steps/rename-types.js.map +1 -1
  157. package/schematics/ng-update/steps/replace-deep-import.js +1 -2
  158. package/schematics/ng-update/steps/replace-deep-import.js.map +1 -1
  159. package/schematics/ng-update/steps/replace-enums.js +1 -2
  160. package/schematics/ng-update/steps/replace-enums.js.map +1 -1
  161. package/schematics/ng-update/steps/replace-identifier.js +2 -3
  162. package/schematics/ng-update/steps/replace-identifier.js.map +1 -1
  163. package/schematics/ng-update/steps/replace-package-name.js +1 -2
  164. package/schematics/ng-update/steps/replace-package-name.js.map +1 -1
  165. package/schematics/ng-update/steps/replace-services.js +1 -2
  166. package/schematics/ng-update/steps/replace-services.js.map +1 -1
  167. package/schematics/ng-update/steps/show-warnings.js +1 -2
  168. package/schematics/ng-update/steps/show-warnings.js.map +1 -1
  169. package/schematics/ng-update/utils/get-file-system.js +1 -2
  170. package/schematics/ng-update/utils/get-file-system.js.map +1 -1
  171. package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
  172. package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +2 -3
  173. package/schematics/ng-update/utils/replace-functions.js.map +1 -0
  174. package/schematics/ng-update/utils/replace-text.js +1 -2
  175. package/schematics/ng-update/utils/replace-text.js.map +1 -1
  176. package/schematics/ng-update/utils/templates/remove-inputs.js +1 -2
  177. package/schematics/ng-update/utils/templates/remove-inputs.js.map +1 -1
  178. package/schematics/ng-update/utils/templates/replace-attr-values.js +1 -2
  179. package/schematics/ng-update/utils/templates/replace-attr-values.js.map +1 -1
  180. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +1 -2
  181. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js.map +1 -1
  182. package/schematics/ng-update/utils/templates/replace-attrs.js +1 -2
  183. package/schematics/ng-update/utils/templates/replace-attrs.js.map +1 -1
  184. package/schematics/ng-update/utils/templates/replace-tag.js +1 -2
  185. package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -1
  186. package/schematics/ng-update/utils/templates/replace-tags.js +1 -2
  187. package/schematics/ng-update/utils/templates/replace-tags.js.map +1 -1
  188. package/schematics/ng-update/utils/templates/template-comments.js +1 -2
  189. package/schematics/ng-update/utils/templates/template-comments.js.map +1 -1
  190. package/schematics/ng-update/v4/index.js +2 -3
  191. package/schematics/ng-update/v4/index.js.map +1 -1
  192. package/schematics/ng-update/v4/migrate-addon-doc/index.js +1 -2
  193. package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +1 -1
  194. package/schematics/ng-update/v4/migrate-css-vars/index.js +1 -2
  195. package/schematics/ng-update/v4/migrate-css-vars/index.js.map +1 -1
  196. package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +4 -4
  197. package/schematics/ng-update/v4/migrate-css-vars/palette.js +4 -4
  198. package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -1
  199. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +0 -1
  200. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +2 -3
  201. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
  202. package/schematics/ng-update/v4/migrate-icons/index.js +1 -2
  203. package/schematics/ng-update/v4/migrate-icons/index.js.map +1 -1
  204. package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
  205. package/schematics/ng-update/v4/migrate-icons/rename-icons.js +1 -2
  206. package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +1 -1
  207. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +0 -1
  208. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +1 -2
  209. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +1 -1
  210. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +36 -37
  211. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js.map +1 -1
  212. package/schematics/ng-update/v4/steps/drop-universal-mock.js +1 -2
  213. package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +1 -1
  214. package/schematics/ng-update/v4/steps/migrate-alert-service.js +1 -2
  215. package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +1 -1
  216. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +1 -2
  217. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +1 -1
  218. package/schematics/ng-update/v4/steps/migrate-destroy-service.js +1 -2
  219. package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +1 -1
  220. package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -1
  221. package/schematics/ng-update/v4/steps/migrate-editor.js +2 -2
  222. package/schematics/ng-update/v4/steps/migrate-editor.js.map +1 -1
  223. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +1 -2
  224. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +1 -1
  225. package/schematics/ng-update/v4/steps/migrate-month-context.js +1 -2
  226. package/schematics/ng-update/v4/steps/migrate-month-context.js.map +1 -1
  227. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +1 -2
  228. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +1 -1
  229. package/schematics/ng-update/v4/steps/migrate-option-providers.js +1 -2
  230. package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +1 -1
  231. package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -1
  232. package/schematics/ng-update/v4/steps/migrate-proprietary.js +2 -3
  233. package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +1 -1
  234. package/schematics/ng-update/v4/steps/migrate-providers-from.js +1 -2
  235. package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +1 -1
  236. package/schematics/ng-update/v4/steps/migrate-root.js +1 -2
  237. package/schematics/ng-update/v4/steps/migrate-root.js.map +1 -1
  238. package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
  239. package/schematics/ng-update/v4/steps/migrate-templates.js +2 -3
  240. package/schematics/ng-update/v4/steps/migrate-templates.js.map +1 -1
  241. package/schematics/ng-update/v4/steps/remove-duplicates.js +1 -2
  242. package/schematics/ng-update/v4/steps/remove-duplicates.js.map +1 -1
  243. package/schematics/ng-update/v4/steps/restore-tui-mapper.js +2 -3
  244. package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
  245. package/schematics/ng-update/v4/steps/restore-tui-matcher.js +2 -3
  246. package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
  247. package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -1
  248. package/schematics/ng-update/v4/steps/styles/index.js +2 -2
  249. package/schematics/ng-update/v4/steps/styles/index.js.map +1 -1
  250. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +1 -2
  251. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +1 -1
  252. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +1 -2
  253. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +1 -1
  254. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +1 -2
  255. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +1 -1
  256. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +1 -2
  257. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +1 -1
  258. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +2 -3
  259. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
  260. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +14 -15
  261. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
  262. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +1 -2
  263. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +1 -1
  264. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +1 -2
  265. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +1 -1
  266. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +1 -2
  267. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +1 -1
  268. package/schematics/ng-update/v4/steps/templates/migrate-axes.js +1 -2
  269. package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +1 -1
  270. package/schematics/ng-update/v4/steps/templates/migrate-badge.js +1 -2
  271. package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +1 -1
  272. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -2
  273. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +1 -1
  274. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +1 -2
  275. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +1 -1
  276. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +1 -2
  277. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +1 -1
  278. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +1 -2
  279. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +1 -1
  280. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +1 -2
  281. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +1 -1
  282. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +1 -2
  283. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +1 -1
  284. package/schematics/ng-update/v4/steps/templates/migrate-label.js +1 -2
  285. package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +1 -1
  286. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +1 -2
  287. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +1 -1
  288. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +1 -2
  289. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +1 -1
  290. package/schematics/ng-update/v4/steps/templates/migrate-money.js +1 -2
  291. package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +1 -1
  292. package/schematics/ng-update/v4/steps/templates/migrate-notification.js +1 -2
  293. package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +1 -1
  294. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +1 -2
  295. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +1 -1
  296. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +1 -2
  297. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +1 -1
  298. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +1 -2
  299. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +1 -1
  300. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +1 -2
  301. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +1 -1
  302. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +1 -2
  303. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +1 -1
  304. package/schematics/ng-update/v4/steps/templates/toggles/common.js +4 -5
  305. package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +1 -1
  306. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +1 -2
  307. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +1 -1
  308. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +1 -2
  309. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +1 -1
  310. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +1 -2
  311. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +1 -1
  312. package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -1
  313. package/schematics/ng-update/v4/steps/update-packages.js +2 -2
  314. package/schematics/ng-update/v4/steps/update-packages.js.map +1 -1
  315. package/schematics/ng-update/v4/steps/utils/clean-object.js +1 -2
  316. package/schematics/ng-update/v4/steps/utils/clean-object.js.map +1 -1
  317. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +1 -2
  318. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +1 -1
  319. package/schematics/ng-update/v4/steps/utils/remove-attrs.js +1 -2
  320. package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +1 -1
  321. package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +1 -1
  322. package/schematics/ng-update/v4/steps/utils/replace-substrings.js +1 -2
  323. package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +1 -1
  324. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +1 -2
  325. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +1 -1
  326. package/schematics/ng-update/v5/index.js +17 -2
  327. package/schematics/ng-update/v5/index.js.map +1 -1
  328. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.d.ts +2 -0
  329. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js +26 -0
  330. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js.map +1 -0
  331. package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
  332. package/schematics/ng-update/v5/steps/constants/functions.js +67 -0
  333. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
  334. package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
  335. package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
  336. package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
  337. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
  338. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +32 -0
  339. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
  340. package/schematics/ng-update/v5/steps/migrate-css-variables.d.ts +3 -0
  341. package/schematics/ng-update/v5/steps/migrate-css-variables.js +30 -0
  342. package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -0
  343. package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
  344. package/schematics/ng-update/v5/steps/migrate-templates.js +48 -0
  345. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
  346. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +1 -2
  347. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -1
  348. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +1 -2
  349. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -1
  350. package/schematics/ng-update/v5/steps/migrate-tui-let.d.ts +3 -0
  351. package/schematics/ng-update/v5/steps/migrate-tui-let.js +95 -0
  352. package/schematics/ng-update/v5/steps/migrate-tui-let.js.map +1 -0
  353. package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
  354. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
  355. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
  356. package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
  357. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
  358. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
  359. package/schematics/ng-update/v5/steps/templates/migrate-notification.d.ts +8 -0
  360. package/schematics/ng-update/v5/steps/templates/migrate-notification.js +45 -0
  361. package/schematics/ng-update/v5/steps/templates/migrate-notification.js.map +1 -0
  362. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js +1 -2
  363. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js.map +1 -1
  364. package/schematics/utils/add-import-to-closest-module.js +2 -3
  365. package/schematics/utils/add-import-to-closest-module.js.map +1 -1
  366. package/schematics/utils/add-unique-import.js +1 -2
  367. package/schematics/utils/add-unique-import.js.map +1 -1
  368. package/schematics/utils/angular-json-manipulations.js +2 -5
  369. package/schematics/utils/angular-json-manipulations.js.map +1 -1
  370. package/schematics/utils/create-angular-json.js +1 -2
  371. package/schematics/utils/create-angular-json.js.map +1 -1
  372. package/schematics/utils/get-component-from-identifier.js +1 -2
  373. package/schematics/utils/get-component-from-identifier.js.map +1 -1
  374. package/schematics/utils/get-execution-time.js +1 -2
  375. package/schematics/utils/get-execution-time.js.map +1 -1
  376. package/schematics/utils/get-named-import-references.js +1 -2
  377. package/schematics/utils/get-named-import-references.js.map +1 -1
  378. package/schematics/utils/get-project-target-options.js +1 -2
  379. package/schematics/utils/get-project-target-options.js.map +1 -1
  380. package/schematics/utils/get-projects.js +1 -2
  381. package/schematics/utils/get-projects.js.map +1 -1
  382. package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
  383. package/schematics/utils/get-standalone-bootstrap-function.js +2 -5
  384. package/schematics/utils/get-standalone-bootstrap-function.js.map +1 -1
  385. package/schematics/utils/import-manipulations.js +2 -3
  386. package/schematics/utils/import-manipulations.js.map +1 -1
  387. package/schematics/utils/insert-todo.js +2 -2
  388. package/schematics/utils/insert-todo.js.map +1 -1
  389. package/schematics/utils/is-ci.js +1 -2
  390. package/schematics/utils/is-ci.js.map +1 -1
  391. package/schematics/utils/make-angular-json-with-assets.js +1 -2
  392. package/schematics/utils/make-angular-json-with-assets.js.map +1 -1
  393. package/schematics/utils/progress.js +1 -2
  394. package/schematics/utils/progress.js.map +1 -1
  395. package/schematics/utils/push-to-array-property.js +1 -2
  396. package/schematics/utils/push-to-array-property.js.map +1 -1
  397. package/schematics/utils/remove-module.js +2 -3
  398. package/schematics/utils/remove-module.js.map +1 -1
  399. package/schematics/utils/run-migration.d.ts +14 -0
  400. package/schematics/utils/run-migration.js +27 -0
  401. package/schematics/utils/run-migration.js.map +1 -0
  402. package/schematics/utils/templates/elements.d.ts +4 -1
  403. package/schematics/utils/templates/elements.js +15 -24
  404. package/schematics/utils/templates/elements.js.map +1 -1
  405. package/schematics/utils/templates/get-component-templates.js +1 -2
  406. package/schematics/utils/templates/get-component-templates.js.map +1 -1
  407. package/schematics/utils/templates/inputs.js +2 -3
  408. package/schematics/utils/templates/inputs.js.map +1 -1
  409. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
  410. package/schematics/utils/templates/ng-component-input-manipulations.js +6 -9
  411. package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
  412. package/schematics/utils/templates/template-resource.js +3 -4
  413. package/schematics/utils/templates/template-resource.js.map +1 -1
  414. package/tokens/index.d.ts +1 -3
  415. package/tokens/platform.d.ts +2 -0
  416. package/tokens/removed-element.d.ts +0 -3
  417. package/types/index.d.ts +0 -3
  418. package/utils/di/create-options.d.ts +2 -2
  419. package/utils/di/index.d.ts +3 -0
  420. package/utils/di/provide-options.d.ts +2 -0
  421. package/utils/dom/index.d.ts +0 -6
  422. package/utils/focus/get-closest-focusable.d.ts +1 -6
  423. package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -5
  424. package/utils/focus/index.d.ts +4 -6
  425. package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -6
  426. package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -5
  427. package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -5
  428. package/utils/index.d.ts +0 -2
  429. package/utils/math/clamp.d.ts +1 -5
  430. package/utils/math/index.d.ts +0 -2
  431. package/utils/miscellaneous/generate-id.d.ts +1 -0
  432. package/utils/miscellaneous/index.d.ts +2 -12
  433. package/utils/miscellaneous/is-string.js +1 -2
  434. package/utils/miscellaneous/is-string.js.map +1 -1
  435. package/utils/miscellaneous/set-signal.d.ts +2 -0
  436. package/classes/portals.d.ts +0 -33
  437. package/constants/allow-signal-writes.d.ts +0 -2
  438. package/directives/animated/animated-parent.directive.d.ts +0 -10
  439. package/directives/click-outside/click-outside.directive.d.ts +0 -14
  440. package/directives/click-outside/index.d.ts +0 -1
  441. package/directives/droppable/droppable.directive.d.ts +0 -8
  442. package/directives/droppable/index.d.ts +0 -1
  443. package/directives/for/for.directive.d.ts +0 -15
  444. package/directives/for/index.d.ts +0 -1
  445. package/directives/let/index.d.ts +0 -2
  446. package/directives/let/let-context.d.ts +0 -11
  447. package/directives/let/let.directive.d.ts +0 -18
  448. package/directives/popover/index.d.ts +0 -1
  449. package/directives/popover/popover.directive.d.ts +0 -14
  450. package/directives/repeat-times/index.d.ts +0 -1
  451. package/directives/repeat-times/repeat-times.directive.d.ts +0 -22
  452. package/esm2022/classes/control.mjs +0 -96
  453. package/esm2022/classes/index.mjs +0 -5
  454. package/esm2022/classes/portals.mjs +0 -77
  455. package/esm2022/classes/taiga-ui-cdk-classes.mjs +0 -5
  456. package/esm2022/classes/validation-error.mjs +0 -7
  457. package/esm2022/classes/value-transformer.mjs +0 -25
  458. package/esm2022/constants/allow-signal-writes.mjs +0 -3
  459. package/esm2022/constants/empty.mjs +0 -25
  460. package/esm2022/constants/handlers.mjs +0 -11
  461. package/esm2022/constants/index.mjs +0 -10
  462. package/esm2022/constants/matchers.mjs +0 -26
  463. package/esm2022/constants/regexp.mjs +0 -4
  464. package/esm2022/constants/svg-node-filter.mjs +0 -8
  465. package/esm2022/constants/taiga-ui-cdk-constants.mjs +0 -5
  466. package/esm2022/constants/unicode-chars.mjs +0 -64
  467. package/esm2022/constants/used-icons.mjs +0 -76
  468. package/esm2022/constants/version.mjs +0 -2
  469. package/esm2022/date-time/date-clamp.mjs +0 -10
  470. package/esm2022/date-time/date-fillers.mjs +0 -15
  471. package/esm2022/date-time/date-time.mjs +0 -20
  472. package/esm2022/date-time/day-of-week.mjs +0 -10
  473. package/esm2022/date-time/day-range.mjs +0 -84
  474. package/esm2022/date-time/day.mjs +0 -306
  475. package/esm2022/date-time/days.const.mjs +0 -6
  476. package/esm2022/date-time/index.mjs +0 -13
  477. package/esm2022/date-time/month-number.mjs +0 -15
  478. package/esm2022/date-time/month-range.mjs +0 -27
  479. package/esm2022/date-time/month.mjs +0 -152
  480. package/esm2022/date-time/taiga-ui-cdk-date-time.mjs +0 -5
  481. package/esm2022/date-time/time.mjs +0 -160
  482. package/esm2022/date-time/types.mjs +0 -2
  483. package/esm2022/date-time/year.mjs +0 -111
  484. package/esm2022/directives/active-zone/active-zone.directive.mjs +0 -73
  485. package/esm2022/directives/active-zone/index.mjs +0 -2
  486. package/esm2022/directives/active-zone/taiga-ui-cdk-directives-active-zone.mjs +0 -5
  487. package/esm2022/directives/animated/animated-parent.directive.mjs +0 -39
  488. package/esm2022/directives/animated/animated.directive.mjs +0 -82
  489. package/esm2022/directives/animated/index.mjs +0 -3
  490. package/esm2022/directives/animated/taiga-ui-cdk-directives-animated.mjs +0 -5
  491. package/esm2022/directives/auto-focus/autofocus.directive.mjs +0 -46
  492. package/esm2022/directives/auto-focus/autofocus.options.mjs +0 -31
  493. package/esm2022/directives/auto-focus/handlers/abstract.handler.mjs +0 -17
  494. package/esm2022/directives/auto-focus/handlers/default.handler.mjs +0 -21
  495. package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +0 -125
  496. package/esm2022/directives/auto-focus/handlers/sync.handler.mjs +0 -7
  497. package/esm2022/directives/auto-focus/index.mjs +0 -7
  498. package/esm2022/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.mjs +0 -5
  499. package/esm2022/directives/click-outside/click-outside.directive.mjs +0 -33
  500. package/esm2022/directives/click-outside/index.mjs +0 -2
  501. package/esm2022/directives/click-outside/taiga-ui-cdk-directives-click-outside.mjs +0 -5
  502. package/esm2022/directives/control/control.directive.mjs +0 -23
  503. package/esm2022/directives/control/index.mjs +0 -2
  504. package/esm2022/directives/control/taiga-ui-cdk-directives-control.mjs +0 -5
  505. package/esm2022/directives/copy-processor/copy-processor.directive.mjs +0 -33
  506. package/esm2022/directives/copy-processor/index.mjs +0 -2
  507. package/esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs +0 -5
  508. package/esm2022/directives/droppable/droppable.directive.mjs +0 -31
  509. package/esm2022/directives/droppable/index.mjs +0 -2
  510. package/esm2022/directives/droppable/taiga-ui-cdk-directives-droppable.mjs +0 -5
  511. package/esm2022/directives/element/element.directive.mjs +0 -35
  512. package/esm2022/directives/element/index.mjs +0 -2
  513. package/esm2022/directives/element/taiga-ui-cdk-directives-element.mjs +0 -5
  514. package/esm2022/directives/focus-trap/focus-trap.directive.mjs +0 -61
  515. package/esm2022/directives/focus-trap/index.mjs +0 -2
  516. package/esm2022/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.mjs +0 -5
  517. package/esm2022/directives/font-size/font-size.directive.mjs +0 -27
  518. package/esm2022/directives/font-size/index.mjs +0 -2
  519. package/esm2022/directives/font-size/taiga-ui-cdk-directives-font-size.mjs +0 -5
  520. package/esm2022/directives/for/for.directive.mjs +0 -37
  521. package/esm2022/directives/for/index.mjs +0 -2
  522. package/esm2022/directives/for/taiga-ui-cdk-directives-for.mjs +0 -5
  523. package/esm2022/directives/high-dpi/high-dpi.directive.mjs +0 -23
  524. package/esm2022/directives/high-dpi/index.mjs +0 -2
  525. package/esm2022/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.mjs +0 -5
  526. package/esm2022/directives/hovered/hovered.directive.mjs +0 -22
  527. package/esm2022/directives/hovered/hovered.service.mjs +0 -35
  528. package/esm2022/directives/hovered/index.mjs +0 -3
  529. package/esm2022/directives/hovered/taiga-ui-cdk-directives-hovered.mjs +0 -5
  530. package/esm2022/directives/index.mjs +0 -30
  531. package/esm2022/directives/item/index.mjs +0 -2
  532. package/esm2022/directives/item/item.directive.mjs +0 -18
  533. package/esm2022/directives/item/taiga-ui-cdk-directives-item.mjs +0 -5
  534. package/esm2022/directives/let/index.mjs +0 -3
  535. package/esm2022/directives/let/let-context.mjs +0 -15
  536. package/esm2022/directives/let/let.directive.mjs +0 -33
  537. package/esm2022/directives/let/taiga-ui-cdk-directives-let.mjs +0 -5
  538. package/esm2022/directives/media/index.mjs +0 -2
  539. package/esm2022/directives/media/media.directive.mjs +0 -89
  540. package/esm2022/directives/media/taiga-ui-cdk-directives-media.mjs +0 -5
  541. package/esm2022/directives/native-validator/index.mjs +0 -2
  542. package/esm2022/directives/native-validator/native-validator.directive.mjs +0 -43
  543. package/esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs +0 -5
  544. package/esm2022/directives/obscured/index.mjs +0 -3
  545. package/esm2022/directives/obscured/obscured.directive.mjs +0 -38
  546. package/esm2022/directives/obscured/obscured.service.mjs +0 -24
  547. package/esm2022/directives/obscured/taiga-ui-cdk-directives-obscured.mjs +0 -5
  548. package/esm2022/directives/pan/index.mjs +0 -3
  549. package/esm2022/directives/pan/pan.directive.mjs +0 -22
  550. package/esm2022/directives/pan/pan.service.mjs +0 -28
  551. package/esm2022/directives/pan/taiga-ui-cdk-directives-pan.mjs +0 -5
  552. package/esm2022/directives/platform/index.mjs +0 -2
  553. package/esm2022/directives/platform/platform.directive.mjs +0 -35
  554. package/esm2022/directives/platform/taiga-ui-cdk-directives-platform.mjs +0 -5
  555. package/esm2022/directives/popover/index.mjs +0 -2
  556. package/esm2022/directives/popover/popover.directive.mjs +0 -26
  557. package/esm2022/directives/popover/taiga-ui-cdk-directives-popover.mjs +0 -5
  558. package/esm2022/directives/repeat-times/index.mjs +0 -2
  559. package/esm2022/directives/repeat-times/repeat-times.directive.mjs +0 -55
  560. package/esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs +0 -5
  561. package/esm2022/directives/resizer/index.mjs +0 -3
  562. package/esm2022/directives/resizer/resizable.directive.mjs +0 -16
  563. package/esm2022/directives/resizer/resizer.directive.mjs +0 -83
  564. package/esm2022/directives/resizer/taiga-ui-cdk-directives-resizer.mjs +0 -5
  565. package/esm2022/directives/swipe/index.mjs +0 -4
  566. package/esm2022/directives/swipe/swipe.directive.mjs +0 -22
  567. package/esm2022/directives/swipe/swipe.options.mjs +0 -8
  568. package/esm2022/directives/swipe/swipe.service.mjs +0 -50
  569. package/esm2022/directives/swipe/swipe.types.mjs +0 -2
  570. package/esm2022/directives/swipe/taiga-ui-cdk-directives-swipe.mjs +0 -5
  571. package/esm2022/directives/taiga-ui-cdk-directives.mjs +0 -5
  572. package/esm2022/directives/transitioned/index.mjs +0 -2
  573. package/esm2022/directives/transitioned/taiga-ui-cdk-directives-transitioned.mjs +0 -5
  574. package/esm2022/directives/transitioned/transitioned.directive.mjs +0 -27
  575. package/esm2022/directives/validator/index.mjs +0 -2
  576. package/esm2022/directives/validator/taiga-ui-cdk-directives-validator.mjs +0 -5
  577. package/esm2022/directives/validator/validator.directive.mjs +0 -30
  578. package/esm2022/directives/value-changes/index.mjs +0 -2
  579. package/esm2022/directives/value-changes/taiga-ui-cdk-directives-value-changes.mjs +0 -5
  580. package/esm2022/directives/value-changes/value-changes.directive.mjs +0 -29
  581. package/esm2022/directives/visual-viewport/index.mjs +0 -2
  582. package/esm2022/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.mjs +0 -5
  583. package/esm2022/directives/visual-viewport/visual-viewport.directive.mjs +0 -34
  584. package/esm2022/directives/zoom/index.mjs +0 -4
  585. package/esm2022/directives/zoom/taiga-ui-cdk-directives-zoom.mjs +0 -5
  586. package/esm2022/directives/zoom/zoom.directive.mjs +0 -24
  587. package/esm2022/directives/zoom/zoom.options.mjs +0 -10
  588. package/esm2022/directives/zoom/zoom.service.mjs +0 -46
  589. package/esm2022/directives/zoom/zoom.types.mjs +0 -2
  590. package/esm2022/index.mjs +0 -10
  591. package/esm2022/observables/close-watcher.mjs +0 -26
  592. package/esm2022/observables/control-value.mjs +0 -8
  593. package/esm2022/observables/drag-and-drop-from.mjs +0 -14
  594. package/esm2022/observables/events.mjs +0 -8
  595. package/esm2022/observables/if-map.mjs +0 -5
  596. package/esm2022/observables/index.mjs +0 -14
  597. package/esm2022/observables/must-be-present.mjs +0 -17
  598. package/esm2022/observables/query-list-observable.mjs +0 -9
  599. package/esm2022/observables/scroll-from.mjs +0 -10
  600. package/esm2022/observables/taiga-ui-cdk-observables.mjs +0 -5
  601. package/esm2022/observables/take-until-destroyed.mjs +0 -9
  602. package/esm2022/observables/typed-from-event.mjs +0 -9
  603. package/esm2022/observables/untracked-scheduler.mjs +0 -11
  604. package/esm2022/observables/watch.mjs +0 -6
  605. package/esm2022/observables/zone.mjs +0 -34
  606. package/esm2022/pipes/animation/animation.pipe.mjs +0 -27
  607. package/esm2022/pipes/animation/index.mjs +0 -2
  608. package/esm2022/pipes/animation/taiga-ui-cdk-pipes-animation.mjs +0 -5
  609. package/esm2022/pipes/filter/filter.pipe.mjs +0 -25
  610. package/esm2022/pipes/filter/index.mjs +0 -2
  611. package/esm2022/pipes/filter/taiga-ui-cdk-pipes-filter.mjs +0 -5
  612. package/esm2022/pipes/index.mjs +0 -10
  613. package/esm2022/pipes/is-present/index.mjs +0 -2
  614. package/esm2022/pipes/is-present/is-present.pipe.mjs +0 -19
  615. package/esm2022/pipes/is-present/taiga-ui-cdk-pipes-is-present.mjs +0 -5
  616. package/esm2022/pipes/keys/index.mjs +0 -2
  617. package/esm2022/pipes/keys/keys.pipe.mjs +0 -18
  618. package/esm2022/pipes/keys/taiga-ui-cdk-pipes-keys.mjs +0 -5
  619. package/esm2022/pipes/mapper/index.mjs +0 -2
  620. package/esm2022/pipes/mapper/mapper.pipe.mjs +0 -25
  621. package/esm2022/pipes/mapper/taiga-ui-cdk-pipes-mapper.mjs +0 -5
  622. package/esm2022/pipes/obfuscate/index.mjs +0 -3
  623. package/esm2022/pipes/obfuscate/obfuscate.options.mjs +0 -10
  624. package/esm2022/pipes/obfuscate/obfuscate.pipe.mjs +0 -44
  625. package/esm2022/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.mjs +0 -5
  626. package/esm2022/pipes/repeat-times/index.mjs +0 -19
  627. package/esm2022/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.mjs +0 -5
  628. package/esm2022/pipes/replace/index.mjs +0 -2
  629. package/esm2022/pipes/replace/replace.pipe.mjs +0 -20
  630. package/esm2022/pipes/replace/taiga-ui-cdk-pipes-replace.mjs +0 -5
  631. package/esm2022/pipes/taiga-ui-cdk-pipes.mjs +0 -5
  632. package/esm2022/pipes/to-array/index.mjs +0 -2
  633. package/esm2022/pipes/to-array/taiga-ui-cdk-pipes-to-array.mjs +0 -5
  634. package/esm2022/pipes/to-array/to-array.pipe.mjs +0 -18
  635. package/esm2022/services/id.service.mjs +0 -21
  636. package/esm2022/services/index.mjs +0 -5
  637. package/esm2022/services/popover.service.mjs +0 -45
  638. package/esm2022/services/scroll.service.mjs +0 -58
  639. package/esm2022/services/taiga-ui-cdk-services.mjs +0 -5
  640. package/esm2022/services/theme-color.service.mjs +0 -33
  641. package/esm2022/taiga-ui-cdk.mjs +0 -5
  642. package/esm2022/tokens/active-element.mjs +0 -56
  643. package/esm2022/tokens/base-href.mjs +0 -6
  644. package/esm2022/tokens/environment.mjs +0 -65
  645. package/esm2022/tokens/fallback-value.mjs +0 -11
  646. package/esm2022/tokens/index.mjs +0 -8
  647. package/esm2022/tokens/range.mjs +0 -9
  648. package/esm2022/tokens/removed-element.mjs +0 -20
  649. package/esm2022/tokens/taiga-ui-cdk-tokens.mjs +0 -5
  650. package/esm2022/tokens/window-size.mjs +0 -28
  651. package/esm2022/types/context.mjs +0 -2
  652. package/esm2022/types/handler.mjs +0 -2
  653. package/esm2022/types/index.mjs +0 -2
  654. package/esm2022/types/loose-union.mjs +0 -2
  655. package/esm2022/types/mapper.mjs +0 -2
  656. package/esm2022/types/matcher.mjs +0 -2
  657. package/esm2022/types/rounding.mjs +0 -2
  658. package/esm2022/types/safe-html.mjs +0 -2
  659. package/esm2022/types/taiga-ui-cdk-types.mjs +0 -5
  660. package/esm2022/types/values-of.mjs +0 -2
  661. package/esm2022/utils/browser/index.mjs +0 -6
  662. package/esm2022/utils/browser/is-apple.mjs +0 -14
  663. package/esm2022/utils/browser/is-edge.mjs +0 -4
  664. package/esm2022/utils/browser/is-firefox.mjs +0 -4
  665. package/esm2022/utils/browser/is-ios.mjs +0 -7
  666. package/esm2022/utils/browser/is-safari.mjs +0 -12
  667. package/esm2022/utils/browser/taiga-ui-cdk-utils-browser.mjs +0 -5
  668. package/esm2022/utils/color/get-gradient-data.mjs +0 -6
  669. package/esm2022/utils/color/hex-to-rgb.mjs +0 -12
  670. package/esm2022/utils/color/hex-to-rgba.mjs +0 -29
  671. package/esm2022/utils/color/hsv-to-rgb.mjs +0 -11
  672. package/esm2022/utils/color/index.mjs +0 -10
  673. package/esm2022/utils/color/parse-color.mjs +0 -27
  674. package/esm2022/utils/color/parse-gradient.mjs +0 -70
  675. package/esm2022/utils/color/rgb-to-hex.mjs +0 -4
  676. package/esm2022/utils/color/rgb-to-hsv.mjs +0 -8
  677. package/esm2022/utils/color/rgba-to-hex.mjs +0 -23
  678. package/esm2022/utils/color/taiga-ui-cdk-utils-color.mjs +0 -5
  679. package/esm2022/utils/di/create-options.mjs +0 -10
  680. package/esm2022/utils/di/index.mjs +0 -3
  681. package/esm2022/utils/di/taiga-ui-cdk-utils-di.mjs +0 -5
  682. package/esm2022/utils/dom/contains-or-after.mjs +0 -10
  683. package/esm2022/utils/dom/element-checks.mjs +0 -20
  684. package/esm2022/utils/dom/event-checks.mjs +0 -4
  685. package/esm2022/utils/dom/get-actual-target.mjs +0 -7
  686. package/esm2022/utils/dom/get-clipboard-data-text.mjs +0 -11
  687. package/esm2022/utils/dom/get-document-or-shadow-root.mjs +0 -6
  688. package/esm2022/utils/dom/get-element-obscurers.mjs +0 -36
  689. package/esm2022/utils/dom/get-element-offset.mjs +0 -20
  690. package/esm2022/utils/dom/get-element-point.mjs +0 -6
  691. package/esm2022/utils/dom/get-selected-text.mjs +0 -15
  692. package/esm2022/utils/dom/index.mjs +0 -20
  693. package/esm2022/utils/dom/inject-element.mjs +0 -5
  694. package/esm2022/utils/dom/is-current-target.mjs +0 -4
  695. package/esm2022/utils/dom/is-element-editable.mjs +0 -6
  696. package/esm2022/utils/dom/is-inside-iframe.mjs +0 -7
  697. package/esm2022/utils/dom/is-node-in.mjs +0 -14
  698. package/esm2022/utils/dom/point-to-client-rect.mjs +0 -17
  699. package/esm2022/utils/dom/retarget-boundary-crossing.mjs +0 -16
  700. package/esm2022/utils/dom/taiga-ui-cdk-utils-dom.mjs +0 -5
  701. package/esm2022/utils/dom/value-binding.mjs +0 -29
  702. package/esm2022/utils/dom/value.mjs +0 -83
  703. package/esm2022/utils/focus/blur-native-focused.mjs +0 -17
  704. package/esm2022/utils/focus/focused-in.mjs +0 -8
  705. package/esm2022/utils/focus/get-closest-focusable.mjs +0 -26
  706. package/esm2022/utils/focus/get-native-focused.mjs +0 -21
  707. package/esm2022/utils/focus/index.mjs +0 -10
  708. package/esm2022/utils/focus/is-native-focused-in.mjs +0 -17
  709. package/esm2022/utils/focus/is-native-focused.mjs +0 -20
  710. package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +0 -38
  711. package/esm2022/utils/focus/is-native-mouse-focusable.mjs +0 -12
  712. package/esm2022/utils/focus/move-focus.mjs +0 -19
  713. package/esm2022/utils/focus/taiga-ui-cdk-utils-focus.mjs +0 -5
  714. package/esm2022/utils/index.mjs +0 -8
  715. package/esm2022/utils/math/clamp.mjs +0 -16
  716. package/esm2022/utils/math/in-range.mjs +0 -9
  717. package/esm2022/utils/math/index.mjs +0 -11
  718. package/esm2022/utils/math/normalize-to-int-number.mjs +0 -22
  719. package/esm2022/utils/math/quantize.mjs +0 -15
  720. package/esm2022/utils/math/round-with.mjs +0 -14
  721. package/esm2022/utils/math/round.mjs +0 -42
  722. package/esm2022/utils/math/sum.mjs +0 -7
  723. package/esm2022/utils/math/taiga-ui-cdk-utils-math.mjs +0 -5
  724. package/esm2022/utils/math/to-int.mjs +0 -4
  725. package/esm2022/utils/math/to-integer.mjs +0 -4
  726. package/esm2022/utils/math/to-radians.mjs +0 -7
  727. package/esm2022/utils/miscellaneous/array-remove.mjs +0 -4
  728. package/esm2022/utils/miscellaneous/array-shallow-equals.mjs +0 -4
  729. package/esm2022/utils/miscellaneous/array-toggle.mjs +0 -8
  730. package/esm2022/utils/miscellaneous/change-date-separator.mjs +0 -3
  731. package/esm2022/utils/miscellaneous/count-filled-controls.mjs +0 -13
  732. package/esm2022/utils/miscellaneous/create-token.mjs +0 -16
  733. package/esm2022/utils/miscellaneous/default-sort.mjs +0 -11
  734. package/esm2022/utils/miscellaneous/directive-binding.mjs +0 -26
  735. package/esm2022/utils/miscellaneous/directive-listener.mjs +0 -8
  736. package/esm2022/utils/miscellaneous/distance-between-touches.mjs +0 -4
  737. package/esm2022/utils/miscellaneous/ease-in-out-quad.mjs +0 -7
  738. package/esm2022/utils/miscellaneous/flat-length.mjs +0 -9
  739. package/esm2022/utils/miscellaneous/font-size-watcher.mjs +0 -30
  740. package/esm2022/utils/miscellaneous/get-original-array-from-query-list.mjs +0 -15
  741. package/esm2022/utils/miscellaneous/index.mjs +0 -32
  742. package/esm2022/utils/miscellaneous/is-control-empty.mjs +0 -4
  743. package/esm2022/utils/miscellaneous/is-falsy.mjs +0 -4
  744. package/esm2022/utils/miscellaneous/is-number.mjs +0 -4
  745. package/esm2022/utils/miscellaneous/is-object.mjs +0 -4
  746. package/esm2022/utils/miscellaneous/is-present.mjs +0 -4
  747. package/esm2022/utils/miscellaneous/is-string.mjs +0 -4
  748. package/esm2022/utils/miscellaneous/is-valid-url.mjs +0 -13
  749. package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +0 -16
  750. package/esm2022/utils/miscellaneous/nullable-same.mjs +0 -18
  751. package/esm2022/utils/miscellaneous/obfuscate.mjs +0 -53
  752. package/esm2022/utils/miscellaneous/provide-options.mjs +0 -14
  753. package/esm2022/utils/miscellaneous/provide.mjs +0 -4
  754. package/esm2022/utils/miscellaneous/pure.mjs +0 -83
  755. package/esm2022/utils/miscellaneous/px.mjs +0 -9
  756. package/esm2022/utils/miscellaneous/sanitize-text.mjs +0 -29
  757. package/esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs +0 -5
  758. package/esm2022/utils/miscellaneous/uniq-by.mjs +0 -6
  759. package/esm2022/utils/miscellaneous/with-styles.mjs +0 -17
  760. package/esm2022/utils/taiga-ui-cdk-utils.mjs +0 -5
  761. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -39
  762. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
  763. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -37
  764. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
  765. package/fesm2022/taiga-ui-cdk-directives-for.mjs +0 -43
  766. package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +0 -1
  767. package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -53
  768. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
  769. package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
  770. package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
  771. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -61
  772. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
  773. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -33
  774. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
  775. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -25
  776. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
  777. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -24
  778. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
  779. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -25
  780. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
  781. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -26
  782. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
  783. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -24
  784. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
  785. package/fesm2022/taiga-ui-cdk-services.mjs +0 -152
  786. package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
  787. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +0 -48
  788. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +0 -1
  789. package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -195
  790. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
  791. package/observables/must-be-present.d.ts +0 -5
  792. package/observables/query-list-observable.d.ts +0 -6
  793. package/pipes/animation/animation.pipe.d.ts +0 -13
  794. package/pipes/animation/index.d.ts +0 -1
  795. package/pipes/is-present/index.d.ts +0 -1
  796. package/pipes/is-present/is-present.pipe.d.ts +0 -7
  797. package/pipes/keys/index.d.ts +0 -1
  798. package/pipes/keys/keys.pipe.d.ts +0 -7
  799. package/pipes/repeat-times/index.d.ts +0 -7
  800. package/pipes/replace/index.d.ts +0 -1
  801. package/pipes/replace/replace.pipe.d.ts +0 -7
  802. package/pipes/to-array/index.d.ts +0 -1
  803. package/pipes/to-array/to-array.pipe.d.ts +0 -7
  804. package/schematics/migrate-tui-let/index.d.ts +0 -3
  805. package/schematics/migrate-tui-let/index.js +0 -72
  806. package/schematics/migrate-tui-let/index.js.map +0 -1
  807. package/schematics/migrate-tui-let/schema.json +0 -7
  808. package/schematics/ng-update/v4/steps/replace-functions.js.map +0 -1
  809. package/services/id.service.d.ts +0 -8
  810. package/services/index.d.ts +0 -4
  811. package/services/popover.service.d.ts +0 -26
  812. package/services/scroll.service.d.ts +0 -13
  813. package/services/theme-color.service.d.ts +0 -18
  814. package/tokens/base-href.d.ts +0 -2
  815. package/tokens/environment.d.ts +0 -29
  816. package/tokens/range.d.ts +0 -5
  817. package/types/loose-union.d.ts +0 -36
  818. package/types/safe-html.d.ts +0 -2
  819. package/types/values-of.d.ts +0 -1
  820. package/utils/browser/index.d.ts +0 -5
  821. package/utils/browser/is-apple.d.ts +0 -11
  822. package/utils/browser/is-edge.d.ts +0 -1
  823. package/utils/browser/is-firefox.d.ts +0 -1
  824. package/utils/browser/is-ios.d.ts +0 -6
  825. package/utils/browser/is-safari.d.ts +0 -1
  826. package/utils/color/get-gradient-data.d.ts +0 -1
  827. package/utils/color/hex-to-rgb.d.ts +0 -1
  828. package/utils/color/hex-to-rgba.d.ts +0 -3
  829. package/utils/color/hsv-to-rgb.d.ts +0 -4
  830. package/utils/color/index.d.ts +0 -9
  831. package/utils/color/parse-color.d.ts +0 -1
  832. package/utils/color/parse-gradient.d.ts +0 -10
  833. package/utils/color/rgb-to-hex.d.ts +0 -1
  834. package/utils/color/rgb-to-hsv.d.ts +0 -1
  835. package/utils/color/rgba-to-hex.d.ts +0 -2
  836. package/utils/dom/get-element-point.d.ts +0 -2
  837. package/utils/dom/is-current-target.d.ts +0 -1
  838. package/utils/dom/is-inside-iframe.d.ts +0 -4
  839. package/utils/dom/is-node-in.d.ts +0 -8
  840. package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
  841. package/utils/dom/value-binding.d.ts +0 -3
  842. package/utils/focus/blur-native-focused.d.ts +0 -9
  843. package/utils/focus/is-native-mouse-focusable.d.ts +0 -6
  844. package/utils/math/to-integer.d.ts +0 -1
  845. package/utils/math/to-radians.d.ts +0 -4
  846. package/utils/miscellaneous/change-date-separator.d.ts +0 -1
  847. package/utils/miscellaneous/create-token.d.ts +0 -9
  848. package/utils/miscellaneous/directive-listener.d.ts +0 -9
  849. package/utils/miscellaneous/flat-length.d.ts +0 -6
  850. package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
  851. package/utils/miscellaneous/is-falsy.d.ts +0 -1
  852. package/utils/miscellaneous/is-valid-url.d.ts +0 -4
  853. package/utils/miscellaneous/provide-options.d.ts +0 -2
  854. package/utils/miscellaneous/pure.d.ts +0 -22
  855. package/utils/miscellaneous/uniq-by.d.ts +0 -1
  856. /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
  857. /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, signal, ChangeDetectorRef, computed, untracked, Directive, Input, INJECTOR, ViewContainerRef, ViewChild, Injectable } from '@angular/core';
2
+ import { inject, signal, ChangeDetectorRef, computed, input, untracked, Directive } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { NgControl, NgModel } from '@angular/forms';
5
5
  import { EMPTY_FUNCTION } from '@taiga-ui/cdk/constants';
6
6
  import { TUI_FALLBACK_VALUE } from '@taiga-ui/cdk/tokens';
7
- import { tuiProvide } from '@taiga-ui/cdk/utils';
7
+ import { tuiProvide } from '@taiga-ui/cdk/utils/di';
8
8
  import { identity, Subject, delay, startWith, map, filter, distinctUntilChanged, switchMap, merge, EMPTY } from 'rxjs';
9
9
 
10
10
  class TuiValueTransformer {
@@ -38,13 +38,13 @@ class TuiControl {
38
38
  constructor() {
39
39
  this.fallback = inject(TUI_FALLBACK_VALUE, FLAGS);
40
40
  this.refresh$ = new Subject();
41
- this.pseudoInvalid = signal(null);
42
41
  this.internal = signal(this.fallback);
43
42
  this.control = inject(NgControl, { self: true });
44
43
  this.cdr = inject(ChangeDetectorRef);
45
44
  this.transformer = inject(TuiValueTransformer, FLAGS) ?? TUI_IDENTITY_VALUE_TRANSFORMER;
46
45
  this.value = computed(() => this.internal() ?? this.fallback);
47
- this.readOnly = signal(false);
46
+ this.readOnly = input(false);
47
+ this.pseudoInvalid = input(null, { alias: 'invalid' });
48
48
  this.touched = signal(false);
49
49
  this.status = signal(undefined);
50
50
  this.disabled = computed(() => this.status() === 'DISABLED');
@@ -62,12 +62,6 @@ class TuiControl {
62
62
  .pipe(delay(0), startWith(null), map(() => this.control.control), filter(Boolean), distinctUntilChanged(), switchMap((c) => merge(c.valueChanges, c.statusChanges, c.events || EMPTY).pipe(startWith(null))), takeUntilDestroyed())
63
63
  .subscribe(() => this.update());
64
64
  }
65
- set readOnlySetter(readOnly) {
66
- this.readOnly.set(readOnly);
67
- }
68
- set invalidSetter(invalid) {
69
- this.pseudoInvalid.set(invalid);
70
- }
71
65
  registerOnChange(onChange) {
72
66
  this.refresh$.next();
73
67
  this.onChange = (value) => {
@@ -100,94 +94,16 @@ class TuiControl {
100
94
  this.touched.set(!!this.control.control?.touched);
101
95
  this.cdr.markForCheck();
102
96
  }
103
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
104
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiControl, inputs: { readOnlySetter: ["readOnly", "readOnlySetter"], invalidSetter: ["invalid", "invalidSetter"] }, ngImport: i0 }); }
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
98
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiControl, isStandalone: true, inputs: { readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, pseudoInvalid: { classPropertyName: "pseudoInvalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
105
99
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiControl, decorators: [{
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiControl, decorators: [{
107
101
  type: Directive
108
- }], ctorParameters: function () { return []; }, propDecorators: { readOnlySetter: [{
109
- type: Input,
110
- args: ['readOnly']
111
- }], invalidSetter: [{
112
- type: Input,
113
- args: ['invalid']
114
- }] } });
102
+ }], ctorParameters: () => [] });
115
103
  function tuiAsControl(control) {
116
104
  return tuiProvide(TuiControl, control);
117
105
  }
118
106
 
119
- /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
120
- /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
121
- /**
122
- * Abstract class for host element for dynamically created portals.
123
- */
124
- class TuiPortals {
125
- constructor() {
126
- this.injector = inject(INJECTOR);
127
- this.nothing = inject(TuiPortalService).attach(this);
128
- }
129
- addComponentChild(component) {
130
- const injector = component.createInjector(this.injector);
131
- const ref = this.vcr.createComponent(component.component, { injector });
132
- ref.changeDetectorRef.detectChanges();
133
- return ref;
134
- }
135
- addTemplateChild(templateRef, context) {
136
- return this.vcr.createEmbeddedView(templateRef, context);
137
- }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPortals, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
139
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPortals, viewQueries: [{ propertyName: "vcr", first: true, predicate: ["viewContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0 }); }
140
- }
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPortals, decorators: [{
142
- type: Directive
143
- }], propDecorators: { vcr: [{
144
- type: ViewChild,
145
- args: ['viewContainer', { read: ViewContainerRef }]
146
- }] } });
147
- /**
148
- * Abstract service for displaying portals
149
- */
150
- class TuiPortalService {
151
- attach(host) {
152
- this.host = host;
153
- }
154
- add(component) {
155
- return this.safeHost.addComponentChild(component);
156
- }
157
- remove({ hostView }) {
158
- this.removeTemplate(hostView);
159
- }
160
- addTemplate(templateRef, context) {
161
- return this.safeHost.addTemplateChild(templateRef, context);
162
- }
163
- removeTemplate(viewRef) {
164
- if (!viewRef.destroyed) {
165
- viewRef.destroy();
166
- }
167
- }
168
- get safeHost() {
169
- if (!this.host) {
170
- throw new TuiNoHostException();
171
- }
172
- return this.host;
173
- }
174
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
175
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPortalService }); }
176
- }
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPortalService, decorators: [{
178
- type: Injectable
179
- }] });
180
- function tuiAsPortal(portal) {
181
- return tuiProvide(TuiPortalService, portal);
182
- }
183
- class TuiNoHostException extends Error {
184
- constructor() {
185
- super(ngDevMode
186
- ? 'Portals cannot be used without TuiPortalHostComponent; perhaps you forgot to wrap your application with tui-root.'
187
- : '');
188
- }
189
- }
190
-
191
107
  class TuiValidationError {
192
108
  constructor(message, context = {}) {
193
109
  this.message = message;
@@ -199,5 +115,5 @@ class TuiValidationError {
199
115
  * Generated bundle index. Do not edit.
200
116
  */
201
117
 
202
- export { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, TuiNoHostException, TuiNonNullableValueTransformer, TuiPortalService, TuiPortals, TuiValidationError, TuiValueTransformer, tuiAsControl, tuiAsPortal, tuiValueTransformerFrom };
118
+ export { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, TuiNonNullableValueTransformer, TuiValidationError, TuiValueTransformer, tuiAsControl, tuiValueTransformerFrom };
203
119
  //# sourceMappingURL=taiga-ui-cdk-classes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-classes.mjs","sources":["../../../projects/cdk/classes/value-transformer.ts","../../../projects/cdk/classes/control.ts","../../../projects/cdk/classes/portals.ts","../../../projects/cdk/classes/validation-error.ts","../../../projects/cdk/classes/taiga-ui-cdk-classes.ts"],"sourcesContent":["import {type FactoryProvider, inject, type ProviderToken} from '@angular/core';\nimport {identity} from 'rxjs';\n\nexport abstract class TuiValueTransformer<From, To = unknown> {\n public abstract toControlValue(componentValue: From): To;\n public abstract fromControlValue(controlValue: To): From;\n}\n\nexport function tuiValueTransformerFrom<\n T extends {valueTransformer: TuiValueTransformer<unknown>},\n>(token: ProviderToken<T>): FactoryProvider {\n return {\n provide: TuiValueTransformer,\n useFactory: () => inject(token).valueTransformer,\n };\n}\n\nexport class TuiNonNullableValueTransformer<T> extends TuiValueTransformer<T | null, T> {\n private prevValue!: T;\n\n public fromControlValue(value: T): T {\n this.prevValue = value;\n\n return value;\n }\n\n public toControlValue(value: T | null): T {\n this.prevValue = value ?? this.prevValue;\n\n return this.prevValue;\n }\n}\n\nexport const TUI_IDENTITY_VALUE_TRANSFORMER: TuiValueTransformer<any, any> = {\n fromControlValue: identity,\n toControlValue: identity,\n};\n","import {\n ChangeDetectorRef,\n computed,\n Directive,\n inject,\n Input,\n type Provider,\n signal,\n type Type,\n untracked,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n type ControlValueAccessor,\n type FormControlStatus,\n NgControl,\n NgModel,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {TUI_FALLBACK_VALUE} from '@taiga-ui/cdk/tokens';\nimport {tuiProvide} from '@taiga-ui/cdk/utils';\nimport {\n delay,\n distinctUntilChanged,\n EMPTY,\n filter,\n map,\n merge,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_IDENTITY_VALUE_TRANSFORMER, TuiValueTransformer} from './value-transformer';\n\nconst FLAGS = {self: true, optional: true};\n\n/**\n * Basic ControlValueAccessor class to build form components upon\n */\n@Directive()\nexport abstract class TuiControl<T> implements ControlValueAccessor {\n private readonly fallback = inject(TUI_FALLBACK_VALUE, FLAGS) as T;\n private readonly refresh$ = new Subject<void>();\n private readonly pseudoInvalid = signal<boolean | null>(null);\n private readonly internal = signal(this.fallback);\n\n protected readonly control = inject(NgControl, {self: true});\n protected readonly cdr = inject(ChangeDetectorRef);\n protected transformer =\n inject(TuiValueTransformer, FLAGS) ?? TUI_IDENTITY_VALUE_TRANSFORMER;\n\n public readonly value = computed(() => this.internal() ?? this.fallback);\n public readonly readOnly = signal(false);\n public readonly touched = signal(false);\n public readonly status = signal<FormControlStatus | undefined>(undefined);\n public readonly disabled = computed(() => this.status() === 'DISABLED');\n public readonly interactive = computed(() => !this.disabled() && !this.readOnly());\n public readonly invalid = computed(() =>\n this.pseudoInvalid() !== null\n ? !!this.pseudoInvalid() && this.interactive()\n : this.interactive() && this.touched() && this.status() === 'INVALID',\n );\n\n public readonly mode = computed(() =>\n // eslint-disable-next-line no-nested-ternary\n this.readOnly() ? 'readonly' : this.invalid() ? 'invalid' : 'valid',\n );\n\n public onTouched = EMPTY_FUNCTION;\n public onChange: (value: T) => void = EMPTY_FUNCTION;\n\n constructor() {\n this.control.valueAccessor = this;\n this.refresh$\n .pipe(\n delay(0),\n startWith(null),\n map(() => this.control.control),\n filter(Boolean),\n distinctUntilChanged(),\n switchMap((c) =>\n merge(\n c.valueChanges,\n c.statusChanges,\n (c as any).events || EMPTY,\n ).pipe(startWith(null)),\n ),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.update());\n }\n\n @Input('readOnly')\n public set readOnlySetter(readOnly: boolean) {\n this.readOnly.set(readOnly);\n }\n\n @Input('invalid')\n public set invalidSetter(invalid: boolean | null) {\n this.pseudoInvalid.set(invalid);\n }\n\n public registerOnChange(onChange: (value: unknown) => void): void {\n this.refresh$.next();\n\n this.onChange = (value: T) => {\n const internal = untracked(() => this.internal());\n\n if (value === internal) {\n return;\n }\n\n onChange(this.transformer.toControlValue(value));\n this.internal.set(value);\n this.update();\n };\n }\n\n public registerOnTouched(onTouched: () => void): void {\n this.onTouched = () => {\n onTouched();\n this.update();\n };\n }\n\n public setDisabledState(): void {\n this.update();\n }\n\n public writeValue(value: T | null): void {\n // TODO: https://github.com/angular/angular/issues/14988\n const safe = this.control instanceof NgModel ? this.control.model : value;\n\n this.internal.set(this.transformer.fromControlValue(safe));\n this.update();\n }\n\n private update(): void {\n this.status.set(this.control.control?.status);\n this.touched.set(!!this.control.control?.touched);\n this.cdr.markForCheck();\n }\n}\n\nexport function tuiAsControl<T>(control: Type<TuiControl<T>>): Provider {\n return tuiProvide(TuiControl, control);\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {\n type ComponentRef,\n Directive,\n type EmbeddedViewRef,\n inject,\n Injectable,\n INJECTOR,\n type Provider,\n type TemplateRef,\n ViewChild,\n ViewContainerRef,\n type ViewRef,\n} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils';\nimport {type PolymorpheusComponent} from '@taiga-ui/polymorpheus';\n\n/**\n * Abstract class for host element for dynamically created portals.\n */\n@Directive()\nexport abstract class TuiPortals {\n @ViewChild('viewContainer', {read: ViewContainerRef})\n private readonly vcr!: ViewContainerRef;\n\n private readonly injector = inject(INJECTOR);\n\n protected readonly nothing = inject(TuiPortalService).attach(this);\n\n public addComponentChild<C>(component: PolymorpheusComponent<C>): ComponentRef<C> {\n const injector = component.createInjector(this.injector);\n const ref = this.vcr.createComponent(component.component, {injector});\n\n ref.changeDetectorRef.detectChanges();\n\n return ref;\n }\n\n public addTemplateChild<C>(\n templateRef: TemplateRef<C>,\n context?: C,\n ): EmbeddedViewRef<C> {\n return this.vcr.createEmbeddedView(templateRef, context);\n }\n}\n\n/**\n * Abstract service for displaying portals\n */\n@Injectable()\nexport abstract class TuiPortalService {\n protected host?: TuiPortals;\n\n public attach(host: TuiPortals): void {\n this.host = host;\n }\n\n public add<C>(component: PolymorpheusComponent<C>): ComponentRef<C> {\n return this.safeHost.addComponentChild(component);\n }\n\n public remove<C>({hostView}: ComponentRef<C>): void {\n this.removeTemplate(hostView);\n }\n\n public addTemplate<C>(templateRef: TemplateRef<C>, context?: C): EmbeddedViewRef<C> {\n return this.safeHost.addTemplateChild(templateRef, context);\n }\n\n public removeTemplate<C>(viewRef: EmbeddedViewRef<C> | ViewRef): void {\n if (!viewRef.destroyed) {\n viewRef.destroy();\n }\n }\n\n protected get safeHost(): TuiPortals {\n if (!this.host) {\n throw new TuiNoHostException();\n }\n\n return this.host;\n }\n}\n\nexport function tuiAsPortal(portal: typeof TuiPortalService): Provider {\n return tuiProvide(TuiPortalService, portal);\n}\n\nexport class TuiNoHostException extends Error {\n constructor() {\n super(\n ngDevMode\n ? 'Portals cannot be used without TuiPortalHostComponent; perhaps you forgot to wrap your application with tui-root.'\n : '',\n );\n }\n}\n","import {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport class TuiValidationError<T extends Record<string, any> = Record<string, unknown>> {\n constructor(\n public readonly message: PolymorpheusContent<T>,\n public readonly context: T = {} as T,\n ) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAGsB,mBAAmB,CAAA;AAGxC,CAAA;AAEK,SAAU,uBAAuB,CAErC,KAAuB,EAAA;IACrB,OAAO;AACH,QAAA,OAAO,EAAE,mBAAmB;QAC5B,UAAU,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC,gBAAgB;KACnD,CAAC;AACN,CAAC;AAEK,MAAO,8BAAkC,SAAQ,mBAAgC,CAAA;AAG5E,IAAA,gBAAgB,CAAC,KAAQ,EAAA;AAC5B,QAAA,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;AAEvB,QAAA,OAAO,KAAK,CAAC;KAChB;AAEM,IAAA,cAAc,CAAC,KAAe,EAAA;QACjC,IAAI,CAAC,SAAS,GAAG,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC;QAEzC,OAAO,IAAI,CAAC,SAAS,CAAC;KACzB;AACJ,CAAA;AAEY,MAAA,8BAA8B,GAAkC;AACzE,IAAA,gBAAgB,EAAE,QAAQ;AAC1B,IAAA,cAAc,EAAE,QAAQ;;;ACA5B,MAAM,KAAK,GAAG,EAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;AAE3C;;AAEG;AACH,MACsB,UAAU,CAAA;AA+B5B,IAAA,WAAA,GAAA;AA9BiB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,EAAE,KAAK,CAAM,CAAC;AAClD,QAAA,IAAA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AE;YACZ,MAAM,IAAI,kBAAkB,EAAE,CAAC;AAClC,SAAA;QAED,OAAO,IAAI,CAAC,IAAI,CAAC;KACpB;+GA/BiB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;mHAAhB,gBAAgB,EAAA,CAAA,CAAA,EAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;;AAmCL,SAAU,WAAW,CAAC,MAA+B,EAAA;AACvD,IAAA,OAAO,UAAU,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC;AAEK,MAAO,kBAAmB,SAAQ,KAAK,CAAA;AACzC,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CACD,SAAS;AACL,cAAE,mHAAmH;cACnH,EAAE,CACX,CAAC;KACL;AACJ;;MC9FY,kBAAkB,CAAA;IAC3B,WACoB,CAAA,OAA+B,EAC/B,OAAA,GAAa,EAAO,EAAA;QADpB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAwB;QAC/B,IAAO,CAAA,OAAA,GAAP,OAAO,CAAa;KACpC;AACP;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-classes.mjs","sources":["../../../projects/cdk/classes/value-transformer.ts","../../../projects/cdk/classes/control.ts","../../../projects/cdk/classes/validation-error.ts","../../../projects/cdk/classes/taiga-ui-cdk-classes.ts"],"sourcesContent":["import {type FactoryProvider, inject, type ProviderToken} from '@angular/core';\nimport {identity} from 'rxjs';\n\nexport abstract class TuiValueTransformer<From, To = unknown> {\n public abstract toControlValue(componentValue: From): To;\n public abstract fromControlValue(controlValue: To): From;\n}\n\nexport function tuiValueTransformerFrom<\n T extends {valueTransformer: TuiValueTransformer<unknown>},\n>(token: ProviderToken<T>): FactoryProvider {\n return {\n provide: TuiValueTransformer,\n useFactory: () => inject(token).valueTransformer,\n };\n}\n\nexport class TuiNonNullableValueTransformer<T> extends TuiValueTransformer<T | null, T> {\n private prevValue!: T;\n\n public fromControlValue(value: T): T {\n this.prevValue = value;\n\n return value;\n }\n\n public toControlValue(value: T | null): T {\n this.prevValue = value ?? this.prevValue;\n\n return this.prevValue;\n }\n}\n\nexport const TUI_IDENTITY_VALUE_TRANSFORMER: TuiValueTransformer<any, any> = {\n fromControlValue: identity,\n toControlValue: identity,\n};\n","import {\n ChangeDetectorRef,\n computed,\n Directive,\n inject,\n input,\n type Provider,\n signal,\n type Type,\n untracked,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n type ControlValueAccessor,\n type FormControlStatus,\n NgControl,\n NgModel,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {TUI_FALLBACK_VALUE} from '@taiga-ui/cdk/tokens';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/di';\nimport {\n delay,\n distinctUntilChanged,\n EMPTY,\n filter,\n map,\n merge,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_IDENTITY_VALUE_TRANSFORMER, TuiValueTransformer} from './value-transformer';\n\nconst FLAGS = {self: true, optional: true};\n\n/**\n * Basic ControlValueAccessor class to build form components upon\n */\n@Directive()\nexport abstract class TuiControl<T> implements ControlValueAccessor {\n private readonly fallback = inject(TUI_FALLBACK_VALUE, FLAGS) as T;\n private readonly refresh$ = new Subject<void>();\n private readonly internal = signal(this.fallback);\n\n protected readonly control = inject(NgControl, {self: true});\n protected readonly cdr = inject(ChangeDetectorRef);\n protected transformer =\n inject(TuiValueTransformer, FLAGS) ?? TUI_IDENTITY_VALUE_TRANSFORMER;\n\n public readonly value = computed(() => this.internal() ?? this.fallback);\n public readonly readOnly = input(false);\n public readonly pseudoInvalid = input<boolean | null>(null, {alias: 'invalid'});\n public readonly touched = signal(false);\n public readonly status = signal<FormControlStatus | undefined>(undefined);\n public readonly disabled = computed(() => this.status() === 'DISABLED');\n public readonly interactive = computed(() => !this.disabled() && !this.readOnly());\n public readonly invalid = computed(() =>\n this.pseudoInvalid() !== null\n ? !!this.pseudoInvalid() && this.interactive()\n : this.interactive() && this.touched() && this.status() === 'INVALID',\n );\n\n public readonly mode = computed(() =>\n // eslint-disable-next-line no-nested-ternary\n this.readOnly() ? 'readonly' : this.invalid() ? 'invalid' : 'valid',\n );\n\n public onTouched = EMPTY_FUNCTION;\n public onChange: (value: T) => void = EMPTY_FUNCTION;\n\n constructor() {\n this.control.valueAccessor = this;\n this.refresh$\n .pipe(\n delay(0),\n startWith(null),\n map(() => this.control.control),\n filter(Boolean),\n distinctUntilChanged(),\n switchMap((c) =>\n merge(\n c.valueChanges,\n c.statusChanges,\n (c as any).events || EMPTY,\n ).pipe(startWith(null)),\n ),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.update());\n }\n\n public registerOnChange(onChange: (value: unknown) => void): void {\n this.refresh$.next();\n\n this.onChange = (value: T) => {\n const internal = untracked(() => this.internal());\n\n if (value === internal) {\n return;\n }\n\n onChange(this.transformer.toControlValue(value));\n this.internal.set(value);\n this.update();\n };\n }\n\n public registerOnTouched(onTouched: () => void): void {\n this.onTouched = () => {\n onTouched();\n this.update();\n };\n }\n\n public setDisabledState(): void {\n this.update();\n }\n\n public writeValue(value: T | null): void {\n // TODO: https://github.com/angular/angular/issues/14988\n const safe = this.control instanceof NgModel ? this.control.model : value;\n\n this.internal.set(this.transformer.fromControlValue(safe));\n this.update();\n }\n\n private update(): void {\n this.status.set(this.control.control?.status);\n this.touched.set(!!this.control.control?.touched);\n this.cdr.markForCheck();\n }\n}\n\nexport function tuiAsControl<T>(control: Type<TuiControl<T>>): Provider {\n return tuiProvide(TuiControl, control);\n}\n","import {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport class TuiValidationError<T extends Record<string, any> = Record<string, unknown>> {\n constructor(\n public readonly message: PolymorpheusContent<T>,\n public readonly context: T = {} as T,\n ) {}\n}\n","/**\n * Generated bundle index. Do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List } from '@angular/core';
2
-
3
- const TUI_ALLOW_SIGNAL_WRITES = parseInt(VERSION.major, 10) >= 19 ? {} : { allowSignalWrites: true };
4
-
5
1
  const rect = {
6
2
  bottom: 0,
7
3
  height: 0,
@@ -12,14 +8,6 @@ const rect = {
12
8
  x: 0,
13
9
  y: 0,
14
10
  };
15
- /**
16
- * For type safety when using @ContentChildren and @ViewChildren
17
- *
18
- * NOTE: Be careful subscribing to 'changes'
19
- * @deprecated use viewChild(), viewChildren(), contentChild() and contentChildren() for strict type checking
20
- */
21
- const EMPTY_QUERY = new QueryList();
22
- const EMPTY_ARRAY = [];
23
11
  const EMPTY_FUNCTION = () => { };
24
12
  const EMPTY_CLIENT_RECT = {
25
13
  ...rect,
@@ -29,13 +17,12 @@ const EMPTY_CLIENT_RECT = {
29
17
  /**
30
18
  * Handler that always returns `false`.
31
19
  */
32
- // eslint-disable-next-line no-restricted-syntax
33
20
  const TUI_FALSE_HANDLER = () => false;
34
21
  /**
35
22
  * Handler that always returns `true`.
36
23
  */
37
- // eslint-disable-next-line no-restricted-syntax
38
24
  const TUI_TRUE_HANDLER = () => true;
25
+ const TUI_STRINGIFY = ({ $implicit }) => String($implicit);
39
26
 
40
27
  function bothEmpty(item1, item2) {
41
28
  return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;
@@ -143,23 +130,23 @@ const CHAR_ZERO_WIDTH_SPACE = '\u200B';
143
130
  * @description:
144
131
  * AUTOGENERATED
145
132
  *
146
- * Array of icons used in taiga-ui components
133
+ * Array of icons used in ./projects
147
134
  */
148
135
  const TUI_USED_ICONS = [
149
136
  '@tui.mir',
150
137
  '@tui.visa',
151
138
  '@tui.electron',
152
- '@tui.mastercard',
153
- '@tui.maestro',
154
- '@tui.amex',
155
- '@tui.diners-club',
156
- '@tui.discover',
157
- '@tui.humo',
158
- '@tui.jcb',
159
- '@tui.ru-pay',
160
- '@tui.union-pay',
161
- '@tui.uzcard',
162
- '@tui.verve',
139
+ '@img.mastercard',
140
+ '@img.maestro',
141
+ '@img.amex',
142
+ '@img.diners-club',
143
+ '@img.discover',
144
+ '@img.humo',
145
+ '@img.jcb',
146
+ '@img.ru-pay',
147
+ '@img.union-pay',
148
+ '@img.uzcard',
149
+ '@img.verve',
163
150
  '@tui.search',
164
151
  '@tui.sun',
165
152
  '@tui.moon',
@@ -195,31 +182,22 @@ const TUI_USED_ICONS = [
195
182
  '@tui.file',
196
183
  '@tui.calendar',
197
184
  '@tui.plus',
198
- '@tui.phone',
199
185
  '@tui.heart',
200
186
  '@tui.heart-filled',
201
- '@tui.star',
202
187
  '@tui.rotate-ccw-square',
203
188
  '@tui.arrow-left',
204
189
  '@tui.arrow-right',
205
190
  '@tui.minimize',
191
+ '@tui.star',
206
192
  '@tui.filter',
207
193
  '@tui.layout-grid',
208
- '@tui.move-up-right',
209
- '@tui.move-right',
210
- '@tui.move-down-right',
211
- '@tui.move-down',
212
- '@tui.move-down-left',
213
- '@tui.move-left',
214
- '@tui.move-up-left',
215
- '@tui.move-up',
216
194
  ];
217
195
 
218
- const TUI_VERSION = '4.66.0';
196
+ const TUI_VERSION = '5.0.0-canary.2e92594';
219
197
 
220
198
  /**
221
199
  * Generated bundle index. Do not edit.
222
200
  */
223
201
 
224
- export { CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_LAQUO, CHAR_MINUS, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_RAQUO, CHAR_ZERO_WIDTH_SPACE, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, TUI_ALLOW_SIGNAL_WRITES, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DIGIT_REGEXP, TUI_FALSE_HANDLER, TUI_NON_DIGITS_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_STRICT_MATCHER, TUI_TRUE_HANDLER, TUI_USED_ICONS, TUI_VERSION, svgNodeFilter };
202
+ export { CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_LAQUO, CHAR_MINUS, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_RAQUO, CHAR_ZERO_WIDTH_SPACE, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DIGIT_REGEXP, TUI_FALSE_HANDLER, TUI_NON_DIGITS_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_STRICT_MATCHER, TUI_STRINGIFY, TUI_TRUE_HANDLER, TUI_USED_ICONS, TUI_VERSION, svgNodeFilter };
225
203
  //# sourceMappingURL=taiga-ui-cdk-constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-constants.mjs","sources":["../../../projects/cdk/constants/allow-signal-writes.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/handlers.ts","../../../projects/cdk/constants/matchers.ts","../../../projects/cdk/constants/regexp.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["import {type CreateEffectOptions, VERSION} from '@angular/core';\n\nexport const TUI_ALLOW_SIGNAL_WRITES: CreateEffectOptions =\n parseInt(VERSION.major, 10) >= 19 ? {} : {allowSignalWrites: true};\n","import {QueryList} from '@angular/core';\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n * @deprecated use viewChild(), viewChildren(), contentChild() and contentChildren() for strict type checking\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON: () => rect,\n};\n","/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const TUI_FALSE_HANDLER = (): false => false;\n\n/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const TUI_TRUE_HANDLER = (): true => true;\n","import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\n","export const svgNodeFilter: Exclude<NodeFilter, (node: Node) => number> = {\n acceptNode(node: Node): number {\n return 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT;\n },\n};\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = '\\u00AB';\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = '\\u00BB';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = '\\u2212';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in taiga-ui components\n */\nexport const TUI_USED_ICONS = [\n '@tui.mir',\n '@tui.visa',\n '@tui.electron',\n '@tui.mastercard',\n '@tui.maestro',\n '@tui.amex',\n '@tui.diners-club',\n '@tui.discover',\n '@tui.humo',\n '@tui.jcb',\n '@tui.ru-pay',\n '@tui.union-pay',\n '@tui.uzcard',\n '@tui.verve',\n '@tui.search',\n '@tui.sun',\n '@tui.moon',\n '@tui.code',\n '@tui.menu',\n '@tui.copy',\n '@tui.check',\n '@tui.link',\n '@tui.external-link',\n '@tui.languages',\n '@tui.shrink',\n '@tui.expand',\n '@tui.a-large-small',\n '@tui.arrow-right-left',\n '@tui.eye-off',\n '@tui.eye',\n '@tui.grip-vertical',\n '@tui.chevron-up',\n '@tui.chevron-down',\n '@tui.chevrons-up-down',\n '@tui.info',\n '@tui.circle-check',\n '@tui.circle-x',\n '@tui.circle-alert',\n '@tui.circle-help',\n '@tui.x',\n '@tui.chevron-right',\n '@tui.ellipsis',\n '@tui.chevron-left',\n '@tui.clock',\n '@tui.trash',\n '@tui.minus',\n '@tui.file',\n '@tui.calendar',\n '@tui.plus',\n '@tui.phone',\n '@tui.heart',\n '@tui.heart-filled',\n '@tui.star',\n '@tui.rotate-ccw-square',\n '@tui.arrow-left',\n '@tui.arrow-right',\n '@tui.minimize',\n '@tui.filter',\n '@tui.layout-grid',\n '@tui.move-up-right',\n '@tui.move-right',\n '@tui.move-down-right',\n '@tui.move-down',\n '@tui.move-down-left',\n '@tui.move-left',\n '@tui.move-up-left',\n '@tui.move-up',\n] as const;\n","export const TUI_VERSION = '4.66.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEa,MAAA,uBAAuB,GAChC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EA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IAChB,aAAa;IACb,aAAa;IACb,oBAAoB;IACpB,uBAAuB;IACvB,cAAc;IACd,UAAU;IACV,oBAAoB;IACpB,iBAAiB;IACjB,mBAAmB;IACnB,uBAAuB;IACvB,WAAW;IACX,mBAAmB;IACnB,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,QAAQ;IACR,oBAAoB;IACpB,eAAe;IACf,mBAAmB;IACnB,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,mBAAmB;IACnB,WAAW;IACX,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,sBAAsB;IACtB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,mBAAmB;IACnB,cAAc;;;ACzEX,MAAM,WAAW,GAAG;;ACA3B;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-constants.mjs","sources":["../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/handlers.ts","../../../projects/cdk/constants/matchers.ts","../../../projects/cdk/constants/regexp.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["const rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON: () => rect,\n};\n","import {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * Handler that always returns `false`.\n */\nexport const TUI_FALSE_HANDLER = (): false => false;\n\n/**\n * Handler that always returns `true`.\n */\nexport const TUI_TRUE_HANDLER = (): true => true;\nexport const TUI_STRINGIFY: PolymorpheusContent = ({$implicit}) => String($implicit);\n","import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\n","export const svgNodeFilter: Exclude<NodeFilter, (node: Node) => number> = {\n acceptNode(node: Node): number {\n return 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT;\n },\n};\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = '\\u00AB';\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = '\\u00BB';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = '\\u2212';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in ./projects\n */\nexport const TUI_USED_ICONS = [\n '@tui.mir',\n '@tui.visa',\n '@tui.electron',\n '@img.mastercard',\n '@img.maestro',\n '@img.amex',\n '@img.diners-club',\n '@img.discover',\n '@img.humo',\n '@img.jcb',\n '@img.ru-pay',\n '@img.union-pay',\n '@img.uzcard',\n '@img.verve',\n '@tui.search',\n '@tui.sun',\n '@tui.moon',\n '@tui.code',\n '@tui.menu',\n '@tui.copy',\n '@tui.check',\n '@tui.link',\n '@tui.external-link',\n '@tui.languages',\n '@tui.shrink',\n '@tui.expand',\n '@tui.a-large-small',\n '@tui.arrow-right-left',\n '@tui.eye-off',\n '@tui.eye',\n '@tui.grip-vertical',\n '@tui.chevron-up',\n '@tui.chevron-down',\n '@tui.chevrons-up-down',\n '@tui.info',\n '@tui.circle-check',\n '@tui.circle-x',\n '@tui.circle-alert',\n '@tui.circle-help',\n '@tui.x',\n '@tui.chevron-right',\n '@tui.ellipsis',\n '@tui.chevron-left',\n '@tui.clock',\n '@tui.trash',\n '@tui.minus',\n '@tui.file',\n '@tui.calendar',\n '@tui.plus',\n '@tui.heart',\n '@tui.heart-filled',\n '@tui.rotate-ccw-square',\n '@tui.arrow-left',\n '@tui.arrow-right',\n '@tui.minimize',\n '@tui.star',\n '@tui.filter',\n '@tui.layout-grid',\n] as const;\n","export const TUI_VERSION = '5.0.0-canary.2e92594';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,CAAC,EAAE,CAAC;AACJ,IAAA,CAAC,EAAE,CAAC;CACE;MAEG,cAAc,GAA6B,MAAK;AAChD,MAAA,iBAAiB,GAAY;AACtC,IAAA,GAAG,IAAI;AACP,IAAA,MAAM,EAAE,MAAM,IAAI;;;ACZtB;;AAEG;MACU,iBAAiB,GAAG,MAAa;AAE9C;;AAEG;MACU,gBAAgB,G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AAE3B;;;;;AAKG;AACI,MAAM,UAAU,GAAG;AAE1B;;AAEG;AACI,MAAM,SAAS,GAAG;AAEzB;;AAEG;AACI,MAAM,WAAW,GAAG;AAE3B;;AAEG;AACI,MAAM,aAAa,GAAG;AAE7B;;AAEG;AACI,MAAM,kBAAkB,GAAG;AAElC;;AAEG;AACI,MAAM,qBAAqB,GAAG;;ACzErC;;;;;AAKG;AACU,MAAA,cAAc,GAAG;IAC1B,UAAU;IACV,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,UAAU;IACV,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,WAAW;IACX,oBAAoB;IACpB,gBAAgB;IAChB,aAAa;IACb,aAAa;IACb,oBAAoB;IACpB,uBAAuB;IACvB,cAAc;IACd,UAAU;IACV,oBAAoB;IACpB,iBAAiB;IACjB,mBAAmB;IACnB,uBAAuB;IACvB,WAAW;IACX,mBAAmB;IACnB,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,QAAQ;IACR,oBAAoB;IACpB,eAAe;IACf,mBAAmB;IACnB,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,YAAY;IACZ,mBAAmB;IACnB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,aAAa;IACb,kBAAkB;;;AChEf,MAAM,WAAW,GAAG;;ACA3B;;AAEG;;;;"}
@@ -31,16 +31,16 @@ const MILLISECONDS_IN_HOUR = MILLISECONDS_IN_MINUTE * MINUTES_IN_HOUR;
31
31
  const MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
32
32
 
33
33
  /**
34
- * @internal 'dd.mm.yyyy'.length
34
+ * @internal 'dd/mm/yyyy'.length
35
35
  * Used in:
36
- * - {@link TuiInputDateComponent}
37
- * - {@link TuiInputDateRangeComponent}
38
- * - {@link TuiInputDateTimeComponent}
36
+ * - {@link TuiInputDate}
37
+ * - {@link TuiInputDateRange}
38
+ * - {@link TuiInputDateTime}
39
39
  */
40
40
  const DATE_FILLER_LENGTH = 10;
41
41
  /**
42
42
  * @internal
43
- * Used in {@link TuiInputDateRangeComponent}
43
+ * Used in {@link TuiInputDateRange}
44
44
  */
45
45
  const DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
46
46
 
@@ -404,23 +404,23 @@ class TuiDay extends TuiMonth {
404
404
  return Math.round((to.toLocalNativeDate().getTime() - from.toLocalNativeDate().getTime()) /
405
405
  (1000 * 60 * 60 * 24));
406
406
  }
407
- static parseRawDateString(date, dateMode = 'DMY') {
407
+ static parseRawDateString(date, dateMode = 'dd/mm/yyyy') {
408
408
  ngDevMode &&
409
409
  console.assert(date.length === DATE_FILLER_LENGTH, '[parseRawDateString]: wrong date string length');
410
410
  switch (dateMode) {
411
- case 'MDY':
411
+ case 'mm/dd/yyyy':
412
412
  return {
413
413
  day: parseInt(date.slice(3, 5), 10),
414
414
  month: parseInt(date.slice(0, 2), 10) - 1,
415
415
  year: parseInt(date.slice(6, 10), 10),
416
416
  };
417
- case 'YMD':
417
+ case 'yyyy/mm/dd':
418
418
  return {
419
419
  day: parseInt(date.slice(8, 10), 10),
420
420
  month: parseInt(date.slice(5, 7), 10) - 1,
421
421
  year: parseInt(date.slice(0, 4), 10),
422
422
  };
423
- case 'DMY':
423
+ case 'dd/mm/yyyy':
424
424
  default:
425
425
  return {
426
426
  day: parseInt(date.slice(0, 2), 10),
@@ -434,21 +434,21 @@ class TuiDay extends TuiMonth {
434
434
  * Parsing a string with date with normalization
435
435
  *
436
436
  * @param rawDate date string
437
- * @param dateMode date format of the date string (DMY | MDY | YMD)
437
+ * @param dateMode date format of the date string (dd/mm/yyyy | mm/dd/yyyy | yyyy/mm/dd)
438
438
  * @return normalized date
439
439
  */
440
- static normalizeParse(rawDate, dateMode = 'DMY') {
440
+ static normalizeParse(rawDate, dateMode = 'dd/mm/yyyy') {
441
441
  const { day, month, year } = this.parseRawDateString(rawDate, dateMode);
442
442
  return TuiDay.normalizeOf(year, month, day);
443
443
  }
444
444
  /**
445
445
  * Parsing a date stringified in a toJSON format
446
- * @param yearMonthDayString date string in format of YYYY-MM-DD
446
+ * @param ymdString date string in format of YYYY-MM-DD
447
447
  * @return date
448
448
  * @throws exceptions if any part of the date is invalid
449
449
  */
450
- static jsonParse(yearMonthDayString) {
451
- const { day, month, year } = this.parseRawDateString(yearMonthDayString, 'YMD');
450
+ static jsonParse(ymdString) {
451
+ const { day, month, year } = this.parseRawDateString(ymdString, 'yyyy/mm/dd');
452
452
  if (!TuiMonth.isValidMonth(year, month) ||
453
453
  !Number.isInteger(day) ||
454
454
  !tuiInRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1)) {
@@ -488,7 +488,7 @@ class TuiDay extends TuiMonth {
488
488
  (this.monthSame(another) && this.day < another.day));
489
489
  }
490
490
  /**
491
- * Passed date is after or equals to current
491
+ * Passed date is after or equal to current
492
492
  */
493
493
  daySameOrBefore(another) {
494
494
  return (this.monthBefore(another) ||
@@ -589,16 +589,16 @@ class TuiDay extends TuiMonth {
589
589
  const mm = this.formattedMonthPart;
590
590
  const yyyy = this.formattedYear;
591
591
  switch (dateFormat) {
592
- case 'MDY':
592
+ case 'mm/dd/yyyy':
593
593
  return `${mm}${separator}${dd}${separator}${yyyy}`;
594
- case 'YMD':
594
+ case 'yyyy/mm/dd':
595
595
  return `${yyyy}${separator}${mm}${separator}${dd}`;
596
- case 'DMY':
596
+ case 'dd/mm/yyyy':
597
597
  default:
598
598
  return `${dd}${separator}${mm}${separator}${yyyy}`;
599
599
  }
600
600
  }
601
- toString(dateFormat = 'DMY', separator = '.') {
601
+ toString(dateFormat = 'dd/mm/yyyy', separator = '.') {
602
602
  return this.getFormattedDay(dateFormat, separator);
603
603
  }
604
604
  toJSON() {
@@ -677,11 +677,11 @@ class TuiDayRange extends TuiMonthRange {
677
677
  /**
678
678
  * Parse and correct a day range in string format
679
679
  *
680
- * @param rangeString a string of dates in a format dd.mm.yyyy - dd.mm.yyyy
680
+ * @param rangeString a string of dates in a format dd/mm/yyyy - dd/mm/yyyy
681
681
  * @param dateMode {@link TuiDateMode}
682
682
  * @return normalized day range object
683
683
  */
684
- static normalizeParse(rangeString, dateMode = 'DMY') {
684
+ static normalizeParse(rangeString, dateMode = 'dd/mm/yyyy') {
685
685
  const leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
686
686
  if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
687
687
  return new TuiDayRange(leftDay, leftDay);
@@ -718,7 +718,7 @@ class TuiDayRange extends TuiMonthRange {
718
718
  const to = this.to.getFormattedDay(dateFormat, dateSeparator);
719
719
  return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
720
720
  }
721
- toString(dateFormat = 'DMY', dateSeparator = '.') {
721
+ toString(dateFormat = 'dd/mm/yyyy', dateSeparator = '.') {
722
722
  return this.getFormattedDayRange(dateFormat, dateSeparator);
723
723
  }
724
724
  toArray() {